1 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5 declaration in TARGET_SOLARIS.
7 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
9 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
10 The instruction is then expanded explicitly.
11 (supported_compare): Callable instruction.
14 2011-05-26 Jakub Jelinek <jakub@redhat.com>
17 * gimplify.c (shortcut_cond_r): Don't special case
18 COND_EXPRs if they have void type on one of their arms.
20 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
22 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
23 to reduce duplication, and to achieve a slightly more logical order
26 2011-05-26 Jakub Jelinek <jakub@redhat.com>
28 PR tree-optimization/49161
29 * tree-vrp.c (struct case_info): New type.
30 (compare_case_labels): Sort case_info structs instead of
31 trees, and not primarily by CASE_LABEL uids but by
32 label_for_block indexes.
33 (find_switch_asserts): Put case labels into struct case_info
34 array instead of TREE_VEC, adjust sorting, compare label_for_block
35 values instead of CASE_LABELs.
37 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
39 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
40 ("orndi3_neon"): Likewise.
41 ("bic<mode>3_neon"): Likewise.
43 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
45 PR tree-optimization/49038
46 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
47 Ensure at least one epilogue iteration if required by data
49 * tree-vectorizer.h (struct _loop_vec_info): Add new field
50 to mark loops that require peeling for gaps.
51 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
52 (vect_get_known_peeling_cost): Take peeling for gaps into
54 (vect_transform_loop): Generate epilogue if required by data
56 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
57 loop as requiring an epilogue if there are gaps in the end of
60 2011-05-25 Ian Lance Taylor <iant@google.com>
62 * godump.c (go_format_type): Output the first field with a usable
65 2011-05-25 Ian Lance Taylor <iant@google.com>
67 * godump.c (go_format_type): Check for invalid type names, pointer
68 target types, and struct field types.
70 2011-05-25 Jason Merrill <jason@redhat.com>
72 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
74 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
76 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
78 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
80 * config/i386/i386.md (*movqi_extv_1)): Put back
81 "register_operand" check in "type" calculation.
82 (*movqi_extzv_2): Likewise.
84 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
86 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
88 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
91 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
92 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
93 __divxc3, __divtc3): Wrap definitions in #ifndef.
95 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
98 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
99 "register_operand" check and replace q_regs_operand with
100 QIreg_operand in "type" calculation.
101 (*movqi_extv_1): Likewise.
102 (*movqi_extzv_2_rex64): Likewise.
103 (*movqi_extzv_2): Likewise.
105 * config/i386/predicates.md (QIreg_operand): New.
107 2011-05-25 Richard Guenther <rguenther@suse.de>
109 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
110 type-based offset disambiguation, streamline MEM_REF and
111 TARGET_MEM_REF handling.
113 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
115 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
116 (bdesc_special_args): Add pause intrinsic.
118 * config/i386/i386.md (UNSPEC_PAUSE): New.
121 * config/i386/ia32intrin.h (__pause): Likewise.
123 * doc/extend.texi (X86 Built-in Functions): Add documentation for
126 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
128 PR tree-optimization/46728
129 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
130 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
132 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
134 * tree.h (struct tree_exp): Inherit from struct tree_typed.
135 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
136 instead of TS_COMMON.
138 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
140 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
141 LIBGCC2_GNU_PREFIX is defined.
143 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
144 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
145 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
146 __clz_tab): Define using __N.
147 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
148 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
149 * target.def (libfunc_gnu_prefix): New hook.
150 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
151 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
152 * doc/tm.texi: Regenerate.
153 * system.h (LIBGCC2_GNU_PREFIX): Poison.
154 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
156 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
157 (init_optabs): Likewise for the bswap libfuncs.
158 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
160 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
161 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
162 * libgcc-std.ver: Remove.
163 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
164 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
166 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
167 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
168 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
169 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
170 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
171 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
172 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
173 * config/fixed-bit.h (FIXED_OP): Define differently depending on
174 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
175 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
177 2011-05-25 Jan Hubicka <jh@suse.cz>
179 * lto-streamer-out.c (output_record_start): Use lto_output_enum
180 (lto_output_tree): Use output_record_start.
181 * lto-streamer-in.c (input_record_start): Use lto_input_enum
182 (lto_get_pickled_tree): Use input_record_start.
183 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
184 (lto_value_range_error): New function.
185 * lto-streamer.h (lto_value_range_error): Declare.
186 (lto_output_int_in_range, lto_input_int_in_range): New functions.
187 (lto_output_enum, lto_input_enum): New macros.
189 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
191 * common.opt (flag_stack_usage_info): New variable.
192 (-Wstack-usage): New option.
193 * doc/invoke.texi (Warning options): Document -Wstack-usage.
194 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
195 <OPT_fstack_usage>: Likewise.
196 * toplev.c (output_stack_usage): Handle -Wstack-usage.
197 * calls.c (expand_call): Test flag_stack_usage_info variable instead
199 (emit_library_call_value_1): Likewise.
200 * explow.c (allocate_dynamic_stack_space): Likewise.
201 * function.c (instantiate_virtual_regs ): Likewise.
202 (prepare_function_start): Likewise.
203 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
204 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
205 * config/arm/arm.c (arm_expand_prologue): Likewise.
206 (thumb1_expand_prologue): Likewise.
207 * config/avr/avr.c (expand_prologue): Likewise.
208 * config/i386/i386.c (ix86_expand_prologue): Likewise.
209 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
210 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
211 * config/mips/mips.c (mips_expand_prologue): Likewise.
212 * config/pa/pa.c (hppa_expand_prologue): Likewise.
213 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
214 * config/s390/s390.c (s390_emit_prologue): Likewise.
215 * config/sh/sh.c (sh_expand_prologue): Likewise.
216 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
217 * config/spu/spu.c (spu_expand_prologue): Likewise.
219 2011-05-25 Richard Guenther <rguenther@suse.de>
221 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
222 (gimple_canonical_types_compatible_p): Likewise.
224 2011-05-25 Jan Hubicka <jh@suse.cz>
227 * ipa.c (function_and_variable_visibility): Only add to same
228 comdat group list if DECL_ONE_ONLY.
230 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
232 PR rtl-optimization/49014
233 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
235 2011-05-25 Jakub Jelinek <jakub@redhat.com>
238 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
240 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
242 PR rtl-optimization/48757
243 * ira-build.c (loop_with_eh_edge_p): Rename to
244 loop_with_complex_edge_p, check edges on complexity, make function
246 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
249 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
251 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
252 force flag_ira_share_save_slots to 0.
254 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
256 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
257 (vt_initialize): Set PROLOGUE_BB unconditionally.
258 Add block comment about CFA_BASE_RTX machinery.
259 Reset FP_CFA_OFFSET to -1 on all invalid paths.
260 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
262 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
265 * c-parser.c (c_parser_objc_class_instance_variables): More robust
266 parsing of syntax error in ObjC instance variable lists. In
267 particular, avoid an infinite loop if there is a stray ']'.
268 Updated error message.
270 2011-05-24 Ian Lance Taylor <iant@google.com>
272 * godump.c (go_define): Don't accept a string immediately after
275 2011-05-24 Ian Lance Taylor <iant@google.com>
277 * godump.c (struct godump_container): Add invalid_hash field.
278 (go_format_type): Return false if type is found in invalid_hash.
279 (go_output_typedef): Add invalid type to invalid_hash.
280 (go_finish): Create and delete invalid_hash.
282 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
284 PR tree-optimization/46728
285 * tree-ssa-math-opts.c (powi_table): New.
286 (powi_lookup_cost): New.
288 (powi_as_mults_1): New.
289 (powi_as_mults): New.
290 (gimple_expand_builtin_powi): New.
291 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
292 (gate_cse_sincos): Remove sincos/cexp restriction.
294 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
297 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
299 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
300 * mips-tdump.c: Likewise.
302 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
305 * config/i386/driver-i386.c (host_detect_local_cpu): Always
306 add -mno-XXX. Handle FMA.
308 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
310 PR rtl-optimization/48633
311 * ira-build.c (loop_with_eh_edge_p): New function.
312 (mark_loops_for_removal): Use it.
314 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
316 PR rtl-optimization/48971
317 * ira.c (setup_pressure_classes): Don't check register move cost
318 for classes with one registers. Don't add pressure class if there
319 is a pressure class with the same available hard registers.
320 Check contains_reg_of_mode. Fix a typo in collecting
321 temp_hard_regset. Ignore hard registers not belonging to a class.
323 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
326 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
328 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
329 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
331 PR gcov-profile/48845
332 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
334 2011-05-24 Richard Guenther <rguenther@suse.de>
336 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
337 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
338 (gimple_types_compatible_p_1): Adjust.
339 (iterative_hash_canonical_type): Do not bother about complete vs.
341 (gimple_canonical_types_compatible_p): Likewise.
343 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
345 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
347 2011-05-24 Richard Guenther <rguenther@suse.de>
350 * gimple.c (gimple_register_canonical_type): Revert
352 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
353 does not for a tree for the case where it matters. Cache
354 pointer-type alias-sets.
356 2011-05-24 Joseph Myers <joseph@codesourcery.com>
358 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
359 (OBJS): Remove options.o, opts-common.o and prefix.o.
360 (OBJS-libcommon-target): New.
361 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
362 (BACKEND): Include libcommon-target.a.
363 (MOSTLYCLEANFILES): Include libcommon-target.a.
364 (libcommon-target.a): New.
365 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
368 2011-05-23 Joseph Myers <joseph@codesourcery.com>
370 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
371 parts of output shared with the driver.
372 * optc-gen.awk: Don't generate parts of output not shared with the
374 * opth-gen.awk: Remove GCC_DRIVER conditionals.
375 * doc/options.texi (SourcerInclude): Mention options-save.c.
376 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
377 (OBJS): Add options-save.o.
378 (options-save.c, options-save.o): New.
379 (options.o): Update dependencies.
380 (gcc-options.o): Remove.
381 (mostlyclean): Remove options-save.c.
383 2011-05-23 Jakub Jelinek <jakub@redhat.com>
386 * dbxout.c: Include cgraph.h.
387 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
388 and without value expr, return NULL if no varpool node exists for
389 it or if it is not needed.
390 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
393 * c-decl.c (start_decl): Convert expr to void_type_node.
395 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
397 PR rtl-optimization/48826
398 * emit-rtl.c (try_split): When splitting a call that is followed
399 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
401 2011-05-23 Jakub Jelinek <jakub@redhat.com>
403 * cfgexpand.c (expand_debug_expr): For unused non-addressable
404 parameters passed in memory prefer using DECL_INCOMING_RTL over
405 the pseudos it will be copied into.
407 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
410 * config/i386/i386.c (ix86_option_override_internal): Save the
411 initial options after checking vzeroupper.
413 2011-05-23 David Li <davidxl@google.com>
415 PR tree-optimization/48988
416 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
417 Initialize has_valid_pred for each pred chain.
419 2011-05-23 Richard Guenther <rguenther@suse.de>
421 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
422 (iterative_hash_gimple_type): Always hash type names.
424 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
426 * c-typeck.c (build_function_call_vec): Tweak call to
427 check_function_arguments.
429 2011-05-23 Richard Guenther <rguenther@suse.de>
431 PR tree-optimization/49115
432 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
433 is not necessarily carried out, do not claim it kills the ref.
434 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
436 2011-05-23 Richard Guenther <rguenther@suse.de>
439 * builtins.c (fold_builtin_memory_op): Be less restrictive about
440 what pointer types we accept for folding.
442 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
444 * gthr-gnat.c: Remove.
445 * gthr-gnat.h: Remove.
446 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
447 * config/t-freebsd (LIB2ADDEH): Likewise.
448 * config/t-linux (LIB2ADDEH): Likewise.
449 * config/t-sol2 (LIB2ADDEH): Likewise.
450 * config/ia64/t-vms (LIB2ADDEH): Likewise.
451 * configure.ac (target_thread_file): Remove gnat handling.
452 * configure: Regenerate.
453 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
455 2011-05-23 Tristan Gingold <gingold@adacore.com>
456 Eric Botcazou <ebotcazou@adacore.com>
458 * gcov.c (create_file_names): If no object directory is specified,
459 keep the directory of the file.
461 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
463 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
464 * configure: Regenerate.
466 2011-05-23 Jakub Jelinek <jakub@redhat.com>
469 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
470 failed and the comparison has a single bit signed type, use
471 constm1_rtx instead of const1_rtx for true value.
472 (do_store_flag): If ops->type is single bit signed type, disable
473 signel bit test optimization and pass -1 instead of 1 as last
474 parameter to emit_store_flag_force.
476 2011-05-23 Tom de Vries <tom@codesourcery.com>
479 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
481 (infer_loop_bounds_from_undefined): Use new function.
483 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
485 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
486 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
487 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
489 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
491 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
493 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
494 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
497 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
499 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
501 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
503 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
504 UNSPEC_MOVE_PIC pattern.
506 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
508 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
509 (sparc-*-rtems*): Likewise.
510 (sparc64-*-elf*): Likewise.
511 (sparc64-*-rtems*): Likewise.
512 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
513 * config/sparc/t-crtin: New file.
514 * config/sparc/t-sol2 (crti.o): Delete rule.
516 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
517 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
518 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
519 (ENDFILE_SPEC): Add crtn.o.
521 2011-05-22 Tom de Vries <tom@codesourcery.com>
524 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
525 CODE_CONTAINS_STRUCT (TS_COMMON).
527 2011-05-22 Jakub Jelinek <jakub@redhat.com>
530 * expmed.c (extract_fixed_bit_field): Test whether target can be used
531 only after deciding which mode to use.
533 2011-05-22 Tom de Vries <tom@codesourcery.com>
536 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
537 for call to get_shiftadd_cost.
539 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
542 * config/i386/cpuid.h (bit_MMXEXT): New define.
544 2011-05-22 Nick Clifton <nickc@redhat.com>
546 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
547 initialisation of non-existant args[2] element. Use args[] array
548 not arg[] array to pass arguments to build_function_type_list.
550 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
552 PR tree-optimization/49087
553 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
555 2011-05-21 Jason Merrill <jason@redhat.com>
558 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
559 static storage duration.
561 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
563 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
566 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
568 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
569 false if there are call-saved registers here...
570 (sparc_can_use_return_insn_p): ...but here instead.
571 (save_or_restore_regs): Fix thinko.
572 (sparc_expand_prologue): Use current_function_is_leaf.
573 (sparc_frame_pointer_required): Likewise.
575 2011-05-21 Nick Clifton <nickc@redhat.com>
578 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
580 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
582 * gengtype.c (walk_type): Implemented "atomic" GTY option.
583 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
585 2011-05-21 Joseph Myers <joseph@codesourcery.com>
587 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
588 * optc-gen.awk: Move common code to opt-read.awk.
589 * opth-gen.awk: Likewise.
590 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
592 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
594 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
596 2011-05-20 Tom de Vries <tom@codesourcery.com>
599 * tree-ssa-loop-ivopts.c: Include expmed.h.
600 (get_shiftadd_cost): New function.
601 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
603 2011-05-20 Jakub Jelinek <jakub@redhat.com>
606 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
607 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
609 2011-05-20 Joseph Myers <joseph@codesourcery.com>
611 * Makefile.in: Update comment referring to $(OBJS-common).
613 2011-05-20 Ian Lance Taylor <iant@google.com>
615 * godump.c (go_output_typedef): Put enum constants in the macro
616 hash table to avoid duplicate Go const definitions.
618 2011-05-20 Joseph Myers <joseph@codesourcery.com>
620 * Makefile.in (LIBDEPS): Add libcommon.a.
622 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
623 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
624 pretty-print.o and version.o.
625 (OBJS-libcommon): New.
626 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
627 (BACKEND): Add libcommon.a.
628 (MOSTLYCLEANFILES): Likewise.
630 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
631 (cpp$(exeext)): Likewise.
632 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
633 pretty-print.o and input.o.
634 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
635 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
637 (mips-tfile): Don't explicitly use version.o.
638 (mips-tdump): Likewise.
639 (gcov.o): Depend on $(DIAGNOSTIC_H).
640 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
641 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
642 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
643 * gcov-dump.c: Include intl.h and diagnostic.h.
644 (main): Initialize diagnostics.
645 * gcov.c: Include diagnostic.h.
647 (main): Initialize diagnostics.
648 * lto-wrapper.c: Include diagnostic.h.
649 (main): Initialize diagnostics.
651 2011-05-20 Michael Matz <matz@suse.de>
653 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
655 2011-05-20 Michael Matz <matz@suse.de>
656 Richard Guenther <rguenther@suse.de>
658 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
659 use lto_streamer_cache_append directly instead of returning a VEC.
660 (preload_common_node): Remove.
661 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
663 (lto_streamer_cache_create): Call lto_preload_common_nodes.
665 2011-05-20 Richard Guenther <rguenther@suse.de>
667 PR tree-optimization/49079
668 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
669 MEM_REFs correctly for the trailing array access detection.
670 Special case constants the same way as decls for overall size
673 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
675 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
678 2011-05-20 Jakub Jelinek <jakub@redhat.com>
680 PR tree-optimization/49073
681 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
682 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
683 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
685 2011-05-20 Richard Guenther <rguenther@suse.de>
688 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
689 of pointer types the same way the middle-end does.
691 2011-05-20 Richard Guenther <rguenther@suse.de>
693 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
694 or pointer-to chains. Delay all fixup to uniquify_nodes.
696 2011-05-19 Quentin Neill <quentin.neill@amd.com>
698 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
699 (fma4_fmaddsub): Likewise
701 2011-05-19 Jan Hubicka <jh@suse.cz>
703 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
704 (GIMPLE_TYPE_PAIR_SIZE): New macro.
705 (type_pair_cache): New static var.
706 (lookup_type_pair): Use fixed sized custom hash; make inline.
707 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
708 calls of lookup_type_pair.
709 (print_gimple_types_stats): Remove cache stats.
710 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
713 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
715 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
716 when TARGET_RDRND is active.
717 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
718 Generate dummy SImode target register when target is NULL.
720 2011-05-19 Joseph Myers <joseph@codesourcery.com>
722 * config/arm/arm-fpus.def: New.
723 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
725 * config/arm/arm-tables.opt: Regenerate.
726 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
727 (arm_option_override): Don't decode FPU name to string here.
728 * config/arm/arm.opt (mfpu=): Use Enum.
729 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
732 2011-05-19 Joseph Myers <joseph@codesourcery.com>
734 * collect2.c: Include diagnostic.h.
735 (fatal_perror, fatal, error, fancy_abort): Remove.
736 (main): Set progname. Call xmalloc_set_program_name and
737 diagnostic_initialize.
738 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
739 scan_libraries, resolve_lib_name): Call fatal_error instead of
740 fatal and fatal_perror.
741 * collect2.h (error, fatal, fatal_perror): Don't declare.
742 * tlink.c: Include diagnostic-core.h.
743 (recompile_files): Call fatal_error instead of fatal_perror.
744 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
745 pretty-print.o and input.o.
746 (collect2.o, tlink.o): Update dependencies.
748 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
750 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
752 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
755 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
756 COMDAT group syntax, both SPARC and x86 variants.
757 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
758 * configure: Regenerate.
759 * config/sol2.h (TARGET_SOLARIS): Define.
760 (PUSHSECTION_FORMAT): Remove.
761 (SECTION_NAME_FORMAT): Define.
762 * config/sol2.c: Include hashtab.h.
763 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
764 expansion, using SECTION_NAME_FORMAT.
765 (solaris_comdat_htab): New variable.
766 (struct comdat_entry): Define.
767 (comdat_hash): New function.
768 (comdat_eq): New function.
769 (solaris_elf_asm_comdat_section): New function.
770 (solaris_define_comdat_signature): New function.
771 (solaris_code_end): New function.
772 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
773 (solaris_code_end): Declare.
774 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
775 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
777 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
778 Remove ATTRIBUTE_UNUSED.
779 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
780 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
781 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
782 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
783 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
784 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
785 (PUSHSECTION_FORMAT): Remove.
786 (SECTION_NAME_FORMAT): Redefine.
788 2011-05-19 Kai Tietz <ktietz@redhat.com>
790 * tree-cfg.c (verify_gimple_assign_binary): Barf on
791 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
792 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
794 2011-05-19 Anatoly Sokolov <aesok@post.ru>
795 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
797 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
799 2011-05-19 Richard Guenther <rguenther@suse.de>
802 * tree-object-size.c (addr_object_size): If the pointed-to
803 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
805 2011-05-19 Richard Guenther <rguenther@suse.de>
807 * gimple.c (gimple_types_compatible_p_1): Compare names of
808 the types themselves.
809 (iterative_hash_gimple_type): And hash them that way.
810 (gimple_register_type_1): If we register a main variant properly
811 initialize the leader to ourselves.
813 2011-05-19 Tom de Vries <tom@codesourcery.com>
816 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
817 get_loop_invariant_expr_id.
818 (get_loop_invariant_expr_id): Use get_expr_id.
819 (parm_decl_cost): New function.
820 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
821 Improve bound cost estimation. Use different inv_expr_id for elim and
824 2011-05-19 Tom de Vries <tom@codesourcery.com>
827 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
830 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
833 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
834 Properly handle load cast.
836 2011-05-18 Jakub Jelinek <jakub@redhat.com>
838 PR tree-optimization/49039
839 * tree-vrp.c (extract_range_from_binary_expr): For
840 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
841 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
843 2011-05-18 Tom de Vries <tom@codesourcery.com>
846 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
848 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
850 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
851 (*tls_global_dynamic_64): Ditto.
852 (*tls_local_dynamic_base_32_gnu): Ditto.
853 (*tls_local_dynamic_base_64): Ditto.
854 (tls_initial_exec_64_sun): Ditto.
856 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
858 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
859 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
861 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
862 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
863 * config/bfin/bfin.c (bfin_cpus): Add bf592.
864 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
865 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
866 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
867 * config/bfin/elf.h (LIB_SPEC): Add bf592.
869 2011-05-18 Joseph Myers <joseph@codesourcery.com>
871 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
872 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
873 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
874 target_thread_pointer, arm_structure_size_boundary, struct
875 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
876 struct abi_name, arm_all_abis): Remove.
877 (arm_option_override) Don't process most enumerated option values here.
878 Don't process target_fpe_name here. Work with integer not string for
879 structure size boundary; use separate diagnostics for each case.
880 * config/arm/arm.h (enum float_abi_type, enum
881 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
883 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
884 arm_structure_size_boundary): Remove.
885 * config/arm/arm.opt (mabi=): Use Enum and Init.
886 (arm_abi_type): New Enum and EnumValue entries.
887 (mfloat-abi=): Use Enum and Init.
888 (float_abi_type): New Enum and EnumValue entries.
889 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
890 (mfp16-format=): Use Enum and Init.
891 (arm_fp16_format_type): New Enum and EnumValue entries.
892 (mstructure-size-boundary=): Use UInteger and Init.
893 (mtp=): Use Enum and Init.
894 (arm_tp_type): New Enum and EnumValue entries.
896 2011-05-18 Richard Guenther <rguenther@suse.de>
898 PR tree-optimization/49018
899 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
900 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
901 gimple_has_side_effects.
903 2011-05-18 Richard Guenther <rguenther@suse.de>
905 * gimple.c (gimple_register_type_1): New function, split out from ...
906 (gimple_register_type): ... here. Avoid infinite recursion.
908 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
910 PR tree-optimization/41881
911 * tree-vectorizer.h (struct _loop_vec_info): Add new field
912 reduction_chains along with a macro for its access.
913 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
914 (destroy_loop_vec_info): Free reduction chains.
915 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
916 (vect_is_slp_reduction): New function.
917 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
918 (vect_create_epilog_for_reduction): Support SLP reduction chains.
919 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
920 definition types for reduction chains.
921 (vect_supported_load_permutation_p): Don't allow permutations for
923 (vect_analyze_slp_instance): Support reduction chains.
924 (vect_analyze_slp): Try to build SLP instance from reduction chains.
925 (vect_get_constant_vectors): Handle reduction chains.
926 (vect_schedule_slp_instance): Mark the first statement of the
927 reduction chain as reduction.
929 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
931 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
932 names for group elements access.
933 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
934 reduction chains as well. Remove data reference and interleaving
935 related words from the fields names.
936 * tree-vect-loop.c (vect_transform_loop): Use new names for group
938 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
939 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
940 vect_update_interleaving_chain, vect_same_range_drs,
941 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
942 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
943 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
944 vect_analyze_group_access, vect_analyze_data_ref_access,
945 vect_create_data_ref_ptr, vect_transform_strided_load,
946 vect_record_strided_load_vectors): Likewise.
947 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
948 vect_model_load_cost, vectorizable_store, vectorizable_load,
949 vect_remove_stores, new_stmt_vec_info): Likewise.
950 * tree-vect-slp.c (vect_build_slp_tree,
951 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
953 2011-05-18 Richard Guenther <rguenther@suse.de>
956 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
957 operand verification.
958 (verify_gimple_assign_binary): Likewise.
959 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
960 to non-1-precision BOOLEAN_TYPEs.
962 2011-05-18 Tom de Vries <tom@codesourcery.com>
965 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
967 2011-05-18 Jakub Jelinek <jakub@redhat.com>
969 PR tree-optimization/49000
970 * tree-ssa.c (execute_update_addresses_taken): Call
971 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
972 be rewritten and decl has been marked for renaming, reset
975 2011-05-17 Joseph Myers <joseph@codesourcery.com>
977 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
978 enum_opts_set when testing if attributes have set -mfpmath=.
980 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
982 * config/mips/mips.c (mips_handle_option): Remove unused variable.
984 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
986 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
988 * tree-inline.c (maybe_inline_call_in_expr): Initialize
989 id.transform_lang_insert_block with NULL.
991 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
993 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
994 (output_fp_compare): Change args 3 and 4 to bool.
995 (ix86_expand_call): Change arg 6 to bool.
996 (ix86_attr_length_immediate_default): Change arg 2 to bool.
997 (ix86_attr_length_vex_default): Change arg 3 to bool.
998 * config/i386/i386.md: Update all uses.
999 * config/i386/i386.c: Ditto.
1000 (ix86_flags_dependent): Change return type to bool.
1002 2011-05-17 Richard Guenther <rguenther@suse.de>
1004 * gimple.c (type_hash_pair_compare): Fix comparison.
1006 2011-05-17 Richard Guenther <rguenther@suse.de>
1008 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1009 case some more, fix final hash value of the non-singleton case.
1011 2011-05-17 Richard Guenther <rguenther@suse.de>
1015 2011-05-16 Richard Guenther <rguenther@suse.de>
1017 * gimple.c (gimple_types_compatible_p_1): Use names of the
1018 type itself, not its main variant.
1019 (iterative_hash_gimple_type): Likewise.
1021 2011-05-17 Richard Guenther <rguenther@suse.de>
1023 * gimple.c (gimple_register_canonical_type): Use the main-variant
1024 leader for computing the canonical type.
1026 2011-05-17 Nick Clifton <nickc@redhat.com>
1028 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1031 * config/rx/rx.md: Add peephole to remove redundant extensions
1033 (bitset_in_memory): Use rx_restricted_mem_operand.
1034 (bitinvert_in_memory): Likewise.
1035 (bitclr_in_memory): Likewise.
1037 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1038 Nick Clifton <nickc@redhat.com>
1040 * config/rx/rx.md: Add peepholes to match a register move followed
1041 by a comparison of the moved register. Replace these with an
1042 addition of zero that does both actions in one instruction.
1044 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1047 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1048 predicate to allow CONST_INT.
1049 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1051 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1053 * opts-common.c (opt_enum_arg_to_value): New.
1054 * opts.h (opt_enum_arg_to_value): Declare.
1055 * config/i386/i386.opt (fpmath): Remove.
1056 (mfpmath=): Use Enum, Init and Save.
1057 (fpmath_unit): New Enum and EnumValue entries.
1058 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1059 name for function fpmath state.
1060 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1061 * config/i386/i386.c: Include diagnostic.h.
1062 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1063 (ix86_target_string): Take enum fpmath_unit value instead of string.
1064 (ix86_debug_options): Update call to ix86_target_string.
1065 (ix86_option_override_internal): Don't process fpmath strings here.
1066 (x86_function_specific_save, ix86_function_specific_restore):
1067 Don't handle fpmath state specially.
1068 (ix86_function_specific_print): Pass fpmath state to
1069 ix86_target_string instead of printing in this function.
1070 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1071 Handle enum attributes.
1072 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1073 (ix86_valid_target_attribute_tree): Update option_strings
1074 handling. Handle fpmath as enum option.
1075 (ix86_can_inline_p): Update field names for function fpmath state.
1076 (ix86_expand_builtin): Update call to ix86_target_string.
1077 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1078 (ix86_fpmath): Remove.
1079 * config/i386/t-i386 (i386.o): Update dependencies.
1081 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1083 PR preprocessor/48677
1084 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1085 from decoded_options[0], not from itself.
1087 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1089 * config/i386/constraints.md (z): New constraint.
1090 * config/i386/i386.c (c): New mode attribute.
1091 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1092 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1093 constraint for operand 0.
1094 (*call_vzeroupper): Ditto.
1095 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1096 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1097 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1098 Use "lzm" constraint for operand 0.
1099 (*call_pop_vzeroupper): Ditto.
1100 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1101 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1102 constraint for operand 0.
1103 (*sibcall_vzeroupper): Ditto.
1104 (*sibcall_rex64_ms_sysv): Ditto.
1105 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1106 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1107 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1108 (*sibcall_pop_vzeroupper): Ditto.
1109 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1110 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1111 mode iterator. Use "<c>zm" constraint for operand 1.
1112 (*call_value_vzeroupper): Ditto.
1113 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1115 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1116 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1117 *call_value_pop_1. Use "lzm" constraint for operand 1.
1118 (*call_value_pop_vzeroupper): Ditto.
1119 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1120 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1121 mode iterator. Use "Uz" constraint for operand 1.
1122 (*sibcall_value_vzeroupper): Ditto.
1123 (*sibcall_value_rex64_ms_sysv): Ditto.
1124 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1125 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1126 constraint for operand 1.
1127 (*sibcall_value_pop_vzeroupper): Ditto.
1128 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1129 and "z" constraint for operand 2.
1130 (*tls_global_dynamic_32_gnu): Ditto.
1131 (*tls_local_dynamic_base_32_gnu): Ditto.
1132 (*tls_local_dynamic_base_64): Ditto.
1133 (*tls_local_dynamic_32_once): Ditto.
1134 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1136 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1138 2011-05-16 Richard Guenther <rguenther@suse.de>
1140 * gimple.c (gimple_types_compatible_p_1): Use names of the
1141 type itself, not its main variant.
1142 (iterative_hash_gimple_type): Likewise.
1144 2011-05-16 Richard Guenther <rguenther@suse.de>
1146 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1147 always visit pointer target and function result and argument types.
1149 2011-05-16 Jason Merrill <jason@redhat.com>
1152 * tree-inline.c (copy_statement_list): Put back recursion.
1154 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1158 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1159 * config/avr/avr.md ("*ior<mode>qi.byte0",
1160 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1162 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1165 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1166 register is needed for a function argument.
1168 2011-05-16 Richard Guenther <rguenther@suse.de>
1170 * gimple.c (struct type_hash_pair): New type.
1171 (type_hash_pair_compare): New function.
1172 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1174 2011-05-16 Revital Eres <revital.eres@linaro.org>
1176 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1178 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1180 * config/i386/i386.md (floating point move splitters): Fix
1181 usage of standard_80387_constant_p.
1182 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1184 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1186 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1188 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1190 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1191 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1192 (tree_ssa_lim_finalize): Likewise.
1194 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1196 * config/i386/constraint.md (Yd, Yx): New register constraints.
1197 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1198 Yd conditional register constraint.
1199 (*movtf_internal): Use standard_sse_constant_opcode.
1200 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1201 Yx conditional register constraint.
1202 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1203 Yd conditional register constraint. Use standard_sse_constant_p to
1204 check for valid SSE constants and call standard_sse_constant_opcode to
1206 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1207 constants and call standard_sse_constant_opcode to output SSE insn.
1208 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1209 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1210 optimize_size is set.
1211 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1213 2011-05-14 Tobias Burnus <burnus@net-b.de>
1215 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1217 2011-05-13 Martin Jambor <mjambor@suse.cz>
1219 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1220 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1221 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1222 (evaluate_conditions_for_ipcp_clone): Removed.
1223 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1224 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1225 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1227 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1229 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1230 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1231 lieu of MAY_HAVE_DEBUG_STMTS.
1232 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1233 debug statements if !MAY_HAVE_DEBUG_STMTS.
1235 2011-05-13 Martin Thuresson <martint@google.com>
1237 PR gcov-profile/47793
1238 * libgcov.c (gcov_exit): Support relative profile paths.
1239 * doc/invoke.texi (-fprofile-dir): Update for above change.
1241 2011-05-13 Richard Guenther <rguenther@suse.de>
1243 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1244 type-pair caching, do not compare hashes.
1246 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1249 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1250 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1252 2011-05-13 Kai Tietz <ktietz@redhat.com>
1254 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1255 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1256 compatible type for TRUTH_NOT_EXPR.
1258 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1260 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1261 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1262 can_create_pseudo_p ().
1264 2011-05-13 Richard Guenther <rguenther@suse.de>
1267 * gimple.c (iterative_hash_gimple_type): Revert change in
1268 pointer target and function result and argument hashing.
1270 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1272 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1273 (*movxf_internal_nointeger): Ditto.
1274 (*movdf_internal_rex64): Ditto.
1275 (*movdf_internal): Ditto.
1276 (*movdf_internal_nointeger): Ditto.
1277 (*movsf_internal): Ditto.
1278 (sincos splitters): Use can_create_pseudo ().
1280 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1282 * config/i386/i386-opts.h: New.
1283 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1284 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1285 ix86_section_threshold): Remove.
1286 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1287 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1289 (ix86_option_override_internal): Don't decode strings for options
1290 other than -march=, -mtune= and -mfpmath=. Don't allow for
1291 __attribute__ uses in remaining diagnostics for options with
1292 string arguments. Don't check for integer arguments being negative.
1293 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1294 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1295 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1296 ix86_branch_cost, ix86_section_threshold): Remove.
1297 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1299 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1301 (masm=): Use Enum and Init.
1302 (asm_dialect): New Enum and EnumValue entries.
1303 (mbranch-cost=): Use UInteger.
1304 (mlarge-data-threshold=): Use UInteger and Init.
1305 (mcmodel=): Use Enum and Init.
1306 (cmodel): New Enum and EnumValue entries.
1307 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1308 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1309 mregparm=): Use UInteger.
1310 (mstringop-strategy=): Use Enum and Init.
1311 (stringop_alg): New Enum and EnumValue entries.
1312 (mtls-dialect=): Use Enum and Init.
1313 (tls_dialect): New Enum and EnumValue entries.
1314 (mabi=): Use Enum and Init.
1315 (calling_abi): New Enum and EnumValue entries.
1316 (mveclibabi=): Use Enum and Init.
1317 (ix86_veclibabi): New Enum and EnumValue entries.
1319 2011-05-13 Nick Clifton <nickc@redhat.com>
1321 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1322 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1324 2011-05-13 Kai Tietz <ktietz@redhat.com>
1327 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1328 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1329 (gimple_boolify): Check for cast for boolean_type_node instead for
1332 2011-05-13 Richard Guenther <rguenther@suse.de>
1334 PR tree-optimization/48172
1335 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1336 multiplying by number of iterations for equal step.
1337 (vect_create_cond_for_alias_checks): Likewise.
1339 2011-05-13 Andreas Schwab <schwab@redhat.com>
1341 * configure.ac: Use AS_HELP_STRING throughout.
1342 * configure: Regenerate.
1344 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1346 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1347 (ix86_emit_restore_regs_using_mov): Likewise.
1348 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1350 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1352 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1353 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1354 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1355 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1356 RTX_OK_FOR_OLO10_P): ...here.
1357 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1360 2011-05-12 Kai Tietz <ktietz@redhat.com>
1362 * gimplify.c (gimple_boolify): Re-boolify expression
1363 arguments even if expression type is of kind BOOLEAN_TYPE.
1364 (gimplify_boolean_expr): Removed.
1365 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1366 and XOR. Additional take care that we keep expression's type.
1367 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1368 of TRUTH_AND|OR|XOR_EXPR.
1370 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1372 PR tree-optimization/48975
1373 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1374 on all bbs here and free and clear ifc_bbs at the end.
1376 2011-05-12 Richard Guenther <rguenther@suse.de>
1378 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1379 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1380 until after simple checks.
1381 (gimple_types_compatible_p): Likewise.
1382 (iterative_hash_gimple_type): Always hash pointer targets
1383 and function return and argument types.
1384 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1385 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1386 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1387 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1388 completely in the simple compare section.
1389 (gimple_register_canonical_type): Query the cache again after
1392 2011-05-12 Richard Guenther <rguenther@suse.de>
1394 PR tree-optimization/48172
1395 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1396 the number of iterations from the segment size calculation.
1397 (vect_create_cond_for_alias_checks): Adjust.
1399 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1402 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1403 if validate_subreg fails.
1405 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1407 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1408 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1411 2011-05-12 DJ Delorie <dj@redhat.com>
1413 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1414 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1415 created builtin into rx_builtins array.
1416 (rx_builtin_decl): New function.
1417 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1419 2011-05-12 DJ Delorie <dj@redhat.com>
1420 Nick Clifton <nickc@redhat.com>
1422 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1423 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1424 (rx_is_legitimate_address): Add pre-decrement and post-increment
1425 addressing in HImode and QImode. Fix test for out of range
1427 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1428 (rx_align_for_label): Test label before extracting its usage count.
1429 (rx_adjust_insn_lengths): Fix selection of insn codes.
1430 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1432 2011-05-11 Jason Merrill <jason@redhat.com>
1434 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1436 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1438 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1439 reindent the subsequent block.
1441 2011-05-11 Satoru Takabayashi <satorux@google.com>
1442 Paul Pluzhnikov <ppluzhnikov@google.com>
1444 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1445 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1446 * config.in: Add LINKER_HASH_STYLE.
1447 * configure.ac: Add --with-linker-hash-style.
1448 * configure: Regenerate.
1450 2011-05-11 Richard Guenther <rguenther@suse.de>
1453 * gimple.c (iterative_hash_canonical_type): Fix typo.
1455 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1457 * config/i386/i386.c (legitimize_tls_address)
1458 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1459 expanders directly for TARGET_GNU2_TLS. Determine pic and
1460 __tls_get_addr symbol reference here. Update call to
1461 gen_tls_global_dynamic_{32,64} for added arguments.
1462 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1463 expanders directly for TARGET_GNU2_TLS. Determine
1464 __tls_get_addr symbol reference here. Update call to
1465 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1466 unique UNSPEC REG_EQUIV to libcall block.
1467 (ix86_tls_get_addr): Declare static.
1468 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1469 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1470 Do not determine pic and __tls_get_addr symbol reference here. Do not
1471 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1472 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1473 (tls_global_dynamic_64): Add operand 2. Do not determine
1474 __tls_get_addr symbol reference here. Do not call
1475 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1476 (tls_local_dynamic_base64): Ditto for operand 1.
1478 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1480 * function.c (expand_function_start): Initialize stack_check_probe_note
1481 only if the generic stack checking mechanism is used.
1483 2011-05-11 Richard Guenther <rguenther@suse.de>
1485 PR tree-optimization/15256
1486 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1487 (A & B) | C, combine (A op CST1) op CST2.
1488 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1489 visit assigns that have uses.
1491 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1493 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1494 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1495 (unpack_ts_type_common_value_fields): ...this. Update comment.
1496 (unpack_value_fields): Adjust for renaming.
1497 (lto_input_ts_type_tree_pointers): Split into...
1498 (lto_input_ts_type_common_tree_pointer): ...this and...
1499 (lto_input_ts_type_non_common_tree_pointers): ...this.
1500 (lto_input_tree_pointers): Adjust for above split.
1501 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1502 (pack_ts_type_common_value_fields): ...this. Update comment.
1503 (lto_output_ts_type_tree_pointers): Split into...
1504 (lto_output_ts_type_common_tree_pointers): ...this and...
1505 (lto_output_ts_type_non_common_tree_pointers): ...this.
1506 (lto_output_tree_pointers): Adjust for above split.
1507 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1508 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1509 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1510 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1512 (struct tree_type): Split into...
1513 (struct tree_type_common: ...this and...
1514 (struct tree_type_with_lang_specific): ...this and...
1515 (struct tree_type_non_common): ...this. Adjust accessor macros
1517 (TYPE_VALUES_RAW): Define.
1518 (union tree_node): Update for above changes.
1519 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1521 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1522 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1523 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1524 * treestructu.def (TS_TYPE): Remove.
1525 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1528 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1531 * tree-ssa.c (reset_debug_uses): New function.
1532 * tree-flow.h (reset_debug_uses): New prototype.
1533 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1534 * tree-loop-distribution.c (generate_loops_for_partition): Call
1535 reset_debug_uses on the stmts that will be removed. Keep around
1536 all debug stmts, don't count them as bits in partition bitmap.
1537 (generate_builtin): Don't count debug stmts or labels as bits in
1540 2011-05-11 Richard Guenther <rguenther@suse.de>
1542 * gimple.c (gimple_type_hash_1): Merge with ...
1543 (gimple_type_hash): ... this.
1544 (gtc_visit): Remove mode parameter and simplify accordingly.
1545 (gimple_types_compatible_p_1): Likewise.
1546 (gimple_types_compatible_p): Likewise.
1547 (iterative_hash_gimple_type): Likewise.
1549 (gimple_type_eq): Adjust.
1551 2011-05-11 Revital Eres <revital.eres@linaro.org>
1553 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1554 enters the branch create an anti edge in the opposite direction
1555 to prevent the creation of reg-moves.
1556 * modulo-sched.c: Adjust comment to reflect the fact we are
1557 scheduling closing branch.
1558 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1559 (stage_count): New field in struct partial_schedule.
1560 (calculate_stage_count): New function.
1561 (normalize_sched_times): Rename to reset_sched_times and handle
1562 incrementing the sched time of the nodes by a constant value
1563 passed as parameter.
1564 (duplicate_insns_of_cycles): Skip closing branch.
1565 (sms_schedule_by_order): Schedule closing branch.
1566 (ps_insn_find_column): Handle closing branch.
1567 (sms_schedule): Call reset_sched_times and adjust the code to
1568 support scheduling of the closing branch.
1569 (ps_insert_empty_row): Update calls to normalize_sched_times
1570 and rotate_partial_schedule functions.
1572 2011-05-11 Richard Guenther <rguenther@suse.de>
1575 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1577 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1579 * opts.c (finish_options): Move warning settings from process_options.
1580 * toplev.c (process_options): Move warning settings to finish_options.
1582 2011-05-11 Richard Guenther <rguenther@suse.de>
1584 PR tree-optimization/18041
1585 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1586 (simplify_bitwise_binary): ... this. Handle operand conversions
1587 by applying them to the result instead.
1588 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1590 2011-05-11 Richard Guenther <rguenther@suse.de>
1592 * gimple.c (gimple_canonical_types_compatible_p): Split out
1593 from gimple_types_compatible_p and friends. Do not recurse
1594 to pointed-to types.
1595 (gimple_canonical_type_eq): Use it.
1596 (iterative_hash_canonical_type): Split out from
1597 iterative_hash_gimple_type and friends. Do not recurse
1598 to pointed-to types.
1599 (gimple_canonical_type_hash): Use it, allocate the hash here.
1601 2011-05-11 Revital Eres <revital.eres@linaro.org>
1603 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1606 2011-05-11 Revital Eres <revital.eres@linaro.org>
1608 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1609 instead of PREV_INSN.
1611 2011-05-11 Revital Eres <revital.eres@linaro.org>
1613 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1614 * loop-doloop.c (doloop_condition_get): Likewise.
1615 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1617 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1619 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1621 * tree.def (CASE_LABEL_EXPR): Add an operand.
1622 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1624 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1626 * c-decl.c (c_override_global_bindings_to_false): Remove.
1627 (global_bindings_p): Don't check
1628 c_override_global_bindings_to_false.
1629 * c-tree.h (c_override_global_bindings_to_false): Remove.
1630 * c-typeck.c (composite_type): Don't set
1631 c_override_global_bindings_to_false.
1633 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1635 PR target/48857, 48495
1636 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1638 (VSX_MOVE_MODE): Ditto.
1639 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1640 VSX vector types. Add V2DImode.
1641 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1642 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1643 (MODES_TIEABLE_P): Ditto.
1645 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1646 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1648 (init_cumulative_args): Ditto.
1649 (rs6000_function_arg_boundary): Ditto.
1650 (rs6000_function_arg_advance_1): Ditto.
1651 (rs6000_function_arg): Ditto.
1652 (rs6000_function_ok_for_sibcall): Ditto.
1653 (emit_frame_save): Ditto.
1654 (rs6000_function_value): Ditto.
1655 (rs6000_libcall_value): Ditto.
1657 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1659 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1660 i386/darwin-lib.h to $libgcc_tm_file.
1661 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1663 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1665 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1667 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1669 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1670 * config/rs6000/rs6000-tables.opt: New file (generated).
1671 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1672 rs6000/rs6000-tables.opt to extra_options.
1673 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1674 * config/rs6000/rs6000.c (rs6000_select): Remove.
1675 (processor_target_table): Move contents to rs6000-cpus.def.
1676 (darwin_rs6000_override_options): Check
1677 global_options_set.x_rs6000_cpu_index instead of
1678 rs6000_select[1].string.
1679 (rs6000_option_override_internal): Likewise.
1680 (rs6000_handle_option): Don't assert that global structures are in
1681 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1682 (rs6000_default_cpu): New variable.
1683 (rs6000_file_start): Set it instead of local default_cpu. Check
1684 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1685 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1686 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1687 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1688 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1689 rs6000_select): Remove.
1690 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1692 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1693 * config/rs6000/t-rs6000
1694 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1695 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1696 global_options_set.x_rs6000_cpu_index instead of
1697 rs6000_select[1].string.
1698 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1699 global_options_set.x_rs6000_cpu_index instead of
1700 rs6000_select[1].string.
1702 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1704 * config.gcc (libgcc_tm_file): Define instead of including files
1705 from ../../libgcc/config/ in tm_file.
1706 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1707 * configure: Regenerate.
1708 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1709 libgcc_tm.h, cs-libgcc_tm.h): New.
1710 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1711 (clean): Remove libgcc_tm.h.
1712 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1713 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1714 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1716 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1719 * config/avr/avr.c (avr_ret_register): Return unsigned int
1721 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1722 it to avr_libcall_value.
1723 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1725 (avr_expand_binop_builtin): Ditto.
1726 (avr_expand_unop_builtin): Ditto.
1728 2011-05-10 DJ Delorie <dj@redhat.com>
1730 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1731 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1732 * config/rx/rx.c (rx_align_for_label): Add label and
1733 uses_threshold parameters. Do not align when the label is not
1735 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1737 2011-05-10 Richard Guenther <rguenther@suse.de>
1739 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1740 a series of conversions and apply foldings similar to what
1742 (tree_ssa_forward_propagate_single_use_vars): Call it.
1744 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1746 PR tree-optimization/48611
1747 PR tree-optimization/48794
1748 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1749 referenced from RESX or EH_DISPATCH arguments.
1752 * dfp.c (decimal_to_decnumber): Handle conversion from
1753 dconst{1,2,m1,half}.
1755 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1757 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1758 for !flag_prefer_avx128.
1759 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1761 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1763 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1764 (fold_ternary_loc): Use expr_location_or.
1766 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1769 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1770 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1771 Pmode and mem_mode is not VOIDmode.
1773 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1775 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1776 TYPE_QUAL_RESTRICT): Convert to enum.
1778 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1780 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1781 (const_pow2_1_to_8_operand): Ditto.
1782 (const_pow2_1_to_128_operand): Ditto.
1783 (const_pow2_1_to_32768_operand): Ditto.
1784 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1785 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1786 in insn constraint to check integer value of operand 3.
1787 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1789 (PINSR_MODE): New mode iterator.
1790 (sse2p4_1): New mode attribute.
1791 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1792 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1793 iterator. Use const_int_operand instead of
1794 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1795 exact_log2 in insn constraint to check integer value of operand 3.
1797 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1799 * config/i386/sse.md (blendbits): Remove mode attribute.
1800 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1801 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1802 Check integer value of operand 3 in insn constraint.
1804 2011-05-09 Richard Guenther <rguenther@suse.de>
1806 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1808 (lto_symtab_merge): Likewise. Do not register types here.
1809 (lto_symtab_merge_decls_2): Likewise.
1810 (lto_symtab_merge_decls_1): Likewise.
1811 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1812 * gimple.c (enum gtc_mode): Declare.
1813 (gimple_types_compatible_p): Make static.
1815 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1817 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1818 temporary register to match Pmode.
1820 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1822 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1823 and *vec_concatv4si_1_avx.
1825 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1827 PR rtl-optimization/48927
1828 * ira-conflicts.c (commutative_constraint_p): Use
1829 recog_data.alternative_enabled_p to disable alternatives where
1830 "enabled" attribute is false.
1831 (get_dup_num): Ditto.
1832 * ira-lives.c (single_reg_class): Ditto.
1833 (ira_implicitly_set_insn_hard_regs): Ditto.
1835 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1837 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1838 (dataflow_set_preserve_mem_locs): Likewise.
1840 2011-05-09 Philipp Thomas <pth@suse.de>
1842 * config/mep/mep.c (mep_validate_vliw): Syntax description
1843 should not be translated.
1845 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1847 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1848 * config/mips/mips-tables.opt: New file (generated).
1849 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1850 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1851 MIPS_ARCH_OPTION_NATIVE): Define.
1852 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1854 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1855 mips_parse_cpu): Remove.
1856 (mips_cpu_info_from_opt, mips_default_arch): New.
1857 (mips_handle_option): Don't assert that global structures are in
1858 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1859 (mips_option_override): Use new variables and functions to set
1860 state of these options. Use strcmp to check for individual CPU names.
1861 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1863 * config/mips/mips.opt (march=): Use ToLower and Enum.
1864 (mips): Use ToLower, Enum and Var.
1865 (mtune=): Use ToLower and Enum.
1866 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1868 2011-05-08 Jan Hubicka <jh@suse.cz>
1870 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1871 Arrange type pairs to be UID ordered.
1872 (gimple_lookup_type_leader): Make inline.
1874 2011-05-09 Nick Clifton <nickc@redhat.com>
1877 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1881 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1884 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1886 * combine.c (simplify_comparison): Abstract out parts into...
1887 (simplify_compare_const): ... new function.
1888 (try_combine): Generalize parallel arithmetic/compare combining
1889 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1891 2011-05-08 Jan Hubicka <jh@suse.cz>
1893 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1894 (cgraph_create_virtual_clone): Call hooks once virtual clone
1896 * cgraph.h (cgraph_clone_node): Update prototype.
1897 * ipa-cp.c (ipcp_estimate_growth): Use
1898 estimate_ipcp_clone_size_and_time.
1899 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1900 * lto-cgraph.c (input_node): Update.
1901 * ipa-inline.c (recursive_inlining): Update.
1902 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1903 (evaluate_conditions_for_known_args): Break out from ...
1904 (evaluate_conditions_for_edge): ... here.
1905 (evaluate_conditions_for_ipcp_clone): New function.
1906 (inline_node_duplication_hook): Update clone summary based
1908 (estimate_callee_size_and_time): Rename to ...
1909 (estimate_node_size_and_time): take NODE instead of EDGE;
1910 take POSSIBLE_TRUTHS as argument.
1911 (estimate_callee_size_and_time): Update.
1912 (estimate_ipcp_clone_size_and_time): New function.
1913 (do_estimate_edge_time): Update.
1915 2011-05-08 Richard Guenther <rguenther@suse.de>
1919 * expmed.c (expand_shift_1): Compute adjusted constant shift
1922 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1924 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1926 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1928 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1930 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1932 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1934 2011-05-07 Jan Hubicka <jh@suse.cz>
1936 * ipa-inline-transform.c (inline_call): Account when program size
1938 * ipa-inline.c (relative_time_benefit): New function.
1939 (edge_badness): Reorganize to be power 2 based; fix thinko when
1940 computing badness for negative growth; update comments to match
1941 reality; better dumps.
1943 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1945 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1946 type to bool and adjust comment.
1947 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1948 (fold_mathfn_compare): Remove calls to global_bindings_p.
1949 (fold_inf_compare): Likewise.
1950 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1951 * c-tree.h (global_bindings_p): Adjust prototype.
1952 * c-decl.c (global_bindings_p): Return bool and simplify.
1954 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1956 PR tree-optimization/48837
1957 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1958 when accumulator transformation is performed.
1960 2011-05-06 Jan Hubicka <jh@suse.cz>
1962 * i386.h (ix86_tune_indices): Add
1963 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1964 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1965 * i386.c (initial_ix86_tune_features): Add
1966 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1967 (software_prefetching_beneficial_p): Remove predicate.
1968 (ix86_option_override_internal): Use new macro.
1970 2011-05-06 Jan Hubicka <jh@suse.cz>
1972 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1974 2011-05-06 Jan Hubicka <jh@suse.cz>
1976 * cgraph.c (cgraph_add_thunk): Create real function node instead
1977 of alias node; finalize it and mark needed/reachale; arrange visibility
1978 to be right and add it into the corresponding same comdat group list.
1979 (dump_cgraph_node): Dump thunks.
1980 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1981 cgraph_function_with_gimple_body_p,
1982 cgraph_first_function_with_gimple_body,
1983 cgraph_next_function_with_gimple_body): New functions.
1984 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1986 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1987 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1988 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1989 devirtualization when optimizing.
1990 (verify_cgraph_node): Verify thunks.
1991 (cgraph_analyze_function): Analyze thunks.
1992 (cgraph_mark_functions_to_output): Output thunks only in combination
1993 with function they are assigned to.
1994 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1995 alias into normal node.
1996 (assemble_thunks): New functoin.
1997 (cgraph_expand_function): Use it.
1998 * lto-cgraph.c (lto_output_node): Stream thunks.
1999 (input_overwrite_node): Stream in thunks.
2000 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2001 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2002 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2003 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2004 (inline_analyze_function): Do not care about thunk jump functions.
2005 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2006 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2007 cgraph_function_with_gimple_body_p.
2008 * passes.c (do_per_function_toporder): Use
2009 cgraph_function_with_gimple_body_p.
2010 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2011 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2012 (function_called_by_processed_nodes_p): Likewise.
2014 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2016 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2017 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2019 (mabi=): Replace with separate entries for mabi=altivec,
2020 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2021 mabi=ieeelongdouble and mabi=ibmlongdouble.
2022 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2023 check for -mabi=spe without SPE ABI support here.
2024 (rs6000_handle_option): Replace OPT_mabi_ handling with
2025 OPT_mabi_altivec and OPT_mabi_spe handling.
2027 2011-05-06 Cary Coutant <ccoutant@google.com>
2029 * dwarf2out.c (contains_subprogram_definition): New function.
2030 (should_move_die_to_comdat): Call it.
2032 2011-05-06 Jeff Law <law@redhat.com>
2034 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2035 remove_ctrl_stmt_and_useless_edges.
2036 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2037 (fixup_template_block, thread_single_edge): Likewise.
2038 (mark_threaded_blocks): Use THREAD_TARGET.
2040 2011-05-06 Alan Modra <amodra@gmail.com>
2043 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2044 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2046 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2048 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2049 constraint modifier to "r".
2051 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2053 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2054 fall through for OPT_mcmodel_.
2056 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2058 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2060 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2062 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2065 * config/arm/arm.opt (marm): Document it.
2066 (mthumb): Reject negative variant.
2068 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2071 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2072 Fix typo in "ccvt" variable name.
2074 2011-05-06 Tristan Gingold <gingold@adacore.com>
2077 * config/vms/vms-ar.c (main): Remove cwd variable.
2079 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2082 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2084 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2086 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2087 * gimplify.c (gimplify_switch_expr): Likewise.
2088 * omp-low.c (expand_omp_sections): Likewise.
2089 * tree-eh.c (lower_try_finally_switch): Likewise.
2090 (lower_eh_dispatch): Likewise.
2091 * tree.h (build_case_label): Declare.
2092 * tree.c (build_case_label): Define.
2094 2011-05-05 Jason Merrill <jason@redhat.com>
2097 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2098 (copy_statement_list): Don't recurse.
2099 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2102 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2104 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2105 through from -mfpu= handling.
2106 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2108 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2110 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2113 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2115 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2117 (hppa[12]*-*-hpux11*): Ditto.
2118 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2119 * config/ia64/hpux-unix2003.h: New.
2120 * config/pa/pa-hpux1131.opt: New.
2121 * config/pa/pa-hpux1131.h: New.
2122 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2123 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2124 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2126 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2129 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2130 instead of mode as 3rd argument to recursive call.
2131 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2132 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2134 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2135 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2136 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2137 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2139 2011-05-05 Julian Brown <julian@codesourcery.com>
2141 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2142 parenthesis in D-register case.
2144 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2146 * opt-functions.awk (var_type_struct): Handle Enum options.
2147 * optc-gen.awk: Don't check range of variables of character type.
2148 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2149 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2150 rs6000_sdata_name, rs6000_explicit_options): Remove.
2151 (rs6000_option_override_internal): Check for -malign-power here.
2152 Use global_options_set instead of rs6000_explicit_options.
2153 (rs6000_parse_fpu_option): Remove.
2154 (rs6000_handle_option): Access variables via opts and opts_set
2155 pointers. Use error_at and warning_at. Add fall-through
2156 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2157 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2158 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2159 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2160 here. Don't use rs6000_parse_fpu_option.
2161 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2162 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2163 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2165 (mspe): Use Var and Save.
2166 (mtraceback=): Use Enum and Var.
2167 (rs6000_traceback_type): New Enum and EnumValue entries.
2168 (mfloat-gprs=): Use Enum, Var and Save.
2169 (rs6000_float_gprs): New Enum and EnumValue entries.
2170 (mlong-double-): use Var and Save.
2171 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2172 (malign-): Use Enum and Var.
2173 (rs6000_alignment_flags): New Enum and EnumValue entries.
2175 (fpu_type_t): New Enum and EnumValue entries.
2176 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2177 global_options_set instead of rs6000_explicit_options.
2178 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2179 global_options_set instead of rs6000_explicit_options.
2180 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2181 global_options_set instead of rs6000_explicit_options.
2182 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2183 global_options_set instead of rs6000_explicit_options.
2184 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2185 global_options_set instead of rs6000_explicit_options.
2186 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2187 global_options_set instead of rs6000_explicit_options.
2188 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2190 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2191 global_options_set instead of rs6000_explicit_options.
2192 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2193 (rs6000_cmodel): New Enum and EnumValue entries.
2194 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2195 global_options_set instead of rs6000_explicit_options.
2196 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2197 (mtls-size=): Use Enum and Var.
2198 (rs6000_tls_size): New Enum and EnumValue entries.
2200 2011-05-05 Michael Matz <matz@suse.de>
2202 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2203 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2204 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2205 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2206 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2207 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2208 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2209 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2210 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2211 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2212 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2213 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2214 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2215 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2216 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2217 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2219 2011-05-05 Richard Guenther <rguenther@suse.de>
2221 * expmed.c (expand_variable_shift): Rename to ...
2222 (expand_shift_1): ... this. Take an expanded shift amount.
2223 For rotates recurse directly not building trees for the shift amount.
2224 (expand_variable_shift): Wrap around expand_shift_1.
2225 (expand_shift): Adjust.
2227 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2229 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2231 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2233 * tree.h (get_pending_sizes): Remove prototype.
2234 (put_pending_size): Likewise.
2235 (put_pending_sizes): Likewise.
2236 * stor-layout.c (pending_sizes): Delete.
2237 (get_pending_sizes): Likewise.
2238 (put_pending_size): Likewise.
2239 (put_pending_sizes): Likewise.
2240 (variable_size): Do not call put_pending_size and tidy up.
2241 * function.h (struct function): Remove dont_save_pending_sizes_p.
2242 * lto-streamer-in.c (input_function): Do not stream it.
2243 * lto-streamer-out.c (output_function): Likewise.
2244 * tree-inline.c (initialize_cfun): Do not copy it.
2245 * c-decl.c (store_parm_decls): Do not set it.
2246 * omp-low.c (create_task_copyfn): Likewise.
2247 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2249 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2253 (*movdf_internal): Ditto.
2254 (*movdf_internal_nointeger): Ditto.
2255 (*movsf_internal): Ditto.
2257 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2259 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2260 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2261 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2262 (c_variable_size): Remove.
2263 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2264 call put_pending_sizes.
2265 (get_parm_info): Add parameter expr. Use it to set
2266 arg_info->pending_sizes.
2267 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2269 * c-parser.c (c_parser_parms_declarator): Update call to
2270 c_parser_parms_list_declarator.
2271 (c_parser_parms_list_declarator): Take parameter expr. Update
2272 call to push_parm_decl. Update recursive call. Don't call
2273 get_pending_sizes. Update calls to get_parm_info.
2274 (c_parser_objc_method_definition): Update calls to
2275 c_parser_objc_method_decl and objc_start_method_definition.
2276 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2277 (c_parser_objc_method_decl): Add parameter expr. Update call to
2279 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2280 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2281 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2283 2011-05-05 Michael Hope <michael.hope@linaro.org>
2286 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2289 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2291 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2292 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2293 (spu_output_mi_thunk): New function.
2295 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2297 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2298 targetm.asm_out.print_operand.
2299 * config/sol2.c: Include target.h.
2301 2011-05-04 Jan Hubicka <jh@suse.cz>
2303 * ipa-inline.c (reset_edge_caches): New function.
2304 (update_caller_keys): Add check_inlinablity_for; do not
2305 reset edge caches; remove now unnecesary loop.
2306 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2307 (update_all_callee_keys): Likewise.
2308 (inline_small_functions): Sanity check cache; update code
2311 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2313 PR rtl-optimization/47612
2314 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2315 as the last insn of the sequence to be moved.
2317 2011-05-04 Tobias Burnus <burnus@net-b.de>
2320 * doc/invoke.texi (Ofast): Document that it
2321 enables Fortran's -fno-protect-parens.
2323 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2325 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2327 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2329 * stor-layout.c (variable_size): Do not issue errors.
2331 2011-05-04 Richard Guenther <rguenther@suse.de>
2333 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2334 for array-ref indices.
2335 (tree_coverage_counter_addr): Likewise.
2336 (build_fn_info_type): Use size_int for index types.
2337 (build_gcov_info): Likewise.
2339 2011-05-04 Richard Guenther <rguenther@suse.de>
2341 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2343 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2344 for constructor indices.
2345 (push_init_level): Likewise.
2347 2011-05-04 Richard Guenther <rguenther@suse.de>
2349 * explow.c (promote_mode): Move variable declarations before code.
2351 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2353 * tree.h (build_function_type_array): Declare.
2354 (build_varargs_function_type_array): Declare.
2355 (build_function_type_vec, build_varargs_function_type_vec): Define.
2356 * tree.c (build_function_type_array_1): New function.
2357 (build_function_type_array): New function.
2358 (build_varargs_function_type_array): New function.
2360 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2362 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2363 before setting STMT_VINFO_TYPE.
2365 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2367 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2368 instead of spu_pass_by_reference.
2370 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2372 * calls.c (emit_library_call_value_1): Invoke
2373 promote_function_mode hook on libcall arguments.
2374 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2375 argument being NULL.
2376 * targhooks.c (default_promote_function_mode): Lisewise.
2377 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2378 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2380 * doc/tm.texi: Document that TYPE argument might be NULL.
2382 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2384 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2386 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2389 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2391 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2393 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2394 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2396 * mips-tfile.c: ... here.
2397 Don't include coretypes.h, tm.h, filenames.h.
2398 (saber_stop): Remove definition and all calls.
2399 [__SABER__]: Remove.
2400 (__LINE__): Remove default.
2401 (Size_t, Ptrdiff_t): Remove definitions.
2402 Replace by size_t, ptrdiff_t.
2403 [!MIPS_DEBUGGING_INFO]: Remove.
2404 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2405 (progname): Add const.
2407 Replace all uses by static.
2408 (ALIGN_SYMTABLE_OFFSET): Remove default.
2409 * mips-tdump.c: Don't include coretypes.h, tm.h.
2410 Remove !MIPS_IS_STAB guard.
2411 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2412 $(TM_H), filenames.h dependencies.
2413 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2415 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2418 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2419 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2421 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2424 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2425 account and save/restore RETS.
2426 (PROFILE_BEFORE_PROLOGUE): Define.
2427 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2428 the push insn to use predecrement.
2430 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2433 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2435 2011-05-04 Nick Clifton <nickc@redhat.com>
2437 * config/mn10300/mn10300.c: Include cfgloop.h.
2439 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2440 Lcc or a FLcc insn into the instruction stream.
2441 (mn10300_block_contains_call): New function. Returns true if the
2442 given basic block contains a CALL insn.
2443 (mn10300_loop_contains_call_insn): New function. Returns true if
2444 the given loop contains a CALL insn.
2445 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2446 to use the SETLB and Lcc or FLcc insns.
2447 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2448 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2449 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2450 disable the SETLB optimization.
2451 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2452 __SETLB__ or __NO_SETLB__.
2453 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2454 (movsf_internal): Handle MDR register.
2455 (cmpsi): Make visible.
2456 (setlb): New pattern.
2458 (FLcc): New pattern.
2460 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2463 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2464 for reg<->xmm moves.
2465 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2466 (vec_concatv2di_rex64_sse): Ditto.
2467 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2468 (*vec_extractv2di_1_rex64): Ditto.
2471 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2473 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2475 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2477 2011-05-04 Richard Guenther <rguenther@suse.de>
2479 * tree.h (int_const_binop): Remove notrunc argument.
2480 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2481 create integer constants that are properly truncated.
2482 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2483 (const_binop): Remove zero notrunc argument to int_const_binop.
2484 (size_binop_loc): Likewise.
2485 (fold_div_compare): Likewise.
2486 (maybe_canonicalize_comparison_1): Likewise.
2487 (fold_comparison): Likewise.
2488 (fold_binary_loc): Likewise.
2489 (multiple_of_p): Likewise.
2490 * expr.c (store_constructor): Likewise.
2491 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2492 (maybe_fold_stmt_addition): Likewise.
2493 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2494 * stor-layout.c (layout_type): Likewise.
2495 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2496 * tree-sra.c (build_ref_for_offset): Likewise.
2497 (build_user_friendly_ref_for_offset): Likewise.
2498 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2499 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2500 * tree-ssa-loop-niter.c (inverse): Likewise.
2501 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2502 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2503 * tree-switch-conversion.c (check_range): Likewise.
2504 (build_constructors): Likewise.
2505 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2506 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2507 (extract_range_from_assert): Likewise.
2508 (vrp_int_const_binop): Likewise.
2509 (extract_range_from_binary_expr): Likewise.
2510 (extract_range_from_unary_expr): Likewise.
2511 (check_array_ref): Likewise.
2512 (find_case_label_range): Likewise.
2513 (simplify_div_or_mod_using_ranges): Likewise.
2514 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2515 comparing case labels for merging.
2517 2011-05-03 Mark Wielaard <mjw@redhat.com>
2519 * dwarf2out.c (debug_str_hash_forced): Removed.
2520 (gen_label_for_indirect_string): Removed.
2521 (get_debug_string_label): Removed.
2522 (AT_string_form): Generate label directly.
2523 (output_indirect_string): Test indirect_string_node for
2524 DW_FORM_strp instead of checking label and refcount.
2525 (prune_indirect_string): Removed.
2526 (prune_unused_types): Don't check debug_str_hash_forced or
2527 call prune_indirect_string.
2529 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2532 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2534 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2538 * combine.c (try_combine): Skip debug insns at m_split tests.
2540 2011-04-26 Mark Wielaard <mjw@redhat.com>
2543 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2544 when info_section_emitted.
2546 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2548 * config/mips/mips-opts.h: New.
2549 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2551 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2552 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2553 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2555 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2557 (mips_abi, mips_code_readable): Don't declare.
2558 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2559 (mabi=): Use Enum and Var.
2560 (mips_abi): New Enum and EnumValue entries.
2561 (mcode-readable=): Use Enum and Var.
2562 (mips_code_readable_setting): New Enum and EnumValue entries.
2563 (mr10k-cache-barrier=): Use Enum and Var.
2564 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2566 2011-05-03 Jan Hubicka <jh@suse.cz>
2568 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2569 replace hash by pointer map.
2570 (cgraph_node_set_element_def, cgraph_node_set_element,
2571 const_cgraph_node_set_element, varpool_node_set_element_def,
2572 varpool_node_set_element, const_varpool_node_set_element): Remove.
2573 (free_cgraph_node_set, free_varpool_node_set): New function.
2574 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2575 * tree-emutls.c: Free varpool node set.
2576 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2577 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2578 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2579 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2580 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2581 Move here from ipa.c; implement using pointer_map
2582 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2583 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2584 debug_cgraph_node_set, varpool_node_set_new,
2585 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2586 dump_varpool_node_set, debug_varpool_node_set):
2587 Move to ipa-uitls.c.
2588 * passes.c (ipa_write_summaries): Update.
2590 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2592 From Mike Frysinger:
2593 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2594 bf542/bf544/bf547/bf548/bf549.
2596 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2598 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2600 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2603 * config/bfin/bfin.md (MOVCC): New mode_macro.
2604 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2605 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2606 comments from generated assembly.
2608 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2611 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2612 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2613 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2614 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2615 * config/bfin/lib1funcs.asm (___muldi3): New function.
2617 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2619 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2620 build_function_type_list instead of build_function_type.
2621 Rearrange initialization of `args' to do so.
2623 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2625 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2626 instead of build_function_type.
2628 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2630 * config/rs6000/rs6000.c (spe_init_builtins): Call
2631 build_function_type_list instead of build_function_type.
2632 (paired_init_builtins, altivec_init_builtins): Likewise.
2633 (builtin_function_type): Likewise.
2635 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2637 * config/sh/sh.c (sh_media_init_builtins): Call
2638 build_function_type_list instead of build_function_type.
2640 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2642 * config/sparc/sparc.c (sparc_file_end): Call
2643 build_function_type_list instead of build_function_type.
2645 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2647 * config/alpha/alpha.c (alpha_init_builtins): Call
2648 build_function_type_list instead of build_function_type.
2650 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2652 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2653 build_function_type_list instead of build_function_type.
2655 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2657 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2658 build_function_type_list instead of build_function_type.
2659 Delete `endlink' variable.
2661 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2663 * config/avr/avr.c (avr_init_builtins): Call
2664 build_function_type_list instead of build_function_type.
2666 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2668 * config/picochip/picochip.c (picochip_init_builtins): Call
2669 build_function_type_list instead of build_function_type.
2670 Delete `endlink' variable.
2672 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2674 * config/bfin/bfin.c (bfin_init_builtins): Call
2675 build_function_type_list instead of build_function_type.
2677 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2680 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2681 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2683 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2686 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2687 libbffastfp overrides libgcc when -mfast-fp.
2689 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2691 Originally from Bernd Schmidt
2692 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2693 * config/bfin/bfin.c (override_options): Test it and error if
2696 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2698 Originally From Bernd Schmidt
2699 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2702 2011-05-03 Jeff Law <law@redhat.com>
2704 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2705 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2706 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2707 than accessing AUX field directly. Free the AUX field before
2709 (thread_block, thread_through_loop_header): Likewise.
2710 (thread_single_edge, mark_threaded_blocks): Likewise.
2711 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2712 (register_jump_thread): Do not attempt to thread to a NULL edge.
2714 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2716 * function.c (init_function_start): Call decide_function_section.
2717 * varasm.c (decide_function_section): New function.
2718 (assemble_start_function): When not using
2719 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2720 or first_function_block_is_cold.
2721 * rtl.h (decide_function_section): Declare.
2723 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2724 Jakub Jelinek <jakub@redhat.com>
2727 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2728 only succeed if req_mode is the same as set_mode.
2730 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2732 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2733 * genemit.c (gen_exp): Handle RETURN.
2734 * emit-rtl.c (verify_rtx_sharing): Likewise.
2735 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2736 * rtl.c (copy_rtx): RETURN is shared.
2737 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2739 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2740 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2741 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2742 * config/cris/cris.c (cris_expand_return): Likewise.
2743 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2744 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2745 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2746 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2747 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2749 * config/v850/v850.c (expand_epilogue): Likewise.
2750 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2751 * config/arm/arm.md (epilogue): Likewise.
2752 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2753 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2754 variable to ret_reg.
2756 2011-05-03 Richard Guenther <rguenther@suse.de>
2759 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2760 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2761 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2763 2011-05-03 Richard Guenther <rguenther@suse.de>
2765 * c-decl.c (grokdeclarator): Instead of looking at
2766 TREE_OVERFLOW check if the constant fits in the index type.
2768 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2770 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2771 (vec_store_lanes<mode><mode>): Likewise.
2773 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2775 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2776 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2777 convert_optab_index values.
2778 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2779 * genopinit.c (optabs): Initialize the new optabs.
2780 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2781 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2782 (expand_STORE_LANES): New functions.
2783 * tree.h (build_array_type_nelts): Declare.
2784 * tree.c (build_array_type_nelts): New function.
2785 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2786 (vect_model_load_cost): Likewise.
2787 (vect_store_lanes_supported, vect_load_lanes_supported)
2788 (vect_record_strided_load_vectors): Declare.
2789 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2790 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2791 (vect_transform_strided_load): Split out statement recording into...
2792 (vect_record_strided_load_vectors): ...this new function.
2793 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2794 (write_vector_array, create_array_ref): New functions.
2795 (vect_model_store_cost): Add store_lanes_p argument.
2796 (vect_model_load_cost): Add load_lanes_p argument.
2797 (vectorizable_store): Try to use store-lanes functions for
2799 (vectorizable_load): Likewise load-lanes and loads.
2800 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2801 to vect_model_store_cost.
2802 (vect_build_slp_tree): Likewise vect_model_load_cost.
2804 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2806 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2807 * hooks.c (hook_bool_mode_uhwi_false): New function.
2808 * target.def (array_mode_supported_p): New hook.
2809 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2810 * doc/tm.texi: Regenerate.
2811 * stor-layout.c (mode_for_array): New function.
2812 (layout_type): Use it.
2813 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2814 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2816 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2819 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2820 for -fstack-check if the size to allocate is negative.
2822 2011-05-02 Lawrence Crowl <crowl@google.com>
2824 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2825 (timevar_cond_start): New for starting a timer only when it is not
2827 (timevar_cond_stop): New for stopping a timer when it was not already
2830 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2831 (timevar_cond_start): New as above.
2832 (timevar_cond_stop): New as above.
2834 * timevar.def: Add start/stop timers for compiler phases,
2835 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2836 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2837 and TV_PHASE_FINALIZE.
2838 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2839 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2840 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2841 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2842 Make unused TV_OVERLOAD into a start/stop timer.
2844 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2845 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2846 to indicate that they are start/stop timers.
2848 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2849 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2850 Move initialization to do_compile.
2851 (do_compile): Add initialization from above.
2852 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2854 * c-decl.c (c_write_global_declarations): Add start/stop of
2855 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2857 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2858 or TV_PARSE_INLINE, as appropriate.
2859 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2860 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2862 2011-05-02 Jason Merrill <jason@redhat.com>
2865 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2867 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2870 * c-decl.c (finish_decl): Only create a composite if the types are
2873 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2875 * config/fr30/fr30-protos.h (Mmode): Don't define.
2876 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2877 definition where used.
2878 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2879 define. Expand definitions where used.
2880 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2881 Expand definitions where used.
2882 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2883 rx_function_arg, rx_function_arg_advance,
2884 rx_function_arg_boundary): Expand definitions of those macros.
2885 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2886 definition where used.
2888 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2890 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2892 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2893 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2894 with *movv2sf_internal_rex64_avx.
2895 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2896 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2897 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2898 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2899 "vex" in "prefix" attribute calculation.
2900 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2902 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2905 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2906 inputs match the output.
2908 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2911 * config/m68k/m68k.c (m68k_expand_prologue): Set
2912 current_function_static_stack_size.
2914 2011-05-02 Jan Hubicka <jh@suse.cz>
2916 * lto-streamer.c (lto_streamer_cache_insert_1,
2917 lto_streamer_cache_lookup, lto_streamer_cache_create,
2918 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2919 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2921 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2923 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2924 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2925 config/m68k/t-opts: New files.
2926 * config/m68k/m68k-tables.opt: New file (generated).
2927 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2928 extra_options and m68k/t-opts to tmake_file.
2929 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2930 (all_isas): Initialize using m68k-isas.def.
2931 (all_microarchs): Initialize using m68k-microarchs.def.
2932 (m68k_find_selection): Remove.
2933 (m68k_handle_option): Don't assert that global structures are in
2934 use. Use error_at. Access variables via opts pointer. Don't
2935 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2936 directly for -m68020-40 and -m68020-60.
2937 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2938 m68k_tune_entry here.
2939 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2941 (m68k_library_id_string): Remove declaration.
2942 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2943 (m68k_library_id_string): New Variable.
2944 (march=, mcpu=, mtune=): Use Enum and Var.
2946 2011-05-02 Richard Guenther <rguenther@suse.de>
2948 * varasm.c (output_constructor_regular_field): Compute zero-based
2949 index with double-ints. Make sure to ICE instead of producing
2951 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2952 in asserts. Properly use a signed type.
2954 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2956 * config/i386/sse.md (V): New mode iterator.
2957 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2959 (V_256): Rename from AVX256MODE.
2960 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2961 condition to all users.
2963 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2964 condition to all users.
2965 (VF_128): Make V4SF mode unconditional.
2966 (VF_256): Rename from AVX256MODEF2P.
2967 (VI4F_128): Rename from SSEMODE4S.
2968 (VI8F_128): Rename from SSEMODE2D.
2969 (VI4F_256): Rename from AVX256MODE8P.
2970 (VI8F_256): Rename from AVX256MODE4P.
2971 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2972 (ssescalarmodesuffix): Remove SF and DF modes.
2973 (SSEMODE124): Remove.
2974 (SSEMODE1248): Ditto.
2975 (SSEMODEF2P): Ditto.
2976 (AVXMODEF2P): Ditto.
2977 (AVXMODEFDP): Ditto.
2978 (AVXMODEFSP): Ditto.
2979 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2981 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2983 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2984 xop_pcmov_<mode>256. Use V mode iterator.
2986 Adjust RTX patterns globally for renamed mode attributes.
2988 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2990 * haifa-sched.c (sched_emit_insn): Emit insn before first
2991 non-scheduled insn. Inform back-end about new insn. Add
2992 new insn to scheduled_insns list.
2994 2011-05-02 Richard Guenther <rguenther@suse.de>
2996 PR tree-optimization/48822
2997 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2998 (process_scc): Indicate which iteration we start.
3000 2011-05-02 Jan Hubicka <jh@suse.cz>
3002 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3003 (lto_section_overrun): New.
3004 * lto-section-out.c (append_block): Rename to ...
3005 (lto_append_block): ... this one; export.
3006 (lto_output_1_stream): Move lto lto-streamer.h
3007 (lto_output_data_stream): Update.
3008 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3009 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3012 2011-05-02 Richard Guenther <rguenther@suse.de>
3014 * tree.c (tree_code_counts): New global array.
3015 (record_node_allocation_statistics): Count individual tree codes.
3016 (dump_tree_statistics): Dump individual code stats.
3018 2011-05-01 Jan Hubicka <jh@suse.cz>
3020 * ipa-inline.c (caller_growth_limits): Fix thinko when
3021 looking for largest stack frame.
3022 * ipa-inline.h (dump_inline_summary): Declare.
3023 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3025 (dump_inline_summary): Export.
3026 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3028 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3030 * reginfo.c (memory_move_cost): Change rclass argument type form
3031 'enum reg_class' to reg_class_t.
3032 * reload.h (memory_move_cost): Update prototype.
3033 * postreload.c reload_cse_simplify_set): Change type dclass var to
3035 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3037 (ira_allocate_and_set_costs): Change aclass argument type form
3038 'enum reg_class' to reg_class_t.
3039 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3040 Change aclass argument type to reg_class_t.
3041 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3043 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3044 memory_move_cost call.
3046 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3047 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3048 Change type tmp var to reg_class_t.
3050 2011-04-30 Jan Hubicka <jh@suse.cz>
3052 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3053 inlining into function with flatten attribute.
3054 (want_inline_small_function_p): Be more realistic about inlining
3055 cold calls where callee size grows.
3057 2011-04-30 Jan Hubicka <jh@suse.cz>
3059 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3062 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3064 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3065 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3066 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3067 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3068 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3069 (print_operand): Rename to...
3070 (sparc_print_operand): ...this. Make static. Adjust
3071 sparc_print_operand function call.
3072 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3075 2011-04-30 Jan Hubicka <jh@suse.cz>
3078 * ipa-inline.c (early_inliner): Disable when doing late
3079 addition of function.
3081 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3083 * dwarf2out.c (get_address_mode): New inline.
3084 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3085 if not dwarf_strict emit
3086 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3087 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3088 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3089 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3090 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3091 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3092 mem_loc_descriptor callers.
3093 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3094 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3095 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3096 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3097 (base_types): New variable.
3098 (get_base_type_offset, calc_base_type_die_sizes,
3099 base_type_for_mode, mark_base_types, base_type_cmp,
3100 move_marked_base_types): New functions.
3101 (calc_die_sizes): Assert that die_offset is 0 or equal to
3103 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3104 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3105 callers. If not dwarf_strict, call mem_loc_descriptor even for
3106 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3107 (gen_subprogram_die): Don't give up on call site parameters
3108 with non-integral or large integral modes. Adjust
3109 mem_loc_descriptor callers.
3110 (prune_unused_types): Call prune_unused_types_mark on base_types
3112 (resolve_addr): Call mark_base_types.
3113 (dwarf2out_finish): Call move_marked_base_types.
3115 PR tree-optimization/48809
3116 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3118 (gen_inbound_check): Don't compute index_expr - range_min in utype
3119 again, instead reuse SSA_NAME initialized in build_arrays.
3120 Remove two useless gsi_for_stmt calls.
3122 2011-04-29 Jeff Law <law@redhat.com>
3124 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3126 2011-04-29 Martin Jambor <mjambor@suse.cz>
3128 * cgraph.h (cgraph_postorder): Remove declaration.
3129 * ipa-utils.h (ipa_free_postorder_info): Declare.
3130 (ipa_reverse_postorder): Likewise.
3131 * cgraphunit.c: Include ipa-utils.h.
3132 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3133 * ipa-inline.c: Include ipa-utils.h.
3134 (ipa_inline): Update call to ipa_reverse_postorder.
3135 * ipa-pure-const.c (propagate_pure_const): Update call to
3136 ipa_reduced_postorder and ipa_print_order. Call
3137 ipa_free_postorder_info to clean up.
3138 (propagate_nothrow): Likewise.
3139 * ipa-reference.c (propagate): Removed a useless call to
3140 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3141 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3142 * ipa.c: Include ipa-utils.h.
3143 (ipa_profile): Update call to ipa_reverse_postorder.
3144 (cgraph_postorder): Moved to...
3145 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3146 (ipa_utils_print_order): Renamed to ipa_print_order.
3147 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3149 (ipa_free_postorder_info): New function.
3150 * passes.c: Include ipa-utils.h.
3151 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3152 (ipa_write_summaries): Likewise.
3153 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3154 (cgraphunit.o): Likewise.
3156 (ipa-inline.o): Likewise.
3158 2011-04-29 Jan Hubicka <jh@suse.cz>
3160 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3161 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3162 * ipa-inline.h (clause_t): Turn into unsigned int.
3163 * ipa-inline-analysis.c (add_clause): Do more simplification.
3164 (and_predicates): Shortcut more cases.
3165 (predicates_equal_p): Move forward; check that clauses are properly
3167 (or_predicates): Shortcut more cases.
3168 (edge_execution_predicate): Rewrite as...
3169 (set_cond_stmt_execution_predicate): ... this function; handle
3170 __builtin_constant_p.
3171 (set_switch_stmt_execution_predicate): New .
3172 (compute_bb_predicates): New.
3173 (will_be_nonconstant_predicate): Update TODO.
3174 (estimate_function_body_sizes): Use compute_bb_predicates
3175 and free them later, always try to estimate if stmt is constant.
3176 (estimate_time_after_inlining, estimate_size_after_inlining):
3177 Gracefully handle optimized out edges.
3178 (read_predicate): Fix off by one error.
3180 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3182 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3184 2011-04-27 Xinliang David Li <davidxl@google.com>
3186 * tree-profile.c (init_ic_make_global_vars): Set
3187 tls attribute on ic vars.
3188 * coverage.c (coverage_end_function): Initialize
3189 function_list with zero.
3191 2011-04-29 Richard Guenther <rguenther@suse.de>
3193 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3194 for the type of the result.
3195 (fold_builtin_isascii): Likewise.
3196 (fold_builtin_toascii): Use integer_type_node where appropriate.
3197 (fold_builtin_logb): Likewise.
3198 (fold_builtin_frexp): Likewise.
3199 (fold_builtin_strstr): Likewise.
3200 (fold_builtin_strpbrk): Likewise.
3201 (fold_builtin_fputs): Likewise.
3202 (fold_builtin_sprintf): Likewise.
3203 (fold_builtin_snprintf): Likewise.
3204 (fold_builtin_printf): Likewise.
3205 (do_mpfr_remquo): Use a proper type for the assigned constant.
3206 (do_mpfr_lgamma_r): Likewise.
3207 * dwarf2out.c (resolve_one_addr): Use size_int.
3208 * except.c (init_eh): Likewise.
3209 (assign_filter_values): Use integer_type_node for filter values.
3210 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3212 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3213 for EH region numbers.
3214 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3215 for the shift amount.
3217 2011-04-29 Richard Guenther <rguenther@suse.de>
3219 * expr.h (expand_shift): Rename to ...
3220 (expand_variable_shift): ... this.
3221 (expand_shift): Take a constant shift amount.
3222 * expmed.c (expand_shift): Rename to ...
3223 (expand_variable_shift): ... this.
3224 (expand_shift): New wrapper around expand_variable_shift.
3225 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3226 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3227 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3228 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3229 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3230 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3231 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3232 emit_store_flag_1, emit_store_flag): Likewise.
3233 * builtins.c (expand_builtin_signbit): Likewise.
3234 * calls.c (load_register_parameters): Likewise.
3235 * function.c (assign_parm_setup_block): Likewise.
3236 * lower-subreg.c (resolve_shift_zext): Likewise.
3237 * optabs.c (widen_bswap, expand_abs_nojump,
3238 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3239 * spu/spu.c (spu_expand_extv): Likewise.
3240 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3242 2011-04-29 Richard Guenther <rguenther@suse.de>
3244 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3245 for the remapped region number.
3246 * predict.c (build_predict_expr): Use integer_type_node for the
3248 * fold-const.c (fold_binary_loc): Use integer_type_node for
3249 the shift amount. Use a proper type for the PLUS_EXPR operand.
3251 2011-04-29 Michael Matz <matz@suse.de>
3253 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3254 other trees that just builtins.
3255 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3257 2011-04-29 Richard Guenther <rguenther@suse.de>
3259 * tree-nested.c (get_trampoline_type): Use size_int.
3260 (get_nl_goto_field): Likewise.
3261 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3263 (lower_eh_constructs_2): Likewise.
3264 (lower_resx): Likewise.
3265 (lower_eh_dispatch): Likewise.
3266 * tree-mudflap.c (mf_build_string): Use size_int.
3267 (mudflap_register_call): Use integer_type_node for the flag.
3268 (mudflap_enqueue_constant): Use size_int.
3269 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3270 instead of rebuilding it.
3272 2011-04-29 Richard Guenther <rguenther@suse.de>
3274 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3275 Handle OBJ_TYPE_REF.
3276 (find_func_aliases_for_call): Use it more consistently.
3278 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3280 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3281 (rank_for_schedule): Use it.
3282 (schedule_block): Set it.
3284 2011-04-28 David Li <davidxl@google.com>
3286 * tree.c (crc32_string): Use crc32_byte.
3287 (crc32_byte): New function.
3288 * tree.h (crc32_byte): New function.
3289 * gcov.c (read_graph_file): Handle new cfg_cksum.
3290 (read_count_file): Ditto.
3291 * profile.c (instrument_values): Ditto.
3292 (get_exec_counts): Ditto.
3293 (read_profile_edge_counts): Ditto.
3294 (compute_branch_probabilities): Ditto.
3295 (compute_value_histograms): Ditto.
3296 (branch_prob): Ditto.
3297 (end_branch_prob): Ditto.
3298 * coverage.c (read_counts_file): Ditto.
3299 (get_coverage_counts): Ditto.
3300 (tree_coverage_counter_addr): Ditto.
3301 (coverage_checksum_string): Ditto.
3302 (coverage_begin_output): Ditto.
3303 (coverage_end_function): Ditto.
3304 (build_fn_info_type): Ditto.
3305 (build_fn_info_value): Ditto.
3306 * libgcov.c (gcov_exit): Ditto.
3307 * gcov-dump.c (tag_function): Ditto.
3308 (compute_checksum): Remove.
3310 2011-04-29 Alan Modra <amodra@gmail.com>
3312 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3313 unspec plus offset. Tidy macho code.
3315 2011-04-29 Martin Jambor <mjambor@suse.cz>
3317 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3318 node instead of a decl. Update all callers.
3319 * cgraph.h: Update declaration.
3321 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3323 PR tree-optimization/48765
3324 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3325 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3326 to indicate if loop aware SLP is being used. Scan the statements
3327 and update the vectorization factor according to the type of
3328 vectorization before statement analysis.
3329 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3330 pass it to vect_analyze_loop_operations.
3331 (vectorizable_reduction): Set number of copies to 1 in case of pure
3333 * tree-vect-stmts.c (vectorizable_conversion,
3334 vectorizable_assignment, vectorizable_shift,
3335 vectorizable_operation, vectorizable_type_demotion,
3336 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3338 (vectorizable_condition): Move the check that it is not SLP
3339 vectorization before the number of copies check.
3340 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3341 to vectorize the loop using SLP.
3343 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3346 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3349 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3351 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3352 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3353 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3354 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3355 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3357 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3358 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3359 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3360 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3361 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3362 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3364 * config/i386/linux.h (REG_NAME): Don't define.
3365 * config/i386/linux64.h (REG_NAME): Don't define.
3366 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3367 Undefine before defining.
3369 2011-04-28 Jan Hubicka <jh@suse.cz>
3371 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3372 nonconstant_names array.
3373 (estimate_function_body_sizes): Build nonconstant_names array; handle
3374 BUILT_IN_CONSTANT_P.
3376 2011-04-28 Richard Guenther <rguenther@suse.de>
3380 2011-04-28 Richard Guenther <rguenther@suse.de>
3382 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3383 as late as possible.
3385 2011-04-28 Richard Guenther <rguenther@suse.de>
3387 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3388 (debug_constraint): Do it here.
3389 (dump_constraints): And here.
3390 (rewrite_constraints): And here.
3391 (dump_constraint_edge): Remove.
3392 (dump_constraint_graph): Rewrite to produce DOT output.
3393 (solve_constraints): Build succ graph as late as possible.
3394 Dump constraint graphs before and after solving.
3396 2011-04-28 Richard Guenther <rguenther@suse.de>
3398 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3399 New function split out from ...
3400 (find_func_aliases): ... here. Call it.
3401 (find_func_aliases_for_call): Likewise.
3403 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3405 * internal-fn.h (internal_fn_name_array): Declare.
3406 (internal_fn_flags_array): Likewise.
3408 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3410 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3411 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3413 (ssemodefsuffix): Remove.
3414 (ssevecmodesuffix): New mode attribute.
3415 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3416 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3417 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3418 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3419 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3420 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3421 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3422 ssemodesuffix mode attribute.
3423 (float splitters): Use ssevecmodesuffix mode attribute.
3424 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3425 (sseinsmode): Rename from avxvecmode.
3426 (avxsizesuffix): Rename from avxmodesuffix.
3427 (sseintvecmode): Rename from avxpermvecmode.
3428 (ssedoublevecmode): Rename from ssedoublesizemode.
3429 (ssehalfvecmode): Rename from avxhalfvecmode.
3430 (ssescalarmode): Rename from avxscalarmode.
3431 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3432 templates for ssemodesuffix mode attribute.
3433 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3436 Adjust RTX patterns globally for renamed mode attributes.
3438 2011-04-27 Jan Hubcika <jh@suse.cz>
3440 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3441 * ipa-inline-analysis.c: Include alloc-pool.h.
3442 (edge_predicate_pool): New.
3443 (trye_predicate_p): New function
3444 (false_predicate_p): New function.
3445 (add_clause): Sanity check that false clauses are "optimized";
3446 never add clauses to predicate that is already known to be false.
3447 (and_predicate): Use flase_predicate_p.
3448 (evaulate_predicate): Rename to ...
3449 (evaluate_predicate): ... this one; update all callers; assert
3450 that false is not listed among possible truths.
3451 (dump_predicate): Use true_predicate_p.
3452 (account_size_time): Use false_predicate_p.
3453 (evaulate_conditions_for_edge): Rename to ...
3454 (evaluate_conditions_for_edge) ... this one.
3455 (edge_set_predicate): New function.
3456 (inline_edge_duplication_hook): Duplicate edge predicates.
3457 (inline_edge_removal_hook): Free edge predicates.
3458 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3459 (dump_inline_summary): Update.
3460 (estimate_function_body_sizes): Set edge predicates.
3461 (estimate_calls_size_and_time): Handle predicates.
3462 (estimate_callee_size_and_time): Update.
3463 (remap_predicate): Add toplev_predicate; update comment.
3464 (remap_edge_predicates): New function.
3465 (inline_merge_summary): Compute toplev predicate; update.
3466 (read_predicate): New function.
3467 (read_inline_edge_summary): Use it.
3468 (inline_read_section): Likewise.
3469 (write_predicate): New function.
3470 (write_inline_edge_summary): Use it.
3471 (inline_write_summary): Likewise.
3472 (inline_free_summary): Free alloc pool and edge summary vec.
3474 2011-04-27 Richard Guenther <rguenther@suse.de>
3476 * tree-ssa-structalias.c (changed_count): Remove.
3477 (changed): Use a bitmap.
3478 (unify_nodes): Adjust.
3479 (do_sd_constraint): Likewise.
3480 (do_ds_constraint): Likewise.
3481 (do_complex_constraint): Likewise.
3482 (solve_graph): Likewise.
3484 2011-04-27 Jan Hubicka <jh@suse.cz>
3486 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3488 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3490 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3491 (avx_vperm2f128_*_operand): Ditto.
3492 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3493 Use avx_vpermilp_parallel in insn condition.
3494 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3495 Use avx_vperm2f128_parallel in insn condition.
3497 2011-04-27 Richard Guenther <rguenther@suse.de>
3499 * Makefile.in (tree-ssa-structalias.o): Remove
3500 gt-tree-ssa-structalias.h dependency.
3501 (GTFILES): Remove tree-ssa-structalias.c.
3502 * tree.c (allocate_decl_uid): New function.
3503 (make_node_stat): Use it.
3504 (copy_node_stat): Likewise.
3505 * tree.h (allocate_decl_uid): Declare.
3506 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3507 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3508 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3509 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3510 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3511 (struct heapvar_map): Likewise.
3512 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3513 heapvar_insert): Likewise.
3514 (make_heapvar_for): Rename to ...
3515 (make_heapvar): ... this. Simplify.
3516 (fake_var_decl_obstack): New global var.
3517 (build_fake_var_decl): New function.
3518 (make_constraint_from_heapvar): Adjust.
3519 (handle_lhs_call): Likewise.
3520 (create_function_info_for): Likewise.
3521 (intra_create_variable_infos): Likewise.
3522 (init_alias_vars): Allocate fake_var_decl_obstack.
3523 (init_alias_heapvars, delete_alias_heapvars): Remove.
3524 (compute_points_to_sets): Do not call init_alias_heapvars.
3525 (ipa_pta_execute): Likewise.
3526 (delete_points_to_sets): Free fake_var_decl_obstack.
3528 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3530 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3531 (si_from_UTItype, si_to_UTItype): New functions.
3532 (__udivmodti4): Use them to implement type-punning.
3533 * config/spu/multi3.c (union qword_TItype): New data type.
3534 (si_from_TItype, si_to_TItype): New functions.
3535 (__multi3): Use them to implement type-punning.
3537 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3539 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3541 2011-04-27 Jan Hubicka <jh@suse.cz>
3543 * ipa-prop.c (function_insertion_hook_holder): New holder.
3544 (ipa_add_new_function): New function.
3545 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3546 Register/deregister holder.
3548 2011-04-27 Richard Guenther <rguenther@suse.de>
3550 PR tree-optimization/48772
3551 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3553 2011-04-27 Richard Guenther <rguenther@suse.de>
3555 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3556 TARGET_MEM_REF handling.
3558 2011-04-27 Nick Clifton <nickc@redhat.com>
3560 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3561 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3562 (REG_CLASS_NAMES): Likewise.
3563 (REG_CLASS_CONTENTS): Likewise.
3564 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3565 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3566 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3567 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3568 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3569 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3570 duplicate register classes.
3571 (frv_class_likely_spilled_p): Likewise.
3572 (frv_register_move_cost): Likewise.
3574 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3575 end of the regno_reg_class array.
3577 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3580 * c-typeck.c (build_binary_op): Don't wrap arguments if
3581 int_operands is true.
3583 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3586 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3587 targetm.calls.must_pass_in_stack for void type.
3589 2011-04-26 Jan Hubicka <jh@suse.cz>
3591 * cgraphbuild.c (build_cgraph_edges): Update call
3592 of cgraph_create_edge and cgraph_create_indirect_edge.
3593 * cgraph.c (cgraph_create_edge_including_clones,
3594 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3595 cgraph_update_edges_for_call_stmt_node): Do not take nest
3596 argument; do not initialize call_stmt_size/time.
3597 (dump_cgraph_node): Do not dump nest.
3598 (cgraph_clone_edge): Do not take loop_nest argument;
3599 do not propagate it; do not clone call_stmt_size/time.
3600 (cgraph_clone_node): Likewise.
3601 (cgraph_create_virtual_clone): Update.
3602 * cgraph.h (struct cgraph_edge): Remove
3603 call_stmt_size/call_stmt_time/loop_nest.
3604 (cgraph_create_edge, cgraph_create_indirect_edge,
3605 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3607 * tree-emutls.c (gen_emutls_addr): Update.
3608 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3609 loop_nest; handle indirect calls, too.
3610 (clone_inlined_nodes): Do not care about updating inline summaries.
3611 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3612 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3613 stream call_stmt_size/call_stmt_time/loop_nest.
3614 * ipa-inline.c (edge_badness): Update.
3615 (ipa_inline): dump summaries after inlining.
3616 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3618 (inline_edge_summary): New function.
3619 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3620 (inline_edge_removal_hook): Handle edge summaries.
3621 (inline_edge_duplication_hook): New hook.
3622 (inline_summary_alloc): Alloc hooks.
3623 (initialize_growth_caches): Do not register removal hooks.
3624 (free_growth_caches); Do not free removal hook.
3625 (dump_inline_edge_summary): New function.
3626 (dump_inline_summary): Use it.
3627 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3628 (inline_update_callee_summaries): New function.
3629 (inline_merge_summary): Use it.
3630 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3631 (read_inline_edge_summary): New function.
3632 (inline_read_section): Use it.
3633 (write_inline_edge_summary): New function.
3634 (inline_write_summary): Use it.
3635 (inline_free_summary): Free edge new holders.
3636 * tree-inline.c (copy_bb): Update.
3638 2011-04-26 Jason Merrill <jason@redhat.com>
3640 * tree-eh.c (lower_try_finally_switch): Create the label along with
3641 the CASE_LABEL_EXPR.
3643 2011-04-26 David S. Miller <davem@davemloft.net>
3644 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3646 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3647 * configure: Regenerate.
3649 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3652 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3654 (VEC_reduc): New code iterator and splitters for vector reduction.
3655 (VEC_reduc_name): Ditto.
3656 (VEC_reduc_rtx): Ditto.
3657 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3658 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3660 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3661 support for extracting SF on VSX.
3663 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3664 generating xscvspdp.
3665 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3666 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3667 double add, minimum, maximum vector reduction.
3668 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3669 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3670 optimize double vector reduction.
3671 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3673 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3675 * config/fr30/fr30.h (inhibit_libc): Don't define.
3676 * config/m32r/m32r-protos.h: Correct comment.
3677 * config/v850/v850.h (GHS_default_section_names,
3678 GHS_current_section_names): Use tree, not union tree_node *.
3680 2011-04-26 Xinliang David Li <davidxl@google.com>
3682 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3683 * c-family/c-opts.c (c_common_handle_option): Set
3684 warn_maybe_uninitialized.
3685 * opts.c (common_handle_option): Ditto.
3686 * common.opt: New option.
3687 * tree-ssa.c (warn_uninit): Add one more parameter.
3688 (warn_uninitialized_var): Pass warning code.
3689 * tree-flow.h: Interface change.
3692 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3694 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3695 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3696 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3698 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3700 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3701 * config/mips/mips.opt (mmips-tfile): Remove.
3703 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3704 mips-tdump reference to ...
3705 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3706 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3707 reference by Tru64 UNIX.
3709 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3712 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3713 is error_mark_node, set value to NULL.
3715 PR tree-optimization/48734
3716 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3717 if return value from maybe_fold_*_comparsions isn't something
3718 the code is prepared to handle.
3720 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3722 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3724 (ext_QIreg_nomode_operands): Remove.
3725 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3729 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3731 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3733 2011-04-26 Richard Guenther <rguenther@suse.de>
3735 * c-typeck.c (build_unary_op): Do not expand array-refs via
3736 pointer arithmetic. Only adjust qualifiers for function types.
3738 2011-04-26 Richard Guenther <rguenther@suse.de>
3741 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3742 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3743 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3744 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3746 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3748 * doc/extend.texi: Document __underlying_type.
3750 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3752 * config/rs6000/titan.md (automata_option "progress"): Remove.
3754 2011-04-25 Jeff Law <law@redhat.com>
3756 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3758 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3760 * system.h (ENUM_BITFIELD): Remove.
3762 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3763 Eric Botcazou <ebotcazou@adacore.com>
3765 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3766 for STORE_FLAG_VALUE==-1 case.
3768 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3771 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3772 LEGITIMATE_PIC_OPERAND_P.
3774 2011-04-24 Jan Hubicka <jh@suse.cz>
3776 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3778 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3779 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3780 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3781 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3782 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3783 Sanity check predicate length.
3784 (remap_predicate): Likewise; sanity check jump functions.
3785 (inline_read_section, inline_write_summary): Sanity check
3788 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3791 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3792 __is_literal_type, and __is_trivial; update throughout about
3793 possibly cv-qualified void types.
3795 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3797 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3798 testsuite and make it version agnostic.
3800 2011-04-22 Jan Hubicka <jh@suse.cz>
3802 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3804 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3807 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3808 to VOID_TYPE even around MODIFY_EXPR.
3810 2011-04-22 Mike Stump <mikestump@comcast.net>
3812 * gensupport.c (read_md_rtx): Fix typo in comment.
3813 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3816 2011-04-22 Jan Hubicka <jh@suse.cz>
3818 * gengtype.c (open_base_files): Add ipa-inline.h include.
3819 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3820 ipa-prop.c; update all uses.
3821 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3822 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3823 merge summary of inlined function into former caller.
3824 * ipa-inline.c (max_benefit): Remove.
3825 (edge_badness): Compensate for removal of benefits.
3826 (update_caller_keys): Use
3827 reset_node_growth_cache/reset_edge_growth_cache.
3828 (update_callee_keys): Likewise.
3829 (update_all_callee_keys): Likewise.
3830 (inline_small_functions): Do not collect max_benefit; do not reset
3831 estimated_growth; call free_growth_caches and initialize_growth_caches.
3832 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3833 struct size_time_entry): New structures.
3834 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3835 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3836 and estimated_growth.
3837 (edge_growth_cache_entry): New structure.
3838 (node_growth_cache, edge_growth_cache): New global vars.
3839 (estimate_growth): Turn into inline.
3840 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3841 initialize_growth_caches, free_growth_caches): Declare.
3842 (estimate_edge_growth): Rewrite.
3843 (estimate_edge_time): Implement as inline cache lookup.
3844 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3846 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3847 (NUM_CONDITIONS): New constant.
3848 (predicate_conditions): New enum.
3849 (IS_NOT_CONSTANT): New constant.
3850 (edge_removal_hook_holder): New var.
3851 (node_growth_cache, edge_growth_cache): New global vars.
3852 (true_predicate, single_cond_predicate, false_predicate,
3853 not_inlined_predicate, add_condition, add_clause, and_predicates,
3854 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3855 dump_clause, dump_predicate, account_size_time,
3856 evaulate_conditions_for_edge): New functions.
3857 (inline_summary_alloc): Move to heap.
3858 (inline_node_removal_hook): Clear condition and entry vectors.
3859 (inline_edge_removal_hook): New function.
3860 (initialize_growth_caches, free_growth_caches): New function.
3861 (dump_inline_summary): Update.
3862 (edge_execution_predicate): New function.
3863 (will_be_nonconstant_predicate): New function.
3864 (estimate_function_body_sizes): Compute BB and constantness predicates.
3865 (compute_inline_parameters): Do not clear estimated_growth.
3866 (estimate_edge_size_and_time): New function.
3867 (estimate_calls_size_and_time): New function.
3868 (estimate_callee_size_and_time): New function.
3869 (remap_predicate): New function.
3870 (inline_merge_summary): New function.
3871 (do_estimate_edge_time): New function based on...
3872 (estimate_edge_time): ... this one.
3873 (do_estimate_edge_growth): New function.
3874 (do_estimate_growth): New function based on....
3875 (estimate_growth): ... this one.
3876 (inline_analyze_function): Analyze after deciding on jump functions.
3877 (inline_read_section): New function.
3878 (inline_read_summary): Use it.
3879 (inline_write_summary): Write all the new data.
3880 * ipa-prop.c (ipa_get_param_decl_index): Export.
3881 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3882 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3884 (ipa_get_lattice): Move here from ipa-cp.c
3885 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3886 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3887 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3888 cgraph_edge_inlinable_p): Remove.
3889 * cgraphunit.c: Include ipainline.h
3890 (cgraph_process_new_functions): Update call of
3891 compute_inline_parameters.
3893 2011-04-22 Richard Guenther <rguenther@suse.de>
3895 * tree.c (build_int_cst): Properly create canonicalized integer
3897 (build_int_cst_type): Remove scary comments.
3899 2011-04-22 Xinliang David Li <davidxl@google.com>
3901 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3902 by default when -Wno-error is not specified.
3903 * opts-global.c (decode_options): Remove call to
3904 control_warning_options.
3906 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3908 PR tree-optimization/48717
3909 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3910 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3912 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3914 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3915 definition where used.
3917 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3920 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3921 TREE_STATIC variables declared inside of some OpenMP construct.
3923 2011-04-22 Martin Jambor <mjambor@suse.cz>
3926 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3928 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3931 * c-typeck.c (pop_init_level): Do not warn about initializing
3934 2011-04-22 Alan Modra <amodra@gmail.com>
3936 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3937 when returning call_cookie.
3938 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3939 pointers, to functions with no more vector args than the current
3940 function, and some non-local calls for ABI_V4.
3941 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3942 sibcall_nonlocal_aix64): Combine to ..
3943 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3944 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3945 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3946 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3947 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3949 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3950 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3951 sibcall_value_symbolic_64): Delete.
3953 2011-04-21 Xinliang David Li <davidxl@google.com>
3955 * cgraph.h: Remove pid.
3956 * cgraph.c: Remove pid.
3957 * value-prof.c (init_node_map): New function.
3958 (del_node_map): New function.
3959 (find_func_by_funcdef_no): New function.
3960 (gimple_ic_transform): Call new function.
3961 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3962 * function.c (get_last_funcdef_no): New function.
3963 * function.h (get_last_funcdef_no): New function.
3964 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3965 to libgcov function.
3966 (tree-profiling): Call node map init and delete function.
3968 2011-04-21 Ian Lance Taylor <iant@google.com>
3970 * godump.c (go_format_type): Use exported Go name for anonymous
3973 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3975 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3976 Call builtin_function_type_list instead of builtin_function_type.
3977 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3979 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3981 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3982 build_function_type_list instead of build_function_type.
3983 Delete variable `endlink'.
3985 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3987 * config/s390/s390.c (s390_init_builtins): Call
3988 build_function_type_list instead of build_function_type.
3990 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3992 * config/ia64/ia64.c (ia64_init_builtins): Call
3993 build_function_type_list instead of builtin_function_type.
3995 2011-04-21 Easwaran Raman <eraman@google.com>
3997 * cfgexpand.c (stack_var): Remove OFFSET...
3998 (add_stack_var): ...and its reference here...
3999 (expand_stack_vars): ...and here.
4000 (stack_var_cmp): Sort by descending order of size.
4001 (partition_stack_vars): Change heuristic.
4002 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4003 (dump_stack_var_partition): Add newline after each partition.
4005 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4006 Jeff Law <law@redhat.com>
4008 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4009 * gengtype.c (matching_file_name_substitute): Likewise.
4011 2011-04-21 Richard Guenther <rguenther@suse.de>
4014 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4016 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4018 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4020 2011-04-21 Richard Guenther <rguenther@suse.de>
4022 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4025 2011-04-21 Richard Guenther <rguenther@suse.de>
4027 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4028 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4029 Use DECL_P, not SSA_VAR_P.
4030 (ptr_derefs_may_alias_p): Likewise.
4031 (ptr_deref_may_alias_ref_p_1): Likewise.
4032 (decl_refs_may_alias_p): Likewise.
4033 (refs_may_alias_p_1): Likewise.
4034 (ref_maybe_used_by_call_p_1): Likewise.
4035 (call_may_clobber_ref_p_1): Likewise.
4036 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4037 are either MEM_REF or TARGET_MEM_REF.
4038 (indirect_refs_may_alias_p): Likewise.
4039 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4040 for MEM_EXPR of indirect calls.
4042 2011-04-21 Tristan Gingold <gingold@adacore.com>
4044 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4045 (dst_file_info_struct): Remove flen field.
4046 (lookup_filename): Remove code that set flen field.
4048 2011-04-21 Tristan Gingold <gingold@adacore.com>
4050 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4052 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4055 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4056 vec_extract and vec_concat for non-SSE4_1 targets.
4058 2011-04-21 Richard Guenther <rguenther@suse.de>
4060 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4063 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4065 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4067 (FILE): Don't undefine.
4069 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4071 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4073 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4075 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4076 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4077 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4079 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4080 definitions where used.
4081 * config/microblaze/microblaze.h (struct microblaze_args): Use
4082 rtx, not struct rtx_def *.
4083 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4085 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4086 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4087 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4088 not struct rtx_def *.
4089 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4091 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4093 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4095 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4097 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4098 operand_equal_p to compare DR_BASE_ADDRESSes.
4099 (vect_check_interleaving): Likewise.
4101 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4104 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4105 for all Neon struct constants.
4107 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4109 * target.def (legitimate_constant_p): New hook.
4110 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4111 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4112 * doc/tm.texi: Regenerate.
4113 * hooks.h (hook_bool_mode_rtx_true): Declare.
4114 * hooks.c (hook_bool_mode_rtx_true): Define.
4115 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4116 * calls.c (precompute_register_parameters): Replace uses of
4117 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4118 (emit_library_call_value_1): Likewise.
4119 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4120 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4121 * ira-costs.c (scan_one_insn): Likewise.
4122 * recog.c (general_operand, immediate_operand): Likewise.
4123 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4124 * reload1.c (init_eliminable_invariants): Likewise.
4126 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4128 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4129 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4131 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4132 * config/alpha/predicates.md (input_operand): Update call to
4133 alpha_legitimate_constant_p.
4135 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4136 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4137 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4138 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4139 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4140 (arm_legitimate_constant_p): New functions.
4141 (arm_cannot_force_const_mem): Make static.
4143 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4145 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4146 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4147 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4148 instead of bfin_legitimate_constant_p.
4149 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4150 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4152 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4154 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4156 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4157 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4158 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4159 (frv_legitimate_constant_p): Make static. Add a mode argument.
4161 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4162 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4163 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4165 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4166 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4167 * config/i386/i386.c (legitimate_constant_p): Rename to...
4168 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4170 (ix86_cannot_force_const_mem): Update accordingly.
4171 (ix86_legitimate_address_p): Likewise.
4172 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4173 * config/i386/i386.md: Update commentary.
4175 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4176 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4177 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4178 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4180 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4182 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4183 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4184 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4185 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4187 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4188 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4189 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4191 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4192 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4193 (m32r_legitimate_constant_p): New function.
4195 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4196 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4197 LEGITIMATE_CONSTANT_P.
4198 (LEGITIMATE_CONSTANT_P): Delete.
4199 * config/m68k/m68k.c (m68k_expand_prologue): Call
4200 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4201 (m68k_legitimate_constant_p): New function.
4202 * config/m68k/m68k.md: Update comments.
4204 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4205 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4206 (mcore_legitimate_constant_p): New function.
4208 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4209 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4210 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4211 Add a mode argument.
4212 (mep_legitimate_address): Update accordingly.
4213 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4215 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4217 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4218 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4219 static. Check OP's mode for VOIDmode.
4220 (microblaze_legitimate_constant_p): New function.
4221 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4223 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4224 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4225 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4226 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4227 * config/mips/predicates.md: Update comments.
4229 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4230 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4231 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4232 (mmix_legitimate_constant_p): Make static, return a bool, and take
4234 (mmix_print_operand_address): Update accordingly.
4236 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4238 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4239 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4240 static. Add a mode argument.
4241 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4243 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4245 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4246 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4247 (pa_legitimate_constant_p): New function.
4249 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4251 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4252 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4253 (pdp11_legitimate_constant_p): New function.
4255 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4256 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4257 (rs6000_legitimate_constant_p): New function.
4259 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4260 (rx_legitimate_constant_p): ...this.
4261 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4262 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4263 (rx_legitimate_constant_p): ...this.
4264 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4265 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4267 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4268 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4269 * config/s390/s390.c (legitimate_constant_p): Rename to...
4270 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4271 and add a mode argument.
4272 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4274 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4276 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4277 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4278 (sh_legitimate_constant_p): New function.
4280 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4281 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4282 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4283 (legitimate_constant_p): Rename to...
4284 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4286 (constant_address_p): Update accordingly.
4288 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4289 argument and return a bool.
4290 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4291 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4292 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4293 (spu_rtx_costs): Update accordingly.
4294 * config/spu/predicates.md (vec_imm_operand): Likewise.
4296 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4298 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4299 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4300 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4302 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4303 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4304 * config/vax/vax.c (legitimate_constant_p): Likewise.
4306 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4307 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4308 (xtensa_legitimate_constant_p): New function.
4310 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4312 * target.def (cannot_force_const_mem): Add a mode argument.
4313 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4314 * doc/tm.texi: Regenerate.
4315 * hooks.h (hook_bool_mode_rtx_false): Declare.
4316 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4317 (hook_bool_mode_const_rtx_true): Likewise.
4318 (hook_bool_mode_rtx_false): New function.
4319 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4320 to be non-VOID. Update call to cannot_force_const_mem.
4321 (find_reloads): Update accordingly.
4322 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4323 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4325 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4326 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4327 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4328 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4329 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4330 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4331 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4332 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4333 (m68k_cannot_force_const_mem): ...this new function.
4334 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4336 (mips_const_insns, mips_legitimize_const_move): Update calls.
4337 (mips_secondary_reload_class): Likewise.
4338 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4339 (pa_cannot_force_const_mem): ...this new function.
4340 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4341 (rs6000_cannot_force_const_mem): ...this new function.
4342 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4344 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4345 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4347 (xtensa_cannot_force_const_mem): ...this new function.
4349 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4351 * config/mips/mips.c (mips16_build_function_stub): Call
4352 build_function_type_list instead of build_function_type.
4353 (mips16_build_call_stub): Likewise.
4355 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4357 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4358 instead of build_function_type.
4360 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4362 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4363 instead of build_function_type.
4365 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4368 * config/i386/i386.md (insv): Change operand 0 constraint to
4369 "register_operand". Change operand 1 and 2 constraint to
4370 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4371 * config/i386/sse.md (sse4_1_pinsrb): Export.
4372 (sse2_pinsrw): Ditto.
4373 (sse4_1_pinsrd): Ditto.
4374 (sse4_1_pinsrq): Ditto.
4375 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4376 * config/i386/i386.c (ix86_expand_pinsr): New.
4378 2011-04-20 Easwaran Raman <eraman@google.com>
4380 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4381 containing union type only with -fstrict-aliasing.
4383 2011-04-20 Jim Meyering <meyering@redhat.com>
4385 Remove useless if-before-free tests.
4386 * calls.c (expand_call, save_area): Likewise.
4387 * cfgcleanup.c (try_forward_edges): Likewise.
4388 * collect2.c (collect_execute): Likewise.
4389 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4390 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4391 * coverage.c (coverage_checksum_string): Likewise.
4392 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4393 * cselib.c (cselib_init): Likewise.
4394 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4395 (df_set_clean_cfg): Likewise.
4396 * function.c (free_after_compilation): Likewise.
4397 * gcc.c (do_spec_1, main): Likewise.
4398 * gcov.c (create_file_names): Likewise.
4399 * gensupport.c (identify_predicable_attribute): Likewise.
4400 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4401 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4402 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4403 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4404 * ipa-pure-const.c (local_pure_const): Likewise.
4405 * ipa-reference.c (propagate): Likewise.
4406 * ira-costs.c (free_ira_costs): Likewise.
4407 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4408 * matrix-reorg.c (mat_free): Likewise.
4409 * prefix.c (get_key_value): Likewise.
4410 * profile.c (compute_value_histograms): Likewise.
4411 * reload1.c (free_reg_equiv): Likewise.
4412 * sched-deps.c (free_deps): Likewise.
4413 * sel-sched-ir.c (fence_clear): Likewise.
4414 * sese.c (set_rename, if_region_set_false_region): Likewise.
4415 * tree-data-ref.c (free_rdg): Likewise.
4416 * tree-eh.c (lower_try_finally): Likewise.
4417 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4418 * tree-ssa-live.c (delete_var_map): Likewise.
4419 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4420 * tree-ssa-pre.c (phi_trans_add): Likewise.
4422 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4424 PR tree-optimization/48611
4425 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4426 beyond ERT_MUST_NOT_THROW region.
4428 2011-04-20 Catherine Moore <clm@codesourcery.com>
4430 * config/mips/mips.opt (mfix-24k): New.
4431 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4432 * config/mips/mips.md (length): Increase by 4 for stores if
4434 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4435 all noreorder if fixing 24K errata.
4436 * doc/invoke.texi: Document mfix-24k.
4438 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4440 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4441 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4443 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4445 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4446 (const_ok_for_op): ... to here.
4448 2011-04-20 Kai Tietz <ktietz@redhat.com>
4450 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4451 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4453 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4455 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4457 2011-04-20 Richard Guenther <rguenther@suse.de>
4459 PR tree-optimization/47892
4460 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4463 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4465 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4467 2011-04-20 Tristan Gingold <gingold@adacore.com>
4469 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4471 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4475 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4476 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4477 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4478 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4479 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4481 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4484 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4485 (avr_asm_named_section, avr_asm_output_aligned_common,
4486 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4487 New functions to update...
4488 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4489 (avr_asm_init_sections): Overwrite section callbacks for
4490 data_section, bss_section.
4491 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4493 (avr_file_end): ...here.
4495 2011-04-20 Richard Guenther <rguenther@suse.de>
4498 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4499 objects and types here. Adjust for their offset before comparing.
4501 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4503 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4506 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4508 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4509 (GIMPLE_H): Include $(INTERNAL_FN_H).
4510 (OBJS-common): Add internal-fn.o.
4511 (internal-fn.o): New rule.
4512 * internal-fn.def: New file.
4513 * internal-fn.h: Likewise.
4514 * internal-fn.c: Likewise.
4515 * gimple.h: Include internal-fn.h.
4516 (GF_CALL_INTERNAL): New gf_mask.
4517 (gimple_statement_call): Put fntype into a union with a new
4519 (gimple_build_call_internal): Declare.
4520 (gimple_build_call_internal_vec): Likewise.
4521 (gimple_call_same_target_p): Likewise.
4522 (gimple_call_internal_p): New function.
4523 (gimple_call_internal_fn): Likewise.
4524 (gimple_call_fntype): Return null for internal calls.
4525 (gimple_call_set_fntype): Assert that the function is not internal.
4526 (gimple_call_set_fn): Likewise.
4527 (gimple_call_set_fndecl): Likewise.
4528 (gimple_call_set_internal_fn): New function.
4529 (gimple_call_addr_fndecl): Handle null functions.
4530 (gimple_call_return_type): Likewise null types.
4531 * gimple.c (gimple_build_call_internal_1): New function.
4532 (gimple_build_call_internal): Likewise.
4533 (gimple_build_call_internal_vec): Likewise.
4534 (gimple_call_same_target_p): Likewise.
4535 (gimple_call_flags): Handle calls to internal functions.
4536 (gimple_call_fnspec): New function.
4537 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4538 (gimple_has_side_effects): Handle null functions.
4539 (gimple_rhs_has_side_effects): Likewise.
4540 (gimple_call_copy_skip_args): Handle calls to internal functions.
4541 * cfgexpand.c (expand_call_stmt): Likewise.
4542 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4543 * gimple-fold.c (gimple_fold_call): Handle null functions.
4544 (gimple_fold_stmt_to_constant_1): Don't fold
4545 calls to internal functions.
4546 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4548 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4549 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4550 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4551 (do_warn_unused_result): Likewise.
4552 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4553 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4554 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4555 the target of a call.
4556 (initialize_hash_element): Update accordingly.
4557 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4558 (iterative_hash_hashable_expr): Handle calls to internal functions.
4559 (print_expr_hash_elt): Likewise.
4560 * tree-ssa-pre.c (can_value_number_call): Likewise.
4561 (eliminate): Handle null functions.
4562 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4563 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4564 (find_func_aliases): Likewise.
4565 * value-prof.c (gimple_ic_transform): Likewise.
4566 (gimple_indirect_call_to_profile): Likewise.
4567 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4568 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4570 2011-04-19 Jan Hubicka <jh@suse.cz>
4572 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4573 * ipa-inline.c (inline_small_functions): Compute summaries first,
4574 populate heap later.
4576 2011-04-19 Jan Hubicka <jh@suse.cz>
4578 * cgraph.h (save_inline_function_body): Remove.
4579 * ipa-inline-transform.c: New file, broke out of...
4580 * ipa-inline.c: ... this one; Update toplevel comment.
4581 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4583 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4584 (cgraph_mark_inline_edge): Rename to inline_call; move to
4585 ipa-inline-transform.c.
4586 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4587 move to ipa-inline-transform.c
4588 (recursive_inlining, inline_small_functions, flatten_function,
4589 ipa_inline, inline_always_inline_functions,
4590 early_inline_small_functions): Update.
4591 (inline_transform): Move to ipa-inline-transform.c.
4592 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4594 * Makefile.in (ipa-inline-transform.o): New file.
4595 * cgraphunit.c (save_inline_function_body): Move to
4596 ipa-inline-transform.c
4598 2011-04-19 DJ Delorie <dj@redhat.com>
4600 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4601 registers if we already know there aren't any.
4602 (m32c_emit_epilogue): Don't emit a barrier here.
4603 (m32c_emit_eh_epilogue): Likewise.
4604 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4605 operands at expand time.
4606 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4608 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4609 duplicates. Provide aliases instead.
4610 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4611 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4614 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4616 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4617 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4618 (general_or_i64_p, sparc_register_move_cost): New function.
4620 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4622 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4623 Add lynx, mipssde. Sort table.
4625 2011-04-19 Xinliang David Li <davidxl@google.com>
4627 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4630 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4633 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4634 is a SUBREG with non-MODE_INT mode inside of it.
4636 2011-04-19 Martin Jambor <mjambor@suse.cz>
4638 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4639 also according to actual contants.
4640 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4641 (gimple_fold_call): Use it.
4642 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4644 2011-04-19 Martin Jambor <mjambor@suse.cz>
4646 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4647 non-pointer assignments.
4649 2011-04-19 Martin Jambor <mjambor@suse.cz>
4651 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4652 account anc_offset and otr_type from the indirect edge info.
4653 * ipa-prop.c (get_ancestor_addr_info): New function.
4654 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4655 get_ancestor_addr_info, call it.
4656 (ipa_note_param_call): Do not initialize information about polymorphic
4657 calls, return the indirect call graph edge. Remove the last
4658 parameter, adjust all callers.
4659 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4660 parameters. Initialize polymorphic information in the indirect edge.
4662 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4665 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4666 the types if they have different enumeration identifiers.
4668 2011-04-19 Jan Hubicka <jh@suse.cz>
4670 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4671 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4672 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4673 (optimize_function_for_size_p) ... here.
4675 2011-04-19 Richard Guenther <rguenther@suse.de>
4678 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4681 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4683 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4684 if DECL_NO_INLINE_WARNING_P is set on the function.
4686 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4689 * reload1.c (inc_for_reload): Return void. All callers changed.
4690 (emit_input_reload_insns): Don't try to delete previous output
4691 reloads to a register, or record spill_reg_store for autoincs.
4693 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4695 * gengtype.h: Updated copyright year.
4696 (struct input_file_st): Add inpisplugin field.
4697 (type_fileloc): New function.
4699 (write_typed_struct_alloc_def): Add gcc_assert.
4700 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4701 (write_typed_alloc_defns): Don't output for plugin files.
4702 (input_file_by_name): Clear inpisplugin field.
4703 (main): Set inpisplugin field for plugin files.
4705 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4707 * gengtype-state.c (string_eq): New.
4708 (read_state): Use string_eq instead of strcmp when creating the
4711 2011-04-19 Wei Guozhi <carrot@google.com>
4714 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4715 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4717 * config/arm/constraints.md (Uu): New constraint.
4718 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4720 2011-04-19 Tristan Gingold <gingold@adacore.com>
4722 * config.gcc (-*-*-*vms): Added.
4723 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4725 * config/vms/vms-ld.c: New file.
4726 * config/vms/vms-ar.c: New file.
4727 * config/vms/t-vmsnative: New file.
4729 2011-04-18 Xinliang David Li <davidxl@google.com>
4731 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4733 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4736 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4737 if TREE_TYPE (v) is non-NULL.
4739 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4740 gimple_get_virt_mehtod_for_binfo.
4741 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4742 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4744 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4746 2011-04-18 Michael Matz <matz@suse.de>
4747 Steve Ellcey <sje@cup.hp.com>
4749 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4750 use its mode as source mode if it isn't VOIDmode.
4752 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4754 * doc/passes.texi: Fill crossref nodes.
4756 2011-04-18 Jim Meyering <meyering@redhat.com>
4758 Fix doubled-word typos in comments and strings
4759 * config/alpha/vms-unwind.h: s/for for/for/
4760 * config/arm/unwind-arm.h: Likewise.
4761 * config/microblaze/microblaze.c: Likewise.
4762 * config/sh/constraints.md: s/in in/in/
4763 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4765 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4767 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4768 (AVX_FLOAT_MODE_P): Ditto.
4769 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4770 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4771 (AVX_VEC_FLOAT_MODE_P): Ditto.
4772 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4773 (UNSPEC_MASKSTORE): Ditto.
4774 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4775 Merge from <sse>_movmsk<ssemodesuffix> and
4776 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4777 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4779 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4780 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4781 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4783 2011-04-18 Jan Hubicka <jh@suse.cz>
4785 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4787 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4788 (want_inline_function_called_once_p): Break out the logic from
4790 (edge_badness): Ensure that profile is not misupdated.
4791 (lookup_recursive_calls): Prioritize by call frequencies.
4792 (inline_small_functions): Move program size estimates here;
4793 actually process whole queue even when unit growth has been
4794 met. (to properly compute inline_failed reasons and for the
4795 case unit size decrease.) Revisit comments on recursive inlining.
4796 (ipa_inline): Remove unit summary code; first inline hot calls
4797 of functions called once, cold calls next.
4798 (order, nnodes): Remove unused variables.
4799 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4800 (GTFILES): Remove ipa-inline.c
4801 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4803 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4805 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4807 2011-04-18 Jie Zhang <jie@codesourcery.com>
4808 Richard Earnshaw <rearnsha@arm.com>
4810 * arm.c (neon_builtin_type_bits): Remove.
4811 (typedef enum neon_builtin_mode): New.
4812 (T_MAX): Don't define.
4813 (typedef enum neon_builtin_datum): Remove bits, codes[],
4814 num_vars and base_fcode. Add mode, code and fcode.
4815 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4816 VAR10): Change accordingly.
4817 (neon_builtin_data[]): Change accordingly
4818 (arm_init_neon_builtins): Change accordingly.
4819 (neon_builtin_compare): Remove.
4820 (locate_neon_builtin_icode): Remove.
4821 (arm_expand_neon_builtin): Change accordingly.
4823 * arm.h (enum arm_builtins): Move to ...
4824 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4826 * arm.c (arm_builtin_decl): Declare.
4827 (TARGET_BUILTIN_DECL): Define.
4828 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4829 (arm_builtin_decls[]): New.
4830 (arm_init_neon_builtins): Store builtin declarations in
4831 arm_builtin_decls[].
4832 (arm_init_tls_builtins): Likewise.
4833 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4834 (arm_builtin_decl): New.
4836 2011-04-18 Richard Guenther <rguenther@suse.de>
4838 * tree.c (upper_bound_in_type): Build properly canonicalized
4840 (lower_bound_in_type): Likewise.
4842 2011-04-18 Richard Guenther <rguenther@suse.de>
4844 * gimple.h (gimple_call_addr_fndecl): New function.
4845 (gimple_call_fndecl): Use it.
4846 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4848 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4849 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4851 2011-04-18 Richard Guenther <rguenther@suse.de>
4854 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4856 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4859 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4860 DECL_IN_CONSTANT_POOL without RTL.
4862 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4863 Ira Rosen <ira.rosen@linaro.org>
4866 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4867 to match neon_vzip/vuzp/vtrn_internal.
4868 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4869 outputs explicitly dependent on both inputs.
4870 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4872 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4874 PR tree-optimization/48616
4875 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4876 whether the shift is by scalar or vector based on whether all SLP
4877 scalar stmts have the same rhs.
4879 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4881 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4884 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4886 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4889 2011-04-17 Jan Hubicka <jh@suse.cz>
4891 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4892 * cgrpahunit.c (cgraph_finalize_function): Do not set
4893 finalized_by_frontend.
4894 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4895 finalized_by_frontend.
4897 2011-04-17 Jan Hubicka <jh@suse.cz>
4899 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4900 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4901 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4902 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4904 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4906 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4908 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4911 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4912 is non-null before accessing it.
4913 (input_cgraph): Remove trailing spaces.
4915 2011-04-17 Revital Eres <revital.eres@linaro.org>
4917 * params.def (sms-min-sc): New param flag.
4918 * modulo-sched.c (sms_schedule): Use it.
4919 * doc/invoke.texi (sms-min-sc): Document it.
4921 2011-04-17 Jan Hubicka <jh@suse.cz>
4923 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4924 present, also set gimple_call_set_cannot_inline.
4925 * ipa-inline.c: Update toplevel comment.
4927 (cgraph_clone_inlined_nodes): Fix linebreaks.
4928 (cgraph_check_inline_limits): Restructure to ...
4929 (caller_growth_limits): ... this one; be more tolerant
4930 on growth in nested inline chains; add explanatory comment;
4931 fix stack accounting thinko introduced by previous patch.
4932 (cgraph_default_inline_p): Remove.
4933 (report_inline_failed_reason): New function.
4934 (can_inline_edge_p): New function.
4935 (can_early_inline_edge_p): New function.
4936 (leaf_node_p): Move upwards in file.
4937 (want_early_inline_function_p): New function.
4938 (want_inline_small_function_p): New function.
4939 (want_inline_self_recursive_call_p): New function.
4940 (cgraph_edge_badness): Rename to ...
4941 (edge_badness) ... this one; fix linebreaks.
4942 (update_edge_key): Update call of edge_baddness; add
4943 detailed dump about queue updates.
4944 (update_caller_keys): Use can_inline_edge_p and
4945 want_inline_small_function_p.
4946 (cgraph_decide_recursive_inlining): Rename to...
4947 (recursive_inlining): Use can_inline_edge_p and
4948 want_inline_self_recursive_call_p; simplify and remove no longer
4950 (cgraph_set_inline_failed): Remove.
4951 (add_new_edges_to_heap): Use can_inline_edge_p and
4952 want_inline_small_function_p.
4953 (cgraph_decide_inlining_of_small_functions): Rename to ...
4954 (inline_small_functions): ... this one; cleanup; use
4955 can/want predicates; cleanup debug ouput; work edges till fibheap
4956 is exhausted and do not stop once unit growth is reached; remove
4957 later loop processing remaining edges.
4958 (cgraph_flatten): Rename to ...
4959 (flatten_function): ... this one; use can_inline_edge_p
4960 and can_early_inline_edge_p predicates.
4961 (cgraph_decide_inlining): Rename to ...
4962 (ipa_inline): ... this one; remove unreachable nodes before
4963 inlining functions called once; simplify the pass.
4964 (cgraph_perform_always_inlining): Rename to ...
4965 (inline_always_inline_functions): ... this one; use
4966 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4967 (cgraph_decide_inlining_incrementally): Rename to ...
4968 (early_inline_small_functions): ... this one; simplify
4969 using new predicates; cleanup; make dumps prettier.
4970 (cgraph_early_inlining): Rename to ...
4971 (early_inliner): newer inline regular functions into always-inlines;
4972 fix updating of call stmt summaries.
4973 (pass_early_inline): Update for new names.
4974 (inline_transform): Fix formating.
4975 (gate_cgraph_decide_inlining): Rename to ...
4976 (pass_ipa_inline): ... this one.
4977 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4978 * ipa-inline-analysis.c (dump_inline_summary): Update.
4979 (compute_inline_parameters): Do not compute disregard_inline_limits;
4980 look for mismatching arguments.
4981 (estimate_growth): Fix handlig of non-trivial self recursion.
4982 (inline_read_summary): Do not read info->disregard_inline_limits.
4983 (inline_write_summary): Do not write info->disregard_inline_limits.
4984 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4985 and move all checks into can_inline_edge_p predicate; re-enable code
4986 comparing optimization levels.
4987 (expand_call_inline): Do not test inline_forbidden_into_p.
4988 * Makefile.in (ipa-inline.o): Update arguments.
4990 2011-04-17 Revital Eres <revital.eres@linaro.org>
4992 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4994 2011-04-17 Revital Eres <revital.eres@linaro.org>
4996 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4998 2011-04-17 Michael Matz <matz@suse.de>
5000 PR tree-optimization/48622
5002 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5003 in same order as they're written.
5005 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5007 * config/pa/predicates.md: Reorganize and simplify predicates.
5008 Eliminate duplicate code checks.
5009 (arith_operand): Rename to arith14_operand
5010 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5011 * config/pa/pa.md: Use renamed operands.
5012 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5013 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5014 arith11_operand, adddi3_operand, indexed_memory_operand,
5015 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5016 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5017 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5018 move_dest_operand, move_src_operand, prefetch_cc_operand,
5019 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5020 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5021 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5022 div_operand, int5_operand, movb_comparison_operator,
5023 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5024 arith_double_operand, ireg_operand, lhs_lshift_operand,
5025 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5026 integer_store_memory_operand): Likewise.
5027 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5028 (integer_store_memory_operand, read_only_operand,
5029 function_label_operand, borx_reg_operand,
5030 non_hard_reg_operand): Likewise.
5031 (eq_neq_comparison_operator): Delete unused operator.
5032 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5033 function_label_operand.
5034 (emit_move_sequence): Likewise.
5036 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5038 * config/i386/sse.md (sseunpackmode): New mode attribute.
5039 (ssepackmode): Ditto.
5040 (vec_pack_trunc_<mode>): Macroize expander from
5041 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5042 (vec_unpacks_lo_<mode>): Macroize expander from
5043 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5044 (vec_unpacks_hi_<mode>): Macroize expander from
5045 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5046 (vec_unpacku_lo_<mode>): Macroize expander from
5047 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5048 (vec_unpacku_hi_<mode>): Macroize expander from
5049 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5050 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5051 ix86_expand_sse4_unpack.
5052 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5054 2011-04-16 Jan Hubicka <jh@suse.cz>
5056 * cgraphbuild.c: Include ipa-inline.h.
5057 (reset_inline_failed): Use initialize_inline_failed.
5058 * cgraph.c: Include ipa-inline.h.
5059 (cgraph_create_node_1): Do not initialize estimated_growth.
5060 (initialize_inline_failed): More to ipa-inline-analysis.c
5061 (dump_cgraph_node): Do not dump inline flags.
5062 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5063 and disregard_inline_limits flags.
5064 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5065 time, size, estimated_growth.
5066 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5068 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5069 DECL_DISREGARD_INLINE_LIMITS.
5070 (cgraph_analyze_function): Do not initialize
5071 node->local.disregard_inline_limits.
5072 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5073 inlinable, versionable and disregard_inline_limits.
5074 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5075 cgraph_check_inline_limits, cgraph_default_inline_p,
5076 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5077 add_new_edges_to_heap): Update.
5078 (cgraph_decide_inlining_of_small_function): Update; set
5079 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5080 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5081 cgraph_decide_inlining_incrementally): Update.
5082 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5083 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5084 time, size and estimated_growth parameters.
5085 (estimate_edge_growth): Update.
5086 (initialize_inline_failed): Declare.
5087 * ipa-split.c: Include ipa-inline.h
5088 (execute_split_functions): Update.
5089 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5090 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5091 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5092 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5093 estimated_growth to INT_MIN.
5094 (inline_node_duplication_hook): Likewise.
5095 (dump_inline_summary): Dump new fields.
5096 (compute_inline_parameters): Update.
5097 (estimate_edge_time, estimate_time_after_inlining,
5098 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5099 inline_write_summary):
5100 (initialize_inline_failed): Move here from cgraph.c.
5101 * tree-sra.c: Include ipa-inline.h.
5102 (ipa_sra_preliminary_function_checks): Update.
5103 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5106 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5108 * config/i386/sse.md (V16): New mode iterator.
5110 (AVXMODEQI, AVXMODEDI): Remove.
5111 (sse2, sse3): New mode attribute.
5112 (mov<mode>): Use V16 mode iterator.
5113 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5114 (push<mode>1): Use V16 mode iterator.
5115 (movmisalign<mode>): Ditto.
5116 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5117 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5118 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5119 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5120 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5121 avx_movdqu<avxmodesuffix>.
5122 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5123 *avx_movdqu<avxmodesuffix>.
5124 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5125 avx_lddqu<avxmodesuffix>.
5126 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5127 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5128 avx_movnt<AVXMODEDI:mode>.
5129 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5130 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5132 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5135 * haifa-sched.c (prune_ready_list, schedule_block): Use
5136 sched_pressure_p rather than flag_sched_pressure.
5138 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5140 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5141 cgraph_get_node instead of cgraph_get_create_node.
5143 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5145 * cfgexpand.c (expand_debug_expr): Use
5146 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5148 2011-04-15 Michael Matz <matz@suse.de>
5150 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5151 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5152 * function.c (gimplify_parameters): Ditto.
5153 * gimplify.c (gimplify_vla_decl): Ditto.
5155 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5156 (gimple_call_set_alloca_for_var): New inline function.
5157 (gimple_call_alloca_for_var_p): Ditto.
5158 * gimple.c (gimple_build_call_from_tree): Remember
5159 CALL_ALLOCA_FOR_VAR_P state.
5160 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5162 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5163 calls if they were for VLA objects.
5165 2011-04-15 Martin Jambor <mjambor@suse.cz>
5167 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5170 2011-04-15 Martin Jambor <mjambor@suse.cz>
5173 * tree-emutls.c (lower_emutls_function_body): Call
5174 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5177 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5179 * c-decl.c (detect_field_duplicates): Call
5180 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5182 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5184 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5185 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5186 * ipa-pure-const.c (check_stmt): Call it.
5187 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5189 2011-04-15 Richard Guenther <rguenther@suse.de>
5191 PR tree-optimization/48290
5192 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5193 Properly decide inhibiting propagation based on the valueized
5194 operand. Do loop-closed SSA form preserving here ...
5195 (init_copy_prop): ... not here.
5197 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5200 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5201 (*ieee_smax<mode>3): Likewise.
5203 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5205 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5206 Replace match_operand with match_dup for the third operand in
5209 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5211 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5212 to track processing of conditionals. Update all callers.
5213 (try_combine, simplify_if_then_else): Update.
5215 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5217 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5220 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5222 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5223 instead of match_operand for operand 3.
5225 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5227 * recog.h (insn_operand_data): Add an "allows_mem" field.
5228 * genoutput.c (output_operand_data): Initialize it.
5229 * optabs.c (maybe_legitimize_operand_same_code): New function.
5230 (maybe_legitimize_operand): Use it when matching the original
5233 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5235 * gimplify.c: Fix issues in comments throughout.
5236 (voidify_wrapper_expr): Fix long line.
5237 (build_stack_save_restore): Likewise.
5238 (gimplify_loop_expr): Likewise.
5239 (gimplify_compound_lval): Likewise.
5240 (gimplify_init_ctor_eval): Likewise.
5241 (gimplify_modify_expr_rhs): Likewise.
5242 (omp_notice_threadprivate_variable): Likewise.
5244 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5246 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5247 original one if this is not a builtin function.
5249 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5252 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5253 offset it as needed based on top 2 bits in operands[3], change
5254 MEM mode to SFmode and mask those 2 bits away from operands[3].
5256 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5258 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5259 change from objc_declare_protocols() to objc_declare_protocol().
5261 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5263 * config/i386/sse.md (sse4_1): New mode attribute.
5264 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5265 avx_blend<ssemodesuffix><avxmodesuffix> and
5266 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5267 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5268 avx_blendv<ssemodesuffix><avxmodesuffix> and
5269 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5270 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5271 avx_dp<ssemodesuffix><avxmodesuffix> and
5272 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5273 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5274 (sse4_1_packusdw): Merge with *avx_packusdw.
5275 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5276 (sse4_1_pblendw): Merge with *avx_pblendw.
5277 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5278 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5279 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5281 (sse4_1_round<ssescalarmodesuffix>): Merge with
5282 *avx_round<ssescalarmodesuffix>.
5283 (aesenc): Merge with *avx_aesenc.
5284 (aesenclast): Merge with *avx_aesenclast.
5285 (aesdec): Merge with *avx_aesdec.
5286 (aesdeclast): Merge with *avx_aesdeclast.
5287 (pclmulqdq): Merge with *pclmulqdq.
5288 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5290 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5292 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5295 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5296 (align_local_variable): This. Update DECL_ALIGN.
5297 (add_stack_var): Updated.
5298 (expand_one_stack_var): Likewise.
5300 2011-04-14 Richard Guenther <rguenther@suse.de>
5302 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5304 (dse_initialize_block_local_data, dse_leave_block,
5305 record_voperand_set, get_stmt_uid): Likewise.
5306 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5307 (dse_optimize_stmt): Remove voperand set handling code.
5308 Simplify and improve to handle any kind of killing stmt.
5309 (dse_record_phi): Remove.
5310 (dse_enter_block): Simplify.
5311 (tree_ssa_dse): Likewise.
5312 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5314 2011-04-14 Jan Hubicka <jh@suse.cz>
5316 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5317 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5318 (cgraph_local_info): Remove inline_summary.
5319 * ipa-cp.c: Include ipa-inline.h.
5320 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5321 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5323 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5324 (input_overwrite_node): Do not set inline summary.
5325 (input_node): Do not stream inline summary.
5326 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5327 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5328 growth; we do not have inline parameters computed for that anyway.
5329 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5330 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5331 (inline_summary_t): New type and VECtor.
5332 (debug_inline_summary, dump_inline_summaries): Declare.
5333 (inline_summary): Use VOCtor.
5334 (estimate_edge_growth): Kill hack computing call stmt size directly.
5335 * lto-section-in.c (lto_section_name): Add inline section.
5336 * ipa-inline-analysis.c: Include lto-streamer.h
5337 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5338 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5339 (inline_summary_vec): Define.
5340 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5341 dump_inline_summaries): New functions.
5342 (estimate_function_body_sizes): Properly compute size/time of outgoing
5344 (compute_inline_parameters): Alloc inline_summary; do not compute
5345 size/time of incomming calls.
5346 (estimate_edge_time): Avoid missing time summary hack.
5347 (inline_read_summary): Read inline summary info.
5348 (inline_write_summary): Write inline summary info.
5349 (inline_free_summary): Free all hooks and inline summary vector.
5350 * lto-streamer.h: Add LTO_section_inline_summary section.
5351 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5352 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5354 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5356 * tree-vectorizer.h (vect_strided_store_supported): Add a
5357 HOST_WIDE_INT argument.
5358 (vect_strided_load_supported): Likewise.
5359 (vect_permute_store_chain): Return void.
5360 (vect_transform_strided_load): Likewise.
5361 (vect_permute_load_chain): Delete.
5362 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5363 count argument. Check that the count is a power of two.
5364 (vect_strided_load_supported): Likewise.
5365 (vect_permute_store_chain): Return void. Update after above changes.
5366 Assert that the access is supported.
5367 (vect_permute_load_chain): Likewise.
5368 (vect_transform_strided_load): Return void.
5369 * tree-vect-stmts.c (vectorizable_store): Update calls after
5370 above interface changes.
5371 (vectorizable_load): Likewise.
5372 (vect_analyze_stmt): Don't check for strided powers of two here.
5374 2011-04-14 Richard Guenther <rguenther@suse.de>
5376 PR tree-optimization/48590
5377 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5378 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5379 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5380 BUILT_IN_STACK_SAVE.
5381 * tree-ssa-dce.c (propagate_necessity): Handle
5382 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5384 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5386 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5389 2011-04-14 Richard Guenther <rguenther@suse.de>
5391 * tree.h (get_object_alignment_1): Declare.
5392 * builtins.c (get_object_alignment_1): Split out worker from ...
5393 (get_object_alignment): ... here.
5394 * fold-const.c (get_pointer_modulus_and_residue): Use
5395 get_object_alignment_1.
5397 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5399 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5401 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5402 parameter. Generalise code to handle arrays as well as vectors.
5403 (vect_setup_realignment): Update accordingly.
5404 * tree-vect-stmts.c (vectorizable_store): Likewise.
5405 (vectorizable_load): Likewise.
5407 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5409 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5410 within the per-copy loop.
5412 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5414 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5417 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5419 * doc/options.texi (Negative): Explicitly mention that the
5420 Negative chain must be circular.
5422 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5424 * function.h (block_chainon): Declare.
5425 * function.c (block_chainon): Define.
5427 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5428 Eric Weddington <eric.weddington@atmel.com>
5429 Georg-Johann Lay <avr@gjlay.de>
5431 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5433 (avr_init_builtins, avr_expand_builtin,
5434 avr_expand_delay_cycles, avr_expand_unop_builtin,
5435 avr_expand_binop_builtin ): New functions.
5436 (avr_builtin_id): New enum
5437 (struct avr_builtin_description): New struct
5438 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5439 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5441 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5442 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5443 UNSPECV_DELAY_CYCLES): new enumeration values
5444 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5445 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5446 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5447 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5448 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5449 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5450 "fmulsu"): New insns
5452 * config/avr/avr-c.c: fix line endings
5453 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5454 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5455 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5456 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5457 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5459 * doc/extend.texi (AVR Built-in Functions): New node
5460 (Target Builtins): Add documentation of AVR
5463 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5466 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5467 alone. Error if non-const data has attribute progmem.
5469 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5471 * tree.h (struct tree_constructor): Include tree_typed instead of
5473 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5474 TS_TYPED instead of TS_COMMON.
5476 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5478 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5479 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5480 (sse2_psadbw): Merge with *avx_psadbw.
5481 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5482 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5483 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5484 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5485 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5486 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5487 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5488 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5489 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5490 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5491 (ssse3_palignrti): Merge with *avx_palignrti.
5493 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5495 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5496 * tree-ssanames.c (fini_ssanames): VEC_free it.
5497 (make_ssa_name_fn): Update for VECness of free_ssanames.
5498 (release_ssa_name, release_dead_ssa_names): Likewise.
5499 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5501 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5502 TS_TYPED instead of TS_COMMON.
5504 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5506 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5507 statistics_counter_event.
5508 * tree-ssa-copyrename.c (stats): Define.
5509 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5510 statistics_counter_event.
5511 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5512 (bswap_stats, widen_mul_stats): Define.
5513 (insert_reciprocals): Increment rdivs_inserted.
5514 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5515 rfuncs_inserted. Add calls to statistics_counter_event.
5516 (execute_cse_sincos_1): Increment inserted.
5517 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5518 statistics_counter_event.
5519 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5520 of bswap_stats. Add calls to statistics_counter_event.
5521 (convert_mult_to_widen): Increment widen_mults_inserted.
5522 (convert_plusminus_to_widen): Increment maccs_inserted.
5523 (convert_mult_to_fma): Increment fmas_inserted.
5524 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5525 calls to statistics_counter_event.
5527 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5529 PR rtl-optimization/48455
5530 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5531 `temp_costs->mem_cost'.
5533 2011-04-13 Jan Hubicka <jh@suse.cz>
5535 * ipa-inline.h: New file.
5536 * ipa-inline-analysis.c: New file. Broken out of ...
5537 * ipa-inline.c: ... this file; update toplevel comment;
5538 include ipa-inline.h
5539 (inline_summary): Move to ipa-inline.h
5540 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5541 ipa-inline-analysis.c.
5542 (cgraph_estimate_time_after_inlining): Rename to
5543 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5544 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5545 to estimate_edge_growth.
5546 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5547 rename to estimate_size_after_inlining.
5548 (cgraph_mark_inline_edge): Update for new naming convention.
5549 (cgraph_check_inline_limits): Likewise.
5550 (cgraph_edge_badness): Likewise.
5551 (cgraph_decide_recursive_inlining): Likewise.
5552 (cgraph_decide_inlining_of_small_functions): Likewise.
5553 (cgraph_decide_inlining_incrementally): Likewise.
5554 (cgraph_estimate_growth): Rename to estimate_growth; move to
5555 ipa-inline-analysis.c.
5556 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5557 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5558 (compute_inline_parameters): Likewise.
5559 (compute_inline_parameters_for_current): Likewise.
5560 (pass_inline_parameters): Likewise.
5561 (inline_indirect_intraprocedural_analysis): Likewise.
5562 (analyze_function): Rename to inline_analyze_function; likewise.
5563 (add_new_function): Move to ipa-inline-analysis.c.
5564 (inline_generate_summary): Likewise.
5565 (inline_read_summary): Likewise.
5566 (inline_write_summary): Likewise.
5567 * Makefile.in (ipa-inline-analysis.c): New file.
5569 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5571 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5572 * configure: Regenerate.
5574 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5576 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5577 instead of tree_common.
5578 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5580 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5581 TS_TYPED rather than TS_COMMON.
5582 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5584 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5587 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5588 r20 around calls of __tablejump_elpm__
5590 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5593 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5595 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5597 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5599 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5600 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5601 (cfi_vec): New typedef.
5602 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5603 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5604 (cie_cfi_vec): New static variable.
5605 (cie_cfi_head): Delete.
5606 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5607 declaration changed. Use vector rather than list operations.
5608 (new_cfi): Don't initialize the dw_cfi_next field.
5609 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5610 rather than list operations.
5611 (lookup_cfa): Use vector rather than list operations.
5612 (output_cfis): New argument upto. Accept a cfi_vec rather than
5613 a dw_cfi_ref list head as argument. All callers changed.
5614 Iterate over the vector using upto as a maximum index.
5615 (output_all_cfis): New static function.
5616 (output_fde): Use vector rather than list operations. Use the
5617 new upto argument for output_cfis rather than manipulating a
5619 (dwarf2out_begin_prologue): Change initializations to match
5621 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5622 from the vector length rather than searching for the end of a list.
5623 Use output_all_cfis.
5624 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5626 2011-04-13 Nick Clifton <nickc@redhat.com>
5628 * config/rx/rx.md (movmemsi): Do not use this pattern when
5629 volatile pointers are involved.
5631 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5633 * config/i386/sse.md (pinsrbits): Remove.
5634 (sse2_packsswb): Merge with *avx_packsswb.
5635 (sse2_packssdw): Merge with *avx_packssdw.
5636 (sse2_packuswb): Merge with *avx_packuswb.
5637 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5638 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5639 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5640 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5641 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5642 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5643 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5644 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5645 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5646 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5647 (sse2_loadld): Merge with *avx_loadld.
5648 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5649 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5650 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5651 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5652 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5654 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5656 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5658 * print-tree.c (print_node): Likewise.
5659 * tree-inline.c (copy_tree_r): Likewise.
5660 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5661 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5662 instead of TS_COMMON.
5663 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5664 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5665 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5666 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5667 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5669 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5671 (TREE_CHAIN): Check for a TS_COMMON structure.
5672 (TREE_TYPE): Check for a TS_TYPED structure.
5674 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5676 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5677 cgraph_get_create_node instead of cgraph_node.
5679 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5681 * c-parser.c (c_parser_initelt): Updated call to
5682 objc_build_message_expr.
5683 (c_parser_postfix_expression): Likewise.
5685 2011-04-12 Kai Tietz <ktietz@redhat.com>
5687 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5688 MASK_MS_BITFIELD_LAYOUT bit.
5690 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5692 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5693 assert it is always true.
5694 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5697 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5699 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5700 compiling Objective-C to be more efficient.
5702 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5704 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5707 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5709 * recog.h, genoutput.c, optabs.c: Revert last patch.
5711 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5714 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5716 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5718 * recog.h (insn_operand_data): Add an "allows_mem" field.
5719 * genoutput.c (output_operand_data): Initialize it.
5720 * optabs.c (maybe_legitimize_operand_same_code): New function.
5721 (maybe_legitimize_operand): Use it when matching the original
5724 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5726 * genpreds.c (process_define_predicate): Move most processing
5727 to gensupport.c. Continue to validate the expression.
5728 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5729 (process_define_predicate): Move processing to gensupport.c.
5730 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5731 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5732 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5734 (valid_predicate_name_p): New function, split out from old
5735 genpreds.c:process_define_predicate.
5736 (process_define_predicate): New function, combining code from
5737 old genpreds.c and genrecog.c functions.
5738 (process_rtx): Call it for DEFINE_PREDICATE and
5739 DEFINE_SPECIAL_PREDICATE.
5741 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5743 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5744 size of a '%A' memory reference.
5745 (T_DREG, T_QREG): New neon_builtin_type_bits.
5746 (arm_init_neon_builtins): Assert that the load and store operands
5747 are neon_struct_operands.
5748 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5749 (NEON_ARG_MEMORY): New builtin_arg.
5750 (neon_dereference_pointer): New function.
5751 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5752 Handle NEON_ARG_MEMORY.
5753 (arm_expand_neon_builtin): Update after above interface changes.
5754 Use NEON_ARG_MEMORY for loads and stores.
5755 * config/arm/predicates.md (neon_struct_operand): New predicate.
5756 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5757 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5758 (V_four_elem): Tweak formatting.
5759 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5760 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5761 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5762 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5763 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5764 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5765 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5766 Use %A in the output template.
5767 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5768 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5769 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5770 the width of the memory access. Remove post-increment.
5771 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5773 2011-04-12 Nick Clifton <nickc@redhat.com>
5775 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5776 instruction for interrupt handlers if the target is the basic V850
5778 (expand_epilogue): Likewise.
5780 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5782 PR rtl-optimization/48549
5783 * combine.c (propagate_for_debug): Also stop after BB_END of
5784 this_basic_block. Process LAST and just stop processing after it.
5785 (combine_instructions): If last_combined_insn has been deleted,
5786 set last_combined_insn to its PREV_INSN.
5788 2011-04-12 Richard Guenther <rguenther@suse.de>
5790 PR tree-optimization/46076
5791 * gimple.h (struct gimple_statement_call): Add fntype field.
5792 (gimple_call_fntype): Adjust.
5793 (gimple_call_set_fntype): New function.
5794 * gimple.c (gimple_build_call_1): Set the call function type.
5795 * gimplify.c (gimplify_call_expr): Preserve the function
5796 type the frontend used for the call.
5797 (gimplify_modify_expr): Likewise.
5798 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5800 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5802 * tree-ssa.c (useless_type_conversion_p): Function pointer
5803 conversions are useless.
5805 2011-04-12 Martin Jambor <mjambor@suse.cz>
5807 * cgraph.h (cgraph_node): Remove function declaration.
5808 (cgraph_create_node): Declare.
5809 (cgraph_get_create_node): Likewise.
5810 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5811 Updated all callers.
5812 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5813 the decl does not already exist. Call cgraph_get_create_node instead
5815 (cgraph_get_create_node): New function.
5816 (cgraph_same_body_alias): Update comment.
5817 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5818 assert it does not return NULL.
5819 (cgraph_update_edges_for_call_stmt): Likewise.
5820 (cgraph_clone_edge): Likewise.
5821 (cgraph_create_virtual_clone): Likewise.
5822 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5823 instead of cgraph_node.
5824 (cgraph_add_new_function): Call cgraph_create_node or
5825 cgraph_get_create_node instead of cgraph_node.
5826 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5827 instead of cgraph_node.
5828 (record_eh_tables): Likewise.
5829 (mark_address): Likewise.
5830 (mark_load): Likewise.
5831 (build_cgraph_edges): Call cgraph_get_create_node instead
5833 (rebuild_cgraph_edges): Likewise.
5834 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5835 instead of cgraph_node.
5836 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5838 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5839 cgraph_create_node instead of cgraph_node.
5840 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5842 * lto-cgraph.c (input_node): Likewise.
5843 * lto-streamer-in.c (input_function): Likewise.
5844 * varasm.c (mark_decl_referenced): Likewise.
5845 (assemble_alias): Likewise.
5847 2011-04-12 Martin Jambor <mjambor@suse.cz>
5849 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5850 instead of cgraph_node and assert it does not return NULL.
5851 * lto-streamer-in.c (lto_read_body): Likewise.
5852 * omp-low.c (new_omp_context): Likewise.
5853 (create_task_copyfn): Likewise.
5854 * tree-emutls.c (lower_emutls_function_body): Likewise.
5855 * matrix-reorg.c (transform_allocation_sites): Likewise.
5857 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5860 * c-typeck.c (build_asm_expr): Error out on attempts to use
5861 void type outputs or inputs for constraints that allow reg or
5864 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5865 Richard Earnshaw <rearnsha@arm.com>
5868 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5869 to use sign-magnitude offsets. Reject unsupported unaligned
5870 cases. Add detailed description in comments.
5871 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5872 condition from TARGET_32BIT to TARGET_ARM.
5874 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5876 * tree.h (struct typed_tree): New.
5877 (struct tree_common): Include it instead of tree_base.
5878 (TREE_TYPE): Update for new location of type field.
5879 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5880 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5881 (union tree_node): Add typed field.
5882 * treestruct.def (TS_TYPED): New.
5883 * lto-streamer.c (check_handled_ts_structures): Handle it.
5884 * tree.c (MARK_TS_TYPED): New macro.
5885 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5887 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5889 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5890 (force_nonfallthru): Do not alter the loop nest if no basic block
5893 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5895 * config/i386/sse.md (VI): New mode iterator.
5897 (AVX256MODEI): Ditto.
5898 (AVXMODEF4P): Ditto.
5899 (avxvecpsmode): Ditto.
5900 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5901 (sse2_andnot<mode>3): New expander.
5902 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5903 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5904 (<any_logic:code><mode>3): Use VI mode iterator.
5905 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5906 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5907 (*andnottf3): Handle AVX three-operand constraints.
5908 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5910 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5911 Robert Millan <rmh@gnu.org>
5913 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5914 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5915 GNU_USER_DYNAMIC_LINKER64): Define.
5916 (REG_NAME): Don't undefine.
5917 (MD_UNWIND_SUPPORT): Undefine.
5918 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5919 (REG_NAME): Don't undefine.
5920 (MD_UNWIND_SUPPORT): Undefine.
5921 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5923 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5925 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5926 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5928 2011-04-11 Xinliang David Li <davidxl@google.com>
5930 * value-profile.c (check_ic_target): New function.
5931 (gimple_ic_transform): Sanity check indirect call target.
5932 * gimple-low.c (gimple_check_call_args): Interface change.
5933 (gimple_check_call_matching_types): New function.
5934 * tree-inline.c (tree_can_inline_p): Call new function.
5936 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5938 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5939 tree-pretty-print.h & realmpfr.h.
5941 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5944 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5945 (setup_allocno_and_important_classes): Ditto.
5947 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5949 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5950 GNU_USER_DYNAMIC_LINKER.
5951 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5952 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5953 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5954 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5955 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5956 GNU_USER_TARGET_OS_CPP_BUILTINS.
5957 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5958 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5959 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5960 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5961 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5962 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5963 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5964 GNU_USER_TARGET_OS_CPP_BUILTINS.
5965 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5966 GNU_USER_DYNAMIC_LINKER.
5967 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5968 GNU_USER_TARGET_OS_CPP_BUILTINS.
5969 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5970 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5971 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5973 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5974 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5975 GNU_USER_DYNAMIC_LINKER64): Remove.
5976 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5977 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5978 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5979 GNU_USER_DYNAMIC_LINKER.
5980 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5981 GNU_USER_TARGET_OS_CPP_BUILTINS.
5982 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5983 GNU_USER_TARGET_OS_CPP_BUILTINS.
5984 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5985 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5986 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5987 GNU_USER_TARGET_OS_CPP_BUILTINS.
5988 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5989 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5990 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5991 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5992 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5993 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5994 GNU_USER_DYNAMIC_LINKER.
5995 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5996 GNU_USER_TARGET_OS_CPP_BUILTINS.
5997 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5998 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5999 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6000 GNU_USER_DYNAMIC_LINKER.
6001 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6002 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6003 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6004 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6005 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6006 GNU_USER_DYNAMIC_LINKER.
6007 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6008 GNU_USER_DYNAMIC_LINKERN32.
6009 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6010 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6011 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6012 GNU_USER_DYNAMIC_LINKER32.
6013 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6015 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6016 GNU_USER_DYNAMIC_LINKER.
6017 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6019 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6020 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6021 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6022 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6023 GNU_USER_DYNAMIC_LINKER32.
6024 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6025 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6026 GNU_USER_DYNAMIC_LINKER.
6027 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6029 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6030 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6031 GNU_USER_DYNAMIC_LINKER64.
6032 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6033 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6034 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6035 GNU_USER_DYNAMIC_LINKER.
6036 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6037 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6038 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6039 GNU_USER_DYNAMIC_LINKER.
6040 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6041 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6042 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6043 GNU_USER_DYNAMIC_LINKER32.
6044 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6045 GNU_USER_DYNAMIC_LINKER64.
6046 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6047 GNU_USER_DYNAMIC_LINKER64.
6048 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6050 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6052 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6054 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6056 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6057 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6058 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6059 GNU_USER_DYNAMIC_LINKER.
6060 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6061 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6062 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6063 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6064 GNU_USER_DYNAMIC_LINKER64.
6065 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6066 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6067 GNU_USER_LINK_EMULATION.
6068 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6069 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6070 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6071 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6072 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6073 CPP_SPEC, CC1_SPEC): Remove.
6074 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6075 (GNU_USER_DYNAMIC_LINKER): Define.
6076 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6077 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6078 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6079 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6080 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6081 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6082 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6083 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6084 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6085 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6086 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6087 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6088 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6089 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6090 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6091 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6092 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6093 GNU_USER_DYNAMIC_LINKER.
6094 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6095 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6096 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6097 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6098 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6099 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6100 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6101 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6102 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6103 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6105 2011-04-11 Kai Tietz <ktietz@redhat.com>
6109 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6110 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6112 (ix86_is_msabi_thiscall): Removed.
6113 (ix86_is_type_thiscall): Likewise.
6114 (ix86_get_callcvt): New function.
6115 (ix86_comp_type_attributes): Simplify check.
6116 (ix86_function_regparm): Use ix86_get_callcvt for calling
6117 convention attribute checks.
6118 (ix86_return_pops_args): Likewise.
6119 (ix86_static_chain): Likewise.
6120 (x86_this_parameter): Likewise.
6121 (x86_output_mi_thunk): Likewise.
6122 (ix86_function_type_abi): Optimize check for types without attributes.
6123 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6124 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6125 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6127 (IX86_BASE_CALLCVT): Helper macro.
6128 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6129 Use ix86_get_callcvt for calling convention attribute checks and avoid
6130 symbol-decoration for stdcall in TARGET_RTD case.
6131 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6133 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6136 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6138 * config/i386/sse.md (VI_128): New mode iterator.
6139 (VI12_128): Rename from SSEMODE12.
6140 (VI14_128): Rename from SSEMODE14.
6141 (VI124_128): New mode iterator.
6142 (VI24_128): Rename from SSEMODE248.
6143 (VI248_128): Rename from SSEMODE248.
6144 (SSEMODE124C8): Remove.
6145 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6146 (*sse2_<plusminus_insn><mode>3): Merge with
6147 *avx_<plusminus_insn><mode>3.
6148 (*mulv8hi3): Merge with *avx_mulv8hi3.
6149 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6150 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6151 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6152 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6153 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6154 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6155 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6156 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6157 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6158 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6159 (*<smaxmin:code>v8hi3): Ditto.
6160 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6161 (*<smaxmin:code>v16qi3): Ditto.
6162 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6163 (*sse2_eq<mode>3): Ditto.
6164 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6165 (*sse2_gt<mode>3): Ditto.
6166 (vcondv2di): Split out of vcond<mode>.
6167 (vconduv2di): Split out of vcondu<mode>.
6169 2011-04-11 Richard Guenther <rguenther@suse.de>
6171 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6172 before calling tree_low_cst.
6174 2011-04-11 Richard Guenther <rguenther@suse.de>
6176 * stor-layout.c (layout_type): Compute all array index size operations
6177 in the original type.
6178 (initialize_sizetypes): Add comment.
6179 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6181 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6183 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6185 2011-04-11 Martin Jambor <mjambor@suse.cz>
6187 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6188 of cgraph_node, handle NULL return value.
6189 (cgraph_global_info): Likewise.
6190 (cgraph_rtl_info): Likewise.
6191 * tree-inline.c (estimate_num_insns): Likewise.
6192 * gimplify.c (unshare_body): Likewise.
6193 (unvisit_body): Likewise.
6194 (gimplify_body): Likewise.
6195 * predict.c (optimize_function_for_size_p): Likewise.
6196 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6197 (call_may_clobber_ref_p_1): Likewise.
6198 * varasm.c (function_section_1): Likewise.
6199 (assemble_start_function): Likewise.
6201 2011-04-11 Martin Jambor <mjambor@suse.cz>
6203 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6205 * final.c (rest_of_clean_state): Likewise.
6206 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6207 * passes.c (pass_init_dump_file): Likewise.
6208 (execute_all_ipa_transforms): Likewise.
6209 (function_called_by_processed_nodes_p): Likewise.
6210 * predict.c (maybe_hot_frequency_p): Likewise.
6211 (probably_never_executed_bb_p): Likewise.
6212 (compute_function_frequency): Likewise.
6213 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6214 (unnest_nesting_tree_1): Likewise.
6215 (lower_nested_functions): Likewise.
6216 * tree-optimize.c (execute_fixup_cfg): Likewise.
6217 (tree_rest_of_compilation): Likewise.
6218 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6219 * tree-sra.c (ipa_early_sra): Likewise.
6220 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6221 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6222 * ipa.c (record_cdtor_fn): Likewise.
6223 * ipa-inline.c (cgraph_early_inlining): Likewise.
6224 (compute_inline_parameters_for_current): Likewise.
6225 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6226 * ipa-pure-const.c (local_pure_const): Likewise.
6227 * ipa-split.c (split_function): Likewise.
6228 (execute_split_functions): Likewise.
6229 * cgraphbuild.c (build_cgraph_edges): Likewise.
6230 (rebuild_cgraph_edges): Likewise.
6231 (cgraph_rebuild_references): Likewise.
6232 (remove_cgraph_callee_edges): Likewise.
6233 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6234 (verify_cgraph_node): Likewise.
6235 (cgraph_analyze_functions): Likewise.
6236 (cgraph_preserve_function_body_p): Likewise.
6237 (save_inline_function_body): Likewise.
6238 (save_inline_function_body): Likewise.
6239 * tree-inline.c (copy_bb): Likewise.
6240 (optimize_inline_calls): Likewise.
6242 2011-04-11 Martin Jambor <mjambor@suse.cz>
6244 PR tree-optimization/48195
6245 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6246 ipa_check_create_edge_args.
6247 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6248 ipa_check_create_edge_args.
6249 * ipa-inline.c (inline_generate_summary): Do not call
6250 ipa_check_create_node_params and ipa_check_create_edge_args.
6251 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6252 ipa_check_create_edge_args.
6254 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6256 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6258 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6259 * function.c (record_hard_reg_sets): Likewise.
6260 * ira.c (compute_regs_asm_clobbered): Likewise.
6261 * sched-deps.c (sched_analyze_1): Likewise.
6262 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6264 2011-04-09 Xinliang David Li <davidxl@google.com>
6266 PR tree-optimization/PR48484
6267 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6268 has_valid_pred lazily
6270 2011-04-09 Duncan Sands <baldrick@free.fr>
6272 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6274 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6276 * combine.c (combine_validate_cost): Adjust comments. Set registered
6277 cost of I0 to zero at the end, if any.
6279 2011-04-08 Xinliang David Li <davidxl@google.com>
6281 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6282 to insane profile data.
6284 2011-04-08 Xinliang David Li <davidxl@google.com>
6286 * ipa-cp.c (ipcp_update_profiling): Correct
6287 negative scale factor due to insane profile data.
6289 2011-04-08 Xinliang David Li <davidxl@google.com>
6291 * final.c (dump_basic_block_info): New function.
6292 (final): Dump basic block.
6293 (final_scan_insn): Remove old dump.
6295 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6298 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6301 2011-04-08 Michael Matz <matz@suse.de>
6304 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6306 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6307 * rtl.h (rebuild_jump_labels_chain): Declare.
6308 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6309 insns inserted on edges.
6311 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6313 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6314 * config/arm/arm-arches.def: New.
6315 * config/arm/arm-opts.h: New.
6316 * config/arm/genopt.sh: New.
6317 * config/arm/arm-tables.opt: New (generated).
6318 * config/arm/arm.c (arm_handle_option, arm_target_help,
6319 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6320 (all_architectures): Get most table contents from arm-arches.def.
6321 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6322 arm_selected_tune here.
6323 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6324 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6325 (march=, mcpu=, mtune=): Use Enum and Var.
6326 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6327 (arm.o): Update dependencies.
6329 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6331 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6333 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6334 (write_typed_alloc_defns): Likewise.
6335 (main): Calls write_typed_alloc_defns with output_header.
6337 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6340 * ira-color.c (setup_profitable_hard_regs): Add comments.
6341 Don't take prohibited hard regs into account.
6342 (setup_conflict_profitable_regs): Rename to
6343 get_conflict_profitable_regs.
6344 (check_hard_reg_p): Check prohibited hard regs.
6346 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6348 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6349 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6350 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6352 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6355 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6356 move from floating point to shift amount register.
6357 (emit_move_sequence): Remove secondary reload support for floating
6358 point to shift amount amount register copies.
6359 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6360 amount register copies.
6361 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6362 register, return false if mode isn't a scalar integer mode.
6363 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6365 2011-04-08 Richard Guenther <rguenther@suse.de>
6367 * gimple.c (gimple_call_flags): Remove kludge.
6369 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6371 * sel-sched.c (sel_region_init): Move call to
6372 sel_setup_region_sched_flags after setup_current_loop_nest.
6374 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6376 PR rtl-optimization/48272
6377 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6378 init_insn_reg_pressure_info. Adjust a caller.
6379 * sched-int.h (init_insn_reg_pressure_info): Declare.
6380 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6381 when sched-pressure is enabled.
6383 2011-04-08 Richard Guenther <rguenther@suse.de>
6385 * gimple.c (gimple_set_modified): Do not queue calls to
6386 MODIFIED_NORETURN_CALLS here ...
6387 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6389 2011-04-08 Richard Guenther <rguenther@suse.de>
6392 * toplev.c (lang_dependent_init): Do not open asm_out_file
6393 in WPA mode, nor perform debug machinery initialization.
6394 (finalize): Do not unlink asm_out_file in WPA mode.
6396 2011-04-08 Richard Guenther <rguenther@suse.de>
6398 * gimple.h (gimple_call_fntype): New function.
6399 (gimple_call_return_type): Use it.
6400 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6401 * gimple-low.c (gimple_check_call_args): Likewise.
6402 * gimple.c (gimple_call_flags): Likewise.
6403 (gimple_call_arg_flags): Likewise.
6404 (gimple_call_return_flags): Likewise.
6405 * tree-cfg.c (verify_gimple_call): Likewise.
6406 (do_warn_unused_result): Likewise.
6407 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6408 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6410 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6412 PR rtl-optimization/48235
6413 * sel-sched.c (code_motion_process_successors): Recompute the last
6414 insn in basic block if control flow changed.
6415 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6416 Update condition for ilist_remove.
6418 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6420 PR rtl-optimization/48302
6421 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6422 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6423 it to record added preheader blocks.
6424 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6425 on to sel_add_loop_preheaders.
6426 (sel_region_init): Move call to setup_current_loop_nest after
6429 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6432 * cfgloop.h (loop_has_exit_edges): New helper.
6433 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6435 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6436 that have no exit edges.
6438 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6440 PR rtl-optimization/48442
6441 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6442 all callers. Adjust assert.
6444 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6446 PR tree-optimization/48377
6447 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6448 is_packed to true even for types with smaller TYPE_ALIGN than
6451 2011-04-08 Richard Guenther <rguenther@suse.de>
6454 * doc/tm.texi: Re-generate.
6456 2011-04-08 Wei Guozhi <carrot@google.com>
6459 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6460 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6461 * config/arm/arm.md (*push_multi): Change the length computation to
6464 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6466 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6467 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6468 * doc/tm.texi: Regenerate.
6469 * system.h (ASM_OUTPUT_BSS): Poison.
6470 * varasm.c (asm_output_bss): Remove function.
6471 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6473 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6474 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6475 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6476 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6478 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6480 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6482 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6484 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6486 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6489 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6491 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6492 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6493 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6495 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6496 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6497 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6498 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6499 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6500 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6501 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6502 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6503 options. Don't map other m68k options manually. Don't handle
6504 old-style options as canonical.
6505 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6506 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6508 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6510 * basic-block.h (force_nonfallthru): Move to...
6511 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6512 (force_nonfallthru): ...here.
6513 * cfghooks.c (force_nonfallthru): New function.
6514 * cfgrtl.c (force_nonfallthru): Rename into...
6515 (rtl_force_nonfallthru): ...this.
6516 (commit_one_edge_insertion): Do not set AUX field.
6517 (commit_edge_insertions): Do not discover new basic blocks.
6518 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6519 (cfg_layout_rtl_cfg_hooks): Likewise.
6520 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6521 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6522 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6524 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6526 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6529 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6531 * config/i386/sse.md: Update copyright year.
6532 (avxcvtvecmode): Remove.
6533 (sse_movhlps): Merge with *avx_movhlps.
6534 (sse_movlhps): Merge with *avx_movlhps.
6535 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6536 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6537 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6538 (sse_loadhps): Merge with *avx_loadhps.
6539 (sse_storelps): Merge with *avx_storelps.
6540 (sse_loadlps): Merge with *avx_loadlps.
6541 (sse_movss): Merge with *avx_movss.
6542 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6543 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6544 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6545 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6546 (vec_set<mode>_0): Ditto.
6547 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6548 (sse4_1_insertps): Merge with *avx_insertps.
6549 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6550 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6551 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6552 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6553 (sse2_storehpd): Merge with *avx_storehpd.
6554 (sse2_loadhpd): Merge with *avx_loadhpd.
6555 (sse2_loadlpd): Merge with *avx_loadlpd.
6556 (sse2_movsd): Merge with *avx_movsd.
6557 (*vec_concatv2df): Merge with *vec_concatv2df.
6559 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6562 * combine.c (combine_instructions): Add last_combined_insn,
6563 update it if insn is after it, pass it to all try_combine calls.
6564 (try_combine): Add last_combined_insn parameter, pass it instead of
6565 i3 to propagate_for_debug.
6567 2011-04-07 Nick Clifton <nickc@redhat.com>
6569 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6570 to handle MDR <-> data register transfers.
6571 (movhi_internal): Likewise.
6573 2011-04-07 Alan Modra <amodra@gmail.com>
6575 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6576 previous stack info.
6578 2011-04-07 Tom de Vries <tom@codesourcery.com>
6581 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6582 flow_find_cross_jump. Swap variables to implement backward replacement.
6583 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6585 2011-04-07 Tom de Vries <tom@codesourcery.com>
6588 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6589 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6591 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6592 src1 or src2. Redirect edges to the last basic block. Update
6593 frequency and count on multiple basic blocks in case of fallthru.
6595 2011-04-07 Tom de Vries <tom@codesourcery.com>
6598 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6600 (old_insns_match_p): Change return type. Replace return false/true
6601 with return dir_none/dir_both. Use can_replace_by.
6602 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6603 direction from dir_p. Register replacement direction in dir, last_dir
6604 and afterlast_dir. Handle new return type of old_insns_match_p using
6605 merge_dir. Return replacement direction in dir_p.
6606 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6607 return type of old_insns_match_p.
6608 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6609 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6610 flow_find_cross_jump.
6611 * basic-block.h (enum replace_direction): New type.
6612 (flow_find_cross_jump): Add parameter to declaration.
6614 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6616 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6617 (AVXMODEDCVTPS2DQ): Ditto.
6618 (VEC_FLOAT_MODE): Ditto.
6619 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6620 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6621 (<any_logic:code><mode>3): Use VF mode iterator.
6622 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6623 Use VF mode iterator.
6624 (copysign<mode>3): Use VF mode iterator.
6625 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6626 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6627 (*<any_logic:code><MODEF:mode>3): Merge with
6628 *avx_<any_logic:code><MODEF:mode>3.
6629 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6630 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6631 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6632 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6633 (sse2_cvtdq2ps): Use %v modifier.
6634 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6635 (avx_cvtps2dq<avxmodesuffix>): Remove.
6636 (sse2_cvtps2dq): Use %v modifier.
6637 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6638 (avx_cvttps2dq<avxmodesuffix>): Remove.
6639 (sse2_cvttps2dq): Use %v modifier.
6640 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6641 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6642 (sse2_cvtsd2siq): Fix insn template.
6643 (sse2_cvtsd2siq_2): Ditto.
6644 (sse2_cvttsd2siq): Ditto.
6645 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6646 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6648 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6650 * gcov-io.c: Use GCC Runtime Library Exception.
6652 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6655 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6656 as base_reg whatever register reg has been eliminated to, instead
6657 of hardcoding STACK_POINTER_REGNUM.
6659 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6661 * doc/tm.texi.in: Document C target hooks as separate from general
6663 * doc/tm.texi: Regenerate.
6664 * genhooks.c (struct hook_desc): Add docname field.
6665 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6667 (hook_array): Include c-target.def.
6668 (emit_documentation): Use docname field in output.
6669 (emit_init_macros): Take docname argument. Only emit definitions
6670 for hooks matching docname.
6671 (main): Expect additional arguments in all cases. Pass argument
6672 to emit_init_macros.
6673 * target.def: Move initial macro definitions and comments to
6674 target-hooks-macros.h.
6675 (gcc_targetcm): Move to c-family/c-target.def.
6676 * target.h (targetcm): Move declaration to c-family/c-target.h.
6677 * targhooks.c (default_handle_c_option): Move to
6679 * targhooks.h (default_handle_c_option): Move declaration to
6680 c-family/c-common.h.
6681 * target-hooks-macros.h: New file.
6682 * config.gcc (target_has_targetcm): Define and use to add to
6683 c_target_objs and cxx_target_objs.
6684 * config/default-c.c: New file.
6685 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6686 of target.h and target-def.h.
6687 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6688 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6689 darwin_check_cfstring_format_arg): Make static.
6690 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6691 TARGET_STRING_OBJECT_REF_TYPE_P,
6692 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6693 * config/darwin-protos.h (darwin_objc_construct_string,
6694 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6696 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6697 TARGET_STRING_OBJECT_REF_TYPE_P,
6698 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6699 * config/t-darwin (darwin-c.o): Update dependencies.
6700 * system.h (TARGET_HAS_TARGETCM): Poison.
6701 * Makefile.in (TARGET_H): Update.
6702 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6703 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6704 (default-c.o): New target.
6705 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6706 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6707 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6709 (build/genhooks.o): Update dependencies.
6711 2011-04-06 Richard Guenther <rguenther@suse.de>
6713 * ipa-inline.c (enum inlining_mode): Remove.
6714 (cgraph_flatten): Use some other token.
6715 (cgraph_edge_early_inlinable_p): New function, split out from ...
6716 (cgraph_perform_always_inlining): New function, split out from ...
6717 (cgraph_decide_inlining_incrementally): ... here.
6718 (cgraph_mark_inline_edge): Adjust.
6719 (cgraph_early_inlining): Re-structure.
6720 (pass_early_inline): Require SSA form.
6722 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6723 Julian Brown <julian@codesourcery.com>
6724 Mark Shinwell <shinwell@codesourcery.com>
6726 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6727 LO_REGS only for Thumb-1.
6728 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6729 be used in short instructions when optimising for size on Thumb-2.
6731 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6733 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6734 associated with user returns to be preserved.
6736 2011-04-06 Tristan Gingold <gingold@adacore.com>
6738 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6739 symbol_queue_size, DBXOUT_DECR_NESTING,
6740 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6741 if XCOFF_DEBUGGING_INFO.
6743 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6745 * config/i386/i386.md (attribute isa): New.
6746 (attribute enabled): New.
6747 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6748 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6749 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6750 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6751 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6752 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6753 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6754 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6756 * config/i386/sse.md (VF): New mode iterator.
6760 (SSEMODEF4): Remove.
6761 (attribute sse): Handle V8SF and V4DF modes.
6762 (<absneg:code><mode>2): Use VF mode iterator.
6763 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6765 (<plusminus_insn><mode>3): Use VF mode iterator.
6766 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6767 Use VF mode iterator.
6768 (<sse>_vm<plusminus_insn><mode>3): Merge with
6769 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6770 (mul<mode>3): Use VF mode iterator.
6771 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6772 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6774 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6775 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6776 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6777 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6779 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6780 Use VF1 mode iterator.
6781 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6782 (sqrt<VF2:mode>2): New expander.
6783 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6784 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6785 and sqrtv2df2. Use VF mode iterator.
6786 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6788 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6789 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6790 Use VF1 mode iterator.
6791 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6792 (<smaxmin:code><mode>3): Use VF mode iterator.
6793 (*<smaxmin:code><mode>3_finite): Merge with
6794 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6795 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6796 (<sse>_vm<smaxmin:code><mode>2): Merge with
6797 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6798 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6800 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6802 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6803 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6804 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6805 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6806 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6808 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6809 Use VF_128 mode iterator.
6810 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6812 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6813 VF_128 mode iterator.
6814 (vcond<mode>): Use VF mode iterator.
6815 * config/i386/predicates.md (sse_comparison_operator): Merge with
6816 avx_comparison_float_operator. Do not declare as special_predicate.
6817 * config/i386/i386.c (struct builtin_description): Update for renamed
6819 (ix86_expand_args_builtin): Ditto.
6820 (ix86_expand_sse_compare_mask): Ditto.
6822 2011-04-06 Richard Guenther <rguenther@suse.de>
6824 * tree-inline.c (estimate_num_insns): For calls simply account
6825 for all passed arguments and a used return value.
6827 2011-04-06 Richard Guenther <rguenther@suse.de>
6829 PR tree-optimization/47663
6830 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6831 call_stmt_time fields.
6832 (cgraph_edge_inlinable_p): Declare.
6833 (cgraph_edge_recursive_p): New inline function.
6834 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6835 (cgraph_clone_edge): Copy it.
6836 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6837 Account for call stmt time.
6838 (cgraph_estimate_time_after_inlining): Take edge argument.
6839 (cgraph_estimate_edge_growth): Account call stmt size.
6840 (cgraph_estimate_size_after_inlining): Take edge argument.
6841 (cgraph_mark_inline_edge): Adjust.
6842 (cgraph_check_inline_limits): Likewise.
6843 (cgraph_recursive_inlining_p): Remove.
6844 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6845 (cgraph_decide_recursive_inlining): Take edge argument and
6847 (cgraph_decide_inlining_of_small_functions): Do not avoid
6848 diags for recursive inlining here.
6849 (cgraph_flatten): Adjust.
6850 (cgraph_decide_inlining_incrementally): Likewise.
6851 (estimate_function_body_sizes): Remove call cost handling.
6852 (compute_inline_parameters): Initialize caller edge call costs.
6853 (cgraph_estimate_edge_growth): New function.
6854 (cgraph_estimate_growth): Use it.
6855 (cgraph_edge_badness): Likewise.
6856 (cgraph_check_inline_limits): Take an edge argument.
6857 (cgraph_decide_inlining_of_small_functions): Adjust.
6858 (cgraph_decide_inlining): Likewise.
6859 * tree-inline.c (estimate_num_insns): Only account for call
6860 return value if it is used.
6861 (expand_call_inline): Avoid diagnostics on recursive inline
6863 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6864 (input_edge): Input edge call costs.
6866 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6868 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6870 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6872 * doc/invoke.texi (Spec Files): Fix typo.
6874 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6876 * profile.c (branch_prob): Move declaration of local variable. Remove
6877 obsolete ??? comment. Expand the location explicitly instead of using
6878 the LOCATION_FILE and LOCATION_LINE macros.
6880 2011-04-06 Wei Guozhi <carrot@google.com>
6883 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6884 (arm_cond_branch): Likewise.
6885 (arm_cond_branch_reversed): Likewise.
6886 (arm_jump): Likewise.
6887 (push_multi): Likewise.
6888 * config/arm/constraints.md (Py): New constraint.
6890 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6893 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6895 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6896 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6897 #ifdef DBX_DEBUGGING_INFO.
6899 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6902 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6903 if old and new states differ.
6905 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6907 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6908 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6909 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6910 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6911 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6913 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6914 ColdFire options to -mcpu= options.
6916 2011-04-05 Jeff Law <law@redhat.com>
6918 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6919 check if BB is a successor of LOOP->header and return
6920 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6922 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6924 * cprop.c (struct reg_use): Remove.
6925 (reg_use_table): Make an array of RTX.
6926 (find_used_regs, constprop_register, local_cprop_pass,
6927 bypass_block): Simplify users of reg_use_table.
6928 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6929 on one of the uses found by find_used_regs.
6931 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6934 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6937 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6939 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6941 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6943 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6946 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6948 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6950 * combine.c: Include obstack.h.
6951 (struct insn_link): Define.
6952 (uid_log_links): Adjust type.
6953 (FOR_EACH_LOG_LINK): New macro.
6954 (insn_link_obstack): Declare.
6955 (alloc_insn_link): Define.
6956 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6957 type of link variables.
6958 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6959 (try_combine, record_promoted_values, distribute_notes): Likewise.
6960 (distribute_links): Likewise. Tweak prototype.
6961 (clear_log_links): Delete.
6962 (adjust_for_new_dest): Call alloc_insn_link.
6963 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6965 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6967 * gcse.c (modify_mem_list): Convert to an array of VECs.
6968 (canon_modify_mem_list, compute_transp): Tweak formatting.
6969 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6970 (load_killed_in_block_p): Likewise.
6971 (record_last_mem_set_info): Likewise.
6972 (clear_modify_mem_tables): Likewise.
6974 2011-04-05 Tom de Vries <tom@codesourcery.com>
6977 * function.c (emit_use_return_register_into_block): Only define if
6980 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6982 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6984 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6986 * config/rx/rx-opts.h: New.
6987 * config/rx/rx.c (rx_cpu_type): Remove.
6988 (rx_handle_option): Don't assert that global structures are in
6989 use. Access variables via opts pointer. Defer most handling of
6990 OPT_mint_register_. Use error_at.
6991 (rx_option_override): Handle deferred OPT_mint_register_ here.
6992 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6993 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6994 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6995 (rx_cpu_types): New Enum and EnumValue entries.
6996 (mint-register=): Use Defer and use Var accordingly.
6998 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7000 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7001 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7002 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7004 (debug_free_queue, debug_nesting, symbol_queue_index):
7006 * dbxout.c: ...to here. Make static.
7008 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7010 * gcse.c (modify_pair): Define. Define a VEC of it.
7011 (canon_modify_mem_list): Convert to an array of VECs.
7012 (free_insn_expr_list_list): Delete.
7013 (clear_modify_mem_tables): Call VEC_free instead.
7014 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7015 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7016 (canon_list_insert, compute_transp): Likewise.
7018 2011-04-05 Tom de Vries <tom@codesourcery.com>
7021 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7024 2011-04-05 Tom de Vries <tom@codesourcery.com>
7027 * function.c (emit_use_return_register_into_block): New function.
7028 (thread_prologue_and_epilogue_insns): Use
7029 emit_use_return_register_into_block.
7031 2011-04-05 Tom de Vries <tom@codesourcery.com>
7034 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7037 2011-04-05 Tom de Vries <tom@codesourcery.com>
7039 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7041 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7043 * config/arm/arm.md (define_constants for unspec): Replace with
7045 (define_constants for unspecv): Replace with define_c_enum.
7046 * config/arm/neon.md (define_constants for unspec): Replace with
7049 2011-04-04 Richard Henderson <rth@redhat.com>
7052 * dwarf2out.c (output_line_info): Always emit line info from
7053 at least one section.
7054 (dwarf2out_init): Create text_section_line_info here ...
7055 (set_cur_line_info_table): ... not here.
7057 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7060 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7063 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7065 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7067 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7068 (expr_equiv_p): Remove.
7069 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7070 (hash_scan_set): Update call to insert_set_in_table.
7071 (dump_hash_table): Dump <dest, src> pair.
7072 (lookup_set): Simplify. Lookup <dest, src> pair.
7073 (compute_transp): Remove, fold heavily simplified code into...
7074 (compute_local_properties): ...here. Expect COMP and TRANSP
7076 (find_avail_set): Take set directly from struct expr.
7077 (find_bypass-set): Likewise.
7078 (bypass_block): Likewise.
7079 (cprop_insn): Likewise. Remove redundant INSN_P test.
7081 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7082 checks on form of COND from find_implicit_sets to here.
7083 (find_implicit_sets): Cleanup control flow. Split critical edges
7084 if it exposes implicit sets. Allocate/resize implicit_sets as
7086 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7087 changed something. Run df_analyze after find_implicit_sets if any
7088 edges were split. Do not allocate implicit_sets here.
7090 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7091 (gcse_obstack): Renamed to cprop_obstack.
7092 (GNEW, GNEWVEC, GNEWVAR): Remove.
7094 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7095 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7096 (gcse_alloc): Likewise, and rename to cprop_alloc.
7097 (alloc_gcse_men, free_gcse_mem): Remove.
7098 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7099 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7100 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7102 * cprop.c (oprs_not_set_p): Remove.
7103 (mark_set, mark_clobber): Remove.
7104 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7105 (reg_not_set_p): New function.
7106 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7107 (cprop_insn): Likewise.
7108 (cprop_jump): Use FOR_EACH_EDGE.
7110 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7113 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7114 (rank_for_schedule): Use scheduled_insns vector instead of
7115 last_scheduled_insn.
7116 (ok_for_early_queue_removal): Likewise.
7117 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7119 (choose_ready): Likewise.
7120 (commit_schedule): Use VEC_iterate.
7121 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7122 a dbg_cnt, use it and ensure the first insn is in the ready list.
7123 (haifa_sched_init): Allocate scheduled_insns.
7124 (sched_extend_ready_list): Don't allocate it; reserve space.
7125 (haifa_sched_finish): Free it.
7127 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7129 * optc-gen.awk: Always remove type from Variable entry before
7130 recording in var_seen.
7132 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7134 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7135 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7136 call to tidy_fallthru_edges.
7138 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7140 * doc/options.texi (ToLower): Document.
7141 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7142 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7143 * opts.h (cl_option): Add cl_tolower field.
7144 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7145 arguments with lowercase strings.
7146 * config/rx/rx.opt (mcpu=): Add ToLower.
7147 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7150 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7152 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7154 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7156 * config/vax/vax.c: Include reload.h.
7158 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7160 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7161 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7162 (sparc_preferred_reload_class): New function.
7164 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7167 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7168 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7170 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7172 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7173 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7175 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7177 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7178 (ASM_OUTPUT_ALIGNED_BSS): Define.
7180 2011-04-03 Michael Matz <matz@suse.de>
7182 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7183 and next_slot members.
7184 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7185 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7186 (lto_streamer_cache_append): Declare.
7187 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7188 unsigned index, remove offset parameter, ensure that we append
7189 or update existing entries.
7190 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7191 parameter, update next_slot for append.
7192 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7194 (lto_streamer_cache_insert_at): Likewise.
7195 (lto_streamer_cache_append): New function.
7196 (lto_streamer_cache_lookup): Use unsigned index.
7197 (lto_streamer_cache_get): Likewise.
7198 (lto_record_common_node): Don't test tree_node_can_be_shared.
7199 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7200 (lto_streamer_cache_delete): Don't free offsets member.
7201 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7202 (lto_output_string_with_length): Use lto_output_data_stream.
7203 (lto_output_tree_header): Remove ix parameter, don't write it.
7204 (lto_output_builtin_tree): Likewise.
7205 (lto_write_tree): Adjust callers to above, don't track and write
7206 offset, write unsigned index.
7207 (output_unreferenced_globals): Don't emit all global vars.
7208 (write_global_references): Use unsigned indices.
7209 (lto_output_decl_state_refs): Likewise.
7210 (write_symbol): Likewise.
7211 * lto-streamer-in.c (lto_input_chain): Move earlier.
7212 (input_function): Use unsigned index.
7213 (input_alias_pairs): Don't read and then ignore all global vars.
7214 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7215 don't pass it back, use lto_streamer_cache_append.
7216 (lto_register_var_decl_in_symtab): Use unsigned index.
7217 (lto_register_function_decl_in_symtab): Likewise.
7218 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7220 (lto_get_builtin_tree): Don't read index, use
7221 lto_streamer_cache_append.
7222 (lto_read_tree): Adjust call to lto_materialize_tree.
7224 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7225 don't use function calls in arguments to MIN.
7227 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7230 * gimple.c (gimple_type_leader_entry): Mark deletable.
7232 2011-04-03 Alan Modra <amodra@gmail.com>
7234 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7236 2011-04-03 Michael Matz <matz@suse.de>
7238 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7240 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7242 2011-04-03 Michael Matz <matz@suse.de>
7244 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7245 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7246 without function context.
7247 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7248 current_function_decl and cfun.
7250 2011-04-03 Michael Matz <matz@suse.de>
7252 * tree.c (decl_init_priority_insert): Don't create entry for
7254 (decl_fini_priority_insert): Ditto.
7255 (fields_compatible_p, find_compatible_field): Remove.
7256 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7257 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7259 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7261 * combine.c (try_combine): Remove useless local variable.
7263 2011-04-03 Richard Guenther <rguenther@suse.de>
7264 Ira Rosen <ira.rosen@linaro.org>
7266 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7267 non-variable offsets and compare the remaining bases of the two
7268 accesses instead of looking for exact same data-ref.
7270 2011-04-02 Kai Tietz <ktietz@redhat.com>
7273 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7275 * i386.c (ix86_is_msabi_thiscall): New helper function.
7276 (ix86_is_type_thiscall): New helper function.
7277 (ix86_comp_type_attributes): Handle thiscall for method-functions
7279 (init_cumulative_args): Likewise.
7280 (find_drap_reg): Likewise.
7281 (ix86_static_chain): Likewise.
7282 (x86_this_parameter): Likewise.
7283 (x86_output_mi_thunk): Likewise.
7285 2011-04-01 Olivier Hainque <hainque@adacore.com>
7286 Nicolas Setton <setton@adacore.com>
7287 Eric Botcazou <ebotcazou@adacore.com>
7289 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7290 (add_gnat_descriptive_type_attribute): New function.
7291 (gen_array_type_die): Call it.
7292 (gen_enumeration_type_die): Likewise.
7293 (gen_struct_or_union_type_die): Likewise.
7294 (modified_type_die): Likewise.
7295 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7296 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7297 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7299 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7302 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7303 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7306 2011-03-17 Richard Guenther <rguenther@suse.de>
7309 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7310 origin for decls in other ltrans units.
7311 (input_varpool_node): Likewise.
7313 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7316 * expr.c (expand_assignment): Handle all possibilities
7317 if TO_RTX is CONCAT.
7318 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7319 (store_split_bit_field): If SUBREG_REG (op0) or
7320 op0 itself has smaller mode than word, return it
7321 for offset 0 and const0_rtx for out-of-bounds stores.
7322 If word is const0_rtx, skip it.
7324 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7326 * config/h8300/h8300.c (print_operand_address): Rename to...
7327 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7328 Call h8300_print_operand and h8300_print_operand_address instead of
7329 print_operand and print_operand_address. Declare.
7330 (print_operand): Renake to...
7331 (h8300_print_operand): ...this. Make static. Adjust comments.
7332 Call h8300_print_operand instead of print_operand. Declare.
7333 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7334 (h8300_register_move_cost): Likewise.
7335 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7336 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7337 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7338 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7339 * config/h8300/h8300-protos.h (print_operand): Delete.
7340 (print_operand_address): Delete.
7342 2011-04-01 Richard Henderson <rth@redhat.com>
7345 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7346 in strict mode before dwarf4. Re-order tests to early out
7347 before switching sections.
7349 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7351 * config/h8300/constraints.md: New file.
7352 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7353 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7354 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7355 * config/h8300/predicates.md (bit_operand): Likewise.
7356 (incdec_operand): Use satisfies_constraint_M and
7357 satisfies_constraint_O. Don't use C code block.
7358 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7359 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7360 (compute_mov_length): Use satisfies_constraint_G.
7361 (fix_bit_operand): Use satisfies_constraint_U.
7362 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7363 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7364 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7365 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7366 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7367 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7368 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7369 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7370 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7371 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7372 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7373 (EXTRA_MEMORY_CONSTRAINT): Delete.
7375 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7376 Michael Meissner <meissner@linux.vnet.ibm.com>
7379 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7380 operands, as per the specifications.
7382 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7383 (vec_extract_evenv4sf): Ditto.
7384 (vec_extract_evenv8hi): Ditto.
7385 (vec_extract_evenv16qi): Ditto.
7386 (vec_extract_oddv4si): Ditto.
7388 2011-03-31 Mark Wielaard <mjw@redhat.com>
7390 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7391 high_pc attribute if the CU has no associated code. Only output
7392 DW_AT_entry_pc for CU if not generating strict dwarf and
7395 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7397 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7398 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7400 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7401 * final.c (final_start_function): Call the new function rather
7402 than using a NULL argument for dwarf2out_frame_debug.
7404 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7405 that contains the prologue.
7407 * haifa-sched.c (queue_insn): New arg REASON. All callers
7408 changed. Print it in debugging output.
7410 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7412 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7413 Split most of the code into...
7414 (begin_move_insn): ... here. New function.
7415 (ebb_sched_info): Add a pointer to it.
7416 * haifa-sched.c (scheduled_insns): New static variable.
7417 (sched_extend_ready_list): Allocate it.
7418 (schedule_block): Use it to record the order of scheduled insns.
7419 Perform RTL changes to move insns only after all scheduling
7420 decisions have been made.
7421 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7422 begin_move_insn field.
7423 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7424 * sched-int.h (struct haifa_sched_info): Remove second argument
7425 from begin_schedule_ready hook. Add new member begin_move_insn.
7426 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7427 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7429 * haifa-sched.c (prune_ready_list): New function, broken out of
7431 (schedule_block): Use it.
7433 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7435 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7437 2011-04-01 Kai Tietz <ktietz@redhat.com>
7439 * config.gcc (*-*-mingw*): Allow as option the
7440 posix threading model.
7441 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7442 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7444 (CPP_SPEC): Add pthread/no-pthread handling.
7445 (LIB_SPEC): Likewise.
7446 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7447 (LIB_SPEC): Likewise.
7448 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7449 flag to pass -pthread option for shared libgcc build.
7450 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7451 for shared libgcc build.
7452 * config/i386/t-mingw-pthread: New file.
7453 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7454 New define to enable use of library pthread by default.
7455 * config/i386/mingw.opt (pthread): New driver option.
7456 (no-pthread): New driver option.
7457 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7458 * config/i386/mingw-w64.opt: Likewise.
7460 2011-04-01 Gary Funck <gary@intrepid.com>
7462 * c-decl.c (grokdeclarator): Fix formatting.
7464 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7466 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7467 instead of n_operands.
7468 (set_storage_via_setmem): Likewise.
7469 * optabs.c (maybe_gen_insn): Likewise.
7470 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7471 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7472 (mips_expand_builtin_direct): Likewise.
7473 * config/spu/spu.c (expand_builtin_args): Likewise.
7475 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7477 * recog.h (insn_data_d): Add n_generator_args.
7478 * genoutput.c (data): Likewise.
7479 (output_insn_data): Print it.
7480 (max_opno, num_dups): Delete.
7481 (scan_operands): Just fill in "d->operand[...]".
7482 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7484 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7486 * gensupport.h (pattern_stats): New structure.
7487 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7488 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7489 (max_operand_1, max_operand_vec): Delete.
7490 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7492 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7494 * emit-rtl.c (emit_pattern_after_setloc): New function.
7495 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7496 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7497 (emit_pattern_after): New function.
7498 (emit_insn_after, emit_jump_insn_after): Call it.
7499 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7500 (emit_pattern_before_setloc): New function.
7501 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7502 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7504 (emit_pattern_before): New function.
7505 (emit_insn_before, emit_jump_insn_before): Call it.
7506 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7508 2011-03-31 Richard Henderson <rth@redhat.com>
7510 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7511 (dw_separate_line_info_entry): Remove.
7512 (enum dw_line_info_opcode): New.
7513 (dw_line_info_entry): Use it.
7514 (dw_line_info_table, dw_line_info_table_p): New.
7515 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7516 (line_info_table, line_info_label_num): Remove.
7517 (line_info_table_in_use): Remove.
7518 (separate_line_info_table): Remove.
7519 (separate_line_info_table_allocated): Remove.
7520 (separate_line_info_table_in_use): Remove.
7521 (LINE_INFO_TABLE_INCREMENT): Remove.
7522 (line_info_label_num): New.
7523 (cur_line_info_table): New.
7524 (text_section_line_info, cold_text_section_line_info): New.
7525 (separate_line_info): New.
7526 (SEPARATE_LINE_CODE_LABEL): Remove.
7527 (print_dwarf_line_table): Remove.
7528 (debug_dwarf): Don't dump it.
7529 (output_one_line_info_table): New.
7530 (output_line_info): Use it.
7531 (new_line_info_table): New.
7532 (set_cur_line_info_table): New.
7533 (dwarf2out_switch_text_section): Use it.
7534 (dwarf2out_begin_function): Likewise.
7535 (push_dw_line_info_entry): New.
7536 (dwarf2out_source_line): Rewrite for new line info tables.
7537 (dwarf2out_init): Remove dead initailizations.
7539 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7541 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7543 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7544 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7545 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7546 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7547 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7548 * opt-functions.awk (flag_init, switch_bit_fields): New.
7549 (switch_flags): Don't handle flags moved to bit-fields. Don't
7550 generate CL_MISSING_OK or CL_SAVE.
7551 * optc-gen.awk: Update to generate bit-field output as well as
7553 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7554 bit-field instead of CL_REJECT_DRIVER flag.
7555 * opts-common.c (generate_canonical_option,
7556 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7557 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7558 instead of CL_REJECT_NEGATIVE flag.
7559 * toplev.c (print_switch_values): Use cl_report bit-field instead
7562 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7564 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7565 a zero minimum index only if it is redundant.
7567 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7569 PR rtl-optimization/48381
7570 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7571 instead of ira_class_hard_reg_index for calculating conflicting
7574 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7576 * cprop.c: Clean up hash table building.
7577 (reg_avail_info): Remove.
7578 (oprs_available_p): Remove.
7579 (record_last_reg_set_info): Remove.
7580 (record_last_set_info): Remove.
7581 (reg_available_p): New function.
7582 (gcse_constant_p): Do not treat unfolded conditions as constants.
7583 (make_set_regs_unavailable): New function.
7584 (hash_scan_set): Simplify with new reg_available_p.
7585 (compute_hash_table_work): Traverse insns stream only once.
7586 Do not compute reg_avail_info. Traverse insns in reverse order.
7587 Record implicit sets after recording explicit sets from the block.
7589 2011-03-31 Michael Matz <matz@suse.de>
7591 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7593 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7595 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7596 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7597 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7598 (h8300_mode_dependent_address_p): New function.
7599 (h8300_get_index): Make static.
7601 2011-03-31 Jeff Law <law@redhat.com>
7603 * reload1.c (elimination_effects): Fix typo in recent change.
7605 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7606 typo potentially leading to null pointer dereference.
7608 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7609 (setup_save_areas): Corresponding changes to avoid useless
7612 * jump.c (reversed_comparison_code_parts): Avoid successive return
7613 statements when REVERSE_CONDITION is defined.
7615 * expr.c (expand_assignment): Avoid useless assignments.
7616 (expand_expr_real_1): Likewise.
7617 (expand_expr_real_2): Avoid useless statements.
7619 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7621 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7623 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7626 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7628 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7631 * doc/tm.texi.in (TARGET_VERSION): Remove.
7632 * doc/tm.texi: Regenerate.
7633 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7634 * collect2.c (main): Don't use TARGET_VERSION.
7635 * mips-tdump.c (main): Don't use TARGET_VERSION.
7636 * mips-tfile.c (main): Don't use TARGET_VERSION.
7637 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7638 * config/rs6000/vxworksae.h: Remove.
7639 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7640 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7641 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7642 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7643 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7644 * config/arm/arm.h (TARGET_VERSION): Remove.
7645 * config/arm/coff.h (TARGET_VERSION): Remove.
7646 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7647 * config/arm/elf.h (TARGET_VERSION): Remove.
7648 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7649 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7650 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7651 * config/arm/pe.h (TARGET_VERSION): Remove.
7652 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7653 * config/arm/semi.h (TARGET_VERSION): Remove.
7654 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7655 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7656 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7657 * config/avr/avr.h (TARGET_VERSION): Remove.
7658 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7659 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7660 * config/frv/frv.h (TARGET_VERSION): Remove.
7661 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7662 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7663 * config/i386/darwin.h (TARGET_VERSION): Remove.
7664 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7665 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7666 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7667 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7668 * config/i386/gnu.h (TARGET_VERSION): Remove.
7669 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7670 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7671 * config/i386/linux.h (TARGET_VERSION): Remove.
7672 * config/i386/linux64.h (TARGET_VERSION): Remove.
7673 * config/i386/lynx.h (TARGET_VERSION): Remove.
7674 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7675 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7676 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7677 * config/i386/netware.h (TARGET_VERSION): Remove.
7678 * config/i386/nto.h (TARGET_VERSION): Remove.
7679 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7680 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7681 * config/ia64/elf.h (TARGET_VERSION): Remove.
7682 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7683 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7684 * config/ia64/linux.h (TARGET_VERSION): Remove.
7685 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7686 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7687 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7688 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7689 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7690 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7691 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7692 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7693 * config/m68k/linux.h (TARGET_VERSION): Remove.
7694 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7695 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7696 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7697 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7698 * config/mep/mep.h (TARGET_VERSION): Remove.
7699 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7700 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7701 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7702 * config/mips/linux.h (TARGET_VERSION): Remove.
7703 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7704 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7705 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7706 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7707 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7708 * config/pa/pa.h (TARGET_VERSION): Remove.
7709 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7710 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7711 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7712 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7713 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7714 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7715 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7716 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7717 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7718 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7719 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7720 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7721 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7722 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7723 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7724 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7725 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7726 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7727 * config/s390/linux.h (TARGET_VERSION): Remove.
7728 * config/s390/s390.h (TARGET_VERSION): Remove.
7729 * config/s390/tpf.h (TARGET_VERSION): Remove.
7730 * config/score/score.h (TARGET_VERSION): Remove.
7731 * config/sh/linux.h (TARGET_VERSION): Remove.
7732 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7733 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7734 * config/sh/sh.h (TARGET_VERSION): Remove.
7735 * config/sh/sh64.h (TARGET_VERSION): Remove.
7736 * config/sh/superh.h (TARGET_VERSION): Remove.
7737 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7738 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7739 * config/sparc/linux.h (TARGET_VERSION): Remove.
7740 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7741 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7742 TARGET_NAME32, TARGET_NAME): Remove.
7743 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7744 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7745 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7746 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7747 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7748 * config/spu/spu.h (TARGET_VERSION): Remove.
7749 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7750 * config/v850/v850.h (TARGET_VERSION): Remove.
7751 * config/vax/linux.h (TARGET_VERSION): Remove.
7752 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7753 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7754 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7756 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7759 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7760 frame-related from frame-unrelated adjustments to the stack pointer.
7762 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7764 * common.opt (fdebug-types-section): Move earlier.
7765 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7767 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7769 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7772 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7774 * tree.h (CASE_CHAIN): Define.
7775 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7776 (gimple_redirect_edge_and_branch): Likewise.
7778 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7781 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7784 2011-03-30 Jeff Law <law@redhat.com>
7786 * PR bootstrap/48371
7787 * reload1.c (reload): Fix botch in last change.
7789 * reload.h (struct reload): Fix typo introduced in last change.
7791 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7793 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7794 Undocumented. Remove help text.
7795 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7798 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7800 * doc/options.texi (NegativeAlias): Document.
7801 (Alias): Mention NegativeAlias.
7802 * opt-functions.awk: Handle NegativeAlias.
7803 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7804 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7805 * opts.h (CL_NEGATIVE_ALIAS): Define.
7806 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7807 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7809 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7811 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7812 mno-spe and mno-isel instead of mspe=no and -misel=no.
7814 2011-03-29 Mark Wielaard <mjw@redhat.com>
7816 * common.opt (fdebug-types-section): New flag.
7817 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7818 * dwarf2out.c (use_debug_types): New define.
7819 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7820 (print_die): Guard output of type unit signatures using
7822 (build_abbrev_table): Replace assert of dwarf_version >= 4
7823 with assert on use_debug_types.
7824 (size_of_die): Likewise.
7825 (unmark_dies): Likewise.
7826 (value_format): Decide AT_ref_external form on use_debug_types.
7827 (output_die): Replace dwarf_version version check guard with
7828 use_debug_types where appropriate.
7829 (modified_type_die): Likewise.
7830 (gen_reference_type_die): Likewise.
7831 (dwarf2out_start_source_file): Likewise.
7832 (dwarf2out_end_source_file): Likewise.
7833 (prune_unused_types_walk_attribs): Likewise.
7834 (dwarf2out_finish): Likewise.
7836 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7838 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7840 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7842 PR rtl-optimization/48332
7843 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7844 mode of input operand N and modeN to its actual mode.
7846 2011-03-30 Jeff Law <law@redhat.com>
7848 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7849 define accessor macro.
7850 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7851 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7852 (reg_equiv_init): Likewise.
7853 (reg_equivs_size): New variable.
7854 (reg_equiv_init_size): Remove.
7855 (allocate_initial_values): Move prototype to here from....
7856 * integrate.h (allocate_initial_values): Remove prototype.
7857 * integrate.c: Include reload.h.
7858 (allocate_initial_values): Corresponding changes.
7859 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7860 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7861 (update_equiv_regs): Corresponding changes.
7862 (ira): Corresponding changes.
7863 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7864 (push_secondary_reload): Corresponding changes.
7865 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7866 (make_memloc, find_reloads_address): Corresponding changes.
7867 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7868 (find_reloads_address_1): Corresponding changes.
7869 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7870 (refers_to_regno_for_reload_p): Corresponding changes.
7871 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7872 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7873 * reload1.c: Include ggc.h.
7874 (grow_reg_equivs): New function.
7875 (replace_pseudos_in, reload): Corresponding changes.
7876 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7877 (eliminate_regs_1, elimination_effects): Corresponding changes.
7878 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7879 (delete_output_reload): Likewise.
7880 * caller-save.c (mark_referenced_regs): Corresponding changes.
7881 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7882 * frv/predicates.md (frv_load_operand): Corresponding changes.
7883 * microblaze/microblaze.c (double_memory_operand): Corresponding
7885 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7886 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7887 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7888 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7889 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7891 * pa/pa.c (emit_move_sequence): Corresponding changes.
7892 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7894 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7897 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7898 structure modes. Don't check neon_vector_mem_operand for
7899 vector or structure modes.
7901 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7902 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7905 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7906 operand 1 and reshuffle the operands to match.
7907 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7909 2011-03-30 Christian Schüler <cschueler@gmx.de>
7912 * config/c.opt (F): Added 'Driver' to -F option.
7915 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7917 * config/darwin.opt: Added '-arch' option.
7919 2011-03-30 Nick Clifton <nickc@redhat.com>
7921 * config/rx/rx.md: Add peepholes and patterns to combine
7922 extending loads and simple arithmetic instructions.
7923 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7924 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7925 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7926 modes to use pre-decrement and post-increment addressing.
7927 (rx_is_restricted_memory_address): Add range checking of REG+INT
7929 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7930 (rx_memory_move_cost): Adjust cost of stores.
7931 (rx_adjust_insn_length): New function.
7933 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7936 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7937 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7938 matching arg00/arg01 types.
7940 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7942 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7943 last_location to UNKNOWN_LOCATION.
7945 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7948 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7951 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7952 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7955 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7957 (sparc_cpu): Likewise.
7958 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7961 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7965 PR rtl-optimization/48345
7966 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7967 hard regs for given mode from profitable regs when doing secondary
7970 2011-03-29 Jeff Law <law@redhat.com>
7973 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7974 do_not_duplicate field.
7975 (lookup_redirection_data): Corresponding changes.
7976 (create_duplicates): Always create a template block.
7977 (redirect_edges): Remove code which reused the original block
7978 when it was going to become unreachable code.
7979 (thread_block): Don't set do_not_duplicate field.
7981 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7983 * lto-opts.c (register_user_option_p, lto_register_user_option):
7984 Make type argument unsigned.
7985 * lto-streamer.h (lto_register_user_option): Make type argument
7987 * opth-gen.awk: Make CL_* macros unsigned.
7988 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7989 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7990 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7991 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7992 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7993 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7994 (find_opt): Make lang_mask argument unsigned.
7996 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7998 PR rtl-optimization/48331
7999 PR rtl-optimization/48334
8000 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8001 for any used algorithm.
8003 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8005 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8008 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8010 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8011 (alpha_option_override): Don't set alpha_sr_alias_set.
8012 (emit_frame_store_1): Use gen_frame_mem rather than calling
8014 (alpha_expand_epilogue): Ditto.
8016 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8018 PR tree-optimization/48290
8019 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8020 vectorization, check that relevant phis in the basic block after
8021 the inner loop are really inner loop's exit phis.
8023 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8026 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8027 (cached_dw_loc_list_def): New structure.
8028 (cached_dw_loc_list): New typedef.
8029 (cached_dw_loc_list_table): New variable.
8030 (cached_dw_loc_list_table_hash): New function.
8031 (cached_dw_loc_list_table_eq): Likewise.
8032 (add_location_or_const_value_attribute): Take a bool cache_p.
8033 Cache the list when the parameter is true.
8034 (gen_formal_parameter_die): Update caller.
8035 (gen_variable_die): Likewise.
8036 (dwarf2out_finish): Likewise.
8037 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8038 while generating debug info for the decl.
8039 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8040 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8041 (resolve_addr): Cache the result of resolving a chain of
8044 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8046 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8047 conflict object hard regset nodes have intersecting hard reg sets.
8049 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8050 after regstat_init_n_sets_and_refs.
8052 * ira.c: Add more comments at the top.
8053 (setup_stack_reg_pressure_class, setup_pressure_classes):
8054 Add comments how we compute the register pressure classes.
8055 (setup_allocno_and_important_classes): Add more comments.
8056 (setup_class_translate_array, reorder_important_classes)
8057 (setup_reg_class_relations): Add comments.
8059 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8062 * ira-color.c: Add 2011 to the Copyright line.
8063 (assign_hard_reg): Add more comments.
8064 (improve_allocation): Ditto.
8066 * ira-costs.c: Add 2011 to the Copyright line.
8067 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8069 (setup_regno_cost_classes_by_mode): Ditto.
8071 Initial patches from ira-improv branch:
8073 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8075 * ira-build.c (ira_create_object): Remove initialization of
8076 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8077 (ira_create_allocno): Remove initialization of
8078 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8079 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8080 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8081 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8082 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8083 Initialize ALLOCNO_ADD_DATA.
8084 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8085 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8087 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8088 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8090 * ira.c (ira_reallocate): Remove.
8091 (setup_pressure_classes): Call
8092 ira_init_register_move_cost_if_necessary. Use
8093 ira_register_move_cost instead of ira_get_register_move_cost.
8094 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8095 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8097 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8098 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8099 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8100 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8101 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8102 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8104 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8105 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8106 (struct allocno_color_data): New.
8107 (allocno_color_data_t): New typedef.
8108 (allocno_color_data): New definition.
8109 (ALLOCNO_COLOR_DATA): New macro.
8110 (struct object_color_data): New.
8111 (object_color_data_t): New typedef.
8112 (object_color_data): New definition.
8113 (OBJECT_COLOR_DATA): New macro.
8114 (update_copy_costs, calculate_allocno_spill_cost): Call
8115 ira_init_register_move_cost_if_necessary. Use
8116 ira_register_move_cost instead of ira_get_register_move_cost.
8117 (move_spill_restore, update_curr_costs): Ditto.
8118 (allocno_spill_priority): Make it inline.
8119 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8120 (struct coalesce_data, coalesce_data_t): New.
8121 (allocno_coalesce_data): New definition.
8122 (ALLOCNO_COALESCE_DATA): New macro.
8123 (merge_allocnos, coalesced_allocno_conflict_p): Use
8124 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8125 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8126 (coalesce_allocnos): Ditto.
8127 (setup_coalesced_allocno_costs_and_nums): Ditto.
8128 (collect_spilled_coalesced_allocnos): Ditto.
8129 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8130 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8131 (coalesce_spill_slots): Ditto.
8132 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8133 free allocno_coalesce_data.
8135 * ira-conflicts.c: Fix formatting.
8136 (process_regs_for_copy): Call
8137 ira_init_register_move_cost_if_necessary. Use
8138 ira_register_move_cost instead of ira_get_register_move_cost.
8139 (build_object_conflicts): Optimize.
8141 * ira-costs.c (record_reg_classes): Optimize. Call
8142 ira_init_register_move_cost_if_necessary. Use
8143 ira_register_move_cost, ira_may_move_in_cost, and
8144 ira_may_move_out_cost instead of ira_get_register_move_cost and
8145 ira_get_may_move_cost.
8146 (record_address_regs): Ditto.
8147 (scan_one_insn): Optimize.
8148 (find_costs_and_classes): Optimize.
8149 (process_bb_node_for_hard_reg_moves): Call
8150 ira_init_register_move_cost_if_necessary. Use
8151 ira_register_move_cost instead of ira_get_register_move_cost.
8153 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8154 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8155 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8156 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8158 (ira_initiate_emit_data, ira_finish_emit_data)
8159 (create_new_allocno): New functions.
8160 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8161 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8162 Use ira_register_move_cost instead of ira_get_register_move_cost.
8164 * ira-int.h: Fix some comments.
8165 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8166 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8167 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8168 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8170 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8171 bitfield after mode. Make hard_regno a short int. Make
8172 hard_regno short. Remove first_coalesced_allocno and
8173 next_coalesced_allocno. Move mem_optimized_dest_p,
8174 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8175 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8176 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8177 temp, colorable_p. Add new member add_data.
8178 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8179 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8180 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8181 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8182 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8183 (ALLOCNO_ADD_DATA): New macro.
8184 (ira_emit_data_t): New typedef.
8185 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8186 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8187 from struct ira_allocno.
8188 (ALLOCNO_EMIT_DATA): New macro.
8189 (ira_allocno_emit_data, allocno_emit_reg): New.
8190 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8191 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8192 (OBJECT_ADD_DATA): New macro.
8193 (ira_reallocate): Remove.
8194 (ira_initiate_emit_data, ira_finish_emit_data): New.
8195 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8196 (ira_init_register_move_cost_if_necessary): New.
8197 (ira_object_conflict_iter_next): Merge into
8198 ira_object_conflict_iter_cond.
8199 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8201 * ira-live.c (process_single_reg_class_operands): Call
8202 ira_init_register_move_cost_if_necessary. Use
8203 ira_register_move_cost instead of ira_get_register_move_cost.
8205 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8207 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8209 * ira-costs.c: Fix formatting.
8210 (cost_classes, cost_classes_num): Remove.
8211 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8212 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8213 (cost_classes_del, cost_classes_htab): New.
8214 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8215 (initiate_regno_cost_classes, setup_cost_classes): New.
8216 (setup_regno_cost_classes_by_aclass): New.
8217 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8218 (record_reg_classes): Use regno_cost_classes instead of
8219 cost_classes. Move checking opposite operand up.
8220 (record_address_regs): Use regno_cost_classes
8221 instead of cost_classes.
8222 (scan_one_insn): Ditto. Use always general register.
8223 (print_allocno_costs): Use regno_cost_classes instead of
8225 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8226 (find_costs_and_classes): Set up cost classes for each registers.
8227 Use also their mode for this. Use regno_cost_classes instead of
8229 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8231 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8232 (ira_costs, ira_set_pseudo_classes): Call
8233 initiate_regno_cost_classes and finish_regno_cost_classes.
8235 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8237 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8239 * target.def (ira_cover_classes): Remove.
8241 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8243 * doc/tm.texi.in: Ditto.
8245 * ira-conflicts.c: Remove mentioning cover classes from the file.
8246 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8247 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8249 * targhooks.c (default_ira_cover_classes): Remove.
8251 * targhooks.h (default_ira_cover_classes): Ditto.
8253 * haifa-sched.c: Remove mentioning cover classes from the file.
8254 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8255 ira_pressure_classes and ira_pressure_classes_num instead of
8256 ira_reg_class_cover_size and ira_reg_class_cover. Use
8257 sched_regno_pressure_class instead of sched_regno_cover_class.
8258 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8259 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8261 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8262 classes from the file.
8263 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8264 (struct object_hard_regs, struct object_hard_regs_node): New.
8265 (struct ira_object): New members profitable_hard_regs,
8266 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8267 (struct ira_allocno): Rename cover_class to aclass. Rename
8268 cover_class_cost and updated_cover_class_cost to class_cost and
8269 updated_class_cost. Remove splay_removed_p and
8270 left_conflict_size. Add new members colorable_p.
8271 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8272 (ALLOCNO_COLORABLE_P): New macro.
8273 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8274 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8275 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8276 (OBJECT_...): Rename parameter C to O.
8277 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8278 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8279 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8280 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8281 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8282 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8283 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8284 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8285 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8286 x_ira_reg_class_subunion.
8287 (ira_max_memory_move_cost, ira_max_register_move_cost)
8288 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8289 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8290 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8291 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8292 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8293 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8294 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8295 (ira_tune_allocno_costs_and_cover_classes): Rename to
8296 ira_tune_allocno_costs.
8297 (ira_debug_hard_regs_forest): New.
8298 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8299 (ira_object_conflict_iter_next): Fix comments.
8300 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8301 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8302 cover_class to aclass.
8303 (ira_allocate_and_accumulate_costs): Ditto.
8304 (ira_allocate_and_set_or_copy_costs): Ditto.
8306 * opts.c (decode_options): Remove ira_cover_class check.
8308 * ira-color.c: Remove mentioning cover classes from the file. Use
8309 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8310 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8311 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8312 (splay-tree.h): Remove include.
8313 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8314 before copy_freq_compare_func.
8315 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8316 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8318 (hard_regs_roots, hard_regs_node_vec): Ditto.
8319 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8320 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8321 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8322 (create_new_object_hard_regs_node): Ditto.
8323 (add_new_object_hard_regs_node_to_forest): Ditto.
8324 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8325 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8327 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8328 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8329 (remove_unused_object_hard_regs_nodes): Ditto.
8330 (enumerate_object_hard_regs_nodes): Ditto.
8331 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8332 (object_hard_regs_subnode_t): Ditto.
8333 (struct object_hard_regs_subnode): Ditto.
8334 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8335 (setup_object_hard_regs_subnode_index): Ditto.
8336 (get_object_hard_regs_subnodes_num): Ditto.
8337 (form_object_hard_regs_nodes_forest): Ditto.
8338 (finish_object_hard_regs_nodes_tree): Ditto.
8339 (finish_object_hard_regs_nodes_forest): Ditto.
8340 (allocnos_have_intersected_live_ranges_p): Rename to
8341 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8342 (pseudos_have_intersected_live_ranges_p): Rename to
8343 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8344 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8345 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8346 (update_copy_costs): Remove assert. Skip cost update if the hard
8347 reg does not belong the class.
8348 (assign_hard_reg): Process only profitable hard regs.
8349 (uncolorable_allocnos_num): Make it scalar.
8350 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8351 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8352 and ira_reg_class_max_nregs.
8353 (bucket_allocno_compare_func): Check frequency first.
8354 (sort_bucket): Add compare function as a parameter.
8355 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8356 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8357 (push_allocno_to_stack): Rewrite for checking new allocno
8359 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8360 (push_only_colorable): Pass new parameter to sort_bucket.
8361 (push_allocno_to_spill): Remove.
8362 (allocno_spill_priority_compare): Make it inline and rewrite.
8363 (splay_tree_allocate, splay_tree_free): Remove.
8364 (allocno_spill_sort_compare): New function.
8365 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8366 build and use splay tree. Choose first allocno in uncolorable
8367 allocno bucket to spill. Remove setting spill cost.
8368 (all_conflicting_hard_regs): Remove.
8369 (setup_allocno_available_regs_num): Check only profitable hard
8370 regs. Print info about hard regs nodes.
8371 (setup_allocno_left_conflicts_size): Remove.
8372 (put_allocno_into_bucket): Don't call
8373 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8374 (improve_allocation): New.
8375 (color_allocnos): Call setup_profitable_hard_regs,
8376 form_object_hard_regs_nodes_forest, improve_allocation,
8377 finish_object_hard_regs_nodes_forest. Setup spill cost.
8378 (print_loop_title): Use pressure classes.
8379 (color_allocnso): Ditto.
8380 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8381 and allocnos_for_spilling.
8382 (ira_sort_regnos_for_alter_reg): Don't setup members
8383 {first,next}_coalesced_allocno.
8384 (color): Remove allocating and freeing removed_splay_allocno_vec.
8385 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8386 prohibited_class_mode_regs.
8388 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8390 (update_allocno_pressure_excess_length): Use pressure classes.
8391 (inc_register_pressure, dec_register_pressure): Check for pressure
8393 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8394 pressure class. Use ira_reg_class_nregs instead of
8395 ira_reg_class_max_nregs.
8396 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8397 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8398 (single_reg_class): Use ira_reg_class_nregs instead of
8399 ira_reg_class_max_nregs.
8400 (process_bb_node_lives): Use pressure classes.
8402 * ira-emit.c: Remove mentioning cover classes from the file. Use
8403 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8404 (change_loop): Use pressure classes.
8405 (modify_move_list): Call ira_set_allocno_class instead of
8406 ira_set_allocno_cover_class.
8408 * ira-build.c: Remove mentioning cover classes from the file. Use
8409 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8410 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8411 ALLOCNO_UPDATED_CLASS_COST instead of
8412 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8413 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8414 (ira_create_allocno): Remove initialization of
8415 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8416 ALLOCNO_COLORABLE_P.
8417 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8418 Update conflict regs for the objects.
8419 (create_cap_allocno): Remove assert. Don't propagate
8420 ALLOCNO_AVAILABLE_REGS_NUM.
8421 (ira_free_allocno_costs): New function.
8422 (finish_allocno): Change a part of code into call of
8423 ira_free_allocno_costs.
8424 (low_pressure_loop_node_p): Use pressure classes.
8425 (object_range_compare_func): Don't compare classes.
8426 (setup_min_max_conflict_allocno_ids): Ditto.
8428 * loop-invariant.c: Remove mentioning cover classes from the file.
8429 Use ira_pressure_classes and ira_pressure_classes_num instead of
8430 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8431 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8432 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8433 Use reg_allocno_class instead of reg_cover_class.
8434 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8435 STACK_REG_COVER_CLASS.
8436 (get_regno_cover_class): Rename to get_regno_pressure_class.
8437 (move_loop_invariants): Initialize and finalize regstat.
8439 * ira.c: Remove mentioning cover classes from the file. Add
8440 comments about coloring without cover classes. Use ALLOCNO_CLASS
8441 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8442 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8443 setup_class_subset_and_memory_move_costs.
8444 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8445 (setup_cover_and_important_classes): Rename to
8446 setup_allocno_and_important_classes.
8447 (setup_class_translate_array): New.
8448 (setup_class_translate): Call it for allocno and pressure classes.
8449 (cover_class_order): Rename to allocno_class_order.
8450 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8451 of ira_class_translate.
8452 (reorder_important_classes): Set up ira_important_class_nums.
8453 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8454 (print_class_cover): Rename to print_classes. Add parameter.
8455 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8456 Print pressure classes too.
8457 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8458 setup_reg_subclasses.
8459 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8460 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8461 (setup_prohibited_class_mode_regs): Use
8462 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8463 (clarify_prohibited_class_mode_regs): New function.
8464 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8465 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8466 (ira_init_once): Initialize them.
8467 (free_register_move_costs): Process them.
8468 (ira_init): Move calls of find_reg_classes and
8469 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8470 Call clarify_prohibited_class_mode_regs.
8471 (ira_no_alloc_reg): Remove.
8472 (too_high_register_pressure_p): Use pressure classes.
8474 * sched-deps.c: Remove mentioning cover classes from the file.
8475 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8476 ira_pressure_classes and ira_pressure_classes_num instead of
8477 ira_reg_class_cover_size and ira_reg_class_cover.
8478 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8479 sched_regno_pressure_class instead of sched_regno_cover_class.
8480 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8481 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8483 * ira.h: Add 2010 to Copyright.
8484 (ira_no_alloc_reg): Remove external.
8485 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8486 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8487 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8488 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8489 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8490 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8491 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8492 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8493 x_ira_no_alloc_regs.
8494 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8495 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8496 ira_allocno_classes_num and ira_allocno_classes.
8497 (ira_class_translate): Rename to ira_allocno_class_translate.
8498 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8499 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8500 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8501 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8502 (ira_no_alloc_regs): New.
8504 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8505 classes from the file. Use ALLOCNO_CLASS instead of
8506 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8507 ALLOCNO_COVER_CLASS_COST.
8508 (regno_cover_class): Rename to regno_aclass.
8509 (record_reg_classes): Use ira_reg_class_subunion instead of
8510 ira_reg_class_union.
8511 (record_address_regs): Check overflow.
8512 (scan_one_insn): Ditto.
8513 (print_allocno_costs): Print total mem cost fore regional allocation.
8514 (print_pseudo_costs): Use REG_N_REFS.
8515 (find_costs_and_classes): Use classes intersected with them on the
8516 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8517 ira_reg_class_union. Use ira_allocno_class_translate and
8518 regno_aclass instead of ira_class_translate and regno_cover_class.
8519 Modify code for finding regno_aclass. Setup preferred classes for
8521 (setup_allocno_cover_class_and_costs): Rename to
8522 setup_allocno_class_and_costs. Use regno_aclass instead of
8523 regno_cover_class. Use ira_set_allocno_class instead of
8524 ira_set_allocno_cover_class.
8525 (init_costs, finish_costs): Use regno_aclass instead of
8527 (ira_costs): Use setup_allocno_class_and_costs instead of
8528 setup_allocno_cover_class_and_costs.
8529 (ira_tune_allocno_costs_and_cover_classes): Rename to
8530 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8531 by processing objects. Use ira_reg_class_max_nregs instead of
8532 ira_reg_class_nregs.
8534 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8536 * sched-int.h: Remove mentioning cover classes from the file.
8537 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8539 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8540 classes from the file.
8541 (struct reg_pref): Rename coverclass into allocnoclass.
8542 (reg_cover_class): Rename to reg_allocno_class.
8544 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8546 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8548 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8550 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8552 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8554 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8556 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8558 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8560 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8562 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8564 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8565 (i386_ira_cover_classes): Ditto.
8567 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8569 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8571 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8573 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8575 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8577 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8579 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8580 (mips_ira_cover_classes): Ditto.
8582 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8584 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8586 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8588 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8590 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8592 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8593 (IRA_COVER_CLASSES_VSX): Ditto.
8595 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8596 (rs6000_ira_cover_classes): Ditto.
8598 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8600 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8602 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8604 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8606 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8608 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8610 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8612 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8614 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8616 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8618 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8621 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8622 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8623 dw_fde_unlikely_section_end_label, cold_in_std_section,
8624 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8625 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8627 (output_fde): Use dw_fde_second_{begin,end} if second is
8628 true, otherwise dw_fde_{begin,end}.
8629 (output_call_frame_info): Test dw_fde_second_begin != NULL
8630 instead of dw_fde_switched_sections.
8631 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8632 fields, initialize new fields. Initialize in_std_section
8633 unconditionally from the first partition.
8634 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8635 dw_fde_second_begin is non-NULL.
8636 (dwarf2out_switch_text_section): Stop initializing removed
8637 dw_fde_struct fields, initialize new fields, initialize
8638 also dw_fde_end here. Set dw_fde_switch_cfi even when
8639 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8640 (struct var_loc_list_def): Add last_before_switch field.
8641 (arange_table, arange_table_allocated, arange_table_in_use,
8642 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8643 (size_of_aranges): Count !in_std_section and !second_in_std_section
8644 hunks in fdes, instead of looking at arange_table_in_use.
8645 (output_aranges): Add aranges_length argument, don't call
8646 size_of_aranges here. Instead of using aranges_table*
8647 emit ranges for fdes when !in_std_section resp.
8648 !second_in_std_section.
8649 (dw_loc_list): Break ranges crossing section switch.
8650 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8651 use dw_fde_second_end instead of dw_fde_end as end of last range.
8652 (gen_subprogram_die): Don't call add_arange. Use
8653 dw_fde_{begin,end} for first partition and if switched
8654 section dw_fde_second_{begin,end} for the second.
8655 (var_location_switch_text_section_1,
8656 var_location_switch_text_section): New functions.
8657 (dwarf2out_begin_function): Initialize cold_text_section even
8658 when function_section () isn't text_section.
8659 (prune_unused_types): Don't walk arange_table.
8660 (dwarf2out_finish): Don't needlessly test
8661 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8662 If info_section_emitted, call size_of_aranges and if it indicates
8663 non-empty .debug_aranges, call output_aranges with the computed
8664 size. Stop using removed dw_fde_struct fields, use
8665 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8669 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8670 create ENTRY_VALUE if incoming or address of incoming's MEM
8672 * dwarf2out.c (mem_loc_descriptor): Don't emit
8673 DW_OP_GNU_entry_value of DW_OP_fbreg.
8674 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8675 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8676 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8677 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8679 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8680 is a REG_P or MEM_P with REG_P address, compute hash directly
8681 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8682 (preserve_only_constants): Don't clear VALUES forwaring
8683 ENTRY_VALUE to some other VALUE.
8685 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8687 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8690 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8692 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8693 block before expanding the statement.
8694 (expand_gimple_stmt_1): Likewise. Set them here...
8695 (expand_gimple_stmt): ...and not here. Tidy.
8696 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8699 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8701 * Makefile.in: New rule for cprop.o.
8702 * gcse.c: Move constant/copy propagation to cprop.c.
8703 (compute_local_properties): Only handle expression tables.
8704 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8705 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8706 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8707 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8708 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8709 compute_cprop_data, find_used_regs, try_replace_reg,
8710 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8711 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8712 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8713 find_bypass_set, reg_killed_on_edge, bypass_block,
8714 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8715 execute_rtl_cprop, pass_rtl_cprop): Move to...
8716 * cprop.c: ...here. New file, constant/copy propagation for RTL
8717 moved from gcse.c to here with minor cleanups in duplicated code.
8719 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8721 * config/i386/i386.c (flag_opts): Fix a typo in
8722 -mavx256-split-unaligned-store.
8724 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8726 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8727 LIBCALL_VALUE): Remove macros.
8728 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8729 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8730 (h8300_function_value, h8300_libcall_value,
8731 h8300_function_value_regno_p): New functions.
8733 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8735 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8737 2011-03-28 Jeff Law <law@redhat.com>
8739 * tree-ssa-threadupdate.c (redirect_edges): Call
8740 create_edge_and_update_destination_phis as needed.
8741 (create_edge_and_update_destination_phis): Accept new BB argument.
8742 All callers updated.
8743 (thread_block): Do not update the profile when threading around
8744 intermediate blocks.
8745 (thread_single_edge): Likewise.
8746 (determine_bb_domination_status): If BB is not a successor of the
8747 loop header, return NONDOMINATING.
8748 (register_jump_thread): Note when we register a jump thread around
8749 an intermediate block.
8750 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8751 (thread_across_edge): Use it.
8753 2011-03-28 Tristan Gingold <gingold@adacore.com>
8755 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8756 when for_return is 2.
8758 2011-03-28 Jeff Law <law@redhat.com>
8760 * var-tracking.c (canonicalize_values_mark): Delete unused
8762 (canonicalize_values_star, set_variable_part): Likewise.
8763 (clobber_variable_part, delete_variable_part): Likewise.
8765 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8767 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8769 2011-03-28 Martin Jambor <mjambor@suse.cz>
8771 * tree-inline.c (expand_call_inline): Do not check that destination
8773 (optimize_inline_calls): Assert that destination node is analyzed.
8774 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8775 not call tree_lowering_passes.
8776 * cgraph.h (cgraph_analyze_function): Declare.
8777 * cgraphunit.c (cgraph_analyze_function): Make public.
8779 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8781 * config/sparc/sparc-opts.h: New.
8782 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8783 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8784 (sparc_option_override): Store processor_type enumeration rather
8785 than string in cpu_default. Remove name and enumeration from
8786 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8787 without using sparc_select. Use target_flags_explicit instead of
8789 * config/sparc/sparc.h (enum processor_type): Move to
8791 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8792 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8793 HeaderInclude entry.
8794 (mcpu=, mtune=): Use Var and Enum.
8795 (sparc_processor_type): New Enum and EnumValue entries.
8797 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8798 Iain Sandoe <iains@gcc.gnu.org>
8801 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8803 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8805 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8806 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8807 Insert new statements at it in lieu of STMT.
8808 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8809 * tree-vect-stmts.c (vectorizable_store): Likewise.
8810 (vectorizable_load): Likewise.
8812 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8814 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8819 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8821 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8822 unaligned 256bit load/store.
8823 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8824 (*avx_movdqu<avxmodesuffix>): Likewise.
8826 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8829 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8830 * config/pa/pa.md (iordi3): Use new predicate in expander.
8833 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8835 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8836 FUNCTION_VALUE_REGNO_P): Remove macros.
8837 * config/mips/mips-protos.h (mips_function_value): Remove.
8838 * config/mips/mips.c (mips_function_value): Rename to...
8839 (mips_function_value_1): ... this. Make static. Handle receiving
8840 the function type in 'fn_decl_or_type' argument.
8841 (mips_function_value, mips_libcall_value,
8842 mips_function_value_regno_p): New function.
8843 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8844 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8846 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8848 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8849 and -mavx256-split-unaligned-store.
8850 (ix86_option_override_internal): Split 32-byte AVX unaligned
8851 load/store by default.
8852 (ix86_avx256_split_vector_move_misalign): New.
8853 (ix86_expand_vector_move_misalign): Use it.
8855 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8856 -mavx256-split-unaligned-store.
8858 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8859 256bit load/store. Generate unaligned store on misaligned memory
8861 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8863 (*avx_movdqu<avxmodesuffix>): Likewise.
8865 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8866 -mavx256-split-unaligned-store.
8868 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8871 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8874 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8876 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8877 opno arguments with an expand_operand. Use create_input_operand.
8878 (mips_prepare_builtin_target): Delete.
8879 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8881 (mips_expand_builtin_direct): Use create_output_operand and
8882 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8883 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8884 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8886 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8888 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8890 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8892 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8894 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8895 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8896 basic blocks and call commit_edge_insertions directly.
8897 (fixup_abnormal_edges): Move from here to...
8898 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8899 on the edges and return whether some have actually been inserted.
8900 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8903 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8905 PR rtl-optimization/48144
8906 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8907 (merge_expr_data): ... here.
8908 (av_set_intersect): Rename to av_set_code_motion_filter.
8909 Update all callers. Call merge_history_vect when an expression
8910 is found in both sets.
8911 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8913 2011-03-26 Alan Modra <amodra@gmail.com>
8915 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8916 cmodel medium addresses.
8917 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8918 64-bit gpr loads and stores.
8919 (rs6000_secondary_reload_ppc64): New function.
8920 * config/rs6000/rs6000-protos.h: Declare it.
8921 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8923 2011-03-26 Alan Modra <amodra@gmail.com>
8926 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8927 GNU Go in traceback table.
8929 2011-03-25 Richard Henderson <rth@redhat.com>
8931 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8932 if there are exactly 6 operands.
8933 (set_storage_via_setmem): Similarly.
8935 2011-03-25 Kai Tietz <ktietz@redhat.com>
8937 * collect2.c (write_c_file_stat): Handle backslash
8938 as right-hand directory separator.
8939 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8940 checking just for slash.
8941 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8942 instead of checking for trailing slash.
8943 * gcc.c (record_temp_file): Use filename_cmp instead
8945 (do_spec_1): Likewise.
8946 (replace_outfile_spec_function): Likewise.
8947 (is_directory): Use filename_ncmp instead of strncmp.
8948 (print_multilib_info): Likewise.
8949 * gcov.c (find_source): Use filename_cmp instead
8951 (make_gcov_file_name): Fix order of slash/backslash
8953 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8954 (add_standard_paths): Likewise.
8955 * mips-tfile.c (saber_stop): Handle backslash.
8956 * prefix.c (update_path): Use filename_ncmp instead of
8958 * profile.c (output_location): Use filename_cmp instead
8960 * read-md.c (handle_toplevel_file): Handle backslash.
8961 * tlink.c (frob_extension): Likewise.
8962 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8964 * tree-dump.c (dequeue_and_dump): Handle backslash.
8965 * tree.c (get_file_function_name): Likewise.
8966 * gengtype.c (read_input_list): Likewise.
8967 (get_file_realbasename): Likewise.
8968 (get_output_file_with_visibility): Use filename_cmp
8971 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8973 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8976 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8978 * fold-const.c (expr_location_or): New function.
8979 (fold_truth_not_expr): Call it.
8981 2011-03-25 Jeff Law <law@redhat.com>
8983 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8985 * c-family/c-common.c (def_fn_type): Likewise.
8986 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8987 * emit-rtl.c (gen_rtvec): Likewise.
8988 * lto/lto-lang.c (def_fn_type): Likewise.
8990 2011-03-25 Richard Guenther <rguenther@suse.de>
8992 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8993 also generate copies.
8994 (fini_copy_prop): Handle constant values properly.
8996 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8998 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8999 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9000 (hash_loc_operands, compare_loc_operands): Handle
9001 DW_OP_GNU_entry_value.
9003 2011-03-25 Kai Tietz <ktietz@redhat.com>
9005 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9006 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9007 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9008 comment and use macro TARGET_64BIT_MS_ABI instead.
9009 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9010 and change default behavior for 32-bit MS_ABI.
9011 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9012 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9014 (ix86_cfun_abi): Likewise.
9015 (ix86_maybe_switch_abi): Adjust comment.
9016 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9017 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9018 instead of checking for SYSV_ABI.
9019 (ix86_nsaved_sseregs): Likewise.
9020 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9022 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9023 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9024 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9025 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9026 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9028 2011-03-25 Richard Guenther <rguenther@suse.de>
9030 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9031 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9032 (verify_gimple): Remove.
9033 * tree-cfg.c (verify_gimple_call): Merge verification
9035 (verify_gimple_phi): Merge verification from verify_stmts.
9036 (verify_gimple_label): New function.
9037 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9038 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9039 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9040 (verify_stmts): Rename to verify_gimple_in_cfg.
9041 (verify_gimple_in_cfg): New function.
9042 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9043 * tree-ssa.c (verify_ssa): Likewise.
9044 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9046 2011-03-25 Richard Guenther <rguenther@suse.de>
9048 * passes.c (init_optimization_passes): Add FRE pass after
9051 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9052 Andrew Stubbs <ams@codesourcery.com>
9054 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9056 (arm_movdi_vfp_cortexa8): New pattern.
9057 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9058 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9059 instructions when tuning for Cortex-A8. Set attribute "arch".
9060 * config/arm/arm.md: Move include arm-tune.md up a bit.
9061 (define_attr "arch"): Add "onlya8" and "nota8" values.
9062 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9064 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9068 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9070 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9071 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9072 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9073 * passes.c (init_optimization_passes): Move
9074 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9076 2011-03-25 Kai Tietz <ktietz@redhat.com>
9078 * c-typeck.c (comptypes_internal): Replace target
9079 hook call of comp_type_attributes by version in tree.c file.
9080 * gimple.c (gimple_types_compatible_p_1): Likewise.
9081 * tree-ssa.c (useless_type_conversion_p): Likewise.
9082 * tree.c (build_type_attribute_qual_variant): Likewise.
9083 (attribute_value_equal): New static helper function.
9084 (comp_type_attributes): New function.
9085 (merge_attributes): Use attribute_value_equal for comparison.
9086 (attribute_list_contained): Likewise.
9087 * tree.h (comp_type_attributes): New prototype.
9089 2011-03-25 Richard Guenther <rguenther@suse.de>
9091 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9092 of complex types at -O0.
9093 (verify_gimple_assign_binary): Likewise.
9094 (verify_gimple_assign_ternary): Likewise.
9096 2011-03-24 Mark Wielaard <mjw@redhat.com>
9098 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9099 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9101 2011-03-24 Mark Wielaard <mjw@redhat.com>
9104 * dwarf2out.c (output_abbrev_section): Only write table when
9105 abbrev_die_table_in_use > 1.
9107 2011-02-24 Richard Henderson <rth@redhat.com>
9109 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9110 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9111 (alpha_expand_unaligned_load_words): Use extql.
9112 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9113 (emit_insxl): Handle all modes for consistency.
9115 2011-02-24 Richard Henderson <rth@redhat.com>
9117 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9118 (alpha_expand_unaligned_load): Likewise.
9119 (alpha_expand_unaligned_store): Likewise.
9120 (alpha_expand_unaligned_load_words): Likewise.
9121 (alpha_expand_unaligned_store_words): Likewise.
9122 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9123 (alpha_split_lock_test_and_set_12): Likewise.
9124 (print_operand, alpha_fold_builtin_extxx): Likewise.
9125 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9126 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9127 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9128 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9129 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9130 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9131 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9132 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9133 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9134 (extwl, extll, extql): Similarly.
9135 (inswh, inslh, insqh): Similarly.
9136 (mskbl, mskwl, mskll, mskql): Similarly.
9137 (mskwh, msklh, mskqh): Similarly.
9139 2011-02-24 Richard Henderson <rth@redhat.com>
9141 * config/alpha/alpha.md (attribute isa): Add er, ner.
9142 (attribute enabled): Handle them.
9143 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9145 2011-02-24 Richard Henderson <rth@redhat.com>
9147 * config/alpha/alpha.md (attribute isa): Add vms.
9148 (attribute enabled): Handle it.
9149 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9150 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9151 (*movtf): Rename from *movtf_internal for consistency.
9152 (*movsi): Merge with *movsi_nt_vms.
9153 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9154 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9155 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9156 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9158 2011-02-24 Richard Henderson <rth@redhat.com>
9160 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9161 (extendqisi2, extendhisi2): Likewise.
9162 (extendqidi2): Simplify BWX/non-BWX expansions.
9163 (extendhidi2): Similarly.
9165 2011-02-24 Richard Henderson <rth@redhat.com>
9167 * config/alpha/alpha.md (attribute isa): New.
9168 (attribute enabled): New.
9169 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9170 (zero_extendqisi2, zero_extendqidi2): Similarly.
9171 (zero_extendhisi2, zero_extendhidi2): Similarly.
9172 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9174 2011-02-24 Richard Henderson <rth@redhat.com>
9176 * config/alpha/predicates.md (input_operand): Revert last change;
9177 update comment to mention 32-bit VMS rather than Windows.
9179 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9181 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9182 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9183 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9184 * passes.c (init_optimization_passes): Move
9185 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9187 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9189 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9191 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9193 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9196 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9199 * simplify-rtx.c (simplify_const_unary_operation): Call
9200 real_convert when changing mode class with FLOAT_EXTEND.
9202 2011-03-24 Nick Clifton <nickc@redhat.com>
9204 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9205 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9206 * config/rx/rx.c (rx_option_override): Set align_jumps,
9207 align_loops and align_labels if not set by the user.
9208 (rx_align_for_label): New function.
9209 (rx_max_skip_for_label): New function.
9210 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9211 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9212 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9213 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9214 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9216 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9218 PR rtl-optimization/48263
9219 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9220 and original commutative_p handling. Use maybe_gen_insn.
9222 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9224 * reload.c (find_reloads_subreg_address): Add address_reloaded
9225 parameter and return true there if the full address has been
9227 (find_reloads_toplev): Pass address_reloaded flag.
9228 (find_reloads_address_1): Don't use address_reloaded parameter.
9230 2011-03-24 Jeff Law <law@redhat.com>
9232 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9233 unused variable "ann".
9234 (remove_unused_locals): Likewise.
9236 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9239 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9242 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9244 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9245 for invalid symbolic addresses.
9246 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9249 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9251 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9252 the argument in calls to fold_truth_not_expr.
9254 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9256 * tree.c (record_node_allocation_statistics): New function.
9257 (make_node_stat, copy_node_stat, build_string): Call it.
9258 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9259 (build1_stat, build_omp_clause): Likewise.
9261 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9263 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9266 2011-03-24 Richard Guenther <rguenther@suse.de>
9268 PR tree-optimization/48271
9269 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9270 blocks that still exist.
9272 2011-03-24 Richard Guenther <rguenther@suse.de>
9274 PR tree-optimization/48270
9275 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9276 not free datarefs before ddrs.
9278 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9280 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9281 from the address built for a reference with variable offset.
9283 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9286 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9287 alternatives that can be handled with movq or movabsq insn.
9288 (*movdf_internal): Disable for !TARGET_64BIT.
9289 (*movdf_internal_nointeger): Ditto.
9290 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9292 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9294 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9295 (FUNCTION_ARG_ADVANCE): Likewise.
9296 * tm.texi.in: Change references to them to hook references.
9297 * tm.texi: Regenerate.
9298 * targhooks.c (default_function_arg): Eliminate check for target macro.
9299 (default_function_incoming_arg): Likewise.
9300 (default_function_arg_advance): Likewise.
9301 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9302 (function_arg_advance): Likewise.
9303 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9305 2011-03-24 Richard Guenther <rguenther@suse.de>
9308 * tree-object-size.c (addr_object_size): Do not double-account
9309 for MEM_REF offsets.
9311 2011-03-24 Diego Novillo <dnovillo@google.com>
9313 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9314 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9315 (lto_input_data_block): Move from lto-opts.c. Make extern.
9317 (lto_input_string): Rename from input_string. Make extern.
9319 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9320 output_string_with_length.
9321 Output 0 to indicate a non-NULL string. Update all callers to
9323 (lto_output_string): Rename from output_string. Make extern.
9325 (lto_output_decl_state_streams): Make extern.
9326 (lto_output_decl_state_refs): Make extern.
9327 * lto-streamer.h (lto_input_string): Declare.
9328 (lto_input_data_block): Declare.
9329 (lto_output_string): Declare.
9330 (lto_output_string_with_length): Declare.
9331 (lto_output_decl_state_streams): Declare.
9332 (lto_output_decl_state_refs): Declare.
9334 2011-03-24 Richard Guenther <rguenther@suse.de>
9336 PR tree-optimization/46562
9337 * tree.c (build_invariant_address): New function.
9338 * tree.h (build_invariant_address): Declare.
9339 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9340 a renamed function moved ...
9341 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9342 Take valueization callback parameter.
9343 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9344 * gimple-fold.h: New file.
9345 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9346 (ccp_fold, fold_const_aggregate_ref,
9347 fold_ctor_reference, fold_nonarray_ctor_reference,
9348 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9349 get_base_constructor): Move ...
9350 * gimple-fold.c: ... here.
9351 (gimple_fold_stmt_to_constant_1): New function
9352 split out from ccp_fold. Take a valueization callback parameter.
9353 Valueize all operands.
9354 (gimple_fold_stmt_to_constant): New wrapper function.
9355 (fold_const_aggregate_ref_1): New function split out from
9356 fold_const_aggregate_ref. Take a valueization callback parameter.
9357 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9358 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9359 invariant POINTER_PLUS_EXPRs to invariant form.
9360 (vn_valueize): New function.
9361 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9362 * tree-vrp.c (vrp_valueize): New function.
9363 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9364 to fold statements to constants.
9365 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9366 function declarations.
9367 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9368 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9370 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9372 * config/h8300/predicates.md (jump_address_operand): Fix register
9375 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9377 * doc/invoke.texi (max-stores-to-sink): Document.
9378 * params.h (MAX_STORES_TO_SINK): Define.
9379 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9380 if either vectorization or if-conversion is disabled.
9381 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9382 tree-vect-data-refs.c vect_equal_offsets.
9383 (dr_equal_offsets_p): New function.
9384 (find_data_references_in_bb): Remove static.
9385 * tree-data-ref.h (find_data_references_in_bb): Declare.
9386 (dr_equal_offsets_p): Likewise.
9387 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9388 (vect_drs_dependent_in_basic_block): Update calls to
9390 (vect_check_interleaving): Likewise.
9391 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9392 (cond_if_else_store_replacement): Rename to...
9393 (cond_if_else_store_replacement_1): ... this. Change arguments and
9395 (cond_if_else_store_replacement): New function.
9396 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9397 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9399 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9402 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9403 to subtract lower bound instead of GEN_INT().
9405 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9410 * doc/extend.texi (Alignment): Move section to match order in TOC.
9411 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9412 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9414 2011-03-23 Jeff Law <law@redhat.com>
9416 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9417 before removing the edge.
9419 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9420 it may have been freed by redirect_branch_edge or
9421 redirect_edge_succ_nodup.
9423 2011-03-23 Richard Guenther <rguenther@suse.de>
9425 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9426 (check_va_list_escapes): Likewise.
9427 (check_all_va_list_escapes): Likewise.
9429 2011-03-23 Richard Guenther <rguenther@suse.de>
9431 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9432 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9433 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9434 (alias.o): Likewise.
9435 (ipa-type-escape.o): Remove.
9436 (ipa-struct-reorg.o): Likewise.
9437 (GTFILES): Remove ipa-struct-reorg.c.
9438 * alias.c: Do not include ipa-type-escape.h.
9439 * tree-ssa-alias.c: Likewise.
9440 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9441 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9442 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9443 and ipa-type-escape passes.
9444 * tree-pass.h (pass_ipa_type_escape): Remove.
9445 (pass_ipa_struct_reorg): Likewise.
9446 * ipa-struct-reorg.h: Remove.
9447 * ipa-struct-reorg.c: Likewise.
9448 * ipa-type-escape.h: Likewise.
9449 * ipa-type-escape.c: Likewise.
9450 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9451 (--param struct-reorg-cold-struct-ratio): Likewise.
9452 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9453 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9454 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9456 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9458 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9459 cpu attribute value.
9460 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9461 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9462 * config/s390/s390.c (processor_flags_table): New constant array.
9463 (s390_handle_arch_option): Remove.
9464 (s390_handle_option): Remove s390_handle_arch_option invocations
9465 and OPT_mwarn_framesize_ handling.
9466 (s390_option_override): Remove s390_handle_arch_option invocation.
9467 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9469 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9470 * config/s390/s390.opt (s390_tune, s390_arch)
9471 (march=): Replace s390_arch_option enum and values with
9472 processor_type. Set variable name to s390_arch. Set
9473 initialization value.
9474 (mtune=): Replace s390_arch_option with processor_type. Set
9475 variable name to s390_tune. Set initialization value.
9477 2011-03-23 Julian Brown <julian@codesourcery.com>
9479 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9480 accesses which are not naturally aligned.
9482 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9485 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9487 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9489 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9490 parameter from "int" to "enum insn_code".
9491 (expand_operand_type): New enum.
9492 (expand_operand): New structure.
9493 (create_expand_operand): New function.
9494 (create_fixed_operand, create_output_operand): Likewise
9495 (create_input_operand, create_convert_operand_to): Likewise.
9496 (create_convert_operand_from, create_address_operand): Likewise.
9497 (create_integer_operand): Likewise.
9498 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9499 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9500 (expand_insn, expand_jump_insn): Likewise.
9501 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9502 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9503 (expand_movstr, expand_builtin___clear_cache): Likewise.
9504 (expand_builtin_lock_release): Likewise.
9505 * explow.c (allocate_dynamic_stack_space): Likewise.
9506 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9507 and use the default handling in that case.
9508 * expmed.c (check_predicate_volatile_ok): Delete.
9509 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9510 (emit_cstore): Likewise.
9511 * expr.c (emit_block_move_via_movmem): Likewise.
9512 (set_storage_via_setmem, expand_assignment): Likewise.
9513 (emit_storent_insn, try_casesi): Likewise.
9514 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9515 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9516 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9517 (expand_twoval_unop, expand_twoval_binop): Likewise.
9518 (expand_unop_direct, emit_indirect_jump): Likewise.
9519 (emit_conditional_move, vector_compare_rtx): Likewise.
9520 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9521 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9522 (expand_sync_lock_test_and_set): Likewise.
9523 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9524 (emit_unop_insn): Likewise.
9525 (expand_copysign_absneg): Change icode to an insn_code.
9526 (create_convert_operand_from_type): New function.
9527 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9528 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9529 (expand_insn, expand_jump_insn): Likewise.
9530 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9531 than const_int_operand for operand 2.
9533 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9535 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9538 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9540 * emit-rtl.c (emit_pattern_before_noloc): New function.
9541 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9542 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9543 (emit_pattern_after_noloc): New function.
9544 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9545 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9547 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9549 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9550 (__ffsDI2): Likewise.
9552 2011-03-22 Richard Henderson <rth@redhat.com>
9554 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9555 of !TARGET_ABI_OPEN_VMS.
9556 (alpha_trampoline_init, alpha_start_function): Likewise.
9557 (alpha_expand_epilogue, alpha_file_start): Likewise.
9558 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9559 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9560 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9561 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9562 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9564 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9566 * config/s390/s390-opts.h: New.
9567 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9568 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9569 s390_stack_guard): Remove.
9570 (s390_handle_arch_option): Return void. Take enum
9571 s390_arch_option value instead of string and searching array.
9572 (s390_handle_option): Don't assert that global structures are in
9573 use. Access variables via opts pointer. Use error_at. Don't use
9574 sscanf for -mstack-guard= or -mstack-size=. Update call to
9575 s390_handle_arch_option.
9576 (s390_option_override): Update call to s390_handle_arch_option.
9577 (s390_emit_prologue): Use %d format for s390_stack_size in
9578 diagnostic. Use %wd for HOST_WIDE_INT.
9579 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9580 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9581 * config/s390/s390.opt (config/s390/s390-opts.h): New
9582 HeaderInclude entry.
9583 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9584 s390_arch_flags, s390_warn_framesize): New Variable entries.
9585 (s390_arch_option): New Enum and EnumValue entries.
9586 (march=): Use Enum instead of Var.
9587 (mstack-guard=, mstack-size=): Use UInteger and Var.
9590 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9592 * config/score/score.c (score_handle_option): Don't assert that
9593 global structures are in use. Access target_flags via opts
9594 pointer. Use value of -march= option to determine target_flags
9596 * config/score/score.opt (march=): Use Enum.
9597 (score_arch): New Enum and EnumValue entries.
9599 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9601 * config/mep/mep.c (option_mtiny_specified): Remove.
9602 (mep_option_override): Move register handling for -mivc2 from
9603 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9604 instead of option_mtiny_specified.
9605 (mep_handle_option): Access target_flags via opts pointer. Don't
9606 assert that global structures are in use. Defer part of -mivc2
9607 handling and move it to mep_option_override.
9608 * config/mep/mep.opt (IVC2): New Mask entry.
9609 (mivc2): Use Var and Defer instead of Mask.
9611 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9613 * config/v850/v850-opts.h: New.
9614 * config/v850/v850.c (small_memory): Replace with
9615 small_memory_physical_max array. Make that array static const.
9616 (v850_handle_memory_option): Take integer value of argument. Take
9617 gcc_options pointer, option text and location. Return void.
9618 Update for changes to small memory structures.
9619 (v850_handle_option): Access target_flags via opts pointer. Don't
9620 assert that global structures are in use. Update calls to
9621 v850_handle_memory_option.
9622 (v850_encode_data_area): Update references to small memory settings.
9623 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9624 (enum small_memory_type): Move to v850-opts.h.
9625 * config/v850/v850.opt (config/v850/v850-opts.h): New
9626 HeaderInclude entry.
9627 (small_memory_max): New Variable entry.
9628 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9629 (mtda, mzda): Likewise.
9631 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9633 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9634 pointer. Don't assert that global structures are in use.
9636 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9638 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9639 via opts pointer. Don't assert that global structures are in use.
9641 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9643 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9644 (munix=93): Use Var.
9645 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9646 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9647 * config/pa/pa-opts.h: New.
9648 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9649 (pa_handle_option): Don't assert that global structures are in
9650 use. Access target_flags via opts pointer. Don't handle
9651 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9653 (pa_option_override): Handle deferred OPT_mfixed_range_.
9655 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9657 * config/mn10300/mn10300-opts.h: New.
9658 * config/mn10300/mn10300.c (mn10300_processor,
9659 mn10300_tune_string): Remove.
9660 (mn10300_handle_option): Don't assert that global structures are
9661 in use. Access mn10300_processor via opts pointer. Don't handle
9663 * config/mn10300/mn10300.h (enum processor_type): Move to
9665 (mn10300_processor): Remove.
9666 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9667 HeaderInclude entry.
9668 (mn10300_processor): New Variable entry.
9671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9673 * config/microblaze/microblaze.c: Don't include opts.h.
9674 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9675 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9676 (mno-clearbss): Use Var and Warn.
9678 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9680 * config/m32r/m32r-opts.h: New.
9681 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9682 (m32r_handle_option): Don't assert that global structures are in
9683 use. Access target_flags and m32r_cache_flush_func via opts
9684 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9685 OPT_mno_flush_trap here.
9686 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9687 include of m32r-opts.h.
9688 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9689 HeaderInclude entry.
9690 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9691 (mmodel=): Use Enum and Var.
9692 (m32r_model): New Enum and EnumValue entries.
9693 (mno-flush-trap): Use Var.
9694 (msdata=): Use Enum and Var.
9695 (m32r_sdata): New Enum and EnumValue entries.
9697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9699 * config/m32c/m32c.c: Don't include opts.h.
9700 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9701 m32c_handle_option): Remove.
9702 (m32c_option_override): Check global_options_set.x_target_memregs
9703 instead of target_memregs_set.
9704 * config/m32c/m32c.h (target_memregs): Remove.
9705 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9708 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9710 * config/iq2000/iq2000-opts.h: New.
9711 * config/iq2000/iq2000.c: Don't include opts.h.
9712 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9713 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9714 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9715 HeaderInclude entry.
9716 (iq2000_tune): New Variable entry.
9717 (march=): Add comment. Use Enum.
9718 (iq2000_arch): New Enum and EnumValue entries.
9719 (mcpu=): Use Enum and Var.
9720 (iq2000_tune): New Enum and EnumValue entries.
9722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9724 * config/ia64/ia64-opts.h: New.
9725 * config/ia64/ia64.c (ia64_tune): Remove.
9726 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9728 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9729 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9730 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9731 HeaderInclude entry.
9732 (ia64_tune): New Variable entry.
9733 (mfixed-range=): Use Defer and Var.
9734 (mtune=): Use Enum and Var.
9735 (ia64_tune): New Enum and EnumValue entries.
9737 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9739 * config/frv/frv-opts.h: New.
9740 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9742 (frv_cpu_type): Remove.
9743 * config/frv/frv.c: Don't include opts.h.
9744 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9745 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9746 (frv_cpu_type): New Variable entry.
9747 (frv_cpu): New Enum and EnumValue entries.
9749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9751 * config/cris/cris.c (cris_handle_option): Access target_flags via
9752 opts pointer. Don't assert that global structures are in use.
9753 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9754 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9756 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9758 * config/bfin/bfin-opts.h: New.
9759 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9760 bfin_si_revision, bfin_workarounds): Remove.
9761 (bfin_cpus): Make static const.
9762 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9763 not bfin_lib_id_given.
9764 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9765 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9766 pointer. Use error_at. Don't assert that global structures are in use.
9767 * config/bfin/bfin.h: Include bfin-opts.h.
9768 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9769 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9770 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9771 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9774 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9776 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9777 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9778 or -msoft-float here.
9779 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9780 -msoft-float and -mhard-float.
9781 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9782 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9784 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9786 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9787 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9789 (LIBGCC_SPEC): Don't handle -msoft-float.
9790 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9792 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9794 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9795 -mfloat-abi=*, not -msoft-float and -mhard-float.
9796 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9798 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9799 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9800 mhard-float and msoft-float.
9801 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9802 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9803 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9804 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9806 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9807 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9809 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9811 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9814 2011-03-22 Richard Henderson <rth@redhat.com>
9816 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9817 TARGET_ABI_WINDOWS_NT.
9818 (alpha_output_function_end_prologue): Likewise.
9819 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9820 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9821 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9822 (trap, *movsi_nt_vms): Likewise.
9823 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9824 (*tablejump_osf_nt_internal): Remove.
9825 * config/alpha/predicates.md (input_operand): Only test Pmode.
9827 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9829 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9830 via opts pointer. Use error_at. Don't assert that global
9831 structures are in use.
9833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9835 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9836 (ix86_handle_option): Access ix86_isa_flags and
9837 ix86_isa_flags_explicit via opts pointer. Don't assert that
9838 global structures are in use.
9839 (ix86_function_specific_save, ix86_function_specific_restore):
9840 Update ix86_isa_flags_explicit field name.
9841 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9842 (ix86_isa_flags_explicit): Rename TargetSave entry to
9843 x_ix86_isa_flags_explicit.
9845 2011-03-22 Richard Henderson <rth@redhat.com>
9847 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9848 (alpha_option_override, direct_return): Likewise.
9849 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9850 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9851 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9852 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9853 (alpha_expand_epilogue, alpha_end_function): Likewise.
9854 (alpha_init_libfuncs): Likewise.
9855 (struct machine_function): Remove unicosmk members.
9856 (print_operand) ['t']: Remove.
9857 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9858 unicosmk_output_module_name, unicosmk_output_common,
9859 current_section_align, unicosmk_output_text_section_asm_op,
9860 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9861 unicosmk_section_type_flags, unicosmk_unique_section,
9862 unicosmk_asm_named_section, unicosmk_insert_attributes,
9863 unicosmk_output_align, unicosmk_defer_case_vector,
9864 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9865 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9866 unicosmk_output_ssib, unicosmk_add_call_info_word,
9867 unicosmk_extern_head, unicosmk_output_default_externs,
9868 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9869 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9870 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9871 * config/alpha/alpha-protos.h: Update.
9872 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9873 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9874 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9875 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9876 (*mulsi_se, mulvsi3): Likewise.
9877 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9878 (*divmodsi_internal, call, call_value, realign): Likewise.
9879 (moddi3, umoddi3): Likewise; remove duplicate expander.
9880 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9881 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9882 (*movdi_nofix): Remove r/U alternative.
9883 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9884 * config/alpha/constraints.md ("U"): Remove.
9885 * config/alpha/predicates.md (call_operand"): Don't test
9886 TARGET_ABI_UNICOSMK.
9888 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9890 * target.def (handle_option): Take gcc_options and
9891 cl_decoded_option pointers and location_t.
9892 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9893 * doc/tm.texi: Regenerate.
9894 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9895 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9896 * lto-opts.c (lto_reissue_options): Generate option structure for
9897 targetm.handle_option call.
9898 * opts.c (target_handle_option): Update call to
9899 targetm.handle_option. Remove assertions about values now passed
9901 * targhooks.c (default_target_handle_option): New.
9902 * targhooks.h (default_target_handle_option): Declare.
9903 * config/alpha/alpha.c: Include opts.h.
9904 (alpha_handle_option): Update to new hook interface.
9905 * config/arm/arm.c: Include opts.h.
9906 (arm_handle_option): Update to new hook interface.
9907 * config/arm/t-arm (arm.o): Update dependencies.
9908 * config/bfin/bfin.c: Include opts.h.
9909 (bfin_handle_option): Update to new hook interface.
9910 * config/cris/cris.c: Include opts.h.
9911 (cris_handle_option): Update to new hook interface.
9912 * config/frv/frv.c: Include opts.h.
9913 (frv_handle_option): Update to new hook interface.
9914 * config/i386/i386.c: Include opts.h.
9915 (ix86_handle_option): Update to new hook interface.
9916 (ix86_valid_target_attribute_inner_p): Generate option structure
9917 for call to ix86_handle_option.
9918 * config/i386/t-i386 (i386.o): Update dependencies.
9919 * config/ia64/ia64.c: Include opts.h.
9920 (ia64_handle_option): Update to new hook interface.
9921 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9922 * config/iq2000/iq2000.c: Include opts.h.
9923 (iq2000_handle_option): Update to new hook interface.
9924 * config/m32c/m32c.c: Include opts.h.
9925 (m32c_handle_option): Update to new hook interface.
9926 * config/m32r/m32r.c: Include opts.h.
9927 (m32r_handle_option): Update to new hook interface.
9928 * config/m68k/m68k.c: Include opts.h.
9929 (m68k_handle_option): Update to new hook interface.
9930 * config/mep/mep.c: Include opts.h.
9931 (mep_handle_option): Update to new hook interface.
9932 * config/microblaze/microblaze.c: Include opts.h.
9933 (microblaze_handle_option): Update to new hook interface.
9934 * config/mips/mips.c: Include opts.h.
9935 (mips_handle_option): Update to new hook interface.
9936 * config/mn10300/mn10300.c: Include opts.h.
9937 (mn10300_handle_option): Update to new hook interface.
9938 * config/pa/pa.c: Include opts.h.
9939 (pa_handle_option): Update to new hook interface.
9940 * config/pdp11/pdp11.c: Include opts.h.
9941 (pdp11_handle_option): Update to new hook interface.
9942 * config/rs6000/rs6000.c: Include opts.h.
9943 (rs6000_handle_option): Update to new hook interface.
9944 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9945 * config/rx/rx.c: Include opts.h.
9946 (rx_handle_option): Update to new hook interface.
9947 * config/s390/s390.c: Include opts.h.
9948 (s390_handle_option): Update to new hook interface.
9949 * config/score/score.c: Include opts.h.
9950 (score_handle_option): Update to new hook interface.
9951 * config/sh/sh.c: Include opts.h.
9952 (sh_handle_option): Update to new hook interface.
9953 * config/sparc/sparc.c: Include opts.h.
9954 (sparc_handle_option): Update to new hook interface.
9955 * config/v850/v850.c: Include opts.h.
9956 (v850_handle_option): Update to new hook interface.
9958 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9960 * gcc.c (driver_unknown_option_callback): Only permit and save
9961 unknown -Wno- options.
9962 (driver_wrong_lang_callback): Save options directly instead of via
9963 driver_unknown_option_callback.
9965 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9967 * combine.c (simplify_set): Try harder to find the best CC mode when
9968 simplifying a nested COMPARE on the RHS.
9970 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9972 * config/alpha/gnu.h: Remove.
9973 * config/arc: Remove directory.
9974 * config/arm/netbsd.h: Remove.
9975 * config/arm/t-pe: Remove.
9976 * config/crx: Remove directory.
9977 * config/i386/netbsd.h: Remove.
9978 * config/m68hc11: Remove directory.
9979 * config/m68k/uclinux-oldabi.h: Remove.
9980 * config/mcore/mcore-pe.h: Remove.
9981 * config/mcore/t-mcore-pe: Remove.
9982 * config/netbsd-aout.h: Remove.
9983 * config/rs6000/gnu.h: Remove.
9984 * config/sh/sh-symbian.h: Remove.
9985 * config/sh/symbian-base.c: Remove.
9986 * config/sh/symbian-c.c: Remove.
9987 * config/sh/symbian-cxx.c: Remove.
9988 * config/sh/symbian-post.h: Remove.
9989 * config/sh/symbian-pre.h: Remove.
9990 * config/sh/t-symbian: Remove.
9991 * config/svr3.h: Remove.
9992 * config/vax/netbsd.h: Remove.
9993 * config.build: Don't handle i[34567]86-*-pe.
9994 * config.gcc: Remove handling of deprecations for most deprecated
9996 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9997 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9998 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9999 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10000 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10001 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10003 * config.host: Don't handle i[34567]86-*-pe.
10004 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10005 (ASM_SPEC32): Don't handle -mcall-gnu.
10006 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10008 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10009 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10010 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10011 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10012 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10013 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10014 conditional on SYMBIAN.
10015 * configure.ac: Don't handle powerpc*-*-gnu*.
10016 * configure: Regenerate.
10017 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10018 * doc/install-old.texi (m6811, m6812): Don't mention.
10019 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10020 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10021 (m68k-uclinuxoldabi): Don't mention.
10022 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10024 (-mcall-gnu): Remove.
10025 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10026 families): Remove constraint documentation.
10028 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10030 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10031 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10032 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10034 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10037 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10038 vector when peeking at the next token for vector, don't expand the
10041 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10043 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10044 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10045 * config/avr/avr.c (init_cumulative_args)
10046 (avr_function_arg_advance): Use it.
10047 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10049 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10050 (avr_function_ok_for_sibcall): ...this new function.
10051 (avr_lookup_function_attribute1): New static Function.
10052 (avr_naked_function_p, interrupt_function_p)
10053 (signal_function_p, avr_OS_task_function_p)
10054 (avr_OS_main_function_p): Use it.
10055 * config/avr/avr.md ("sibcall", "sibcall_value")
10056 ("sibcall_epilogue"): New expander.
10057 ("*call_insn", "*call_value_insn"): New insn.
10058 ("call_insn", "call_value_insn"): Remove
10059 ("call", "call_value", "epilogue"): Change expander to handle
10062 2011-03-21 Nick Clifton <nickc@redhat.com>
10064 * doc/invoke.texi (Overall Options): Move closing brace to end of
10066 (Optimization Options): Add missing @gol.
10067 (Directory Options): Likewise.
10068 (i386 and x86-64 Options): Likewise.
10069 (RS6000 and PowerPC Options): Likewise.
10070 (i386 and x86-64 Windows Options): Likewise.
10071 (V850 Options): Add text missing from descriptions.
10073 2011-03-22 Richard Henderson <rth@redhat.com>
10075 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10076 (avr_incoming_return_addr_rtx): New.
10077 (emit_push_byte): New.
10078 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10079 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10080 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10081 (emit_pop_byte): New.
10082 (expand_epilogue): Use it. Pop frame pointer by bytes.
10083 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10084 (INCOMING_RETURN_ADDR_RTX): New.
10085 (INCOMING_FRAME_SP_OFFSET): New.
10086 (ARG_POINTER_CFA_OFFSET): New.
10087 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10088 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10091 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10093 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10095 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10096 (FUNCTION_ARG_ADVANCE): Likewise.
10097 * tm.texi.in: Change references to them to hook references.
10098 * tm.texi: Regenerate.
10099 * targhooks.c (default_function_arg): Eliminate check for target
10101 (default_function_incoming_arg): Likewise.
10102 (default_function_arg_advance): Likewise.
10103 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10104 (function_arg_advance): Likewise.
10105 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10107 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10109 * tree.c (build_call_1): New function.
10110 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10112 2011-03-22 Richard Guenther <rguenther@suse.de>
10114 PR tree-optimization/48228
10115 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10116 for single-arg PHIs.
10118 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10120 PR rtl-optimization/48143
10121 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10122 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10123 sse2_cvtps2pd): Likewise.
10125 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10127 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10129 2011-03-22 Richard Guenther <rguenther@suse.de>
10131 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10132 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10133 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10134 and REALIGN_LOAD_EXPR.
10135 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10136 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10137 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10138 DOT_PROD_EXPR case ...
10139 (expand_expr_real_2): ... here.
10140 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10141 and REALIGN_LOAD_EXPR.
10142 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10143 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10144 (vect_create_epilog_for_reduction): Likewise.
10145 (vectorizable_reduction): Likewise.
10146 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10147 * tree-vect-stmts.c (vectorizable_load): Likewise.
10149 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10151 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10153 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10155 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10156 handling for PLTOFF/GOTOFF.
10158 2011-03-22 Nick Clifton <nickc@redhat.com>
10160 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10161 trailing backslash from the end of the macro definition.
10163 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10165 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10168 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10170 * expr.h (prepare_operand): Move to...
10171 * optabs.h (prepare_operand): ...here and change the insn code
10172 parameter from "int" to "enum insn_code".
10173 (insn_operand_matches): Declare.
10174 * expr.c (init_expr_target): Use insn_operand_matches.
10175 (compress_float_constant): Likewise.
10176 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10177 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10178 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10179 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10181 (gen_cond_trap): Likewise.
10182 (prepare_operand): Likewise. Change icode to an insn_code.
10183 (insn_operand_matches): New function.
10184 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10185 * reload1.c (gen_reload): Likewise.
10186 * targhooks.c (default_secondary_reload): Likewise.
10188 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10190 * config/alpha/alpha.md (unspec): New define_c_enum.
10193 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10196 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10197 between a call and its CALL_ARG_LOCATION note.
10199 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10201 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10203 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10207 * c-common.c (shorten_compare): If primopN is first sign-extended
10208 to opN and then zero-extended to result type, set primopN to opN.
10210 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10212 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10213 for barrier handlers.
10215 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10217 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10218 UNSPEC constants to be in the unspec enumeration, and redefine
10219 all UNSPECV constants to be in the unspecv enumeration, so that
10220 dumps print which unspec/unspec_volatile this is.
10221 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10222 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10223 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10224 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10225 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10227 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10228 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10229 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10230 * config/rs6000/sync.md (isync, lwsync): Ditto.
10232 2011-03-21 Richard Guenther <rguenther@suse.de>
10234 * params.def (lto-min-partition): Fix typo.
10236 2011-03-21 Richard Guenther <rguenther@suse.de>
10239 * c-decl.c (grokdeclarator): Drop to the main variant only
10240 for array types. Drop flag_gen_aux_info check.
10242 2011-03-21 Richard Guenther <rguenther@suse.de>
10244 PR translation/47911
10245 * params.def (lto-partitions): Fix typo.
10246 (lto-min-partition): Fix wording.
10248 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10250 * config/rs6000/t-freebsd: Remove duplication from file.
10252 2011-03-21 Richard Guenther <rguenther@suse.de>
10254 PR middle-end/47661
10255 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10257 2011-03-21 Richard Guenther <rguenther@suse.de>
10260 * params.def (lto-partitions): Require at least 1 partition.
10262 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10264 * gthr-solaris.h: Remove.
10265 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10266 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10267 (LIB_SPEC): Likewise.
10268 * config/sol2.opt (threads): Remove.
10269 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10270 (sparc*-*-solaris2*): Likewise.
10271 * configure.ac (enable_threads): Enable solaris support.
10272 * configure: Regenerate.
10273 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10274 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10277 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10279 * config.gcc: Obsolete *-*-solaris2.8*.
10280 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10282 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10285 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10286 reference. Solaris 8 perl works.
10288 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10291 * doc/install.texi (Prerequisites): Move jar etc. up.
10292 Explain support library version requirements.
10294 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10297 * doc/install.texi (Prerequisites): Move Perl to build
10298 requirements. Always necessary on Solaris 2 with Sun ld.
10300 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10302 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10304 (Specific, i?86-*-solaris2.[89]): Likewise.
10305 (Specific, i?86-*-solaris2.10): Likewise.
10306 (Specific, mips-sgi-irix6): Likewise.
10307 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10308 Update for binutils 2.21.
10310 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10312 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10313 Allow -fuse-linker-plugin for non-default plugin linker.
10314 * configure: Regenerate.
10316 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10319 * gengtype.c (files_rules): Added rule for cp/parser.h.
10321 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10324 * config/s390/s390.c (s390_delegitimize_address): Don't call
10325 lowpart_subreg if orig_x has BLKmode.
10327 2011-03-21 Kai Tietz <ktietz@redhat.com>
10330 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10331 * tree.h (attribute_spec): Add new member affects_type_identity.
10332 * attribs.c (empty_attribute_table): Adjust attribute_spec
10334 * config/alpha/alpha.c: Likewise.
10335 * config/arc/arc.c: Likewise.
10336 * config/arm/arm.c: Likewise.
10337 * config/avr/avr.c: Likewise.
10338 * config/bfin/bfin.c: Likewise.
10339 * config/crx/crx.c: Likewise.
10340 * config/darwin.h: Likewise.
10341 * config/h8300/h8300.c: Likewise.
10342 * config/i386/cygming.h: Likewise.
10343 * config/i386/i386.c: Likewise.
10344 * config/ia64/ia64.c: Likewise.
10345 * config/m32c/m32c.c: Likewise.
10346 * config/m32r/m32r.c: Likewise.
10347 * config/m68hc11/m68hc11.c: Likewise.
10348 * config/m68k/m68k.c: Likewise.
10349 * config/mcore/mcore.c: Likewise.
10350 * config/mep/mep.c: Likewise.
10351 * config/microblaze/microblaze.c: Likewise.
10352 * config/mips/mips.c: Likewise.
10353 * config/rs6000/rs6000.c: Likewise.
10354 * config/rx/rx.c: Likewise.
10355 * config/sh/sh.c: Likewise.
10356 * config/sol2.h: Likewise.
10357 * config/sparc/sparc.c: Likewise.
10358 * config/spu/spu.c: Likewise.
10359 * config/stormy16/stormy16.c: Likewise.
10360 * config/v850/v850.c: Likewise.
10362 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10364 * simplify-rtx.c (simplify_binary_operation_1): Handle
10365 (xor (and A B) C) case when B and C are both constants.
10367 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10369 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10371 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10374 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10376 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10378 PR rtl-optimization/48156
10379 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10380 assume df and df_lr are not NULL.
10382 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10385 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10386 between a call and its CALL_ARG_LOCATION note.
10388 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10391 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10392 between a call and its corresponding CALL_ARG_LOCATION note.
10394 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10396 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10397 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10398 * haifa-sched.c (setup_ref_regs): Ditto.
10399 * caller-save.c (add_used_regs_1): Ditto.
10400 * dse.c (look_for_hardregs): Ditto.
10401 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10402 * sched-rgn.c (check_live_1): Ditto.
10404 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10406 * c-decl.c (diagnose_mismatched_decls): Give an error for
10407 redefining a typedef with variably modified type.
10409 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10411 * c-decl.c (grokfield): Don't allow typedefs for structures or
10412 unions with no tag by default.
10413 * doc/extend.texi (Unnamed Fields): Update.
10415 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10417 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10418 Rewrite using indirect functions.
10419 (lwp_slwpcb): Ditto.
10420 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10421 (avx_vinsertf128<mode>): Ditto.
10423 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10425 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10428 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10430 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10431 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10433 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10435 PR rtl-optimization/48170
10436 * gcse.c (hoist_code): Remove bogus asserts.
10438 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10440 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10441 computation for prologue/epilogue.
10443 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10445 * Makefile.in (check-consistency): Remove.
10447 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10450 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10451 arange_table_in_use is 0, but either text_section_used or
10452 cold_text_section_used is true. Don't call it if
10453 !info_section_emitted.
10455 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10457 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10458 FUNCTION_VALUE_REGNO_P): Remove.
10459 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10461 * config/avr/avr.c (avr_ret_register): Make static inline.
10462 (avr_function_value_regno_p): New function.
10463 (avr_libcall_value): Make static. Add 'func' argument.
10464 (avr_function_value): Make static. Rename 'func' argument to
10465 'fn_decl_or_type', forward it to avr_libcall_value. Call
10466 avr_ret_register function instead of RET_REGISTER macro.
10467 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10469 2011-03-18 Jason Merrill <jason@redhat.com>
10472 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10474 2011-03-18 Richard Guenther <rguenther@suse.de>
10476 * doc/install.texi (--enable-gold): Remove.
10477 (--with-plugin-ld): Document.
10478 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10480 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10482 PR middle-end/47790
10483 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10484 again after expansion changes.
10486 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10488 * combine.c (try_combine): Do simplification only call of
10489 subst() on i2 even when i1 is present. Update comments.
10491 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10493 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10494 and UNSPEC_PCREL_SYMOFF.
10496 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10498 * config/s390/s390.md: Use define_c_enum for the unspec constant
10501 2011-03-18 Richard Henderson <rth@redhat.com>
10502 Jakub Jelinek <jakub@redhat.com>
10505 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10506 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10508 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10510 PR middle-end/47725
10511 * combine.c (cant_combine_insn_p): Don't check zero/sign
10512 extended hard registers.
10514 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10516 PR middle-end/47725
10517 * combine.c (cant_combine_insn_p): Check zero/sign extended
10520 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10522 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10523 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10524 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10525 Change return type to bool.
10526 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10528 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10531 * var-tracking.c (prepare_call_arguments): If CALL target
10532 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10533 pc instead of looking it up using cselib_lookup and use
10534 Pmode for it if x has VOIDmode.
10535 * dwarf2out.c (gen_subprogram_die): If also both first and
10536 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10539 * function.c (assign_parms): For data.passed_pointer parms
10540 use MEM of data.entry_parm instead of data.entry_parm itself
10541 as DECL_INCOMING_RTL.
10542 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10543 also when passed and declared mode is the same, DECL_RTL
10544 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10547 2011-03-16 Jeff Law <law@redhat.com>
10549 PR rtl-optimization/37273
10550 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10551 handle them like argument loads from stack slots. Do not double
10552 count memory for memory constants and argument loads from stack slots.
10554 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10557 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10559 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10562 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10564 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10567 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10569 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10570 Clear call_arg_locations and call_arg_loc_last always.
10572 PR middle-end/48152
10573 * var-tracking.c (prepare_call_arguments): If argument needs to be
10574 passed by reference, adjust argtype and mode.
10576 2011-03-17 Richard Guenther <rguenther@suse.de>
10578 PR middle-end/48134
10579 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10580 a value make sure to fold the statement.
10582 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10585 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10586 return condition with !cfun->calls_alloca.
10588 2011-03-17 Richard Guenther <rguenther@suse.de>
10591 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10592 origin for decls in other ltrans units.
10593 (input_varpool_node): Likewise.
10595 2011-03-17 Richard Guenther <rguenther@suse.de>
10597 PR middle-end/48165
10598 * tree-object-size.c (compute_object_offset): Properly return
10599 the offset operand of MEM_REFs as sizetype.
10601 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10603 PR rtl-optimization/48141
10604 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10605 * dse.c: Include params.h.
10606 (active_local_stores_len): New variable.
10607 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10609 (record_store, check_mem_read_rtx): Decrease it when removing
10611 (scan_insn): Likewise. Increase it when adding to chain, if it
10612 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10613 set active_local_stores to NULL before the addition.
10614 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10616 PR rtl-optimization/48141
10617 * dse.c (record_store): If no positions are needed in an insn
10618 that cannot be deleted, at least unchain it from active_local_stores.
10620 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10623 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10624 (lookup_type_die_strip_naming_typedef): ... here.
10625 (get_context_die): Use it.
10626 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10627 the anonymous struct named by the naming typedef.
10629 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10632 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10633 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10635 2011-03-16 Jeff Law <law@redhat.com>
10637 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10638 check for operands of conditional. Allow type to be a pointer.
10640 2011-03-16 Richard Guenther <rguenther@suse.de>
10642 PR tree-optimization/48149
10643 * fold-const.c (fold_binary_loc): Fold
10644 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10646 2011-03-16 Richard Guenther <rguenther@suse.de>
10648 PR tree-optimization/26134
10649 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10650 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10651 (non_rewritable_mem_ref_base): Handle complex type component
10652 accesses, constrain offsets for vector and complex extracts
10655 2011-03-16 Richard Guenther <rguenther@suse.de>
10657 PR tree-optimization/48146
10658 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10659 operands avoiding the need for renaming.
10661 2011-03-16 Richard Guenther <rguenther@suse.de>
10663 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10664 constant folding. Move MEM_REF canonicalization first.
10665 Rely on fold_const_aggregate_ref for initializer folding.
10666 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10668 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10670 PR middle-end/48136
10671 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10672 arg0/arg1 or their arguments are always fold converted to matching
10675 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10678 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10681 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10682 Handle in-tree gold.
10683 (ld_vers): Extract binutils version for gold.
10684 (gcc_cv_ld_hidden): Handle gold here.
10685 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10686 * configure: Regenerate.
10687 * config.in: Regenerate.
10688 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10689 -fuse-linker-plugin otherwise.
10690 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10691 (LINK_COMMAND_SPEC): Use it.
10692 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10694 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10696 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10697 * calls.c: Remove debug.h include.
10698 (emit_call_1): Don't call virtual_call_token debug hook.
10699 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10700 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10701 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10702 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10703 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10704 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10705 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10706 dwarf2out_virtual_call): Remove.
10707 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10708 copy_call_info and virtual_call hooks.
10709 (dwarf2out_init): Don't initialize vcall_insn_table,
10710 debug_dcall_section and debug_vcall_section.
10711 (prune_unused_types): Don't mark nodes from dcall_table.
10712 (dwarf2out_finish): Don't output dcall or vcall tables.
10713 * final.c (final_scan_insn): Don't call direct_call or
10714 virtual_call debug hooks.
10715 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10716 virtual_call_token, copy_call_info and virtual_call hooks.
10717 (debug_nothing_uid): Remove prototype.
10718 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10719 copy_call_info and virtual_call hooks.
10720 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10721 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10722 * debug.c (do_nothing_debug_hooks): Likewise.
10723 (debug_nothing_uid): Remove.
10724 * doc/invoke.texi (-fenable-icf-debug): Remove.
10725 * common.opt (-fenable-icf-debug): Likewise.
10727 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10728 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10729 call's MEM. Handle functions returning aggregate through a hidden
10730 first pointer. For virtual calls add clobbered pc to call arguments
10732 * dwarf2out.c (gen_subprogram_die): Emit
10733 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10737 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10738 * rtl.h (ENTRY_VALUE_EXP): Define.
10739 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10740 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10741 * print-rtl.c (print_rtx): Likewise.
10742 * gengtype.c (adjust_field_rtx_def): Likewise.
10743 * var-tracking.c (vt_add_function_parameter): Adjust
10744 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10745 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10746 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10747 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10748 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10750 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10751 Call var_location debug hook even on CALL_INSNs.
10752 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10753 * rtl.def (ENTRY_VALUE): New.
10754 * dwarf2out.c: Include cfglayout.h.
10755 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10756 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10757 (struct call_arg_loc_node): New type.
10758 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10759 tail_call_site_count): New variables.
10760 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10761 DW_TAG_GNU_call_site_parameter.
10762 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10763 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10764 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10765 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10766 and DW_AT_GNU_all_source_call_sites.
10767 (mem_loc_descriptor): Handle ENTRY_VALUE.
10768 (add_src_coords_attributes): Don't add enything if
10769 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10770 (dwarf2out_abstract_function): Save and clear call_arg_location,
10771 call_site_count and tail_call_site_count around dwarf2out_decl call.
10772 (gen_call_site_die): New function.
10773 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10774 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10775 (dwarf2out_function_decl): Clear call_arg_locations,
10776 call_arg_loc_last, set call_site_count and tail_call_site_count
10777 to -1 and free block_map.
10778 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10779 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10780 followed by any real instructions.
10781 (dwarf2out_begin_function): Set call_site_count and
10782 tail_call_site_count to 0.
10783 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10784 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10785 attempt to force a DIE for it and worst case remove the attribute.
10786 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10787 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10789 * var-tracking.c: Include tm_p.h.
10790 (vt_stack_adjustments): For calls call note_register_arguments.
10791 (argument_reg_set): New variable.
10792 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10793 ensure the VALUE is resolved.
10794 (call_arguments): New variable.
10795 (prepare_call_arguments): New function.
10796 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10797 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10798 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10799 always use the best expression.
10800 (vt_expand_loc): Add ignore_cur_loc argument.
10801 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10802 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10803 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10804 note for all calls.
10805 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10806 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10807 argument. Don't call cselib_preserve_only_values and
10808 cselib_reset_table.
10809 (note_register_arguments): New function.
10810 (vt_initialize): Compute argument_reg_set. Call
10811 vt_add_function_parameters before processing basic blocks instead of
10812 afterwards. For calls call prepare_call_arguments before calling
10813 cselib_process_insn.
10814 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10815 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10816 (var-tracking.o): Depend on $(TM_P_H).
10817 * cfglayout.h (insn_scope): New prototype.
10818 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10819 * cfglayout.c (insn_scope): No longer static.
10820 * insn-notes.def (CALL_ARG_LOCATION): New.
10821 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10822 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10823 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10824 nothing for DECL_EXTERNAL BLOCK_VARS.
10826 2011-03-16 Alan Modra <amodra@gmail.com>
10829 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10830 create invalid offset address for vsx splat insn.
10831 * config/rs6000/predicates.md (splat_input_operand): New.
10832 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10834 2011-03-15 Xinliang David Li <davidxl@google.com>
10837 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10838 (normalize_preds): New function.
10839 (is_use_properly_guarded): Normalize def predicates.
10841 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10844 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10845 in the output template.
10847 2011-03-15 Richard Guenther <rguenther@suse.de>
10849 PR middle-end/47650
10850 * tree-pretty-print.c (dump_function_declaration): Properly
10851 dump unprototyped and varargs function types.
10853 2011-03-15 Richard Guenther <rguenther@suse.de>
10855 PR tree-optimization/13954
10856 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10859 2011-03-15 Richard Guenther <rguenther@suse.de>
10861 PR tree-optimization/48037
10862 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10863 selects into BIT_FIELD_REFs.
10864 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10867 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10869 PR tree-optimization/48129
10870 * builtins.c (fold_builtin_snprintf): Convert to type of
10871 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10872 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10874 2011-03-15 Richard Guenther <rguenther@suse.de>
10876 PR tree-optimization/41490
10877 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10878 value but with VUSE.
10879 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10881 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10882 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10883 * tree-tailcall.c (find_tail_calls): Ignore returns.
10885 2011-03-15 Richard Guenther <rguenther@suse.de>
10887 PR middle-end/48031
10888 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10889 or variable-indexed array accesses when in gimple form.
10891 2011-03-15 Richard Guenther <rguenther@suse.de>
10893 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10895 2011-03-15 Alan Modra <amodra@gmail.com>
10898 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10899 presume symbol_refs without a symbol_ref_decl are suitably
10900 aligned, nor other trees we may see here. Handle anchor symbols.
10901 (legitimate_constant_pool_address_p): Comment. Add mode param.
10902 Check cmodel=medium addresses. Adjust all calls.
10903 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10904 creating cmodel=medium optimized access to locals.
10905 * config/rs6000/constraints.md (R): Pass QImode to
10906 legitimate_constant_pool_address_p.
10907 * config/rs6000/predicates.md (input_operand): Pass mode to
10908 legitimate_constant_pool_address_p.
10909 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10912 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10915 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10916 64-bit constants being loaded into registers other than GPRs such
10917 as loading 0 into a VSX register.
10919 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10921 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10923 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10925 PR middle-end/47917
10926 * builtins.c (fold_builtin_snprintf): New function.
10927 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10928 (fold_builtin_4): Likewise.
10930 PR middle-end/38878
10931 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10932 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10933 and C - X == X also strip nops from +/-/p+ operand.
10934 When optimizing -X == C, fold C to arg0's type.
10937 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10938 emit it as add_AT_int instead of add_AT_unsigned.
10940 2011-03-14 Tom Tromey <tromey@redhat.com>
10942 * unwind-dw2.c: Include sys/sdt.h if it exists.
10943 (_Unwind_DebugHook): Use STAP_PROBE2.
10944 * config.in, configure: Rebuild.
10945 * configure.ac: Check for sys/sdt.h.
10947 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10949 * config/i386/i386.md (ROUND_FLOOR): New constant.
10950 (ROUND_CEIL): Ditto.
10951 (ROUND_TRUNC): Ditto.
10952 (ROUND_MXCSR): Ditto.
10953 (ROUND_NO_EXC): Ditto.
10954 (rint<mode>2): Use new defines instead of numerical constants.
10955 (floor<mode>2): Ditto.
10956 (ceil<mode>2): Ditto.
10957 (btrunc<mode>2): Ditto.
10958 * config/i386/i386-builtin-types.def: Define ROUND function type
10960 * config/i386/i386.c (enum ix86_builtins): Add
10961 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10962 (struct builtin_description): Add
10963 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10964 (ix86_expand_sse_round): New static function.
10965 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10967 (ix86_builtin_vectorized_function): Handle
10968 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10970 2011-03-14 Tom Tromey <tromey@redhat.com>
10972 * c-parser.c (c_parser_asm_string_literal): Clear
10973 warn_overlength_strings.
10975 2011-03-14 Tom Tromey <tromey@redhat.com>
10977 * c-parser.c (disable_extension_diagnostics): Save
10978 warn_overlength_strings.
10979 (restore_extension_diagnostics): Restore warn_overlength_strings.
10981 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10983 * BASE-VER: Change to 4.7.0.
10985 2011-03-14 Richard Guenther <rguenther@suse.de>
10987 PR middle-end/48098
10988 * tree.c (build_vector_from_val): Adjust assert to requirements
10991 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10994 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10996 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10998 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10999 terms of target_flags_explicit. Adjust copyright year.
11001 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11002 * config/rs6000/t-freebsd: New file. Add override for
11005 2011-03-13 Chris Demetriou <cgd@google.com>
11007 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11008 (-fno-diagnostics-show-option): this, to reflect current default.
11009 (-Werror=): Update text about -fno-diagnostics-show-option.
11011 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11014 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11015 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11016 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11017 mode is not V2DImode or V2DFmode.
11018 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11019 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11020 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11022 (movdi_internal64): Likewise.
11024 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11026 PR tree-optimization/47127
11027 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11029 (set_cloog_options): Same.
11030 (scop_to_clast): Same.
11031 (print_clast_stmt): Do not call cloog_state_malloc and
11033 (print_generated_program): Same.
11035 * graphite-clast-to-gimple.h (cloog_state): Declared.
11036 (scop_to_clast): Adjust declaration.
11037 * graphite.c (cloog_state): Defined here.
11038 (graphite_initialize): Call cloog_state_malloc.
11039 (graphite_finalize): Call cloog_state_free.
11041 2011-03-11 Jason Merrill <jason@redhat.com>
11043 * attribs.c (lookup_attribute_spec): Take const_tree.
11046 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11048 * config/sparc/sparc.c (sparc_option_override): Use
11049 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11051 2011-03-11 Richard Guenther <rguenther@suse.de>
11053 PR tree-optimization/48067
11054 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11055 multiplication result will be only used once on the target
11058 2011-03-11 Richard Guenther <rguenther@suse.de>
11060 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11062 2011-03-11 Richard Guenther <rguenther@suse.de>
11065 * tree.c (find_decls_types_r): Do not walk types only reachable
11066 from IDENTIFIER_NODEs.
11068 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11070 PR middle-end/48044
11071 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11072 all vnode->force_output nodes as needed.
11074 2011-03-11 Jason Merrill <jason@redhat.com>
11077 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11078 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11080 2011-03-11 Martin Jambor <mjambor@suse.cz>
11082 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11085 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11087 PR tree-optimization/48063
11088 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11089 inline functions called once if !tree_can_inline_p (node->callers).
11091 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11093 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11095 * config/score/score3.c: Delete.
11096 * config/score/score3.h: Delete.
11097 * config/score/mul-div.S: Delete.
11098 * config/score/sfp-machine.h: Add new file.
11099 * config/score/constraints.md: Add new file.
11100 * config/score/t-score-softfp: Add new file.
11101 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11102 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11103 (score7_extra_constraint): Delete.
11104 (score7_option_override): Remove unused code.
11105 * config/score/score.c: Remove score3 and score5 define and code.
11106 * config/score/score.h: Remove score3 and score5 define and code.
11107 * config/score/score.md: Remove score3 template and unusual insn.
11108 * config/score/score.opt: Remove score3 and score5 options.
11110 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11112 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11113 when _HPUX_SOURCE is defined.
11114 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11116 2011-03-10 Jason Merrill <jason@redhat.com>
11119 * stor-layout.c (layout_type): Don't set structural equality
11120 on arrays of incomplete type.
11121 * tree.c (type_hash_eq): Handle comparing them properly.
11123 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11126 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11127 result mode matches original rtl mode.
11129 2011-03-10 Nick Clifton <nickc@redhat.com>
11131 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11132 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11134 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11136 PR rtl-optimization/47866
11137 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11138 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11139 if target wasn't scalar.
11140 * function.c (assign_stack_temp_for_type): Assert that neither
11141 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11142 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11144 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11146 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11148 * config/s390/s390-protos.h (s390_label_align): New prototype.
11149 * config/s390/s390.c (s390_label_align): New function.
11150 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11152 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11155 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11156 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11157 (output_vec_const_move): Ditto.
11159 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11161 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11162 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11163 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11164 Change 'rclass' argument and result type to reg_class_t.
11165 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11167 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11169 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11170 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11171 (TARGET_MEMORY_MOVE_COST): Define.
11172 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11174 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11177 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11180 PR tree-optimization/48022
11181 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11184 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11187 * var-tracking.c (find_use_val): Return NULL for
11188 cui->sets && cui->store_p BLKmode MEMs.
11190 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11192 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11194 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11195 xstormy16_print_operand_address): Remove.
11196 * config/stormy16/stormy16.c (xstormy16_print_operand,
11197 xstormy16_print_operand_address): Make static.
11198 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11200 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11203 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11204 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11207 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11210 * cfgloopmanip.c (fix_bb_placements): Return immediately
11211 if FROM is BASE_LOOP's header.
11213 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11215 * gimplify.c (gimplify_function_tree): Fix building calls
11216 to __builtin_return_address.
11218 2011-03-07 Alan Modra <amodra@gmail.com>
11220 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11221 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11222 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11223 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11225 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11226 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11227 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11228 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11229 * config/rs6000/rs6000.c
11230 (rs6000_elf_end_indicate_exec_stack): Rename to..
11231 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11232 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11233 (rs6000_file_start): ..here.
11234 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11235 file scope variables.
11236 (call_ABI_of_interest): New function.
11237 (init_cumulative_args): Set above vars when function return value
11238 is a float, vector, or small struct.
11239 (rs6000_function_arg_advance_1): Likewise for function args.
11240 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11241 references float args.
11243 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11245 * doc/cfg.texi: Remove "See" before @ref.
11246 * doc/invoke.texi: Likewise.
11248 2011-03-05 Jason Merrill <jason@redhat.com>
11250 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11252 2011-03-05 Anthony Green <green@moxielogic.com>
11254 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11256 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11258 PR rtl-optimization/47899
11259 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11260 to flow_loop_nested_p when moving the loop upward.
11262 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11265 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11267 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11269 PR tree-optimization/47967
11270 * ipa-cp.c (build_const_val): Return NULL instead of creating
11271 VIEW_CONVERT_EXPR for mismatching sizes.
11272 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11273 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11274 give up on versioning.
11276 2011-03-05 Alan Modra <amodra@gmail.com>
11279 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11280 full cmodel medium/large lo_sum + high addresses.
11282 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11284 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11285 pool references in UNSPEC_LTREL_OFFSET.
11287 2011-03-04 Jan Hubicka <jh@suse.cz>
11290 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11291 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11292 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11294 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11295 cgraph_add_thunk): Add node pointers.
11296 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11297 associated to right node.
11298 (input_node): Update use of cgraph_same_body_alias
11299 and cgraph_add_thunk.
11301 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11303 * config/i386/i386.opt (mprefer-avx128): New flag.
11304 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11305 modes when the flag -mprefer-avx128 is on.
11307 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11309 * dwarf2out.c (compare_loc_operands): Fix address handling.
11311 2011-03-04 Alan Modra <amodra@gmail.com>
11313 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11315 2011-03-04 Richard Guenther <rguenther@suse.de>
11317 PR middle-end/47968
11318 * expmed.c (extract_bit_field_1): Prefer vector modes that
11319 vec_extract patterns can handle.
11321 2011-03-04 Richard Guenther <rguenther@suse.de>
11323 PR middle-end/47975
11324 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11326 2011-03-04 Richard Henderson <rth@redhat.com>
11328 * explow.c (emit_stack_save): Remove 'after' parameter.
11329 (emit_stack_restore): Likewise.
11330 * expr.h: Update to match.
11331 * builtins.c, calls.c, stmt.c: Likewise.
11332 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11333 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11334 * function.c (expand_function_end): Insert the emit_stack_save
11335 sequence before parm_birth_insn instead of after.
11337 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11339 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11340 (ssse3_pmaddubsw128): Ditto.
11341 (ssse3_pmaddubsw): Ditto.
11343 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11345 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11347 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11350 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11351 on TYPE_SIZE_UNIT if it is a DECL.
11354 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11355 first operand is not is_gimple_mem_ref_addr, try to fold it.
11356 If the operand still isn't is_gimple_mem_ref_addr, clear
11359 2011-03-03 Richard Guenther <rguenther@suse.de>
11361 PR middle-end/47283
11362 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11364 (refs_may_alias_p_1): For release branches return true if
11365 we are confused by our input.
11367 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11369 * config/s390/s390.c (s390_function_value): Rename to ...
11370 (s390_function_and_libcall_value): ... this.
11371 (s390_function_value): New function.
11372 (s390_libcall_value): New function.
11373 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11374 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11375 target macro definitions.
11376 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11378 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11380 * config/i386/freebsd64.h (CC1_SPEC): Define.
11381 * config/i386/linux64.h (CC1_SPEC): Define.
11382 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11384 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11386 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11388 * config/stormy16/stormy16.c: Include reload.h.
11389 (xstormy16_memory_move_cost): New function.
11390 (TARGET_MEMORY_MOVE_COST): Define.
11392 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11394 PR rtl-optimization/47925
11395 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11396 with side effects. Remove the more-specific check for volatile asms.
11398 2011-03-02 Alan Modra <amodra@gmail.com>
11401 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11402 toc relative addresses for valid offsets.
11404 2011-03-01 Richard Guenther <rguenther@suse.de>
11406 PR tree-optimization/47890
11407 * tree-vect-loop.c (get_initial_def_for_induction): Set
11408 related stmt properly.
11410 2011-03-01 Richard Guenther <rguenther@suse.de>
11413 * lto-streamer.c (lto_record_common_node): Also register
11414 the canonical type.
11416 2011-03-01 Richard Guenther <rguenther@suse.de>
11419 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11420 Do not stream DECL_ABSTRACT_ORIGIN.
11421 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11422 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11423 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11424 Do not stream DECL_ABSTRACT_ORIGIN.
11425 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11426 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11428 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11430 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11431 FUNCTION_VALUE_REGNO_P): Remove.
11432 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11433 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11434 Add 'outgoing' argument.
11435 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11437 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11438 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11440 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11443 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11444 (lookup_filename): Likewise.
11445 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11447 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11448 Jakub Jelinek <jakub@redhat.com>
11450 PR middle-end/47893
11451 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11452 (assign_stack_local_1): Change last argument type to int.
11453 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11454 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11455 don't record padding space into frame_space_list nor use those areas.
11456 (assign_stack_local): Adjust caller.
11457 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11458 of assign_stack_local, pass 0 as last argument.
11459 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11462 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11465 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11466 Use target address_mode and pointer_mode hooks instead of hardcoded
11467 Pmode and ptr_mode. Handle some simple cases of extending if
11468 POINTERS_EXTEND_UNSIGNED < 0.
11469 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11470 Call convert_debug_memory_address.
11471 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11472 convert_debug_memory_address.
11474 PR middle-end/46790
11475 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11476 * configure: Regenerated.
11477 * config.in: Regenerated.
11478 * varasm.c (default_function_section): Return NULL
11479 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11481 2011-02-28 Martin Jambor <mjambor@suse.cz>
11483 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11484 the description to match the printed values.
11486 2011-02-28 Richard Guenther <rguenther@suse.de>
11488 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11489 of the copied scope tree.
11491 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11493 * doc/extend.texi (Function Attributes): Avoid deeply (and
11494 wrongly) nested tables.
11496 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11498 PR middle-end/47903
11499 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11500 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11501 r isn't op0 nor op1.
11503 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11505 * config/avr/avr.md: Remove magic comment for emacs.
11507 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11510 * config/avr/avr.c (avr_option_override): Use error on bad options.
11511 (avr_help): New function.
11512 (TARGET_HELP): Define.
11514 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11517 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11518 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11520 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11522 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11523 (ARM Options): Ditto.
11524 (i386 and x86-64 Options): Ditto.
11525 (RX Options): Ditto.
11526 (SPARC Options): Ditto.
11528 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11530 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11531 FreeBSD 6 and later. Generally use cpu generic.
11533 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11535 * doc/cpp.texi: Update copyright years.
11537 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11540 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11542 2011-02-25 Jon Beniston <jon@beniston.com>
11545 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11546 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11547 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11548 (lm32_block_move_inline): Add type cast to remove warning.
11549 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11550 (gen_int_relational): Move declarations to start of function.
11552 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11554 PR tree-optimization/45470
11555 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11556 can throw internally only.
11557 * tree-vect-stmts.c (vectorizable_call): Likewise.
11559 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11561 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11562 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11563 * config/stormy16/stormy16-protos.h
11564 (xstormy16_preferred_reload_class): Remove.
11565 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11566 static. Change 'rclass' argument and return type to reg_class_t.
11567 (TARGET_PREFERRED_RELOAD_CLASS,
11568 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11570 2011-02-24 Richard Guenther <rguenther@suse.de>
11572 * lto-streamer-in.c (input_bb): Do not find referenced vars
11573 in debug statements.
11575 2011-02-23 Jason Merrill <jason@redhat.com>
11577 * common.opt (fabi-version): Document v5 and v6.
11579 2011-02-23 Richard Guenther <rguenther@suse.de>
11581 PR tree-optimization/47849
11582 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11584 2011-02-23 Jie Zhang <jie@codesourcery.com>
11586 * opts-common.c (decode_cmdline_option): Print empty string
11587 argument as "" in decoded->orig_option_with_args_text.
11588 * gcc.c (execute): Print empty string argument as ""
11589 in the verbose output.
11590 (do_spec_1): Keep empty string argument.
11592 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11594 * config.gcc: Declare score-* and crx-* obsolete.
11596 2011-02-23 Jie Zhang <jie@codesourcery.com>
11598 PR rtl-optimization/47763
11599 * web.c (web_main): Ignore naked clobber when replacing register.
11601 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11603 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11606 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11609 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11611 2011-02-22 Mike Stump <mikestump@comcast.net>
11613 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11615 * configure: Regenerate.
11617 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11619 PR rtl-optimization/46002
11620 * ira-color.c (update_copy_costs): Change class intersection
11621 test to reg_class_contents[] test of 'hard_regno'.
11623 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11625 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11626 than Driver option.
11627 * config/hpux11.opt (mt): Likewise.
11628 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11629 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11630 * config/vax/elf.opt (mno-asm-pic): Likewise.
11631 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11633 2011-02-21 Mike Stump <mikestump@comcast.net>
11636 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11637 tree so we can get save the type.
11638 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11639 for CFString instead of trying to use past the end of the builtins.
11640 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11641 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11642 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11643 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11644 Rename to darwin_builtin_cfstring.
11645 (darwin_init_cfstring_builtins): Return the built type.
11647 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11650 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11651 (_mm256_insert_epi64): Use _mm_insert_epi64.
11653 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11655 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11656 * config/stormy16/stormy16-protos.h
11657 (xstormy16_mode_dependent_address_p): Remove.
11658 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11659 Make static. Change return type to bool. Change argument type to
11660 const_rtx. Remove dead code.
11661 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11663 2011-02-21 Richard Guenther <rguenther@suse.de>
11666 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11667 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11668 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11670 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11671 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11673 2011-02-20 Richard Guenther <rguenther@suse.de>
11676 * tree.c (free_lang_data_in_decl): Clean builtins from
11677 the TU decl BLOCK_VARS.
11679 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11683 * haifa-sched.c (fix_tick_ready): Skip tick computation
11686 2011-02-19 Richard Guenther <rguenther@suse.de>
11689 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11690 Remove lazy BLOCK_VARS streaming.
11691 (lto_input_ts_block_tree_pointers): Likewise.
11692 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11694 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11696 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11698 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11700 * config/i386/biarch32.h, config/i386/mach.h,
11701 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11703 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11706 * config/i386/i386.md (peephole2 for shift and plus): Use
11707 operands[1] original mode in the first insn.
11709 2011-02-18 Mike Stump <mikestump@comcast.net>
11711 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11713 2011-02-18 Jan Hubicka <jh@suse.cz>
11715 PR middle-end/47788
11716 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11717 to zero when the function is not inlinable at all.
11719 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11721 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11722 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11723 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11724 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11725 * config/pa/t-pa64: Likewise.
11726 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11728 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11731 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11733 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11736 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11738 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11740 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11741 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11742 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11743 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11744 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11745 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11746 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11747 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11748 m32r_legitimate_address_p): New functions.
11749 * config/m32r/constraints.md (constraint "S"): Don't use
11750 STORE_PREINC_PREDEC_P.
11751 (constraint "U"): Don't use LOAD_POSTINC_P.
11753 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11755 PR rtl-optimization/46178
11756 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11757 compute ira_hard_regno_cover_class[].
11759 2011-02-18 Richard Guenther <rguenther@suse.de>
11762 * lto-streamer.h (lto_global_var_decls): Declare.
11763 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11764 statics for global var processing.
11766 2011-02-18 Richard Guenther <rguenther@suse.de>
11768 PR tree-optimization/47737
11769 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11770 edge dominance check.
11772 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11775 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11776 avoid invalid rtx sharing.
11778 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11780 * doc/cpp.texi (Obsolete Features): Add background on the
11781 origin of assertions.
11783 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11785 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11787 * config/darwin.c (output_objc_section_asm_op): Added support for
11789 (is_objc_metadata): New.
11790 (darwin_objc2_section): New.
11791 (darwin_objc1_section): New.
11792 (machopic_select_section): Added support for ABI v1 and v2.
11793 (darwin_emit_objc_zeroed): New.
11794 (darwin_output_aligned_bss): Detect objc metadata and treat it
11796 (darwin_asm_output_aligned_decl_common): Same.
11797 (darwin_asm_output_aligned_decl_local): Same.
11798 * config/darwin-sections.def: Updated for ABI v1 and v2.
11799 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11800 compiling Objective-C code for the NeXT runtime, default to using
11801 ABI version 0 for 32-bit, and version 2 for 64-bit.
11803 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11805 * common.opt (optimize_fast): New Variable.
11806 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11807 instead of local variable ofast.
11809 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11811 * doc/invoke.texi (fobjc-abi-version): Documented.
11812 (fobjc-nilcheck): Documented.
11813 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11816 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11819 * common.opt (export-dynamic): New Driver option.
11820 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11822 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11824 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11826 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11827 Jan Hubicka <jh@suse.cz>
11831 * cfgexpand.c (account_used_vars_for_block): Remove.
11832 (estimated_stack_frame_size): Use referenced vars.
11833 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11834 that were referenced in the original function. Test src_fn
11835 rather than cfun. Drop redundant get_var_ann.
11836 (setup_one_parameter): Drop redundant get_var_ann.
11837 (declare_return_variable): Likewise.
11838 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11839 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11840 * ipa-inline.c (compute_inline_parameters): Do not compute
11841 disregard_inline_limits here.
11842 (compute_inlinable_for_current, pass_inlinable): New.
11843 (pass_inline_parameters): Require PROP_referenced_vars.
11844 * cgraphunit.c (cgraph_process_new_functions): Don't run
11845 compute_inline_parameters explicitly unless function is in SSA form.
11846 (cgraph_analyze_function): Set .disregard_inline_limits.
11847 * tree-sra.c (convert_callers): Compute inliner parameters
11848 only for functions already in SSA form.
11850 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11852 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11853 -mlittle-endian-data.
11855 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11857 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11858 -mno-fpu, not -fpu and -no-fpu.
11859 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11860 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11862 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11865 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11866 input reload with PLUS RTX.
11868 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11870 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11871 of InverseVar(MDMX).
11873 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11875 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11878 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11880 * config/mn10300/mn10300.opt (mno-crt0): New.
11882 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11884 * config/m68k/uclinux.opt (static-libc): New Driver option.
11886 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11888 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11890 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11892 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11893 %{muser-extend-enabled}.
11895 2011-02-16 Richard Guenther <rguenther@suse.de>
11897 PR tree-optimization/47738
11898 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11899 the TODO from tree_predictive_commoning.
11901 2011-02-15 Jeff Law <law@redhat.com>
11904 2011-01-25 Jeff Law <law@redhat.com>
11906 PR rtl-optimization/37273
11907 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11908 handle them like argument loads from stack slots. Do not double
11909 count memory for memory constants and argument loads from stack slots.
11911 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11913 PR middle-end/47725
11914 * combine.c (cant_combine_insn_p): Revert the last change.
11916 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11919 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11920 mode for vector constants. Remove code that checks for TImode.
11922 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11926 * cgraph.h (compute_inline_parameters): Return void.
11927 * ipa-inline.c (compute_inline_parameters): Adjust.
11929 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11933 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11935 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11936 * ipa-inline.c (compute_inline_parameters): Adjust.
11938 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11942 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11943 Adjust all users. Pass FN to...
11944 * tree-flow-inline.h (first_referenced_var): ... this. Add
11946 * ipa-struct-reorg.c: Adjust.
11947 * tree-dfa.c: Adjust.
11948 * tree-into-ssa.c: Adjust.
11949 * tree-sra.c: Adjust.
11950 * tree-ssa-alias.c: Adjust.
11951 * tree-ssa-live.c: Adjust.
11952 * tree-ssa.c: Adjust.
11953 * tree-ssanames.c: Adjust.
11954 * tree-tailcall.c: Adjust.
11956 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11960 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11961 Adjust all callers.
11962 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11963 * tree-flow-inline.h: Adjust.
11964 * gimple-pretty-print.c: Adjust.
11965 * tree-into-ssa.c: Adjust.
11966 * tree-ssa.c: Adjust.
11967 * cfgexpand.c: Adjust.
11969 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11971 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11972 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11973 (EXTRA_CONSTRAINT): Delete.
11974 * config/iq2000/constraints.md: New file.
11975 * config/iq2000/iq2000.md: Include it.
11976 (define_insn ""): Delete.
11977 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11978 unsupported constraint letters from patterns.
11979 (call_value, call_value_internal1): Likewise.
11980 (call_value_multiple_internal1): Likewise.
11982 2011-02-15 Nick Clifton <nickc@redhat.com>
11984 * config/mn10300/mn10300.c: Include tm-constrs.h.
11985 (struct liw_data): New data structure describing an LIW candidate
11987 (extract_bundle): Use struct liw_data. Allow small integer
11988 operands for some instructions.
11989 (check_liw_constraints): Use struct liw_data. Remove swapped
11990 parameter. Add comments describing the checks. Fix bug when
11991 assigning the source of liw1 to the source of liw2.
11992 (liw_candidate): Delete. Code moved into extract_bundle.
11993 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11995 * config/mn10300/predicates.md (liw_operand): New predicate.
11996 Allows registers and small integer constants.
11997 * config/mn10300/constraints.md (O): New constraint. Accetps
11998 integers in the range -8 to +7 inclusive.
11999 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12000 for moving a small integer into a register. Give this alternative
12002 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12003 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12004 using the J,K,L and M constraints,
12005 (liw): Remove SI mode on second operands to allow for HI and QI
12007 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12010 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12012 PR middle-end/47725
12013 * combine.c (cant_combine_insn_p): Check zero/sign extended
12016 2011-02-15 Richard Guenther <rguenther@suse.de>
12018 PR tree-optimization/47743
12019 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12020 for a non-type-compatible VN lookup bail out.
12022 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12024 * config/fr30/constraints.md: New file.
12025 * config/fr30/fr30.md: Include it.
12026 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12027 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12028 (EXTRA_CONSTRAINT): Delete.
12030 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12032 * config/frv/constraints.md: New file.
12033 * config/frv/predicates.md: Include it.
12034 * config/frv/frv.c (reg_class_from_letter): Delete.
12035 (frv_option_override): Don't initialize it.
12036 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12037 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12038 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12039 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12040 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12041 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12042 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12043 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12044 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12045 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12046 (REG_CLASS_FROM_CONSTRAINT): Delete.
12048 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12050 PR middle-end/47581
12051 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12052 if frame size is 0 in a leaf function.
12054 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12057 * config/alpha/host-osf.c: New file.
12058 * config/alpha/x-osf: New file.
12059 * config.host (alpha*-dec-osf*): Use it.
12061 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12063 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12064 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12065 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12066 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12068 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12070 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12072 * config/stormy16/constraints.md: New file.
12073 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12074 Use satisfies_constraint_Q and satisfies_constraint_R.
12075 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12077 (xstormy16_legitiamte_address_p): Declare.
12078 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12079 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12080 (EXTRA_CONSTRAINT): Delete.
12081 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12083 (xstormy16_extra_constraint_p): Delete.
12085 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12087 PR tree-optimization/46494
12088 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12089 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12090 (pass_rtl_loop_done): Add TODO_verify_flow.
12091 * fwprop.c (pass_rtl_fwprop): Likewise.
12092 * modulo-sched.c (pass_sms): Likewise.
12093 * tree-ssa-dom.c (pass_dominator): Likewise.
12094 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12095 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12096 (pass_tree_loop_done): Likewise.
12097 * tree-ssa-pre.c (execute_pre): Likewise.
12098 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12099 * tree-ssa-sink.c (pass_sink_code): Likewise.
12100 * tree-vrp.c (pass_vrp): Likewise.
12102 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12104 * config/v850/constraints.md: New file.
12105 * config/v850/v850.md: Include it.
12106 * config/v850/predicates.md (reg_or_0_operand): Use
12107 satisfies_constraint_G.
12108 (special_symbolref_operand): Use satisfies_constraint_K.
12109 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12110 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12111 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12112 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12113 (EXTRA_CONSTRAINT): Delete.
12114 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12115 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12116 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12118 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12121 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12124 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12126 * config/mcore/constraints.md: New file.
12127 * config/mcore/mcore.md: Include it.
12128 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12129 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12130 (REG_CLASS_FROM_LETTER): Delete.
12131 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12132 insn_const_int_ok_for_constraint.
12133 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12134 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12135 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12136 (EXTRA_CONSTRAINT): Delete.
12138 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12141 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12142 (IS_SIGHANDLER): Define.
12143 (sparc64_is_sighandler): New function, split off from
12144 sparc64_fallback_frame_state.
12145 (sparc_is_sighandler): New function, split off from
12146 sparc_fallback_frame_state.
12147 (sparc64_fallback_frame_state): Merge with ...
12148 (sparc_fallback_frame_state): ... this into ...
12149 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12150 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12151 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12152 stack instead of hardcoded offsets.
12154 2011-02-14 Andriy Gapon <avg@freebsd.org>
12157 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12159 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12161 * configure: Regenerate.
12163 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12166 * gcc.c (asm_options): Correct spec matching --target-help.
12168 2011-02-12 Martin Jambor <mjambor@suse.cz>
12170 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12171 to gimple call error.
12173 2011-02-12 Mike Stump <mikestump@comcast.net>
12175 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12176 comments in backslash regions.
12178 2011-02-12 Mike Stump <mikestump@comcast.net>
12179 Jakub Jelinek <jakub@redhat.com>
12180 Iain Sandoe <iains@gcc.gnu.org>
12183 * dwarf2out.c (output_cfa_loc): When required, apply the
12184 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12185 (output_loc_sequence): Likewise.
12186 (output_loc_operands_raw): Likewise.
12187 (output_loc_sequence_raw): Likewise.
12188 (output_cfa_loc): Likewise.
12189 (output_loc_list): Suppress register number adjustment when
12190 calling output_loc_sequence()
12191 (output_die): Likewise.
12193 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12195 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12197 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12198 xtensa_memory_move_cost): New functions.
12199 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12201 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12204 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12205 in the current directory.
12206 * configure: Rebuilt.
12208 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12210 * config/darwin.c (darwin_override_options): Add a hunk missed
12211 from the commit of r168571. Trim comment line lengths and
12212 correct indents of the preceding block.
12214 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12216 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12219 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12221 * common.opt (nostartfiles): New Driver option.
12223 2011-02-11 Xinliang David Li <davidxl@google.com>
12225 PR tree-optimization/47707
12226 * tree-chrec.c (convert_affine_scev): Keep type precision.
12228 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12230 PR tree-optimization/47420
12231 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12233 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12235 PR rtl-optimization/47614
12236 * rtl.h (check_for_inc_dec): Declare.
12237 * dse.c (check_for_inc_dec): Externalize...
12238 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12239 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12241 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12244 * gcc.c (main): Do not compile inputs if there were errors in
12246 * opts-common.c (read_cmdline_option): Check for wrong language
12247 after other error checks.
12249 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12251 * cgraph.c: Fix comment typos.
12252 * cgraph.h: Likewise.
12253 * cgraphunit.c: Likewise.
12254 * ipa-cp.c: Likewise.
12255 * ipa-inline.c: Likewise.
12256 * ipa-prop.c: Likewise.
12257 * ipa-pure-const.c: Likewise.
12258 * ipa-ref.c: Likewise.
12259 * ipa-reference.c: Likewise.
12261 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12264 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12266 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12269 * doc/sourcebuild.texi (Require Support): Document
12270 dg-require-ascii-locale.
12272 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12274 * doc/lto.texi (Write summary): Fix missing parentheses.
12276 2011-02-10 DJ Delorie <dj@redhat.com>
12278 * config/m32c/m32c.c (m32c_option_override): Disable
12279 -fcombine-stack-adjustments until flag value tracking and compare
12280 optimization can be rewritten.
12282 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12284 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12286 (PROCESSOR_DEFAULT64): Likewise.
12288 2011-02-10 Richard Henderson <rth@redhat.com>
12290 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12291 change from 2011-02-03.
12292 * config/rx/rx.c (flags_from_code): Likewise.
12293 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12294 is valid, n/pz otherwise.
12295 (rx_select_cc_mode): Return CCmode if Y is not zero.
12297 2011-02-10 Richard Guenther <rguenther@suse.de>
12299 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12301 2011-02-10 Richard Guenther <rguenther@suse.de>
12303 PR tree-optimization/47677
12304 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12306 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12309 * combine.c (make_compound_operation): Only change shifts into
12310 multiplication for SCALAR_INT_MODE_P.
12312 2011-02-10 Jie Zhang <jie@codesourcery.com>
12316 2011-02-05 Jie Zhang <jie@codesourcery.com>
12318 * web.c (entry_register): Don't clobber the number of the
12319 first uninitialized reference in used[].
12321 2011-02-09 Richard Guenther <rguenther@suse.de>
12323 PR tree-optimization/47664
12324 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12327 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12331 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12333 (PROCESSOR_DEFAULT64): Same.
12334 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12336 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12338 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12340 2011-02-09 Martin Jambor <mjambor@suse.cz>
12342 PR middle-end/45505
12343 * tree-sra.c (struct access): New flags grp_scalar_read and
12344 grp_scalar_write. Changed description of assignment read and write
12346 (dump_access): Dump new flags, reorder all of them.
12347 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12348 to detect multiple scalar reads.
12349 (analyze_access_subtree): Use the new scalar read write flags instead
12350 of the old flags. Adjusted comments.
12352 2011-02-08 DJ Delorie <dj@redhat.com>
12355 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12358 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12360 * config/m68k/uclinux.opt: New.
12361 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12363 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12365 * config/cris/elf.opt (sim): New Driver option.
12367 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12369 * config/xtensa/elf.opt: New.
12370 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12372 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12374 * config/vax/elf.opt: New.
12375 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12377 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12379 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12381 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12383 * config/gnu-user.opt: New.
12384 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12385 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12386 *-*-uclinux*): Use gnu-user.opt.
12388 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12390 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12391 * config/i386/gnu.h (CPP_SPEC): Likewise.
12393 2011-02-08 Ian Lance Taylor <iant@google.com>
12395 * common.opt (fcx-limited-range): Add SetByCombined flag.
12396 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12397 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12398 (fassociative-math, freciprocal-math): Likewise.
12399 (funsafe-math-optimizations): Likewise.
12400 * opth-gen.awk: Handle SetByCombined.
12401 * optc-gen.awk: Likewise.
12402 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12403 (set_unsafe_math_optimizations_flags): Likewise.
12404 * doc/options.texi (Option properties): Document SetByCombined.
12406 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12408 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12409 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12410 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12411 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12412 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12414 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12416 PR tree-optimization/46834
12417 PR tree-optimization/46994
12418 PR tree-optimization/46995
12419 * graphite-sese-to-poly.c (used_outside_reduction): New.
12420 (detect_commutative_reduction): Call used_outside_reduction.
12421 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12422 translate_scalar_reduction_to_array only when at least one
12423 loop-phi/close-phi tuple has been detected.
12425 2011-02-08 Richard Guenther <rguenther@suse.de>
12427 PR middle-end/47639
12428 * tree-vect-generic.c (expand_vector_operations_1): Update
12430 (expand_vector_operations): ... not here. Cleanup EH info
12431 and the CFG if required.
12433 2011-02-08 Richard Guenther <rguenther@suse.de>
12435 PR tree-optimization/47641
12436 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12437 require type compatibility.
12439 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12441 * gimple-low.c (lower_function_body): Don't remove the location of
12442 the return statement here.
12443 (lower_gimple_return): Do it here instead but only if the return
12444 statement is actually used twice.
12446 2011-02-08 Richard Guenther <rguenther@suse.de>
12448 PR tree-optimization/47632
12449 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12450 unused up_to_stmt parameter, return whether cfg-cleanup is
12451 necessary, remove EH info properly.
12452 (forward_propagate_into_gimple_cond): Adjust caller.
12453 (forward_propagate_into_cond): Likewise.
12454 (forward_propagate_comparison): Likewise.
12455 (tree_ssa_forward_propagate_single_use_vars): Make
12456 forward_propagate_comparison case similar to the two others.
12458 2011-02-08 Nick Clifton <nickc@redhat.com>
12460 * config/mn10300/mn10300.opt (mliw): New command line option.
12461 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12462 (liw_bundling): New automaton.
12463 (liw): New attribute.
12464 (liw_op): New attribute.
12465 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12466 (movsi_internal): Add LIW attributes.
12467 (andsi3): Likewise.
12468 (iorsi3): Likewise.
12469 (xorsi3): Likewise.
12470 (addsi3): Separate register and immediate alternatives.
12471 Add LIW attributes.
12472 (subsi3): Likewise.
12474 (aslsi3): Likewise.
12475 (lshrsi3): Likewise.
12476 (ashrsi3): Likewise.
12477 (liw): New pattern.
12478 * config/mn10300/mn10300.c (liw_op_names): New
12479 (mn10300_print_operand): Handle 'W' operand descriptor.
12480 (extract_bundle): New function.
12481 (check_liw_constraints): New function.
12482 (liw_candidate): New function.
12483 (mn10300_bundle_liw): New function.
12484 (mn10300_reorg): New function.
12485 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12486 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12487 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12488 __LIW__ or __NO_LIW__.
12489 * doc/invoke.texi: Describe the -mliw command line option.
12491 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12493 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12494 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12495 pthread_mutex_unlock): Remove.
12496 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12497 * config/pa/t-pa64: Likewise.
12498 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12499 shared libc if not linking against libpthread.
12500 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12502 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12505 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12506 on 10.6 and later to ensure that we always use the unwinder from
12507 the system. Only add -no_compact_unwind when tarteting darwin
12510 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12513 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12514 (vec_interleave_lowv2sf): Ditto.
12515 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12516 (vec_extract_oddv2sf): Ditto.
12518 2011-02-07 Mike Stump <mikestump@comcast.net>
12521 Add __ieee_divdc3 entry point.
12522 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12524 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12525 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12526 * config/darwin.c (darwin_rename_builtins): Add.
12527 * config/darwin-protos.h (darwin_rename_builtins): Add.
12529 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12532 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12535 2011-02-07 Mike Stump <mikestump@comcast.net>
12537 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12539 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12542 * config/avr/libgcc.S (exit): Move .endfunc
12544 2011-02-07 Richard Guenther <rguenther@suse.de>
12546 PR tree-optimization/47615
12547 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12548 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12549 (run_scc_vn): Initialize it.
12550 (visit_reference_op_load): Use it.
12551 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12553 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12555 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12556 DImode trapping arithmetic libfuncs.
12558 2011-02-07 Richard Guenther <rguenther@suse.de>
12560 PR tree-optimization/47621
12561 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12563 (execute_update_addresses_taken): ... here. Make it more
12564 conservative in what we accept.
12566 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12568 * config/sparc/freebsd.h (ASM_SPEC): Define.
12569 * config/sparc/vxworks.h (ASM_SPEC): Define.
12571 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12573 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12575 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12577 * doc/invoke.texi: Remove reference to compiler internals from
12578 user documentation.
12580 * reg-notes.def: Remove REG_VALUE_PROFILE.
12581 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12583 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12585 PR middle-end/47610
12586 * varasm.c (default_section_type_flags): If decl is NULL,
12587 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12589 2011-02-05 Jie Zhang <jie@codesourcery.com>
12592 * web.c (entry_register): Don't clobber the number of the
12593 first uninitialized reference in used[].
12595 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12597 PR tree-optimization/46194
12598 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12599 (build_classic_dist_vector_1): Do not represent classic distance
12600 vectors when the access functions are variating in different loops.
12602 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12604 * config/mips/iris6.opt: New.
12605 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12607 2011-02-04 Richard Henderson <rth@redhat.com>
12608 Steve Ellcey <sje@cup.hp.com>
12611 * config/ia64/predicates.md (mux1_brcst_element): New.
12612 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12613 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12614 (ia64_unpack_sign): New.
12615 (ia64_expand_unpack): Rewrite using new routines.
12616 (ia64_expand_widen_sum): Ditto.
12617 (ia64_expand_dot_prod_v8qi): Ditto.
12618 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12619 routines, add endian check.
12620 (pmpy2_even): Rename from pmpy2_r, add endian check.
12621 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12622 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12623 (vec_widen_smult_hi_v4hi): Ditto.
12624 (vec_widen_umult_lo_v4hi): Ditto.
12625 (vec_widen_umult_hi_v4hi): Ditto.
12626 (mulv2si3): Change endian checks.
12627 (sdot_prodv4hi): Rewrite with new calls.
12628 (udot_prodv4hi): New.
12629 (vec_pack_ssat_v4hi): Add endian check.
12630 (vec_pack_usat_v4hi): Ditto.
12631 (vec_pack_ssat_v2si): Ditto.
12632 (max1_even): Rename from max1_r, add endian check.
12633 (max1_odd): Rename from max1_l, add endian check.
12634 (*mux1_rev): Format change.
12635 (*mux1_mix): Ditto.
12636 (*mux1_shuf): Ditto.
12637 (*mux1_alt): Ditto.
12638 (*mux1_brcst_v8qi): Use new predicate.
12639 (vec_extract_evenv8qi): Remove endian check.
12640 (vec_extract_oddv8qi): Ditto.
12641 (vec_interleave_lowv4hi): Format change.
12642 (vec_interleave_highv4hi): Ditto.
12643 (mix2_even): Rename from mix2_r, add endian check.
12644 (mix2_odd): Rename from mux2_l, add endian check.
12645 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12646 (vec_extract_evenodd_helper): Format change.
12647 (vec_extract_evenv4hi): Remove endian check.
12648 (vec_extract_oddv4hi): Remove endian check.
12649 (vec_interleave_lowv2si): Format change.
12650 (vec_interleave_highv2si): Format change.
12651 (vec_initv2si): Remove endian check.
12652 (vecinit_v2si): Add endian check.
12653 (reduc_splus_v2sf): Add endian check.
12654 (reduc_smax_v2sf): Ditto.
12655 (reduc_smin_v2sf): Ditto.
12656 (vec_initv2sf): Remove endian check.
12657 (fpack): Add endian check.
12658 (fswap): Add endian check.
12659 (vec_interleave_highv2sf): Add endian check.
12660 (vec_interleave_lowv2sf): Add endian check.
12661 (fmix_lr): Add endian check.
12662 (vec_setv2sf): Format change.
12663 (*vec_extractv2sf_0_be): Use shift to extract operand.
12664 (*vec_extractv2sf_1_be): New.
12665 (vec_pack_trunc_v4hi): Add endian check.
12666 (vec_pack_trunc_v2si): Format change.
12668 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12670 PR inline-asm/23200
12671 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12672 do bb, locus and block comparison and disallow loads if it is not set.
12673 (stmt_is_replaceable_p): New function.
12674 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12676 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12677 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12679 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12681 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12683 * config/rs6000/xilinx.opt: New.
12684 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12686 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12688 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12690 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12692 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12693 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12694 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12695 secondary_reload_info, xtensa_secondary_reload): Remove.
12696 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12697 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12698 (xtensa_preferred_reload_class): Make static. Change return and
12699 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12700 Use CONST_DOUBLE_P predicate.
12701 (xtensa_preferred_output_reload_class): New function.
12702 (xtensa_secondary_reload): Make static.
12704 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12706 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12707 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12708 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12710 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12712 PR middle-end/31490
12713 * output.h (SECTION_RELRO): Define.
12714 (SECTION_MACH_DEP): Adjust.
12715 (get_variable_section): New prototype.
12716 * varpool.c (varpool_finalize_named_section_flags): New function.
12717 (varpool_assemble_pending_decls): Call it.
12718 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12719 * cgraphunit.c (cgraph_output_in_order): Call
12720 varpool_finalize_named_section_flags.
12721 * varasm.c (get_section): Allow section flags conflicts between
12722 relro and read-only sections if the section hasn't been declared yet.
12723 Set SECTION_OVERRIDE after diagnosing section type conflict.
12724 (get_variable_section): No longer static.
12725 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12726 readonly sections that need relocations.
12727 (decl_readonly_section_1): New function.
12728 (decl_readonly_section): Use it.
12731 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12732 Steve Ellcey <sje@cup.hp.com>
12734 PR middle-end/31490
12735 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12736 if section attribute used.
12738 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12740 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12741 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12742 (darwin_init_sections): Remove assertion.
12744 2011-02-03 Nick Clifton <nickc@redhat.com>
12746 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12748 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12749 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12750 instead of "n" and "pz".
12751 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12754 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12757 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12758 fma, expand FMA_EXPR as fma{,f,l} call.
12761 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12762 copy them into a unsigned char variable and pass address of it to
12763 lto_output_data_stream.
12766 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12767 around backend_init_target and lang_dependent_init_target calls.
12768 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12769 (verify_cgraph_node): Don't call set_cfun here. Use
12770 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12771 Set error_found for incorrectly represented calls to thunks.
12773 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12776 PR rtl-optimization/43494
12777 * rtl.h (for_each_inc_dec_fn): New type.
12778 (for_each_inc_dec): Declare.
12779 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12780 (for_each_inc_dec_find_inc_dec): New fn.
12781 (for_each_inc_dec_find_mem): New fn.
12782 (for_each_inc_dec): New fn.
12783 * dse.c (struct insn_size): Remove.
12784 (replace_inc_dec, replace_inc_dec_mem): Remove.
12785 (emit_inc_dec_insn_before): New fn.
12786 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12787 (canon_address): Pass mem modes to cselib_lookup.
12788 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12789 (cselib_lookup_from_insn): Likewise.
12790 (cselib_subst_to_values): Likewise.
12791 * cselib.c (find_slot_memmode): New var.
12792 (cselib_find_slot): New fn. Use it instead of
12793 htab_find_slot_with_hash everywhere.
12794 (entry_and_rtx_equal_p): Use find_slot_memmode.
12795 (autoinc_split): New fn.
12796 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12797 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12798 Deal with autoinc. Special-case recursion into MEMs.
12799 (cselib_hash_rtx): Likewise.
12800 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12801 address and MEM modes.
12802 (cselib_subst_to_values): Add memmode, pass it on.
12804 (cselib_lookup): Add memmode argument, pass it on.
12805 (cselib_lookup_from_insn): Add memmode.
12806 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12807 (struct cselib_record_autoinc_data): New.
12808 (cselib_record_autoinc_cb): New fn.
12809 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12810 mode to cselib_lookup. Reset autoinced REGs here instead of...
12811 (cselib_process_insn): ... here.
12812 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12814 (add_uses): Likewise, also to cselib_subst_to_values.
12815 (add_stores): Likewise.
12816 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12817 cselib_subst_to_values.
12818 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12819 * gcse.c (do_local_cprop): Adjusted.
12820 * postreload.c (reload_cse_simplify_set): Adjusted.
12821 (reload_cse_simplify_operands): Adjusted.
12822 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12824 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12826 PR tree-optimization/45122
12827 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12828 unsafe assumptions when there's more than one loop exit.
12830 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12833 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12834 Document using vector double with the load/store builtins, and
12835 that the load/store builtins always use Altivec instructions.
12837 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12838 to use altivec memory instructions, even on VSX.
12839 (vector_altivec_store_<mode>): Ditto.
12841 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12844 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12845 V2DF, V2DI support to load/store overloaded builtins.
12847 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12848 altivec load/store builtins for V2DF/V2DI types.
12850 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12851 set avoid indexed addresses on power6 if -maltivec.
12852 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12853 vector_altivec_load/vector_altivec_store builtins.
12854 (altivec_expand_st_builtin): Ditto.
12855 (altivec_expand_builtin): Add VSX memory builtins.
12856 (rs6000_init_builtins): Add V2DI types to internal types.
12857 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12858 load/store builtins.
12859 (rs6000_address_for_altivec): Insure memory address is appropriate
12862 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12863 vec_vsx_ld and vec_vsx_st.
12864 (vsx_store_<mode>): Ditto.
12866 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12867 variables to hold long long types for VSX vector memory builtins.
12868 (RS6000_BTI_unsigned_long_long): Ditto.
12869 (long_long_integer_type_internal_node): Ditti.
12870 (long_long_unsigned_type_internal_node): Ditti.
12872 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12873 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12874 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12876 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12878 (vec_vsx_st): Ditto.
12880 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12882 * config/pa/pa-hpux10.opt: New.
12883 * config/hpux11.opt (pthread): New Driver option.
12884 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12885 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12887 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12889 * config/ia64/vms.opt: New.
12890 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12892 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12895 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12896 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12897 generator functions.
12898 (vsx_floatuns<VSi><mode>2): Ditto.
12899 (vsx_fix_trunc<mode><VSi>2): Ditto.
12900 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12902 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12904 * config/i386/djgpp.opt (posix): New Driver option.
12906 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12908 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12909 Move to the unsupported targets list.
12911 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12913 PR rtl-optimization/47525
12914 * df-scan.c: Update copyright years.
12915 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12916 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12918 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12920 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12921 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12922 (ASM_OUTPUT_ASCII): Remove.
12923 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12925 2011-02-02 Jeff Law <law@redhat.com>
12927 PR middle-end/47543
12928 * reload.c (find_reloads_address): Handle reg+d address where both
12929 components are invalid by reloading the entire address.
12931 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12932 Richard Guenther <rguenther@suse.de>
12934 PR tree-optimization/40979
12936 * passes.c (init_optimization_passes): After LIM call copy_prop
12937 and DCE to clean up.
12938 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12940 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12942 PR tree-optimization/47576
12943 PR tree-optimization/47555
12944 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12945 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12946 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12947 * tree-scalar-evolution.c (follow_ssa_edge): Use
12948 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12950 2011-02-02 Richard Guenther <rguenther@suse.de>
12952 PR tree-optimization/47566
12953 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12955 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12959 * tree-inline.c (declare_return_variable): Remove unused caller
12964 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12965 * cfgexpand.c (account_used_vars_for_block): Use them.
12966 * tree-nrv.c (tree_nrv): Likewise.
12967 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12968 (dump_scope_block): Likewise.
12969 (remove_unused_locals): Likewise.
12973 * tree-inline.c (declare_return_variable): Add result decl to
12974 local decls only once.
12975 * gimple-low.c (record_vars_into): Mark newly-created variables
12978 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12984 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12986 (no_real_insns_p, schedule_block, set_priorities): Drop special
12987 treatment of boundary debug insns.
12988 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12989 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12990 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12991 (BOUNDARY_DEBUG_INSN_P): Likewise.
12992 (SCHEDULE_DEBUG_INSN_P): Likewise.
12993 * sched-rgn.c (init_ready_list): Drop special treatment of
12994 boundary debug insns.
12995 * final.c (rest_of_clean_state): Clear notes' BB.
12997 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12999 * config/openbsd.opt (assert=): New Driver option.
13001 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13003 * config/i386/nto.opt: New.
13004 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13006 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13008 * config/i386/netware.opt: New.
13009 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13011 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13013 * config/interix.opt (posix): New Driver option.
13015 2011-02-01 DJ Delorie <dj@redhat.com>
13017 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13019 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13022 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13024 PR tree-optimization/47561
13025 * toplev.c (process_options): Print the Graphite flags. Add
13026 flag_loop_flatten to the list of options requiring Graphite.
13028 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13030 * config/i386/cygming.opt (posix): New Driver option.
13032 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13034 * config/arm/vxworks.opt: New.
13035 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13037 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13039 * config/alpha/elf.opt: New.
13040 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13041 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13043 2011-02-01 Richard Guenther <rguenther@suse.de>
13045 PR tree-optimization/47559
13046 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13047 store-motion on references that can throw.
13049 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13051 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13052 * tree-pass.h (TDF_CSELIB): New macro.
13053 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13054 cselib_lookup): Check for it rather than for TDF_DETAILS.
13056 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13059 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13060 is HOST_BIT_BUCKET.
13062 * opts.c (finish_options): Don't add x_aux_base_name if it is
13065 2011-02-01 Richard Guenther <rguenther@suse.de>
13067 PR tree-optimization/47555
13069 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13071 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13073 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13076 * config/lm32/t-lm32: Add multilib for all CPU options.
13078 2011-02-01 Richard Guenther <rguenther@suse.de>
13080 PR tree-optimization/47541
13081 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13082 sure to have a field at offset zero.
13084 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13086 * config/arc/arc.opt (EB, EL): New Driver options.
13088 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13090 * config/alpha/osf5.opt: New.
13091 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13093 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13095 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13097 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13099 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13100 -floop-interchange.
13101 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13102 is an alias of -floop-interchange and that it requires the
13103 Graphite infrastructure.
13104 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13105 flag_loop_interchange based on the value of flag_tree_loop_linear.
13107 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13108 Richard Guenther <rguenther@suse.de>
13110 PR tree-optimization/47538
13111 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13112 type instead of r1type, except for comparisons. For right
13113 shifts and comparisons punt if there are mismatches in
13114 sizetype vs. non-sizetype types.
13116 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13118 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13121 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13123 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13125 * configure: Regenerate.
13127 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13129 * configure.ac (gcc_cv_ld_static_option): Define.
13130 (gcc_cv_ld_dynamic_option): Define.
13131 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13133 (HAVE_LD_STATIC_DYNAMIC): Update message.
13134 (LD_STATIC_OPTION): Define.
13135 (LD_DYNAMIC_OPTION): Define.
13136 * configure: Regenerate.
13137 * config.in: Regenerate.
13138 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13139 HAVE_LD_STATIC_DYNAMIC]: Use them.
13141 2011-01-31 Nick Clifton <nickc@redhat.com>
13143 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13144 registers inside interrupt handlers if the handler is not a leaf
13147 2011-01-31 Nick Clifton <nickc@redhat.com>
13149 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13150 reg_renumber returning an INVALID_REGNUM.
13152 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13155 * doc/install.texi: Document host options discarded when cross
13156 configuring target libraries.
13158 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13161 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13164 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13166 (no_real_insns_p, schedule_block, set_priorities): Drop special
13167 treatment of boundary debug insns.
13168 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13169 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13170 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13171 (BOUNDARY_DEBUG_INSN_P): Likewise.
13172 (SCHEDULE_DEBUG_INSN_P): Likewise.
13173 * sched-rgn.c (init_ready_list): Drop special treatment of
13174 boundary debug insns.
13175 * final.c (rest_of_clean-state): Clear notes' BB.
13177 2011-01-31 Alan Modra <amodra@gmail.com>
13179 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13180 toc relative expressions as we do in print_operand_address.
13182 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13184 * doc/extend.texi: Follow spelling conventions.
13185 * doc/invoke.texi: Fix a typo.
13187 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13189 * config/hpux11.opt: New.
13190 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13191 ia64*-*-hpux*): Use hpux11.opt.
13193 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13195 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13198 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13200 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13203 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13205 * doc/install.texi (Binaries): Remove outdated reference for
13206 Motorola 68HC11/68HC12 downloads.
13208 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13210 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13213 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13216 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13219 2011-01-28 Ahmad Sharif <asharif@google.com>
13221 * value-prof.c (check_counter): Corrected error message.
13223 2011-01-29 Jie Zhang <jie@codesourcery.com>
13225 * config/arm/arm.c (arm_legitimize_reload_address): New.
13226 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13227 arm_legitimize_reload_address.
13228 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13230 2011-01-28 Ian Lance Taylor <iant@google.com>
13232 * godump.c (go_define): Ignore macros whose definitions include
13233 two adjacent operands.
13235 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13238 * varasm.c (force_const_mem): Store copy of x in desc->constant
13239 instead of x itself.
13240 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13241 itself into REG_EQUAL note.
13243 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13245 * config/freebsd.opt (posix, rdynamic): New Driver options.
13247 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13249 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13250 -Bstatic/-Bdynamic.
13251 * configure: Regenerate.
13253 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13255 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13256 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13258 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13260 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13261 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13262 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13263 (s390_preferred_reload_class): Make static. Change return and
13264 'rclass' argument type to reg_class_t.
13266 2011-01-27 Jan Hubicka <jh@suse.cz>
13268 PR middle-end/46949
13269 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13270 (process_function_and_variable_attributes): Check defined weakrefs.
13272 2011-01-27 Martin Jambor <mjambor@suse.cz>
13274 PR tree-optimization/47228
13275 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13276 build_ref_for_offset.
13278 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13280 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13282 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13284 PR rtl-optimization/46856
13285 * postreload.c (reload_combine_recognize_const_pattern): Do not
13286 separate cc0 setter and user on cc0 targets.
13288 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13291 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13292 passed a VOID_TYPE expression, immediately emit an error and
13293 return error_mark_node.
13295 2011-01-26 Jeff Law <law@redhat.com>
13297 PR rtl-optimization/47464
13298 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13299 rather than may_trap_p as needed.
13301 2011-01-26 DJ Delorie <dj@redhat.com>
13303 PR rtl-optimization/46878
13304 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13305 setter/user dependency as well.
13307 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13309 PR rtl-optimization/44469
13310 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13311 after removing trivially dead basic blocks.
13313 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13315 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13316 * config/frv/frv.h (LINK_SPEC): Likewise.
13317 * config/i386/netware.h (LINK_SPEC): Likewise.
13318 * config/m68k/linux.h (ASM_SPEC): Likewise.
13319 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13320 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13321 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13322 * config/sparc/linux.h (ASM_SPEC): Likewise.
13323 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13324 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13326 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13328 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13329 * config/frv/frv.h (ASM_SPEC): Likewise.
13330 * config/m68k/linux.h (ASM_SPEC): Likewise.
13331 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13332 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13333 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13334 * config/sparc/linux.h (ASM_SPEC): Likewise.
13335 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13336 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13338 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13340 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13341 * config/frv/frv.h (LINK_SPEC): Likewise.
13342 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13344 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13346 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13347 * config/frv/frv.h (ASM_SPEC): Likewise.
13348 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13349 * config/m68k/linux.h (ASM_SPEC): Likewise.
13350 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13351 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13352 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13353 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13354 * config/sparc/linux.h (ASM_SPEC): Likewise.
13355 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13356 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13357 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13359 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13362 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13364 (vec_extract_evenodd_help): Ditto.
13365 (vec_extract_evenv4hi): Ditto.
13366 (vec_extract_oddv4hi): Ditto.
13367 (vec_interleave_lowv2si): Ditto.
13368 (vec_interleave_highv2si): Ditto.
13369 (vec_extract_evenv2si): Ditto.
13370 (vec_extract_oddv2si: Ditto.
13371 (vec_pack_trunc_v2si): Ditto.
13373 2011-01-22 Jan Hubicka <jh@suse.cz>
13376 * cgraph.h (cgraph_local_info): New field can_change_signature.
13377 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13378 signature can change.
13379 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13381 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13382 (cgraph_function_versioning): We can not change signature of functions
13383 that don't allow that.
13384 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13385 (lto_input_node): Likewise.
13386 * ipa-inline.c (compute_inline_parameters): Compute
13387 local.can_change_signature.
13388 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13389 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13390 functions that can not change signature.
13391 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13392 init_cumulative_args): Do not use local calling conventions
13393 for functions that can not change signature.
13395 2011-01-22 Jan Hubicka <jh@suse.cz>
13397 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13399 2011-01-26 Richard Guenther <rguenther@suse.de>
13401 PR tree-optimization/47190
13402 * cgraphunit.c (process_common_attributes): New function.
13403 (process_function_and_variable_attributes): Use it.
13405 2011-01-26 Richard Guenther <rguenther@suse.de>
13408 * cgraphbuild.c (record_eh_tables): Record reference to personality
13411 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13414 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13415 non-debug insns from moving up.
13417 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13420 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13421 t-dlldir{,-x} fragment for build and add it to tmake_file.
13422 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13423 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13424 * config/i386/t-dlldir: New file.
13425 (SHLIB_DLLDIR): Define.
13426 * config/i386/t-dlldir-x: New file.
13427 (SHLIB_DLLDIR): Define.
13428 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13429 (SHLIB_INSTALL): Use it.
13431 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13434 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13435 lower bound of the allowed Thumb-2 coprocessor load/store
13436 index range to -256. Add explaining comment.
13438 2011-01-25 Ian Lance Taylor <iant@google.com>
13440 * godump.c (go_define): Improve lexing of macro expansion to only
13441 accept expressions which match Go spec.
13443 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13446 * tree.c (handle_dll_attribute): Handle it.
13447 * doc/extend.texi (@item dllexport): Mention it.
13448 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13450 2011-01-25 Ian Lance Taylor <iant@google.com>
13452 PR tree-optimization/26854
13453 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13454 (decl_jump_unsafe): Move higher in file, with no other change.
13455 (bind): Set has_jump_unsafe_decl if appropriate.
13456 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13457 (check_earlier_gotos): Likewise.
13458 (c_check_switch_jump_warnings): Likewise.
13460 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13462 * doc/invoke.texi (Warning Options): Add missing hyphen.
13463 (-fprofile-dir): Minor grammatical fixes.
13464 (-fbranch-probabilities): Likewise.
13466 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13470 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13472 (no_real_insns_p, schedule_block, set_priorities): Drop special
13473 treatment of boundary debug insns.
13474 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13475 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13476 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13477 (BOUNDARY_DEBUG_INSN_P): Likewise.
13478 (SCHEDULE_DEBUG_INSN_P): Likewise.
13479 * sched-rgn.c (init_ready_list): Drop special treatment of
13480 boundary debug insns.
13481 * final.c (rest_of_clean-state): Clear notes' BB.
13483 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13485 * Makefile.in (LAMBDA_H): Removed.
13486 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13487 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13488 lambda-trans.o, and tree-loop-linear.o.
13489 (lto-symtab.o): Remove dependence on LAMBDA_H.
13490 (tree-loop-linear.o): Remove rule.
13491 (lambda-mat.o): Same.
13492 (lambda-trans.o): Same.
13493 (lambda-code.o): Same.
13494 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13495 (tree-vect-slp.o): Same.
13496 * hwint.h (gcd): Moved here.
13497 (least_common_multiple): Same.
13498 * lambda-code.c: Removed.
13499 * lambda-mat.c: Removed.
13500 * lambda-trans.c: Removed.
13501 * lambda.h: Removed.
13502 * tree-loop-linear.c: Removed.
13503 * lto-symtab.c: Do not include lambda.h.
13504 * omega.c (gcd): Removed.
13505 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13506 * tree-data-ref.c (print_lambda_vector): Moved here.
13507 (lambda_vector_copy): Same.
13508 (lambda_matrix_copy): Same.
13509 (lambda_matrix_id): Same.
13510 (lambda_vector_first_nz): Same.
13511 (lambda_matrix_row_add): Same.
13512 (lambda_matrix_row_exchange): Same.
13513 (lambda_vector_mult_const): Same.
13514 (lambda_vector_negate): Same.
13515 (lambda_matrix_row_negate): Same.
13516 (lambda_vector_equal): Same.
13517 (lambda_matrix_right_hermite): Same.
13518 * tree-data-ref.h: Do not include lambda.h.
13519 (lambda_vector): Moved here.
13520 (lambda_matrix): Same.
13521 (dependence_level): Same.
13522 (lambda_transform_legal_p): Removed declaration.
13523 (lambda_collect_parameters): Same.
13524 (lambda_compute_access_matrices): Same.
13525 (lambda_vector_gcd): Same.
13526 (lambda_vector_new): Same.
13527 (lambda_vector_clear): Same.
13528 (lambda_vector_lexico_pos): Same.
13529 (lambda_vector_zerop): Same.
13530 (lambda_matrix_new): Same.
13531 * tree-flow.h (least_common_multiple): Removed declaration.
13532 * tree-parloops.c (lambda_trans_matrix): Moved here.
13533 (LTM_MATRIX): Same.
13534 (LTM_ROWSIZE): Same.
13535 (LTM_COLSIZE): Same.
13536 (LTM_DENOMINATOR): Same.
13537 (lambda_trans_matrix_new): Same.
13538 (lambda_matrix_vector_mult): Same.
13539 (lambda_transform_legal_p): Same.
13540 * tree-pass.h (pass_linear_transform): Removed declaration.
13541 * tree-ssa-loop.c (tree_linear_transform): Removed.
13542 (gate_tree_linear_transform): Removed.
13543 (pass_linear_transform): Removed.
13544 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13545 flag_loop_interchange.
13547 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13549 PR tree-optimization/47265
13550 PR tree-optimization/47443
13551 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13552 if name still has some uses.
13554 2011-01-25 Martin Jambor <mjambor@suse.cz>
13556 PR tree-optimization/47382
13557 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13558 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13560 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13562 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13563 sjlj_except_unwind_info.
13565 2011-01-25 Richard Guenther <rguenther@suse.de>
13567 PR tree-optimization/47426
13568 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13569 visible functions results escape.
13571 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13574 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13575 (arm_get_frame_offsets): Use it.
13577 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13578 Jakub Jelinek <jakub@redhat.com>
13580 PR tree-optimization/47271
13581 * tree-if-conv.c (bb_postdominates_preds): New.
13582 (if_convertible_bb_p): Call bb_postdominates_preds.
13583 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13584 (predicate_scalar_phi): Call bb_postdominates_preds.
13586 2011-01-25 Nick Clifton <nickc@redhat.com>
13588 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13589 * config/rx/rx.c (rx_function_value): Likewise.
13590 (rx_promote_function_mode): Likewise.
13591 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13592 in order to make it legitimate.
13593 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13594 make sure that the first operand is the same as the result register.
13595 (addsi3_unspec): Delete.
13596 (subdi3): Do not accept immediate operands.
13597 (subdi3_internal): Likewise.
13599 2011-01-25 Jeff Law <law@redhat.com>
13601 PR rtl-optimization/37273
13602 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13603 handle them like argument loads from stack slots. Do not double
13604 count memory for memory constants and argument loads from stack slots.
13606 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13608 PR tree-optimization/47427
13609 PR tree-optimization/47428
13610 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13611 coalesce if the new root var would be TREE_READONLY.
13613 2011-01-25 Richard Guenther <rguenther@suse.de>
13615 PR middle-end/47414
13616 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13617 correct type for TBAA.
13619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13621 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13622 (close_phi_written_to_memory): Call for_each_index with
13623 dr_indices_valid_in_loop.
13625 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13627 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13628 when it is initialized.
13630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13632 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13633 call to graphite_find_data_references_in_stmt.
13634 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13635 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13636 call to graphite_find_data_references_in_stmt.
13637 (analyze_drs_in_stmts): Same.
13638 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13639 in which the scalar analysis of indices is performed.
13640 (create_data_ref): Same. Update call to dr_analyze_indices.
13641 (find_data_references_in_stmt): Update call to create_data_ref.
13642 (graphite_find_data_references_in_stmt): Same.
13643 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13645 (create_data_ref): Same.
13646 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13647 call to create_data_ref.
13649 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13651 * graphite-sese-to-poly.c (build_poly_scop): Move
13652 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13654 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13656 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13657 VAR_DECL, PARM_DECL, and RESULT_DECL.
13659 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13661 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13662 in a reduction PBB.
13663 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13664 that have already been marked as PBB_IS_REDUCTION.
13666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13668 * graphite-scop-detection.c (same_close_phi_node): New.
13669 (remove_duplicate_close_phi): New.
13670 (make_close_phi_nodes_unique): New.
13671 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13673 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13675 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13676 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13677 of both data references to be the same.
13679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13681 * graphite-dependences.c (build_lexicographical_constraint): Remove
13682 the gdim parameter.
13683 (build_lexicographical_constraint): Adjust call to
13684 ppl_powerset_is_empty.
13685 (dependence_polyhedron): Same.
13686 (graphite_legal_transform_dr): Same.
13687 (graphite_carried_dependence_level_k): Same.
13688 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13690 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13692 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13694 * graphite-sese-to-poly.c
13695 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13696 (close_phi_written_to_memory): New.
13697 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13702 * doc/install.texi: Update the expected version number of PPL to 0.11.
13703 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13704 #if PPL_VERSION_MINOR < 11.
13706 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13708 * graphite-dependences.c: Include graphite-cloog-util.h.
13709 (new_poly_ddr): Inlined into dependence_polyhedron.
13710 (free_poly_ddr): Moved close by new_poly_ddr.
13711 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13712 Early return NULL when ppl_powerset_is_empty returns true.
13713 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13714 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13715 (graphite_legal_transform_dr): Call new_poly_ddr.
13716 (graphite_carried_dependence_level_k): Same.
13717 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13718 (dot_transformed_deps_stmt_1): Removed.
13719 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13720 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13721 (dot_deps_1): Call dot_deps_2.
13722 * Makefile.in (graphite-dependences.o): Add missing dependence on
13723 graphite-cloog-util.h.
13725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13727 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13728 (build_lexicographical_constraint): Same.
13729 (dependence_polyhedron_1): Same.
13730 (graphite_legal_transform_dr): Same.
13731 (graphite_carried_dependence_level_k): Same.
13732 * graphite-ppl.c (ppl_powerset_is_empty): New.
13733 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13734 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13738 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13739 the "a followed by b" relation and document it.
13741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13743 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13744 iteration when the bag of constraints is empty.
13746 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13748 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13752 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13753 nest and two loop depths as parameters.
13754 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13755 lst_perfect_nestify.
13757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13759 * graphite-dependences.c (print_pddr): Call
13760 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13764 * graphite-ppl.c (debug_gmp_value): New.
13765 * graphite-ppl.h (debug_gmp_value): Declared.
13767 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13769 * doc/install.texi: Document availability of cloog-0.16.
13771 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13773 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13774 invalid postdominance info.
13776 2011-01-24 Jan Hubicka <jh@suse.cz>
13779 * doc/extend.texi (weak pragma): Drop claim that it must
13780 appear before definition.
13781 * varasm.c (merge_weak, declare_weak): Only sanity check
13782 that DECL is not output at a time it is declared weak.
13784 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13786 * machmode.def: Fixed comments.
13788 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13790 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13792 2011-01-24 Paul Koning <ni1d@arrl.net>
13794 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13797 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13800 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13801 (block_info): Add scanned and prev.
13802 (move_or_delete_vzeroupper_2): Return if the basic block
13803 has been scanned and the upper 128bit state is unchanged
13804 from the last scan.
13805 (move_or_delete_vzeroupper_1): Return true if the exit
13807 (move_or_delete_vzeroupper): Visit basic blocks using the
13808 work-list based algorithm based on vt_find_locations in
13811 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13813 2011-01-24 Nick Clifton <nickc@redhat.com>
13815 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13816 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13817 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13818 then define __v850e1__.
13819 * doc/invoke.texi: Document -mv850es.
13821 2011-01-24 Richard Henderson <rth@redhat.com>
13823 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13824 compound unordered comparisons.
13825 * config/rx/rx.c (rx_split_fp_compare): Remove.
13826 * config/rx/rx-protos.h: Update.
13827 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13828 (cbranchsf4): Don't call rx_split_fp_compare.
13829 (*cbranchsf4): Use rx_split_cbranch.
13830 (*cmpsf): Don't accept "i" constraint.
13831 (*conditional_branch): Only valid after reload.
13832 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13834 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13837 * config/rs6000/altivec.md (vector constant splitters): Add
13838 support for creating vector single precision constants if -mvsx is
13839 used and we would create the constant using Altivec primitives.
13841 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13842 Richard Sandiford <rdsandiford@googlemail.com>
13844 PR rtl-optimization/47166
13845 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13846 mechanism for PRE_MODIFY and POST_MODIFY.
13847 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13850 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13852 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13854 2011-01-22 Jan Hubicka <jh@suse.cz>
13857 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13859 2011-01-22 Jan Hubicka <jh@suse.cz>
13861 PR tree-optimization/43884
13863 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13864 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13866 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13868 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13869 * config/s390/s390.c (s390_register_move_cost,
13870 s390_memory_move_cost): New.
13871 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13873 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13875 PR middle-end/47401
13876 * except.c (sjlj_assign_call_site_values): Move setting the
13877 crtl->uses_eh_lsda flag to ...
13878 (sjlj_mark_call_sites): ... here.
13879 (sjlj_emit_function_enter): Support NULL dispatch label.
13880 (sjlj_build_landing_pads): In a function with no landing pads
13881 that still has must-not-throw regions, generate code to register
13882 a personality function with empty LSDA.
13884 2011-01-21 Richard Henderson <rth@redhat.com>
13886 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13888 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13890 * compare-elim.c: New file.
13891 * Makefile.in (OBJS-common): Add it.
13892 (compare-elim.o): New.
13893 * common.opt (fcompare-elim): New.
13894 * opts.c (default_options_table): Add OPT_fcompare_elim.
13895 * tree-pass.h (pass_compare_elim_after_reload): New.
13896 * passes.c (init_optimization_passes): Add it.
13897 * recog.h: Protect against re-inclusion.
13898 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13899 * doc/invoke.texi (-fcompare-elim): Document it.
13900 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13901 * doc/tm.texi: Rebuild.
13903 2011-01-22 Nick Clifton <nickc@redhat.com>
13905 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13906 rx_split_fp_compare.
13908 2011-01-22 Nick Clifton <nickc@redhat.com>
13910 * config/rx/rx.md (UNSPEC_CONST): New.
13911 (deallocate_and_return): Wrap the amount popped off the stack in
13912 an UNSPEC_CONST in order to stop it being rejected by
13913 -mmax-constant-size.
13914 (pop_and_return): Add a "(return)" rtx.
13915 (call): Drop the immediate operand.
13916 (call_internal): Likewise.
13917 (call_value): Likewise.
13918 (call_value_internal): Likewise.
13919 (sibcall_internal): Likewise.
13920 (sibcall_value_internal): Likewise.
13921 (sibcall): Likewise. Generate an explicit call using
13923 (sibcall_value): Likewise.
13924 (mov<>): FAIL if a constant operand is not legitimate.
13925 (addsi3_unpsec): New pattern.
13927 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13928 (ok_for_max_constant): New function.
13929 (gen_safe_add): New function.
13930 (rx_expand_prologue): Use gen_safe_add.
13931 (rx_expand_epilogue): Likewise.
13932 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13935 2011-01-21 Jeff Law <law@redhat.com>
13937 PR tree-optimization/47053
13938 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13939 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13940 statements are deleted.
13941 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13942 is nonempty, then purge dead edges and cleanup the CFG.
13944 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13947 Temporarily revert:
13948 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13950 * tree-dfa.c (create_var_ann): Mark variable as used.
13952 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13954 PR middle-end/45566
13955 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13956 notes from other section in hot/cold partitioning even if
13957 last_action is -3. Increment call_site_base.
13959 PR rtl-optimization/47366
13960 * fwprop.c (forward_propagate_into): Return bool. If
13961 any changes are made, -fnon-call-exceptions is used and
13962 REG_EH_REGION note is present, call purge_dead_edges
13963 and return true if it purged anything.
13964 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13965 any EH edges were purged.
13967 2011-01-21 Jeff Law <law@redhat.com>
13969 PR rtl-optimization/41619
13970 * caller-save.c (setup_save_areas): Break out code to determine
13971 which hard regs are live across calls by examining the reload chains
13972 so that it is always used.
13973 Eliminate code which checked REG_N_CALLS_CROSSED.
13975 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13977 PR tree-optimization/47355
13978 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13979 NOP has non-debug uses beyond PHIs in new_bb.
13981 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13984 * cfgexpand.c (account_used_vars_for_block): Only account vars
13985 that are annotated as used.
13986 (estimated_stack_frame_size): Don't set TREE_USED.
13987 * tree-dfa.c (create_var_ann): Mark variable as used.
13989 2011-01-21 Richard Guenther <rguenther@suse.de>
13991 PR middle-end/47395
13992 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13994 2011-01-21 Richard Guenther <rguenther@suse.de>
13996 PR tree-optimization/47365
13997 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13998 (vn_reference_lookup_pieces): Adjust.
13999 (vn_reference_lookup): Likewise.
14000 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14001 (vn_reference_lookup_3): Only look through kills if in
14002 VN_WALKREWRITE mode.
14003 (vn_reference_lookup_pieces): Adjust.
14004 (vn_reference_lookup): Likewise.
14005 (visit_reference_op_load): Likewise.
14006 (visit_reference_op_store): Likewise.
14007 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14008 (compute_avail): Likewise.
14009 (eliminate): Likewise.
14011 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14013 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14014 DECL_IGNORED_P non-reg vars if they are used.
14016 PR tree-optimization/47391
14017 * varpool.c (const_value_known_p): Return false if
14020 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14023 * config/i386/i386.c (ix86_local_alignment): Handle
14024 case for va_list_type_node is nil.
14025 (ix86_canonical_va_list_type): Likewise.
14027 2011-01-21 Alan Modra <amodra@gmail.com>
14029 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14030 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14032 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14034 * config/arm/arm.md (define_attr type): Rename f_load
14035 and f_store to f_fpa_load and f_fpa_store. Update.
14036 (write_conflict): Deal with rename fallout.
14037 (*push_fp_multi): Likewise.
14038 * config/arm/fpa.md (f_load): Use f_fpa_load.
14039 (f_store): Use f_fpa_store.
14040 (*movsf_fpa): Likewise.
14041 (*movdf_fpa): Likewise.
14042 (*movxf_fpa): Likewise.
14043 (*thumb2_movsf_fpa): Likewise.
14044 (*thumb2_movdf_fpa): Likewise.
14045 (*thumb2_movxf_fpa): Likewise.
14046 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14047 f_loadd and f_stored.
14048 (*thumb2_movdi_vfp): Likewise.
14049 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14050 (*thumb2_movsi_vfp): Likewise.
14051 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14052 Use f_loads instead of f_load.
14053 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14055 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14057 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14058 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14059 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14060 (xtensa_mode_dependent_address_p): New function.
14061 (constantpool_address_p): Make static. Change return type to bool.
14062 Change argument type to const_rtx. Use CONST_INT_P predicate.
14064 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14067 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14069 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14072 * cfgexpand.c (expand_debug_expr): Instead of generating
14073 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14076 2011-01-20 Richard Guenther <rguenther@suse.de>
14078 PR middle-end/47370
14079 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14080 the pointer operand of MEM_REFs.
14082 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14084 PR tree-optimization/46130
14085 * ipa-split.c (consider_split): If return_bb contains non-virtual
14086 PHIs other than for retval or if split_function would not adjust it,
14089 2011-01-20 Richard Guenther <rguenther@suse.de>
14091 PR tree-optimization/47167
14092 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14093 Revert previous change, only avoid enumeral type changes.
14095 2011-01-19 Mike Stump <mikestump@comcast.net>
14097 * doc/tm.texi.in (BRANCH_COST): Englishify.
14098 * doc/tm.texi (BRANCH_COST): Likewise.
14100 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14103 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14104 (gen_scheduled_generic_parms_dies): New functions.
14105 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14106 generation for the end of CU compilation.
14107 (dwarf2out_finish): Generate template parameters DIEs here.
14109 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14112 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14113 debug bind stmt on merge edges.
14115 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14119 * function.c (instantiate_expr): Instantiate incoming rtl of
14120 implicit arguments, and recurse on VALUE_EXPRs.
14121 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14122 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14124 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14126 * c-parser.c (c_parser_for_statement): Initialize
14127 collection_expression.
14129 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14131 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14133 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14135 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14136 (LINK_SHLIB_SPEC): Don't use %(link_path).
14137 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14139 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14141 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14142 (NO_SHARED_LIB_SUPPORT): Remove.
14143 (LINK_SHLIB_SPEC): Remove one conditional definition.
14145 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14147 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14149 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14150 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14151 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14152 %{call_shared} and conditionals on these options not being passed.
14153 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14156 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14158 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14161 * ipa-split.c: Spelling fixes.
14163 2011-01-19 Richard Henderson <rth@redhat.com>
14165 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14166 (*mulsi3): Likewise.
14168 * longlong.h [__mn10300__] (count_leading_zeros): New.
14169 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14170 [__mn10300__] (add_ssaaaa, subddmmss): New.
14171 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14172 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14174 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14176 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14178 2011-01-19 Richard Henderson <rth@redhat.com>
14180 * config/mn10300/mn10300.md (addsi3_flags): New.
14181 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14182 (subsi3_flags, subc_internal, subdi3): New.
14183 (subdi3_internal, *subdi3_degenerate): New.
14184 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14186 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14187 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14188 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14189 * config/mn10300/mn10300-protos.h: Update.
14190 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14191 (return_ret): Likewise. Rename from return_internal_regs.
14192 (return_internal): Remove.
14194 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14195 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14196 (mn10300_legitimate_constant_p): Likewise.
14197 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14198 (mn10300_frame_size): New.
14199 (mn10300_expand_prologue): Use it.
14200 (mn10300_expand_epilogue): Likewise.
14201 (mn10300_initial_offset): Likewise.
14202 * config/mn10300/mn10300-protos.h: Update.
14203 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14204 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14205 (prologue, epilogue, return_internal): Tidy output code.
14206 (mn10300_store_multiple_operation, return): Likewise.
14207 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14208 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14209 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14210 (load_pic, am33_load_pic): New.
14211 (mn10300_load_pic0, mn10300_load_pic1): New.
14213 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14214 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14215 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14216 (cc_flags_for_mode, cc_flags_for_code): New.
14217 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14218 overflow flag is not valid. Validate that the flags we need
14219 for the comparison are valid.
14220 (mn10300_output_cmp): Remove.
14221 (mn10300_output_add): New.
14222 (mn10300_select_cc_mode): Use cc_flags_for_code.
14223 (mn10300_split_cbranch): New.
14224 (mn10300_match_ccmode): New.
14225 (mn10300_split_and_operand_count): New.
14226 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14228 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14229 (addsi3): ... here. Use mn10300_output_add.
14230 (*addsi3_flags): New.
14231 (*am33_subsi3, *mn10300_subsi3): Merge...
14232 (subsi3): ... here. Use attribute isa.
14233 (*subsi3_flags): New.
14234 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14236 (*am33_andsi3, *mn10300_andsi3): Merge...
14237 (andsi3): ... here.
14238 (*andsi3_flags): New.
14239 (andsi3 splitters): New.
14240 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14241 (iorsi3): ... here.
14242 (*iorsi3_flags): New.
14243 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14244 (xorsi3): ... here.
14245 (*xorsi3_flags): New.
14246 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14247 (one_cmplsi2): ... here.
14248 (*one_cmplsi2_flags): New.
14249 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14250 instead of "dax" in constraints. Use mn10300_split_cbranch.
14251 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14252 use matching constraints to eliminate a self-comparison.
14253 (*integer_conditional_branch): Rename from integer_conditional_branch.
14254 Use int_mode_flags to match CC_REG.
14255 (*cbranchsi4_btst, *btstsi): New.
14256 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14257 mn10300_split_cbranch.
14258 (*am33_cmpsf): Rename from am33_cmpsf.
14259 (*float_conditional_branch): Rename from float_conditional_branch.
14260 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14261 (zero_extendqisi2): ... here.
14262 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14263 (zero_extendhisi2): ... here.
14264 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14265 (extendqisi2): ... here.
14266 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14267 (extendhisi2): ... here.
14268 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14269 (ashlsi3): ... here.
14270 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14271 (lshrsi3): ... here.
14272 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14273 (ashrsi3): ... here.
14274 (consecutive add peephole): Remove.
14275 * config/mn10300/predicates.md (label_ref_operand): New.
14276 (int_mode_flags): New.
14277 (CCZN_comparison_operator): New.
14279 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14280 (throughput_42_latency_43): New reservation.
14281 (mulsidi3, umulsidi3): New expanders.
14282 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14283 the MDR register to allocation; separately allocate the low and
14284 high parts of the DImode result.
14285 (umulsidi3_internal): Similarly.
14286 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14287 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14288 (udivsi3, umodsi3): Remove.
14289 (udivmodsi4, divmodsi4): New expanders.
14290 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14291 (*divmodsi4): Simiarly.
14292 (ext_internal): New.
14294 * config/mn10300/constraints.md ("z"): New constraint.
14295 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14296 (FIXED_REGISTERS): Don't fix MDR.
14297 (CALL_USED_REGSITERS): Reformat nicely.
14298 (REG_ALLOC_ORDER): Add MDR.
14299 (enum regclass): Add MDR_REGS.
14300 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14301 (IRA_COVER_CLASSES): Add MDR_REGS.
14302 (REGNO_REG_CLASS): Handle MDR_REG.
14303 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14304 (mn10300_register_move_cost): Likewise.
14305 * config/mn10300/mn10300.md (MDR_REG): New.
14306 (*movsi_internal): Handle moves to/from MDR_REGS.
14308 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14310 (mn10300_secondary_reload): Tidy combination reload classes.
14311 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14312 addresses for AM33. Allow symbolic offsets for reg+imm.
14313 (mn10300_regno_in_class_p): New.
14314 (mn10300_legitimize_reload_address): New.
14315 * config/mn10300/mn10300.h (enum reg_class): Remove
14316 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14317 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14318 SP_OR_GENERAL_REGS.
14319 (REG_CLASS_NAMES): Update to match.
14320 (REG_CLASS_CONTENTS): Likewise.
14321 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14322 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14323 (REGNO_IN_RANGE_P): Remove.
14324 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14325 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14326 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14327 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14328 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14329 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14330 (REGNO_GENERAL_P): New.
14331 (HAVE_POST_MODIFY_DISP): New.
14332 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14333 (LEGITIMIZE_RELOAD_ADDRESS): New.
14334 * config/mn10300/mn10300-protos.h: Update.
14336 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14337 DATA_REGS for AM33 stack-pointer destination.
14338 (mn10300_preferred_output_reload_class): Likewise.
14339 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14340 into a form appropriate for ...
14341 (TARGET_SECONDARY_RELOAD): New.
14342 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14343 * config/mn10300/mn10300-protos.h: Update.
14344 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14345 reload_insi; use the "A" constraint for the scratch; handle AM33
14346 moves of sp to non-address registers.
14348 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14349 (*movqi_internal): ... here.
14350 (*am33_movhi, *mn10300_movhi): Merge into...
14351 (*movhi_internal): ... here.
14352 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14353 as the source/destination of moves from/to SP.
14354 (movsf): Only allow for AM33-2.
14355 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14356 any integer constant constraint. Only allow for AM33-2. Tidy
14357 all of the alternative outputs.
14358 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14359 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14361 (udivsi3, umodsi3): New patterns for MN103 only.
14363 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14365 * doc/tm.texi.in: Spell out that a lack of register class unions
14367 * doc/tm.texi: Regenerate.
14369 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14371 PR rtl-optimization/47337
14372 * dce.c (check_argument_store): New function.
14373 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14375 PR tree-optimization/47290
14376 * tree-eh.c (infinite_empty_loop_p): New function.
14377 (cleanup_empty_eh): Use it.
14379 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14382 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14383 (a64_expand_widen_sum): Ditto.
14384 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14385 (vec_extract_evenodd_help): Ditto.
14386 (vec_extract_evenv4hi): Ditto.
14387 (vec_extract_oddv4hi): Ditto.
14388 (vec_extract_evenv2si): Ditto.
14389 (vec_extract_oddv2si): Ditto.
14390 (vec_extract_evenv2sf): Ditto.
14391 (vec_extract_oddv2sf): Ditto.
14392 (vec_pack_trunc_v4hi: Ditto.
14393 (vec_pack_trunc_v2si): Ditto.
14394 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14395 (vec_interleave_highv8qi): Ditto.
14397 (vec_extract_oddv8qi): Ditto.
14398 (vec_interleave_lowv4hi): Ditto.
14399 (vec_interleave_highv4hi): Ditto.
14400 (vec_interleave_lowv2si): Ditto.
14401 (vec_interleave_highv2si): Ditto.
14403 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14405 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14406 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14407 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14408 (pa_c_mode_for_suffix): New.
14409 (TARGET_EXPAND_BUILTIN): Define.
14410 (TARGET_C_MODE_FOR_SUFFIX): Define.
14411 (pa_builtins): Define.
14412 (pa_init_builtins): Register __float128 type and init new support
14414 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14415 * config/pa/quadlib.c (_U_Qfcopysign): New.
14417 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14419 PR middle-end/46894
14420 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14421 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14424 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14426 PR tree-optimization/47179
14427 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14428 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14430 2011-01-18 Richard Guenther <rguenther@suse.de>
14432 PR rtl-optimization/47216
14433 * emit-rtl.c: Include tree-flow.h.
14434 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14435 of replicating it with different semantics.
14436 * Makefile.in (emit-rtl.o): Adjust.
14438 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14440 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14441 (cortex_a9_dp): Handle neon types correctly.
14443 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14445 PR rtl-optimization/47299
14446 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14447 subtarget. Use normal multiplication if both operands are constants.
14448 * expmed.c (expand_widening_mult): Don't try to optimize constant
14449 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14452 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14454 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14455 spacing after 'e.g.', typos, comma, hyphenation.
14457 2011-01-17 Richard Henderson <rth@redhat.com>
14459 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14460 (rx_restricted_mem_operand): New.
14461 (rx_shift_operand): Use register_operand.
14462 (rx_source_operand, rx_compare_operand): Likewise.
14463 * config/rx/rx.md (addsi3_flags): New expander.
14464 (adddi3): Rewrite as expander.
14465 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14466 (subsi3_flags): New expander.
14467 (subdi3): Rewrite as expander.
14468 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14470 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14471 (rx_init_builtins): Remove sat builtin.
14472 (rx_expand_builtin): Likewise.
14473 * config/rx/rx.md (ssaddsi3): New.
14474 (*sat): Rename from sat. Represent the CC_REG input.
14476 * config/rx/predicates.md (rshift_operator): New.
14477 * config/rx/rx.c (rx_expand_insv): Remove.
14478 * config/rx/rx-protos.h: Update.
14479 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14480 operand to the canonical position.
14481 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14482 (*bitclr, *bitclr_in_memory): Similarly.
14483 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14484 (insv): Retain the zero_extract in the expansion.
14486 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14487 (bswaphi2, bitinvert, revw): Likewise.
14489 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14490 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14491 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14492 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14493 (bitset, bitset_in_memory): Likewise.
14494 (bitinvert, bitinvert_in_memory): Likewise.
14495 (bitclr, bitclr_in_memory): Likewise.
14496 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14497 (rx_strend, rx_cmpstrn): Likewise.
14498 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14499 (bitop peep2 patterns): Remove.
14501 * config/rx/rx.c (rx_match_ccmode): New.
14502 * config/rx/rx-protos.h: Update.
14503 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14504 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14505 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14506 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14507 (fix_truncsfsi2, floatsisf2): Likewise.
14508 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14509 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14510 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14511 (*subsi3_flags, *xorsi3_flags): New.
14513 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14515 * config/rx/rx.c (rx_print_operand): Remove workaround for
14516 unsplit comparison operations.
14518 * config/rx/rx.md (movsicc): Split after reload.
14519 (*movsicc): Merge *movsieq and *movsine via match_operator.
14520 (*stcc): New pattern.
14522 * config/rx/rx.c (rx_float_compare_mode): Remove.
14523 * config/rx/rx.h (rx_float_compare_mode): Remove.
14524 * config/rx/rx.md (cstoresi4): Split after reload.
14525 (*sccc): New pattern.
14527 * config/rx/predicates.md (label_ref_operand): New.
14528 (rx_z_comparison_operator): New.
14529 (rx_zs_comparison_operator): New.
14530 (rx_fp_comparison_operator): New.
14531 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14532 Validate that the flags are set properly for the comparison.
14533 (rx_gen_cond_branch_template): Remove.
14534 (rx_cc_modes_compatible): Remove.
14535 (mode_from_flags): New.
14536 (flags_from_code): Rename from flags_needed_for_conditional.
14537 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14538 (rx_select_cc_mode): Likewise.
14539 (rx_split_fp_compare): New.
14540 (rx_split_cbranch): New.
14541 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14542 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14543 (*cbranchsf4): Similarly.
14544 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14545 match_operator and rx_split_cbranch.
14546 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14547 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14548 (*cmpsi): Rename from cmpsi.
14549 (*tstsi): Rename from tstsi.
14550 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14551 (*conditional_branch): Rename from conditional_branch.
14552 (*reveresed_conditional_branch): Remove.
14553 (b<code>): Remove expander.
14554 * config/rx/rx-protos.h: Update.
14556 * config/rx/rx.c (rx_compare_redundant): Remove.
14557 * config/rx/rx.md (cmpsi): Don't use it.
14558 * config/rx/rx-protos.h: Update.
14560 * config/rx/rx-modes.def (CC_F): New mode.
14561 * config/rx/rx.c (rx_select_cc_mode): New.
14562 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14563 * config/rx/rx-protos.h: Update.
14565 2011-01-17 Richard Henderson <rth@redhat.com>
14567 * except.c (dump_eh_tree): Fix stray ; after for statement.
14569 2011-01-17 Richard Guenther <rguenther@suse.de>
14571 PR tree-optimization/47313
14572 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14573 handling before copying the body. Properly deal with
14574 by-reference result in SSA form.
14576 2011-01-17 Ian Lance Taylor <iant@google.com>
14579 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14580 (struct_value_alias_set): Don't define.
14581 (sparc_option_override): Don't set sparc_sr_alias_set and
14582 struct_value_alias_set.
14583 (save_or_restore_regs): Use gen_frame_mem rather than calling
14585 (sparc_struct_value_rtx): Likewise.
14587 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14590 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14591 (_mm_maskstore_pd): Likewise.
14592 (_mm_maskload_ps): Likewise.
14593 (_mm_maskstore_ps): Likewise.
14594 (_mm256_maskload_pd): Change mask to __m256i.
14595 (_mm256_maskstore_pd): Likewise.
14596 (_mm256_maskload_ps): Likewise.
14597 (_mm256_maskstore_ps): Likewise.
14599 * config/i386/i386-builtin-types.def: Updated.
14600 (ix86_expand_special_args_builtin): Likewise.
14602 * config/i386/i386.c (bdesc_special_args): Update
14603 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14604 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14605 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14606 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14608 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14609 Use <avxpermvecmode> on mask register.
14610 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14612 2011-01-17 Olivier Hainque <hainque@adacore.com>
14613 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14614 Eric Botcazou <ebotcazou@adacore.com>
14617 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14618 if <= USHRT_MAX in 32-bit mode.
14620 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14622 * doc/install.texi (Configuration, Specific): Wrap long
14623 lines in examples. Allow line wrapping in long options
14624 and URLs where beneficial for PDF output.
14626 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14628 * config/mips/mips.c (mips_classify_symbol): Don't return
14629 SYMBOL_PC_RELATIVE for nonlocal labels.
14631 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14633 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14635 2011-01-15 Jan Hubicka <jh@suse.cz>
14637 PR tree-optimization/47276
14638 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14639 declarations as needed.
14641 2011-01-15 Martin Jambor <mjambor@suse.cz>
14643 * common.opt (fdevirtualize): New flag.
14644 * doc/invoke.texi (Option Summary): Document it.
14645 * opts.c (default_options_table): Add devirtualize flag.
14646 * ipa-prop.c (detect_type_change): Return immediately if
14647 devirtualize flag is not set.
14648 (detect_type_change_ssa): Likewise.
14649 (compute_known_type_jump_func): Likewise.
14650 (ipa_analyze_virtual_call_uses): Likewise.
14652 2011-01-14 Martin Jambor <mjambor@suse.cz>
14654 PR tree-optimization/45934
14655 PR tree-optimization/46302
14656 * ipa-prop.c (type_change_info): New type.
14657 (stmt_may_be_vtbl_ptr_store): New function.
14658 (check_stmt_for_type_change): Likewise.
14659 (detect_type_change): Likewise.
14660 (detect_type_change_ssa): Likewise.
14661 (compute_complex_assign_jump_func): Check for dynamic type change.
14662 (compute_complex_ancestor_jump_func): Likewise.
14663 (compute_known_type_jump_func): Likewise.
14664 (compute_scalar_jump_functions): Likewise.
14665 (ipa_analyze_virtual_call_uses): Likewise.
14666 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14668 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14670 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14671 * config/i386/i386.opt (msse5): New Alias.
14673 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14675 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14676 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14677 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14678 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14680 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14682 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14684 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14685 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14686 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14687 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14689 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14691 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14693 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14695 2011-01-14 Mike Stump <mikestump@comcast.net>
14697 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14698 * config/fr30/fr30.md: Likweise
14699 (movsi_push): Likewise.
14700 (movsi_pop): Likewise.
14701 (enter_func): Likewise.
14702 * config/moxie/moxie.md (movsi_push): Likewise.
14703 (movsi_pop): Likewise.
14705 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14707 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14708 %{no_archive} %{exact_version}.
14709 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14710 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14711 %{no_archive} %{exact_version}.
14712 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14713 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14714 * config/mips/vxworks.h: Likewise.
14716 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14718 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14720 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14722 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14723 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14727 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14730 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14732 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14734 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14735 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14737 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14738 Don't handle -shlib.
14740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14742 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14743 (CC1_SPEC): Don't handle -profile.
14745 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14747 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14748 * config/mips/mips.h (CC1_SPEC): Likewise.
14750 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14752 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14753 * config/mips/mips.h (CC1_SPEC): Likewise.
14755 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14757 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14758 * config/m32r/linux.h (LINK_SPEC): Likewise.
14759 * config/mips/linux.h (LINK_SPEC): Likewise.
14760 * config/mips/linux64.h (LINK_SPEC): Likewise.
14761 * config/sparc/linux.h (LINK_SPEC): Likewise.
14762 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14763 LINK_SPEC): Likewise.
14764 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14768 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14770 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14772 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14774 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14775 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14777 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14779 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14781 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14783 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14784 supports -Bstatic/-Bdynamic.
14785 * configure: Regenerate.
14787 2011-01-14 Jan Hubicka <jh@suse.cz>
14788 Jack Howarth <howarth@bromo.med.uc.edu>
14791 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14792 when checking debug_info_level. Test write_symbols instead of
14793 debug_hooks->var_location when setting flag_var_tracking_uninit.
14795 2011-01-14 Richard Guenther <rguenther@suse.de>
14797 PR tree-optimization/47179
14798 * target.def (ref_may_alias_errno): New target hook.
14799 * targhooks.h (default_ref_may_alias_errno): Declare.
14800 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14801 (default_ref_may_alias_errno): New function.
14802 * target.h (struct ao_ref_s): Declare.
14803 * tree-ssa-alias.c: Include target.h.
14804 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14805 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14806 (targhooks.o): Likewise.
14807 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14808 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14810 2011-01-14 Richard Guenther <rguenther@suse.de>
14812 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14814 2011-01-14 Richard Guenther <rguenther@suse.de>
14816 PR tree-optimization/47280
14817 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14818 return CFG changes.
14819 (tree_ssa_forward_propagate_single_use_vars): Deal with
14820 CFG changes from associate_plusminus.
14822 2011-01-14 Richard Guenther <rguenther@suse.de>
14824 PR middle-end/47281
14826 2011-01-11 Richard Guenther <rguenther@suse.de>
14828 PR tree-optimization/46076
14829 * tree-ssa.c (useless_type_conversion_p): Conversions from
14830 unprototyped to empty argument list function types are useless.
14832 2011-01-14 Richard Guenther <rguenther@suse.de>
14834 PR tree-optimization/47286
14835 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14837 2011-01-14 Martin Jambor <mjambor@suse.cz>
14839 PR middle-end/46823
14840 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14842 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14844 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14845 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14846 * config/xtensa/xtensa.c (xtensa_libcall_value,
14847 xtensa_function_value_regno_p): New functions.
14848 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14850 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14853 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14855 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14856 New function prototype.
14857 * config/i386/winnt.c (i386_pe_assemble_visibility):
14858 Warn only if attribute was specified by user.
14860 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14863 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14865 (floatunsdidf2_fcfidu): Ditto.
14867 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14869 * config/s390/s390.c (print_operand_address): Replace 'error' with
14870 'output_operand_lossage'.
14871 (print_operand): Likewise.
14873 2011-01-13 Jeff Law <law@redhat.com>
14875 PR rtl-optimization/39077
14876 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14877 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14878 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14879 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14880 * gcse.c (prune_insertions_deletions): New function.
14881 (compute_pre_data): Use it.
14883 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14886 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14888 (prune_unused_types_mark): Use it.
14890 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14892 PR rtl-optimization/45352
14893 * sel-sched.c: Update copyright years.
14894 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14895 in the advancing loop when we have issued issue_rate insns.
14897 2011-01-12 Richard Henderson <rth@redhat.com>
14899 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14900 (TARGET_MD_ASM_CLOBBERS): New.
14902 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14903 (TARGET_DELEGITIMIZE_ADDRESS): New.
14905 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14906 (clzsi2, *bsch): New patterns.
14908 * config/mn10300/mn10300.md (INT): New mode iterator.
14909 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14911 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14912 flag_split_wide_types.
14914 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14915 (mn10300_trampoline_init): Rewrite without a template, an immediate
14916 load and a direct branch.
14917 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14919 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14921 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14922 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14923 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14924 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14926 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14929 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14932 2011-01-12 Jan Hubicka <jh@suse.cz>
14935 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14936 (PLUGIN_COND_CLOSE): New macro.
14937 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14939 2011-01-12 Richard Guenther <rguenther@suse.de>
14942 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14943 register variables in a MEM_REF.
14945 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14947 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14948 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14949 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14950 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14951 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14952 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14953 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14954 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14955 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14956 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14957 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14958 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14959 * config/gnu-user.h: New. Copied from linux.h.
14960 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14961 GNU_USER_TARGET_STARTFILE_SPEC.
14962 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14963 GNU_USER_TARGET_ENDFILE_SPEC.
14964 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14965 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14966 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14967 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14968 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14969 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14970 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14971 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14972 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14973 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14974 * config/arm/linux-eabi.h (CC1_SPEC): Use
14975 GNU_USER_TARGET_CC1_SPEC.
14976 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14977 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14978 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14979 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14980 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14981 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14982 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14983 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14985 2011-01-12 Richard Guenther <rguenther@suse.de>
14988 * doc/invoke.texi (ffast-math): Document it is turned on
14991 2011-01-12 Jan Hubicka <jh@suse.cz>
14993 PR tree-optimization/47233
14994 * opts.c (common_handle_option): Disable ipa-reference with profile
14997 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14999 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15002 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15004 * c-parser.c (c_lex_one_token): Updated and reindented some
15005 comments. No changes in code.
15007 2011-01-11 Ian Lance Taylor <iant@google.com>
15009 * godump.c (go_output_var): Don't output the variable if there is
15010 already a type with the same name.
15012 2011-01-11 Ian Lance Taylor <iant@google.com>
15014 * godump.c (go_format_type): Don't generate float80.
15016 2011-01-11 Richard Henderson <rth@redhat.com>
15018 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15019 declaration. Rewrite for both speed and size.
15020 (mn10300_address_cost_1): Remove.
15021 (mn10300_register_move_cost): New.
15022 (mn10300_memory_move_cost): New.
15023 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15024 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15025 extensions, shifts, BSWAP, CLZ.
15026 (mn10300_wide_const_load_uses_clr): Remove.
15027 (TARGET_REGISTER_MOVE_COST): New.
15028 (TARGET_MEMORY_MOVE_COST): New.
15029 * config/mn10300/mn10300-protos.h: Update.
15030 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15032 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15033 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15034 * config/mn10300/mn10300-protos.h: Update.
15035 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15036 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15037 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15038 (*test_int_bitfield, *test_byte_bitfield): Remove.
15039 (*bit_test, *subreg_bit_test): Remove.
15040 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15042 * config/mn10300/constraints.md ("c"): Rename from "A".
15043 ("A", "D"): New constraint letters.
15044 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15045 (fmssf4, fnmasf4, fnmssf4): Likewise.
15047 * config/mn10300/mn10300.md (isa): New attribute.
15048 (enabled): New attribute.
15050 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15051 (abssf2, negsf2): Define only for hardware fp.
15052 (sqrtsf2): Reformat.
15053 (addsf3, subsf3, mulsf3): Merge expander and insn.
15055 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15056 (DEBUGGER_AUTO_OFFSET): Remove.
15057 (DEBUGGER_ARG_OFFSET): Remove.
15059 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15060 Emit register stores with the same offsets as the hardware.
15061 (mn10300_store_multiple_operation): Don't check that the register
15062 save offsets are monotonic.
15063 * config/mn10300/mn10300-protos.h: Update.
15065 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15067 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15068 in terms of the value on the stack, not the MDR register.
15070 2011-01-11 Jan Hubicka <jh@suse.cz>
15074 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15075 (symbol_alias_set_destroy, symbol_alias_set_contains,
15076 propagate_aliases_backward): Declare.
15077 * lto-streamer-out.c (struct sets): New sturcture.
15078 (trivally_defined_alias): New function.
15079 (output_alias_pair_p): Rewrite.
15080 (output_unreferenced_globals): Fix output of alias pairs.
15081 (produce_symtab): Likewise.
15082 * ipa.c (function_and_variable_visibility): Set weak alias destination
15084 * varasm.c (symbol_alias_set_t): Remove.
15085 (symbol_alias_set_destroy): Export.
15086 (propagate_aliases_forward, propagate_aliases_backward): New functions
15088 (compute_visible_aliases): ... this one; remove.
15089 (trivially_visible_alias): New
15090 (trivially_defined_alias): New.
15091 (remove_unreachable_alias_pairs): Rewrite.
15092 (finish_aliases_1): Reorganize code checking if alias is defined.
15093 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15096 2011-01-11 Richard Guenther <rguenther@suse.de>
15098 PR tree-optimization/46076
15099 * tree-ssa.c (useless_type_conversion_p): Conversions from
15100 unprototyped to empty argument list function types are useless.
15102 2011-01-11 Richard Guenther <rguenther@suse.de>
15104 PR middle-end/45235
15105 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15106 volatile MEMs as MEM_READONLY_P.
15108 2011-01-11 Richard Guenther <rguenther@suse.de>
15110 PR tree-optimization/47239
15111 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15113 2011-01-11 Jeff Law <law@redhat.com>
15115 PR tree-optimization/47086
15116 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15117 IVs from statements that might throw.
15119 2011-01-10 Jan Hubicka <jh@suse.cz>
15122 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15124 2011-01-10 Jan Hubicka <jh@suse.cz>
15127 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15128 when correcting profile.
15130 2011-01-10 Jan Hubicka <jh@suse.cz>
15133 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15134 DECL_FINI_PRIORITY.
15135 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15136 Restore DECL_FINI_PRIORITY.
15138 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15140 * doc/gimple.texi: Fix quoting of multi-word return values in
15141 @deftypefn statements. Ensure presence of return value. Wrap
15142 overlong @deftypefn lines.
15143 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15144 descriptions of removed functions.
15145 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15146 of multi-word return value in @deftypefn statement.
15148 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15150 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15151 (Conditional Expressions, Logical Operators)
15152 (Statement and operand traversals): Do not indent smallexample
15153 code. Fix duplicate function argument in example.
15155 2011-01-10 Jeff Law <law@redhat.com>
15157 PR tree-optimization/47141
15158 * ipa-split.c (split_function): Handle case where we are
15159 returning a value and the return block has a virtual operand phi.
15161 2011-01-10 Jan Hubicka <jh@suse.cz>
15163 PR tree-optimization/47234
15164 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15165 (pass_feedback_split_functions): Declare.
15166 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15168 * ipa-split.c (gate_split_functions): Update comments; disable
15169 split-functions for profile_arc_flag and branch_probabilities.
15170 (gate_feedback_split_functions): New function.
15171 (execute_feedback_split_functions): New function.
15172 (pass_feedback_split_functions): New global var.
15174 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15177 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15178 calling gimple_call_set_cannot_inline.
15180 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15182 * config/darwin-sections.def: Remove unused section.
15184 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15187 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15189 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15192 * c-parser.c (c_parser_declaration_or_fndef): Improved
15195 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15197 * config/i386/winnt.c (i386_pe_start_function): Make sure
15198 to switch back to function's section.
15200 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15204 * plugin.c: Move include of dlfcn.h from here...
15205 * system.h: ... to here.
15207 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15209 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15211 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15212 two extra empty pages in PDF output.
15214 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15217 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15218 for error recovery purposes behave as if it was not specified so
15219 that the default type is usd.
15221 2011-01-07 Jan Hubicka <jh@suse.cz>
15223 PR tree-optmization/46469
15224 * ipa.c (function_and_variable_visibility): Clear needed flags on
15225 nodes with external decls; handle weakrefs merging correctly.
15227 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15229 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15232 2011-01-07 Jan Hubicka <jh@suse.cz>
15234 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15235 and no longer claim that gold is required for linker plugin.
15236 * configure: Regenerate.
15237 * gcc.c (PLUGIN_COND): New macro.
15238 (LINK_COMMAND_SPEC): Use it.
15239 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15240 * config.in (HAVE_LTO_PLUGIN): New.
15241 * configure.ac (--with-lto-plugin): New parameter; autodetect
15244 2011-01-07 Jan Hubicka <jh@suse.cz>
15246 PR tree-optimization/46367
15247 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15248 when we can update original.
15249 (cgraph_mark_inline_edge): Sanity check.
15250 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15252 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15254 * config/spu/spu.h (ASM_COMMENT_START): Define.
15256 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15259 * gcc.c (%>S): New.
15260 (SWITCH_KEEP_FOR_GCC): Likewise.
15261 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15262 (do_spec_1): Handle "%>".
15264 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15266 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15269 * config/i386/i386.c (ix86_delegitimize_address): If
15270 simplify_gen_subreg fails, return orig_x.
15273 * value-prof.c (gimple_stringop_fixed_value): Handle
15274 lhs of the call properly.
15276 2011-01-07 Jan Hubicka <jh@suse.cz>
15279 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15281 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15283 * target.def (function_switched_text_sections): New hook.
15284 * doc/tm.texi: Regenerated.
15285 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15286 * final.c (default_function_switched_text_sections): New.
15287 (final_scan_insn): Call function_switched_text_sections when a
15288 mid-function section change occurs.
15289 * output.h (default_function_switched_text_sections): Declare.
15290 * config/darwin-protos.h (darwin_function_switched_text_sections):
15292 * config/darwin.c (darwin_function_switched_text_sections): New.
15293 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15295 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15297 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15298 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15299 the secondary code fragment when outputting for DWARF == 2.
15301 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15303 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15304 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15306 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15307 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15309 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15312 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15313 when it is not empty.
15315 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15318 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15319 (case ${target}): Add btver1.
15320 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15321 -march=native recognize btver1 processors.
15322 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15323 btver1 def_and_undef
15324 * config/i386/i386.c (struct processor_costs btver1_cost): New
15326 (m_BTVER1): New definition.
15327 (m_AMD_MULTIPLE): Includes m_BTVER1.
15328 (initial_ix86_tune_features): Add btver1 tune.
15329 (processor_target_table): Add btver1 entry.
15330 (static const char *const cpu_names): Add btver1 entry.
15331 (software_prefetching_beneficial_p): Add btver1.
15332 (ix86_option_override_internal): Add btver1 instruction sets.
15333 (ix86_issue_rate): Add btver1.
15334 (ix86_adjust_cost): Add btver1.
15335 * config/i386/i386.h (TARGET_BTVER1): New definition.
15336 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15337 (enum processor_type): Add PROCESSOR_BTVER1.
15338 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15340 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15343 * config/i386/i386.c (legitimize_tls_address)
15344 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15345 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15346 (tls_initial_exec_64_sun): New pattern.
15348 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15350 * doc/invoke.texi (Overall Options): Improve wording and markup
15351 of the description of -wrapper.
15353 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15355 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15356 rdynamic, threads): New Driver options.
15358 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15361 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15362 if coming from .tdata.
15363 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15365 2011-01-06 Jan Hubicka <jh@suse.cz>
15368 * collect2.c (main): Do not enable LTOmode when plugin is active.
15370 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15373 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15374 --version output if supported.
15375 * configure: Regenerate.
15377 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15379 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15382 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15385 * c-convert.c (convert): When converting a complex expression
15386 other than COMPLEX_EXPR to a different complex type, ensure
15387 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15388 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15389 when converting COMPLEX_TYPE.
15391 2011-01-06 Ira Rosen <irar@il.ibm.com>
15393 PR tree-optimization/47139
15394 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15395 only the last reduction value is used outside the loop. Update
15398 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15400 * config/rtems.opt: New.
15401 * config.gcc (*-*-rtems*): Use rtems.opt.
15403 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15405 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15406 processors do not support 3DNow instructions.
15408 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15410 * config/spu/spu.c (spu_option_override): Set parameter
15411 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15413 2011-01-05 Jan Hubicka <jh@suse.cz>
15415 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15416 at the command line.
15418 2011-01-05 Martin Jambor <mjambor@suse.cz>
15421 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15422 deltas on streamed outgoing edges.
15423 (output_node_opt_summary): Output info for outgoing edges only when
15424 the node is in new parameter set.
15425 (output_cgraph_opt_summary): New parameter set, passed to the two
15426 aforementioned functions. Update its forward declaration and its
15429 2011-01-05 Tom Tromey <tromey@redhat.com>
15431 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15432 operator to c_finish_omp_atomic.
15433 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15434 (build_unary_op): Update.
15435 (build_modify_expr): Update.
15436 (build_asm_expr): Update.
15438 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15440 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15441 newly inserted insns.
15442 (pad_bb): Likewise.
15443 (spu_emit_branch_hint): Likewise.
15444 (insert_hbrp_for_ilb_runout): Likewise.
15445 (spu_machine_dependent_reorg): Call df_finish_pass after
15446 schedule_insns returns.
15448 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15450 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15452 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15454 PR tree-optimization/47005
15455 * tree-sra.c (struct access): Add 'non_addressable' bit.
15456 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15457 (decide_one_param_reduction): Return 0 if the parameter is passed by
15458 reference and one of the accesses in the group is non_addressable.
15460 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15462 PR tree-optimization/47056
15463 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15464 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15465 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15467 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15469 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15470 initializer. Skip view conversions from aggregate types.
15472 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15475 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15477 2011-01-04 Philipp Thomas <pth@suse.de>
15479 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15482 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15484 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15485 on empty epilogue sequences.
15487 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15489 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15490 non-static): New Driver options.
15492 2011-01-04 Jie Zhang <jie@codesourcery.com>
15495 * gcc.c (default_compilers[]): Set combinable field to 0
15496 for all assembly languages.
15498 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15500 * config/mips/loongson3a.md: New file.
15501 * config/mips/mips.md: Include loongson3a.md.
15502 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15505 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15507 PR middle-end/47017
15508 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15509 instead of convert_memory_address_addr_space on the base expression.
15511 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15513 * config/spu/spu.c (spu_option_override): Update error text
15514 for bad -march= / -mtune= values.
15516 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15518 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15519 if branch-hint optimization will be performed.
15521 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15523 PR tree-optimization/47148
15524 * ipa-split.c (split_function): Convert arguments to
15525 DECL_ARG_TYPE if possible.
15527 PR tree-optimization/47155
15528 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15529 when computing uns.
15531 PR rtl-optimization/47157
15532 * combine.c (try_combine): If undobuf.other_insn becomes
15533 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15534 and set *new_direct_jump_p too.
15536 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15538 PR tree-optimization/47021
15539 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15541 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15543 * gcc.c (process_command): Update copyright notice dates.
15544 * gcov.c (print_version): Likewise.
15545 * gcov-dump.c (print_version): Likewise.
15546 * mips-tfile.c (main): Likewise.
15547 * mips-tdump.c (main): Likewise.
15549 2011-01-03 Martin Jambor <mjambor@suse.cz>
15551 PR tree-optimization/46801
15552 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15553 aggregate fields start at byte boundary instead of the bit-field flag.
15555 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15558 * gcc.c (main): Revert revision 168407.
15560 2011-01-03 Martin Jambor <mjambor@suse.cz>
15562 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15564 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15566 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15567 vector optab to expand vector/scalar shift, update gimple to vector.
15569 2011-01-03 Martin Jambor <mjambor@suse.cz>
15571 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15574 2011-01-03 Martin Jambor <mjambor@suse.cz>
15576 PR tree-optimization/46984
15577 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15579 (cgraph_create_indirect_edge): Fixed line length.
15580 (cgraph_indirect_call_info): Declare.
15581 (cgraph_make_edge_direct) Update declaration.
15582 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15583 (cgraph_create_indirect_edge): Use it.
15584 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15586 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15587 the new thunk_delta representation.
15588 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15590 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15591 (ipa_read_indirect_edge_info): Likewise.
15592 * lto-cgraph.c (output_edge_opt_summary): New function.
15593 (output_node_opt_summary): Call it on all outgoing edges.
15594 (input_edge_opt_summary): New function.
15595 (input_node_opt_summary): Call it on all outgoing edges.
15597 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15600 * gcc.c (main): Don't check have_o when settting combine_inputs.
15602 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15604 * regrename.c: Add general comment describing the pass.
15605 (struct du_head): Remove 'length' field.
15606 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15607 (regrename_optimize): Do not sort chains. Rework comments, add others.
15608 Force renaming to the preferred class (if any) in the first pass and do
15609 not consider registers that belong to it in the second pass.
15610 (create_new_chain): Do not set 'length' field.
15611 (scan_rtx_reg): Likewise.
15613 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15615 PR tree-optimization/47140
15616 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15617 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15618 to bit_value_binop.
15620 PR rtl-optimization/47028
15621 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15622 parm_birth_insn instead of at the beginning of first bb.
15624 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15626 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15627 Remove the word "see" before "@pxref".
15628 * doc/rtl.texi: Remove the word "see" before "@pxref".
15630 2011-01-01 Jan Hubicka <jh@suse.cz>
15632 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15635 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15638 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15641 Copyright (C) 2011 Free Software Foundation, Inc.
15643 Copying and distribution of this file, with or without modification,
15644 are permitted in any medium without royalty provided the copyright
15645 notice and this notice are preserved.