1 2011-05-23 David Li <davidxl@google.com>
3 PR tree-optimization/48988
4 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5 Initialize has_valid_pred for each pred chain.
7 2011-05-23 Richard Guenther <rguenther@suse.de>
9 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
10 (iterative_hash_gimple_type): Always hash type names.
12 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
14 * c-typeck.c (build_function_call_vec): Tweak call to
15 check_function_arguments.
17 2011-05-23 Richard Guenther <rguenther@suse.de>
19 PR tree-optimization/49115
20 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
21 is not necessarily carried out, do not claim it kills the ref.
22 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
24 2011-05-23 Richard Guenther <rguenther@suse.de>
27 * builtins.c (fold_builtin_memory_op): Be less restrictive about
28 what pointer types we accept for folding.
30 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32 * gthr-gnat.c: Remove.
33 * gthr-gnat.h: Remove.
34 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
35 * config/t-freebsd (LIB2ADDEH): Likewise.
36 * config/t-linux (LIB2ADDEH): Likewise.
37 * config/t-sol2 (LIB2ADDEH): Likewise.
38 * config/ia64/t-vms (LIB2ADDEH): Likewise.
39 * configure.ac (target_thread_file): Remove gnat handling.
40 * configure: Regenerate.
41 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
43 2011-05-23 Tristan Gingold <gingold@adacore.com>
44 Eric Botcazou <ebotcazou@adacore.com>
46 * gcov.c (create_file_names): If no object directory is specified,
47 keep the directory of the file.
49 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
51 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
52 * configure: Regenerate.
54 2011-05-23 Jakub Jelinek <jakub@redhat.com>
57 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
58 failed and the comparison has a single bit signed type, use
59 constm1_rtx instead of const1_rtx for true value.
60 (do_store_flag): If ops->type is single bit signed type, disable
61 signel bit test optimization and pass -1 instead of 1 as last
62 parameter to emit_store_flag_force.
64 2011-05-23 Tom de Vries <tom@codesourcery.com>
67 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
69 (infer_loop_bounds_from_undefined): Use new function.
71 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
73 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
74 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
75 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
77 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
79 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
81 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
82 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
85 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
87 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
89 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
91 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
92 UNSPEC_MOVE_PIC pattern.
94 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
96 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
97 (sparc-*-rtems*): Likewise.
98 (sparc64-*-elf*): Likewise.
99 (sparc64-*-rtems*): Likewise.
100 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
101 * config/sparc/t-crtin: New file.
102 * config/sparc/t-sol2 (crti.o): Delete rule.
104 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
105 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
106 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
107 (ENDFILE_SPEC): Add crtn.o.
109 2011-05-22 Tom de Vries <tom@codesourcery.com>
112 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
113 CODE_CONTAINS_STRUCT (TS_COMMON).
115 2011-05-22 Jakub Jelinek <jakub@redhat.com>
118 * expmed.c (extract_fixed_bit_field): Test whether target can be used
119 only after deciding which mode to use.
121 2011-05-22 Tom de Vries <tom@codesourcery.com>
124 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
125 for call to get_shiftadd_cost.
127 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
130 * config/i386/cpuid.h (bit_MMXEXT): New define.
132 2011-05-22 Nick Clifton <nickc@redhat.com>
134 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
135 initialisation of non-existant args[2] element. Use args[] array
136 not arg[] array to pass arguments to build_function_type_list.
138 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
140 PR tree-optimization/49087
141 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
143 2011-05-21 Jason Merrill <jason@redhat.com>
146 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
147 static storage duration.
149 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
151 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
154 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
156 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
157 false if there are call-saved registers here...
158 (sparc_can_use_return_insn_p): ...but here instead.
159 (save_or_restore_regs): Fix thinko.
160 (sparc_expand_prologue): Use current_function_is_leaf.
161 (sparc_frame_pointer_required): Likewise.
163 2011-05-21 Nick Clifton <nickc@redhat.com>
166 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
168 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
170 * gengtype.c (walk_type): Implemented "atomic" GTY option.
171 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
173 2011-05-21 Joseph Myers <joseph@codesourcery.com>
175 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
176 * optc-gen.awk: Move common code to opt-read.awk.
177 * opth-gen.awk: Likewise.
178 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
180 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
182 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
184 2011-05-20 Tom de Vries <tom@codesourcery.com>
187 * tree-ssa-loop-ivopts.c: Include expmed.h.
188 (get_shiftadd_cost): New function.
189 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
191 2011-05-20 Jakub Jelinek <jakub@redhat.com>
194 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
195 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
197 2011-05-20 Joseph Myers <joseph@codesourcery.com>
199 * Makefile.in: Update comment referring to $(OBJS-common).
201 2011-05-20 Ian Lance Taylor <iant@google.com>
203 * godump.c (go_output_typedef): Put enum constants in the macro
204 hash table to avoid duplicate Go const definitions.
206 2011-05-20 Joseph Myers <joseph@codesourcery.com>
208 * Makefile.in (LIBDEPS): Add libcommon.a.
210 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
211 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
212 pretty-print.o and version.o.
213 (OBJS-libcommon): New.
214 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
215 (BACKEND): Add libcommon.a.
216 (MOSTLYCLEANFILES): Likewise.
218 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
219 (cpp$(exeext)): Likewise.
220 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
221 pretty-print.o and input.o.
222 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
223 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
225 (mips-tfile): Don't explicitly use version.o.
226 (mips-tdump): Likewise.
227 (gcov.o): Depend on $(DIAGNOSTIC_H).
228 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
229 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
230 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
231 * gcov-dump.c: Include intl.h and diagnostic.h.
232 (main): Initialize diagnostics.
233 * gcov.c: Include diagnostic.h.
235 (main): Initialize diagnostics.
236 * lto-wrapper.c: Include diagnostic.h.
237 (main): Initialize diagnostics.
239 2011-05-20 Michael Matz <matz@suse.de>
241 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
243 2011-05-20 Michael Matz <matz@suse.de>
244 Richard Guenther <rguenther@suse.de>
246 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
247 use lto_streamer_cache_append directly instead of returning a VEC.
248 (preload_common_node): Remove.
249 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
251 (lto_streamer_cache_create): Call lto_preload_common_nodes.
253 2011-05-20 Richard Guenther <rguenther@suse.de>
255 PR tree-optimization/49079
256 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
257 MEM_REFs correctly for the trailing array access detection.
258 Special case constants the same way as decls for overall size
261 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
263 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
266 2011-05-20 Jakub Jelinek <jakub@redhat.com>
268 PR tree-optimization/49073
269 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
270 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
271 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
273 2011-05-20 Richard Guenther <rguenther@suse.de>
276 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
277 of pointer types the same way the middle-end does.
279 2011-05-20 Richard Guenther <rguenther@suse.de>
281 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
282 or pointer-to chains. Delay all fixup to uniquify_nodes.
284 2011-05-19 Quentin Neill <quentin.neill@amd.com>
286 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
287 (fma4_fmaddsub): Likewise
289 2011-05-19 Jan Hubicka <jh@suse.cz>
291 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
292 (GIMPLE_TYPE_PAIR_SIZE): New macro.
293 (type_pair_cache): New static var.
294 (lookup_type_pair): Use fixed sized custom hash; make inline.
295 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
296 calls of lookup_type_pair.
297 (print_gimple_types_stats): Remove cache stats.
298 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
301 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
303 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
304 when TARGET_RDRND is active.
305 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
306 Generate dummy SImode target register when target is NULL.
308 2011-05-19 Joseph Myers <joseph@codesourcery.com>
310 * config/arm/arm-fpus.def: New.
311 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
313 * config/arm/arm-tables.opt: Regenerate.
314 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
315 (arm_option_override): Don't decode FPU name to string here.
316 * config/arm/arm.opt (mfpu=): Use Enum.
317 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
320 2011-05-19 Joseph Myers <joseph@codesourcery.com>
322 * collect2.c: Include diagnostic.h.
323 (fatal_perror, fatal, error, fancy_abort): Remove.
324 (main): Set progname. Call xmalloc_set_program_name and
325 diagnostic_initialize.
326 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
327 scan_libraries, resolve_lib_name): Call fatal_error instead of
328 fatal and fatal_perror.
329 * collect2.h (error, fatal, fatal_perror): Don't declare.
330 * tlink.c: Include diagnostic-core.h.
331 (recompile_files): Call fatal_error instead of fatal_perror.
332 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
333 pretty-print.o and input.o.
334 (collect2.o, tlink.o): Update dependencies.
336 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
340 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
343 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
344 COMDAT group syntax, both SPARC and x86 variants.
345 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
346 * configure: Regenerate.
347 * config/sol2.h (TARGET_SOLARIS): Define.
348 (PUSHSECTION_FORMAT): Remove.
349 (SECTION_NAME_FORMAT): Define.
350 * config/sol2.c: Include hashtab.h.
351 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
352 expansion, using SECTION_NAME_FORMAT.
353 (solaris_comdat_htab): New variable.
354 (struct comdat_entry): Define.
355 (comdat_hash): New function.
356 (comdat_eq): New function.
357 (solaris_elf_asm_comdat_section): New function.
358 (solaris_define_comdat_signature): New function.
359 (solaris_code_end): New function.
360 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
361 (solaris_code_end): Declare.
362 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
363 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
365 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
366 Remove ATTRIBUTE_UNUSED.
367 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
368 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
369 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
370 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
371 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
372 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
373 (PUSHSECTION_FORMAT): Remove.
374 (SECTION_NAME_FORMAT): Redefine.
376 2011-05-19 Kai Tietz <ktietz@redhat.com>
378 * tree-cfg.c (verify_gimple_assign_binary): Barf on
379 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
380 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
382 2011-05-19 Anatoly Sokolov <aesok@post.ru>
383 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
385 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
387 2011-05-19 Richard Guenther <rguenther@suse.de>
390 * tree-object-size.c (addr_object_size): If the pointed-to
391 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
393 2011-05-19 Richard Guenther <rguenther@suse.de>
395 * gimple.c (gimple_types_compatible_p_1): Compare names of
396 the types themselves.
397 (iterative_hash_gimple_type): And hash them that way.
398 (gimple_register_type_1): If we register a main variant properly
399 initialize the leader to ourselves.
401 2011-05-19 Tom de Vries <tom@codesourcery.com>
404 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
405 get_loop_invariant_expr_id.
406 (get_loop_invariant_expr_id): Use get_expr_id.
407 (parm_decl_cost): New function.
408 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
409 Improve bound cost estimation. Use different inv_expr_id for elim and
412 2011-05-19 Tom de Vries <tom@codesourcery.com>
415 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
418 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
421 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
422 Properly handle load cast.
424 2011-05-18 Jakub Jelinek <jakub@redhat.com>
426 PR tree-optimization/49039
427 * tree-vrp.c (extract_range_from_binary_expr): For
428 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
429 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
431 2011-05-18 Tom de Vries <tom@codesourcery.com>
434 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
436 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
438 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
439 (*tls_global_dynamic_64): Ditto.
440 (*tls_local_dynamic_base_32_gnu): Ditto.
441 (*tls_local_dynamic_base_64): Ditto.
442 (tls_initial_exec_64_sun): Ditto.
444 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
446 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
447 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
449 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
450 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
451 * config/bfin/bfin.c (bfin_cpus): Add bf592.
452 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
453 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
454 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
455 * config/bfin/elf.h (LIB_SPEC): Add bf592.
457 2011-05-18 Joseph Myers <joseph@codesourcery.com>
459 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
460 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
461 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
462 target_thread_pointer, arm_structure_size_boundary, struct
463 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
464 struct abi_name, arm_all_abis): Remove.
465 (arm_option_override) Don't process most enumerated option values here.
466 Don't process target_fpe_name here. Work with integer not string for
467 structure size boundary; use separate diagnostics for each case.
468 * config/arm/arm.h (enum float_abi_type, enum
469 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
471 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
472 arm_structure_size_boundary): Remove.
473 * config/arm/arm.opt (mabi=): Use Enum and Init.
474 (arm_abi_type): New Enum and EnumValue entries.
475 (mfloat-abi=): Use Enum and Init.
476 (float_abi_type): New Enum and EnumValue entries.
477 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
478 (mfp16-format=): Use Enum and Init.
479 (arm_fp16_format_type): New Enum and EnumValue entries.
480 (mstructure-size-boundary=): Use UInteger and Init.
481 (mtp=): Use Enum and Init.
482 (arm_tp_type): New Enum and EnumValue entries.
484 2011-05-18 Richard Guenther <rguenther@suse.de>
486 PR tree-optimization/49018
487 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
488 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
489 gimple_has_side_effects.
491 2011-05-18 Richard Guenther <rguenther@suse.de>
493 * gimple.c (gimple_register_type_1): New function, split out from ...
494 (gimple_register_type): ... here. Avoid infinite recursion.
496 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
498 PR tree-optimization/41881
499 * tree-vectorizer.h (struct _loop_vec_info): Add new field
500 reduction_chains along with a macro for its access.
501 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
502 (destroy_loop_vec_info): Free reduction chains.
503 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
504 (vect_is_slp_reduction): New function.
505 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
506 (vect_create_epilog_for_reduction): Support SLP reduction chains.
507 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
508 definition types for reduction chains.
509 (vect_supported_load_permutation_p): Don't allow permutations for
511 (vect_analyze_slp_instance): Support reduction chains.
512 (vect_analyze_slp): Try to build SLP instance from reduction chains.
513 (vect_get_constant_vectors): Handle reduction chains.
514 (vect_schedule_slp_instance): Mark the first statement of the
515 reduction chain as reduction.
517 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
519 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
520 names for group elements access.
521 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
522 reduction chains as well. Remove data reference and interleaving
523 related words from the fields names.
524 * tree-vect-loop.c (vect_transform_loop): Use new names for group
526 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
527 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
528 vect_update_interleaving_chain, vect_same_range_drs,
529 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
530 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
531 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
532 vect_analyze_group_access, vect_analyze_data_ref_access,
533 vect_create_data_ref_ptr, vect_transform_strided_load,
534 vect_record_strided_load_vectors): Likewise.
535 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
536 vect_model_load_cost, vectorizable_store, vectorizable_load,
537 vect_remove_stores, new_stmt_vec_info): Likewise.
538 * tree-vect-slp.c (vect_build_slp_tree,
539 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
541 2011-05-18 Richard Guenther <rguenther@suse.de>
544 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
545 operand verification.
546 (verify_gimple_assign_binary): Likewise.
547 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
548 to non-1-precision BOOLEAN_TYPEs.
550 2011-05-18 Tom de Vries <tom@codesourcery.com>
553 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
555 2011-05-18 Jakub Jelinek <jakub@redhat.com>
557 PR tree-optimization/49000
558 * tree-ssa.c (execute_update_addresses_taken): Call
559 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
560 be rewritten and decl has been marked for renaming, reset
563 2011-05-17 Joseph Myers <joseph@codesourcery.com>
565 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
566 enum_opts_set when testing if attributes have set -mfpmath=.
568 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
570 * config/mips/mips.c (mips_handle_option): Remove unused variable.
572 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
574 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
576 * tree-inline.c (maybe_inline_call_in_expr): Initialize
577 id.transform_lang_insert_block with NULL.
579 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
582 (output_fp_compare): Change args 3 and 4 to bool.
583 (ix86_expand_call): Change arg 6 to bool.
584 (ix86_attr_length_immediate_default): Change arg 2 to bool.
585 (ix86_attr_length_vex_default): Change arg 3 to bool.
586 * config/i386/i386.md: Update all uses.
587 * config/i386/i386.c: Ditto.
588 (ix86_flags_dependent): Change return type to bool.
590 2011-05-17 Richard Guenther <rguenther@suse.de>
592 * gimple.c (type_hash_pair_compare): Fix comparison.
594 2011-05-17 Richard Guenther <rguenther@suse.de>
596 * gimple.c (iterative_hash_gimple_type): Simplify singleton
597 case some more, fix final hash value of the non-singleton case.
599 2011-05-17 Richard Guenther <rguenther@suse.de>
603 2011-05-16 Richard Guenther <rguenther@suse.de>
605 * gimple.c (gimple_types_compatible_p_1): Use names of the
606 type itself, not its main variant.
607 (iterative_hash_gimple_type): Likewise.
609 2011-05-17 Richard Guenther <rguenther@suse.de>
611 * gimple.c (gimple_register_canonical_type): Use the main-variant
612 leader for computing the canonical type.
614 2011-05-17 Nick Clifton <nickc@redhat.com>
616 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
619 * config/rx/rx.md: Add peephole to remove redundant extensions
621 (bitset_in_memory): Use rx_restricted_mem_operand.
622 (bitinvert_in_memory): Likewise.
623 (bitclr_in_memory): Likewise.
625 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
626 Nick Clifton <nickc@redhat.com>
628 * config/rx/rx.md: Add peepholes to match a register move followed
629 by a comparison of the moved register. Replace these with an
630 addition of zero that does both actions in one instruction.
632 2011-05-17 Jakub Jelinek <jakub@redhat.com>
635 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
636 predicate to allow CONST_INT.
637 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
639 2011-05-16 Joseph Myers <joseph@codesourcery.com>
641 * opts-common.c (opt_enum_arg_to_value): New.
642 * opts.h (opt_enum_arg_to_value): Declare.
643 * config/i386/i386.opt (fpmath): Remove.
644 (mfpmath=): Use Enum, Init and Save.
645 (fpmath_unit): New Enum and EnumValue entries.
646 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
647 name for function fpmath state.
648 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
649 * config/i386/i386.c: Include diagnostic.h.
650 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
651 (ix86_target_string): Take enum fpmath_unit value instead of string.
652 (ix86_debug_options): Update call to ix86_target_string.
653 (ix86_option_override_internal): Don't process fpmath strings here.
654 (x86_function_specific_save, ix86_function_specific_restore):
655 Don't handle fpmath state specially.
656 (ix86_function_specific_print): Pass fpmath state to
657 ix86_target_string instead of printing in this function.
658 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
659 Handle enum attributes.
660 (IX86_ATTR_ENUM, ix86_opt_enum): New.
661 (ix86_valid_target_attribute_tree): Update option_strings
662 handling. Handle fpmath as enum option.
663 (ix86_can_inline_p): Update field names for function fpmath state.
664 (ix86_expand_builtin): Update call to ix86_target_string.
665 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
666 (ix86_fpmath): Remove.
667 * config/i386/t-i386 (i386.o): Update dependencies.
669 2011-05-16 Joseph Myers <joseph@codesourcery.com>
671 PR preprocessor/48677
672 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
673 from decoded_options[0], not from itself.
675 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
677 * config/i386/constraints.md (z): New constraint.
678 * config/i386/i386.c (c): New mode attribute.
679 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
680 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
681 constraint for operand 0.
682 (*call_vzeroupper): Ditto.
683 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
684 (*call_rex64_ms_sysv_vzeroupper): Ditto.
685 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
686 Use "lzm" constraint for operand 0.
687 (*call_pop_vzeroupper): Ditto.
688 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
689 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
690 constraint for operand 0.
691 (*sibcall_vzeroupper): Ditto.
692 (*sibcall_rex64_ms_sysv): Ditto.
693 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
694 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
695 *sibcall_pop_1. Use "Uz" constraint for operand 0.
696 (*sibcall_pop_vzeroupper): Ditto.
697 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
698 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
699 mode iterator. Use "<c>zm" constraint for operand 1.
700 (*call_value_vzeroupper): Ditto.
701 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
703 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
704 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
705 *call_value_pop_1. Use "lzm" constraint for operand 1.
706 (*call_value_pop_vzeroupper): Ditto.
707 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
708 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
709 mode iterator. Use "Uz" constraint for operand 1.
710 (*sibcall_value_vzeroupper): Ditto.
711 (*sibcall_value_rex64_ms_sysv): Ditto.
712 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
713 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
714 constraint for operand 1.
715 (*sibcall_value_pop_vzeroupper): Ditto.
716 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
717 and "z" constraint for operand 2.
718 (*tls_global_dynamic_32_gnu): Ditto.
719 (*tls_local_dynamic_base_32_gnu): Ditto.
720 (*tls_local_dynamic_base_64): Ditto.
721 (*tls_local_dynamic_32_once): Ditto.
722 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
724 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
726 2011-05-16 Richard Guenther <rguenther@suse.de>
728 * gimple.c (gimple_types_compatible_p_1): Use names of the
729 type itself, not its main variant.
730 (iterative_hash_gimple_type): Likewise.
732 2011-05-16 Richard Guenther <rguenther@suse.de>
734 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
735 always visit pointer target and function result and argument types.
737 2011-05-16 Jason Merrill <jason@redhat.com>
740 * tree-inline.c (copy_statement_list): Put back recursion.
742 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
746 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
747 * config/avr/avr.md ("*ior<mode>qi.byte0",
748 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
750 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
753 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
754 register is needed for a function argument.
756 2011-05-16 Richard Guenther <rguenther@suse.de>
758 * gimple.c (struct type_hash_pair): New type.
759 (type_hash_pair_compare): New function.
760 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
762 2011-05-16 Revital Eres <revital.eres@linaro.org>
764 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
766 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
768 * config/i386/i386.md (floating point move splitters): Fix
769 usage of standard_80387_constant_p.
770 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
772 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
774 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
776 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
778 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
779 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
780 (tree_ssa_lim_finalize): Likewise.
782 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
784 * config/i386/constraint.md (Yd, Yx): New register constraints.
785 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
786 Yd conditional register constraint.
787 (*movtf_internal): Use standard_sse_constant_opcode.
788 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
789 Yx conditional register constraint.
790 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
791 Yd conditional register constraint. Use standard_sse_constant_p to
792 check for valid SSE constants and call standard_sse_constant_opcode to
794 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
795 constants and call standard_sse_constant_opcode to output SSE insn.
796 * config/i386/i386.c (ix86_option_ovverride_internal): Set
797 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
798 optimize_size is set.
799 (standard_sse_constant_opcode): Output conditional AVX insn templates.
801 2011-05-14 Tobias Burnus <burnus@net-b.de>
803 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
805 2011-05-13 Martin Jambor <mjambor@suse.cz>
807 * ipa-prop.c (ipa_cst_from_jfunc): New function.
808 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
809 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
810 (evaluate_conditions_for_ipcp_clone): Removed.
811 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
812 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
813 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
815 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
817 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
818 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
819 lieu of MAY_HAVE_DEBUG_STMTS.
820 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
821 debug statements if !MAY_HAVE_DEBUG_STMTS.
823 2011-05-13 Martin Thuresson <martint@google.com>
825 PR gcov-profile/47793
826 * libgcov.c (gcov_exit): Support relative profile paths.
827 * doc/invoke.texi (-fprofile-dir): Update for above change.
829 2011-05-13 Richard Guenther <rguenther@suse.de>
831 * gimple.c (gimple_canonical_types_compatible_p): Do not use
832 type-pair caching, do not compare hashes.
834 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
837 * tree-cfg.c (edge_to_cases_cleanup): Return true.
838 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
840 2011-05-13 Kai Tietz <ktietz@redhat.com>
842 * gimplify.c (gimplify_expr): Make sure operand is boolified.
843 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
844 compatible type for TRUTH_NOT_EXPR.
846 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
848 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
849 (ix86_hard_regno_mode_ok): Change return value to bool. Use
850 can_create_pseudo_p ().
852 2011-05-13 Richard Guenther <rguenther@suse.de>
855 * gimple.c (iterative_hash_gimple_type): Revert change in
856 pointer target and function result and argument hashing.
858 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
860 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
861 (*movxf_internal_nointeger): Ditto.
862 (*movdf_internal_rex64): Ditto.
863 (*movdf_internal): Ditto.
864 (*movdf_internal_nointeger): Ditto.
865 (*movsf_internal): Ditto.
866 (sincos splitters): Use can_create_pseudo ().
868 2011-05-13 Joseph Myers <joseph@codesourcery.com>
870 * config/i386/i386-opts.h: New.
871 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
872 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
873 ix86_section_threshold): Remove.
874 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
875 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
877 (ix86_option_override_internal): Don't decode strings for options
878 other than -march=, -mtune= and -mfpmath=. Don't allow for
879 __attribute__ uses in remaining diagnostics for options with
880 string arguments. Don't check for integer arguments being negative.
881 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
882 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
883 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
884 ix86_branch_cost, ix86_section_threshold): Remove.
885 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
887 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
889 (masm=): Use Enum and Init.
890 (asm_dialect): New Enum and EnumValue entries.
891 (mbranch-cost=): Use UInteger.
892 (mlarge-data-threshold=): Use UInteger and Init.
893 (mcmodel=): Use Enum and Init.
894 (cmodel): New Enum and EnumValue entries.
895 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
896 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
897 mregparm=): Use UInteger.
898 (mstringop-strategy=): Use Enum and Init.
899 (stringop_alg): New Enum and EnumValue entries.
900 (mtls-dialect=): Use Enum and Init.
901 (tls_dialect): New Enum and EnumValue entries.
902 (mabi=): Use Enum and Init.
903 (calling_abi): New Enum and EnumValue entries.
904 (mveclibabi=): Use Enum and Init.
905 (ix86_veclibabi): New Enum and EnumValue entries.
907 2011-05-13 Nick Clifton <nickc@redhat.com>
909 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
910 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
912 2011-05-13 Kai Tietz <ktietz@redhat.com>
915 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
916 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
917 (gimple_boolify): Check for cast for boolean_type_node instead for
920 2011-05-13 Richard Guenther <rguenther@suse.de>
922 PR tree-optimization/48172
923 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
924 multiplying by number of iterations for equal step.
925 (vect_create_cond_for_alias_checks): Likewise.
927 2011-05-13 Andreas Schwab <schwab@redhat.com>
929 * configure.ac: Use AS_HELP_STRING throughout.
930 * configure: Regenerate.
932 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
934 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
935 (ix86_emit_restore_regs_using_mov): Likewise.
936 (ix86_emit_restore_sse_regs_using_mov): Likewise.
938 2011-05-12 Anatoly Sokolov <aesok@post.ru>
940 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
941 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
942 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
943 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
944 RTX_OK_FOR_OLO10_P): ...here.
945 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
948 2011-05-12 Kai Tietz <ktietz@redhat.com>
950 * gimplify.c (gimple_boolify): Re-boolify expression
951 arguments even if expression type is of kind BOOLEAN_TYPE.
952 (gimplify_boolean_expr): Removed.
953 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
954 and XOR. Additional take care that we keep expression's type.
955 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
956 of TRUTH_AND|OR|XOR_EXPR.
958 2011-05-12 Jakub Jelinek <jakub@redhat.com>
960 PR tree-optimization/48975
961 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
962 on all bbs here and free and clear ifc_bbs at the end.
964 2011-05-12 Richard Guenther <rguenther@suse.de>
966 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
967 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
968 until after simple checks.
969 (gimple_types_compatible_p): Likewise.
970 (iterative_hash_gimple_type): Always hash pointer targets
971 and function return and argument types.
972 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
973 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
974 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
975 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
976 completely in the simple compare section.
977 (gimple_register_canonical_type): Query the cache again after
980 2011-05-12 Richard Guenther <rguenther@suse.de>
982 PR tree-optimization/48172
983 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
984 the number of iterations from the segment size calculation.
985 (vect_create_cond_for_alias_checks): Adjust.
987 2011-05-12 Jakub Jelinek <jakub@redhat.com>
990 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
991 if validate_subreg fails.
993 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
995 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
996 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
999 2011-05-12 DJ Delorie <dj@redhat.com>
1001 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1002 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1003 created builtin into rx_builtins array.
1004 (rx_builtin_decl): New function.
1005 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1007 2011-05-12 DJ Delorie <dj@redhat.com>
1008 Nick Clifton <nickc@redhat.com>
1010 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1011 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1012 (rx_is_legitimate_address): Add pre-decrement and post-increment
1013 addressing in HImode and QImode. Fix test for out of range
1015 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1016 (rx_align_for_label): Test label before extracting its usage count.
1017 (rx_adjust_insn_lengths): Fix selection of insn codes.
1018 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1020 2011-05-11 Jason Merrill <jason@redhat.com>
1022 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1024 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1026 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1027 reindent the subsequent block.
1029 2011-05-11 Satoru Takabayashi <satorux@google.com>
1030 Paul Pluzhnikov <ppluzhnikov@google.com>
1032 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1033 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1034 * config.in: Add LINKER_HASH_STYLE.
1035 * configure.ac: Add --with-linker-hash-style.
1036 * configure: Regenerate.
1038 2011-05-11 Richard Guenther <rguenther@suse.de>
1041 * gimple.c (iterative_hash_canonical_type): Fix typo.
1043 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1045 * config/i386/i386.c (legitimize_tls_address)
1046 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1047 expanders directly for TARGET_GNU2_TLS. Determine pic and
1048 __tls_get_addr symbol reference here. Update call to
1049 gen_tls_global_dynamic_{32,64} for added arguments.
1050 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1051 expanders directly for TARGET_GNU2_TLS. Determine
1052 __tls_get_addr symbol reference here. Update call to
1053 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1054 unique UNSPEC REG_EQUIV to libcall block.
1055 (ix86_tls_get_addr): Declare static.
1056 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1057 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1058 Do not determine pic and __tls_get_addr symbol reference here. Do not
1059 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1060 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1061 (tls_global_dynamic_64): Add operand 2. Do not determine
1062 __tls_get_addr symbol reference here. Do not call
1063 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1064 (tls_local_dynamic_base64): Ditto for operand 1.
1066 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1068 * function.c (expand_function_start): Initialize stack_check_probe_note
1069 only if the generic stack checking mechanism is used.
1071 2011-05-11 Richard Guenther <rguenther@suse.de>
1073 PR tree-optimization/15256
1074 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1075 (A & B) | C, combine (A op CST1) op CST2.
1076 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1077 visit assigns that have uses.
1079 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1081 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1082 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1083 (unpack_ts_type_common_value_fields): ...this. Update comment.
1084 (unpack_value_fields): Adjust for renaming.
1085 (lto_input_ts_type_tree_pointers): Split into...
1086 (lto_input_ts_type_common_tree_pointer): ...this and...
1087 (lto_input_ts_type_non_common_tree_pointers): ...this.
1088 (lto_input_tree_pointers): Adjust for above split.
1089 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1090 (pack_ts_type_common_value_fields): ...this. Update comment.
1091 (lto_output_ts_type_tree_pointers): Split into...
1092 (lto_output_ts_type_common_tree_pointers): ...this and...
1093 (lto_output_ts_type_non_common_tree_pointers): ...this.
1094 (lto_output_tree_pointers): Adjust for above split.
1095 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1096 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1097 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1098 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1100 (struct tree_type): Split into...
1101 (struct tree_type_common: ...this and...
1102 (struct tree_type_with_lang_specific): ...this and...
1103 (struct tree_type_non_common): ...this. Adjust accessor macros
1105 (TYPE_VALUES_RAW): Define.
1106 (union tree_node): Update for above changes.
1107 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1109 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1110 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1111 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1112 * treestructu.def (TS_TYPE): Remove.
1113 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1116 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1119 * tree-ssa.c (reset_debug_uses): New function.
1120 * tree-flow.h (reset_debug_uses): New prototype.
1121 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1122 * tree-loop-distribution.c (generate_loops_for_partition): Call
1123 reset_debug_uses on the stmts that will be removed. Keep around
1124 all debug stmts, don't count them as bits in partition bitmap.
1125 (generate_builtin): Don't count debug stmts or labels as bits in
1128 2011-05-11 Richard Guenther <rguenther@suse.de>
1130 * gimple.c (gimple_type_hash_1): Merge with ...
1131 (gimple_type_hash): ... this.
1132 (gtc_visit): Remove mode parameter and simplify accordingly.
1133 (gimple_types_compatible_p_1): Likewise.
1134 (gimple_types_compatible_p): Likewise.
1135 (iterative_hash_gimple_type): Likewise.
1137 (gimple_type_eq): Adjust.
1139 2011-05-11 Revital Eres <revital.eres@linaro.org>
1141 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1142 enters the branch create an anti edge in the opposite direction
1143 to prevent the creation of reg-moves.
1144 * modulo-sched.c: Adjust comment to reflect the fact we are
1145 scheduling closing branch.
1146 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1147 (stage_count): New field in struct partial_schedule.
1148 (calculate_stage_count): New function.
1149 (normalize_sched_times): Rename to reset_sched_times and handle
1150 incrementing the sched time of the nodes by a constant value
1151 passed as parameter.
1152 (duplicate_insns_of_cycles): Skip closing branch.
1153 (sms_schedule_by_order): Schedule closing branch.
1154 (ps_insn_find_column): Handle closing branch.
1155 (sms_schedule): Call reset_sched_times and adjust the code to
1156 support scheduling of the closing branch.
1157 (ps_insert_empty_row): Update calls to normalize_sched_times
1158 and rotate_partial_schedule functions.
1160 2011-05-11 Richard Guenther <rguenther@suse.de>
1163 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1165 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1167 * opts.c (finish_options): Move warning settings from process_options.
1168 * toplev.c (process_options): Move warning settings to finish_options.
1170 2011-05-11 Richard Guenther <rguenther@suse.de>
1172 PR tree-optimization/18041
1173 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1174 (simplify_bitwise_binary): ... this. Handle operand conversions
1175 by applying them to the result instead.
1176 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1178 2011-05-11 Richard Guenther <rguenther@suse.de>
1180 * gimple.c (gimple_canonical_types_compatible_p): Split out
1181 from gimple_types_compatible_p and friends. Do not recurse
1182 to pointed-to types.
1183 (gimple_canonical_type_eq): Use it.
1184 (iterative_hash_canonical_type): Split out from
1185 iterative_hash_gimple_type and friends. Do not recurse
1186 to pointed-to types.
1187 (gimple_canonical_type_hash): Use it, allocate the hash here.
1189 2011-05-11 Revital Eres <revital.eres@linaro.org>
1191 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1194 2011-05-11 Revital Eres <revital.eres@linaro.org>
1196 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1197 instead of PREV_INSN.
1199 2011-05-11 Revital Eres <revital.eres@linaro.org>
1201 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1202 * loop-doloop.c (doloop_condition_get): Likewise.
1203 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1205 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1207 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1209 * tree.def (CASE_LABEL_EXPR): Add an operand.
1210 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1212 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1214 * c-decl.c (c_override_global_bindings_to_false): Remove.
1215 (global_bindings_p): Don't check
1216 c_override_global_bindings_to_false.
1217 * c-tree.h (c_override_global_bindings_to_false): Remove.
1218 * c-typeck.c (composite_type): Don't set
1219 c_override_global_bindings_to_false.
1221 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1223 PR target/48857, 48495
1224 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1226 (VSX_MOVE_MODE): Ditto.
1227 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1228 VSX vector types. Add V2DImode.
1229 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1230 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1231 (MODES_TIEABLE_P): Ditto.
1233 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1234 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1236 (init_cumulative_args): Ditto.
1237 (rs6000_function_arg_boundary): Ditto.
1238 (rs6000_function_arg_advance_1): Ditto.
1239 (rs6000_function_arg): Ditto.
1240 (rs6000_function_ok_for_sibcall): Ditto.
1241 (emit_frame_save): Ditto.
1242 (rs6000_function_value): Ditto.
1243 (rs6000_libcall_value): Ditto.
1245 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1247 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1248 i386/darwin-lib.h to $libgcc_tm_file.
1249 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1251 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1253 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1255 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1257 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1258 * config/rs6000/rs6000-tables.opt: New file (generated).
1259 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1260 rs6000/rs6000-tables.opt to extra_options.
1261 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1262 * config/rs6000/rs6000.c (rs6000_select): Remove.
1263 (processor_target_table): Move contents to rs6000-cpus.def.
1264 (darwin_rs6000_override_options): Check
1265 global_options_set.x_rs6000_cpu_index instead of
1266 rs6000_select[1].string.
1267 (rs6000_option_override_internal): Likewise.
1268 (rs6000_handle_option): Don't assert that global structures are in
1269 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1270 (rs6000_default_cpu): New variable.
1271 (rs6000_file_start): Set it instead of local default_cpu. Check
1272 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1273 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1274 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1275 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1276 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1277 rs6000_select): Remove.
1278 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1280 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1281 * config/rs6000/t-rs6000
1282 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1283 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1284 global_options_set.x_rs6000_cpu_index instead of
1285 rs6000_select[1].string.
1286 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1287 global_options_set.x_rs6000_cpu_index instead of
1288 rs6000_select[1].string.
1290 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1292 * config.gcc (libgcc_tm_file): Define instead of including files
1293 from ../../libgcc/config/ in tm_file.
1294 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1295 * configure: Regenerate.
1296 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1297 libgcc_tm.h, cs-libgcc_tm.h): New.
1298 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1299 (clean): Remove libgcc_tm.h.
1300 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1301 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1302 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1304 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1307 * config/avr/avr.c (avr_ret_register): Return unsigned int
1309 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1310 it to avr_libcall_value.
1311 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1313 (avr_expand_binop_builtin): Ditto.
1314 (avr_expand_unop_builtin): Ditto.
1316 2011-05-10 DJ Delorie <dj@redhat.com>
1318 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1319 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1320 * config/rx/rx.c (rx_align_for_label): Add label and
1321 uses_threshold parameters. Do not align when the label is not
1323 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1325 2011-05-10 Richard Guenther <rguenther@suse.de>
1327 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1328 a series of conversions and apply foldings similar to what
1330 (tree_ssa_forward_propagate_single_use_vars): Call it.
1332 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1334 PR tree-optimization/48611
1335 PR tree-optimization/48794
1336 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1337 referenced from RESX or EH_DISPATCH arguments.
1340 * dfp.c (decimal_to_decnumber): Handle conversion from
1341 dconst{1,2,m1,half}.
1343 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1345 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1346 for !flag_prefer_avx128.
1347 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1349 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1351 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1352 (fold_ternary_loc): Use expr_location_or.
1354 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1357 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1358 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1359 Pmode and mem_mode is not VOIDmode.
1361 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1363 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1364 TYPE_QUAL_RESTRICT): Convert to enum.
1366 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1368 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1369 (const_pow2_1_to_8_operand): Ditto.
1370 (const_pow2_1_to_128_operand): Ditto.
1371 (const_pow2_1_to_32768_operand): Ditto.
1372 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1373 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1374 in insn constraint to check integer value of operand 3.
1375 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1377 (PINSR_MODE): New mode iterator.
1378 (sse2p4_1): New mode attribute.
1379 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1380 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1381 iterator. Use const_int_operand instead of
1382 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1383 exact_log2 in insn constraint to check integer value of operand 3.
1385 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1387 * config/i386/sse.md (blendbits): Remove mode attribute.
1388 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1389 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1390 Check integer value of operand 3 in insn constraint.
1392 2011-05-09 Richard Guenther <rguenther@suse.de>
1394 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1396 (lto_symtab_merge): Likewise. Do not register types here.
1397 (lto_symtab_merge_decls_2): Likewise.
1398 (lto_symtab_merge_decls_1): Likewise.
1399 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1400 * gimple.c (enum gtc_mode): Declare.
1401 (gimple_types_compatible_p): Make static.
1403 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1405 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1406 temporary register to match Pmode.
1408 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1410 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1411 and *vec_concatv4si_1_avx.
1413 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1415 PR rtl-optimization/48927
1416 * ira-conflicts.c (commutative_constraint_p): Use
1417 recog_data.alternative_enabled_p to disable alternatives where
1418 "enabled" attribute is false.
1419 (get_dup_num): Ditto.
1420 * ira-lives.c (single_reg_class): Ditto.
1421 (ira_implicitly_set_insn_hard_regs): Ditto.
1423 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1425 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1426 (dataflow_set_preserve_mem_locs): Likewise.
1428 2011-05-09 Philipp Thomas <pth@suse.de>
1430 * config/mep/mep.c (mep_validate_vliw): Syntax description
1431 should not be translated.
1433 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1435 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1436 * config/mips/mips-tables.opt: New file (generated).
1437 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1438 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1439 MIPS_ARCH_OPTION_NATIVE): Define.
1440 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1442 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1443 mips_parse_cpu): Remove.
1444 (mips_cpu_info_from_opt, mips_default_arch): New.
1445 (mips_handle_option): Don't assert that global structures are in
1446 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1447 (mips_option_override): Use new variables and functions to set
1448 state of these options. Use strcmp to check for individual CPU names.
1449 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1451 * config/mips/mips.opt (march=): Use ToLower and Enum.
1452 (mips): Use ToLower, Enum and Var.
1453 (mtune=): Use ToLower and Enum.
1454 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1456 2011-05-08 Jan Hubicka <jh@suse.cz>
1458 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1459 Arrange type pairs to be UID ordered.
1460 (gimple_lookup_type_leader): Make inline.
1462 2011-05-09 Nick Clifton <nickc@redhat.com>
1465 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1469 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1472 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1474 * combine.c (simplify_comparison): Abstract out parts into...
1475 (simplify_compare_const): ... new function.
1476 (try_combine): Generalize parallel arithmetic/compare combining
1477 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1479 2011-05-08 Jan Hubicka <jh@suse.cz>
1481 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1482 (cgraph_create_virtual_clone): Call hooks once virtual clone
1484 * cgraph.h (cgraph_clone_node): Update prototype.
1485 * ipa-cp.c (ipcp_estimate_growth): Use
1486 estimate_ipcp_clone_size_and_time.
1487 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1488 * lto-cgraph.c (input_node): Update.
1489 * ipa-inline.c (recursive_inlining): Update.
1490 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1491 (evaluate_conditions_for_known_args): Break out from ...
1492 (evaluate_conditions_for_edge): ... here.
1493 (evaluate_conditions_for_ipcp_clone): New function.
1494 (inline_node_duplication_hook): Update clone summary based
1496 (estimate_callee_size_and_time): Rename to ...
1497 (estimate_node_size_and_time): take NODE instead of EDGE;
1498 take POSSIBLE_TRUTHS as argument.
1499 (estimate_callee_size_and_time): Update.
1500 (estimate_ipcp_clone_size_and_time): New function.
1501 (do_estimate_edge_time): Update.
1503 2011-05-08 Richard Guenther <rguenther@suse.de>
1507 * expmed.c (expand_shift_1): Compute adjusted constant shift
1510 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1512 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1514 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1516 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1518 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1520 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1522 2011-05-07 Jan Hubicka <jh@suse.cz>
1524 * ipa-inline-transform.c (inline_call): Account when program size
1526 * ipa-inline.c (relative_time_benefit): New function.
1527 (edge_badness): Reorganize to be power 2 based; fix thinko when
1528 computing badness for negative growth; update comments to match
1529 reality; better dumps.
1531 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1533 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1534 type to bool and adjust comment.
1535 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1536 (fold_mathfn_compare): Remove calls to global_bindings_p.
1537 (fold_inf_compare): Likewise.
1538 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1539 * c-tree.h (global_bindings_p): Adjust prototype.
1540 * c-decl.c (global_bindings_p): Return bool and simplify.
1542 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1544 PR tree-optimization/48837
1545 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1546 when accumulator transformation is performed.
1548 2011-05-06 Jan Hubicka <jh@suse.cz>
1550 * i386.h (ix86_tune_indices): Add
1551 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1552 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1553 * i386.c (initial_ix86_tune_features): Add
1554 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1555 (software_prefetching_beneficial_p): Remove predicate.
1556 (ix86_option_override_internal): Use new macro.
1558 2011-05-06 Jan Hubicka <jh@suse.cz>
1560 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1562 2011-05-06 Jan Hubicka <jh@suse.cz>
1564 * cgraph.c (cgraph_add_thunk): Create real function node instead
1565 of alias node; finalize it and mark needed/reachale; arrange visibility
1566 to be right and add it into the corresponding same comdat group list.
1567 (dump_cgraph_node): Dump thunks.
1568 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1569 cgraph_function_with_gimple_body_p,
1570 cgraph_first_function_with_gimple_body,
1571 cgraph_next_function_with_gimple_body): New functions.
1572 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1574 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1575 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1576 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1577 devirtualization when optimizing.
1578 (verify_cgraph_node): Verify thunks.
1579 (cgraph_analyze_function): Analyze thunks.
1580 (cgraph_mark_functions_to_output): Output thunks only in combination
1581 with function they are assigned to.
1582 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1583 alias into normal node.
1584 (assemble_thunks): New functoin.
1585 (cgraph_expand_function): Use it.
1586 * lto-cgraph.c (lto_output_node): Stream thunks.
1587 (input_overwrite_node): Stream in thunks.
1588 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1589 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1590 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1591 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1592 (inline_analyze_function): Do not care about thunk jump functions.
1593 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1594 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1595 cgraph_function_with_gimple_body_p.
1596 * passes.c (do_per_function_toporder): Use
1597 cgraph_function_with_gimple_body_p.
1598 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1599 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1600 (function_called_by_processed_nodes_p): Likewise.
1602 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1604 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1605 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1607 (mabi=): Replace with separate entries for mabi=altivec,
1608 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1609 mabi=ieeelongdouble and mabi=ibmlongdouble.
1610 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1611 check for -mabi=spe without SPE ABI support here.
1612 (rs6000_handle_option): Replace OPT_mabi_ handling with
1613 OPT_mabi_altivec and OPT_mabi_spe handling.
1615 2011-05-06 Cary Coutant <ccoutant@google.com>
1617 * dwarf2out.c (contains_subprogram_definition): New function.
1618 (should_move_die_to_comdat): Call it.
1620 2011-05-06 Jeff Law <law@redhat.com>
1622 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1623 remove_ctrl_stmt_and_useless_edges.
1624 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1625 (fixup_template_block, thread_single_edge): Likewise.
1626 (mark_threaded_blocks): Use THREAD_TARGET.
1628 2011-05-06 Alan Modra <amodra@gmail.com>
1631 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1632 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1634 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1636 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1637 constraint modifier to "r".
1639 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1641 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1642 fall through for OPT_mcmodel_.
1644 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1646 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1648 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1650 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1653 * config/arm/arm.opt (marm): Document it.
1654 (mthumb): Reject negative variant.
1656 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1659 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1660 Fix typo in "ccvt" variable name.
1662 2011-05-06 Tristan Gingold <gingold@adacore.com>
1665 * config/vms/vms-ar.c (main): Remove cwd variable.
1667 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1670 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1672 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1674 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1675 * gimplify.c (gimplify_switch_expr): Likewise.
1676 * omp-low.c (expand_omp_sections): Likewise.
1677 * tree-eh.c (lower_try_finally_switch): Likewise.
1678 (lower_eh_dispatch): Likewise.
1679 * tree.h (build_case_label): Declare.
1680 * tree.c (build_case_label): Define.
1682 2011-05-05 Jason Merrill <jason@redhat.com>
1685 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1686 (copy_statement_list): Don't recurse.
1687 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1690 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1692 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1693 through from -mfpu= handling.
1694 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1696 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1698 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1701 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1703 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1705 (hppa[12]*-*-hpux11*): Ditto.
1706 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1707 * config/ia64/hpux-unix2003.h: New.
1708 * config/pa/pa-hpux1131.opt: New.
1709 * config/pa/pa-hpux1131.h: New.
1710 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1711 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1712 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1714 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1717 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1718 instead of mode as 3rd argument to recursive call.
1719 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1720 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1722 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1723 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1724 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1725 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1727 2011-05-05 Julian Brown <julian@codesourcery.com>
1729 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1730 parenthesis in D-register case.
1732 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1734 * opt-functions.awk (var_type_struct): Handle Enum options.
1735 * optc-gen.awk: Don't check range of variables of character type.
1736 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1737 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1738 rs6000_sdata_name, rs6000_explicit_options): Remove.
1739 (rs6000_option_override_internal): Check for -malign-power here.
1740 Use global_options_set instead of rs6000_explicit_options.
1741 (rs6000_parse_fpu_option): Remove.
1742 (rs6000_handle_option): Access variables via opts and opts_set
1743 pointers. Use error_at and warning_at. Add fall-through
1744 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1745 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1746 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1747 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1748 here. Don't use rs6000_parse_fpu_option.
1749 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1750 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1751 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1753 (mspe): Use Var and Save.
1754 (mtraceback=): Use Enum and Var.
1755 (rs6000_traceback_type): New Enum and EnumValue entries.
1756 (mfloat-gprs=): Use Enum, Var and Save.
1757 (rs6000_float_gprs): New Enum and EnumValue entries.
1758 (mlong-double-): use Var and Save.
1759 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1760 (malign-): Use Enum and Var.
1761 (rs6000_alignment_flags): New Enum and EnumValue entries.
1763 (fpu_type_t): New Enum and EnumValue entries.
1764 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1765 global_options_set instead of rs6000_explicit_options.
1766 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1767 global_options_set instead of rs6000_explicit_options.
1768 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1769 global_options_set instead of rs6000_explicit_options.
1770 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1771 global_options_set instead of rs6000_explicit_options.
1772 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1773 global_options_set instead of rs6000_explicit_options.
1774 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1775 global_options_set instead of rs6000_explicit_options.
1776 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1778 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1779 global_options_set instead of rs6000_explicit_options.
1780 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1781 (rs6000_cmodel): New Enum and EnumValue entries.
1782 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1783 global_options_set instead of rs6000_explicit_options.
1784 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1785 (mtls-size=): Use Enum and Var.
1786 (rs6000_tls_size): New Enum and EnumValue entries.
1788 2011-05-05 Michael Matz <matz@suse.de>
1790 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1791 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1792 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1793 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1794 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1795 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1796 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1797 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1798 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1799 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1800 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1801 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1802 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1803 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1804 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1805 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1807 2011-05-05 Richard Guenther <rguenther@suse.de>
1809 * expmed.c (expand_variable_shift): Rename to ...
1810 (expand_shift_1): ... this. Take an expanded shift amount.
1811 For rotates recurse directly not building trees for the shift amount.
1812 (expand_variable_shift): Wrap around expand_shift_1.
1813 (expand_shift): Adjust.
1815 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1817 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1819 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1821 * tree.h (get_pending_sizes): Remove prototype.
1822 (put_pending_size): Likewise.
1823 (put_pending_sizes): Likewise.
1824 * stor-layout.c (pending_sizes): Delete.
1825 (get_pending_sizes): Likewise.
1826 (put_pending_size): Likewise.
1827 (put_pending_sizes): Likewise.
1828 (variable_size): Do not call put_pending_size and tidy up.
1829 * function.h (struct function): Remove dont_save_pending_sizes_p.
1830 * lto-streamer-in.c (input_function): Do not stream it.
1831 * lto-streamer-out.c (output_function): Likewise.
1832 * tree-inline.c (initialize_cfun): Do not copy it.
1833 * c-decl.c (store_parm_decls): Do not set it.
1834 * omp-low.c (create_task_copyfn): Likewise.
1835 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1837 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1839 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1841 (*movdf_internal): Ditto.
1842 (*movdf_internal_nointeger): Ditto.
1843 (*movsf_internal): Ditto.
1845 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1847 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1848 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1849 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1850 (c_variable_size): Remove.
1851 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1852 call put_pending_sizes.
1853 (get_parm_info): Add parameter expr. Use it to set
1854 arg_info->pending_sizes.
1855 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1857 * c-parser.c (c_parser_parms_declarator): Update call to
1858 c_parser_parms_list_declarator.
1859 (c_parser_parms_list_declarator): Take parameter expr. Update
1860 call to push_parm_decl. Update recursive call. Don't call
1861 get_pending_sizes. Update calls to get_parm_info.
1862 (c_parser_objc_method_definition): Update calls to
1863 c_parser_objc_method_decl and objc_start_method_definition.
1864 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1865 (c_parser_objc_method_decl): Add parameter expr. Update call to
1867 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1868 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1869 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1871 2011-05-05 Michael Hope <michael.hope@linaro.org>
1874 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1877 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1879 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1880 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1881 (spu_output_mi_thunk): New function.
1883 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1885 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1886 targetm.asm_out.print_operand.
1887 * config/sol2.c: Include target.h.
1889 2011-05-04 Jan Hubicka <jh@suse.cz>
1891 * ipa-inline.c (reset_edge_caches): New function.
1892 (update_caller_keys): Add check_inlinablity_for; do not
1893 reset edge caches; remove now unnecesary loop.
1894 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1895 (update_all_callee_keys): Likewise.
1896 (inline_small_functions): Sanity check cache; update code
1899 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1901 PR rtl-optimization/47612
1902 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1903 as the last insn of the sequence to be moved.
1905 2011-05-04 Tobias Burnus <burnus@net-b.de>
1908 * doc/invoke.texi (Ofast): Document that it
1909 enables Fortran's -fno-protect-parens.
1911 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1913 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1915 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1917 * stor-layout.c (variable_size): Do not issue errors.
1919 2011-05-04 Richard Guenther <rguenther@suse.de>
1921 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1922 for array-ref indices.
1923 (tree_coverage_counter_addr): Likewise.
1924 (build_fn_info_type): Use size_int for index types.
1925 (build_gcov_info): Likewise.
1927 2011-05-04 Richard Guenther <rguenther@suse.de>
1929 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1931 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1932 for constructor indices.
1933 (push_init_level): Likewise.
1935 2011-05-04 Richard Guenther <rguenther@suse.de>
1937 * explow.c (promote_mode): Move variable declarations before code.
1939 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1941 * tree.h (build_function_type_array): Declare.
1942 (build_varargs_function_type_array): Declare.
1943 (build_function_type_vec, build_varargs_function_type_vec): Define.
1944 * tree.c (build_function_type_array_1): New function.
1945 (build_function_type_array): New function.
1946 (build_varargs_function_type_array): New function.
1948 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1950 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1951 before setting STMT_VINFO_TYPE.
1953 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1955 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1956 instead of spu_pass_by_reference.
1958 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1960 * calls.c (emit_library_call_value_1): Invoke
1961 promote_function_mode hook on libcall arguments.
1962 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1963 argument being NULL.
1964 * targhooks.c (default_promote_function_mode): Lisewise.
1965 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1966 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1968 * doc/tm.texi: Document that TYPE argument might be NULL.
1970 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1972 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1974 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1977 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1979 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1981 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1982 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1984 * mips-tfile.c: ... here.
1985 Don't include coretypes.h, tm.h, filenames.h.
1986 (saber_stop): Remove definition and all calls.
1987 [__SABER__]: Remove.
1988 (__LINE__): Remove default.
1989 (Size_t, Ptrdiff_t): Remove definitions.
1990 Replace by size_t, ptrdiff_t.
1991 [!MIPS_DEBUGGING_INFO]: Remove.
1992 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1993 (progname): Add const.
1995 Replace all uses by static.
1996 (ALIGN_SYMTABLE_OFFSET): Remove default.
1997 * mips-tdump.c: Don't include coretypes.h, tm.h.
1998 Remove !MIPS_IS_STAB guard.
1999 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2000 $(TM_H), filenames.h dependencies.
2001 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2003 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2006 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2007 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2009 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2012 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2013 account and save/restore RETS.
2014 (PROFILE_BEFORE_PROLOGUE): Define.
2015 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2016 the push insn to use predecrement.
2018 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2021 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2023 2011-05-04 Nick Clifton <nickc@redhat.com>
2025 * config/mn10300/mn10300.c: Include cfgloop.h.
2027 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2028 Lcc or a FLcc insn into the instruction stream.
2029 (mn10300_block_contains_call): New function. Returns true if the
2030 given basic block contains a CALL insn.
2031 (mn10300_loop_contains_call_insn): New function. Returns true if
2032 the given loop contains a CALL insn.
2033 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2034 to use the SETLB and Lcc or FLcc insns.
2035 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2036 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2037 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2038 disable the SETLB optimization.
2039 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2040 __SETLB__ or __NO_SETLB__.
2041 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2042 (movsf_internal): Handle MDR register.
2043 (cmpsi): Make visible.
2044 (setlb): New pattern.
2046 (FLcc): New pattern.
2048 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2051 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2052 for reg<->xmm moves.
2053 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2054 (vec_concatv2di_rex64_sse): Ditto.
2055 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2056 (*vec_extractv2di_1_rex64): Ditto.
2059 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2061 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2063 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2065 2011-05-04 Richard Guenther <rguenther@suse.de>
2067 * tree.h (int_const_binop): Remove notrunc argument.
2068 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2069 create integer constants that are properly truncated.
2070 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2071 (const_binop): Remove zero notrunc argument to int_const_binop.
2072 (size_binop_loc): Likewise.
2073 (fold_div_compare): Likewise.
2074 (maybe_canonicalize_comparison_1): Likewise.
2075 (fold_comparison): Likewise.
2076 (fold_binary_loc): Likewise.
2077 (multiple_of_p): Likewise.
2078 * expr.c (store_constructor): Likewise.
2079 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2080 (maybe_fold_stmt_addition): Likewise.
2081 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2082 * stor-layout.c (layout_type): Likewise.
2083 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2084 * tree-sra.c (build_ref_for_offset): Likewise.
2085 (build_user_friendly_ref_for_offset): Likewise.
2086 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2087 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2088 * tree-ssa-loop-niter.c (inverse): Likewise.
2089 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2090 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2091 * tree-switch-conversion.c (check_range): Likewise.
2092 (build_constructors): Likewise.
2093 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2094 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2095 (extract_range_from_assert): Likewise.
2096 (vrp_int_const_binop): Likewise.
2097 (extract_range_from_binary_expr): Likewise.
2098 (extract_range_from_unary_expr): Likewise.
2099 (check_array_ref): Likewise.
2100 (find_case_label_range): Likewise.
2101 (simplify_div_or_mod_using_ranges): Likewise.
2102 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2103 comparing case labels for merging.
2105 2011-05-03 Mark Wielaard <mjw@redhat.com>
2107 * dwarf2out.c (debug_str_hash_forced): Removed.
2108 (gen_label_for_indirect_string): Removed.
2109 (get_debug_string_label): Removed.
2110 (AT_string_form): Generate label directly.
2111 (output_indirect_string): Test indirect_string_node for
2112 DW_FORM_strp instead of checking label and refcount.
2113 (prune_indirect_string): Removed.
2114 (prune_unused_types): Don't check debug_str_hash_forced or
2115 call prune_indirect_string.
2117 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2120 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2122 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2126 * combine.c (try_combine): Skip debug insns at m_split tests.
2128 2011-04-26 Mark Wielaard <mjw@redhat.com>
2131 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2132 when info_section_emitted.
2134 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2136 * config/mips/mips-opts.h: New.
2137 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2139 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2140 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2141 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2143 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2145 (mips_abi, mips_code_readable): Don't declare.
2146 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2147 (mabi=): Use Enum and Var.
2148 (mips_abi): New Enum and EnumValue entries.
2149 (mcode-readable=): Use Enum and Var.
2150 (mips_code_readable_setting): New Enum and EnumValue entries.
2151 (mr10k-cache-barrier=): Use Enum and Var.
2152 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2154 2011-05-03 Jan Hubicka <jh@suse.cz>
2156 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2157 replace hash by pointer map.
2158 (cgraph_node_set_element_def, cgraph_node_set_element,
2159 const_cgraph_node_set_element, varpool_node_set_element_def,
2160 varpool_node_set_element, const_varpool_node_set_element): Remove.
2161 (free_cgraph_node_set, free_varpool_node_set): New function.
2162 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2163 * tree-emutls.c: Free varpool node set.
2164 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2165 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2166 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2167 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2168 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2169 Move here from ipa.c; implement using pointer_map
2170 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2171 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2172 debug_cgraph_node_set, varpool_node_set_new,
2173 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2174 dump_varpool_node_set, debug_varpool_node_set):
2175 Move to ipa-uitls.c.
2176 * passes.c (ipa_write_summaries): Update.
2178 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2180 From Mike Frysinger:
2181 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2182 bf542/bf544/bf547/bf548/bf549.
2184 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2186 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2188 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2191 * config/bfin/bfin.md (MOVCC): New mode_macro.
2192 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2193 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2194 comments from generated assembly.
2196 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2199 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2200 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2201 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2202 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2203 * config/bfin/lib1funcs.asm (___muldi3): New function.
2205 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2207 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2208 build_function_type_list instead of build_function_type.
2209 Rearrange initialization of `args' to do so.
2211 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2213 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2214 instead of build_function_type.
2216 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2218 * config/rs6000/rs6000.c (spe_init_builtins): Call
2219 build_function_type_list instead of build_function_type.
2220 (paired_init_builtins, altivec_init_builtins): Likewise.
2221 (builtin_function_type): Likewise.
2223 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2225 * config/sh/sh.c (sh_media_init_builtins): Call
2226 build_function_type_list instead of build_function_type.
2228 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2230 * config/sparc/sparc.c (sparc_file_end): Call
2231 build_function_type_list instead of build_function_type.
2233 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2235 * config/alpha/alpha.c (alpha_init_builtins): Call
2236 build_function_type_list instead of build_function_type.
2238 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2240 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2241 build_function_type_list instead of build_function_type.
2243 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2245 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2246 build_function_type_list instead of build_function_type.
2247 Delete `endlink' variable.
2249 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2251 * config/avr/avr.c (avr_init_builtins): Call
2252 build_function_type_list instead of build_function_type.
2254 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2256 * config/picochip/picochip.c (picochip_init_builtins): Call
2257 build_function_type_list instead of build_function_type.
2258 Delete `endlink' variable.
2260 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2262 * config/bfin/bfin.c (bfin_init_builtins): Call
2263 build_function_type_list instead of build_function_type.
2265 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2268 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2269 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2271 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2274 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2275 libbffastfp overrides libgcc when -mfast-fp.
2277 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2279 Originally from Bernd Schmidt
2280 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2281 * config/bfin/bfin.c (override_options): Test it and error if
2284 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2286 Originally From Bernd Schmidt
2287 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2290 2011-05-03 Jeff Law <law@redhat.com>
2292 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2293 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2294 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2295 than accessing AUX field directly. Free the AUX field before
2297 (thread_block, thread_through_loop_header): Likewise.
2298 (thread_single_edge, mark_threaded_blocks): Likewise.
2299 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2300 (register_jump_thread): Do not attempt to thread to a NULL edge.
2302 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2304 * function.c (init_function_start): Call decide_function_section.
2305 * varasm.c (decide_function_section): New function.
2306 (assemble_start_function): When not using
2307 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2308 or first_function_block_is_cold.
2309 * rtl.h (decide_function_section): Declare.
2311 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2312 Jakub Jelinek <jakub@redhat.com>
2315 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2316 only succeed if req_mode is the same as set_mode.
2318 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2320 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2321 * genemit.c (gen_exp): Handle RETURN.
2322 * emit-rtl.c (verify_rtx_sharing): Likewise.
2323 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2324 * rtl.c (copy_rtx): RETURN is shared.
2325 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2327 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2328 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2329 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2330 * config/cris/cris.c (cris_expand_return): Likewise.
2331 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2332 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2333 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2334 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2335 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2337 * config/v850/v850.c (expand_epilogue): Likewise.
2338 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2339 * config/arm/arm.md (epilogue): Likewise.
2340 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2341 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2342 variable to ret_reg.
2344 2011-05-03 Richard Guenther <rguenther@suse.de>
2347 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2348 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2349 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2351 2011-05-03 Richard Guenther <rguenther@suse.de>
2353 * c-decl.c (grokdeclarator): Instead of looking at
2354 TREE_OVERFLOW check if the constant fits in the index type.
2356 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2358 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2359 (vec_store_lanes<mode><mode>): Likewise.
2361 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2363 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2364 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2365 convert_optab_index values.
2366 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2367 * genopinit.c (optabs): Initialize the new optabs.
2368 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2369 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2370 (expand_STORE_LANES): New functions.
2371 * tree.h (build_array_type_nelts): Declare.
2372 * tree.c (build_array_type_nelts): New function.
2373 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2374 (vect_model_load_cost): Likewise.
2375 (vect_store_lanes_supported, vect_load_lanes_supported)
2376 (vect_record_strided_load_vectors): Declare.
2377 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2378 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2379 (vect_transform_strided_load): Split out statement recording into...
2380 (vect_record_strided_load_vectors): ...this new function.
2381 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2382 (write_vector_array, create_array_ref): New functions.
2383 (vect_model_store_cost): Add store_lanes_p argument.
2384 (vect_model_load_cost): Add load_lanes_p argument.
2385 (vectorizable_store): Try to use store-lanes functions for
2387 (vectorizable_load): Likewise load-lanes and loads.
2388 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2389 to vect_model_store_cost.
2390 (vect_build_slp_tree): Likewise vect_model_load_cost.
2392 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2394 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2395 * hooks.c (hook_bool_mode_uhwi_false): New function.
2396 * target.def (array_mode_supported_p): New hook.
2397 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2398 * doc/tm.texi: Regenerate.
2399 * stor-layout.c (mode_for_array): New function.
2400 (layout_type): Use it.
2401 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2402 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2404 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2407 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2408 for -fstack-check if the size to allocate is negative.
2410 2011-05-02 Lawrence Crowl <crowl@google.com>
2412 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2413 (timevar_cond_start): New for starting a timer only when it is not
2415 (timevar_cond_stop): New for stopping a timer when it was not already
2418 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2419 (timevar_cond_start): New as above.
2420 (timevar_cond_stop): New as above.
2422 * timevar.def: Add start/stop timers for compiler phases,
2423 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2424 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2425 and TV_PHASE_FINALIZE.
2426 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2427 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2428 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2429 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2430 Make unused TV_OVERLOAD into a start/stop timer.
2432 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2433 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2434 to indicate that they are start/stop timers.
2436 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2437 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2438 Move initialization to do_compile.
2439 (do_compile): Add initialization from above.
2440 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2442 * c-decl.c (c_write_global_declarations): Add start/stop of
2443 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2445 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2446 or TV_PARSE_INLINE, as appropriate.
2447 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2448 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2450 2011-05-02 Jason Merrill <jason@redhat.com>
2453 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2455 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2458 * c-decl.c (finish_decl): Only create a composite if the types are
2461 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2463 * config/fr30/fr30-protos.h (Mmode): Don't define.
2464 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2465 definition where used.
2466 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2467 define. Expand definitions where used.
2468 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2469 Expand definitions where used.
2470 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2471 rx_function_arg, rx_function_arg_advance,
2472 rx_function_arg_boundary): Expand definitions of those macros.
2473 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2474 definition where used.
2476 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2478 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2480 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2481 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2482 with *movv2sf_internal_rex64_avx.
2483 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2484 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2485 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2486 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2487 "vex" in "prefix" attribute calculation.
2488 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2490 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2493 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2494 inputs match the output.
2496 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2499 * config/m68k/m68k.c (m68k_expand_prologue): Set
2500 current_function_static_stack_size.
2502 2011-05-02 Jan Hubicka <jh@suse.cz>
2504 * lto-streamer.c (lto_streamer_cache_insert_1,
2505 lto_streamer_cache_lookup, lto_streamer_cache_create,
2506 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2507 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2509 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2511 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2512 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2513 config/m68k/t-opts: New files.
2514 * config/m68k/m68k-tables.opt: New file (generated).
2515 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2516 extra_options and m68k/t-opts to tmake_file.
2517 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2518 (all_isas): Initialize using m68k-isas.def.
2519 (all_microarchs): Initialize using m68k-microarchs.def.
2520 (m68k_find_selection): Remove.
2521 (m68k_handle_option): Don't assert that global structures are in
2522 use. Use error_at. Access variables via opts pointer. Don't
2523 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2524 directly for -m68020-40 and -m68020-60.
2525 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2526 m68k_tune_entry here.
2527 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2529 (m68k_library_id_string): Remove declaration.
2530 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2531 (m68k_library_id_string): New Variable.
2532 (march=, mcpu=, mtune=): Use Enum and Var.
2534 2011-05-02 Richard Guenther <rguenther@suse.de>
2536 * varasm.c (output_constructor_regular_field): Compute zero-based
2537 index with double-ints. Make sure to ICE instead of producing
2539 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2540 in asserts. Properly use a signed type.
2542 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2544 * config/i386/sse.md (V): New mode iterator.
2545 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2547 (V_256): Rename from AVX256MODE.
2548 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2549 condition to all users.
2551 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2552 condition to all users.
2553 (VF_128): Make V4SF mode unconditional.
2554 (VF_256): Rename from AVX256MODEF2P.
2555 (VI4F_128): Rename from SSEMODE4S.
2556 (VI8F_128): Rename from SSEMODE2D.
2557 (VI4F_256): Rename from AVX256MODE8P.
2558 (VI8F_256): Rename from AVX256MODE4P.
2559 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2560 (ssescalarmodesuffix): Remove SF and DF modes.
2561 (SSEMODE124): Remove.
2562 (SSEMODE1248): Ditto.
2563 (SSEMODEF2P): Ditto.
2564 (AVXMODEF2P): Ditto.
2565 (AVXMODEFDP): Ditto.
2566 (AVXMODEFSP): Ditto.
2567 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2569 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2571 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2572 xop_pcmov_<mode>256. Use V mode iterator.
2574 Adjust RTX patterns globally for renamed mode attributes.
2576 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2578 * haifa-sched.c (sched_emit_insn): Emit insn before first
2579 non-scheduled insn. Inform back-end about new insn. Add
2580 new insn to scheduled_insns list.
2582 2011-05-02 Richard Guenther <rguenther@suse.de>
2584 PR tree-optimization/48822
2585 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2586 (process_scc): Indicate which iteration we start.
2588 2011-05-02 Jan Hubicka <jh@suse.cz>
2590 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2591 (lto_section_overrun): New.
2592 * lto-section-out.c (append_block): Rename to ...
2593 (lto_append_block): ... this one; export.
2594 (lto_output_1_stream): Move lto lto-streamer.h
2595 (lto_output_data_stream): Update.
2596 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2597 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2600 2011-05-02 Richard Guenther <rguenther@suse.de>
2602 * tree.c (tree_code_counts): New global array.
2603 (record_node_allocation_statistics): Count individual tree codes.
2604 (dump_tree_statistics): Dump individual code stats.
2606 2011-05-01 Jan Hubicka <jh@suse.cz>
2608 * ipa-inline.c (caller_growth_limits): Fix thinko when
2609 looking for largest stack frame.
2610 * ipa-inline.h (dump_inline_summary): Declare.
2611 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2613 (dump_inline_summary): Export.
2614 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2616 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2618 * reginfo.c (memory_move_cost): Change rclass argument type form
2619 'enum reg_class' to reg_class_t.
2620 * reload.h (memory_move_cost): Update prototype.
2621 * postreload.c reload_cse_simplify_set): Change type dclass var to
2623 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2625 (ira_allocate_and_set_costs): Change aclass argument type form
2626 'enum reg_class' to reg_class_t.
2627 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2628 Change aclass argument type to reg_class_t.
2629 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2631 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2632 memory_move_cost call.
2634 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2635 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2636 Change type tmp var to reg_class_t.
2638 2011-04-30 Jan Hubicka <jh@suse.cz>
2640 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2641 inlining into function with flatten attribute.
2642 (want_inline_small_function_p): Be more realistic about inlining
2643 cold calls where callee size grows.
2645 2011-04-30 Jan Hubicka <jh@suse.cz>
2647 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2650 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2652 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2653 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2654 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2655 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2656 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2657 (print_operand): Rename to...
2658 (sparc_print_operand): ...this. Make static. Adjust
2659 sparc_print_operand function call.
2660 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2663 2011-04-30 Jan Hubicka <jh@suse.cz>
2666 * ipa-inline.c (early_inliner): Disable when doing late
2667 addition of function.
2669 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2671 * dwarf2out.c (get_address_mode): New inline.
2672 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2673 if not dwarf_strict emit
2674 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2675 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2676 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2677 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2678 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2679 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2680 mem_loc_descriptor callers.
2681 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2682 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2683 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2684 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2685 (base_types): New variable.
2686 (get_base_type_offset, calc_base_type_die_sizes,
2687 base_type_for_mode, mark_base_types, base_type_cmp,
2688 move_marked_base_types): New functions.
2689 (calc_die_sizes): Assert that die_offset is 0 or equal to
2691 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2692 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2693 callers. If not dwarf_strict, call mem_loc_descriptor even for
2694 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2695 (gen_subprogram_die): Don't give up on call site parameters
2696 with non-integral or large integral modes. Adjust
2697 mem_loc_descriptor callers.
2698 (prune_unused_types): Call prune_unused_types_mark on base_types
2700 (resolve_addr): Call mark_base_types.
2701 (dwarf2out_finish): Call move_marked_base_types.
2703 PR tree-optimization/48809
2704 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2706 (gen_inbound_check): Don't compute index_expr - range_min in utype
2707 again, instead reuse SSA_NAME initialized in build_arrays.
2708 Remove two useless gsi_for_stmt calls.
2710 2011-04-29 Jeff Law <law@redhat.com>
2712 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2714 2011-04-29 Martin Jambor <mjambor@suse.cz>
2716 * cgraph.h (cgraph_postorder): Remove declaration.
2717 * ipa-utils.h (ipa_free_postorder_info): Declare.
2718 (ipa_reverse_postorder): Likewise.
2719 * cgraphunit.c: Include ipa-utils.h.
2720 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2721 * ipa-inline.c: Include ipa-utils.h.
2722 (ipa_inline): Update call to ipa_reverse_postorder.
2723 * ipa-pure-const.c (propagate_pure_const): Update call to
2724 ipa_reduced_postorder and ipa_print_order. Call
2725 ipa_free_postorder_info to clean up.
2726 (propagate_nothrow): Likewise.
2727 * ipa-reference.c (propagate): Removed a useless call to
2728 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2729 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2730 * ipa.c: Include ipa-utils.h.
2731 (ipa_profile): Update call to ipa_reverse_postorder.
2732 (cgraph_postorder): Moved to...
2733 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2734 (ipa_utils_print_order): Renamed to ipa_print_order.
2735 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2737 (ipa_free_postorder_info): New function.
2738 * passes.c: Include ipa-utils.h.
2739 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2740 (ipa_write_summaries): Likewise.
2741 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2742 (cgraphunit.o): Likewise.
2744 (ipa-inline.o): Likewise.
2746 2011-04-29 Jan Hubicka <jh@suse.cz>
2748 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2749 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2750 * ipa-inline.h (clause_t): Turn into unsigned int.
2751 * ipa-inline-analysis.c (add_clause): Do more simplification.
2752 (and_predicates): Shortcut more cases.
2753 (predicates_equal_p): Move forward; check that clauses are properly
2755 (or_predicates): Shortcut more cases.
2756 (edge_execution_predicate): Rewrite as...
2757 (set_cond_stmt_execution_predicate): ... this function; handle
2758 __builtin_constant_p.
2759 (set_switch_stmt_execution_predicate): New .
2760 (compute_bb_predicates): New.
2761 (will_be_nonconstant_predicate): Update TODO.
2762 (estimate_function_body_sizes): Use compute_bb_predicates
2763 and free them later, always try to estimate if stmt is constant.
2764 (estimate_time_after_inlining, estimate_size_after_inlining):
2765 Gracefully handle optimized out edges.
2766 (read_predicate): Fix off by one error.
2768 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2770 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2772 2011-04-27 Xinliang David Li <davidxl@google.com>
2774 * tree-profile.c (init_ic_make_global_vars): Set
2775 tls attribute on ic vars.
2776 * coverage.c (coverage_end_function): Initialize
2777 function_list with zero.
2779 2011-04-29 Richard Guenther <rguenther@suse.de>
2781 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2782 for the type of the result.
2783 (fold_builtin_isascii): Likewise.
2784 (fold_builtin_toascii): Use integer_type_node where appropriate.
2785 (fold_builtin_logb): Likewise.
2786 (fold_builtin_frexp): Likewise.
2787 (fold_builtin_strstr): Likewise.
2788 (fold_builtin_strpbrk): Likewise.
2789 (fold_builtin_fputs): Likewise.
2790 (fold_builtin_sprintf): Likewise.
2791 (fold_builtin_snprintf): Likewise.
2792 (fold_builtin_printf): Likewise.
2793 (do_mpfr_remquo): Use a proper type for the assigned constant.
2794 (do_mpfr_lgamma_r): Likewise.
2795 * dwarf2out.c (resolve_one_addr): Use size_int.
2796 * except.c (init_eh): Likewise.
2797 (assign_filter_values): Use integer_type_node for filter values.
2798 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2800 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2801 for EH region numbers.
2802 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2803 for the shift amount.
2805 2011-04-29 Richard Guenther <rguenther@suse.de>
2807 * expr.h (expand_shift): Rename to ...
2808 (expand_variable_shift): ... this.
2809 (expand_shift): Take a constant shift amount.
2810 * expmed.c (expand_shift): Rename to ...
2811 (expand_variable_shift): ... this.
2812 (expand_shift): New wrapper around expand_variable_shift.
2813 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2814 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2815 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2816 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2817 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2818 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2819 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2820 emit_store_flag_1, emit_store_flag): Likewise.
2821 * builtins.c (expand_builtin_signbit): Likewise.
2822 * calls.c (load_register_parameters): Likewise.
2823 * function.c (assign_parm_setup_block): Likewise.
2824 * lower-subreg.c (resolve_shift_zext): Likewise.
2825 * optabs.c (widen_bswap, expand_abs_nojump,
2826 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2827 * spu/spu.c (spu_expand_extv): Likewise.
2828 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2830 2011-04-29 Richard Guenther <rguenther@suse.de>
2832 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2833 for the remapped region number.
2834 * predict.c (build_predict_expr): Use integer_type_node for the
2836 * fold-const.c (fold_binary_loc): Use integer_type_node for
2837 the shift amount. Use a proper type for the PLUS_EXPR operand.
2839 2011-04-29 Michael Matz <matz@suse.de>
2841 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2842 other trees that just builtins.
2843 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2845 2011-04-29 Richard Guenther <rguenther@suse.de>
2847 * tree-nested.c (get_trampoline_type): Use size_int.
2848 (get_nl_goto_field): Likewise.
2849 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2851 (lower_eh_constructs_2): Likewise.
2852 (lower_resx): Likewise.
2853 (lower_eh_dispatch): Likewise.
2854 * tree-mudflap.c (mf_build_string): Use size_int.
2855 (mudflap_register_call): Use integer_type_node for the flag.
2856 (mudflap_enqueue_constant): Use size_int.
2857 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2858 instead of rebuilding it.
2860 2011-04-29 Richard Guenther <rguenther@suse.de>
2862 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2863 Handle OBJ_TYPE_REF.
2864 (find_func_aliases_for_call): Use it more consistently.
2866 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2868 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2869 (rank_for_schedule): Use it.
2870 (schedule_block): Set it.
2872 2011-04-28 David Li <davidxl@google.com>
2874 * tree.c (crc32_string): Use crc32_byte.
2875 (crc32_byte): New function.
2876 * tree.h (crc32_byte): New function.
2877 * gcov.c (read_graph_file): Handle new cfg_cksum.
2878 (read_count_file): Ditto.
2879 * profile.c (instrument_values): Ditto.
2880 (get_exec_counts): Ditto.
2881 (read_profile_edge_counts): Ditto.
2882 (compute_branch_probabilities): Ditto.
2883 (compute_value_histograms): Ditto.
2884 (branch_prob): Ditto.
2885 (end_branch_prob): Ditto.
2886 * coverage.c (read_counts_file): Ditto.
2887 (get_coverage_counts): Ditto.
2888 (tree_coverage_counter_addr): Ditto.
2889 (coverage_checksum_string): Ditto.
2890 (coverage_begin_output): Ditto.
2891 (coverage_end_function): Ditto.
2892 (build_fn_info_type): Ditto.
2893 (build_fn_info_value): Ditto.
2894 * libgcov.c (gcov_exit): Ditto.
2895 * gcov-dump.c (tag_function): Ditto.
2896 (compute_checksum): Remove.
2898 2011-04-29 Alan Modra <amodra@gmail.com>
2900 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2901 unspec plus offset. Tidy macho code.
2903 2011-04-29 Martin Jambor <mjambor@suse.cz>
2905 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2906 node instead of a decl. Update all callers.
2907 * cgraph.h: Update declaration.
2909 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2911 PR tree-optimization/48765
2912 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2913 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2914 to indicate if loop aware SLP is being used. Scan the statements
2915 and update the vectorization factor according to the type of
2916 vectorization before statement analysis.
2917 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2918 pass it to vect_analyze_loop_operations.
2919 (vectorizable_reduction): Set number of copies to 1 in case of pure
2921 * tree-vect-stmts.c (vectorizable_conversion,
2922 vectorizable_assignment, vectorizable_shift,
2923 vectorizable_operation, vectorizable_type_demotion,
2924 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2926 (vectorizable_condition): Move the check that it is not SLP
2927 vectorization before the number of copies check.
2928 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2929 to vectorize the loop using SLP.
2931 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2934 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2937 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2939 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2940 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2941 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2942 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2943 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2945 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2946 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2947 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2948 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2949 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2950 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2952 * config/i386/linux.h (REG_NAME): Don't define.
2953 * config/i386/linux64.h (REG_NAME): Don't define.
2954 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2955 Undefine before defining.
2957 2011-04-28 Jan Hubicka <jh@suse.cz>
2959 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2960 nonconstant_names array.
2961 (estimate_function_body_sizes): Build nonconstant_names array; handle
2962 BUILT_IN_CONSTANT_P.
2964 2011-04-28 Richard Guenther <rguenther@suse.de>
2968 2011-04-28 Richard Guenther <rguenther@suse.de>
2970 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2971 as late as possible.
2973 2011-04-28 Richard Guenther <rguenther@suse.de>
2975 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2976 (debug_constraint): Do it here.
2977 (dump_constraints): And here.
2978 (rewrite_constraints): And here.
2979 (dump_constraint_edge): Remove.
2980 (dump_constraint_graph): Rewrite to produce DOT output.
2981 (solve_constraints): Build succ graph as late as possible.
2982 Dump constraint graphs before and after solving.
2984 2011-04-28 Richard Guenther <rguenther@suse.de>
2986 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2987 New function split out from ...
2988 (find_func_aliases): ... here. Call it.
2989 (find_func_aliases_for_call): Likewise.
2991 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2993 * internal-fn.h (internal_fn_name_array): Declare.
2994 (internal_fn_flags_array): Likewise.
2996 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2998 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2999 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3001 (ssemodefsuffix): Remove.
3002 (ssevecmodesuffix): New mode attribute.
3003 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3004 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3005 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3006 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3007 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3008 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3009 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3010 ssemodesuffix mode attribute.
3011 (float splitters): Use ssevecmodesuffix mode attribute.
3012 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3013 (sseinsmode): Rename from avxvecmode.
3014 (avxsizesuffix): Rename from avxmodesuffix.
3015 (sseintvecmode): Rename from avxpermvecmode.
3016 (ssedoublevecmode): Rename from ssedoublesizemode.
3017 (ssehalfvecmode): Rename from avxhalfvecmode.
3018 (ssescalarmode): Rename from avxscalarmode.
3019 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3020 templates for ssemodesuffix mode attribute.
3021 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3024 Adjust RTX patterns globally for renamed mode attributes.
3026 2011-04-27 Jan Hubcika <jh@suse.cz>
3028 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3029 * ipa-inline-analysis.c: Include alloc-pool.h.
3030 (edge_predicate_pool): New.
3031 (trye_predicate_p): New function
3032 (false_predicate_p): New function.
3033 (add_clause): Sanity check that false clauses are "optimized";
3034 never add clauses to predicate that is already known to be false.
3035 (and_predicate): Use flase_predicate_p.
3036 (evaulate_predicate): Rename to ...
3037 (evaluate_predicate): ... this one; update all callers; assert
3038 that false is not listed among possible truths.
3039 (dump_predicate): Use true_predicate_p.
3040 (account_size_time): Use false_predicate_p.
3041 (evaulate_conditions_for_edge): Rename to ...
3042 (evaluate_conditions_for_edge) ... this one.
3043 (edge_set_predicate): New function.
3044 (inline_edge_duplication_hook): Duplicate edge predicates.
3045 (inline_edge_removal_hook): Free edge predicates.
3046 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3047 (dump_inline_summary): Update.
3048 (estimate_function_body_sizes): Set edge predicates.
3049 (estimate_calls_size_and_time): Handle predicates.
3050 (estimate_callee_size_and_time): Update.
3051 (remap_predicate): Add toplev_predicate; update comment.
3052 (remap_edge_predicates): New function.
3053 (inline_merge_summary): Compute toplev predicate; update.
3054 (read_predicate): New function.
3055 (read_inline_edge_summary): Use it.
3056 (inline_read_section): Likewise.
3057 (write_predicate): New function.
3058 (write_inline_edge_summary): Use it.
3059 (inline_write_summary): Likewise.
3060 (inline_free_summary): Free alloc pool and edge summary vec.
3062 2011-04-27 Richard Guenther <rguenther@suse.de>
3064 * tree-ssa-structalias.c (changed_count): Remove.
3065 (changed): Use a bitmap.
3066 (unify_nodes): Adjust.
3067 (do_sd_constraint): Likewise.
3068 (do_ds_constraint): Likewise.
3069 (do_complex_constraint): Likewise.
3070 (solve_graph): Likewise.
3072 2011-04-27 Jan Hubicka <jh@suse.cz>
3074 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3076 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3078 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3079 (avx_vperm2f128_*_operand): Ditto.
3080 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3081 Use avx_vpermilp_parallel in insn condition.
3082 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3083 Use avx_vperm2f128_parallel in insn condition.
3085 2011-04-27 Richard Guenther <rguenther@suse.de>
3087 * Makefile.in (tree-ssa-structalias.o): Remove
3088 gt-tree-ssa-structalias.h dependency.
3089 (GTFILES): Remove tree-ssa-structalias.c.
3090 * tree.c (allocate_decl_uid): New function.
3091 (make_node_stat): Use it.
3092 (copy_node_stat): Likewise.
3093 * tree.h (allocate_decl_uid): Declare.
3094 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3095 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3096 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3097 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3098 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3099 (struct heapvar_map): Likewise.
3100 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3101 heapvar_insert): Likewise.
3102 (make_heapvar_for): Rename to ...
3103 (make_heapvar): ... this. Simplify.
3104 (fake_var_decl_obstack): New global var.
3105 (build_fake_var_decl): New function.
3106 (make_constraint_from_heapvar): Adjust.
3107 (handle_lhs_call): Likewise.
3108 (create_function_info_for): Likewise.
3109 (intra_create_variable_infos): Likewise.
3110 (init_alias_vars): Allocate fake_var_decl_obstack.
3111 (init_alias_heapvars, delete_alias_heapvars): Remove.
3112 (compute_points_to_sets): Do not call init_alias_heapvars.
3113 (ipa_pta_execute): Likewise.
3114 (delete_points_to_sets): Free fake_var_decl_obstack.
3116 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3118 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3119 (si_from_UTItype, si_to_UTItype): New functions.
3120 (__udivmodti4): Use them to implement type-punning.
3121 * config/spu/multi3.c (union qword_TItype): New data type.
3122 (si_from_TItype, si_to_TItype): New functions.
3123 (__multi3): Use them to implement type-punning.
3125 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3127 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3129 2011-04-27 Jan Hubicka <jh@suse.cz>
3131 * ipa-prop.c (function_insertion_hook_holder): New holder.
3132 (ipa_add_new_function): New function.
3133 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3134 Register/deregister holder.
3136 2011-04-27 Richard Guenther <rguenther@suse.de>
3138 PR tree-optimization/48772
3139 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3141 2011-04-27 Richard Guenther <rguenther@suse.de>
3143 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3144 TARGET_MEM_REF handling.
3146 2011-04-27 Nick Clifton <nickc@redhat.com>
3148 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3149 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3150 (REG_CLASS_NAMES): Likewise.
3151 (REG_CLASS_CONTENTS): Likewise.
3152 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3153 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3154 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3155 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3156 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3157 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3158 duplicate register classes.
3159 (frv_class_likely_spilled_p): Likewise.
3160 (frv_register_move_cost): Likewise.
3162 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3163 end of the regno_reg_class array.
3165 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3168 * c-typeck.c (build_binary_op): Don't wrap arguments if
3169 int_operands is true.
3171 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3174 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3175 targetm.calls.must_pass_in_stack for void type.
3177 2011-04-26 Jan Hubicka <jh@suse.cz>
3179 * cgraphbuild.c (build_cgraph_edges): Update call
3180 of cgraph_create_edge and cgraph_create_indirect_edge.
3181 * cgraph.c (cgraph_create_edge_including_clones,
3182 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3183 cgraph_update_edges_for_call_stmt_node): Do not take nest
3184 argument; do not initialize call_stmt_size/time.
3185 (dump_cgraph_node): Do not dump nest.
3186 (cgraph_clone_edge): Do not take loop_nest argument;
3187 do not propagate it; do not clone call_stmt_size/time.
3188 (cgraph_clone_node): Likewise.
3189 (cgraph_create_virtual_clone): Update.
3190 * cgraph.h (struct cgraph_edge): Remove
3191 call_stmt_size/call_stmt_time/loop_nest.
3192 (cgraph_create_edge, cgraph_create_indirect_edge,
3193 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3195 * tree-emutls.c (gen_emutls_addr): Update.
3196 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3197 loop_nest; handle indirect calls, too.
3198 (clone_inlined_nodes): Do not care about updating inline summaries.
3199 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3200 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3201 stream call_stmt_size/call_stmt_time/loop_nest.
3202 * ipa-inline.c (edge_badness): Update.
3203 (ipa_inline): dump summaries after inlining.
3204 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3206 (inline_edge_summary): New function.
3207 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3208 (inline_edge_removal_hook): Handle edge summaries.
3209 (inline_edge_duplication_hook): New hook.
3210 (inline_summary_alloc): Alloc hooks.
3211 (initialize_growth_caches): Do not register removal hooks.
3212 (free_growth_caches); Do not free removal hook.
3213 (dump_inline_edge_summary): New function.
3214 (dump_inline_summary): Use it.
3215 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3216 (inline_update_callee_summaries): New function.
3217 (inline_merge_summary): Use it.
3218 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3219 (read_inline_edge_summary): New function.
3220 (inline_read_section): Use it.
3221 (write_inline_edge_summary): New function.
3222 (inline_write_summary): Use it.
3223 (inline_free_summary): Free edge new holders.
3224 * tree-inline.c (copy_bb): Update.
3226 2011-04-26 Jason Merrill <jason@redhat.com>
3228 * tree-eh.c (lower_try_finally_switch): Create the label along with
3229 the CASE_LABEL_EXPR.
3231 2011-04-26 David S. Miller <davem@davemloft.net>
3232 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3234 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3235 * configure: Regenerate.
3237 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3240 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3242 (VEC_reduc): New code iterator and splitters for vector reduction.
3243 (VEC_reduc_name): Ditto.
3244 (VEC_reduc_rtx): Ditto.
3245 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3246 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3248 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3249 support for extracting SF on VSX.
3251 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3252 generating xscvspdp.
3253 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3254 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3255 double add, minimum, maximum vector reduction.
3256 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3257 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3258 optimize double vector reduction.
3259 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3261 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3263 * config/fr30/fr30.h (inhibit_libc): Don't define.
3264 * config/m32r/m32r-protos.h: Correct comment.
3265 * config/v850/v850.h (GHS_default_section_names,
3266 GHS_current_section_names): Use tree, not union tree_node *.
3268 2011-04-26 Xinliang David Li <davidxl@google.com>
3270 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3271 * c-family/c-opts.c (c_common_handle_option): Set
3272 warn_maybe_uninitialized.
3273 * opts.c (common_handle_option): Ditto.
3274 * common.opt: New option.
3275 * tree-ssa.c (warn_uninit): Add one more parameter.
3276 (warn_uninitialized_var): Pass warning code.
3277 * tree-flow.h: Interface change.
3280 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3282 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3283 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3284 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3286 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3288 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3289 * config/mips/mips.opt (mmips-tfile): Remove.
3291 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3292 mips-tdump reference to ...
3293 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3294 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3295 reference by Tru64 UNIX.
3297 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3300 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3301 is error_mark_node, set value to NULL.
3303 PR tree-optimization/48734
3304 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3305 if return value from maybe_fold_*_comparsions isn't something
3306 the code is prepared to handle.
3308 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3310 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3312 (ext_QIreg_nomode_operands): Remove.
3313 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3317 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3319 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3321 2011-04-26 Richard Guenther <rguenther@suse.de>
3323 * c-typeck.c (build_unary_op): Do not expand array-refs via
3324 pointer arithmetic. Only adjust qualifiers for function types.
3326 2011-04-26 Richard Guenther <rguenther@suse.de>
3329 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3330 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3331 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3332 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3334 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3336 * doc/extend.texi: Document __underlying_type.
3338 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3340 * config/rs6000/titan.md (automata_option "progress"): Remove.
3342 2011-04-25 Jeff Law <law@redhat.com>
3344 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3346 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3348 * system.h (ENUM_BITFIELD): Remove.
3350 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3351 Eric Botcazou <ebotcazou@adacore.com>
3353 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3354 for STORE_FLAG_VALUE==-1 case.
3356 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3359 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3360 LEGITIMATE_PIC_OPERAND_P.
3362 2011-04-24 Jan Hubicka <jh@suse.cz>
3364 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3366 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3367 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3368 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3369 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3370 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3371 Sanity check predicate length.
3372 (remap_predicate): Likewise; sanity check jump functions.
3373 (inline_read_section, inline_write_summary): Sanity check
3376 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3379 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3380 __is_literal_type, and __is_trivial; update throughout about
3381 possibly cv-qualified void types.
3383 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3385 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3386 testsuite and make it version agnostic.
3388 2011-04-22 Jan Hubicka <jh@suse.cz>
3390 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3392 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3395 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3396 to VOID_TYPE even around MODIFY_EXPR.
3398 2011-04-22 Mike Stump <mikestump@comcast.net>
3400 * gensupport.c (read_md_rtx): Fix typo in comment.
3401 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3404 2011-04-22 Jan Hubicka <jh@suse.cz>
3406 * gengtype.c (open_base_files): Add ipa-inline.h include.
3407 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3408 ipa-prop.c; update all uses.
3409 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3410 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3411 merge summary of inlined function into former caller.
3412 * ipa-inline.c (max_benefit): Remove.
3413 (edge_badness): Compensate for removal of benefits.
3414 (update_caller_keys): Use
3415 reset_node_growth_cache/reset_edge_growth_cache.
3416 (update_callee_keys): Likewise.
3417 (update_all_callee_keys): Likewise.
3418 (inline_small_functions): Do not collect max_benefit; do not reset
3419 estimated_growth; call free_growth_caches and initialize_growth_caches.
3420 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3421 struct size_time_entry): New structures.
3422 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3423 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3424 and estimated_growth.
3425 (edge_growth_cache_entry): New structure.
3426 (node_growth_cache, edge_growth_cache): New global vars.
3427 (estimate_growth): Turn into inline.
3428 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3429 initialize_growth_caches, free_growth_caches): Declare.
3430 (estimate_edge_growth): Rewrite.
3431 (estimate_edge_time): Implement as inline cache lookup.
3432 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3434 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3435 (NUM_CONDITIONS): New constant.
3436 (predicate_conditions): New enum.
3437 (IS_NOT_CONSTANT): New constant.
3438 (edge_removal_hook_holder): New var.
3439 (node_growth_cache, edge_growth_cache): New global vars.
3440 (true_predicate, single_cond_predicate, false_predicate,
3441 not_inlined_predicate, add_condition, add_clause, and_predicates,
3442 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3443 dump_clause, dump_predicate, account_size_time,
3444 evaulate_conditions_for_edge): New functions.
3445 (inline_summary_alloc): Move to heap.
3446 (inline_node_removal_hook): Clear condition and entry vectors.
3447 (inline_edge_removal_hook): New function.
3448 (initialize_growth_caches, free_growth_caches): New function.
3449 (dump_inline_summary): Update.
3450 (edge_execution_predicate): New function.
3451 (will_be_nonconstant_predicate): New function.
3452 (estimate_function_body_sizes): Compute BB and constantness predicates.
3453 (compute_inline_parameters): Do not clear estimated_growth.
3454 (estimate_edge_size_and_time): New function.
3455 (estimate_calls_size_and_time): New function.
3456 (estimate_callee_size_and_time): New function.
3457 (remap_predicate): New function.
3458 (inline_merge_summary): New function.
3459 (do_estimate_edge_time): New function based on...
3460 (estimate_edge_time): ... this one.
3461 (do_estimate_edge_growth): New function.
3462 (do_estimate_growth): New function based on....
3463 (estimate_growth): ... this one.
3464 (inline_analyze_function): Analyze after deciding on jump functions.
3465 (inline_read_section): New function.
3466 (inline_read_summary): Use it.
3467 (inline_write_summary): Write all the new data.
3468 * ipa-prop.c (ipa_get_param_decl_index): Export.
3469 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3470 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3472 (ipa_get_lattice): Move here from ipa-cp.c
3473 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3474 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3475 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3476 cgraph_edge_inlinable_p): Remove.
3477 * cgraphunit.c: Include ipainline.h
3478 (cgraph_process_new_functions): Update call of
3479 compute_inline_parameters.
3481 2011-04-22 Richard Guenther <rguenther@suse.de>
3483 * tree.c (build_int_cst): Properly create canonicalized integer
3485 (build_int_cst_type): Remove scary comments.
3487 2011-04-22 Xinliang David Li <davidxl@google.com>
3489 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3490 by default when -Wno-error is not specified.
3491 * opts-global.c (decode_options): Remove call to
3492 control_warning_options.
3494 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3496 PR tree-optimization/48717
3497 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3498 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3500 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3502 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3503 definition where used.
3505 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3508 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3509 TREE_STATIC variables declared inside of some OpenMP construct.
3511 2011-04-22 Martin Jambor <mjambor@suse.cz>
3514 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3516 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3519 * c-typeck.c (pop_init_level): Do not warn about initializing
3522 2011-04-22 Alan Modra <amodra@gmail.com>
3524 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3525 when returning call_cookie.
3526 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3527 pointers, to functions with no more vector args than the current
3528 function, and some non-local calls for ABI_V4.
3529 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3530 sibcall_nonlocal_aix64): Combine to ..
3531 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3532 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3533 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3534 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3535 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3537 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3538 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3539 sibcall_value_symbolic_64): Delete.
3541 2011-04-21 Xinliang David Li <davidxl@google.com>
3543 * cgraph.h: Remove pid.
3544 * cgraph.c: Remove pid.
3545 * value-prof.c (init_node_map): New function.
3546 (del_node_map): New function.
3547 (find_func_by_funcdef_no): New function.
3548 (gimple_ic_transform): Call new function.
3549 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3550 * function.c (get_last_funcdef_no): New function.
3551 * function.h (get_last_funcdef_no): New function.
3552 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3553 to libgcov function.
3554 (tree-profiling): Call node map init and delete function.
3556 2011-04-21 Ian Lance Taylor <iant@google.com>
3558 * godump.c (go_format_type): Use exported Go name for anonymous
3561 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3563 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3564 Call builtin_function_type_list instead of builtin_function_type.
3565 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3567 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3569 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3570 build_function_type_list instead of build_function_type.
3571 Delete variable `endlink'.
3573 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3575 * config/s390/s390.c (s390_init_builtins): Call
3576 build_function_type_list instead of build_function_type.
3578 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3580 * config/ia64/ia64.c (ia64_init_builtins): Call
3581 build_function_type_list instead of builtin_function_type.
3583 2011-04-21 Easwaran Raman <eraman@google.com>
3585 * cfgexpand.c (stack_var): Remove OFFSET...
3586 (add_stack_var): ...and its reference here...
3587 (expand_stack_vars): ...and here.
3588 (stack_var_cmp): Sort by descending order of size.
3589 (partition_stack_vars): Change heuristic.
3590 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3591 (dump_stack_var_partition): Add newline after each partition.
3593 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3594 Jeff Law <law@redhat.com>
3596 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3597 * gengtype.c (matching_file_name_substitute): Likewise.
3599 2011-04-21 Richard Guenther <rguenther@suse.de>
3602 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3604 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3606 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3608 2011-04-21 Richard Guenther <rguenther@suse.de>
3610 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3613 2011-04-21 Richard Guenther <rguenther@suse.de>
3615 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3616 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3617 Use DECL_P, not SSA_VAR_P.
3618 (ptr_derefs_may_alias_p): Likewise.
3619 (ptr_deref_may_alias_ref_p_1): Likewise.
3620 (decl_refs_may_alias_p): Likewise.
3621 (refs_may_alias_p_1): Likewise.
3622 (ref_maybe_used_by_call_p_1): Likewise.
3623 (call_may_clobber_ref_p_1): Likewise.
3624 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3625 are either MEM_REF or TARGET_MEM_REF.
3626 (indirect_refs_may_alias_p): Likewise.
3627 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3628 for MEM_EXPR of indirect calls.
3630 2011-04-21 Tristan Gingold <gingold@adacore.com>
3632 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3633 (dst_file_info_struct): Remove flen field.
3634 (lookup_filename): Remove code that set flen field.
3636 2011-04-21 Tristan Gingold <gingold@adacore.com>
3638 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3640 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3643 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3644 vec_extract and vec_concat for non-SSE4_1 targets.
3646 2011-04-21 Richard Guenther <rguenther@suse.de>
3648 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3651 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3653 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3655 (FILE): Don't undefine.
3657 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3659 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3661 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3663 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3664 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3665 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3667 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3668 definitions where used.
3669 * config/microblaze/microblaze.h (struct microblaze_args): Use
3670 rtx, not struct rtx_def *.
3671 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3673 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3674 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3675 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3676 not struct rtx_def *.
3677 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3679 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3681 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3683 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3685 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3686 operand_equal_p to compare DR_BASE_ADDRESSes.
3687 (vect_check_interleaving): Likewise.
3689 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3692 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3693 for all Neon struct constants.
3695 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3697 * target.def (legitimate_constant_p): New hook.
3698 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3699 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3700 * doc/tm.texi: Regenerate.
3701 * hooks.h (hook_bool_mode_rtx_true): Declare.
3702 * hooks.c (hook_bool_mode_rtx_true): Define.
3703 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3704 * calls.c (precompute_register_parameters): Replace uses of
3705 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3706 (emit_library_call_value_1): Likewise.
3707 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3708 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3709 * ira-costs.c (scan_one_insn): Likewise.
3710 * recog.c (general_operand, immediate_operand): Likewise.
3711 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3712 * reload1.c (init_eliminable_invariants): Likewise.
3714 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3716 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3717 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3719 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3720 * config/alpha/predicates.md (input_operand): Update call to
3721 alpha_legitimate_constant_p.
3723 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3724 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3725 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3726 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3727 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3728 (arm_legitimate_constant_p): New functions.
3729 (arm_cannot_force_const_mem): Make static.
3731 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3733 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3734 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3735 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3736 instead of bfin_legitimate_constant_p.
3737 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3738 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3740 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3742 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3744 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3745 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3746 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3747 (frv_legitimate_constant_p): Make static. Add a mode argument.
3749 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3750 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3751 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3753 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3754 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3755 * config/i386/i386.c (legitimate_constant_p): Rename to...
3756 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3758 (ix86_cannot_force_const_mem): Update accordingly.
3759 (ix86_legitimate_address_p): Likewise.
3760 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3761 * config/i386/i386.md: Update commentary.
3763 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3764 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3765 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3766 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3768 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3770 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3771 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3772 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3773 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3775 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3776 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3777 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3779 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3780 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3781 (m32r_legitimate_constant_p): New function.
3783 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3784 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3785 LEGITIMATE_CONSTANT_P.
3786 (LEGITIMATE_CONSTANT_P): Delete.
3787 * config/m68k/m68k.c (m68k_expand_prologue): Call
3788 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3789 (m68k_legitimate_constant_p): New function.
3790 * config/m68k/m68k.md: Update comments.
3792 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3793 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3794 (mcore_legitimate_constant_p): New function.
3796 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3797 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3798 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3799 Add a mode argument.
3800 (mep_legitimate_address): Update accordingly.
3801 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3803 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3805 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3806 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3807 static. Check OP's mode for VOIDmode.
3808 (microblaze_legitimate_constant_p): New function.
3809 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3811 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3812 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3813 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3814 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3815 * config/mips/predicates.md: Update comments.
3817 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3818 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3819 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3820 (mmix_legitimate_constant_p): Make static, return a bool, and take
3822 (mmix_print_operand_address): Update accordingly.
3824 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3826 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3827 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3828 static. Add a mode argument.
3829 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3831 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3833 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3834 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3835 (pa_legitimate_constant_p): New function.
3837 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3839 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3840 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3841 (pdp11_legitimate_constant_p): New function.
3843 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3844 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3845 (rs6000_legitimate_constant_p): New function.
3847 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3848 (rx_legitimate_constant_p): ...this.
3849 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3850 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3851 (rx_legitimate_constant_p): ...this.
3852 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3853 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3855 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3856 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3857 * config/s390/s390.c (legitimate_constant_p): Rename to...
3858 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3859 and add a mode argument.
3860 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3862 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3864 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3865 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3866 (sh_legitimate_constant_p): New function.
3868 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3869 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3870 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3871 (legitimate_constant_p): Rename to...
3872 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3874 (constant_address_p): Update accordingly.
3876 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3877 argument and return a bool.
3878 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3879 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3880 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3881 (spu_rtx_costs): Update accordingly.
3882 * config/spu/predicates.md (vec_imm_operand): Likewise.
3884 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3886 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3887 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3888 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3890 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3891 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3892 * config/vax/vax.c (legitimate_constant_p): Likewise.
3894 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3895 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3896 (xtensa_legitimate_constant_p): New function.
3898 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3900 * target.def (cannot_force_const_mem): Add a mode argument.
3901 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3902 * doc/tm.texi: Regenerate.
3903 * hooks.h (hook_bool_mode_rtx_false): Declare.
3904 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3905 (hook_bool_mode_const_rtx_true): Likewise.
3906 (hook_bool_mode_rtx_false): New function.
3907 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3908 to be non-VOID. Update call to cannot_force_const_mem.
3909 (find_reloads): Update accordingly.
3910 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3911 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3913 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3914 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3915 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3916 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3917 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3918 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3919 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3920 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3921 (m68k_cannot_force_const_mem): ...this new function.
3922 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3924 (mips_const_insns, mips_legitimize_const_move): Update calls.
3925 (mips_secondary_reload_class): Likewise.
3926 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3927 (pa_cannot_force_const_mem): ...this new function.
3928 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3929 (rs6000_cannot_force_const_mem): ...this new function.
3930 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3932 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3933 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3935 (xtensa_cannot_force_const_mem): ...this new function.
3937 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3939 * config/mips/mips.c (mips16_build_function_stub): Call
3940 build_function_type_list instead of build_function_type.
3941 (mips16_build_call_stub): Likewise.
3943 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3945 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3946 instead of build_function_type.
3948 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3950 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3951 instead of build_function_type.
3953 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3956 * config/i386/i386.md (insv): Change operand 0 constraint to
3957 "register_operand". Change operand 1 and 2 constraint to
3958 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3959 * config/i386/sse.md (sse4_1_pinsrb): Export.
3960 (sse2_pinsrw): Ditto.
3961 (sse4_1_pinsrd): Ditto.
3962 (sse4_1_pinsrq): Ditto.
3963 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3964 * config/i386/i386.c (ix86_expand_pinsr): New.
3966 2011-04-20 Easwaran Raman <eraman@google.com>
3968 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3969 containing union type only with -fstrict-aliasing.
3971 2011-04-20 Jim Meyering <meyering@redhat.com>
3973 Remove useless if-before-free tests.
3974 * calls.c (expand_call, save_area): Likewise.
3975 * cfgcleanup.c (try_forward_edges): Likewise.
3976 * collect2.c (collect_execute): Likewise.
3977 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3978 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3979 * coverage.c (coverage_checksum_string): Likewise.
3980 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3981 * cselib.c (cselib_init): Likewise.
3982 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3983 (df_set_clean_cfg): Likewise.
3984 * function.c (free_after_compilation): Likewise.
3985 * gcc.c (do_spec_1, main): Likewise.
3986 * gcov.c (create_file_names): Likewise.
3987 * gensupport.c (identify_predicable_attribute): Likewise.
3988 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3989 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3990 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3991 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3992 * ipa-pure-const.c (local_pure_const): Likewise.
3993 * ipa-reference.c (propagate): Likewise.
3994 * ira-costs.c (free_ira_costs): Likewise.
3995 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3996 * matrix-reorg.c (mat_free): Likewise.
3997 * prefix.c (get_key_value): Likewise.
3998 * profile.c (compute_value_histograms): Likewise.
3999 * reload1.c (free_reg_equiv): Likewise.
4000 * sched-deps.c (free_deps): Likewise.
4001 * sel-sched-ir.c (fence_clear): Likewise.
4002 * sese.c (set_rename, if_region_set_false_region): Likewise.
4003 * tree-data-ref.c (free_rdg): Likewise.
4004 * tree-eh.c (lower_try_finally): Likewise.
4005 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4006 * tree-ssa-live.c (delete_var_map): Likewise.
4007 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4008 * tree-ssa-pre.c (phi_trans_add): Likewise.
4010 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4012 PR tree-optimization/48611
4013 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4014 beyond ERT_MUST_NOT_THROW region.
4016 2011-04-20 Catherine Moore <clm@codesourcery.com>
4018 * config/mips/mips.opt (mfix-24k): New.
4019 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4020 * config/mips/mips.md (length): Increase by 4 for stores if
4022 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4023 all noreorder if fixing 24K errata.
4024 * doc/invoke.texi: Document mfix-24k.
4026 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4028 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4029 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4031 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4033 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4034 (const_ok_for_op): ... to here.
4036 2011-04-20 Kai Tietz <ktietz@redhat.com>
4038 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4039 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4041 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4043 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4045 2011-04-20 Richard Guenther <rguenther@suse.de>
4047 PR tree-optimization/47892
4048 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4051 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4053 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4055 2011-04-20 Tristan Gingold <gingold@adacore.com>
4057 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4059 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4063 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4064 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4065 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4066 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4067 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4069 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4072 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4073 (avr_asm_named_section, avr_asm_output_aligned_common,
4074 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4075 New functions to update...
4076 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4077 (avr_asm_init_sections): Overwrite section callbacks for
4078 data_section, bss_section.
4079 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4081 (avr_file_end): ...here.
4083 2011-04-20 Richard Guenther <rguenther@suse.de>
4086 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4087 objects and types here. Adjust for their offset before comparing.
4089 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4091 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4094 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4096 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4097 (GIMPLE_H): Include $(INTERNAL_FN_H).
4098 (OBJS-common): Add internal-fn.o.
4099 (internal-fn.o): New rule.
4100 * internal-fn.def: New file.
4101 * internal-fn.h: Likewise.
4102 * internal-fn.c: Likewise.
4103 * gimple.h: Include internal-fn.h.
4104 (GF_CALL_INTERNAL): New gf_mask.
4105 (gimple_statement_call): Put fntype into a union with a new
4107 (gimple_build_call_internal): Declare.
4108 (gimple_build_call_internal_vec): Likewise.
4109 (gimple_call_same_target_p): Likewise.
4110 (gimple_call_internal_p): New function.
4111 (gimple_call_internal_fn): Likewise.
4112 (gimple_call_fntype): Return null for internal calls.
4113 (gimple_call_set_fntype): Assert that the function is not internal.
4114 (gimple_call_set_fn): Likewise.
4115 (gimple_call_set_fndecl): Likewise.
4116 (gimple_call_set_internal_fn): New function.
4117 (gimple_call_addr_fndecl): Handle null functions.
4118 (gimple_call_return_type): Likewise null types.
4119 * gimple.c (gimple_build_call_internal_1): New function.
4120 (gimple_build_call_internal): Likewise.
4121 (gimple_build_call_internal_vec): Likewise.
4122 (gimple_call_same_target_p): Likewise.
4123 (gimple_call_flags): Handle calls to internal functions.
4124 (gimple_call_fnspec): New function.
4125 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4126 (gimple_has_side_effects): Handle null functions.
4127 (gimple_rhs_has_side_effects): Likewise.
4128 (gimple_call_copy_skip_args): Handle calls to internal functions.
4129 * cfgexpand.c (expand_call_stmt): Likewise.
4130 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4131 * gimple-fold.c (gimple_fold_call): Handle null functions.
4132 (gimple_fold_stmt_to_constant_1): Don't fold
4133 calls to internal functions.
4134 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4136 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4137 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4138 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4139 (do_warn_unused_result): Likewise.
4140 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4141 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4142 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4143 the target of a call.
4144 (initialize_hash_element): Update accordingly.
4145 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4146 (iterative_hash_hashable_expr): Handle calls to internal functions.
4147 (print_expr_hash_elt): Likewise.
4148 * tree-ssa-pre.c (can_value_number_call): Likewise.
4149 (eliminate): Handle null functions.
4150 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4151 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4152 (find_func_aliases): Likewise.
4153 * value-prof.c (gimple_ic_transform): Likewise.
4154 (gimple_indirect_call_to_profile): Likewise.
4155 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4156 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4158 2011-04-19 Jan Hubicka <jh@suse.cz>
4160 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4161 * ipa-inline.c (inline_small_functions): Compute summaries first,
4162 populate heap later.
4164 2011-04-19 Jan Hubicka <jh@suse.cz>
4166 * cgraph.h (save_inline_function_body): Remove.
4167 * ipa-inline-transform.c: New file, broke out of...
4168 * ipa-inline.c: ... this one; Update toplevel comment.
4169 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4171 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4172 (cgraph_mark_inline_edge): Rename to inline_call; move to
4173 ipa-inline-transform.c.
4174 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4175 move to ipa-inline-transform.c
4176 (recursive_inlining, inline_small_functions, flatten_function,
4177 ipa_inline, inline_always_inline_functions,
4178 early_inline_small_functions): Update.
4179 (inline_transform): Move to ipa-inline-transform.c.
4180 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4182 * Makefile.in (ipa-inline-transform.o): New file.
4183 * cgraphunit.c (save_inline_function_body): Move to
4184 ipa-inline-transform.c
4186 2011-04-19 DJ Delorie <dj@redhat.com>
4188 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4189 registers if we already know there aren't any.
4190 (m32c_emit_epilogue): Don't emit a barrier here.
4191 (m32c_emit_eh_epilogue): Likewise.
4192 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4193 operands at expand time.
4194 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4196 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4197 duplicates. Provide aliases instead.
4198 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4199 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4202 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4204 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4205 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4206 (general_or_i64_p, sparc_register_move_cost): New function.
4208 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4210 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4211 Add lynx, mipssde. Sort table.
4213 2011-04-19 Xinliang David Li <davidxl@google.com>
4215 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4218 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4221 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4222 is a SUBREG with non-MODE_INT mode inside of it.
4224 2011-04-19 Martin Jambor <mjambor@suse.cz>
4226 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4227 also according to actual contants.
4228 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4229 (gimple_fold_call): Use it.
4230 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4232 2011-04-19 Martin Jambor <mjambor@suse.cz>
4234 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4235 non-pointer assignments.
4237 2011-04-19 Martin Jambor <mjambor@suse.cz>
4239 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4240 account anc_offset and otr_type from the indirect edge info.
4241 * ipa-prop.c (get_ancestor_addr_info): New function.
4242 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4243 get_ancestor_addr_info, call it.
4244 (ipa_note_param_call): Do not initialize information about polymorphic
4245 calls, return the indirect call graph edge. Remove the last
4246 parameter, adjust all callers.
4247 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4248 parameters. Initialize polymorphic information in the indirect edge.
4250 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4253 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4254 the types if they have different enumeration identifiers.
4256 2011-04-19 Jan Hubicka <jh@suse.cz>
4258 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4259 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4260 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4261 (optimize_function_for_size_p) ... here.
4263 2011-04-19 Richard Guenther <rguenther@suse.de>
4266 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4269 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4271 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4272 if DECL_NO_INLINE_WARNING_P is set on the function.
4274 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4277 * reload1.c (inc_for_reload): Return void. All callers changed.
4278 (emit_input_reload_insns): Don't try to delete previous output
4279 reloads to a register, or record spill_reg_store for autoincs.
4281 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4283 * gengtype.h: Updated copyright year.
4284 (struct input_file_st): Add inpisplugin field.
4285 (type_fileloc): New function.
4287 (write_typed_struct_alloc_def): Add gcc_assert.
4288 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4289 (write_typed_alloc_defns): Don't output for plugin files.
4290 (input_file_by_name): Clear inpisplugin field.
4291 (main): Set inpisplugin field for plugin files.
4293 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4295 * gengtype-state.c (string_eq): New.
4296 (read_state): Use string_eq instead of strcmp when creating the
4299 2011-04-19 Wei Guozhi <carrot@google.com>
4302 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4303 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4305 * config/arm/constraints.md (Uu): New constraint.
4306 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4308 2011-04-19 Tristan Gingold <gingold@adacore.com>
4310 * config.gcc (-*-*-*vms): Added.
4311 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4313 * config/vms/vms-ld.c: New file.
4314 * config/vms/vms-ar.c: New file.
4315 * config/vms/t-vmsnative: New file.
4317 2011-04-18 Xinliang David Li <davidxl@google.com>
4319 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4321 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4324 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4325 if TREE_TYPE (v) is non-NULL.
4327 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4328 gimple_get_virt_mehtod_for_binfo.
4329 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4330 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4332 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4334 2011-04-18 Michael Matz <matz@suse.de>
4335 Steve Ellcey <sje@cup.hp.com>
4337 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4338 use its mode as source mode if it isn't VOIDmode.
4340 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4342 * doc/passes.texi: Fill crossref nodes.
4344 2011-04-18 Jim Meyering <meyering@redhat.com>
4346 Fix doubled-word typos in comments and strings
4347 * config/alpha/vms-unwind.h: s/for for/for/
4348 * config/arm/unwind-arm.h: Likewise.
4349 * config/microblaze/microblaze.c: Likewise.
4350 * config/sh/constraints.md: s/in in/in/
4351 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4353 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4355 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4356 (AVX_FLOAT_MODE_P): Ditto.
4357 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4358 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4359 (AVX_VEC_FLOAT_MODE_P): Ditto.
4360 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4361 (UNSPEC_MASKSTORE): Ditto.
4362 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4363 Merge from <sse>_movmsk<ssemodesuffix> and
4364 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4365 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4367 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4368 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4369 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4371 2011-04-18 Jan Hubicka <jh@suse.cz>
4373 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4375 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4376 (want_inline_function_called_once_p): Break out the logic from
4378 (edge_badness): Ensure that profile is not misupdated.
4379 (lookup_recursive_calls): Prioritize by call frequencies.
4380 (inline_small_functions): Move program size estimates here;
4381 actually process whole queue even when unit growth has been
4382 met. (to properly compute inline_failed reasons and for the
4383 case unit size decrease.) Revisit comments on recursive inlining.
4384 (ipa_inline): Remove unit summary code; first inline hot calls
4385 of functions called once, cold calls next.
4386 (order, nnodes): Remove unused variables.
4387 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4388 (GTFILES): Remove ipa-inline.c
4389 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4391 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4393 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4395 2011-04-18 Jie Zhang <jie@codesourcery.com>
4396 Richard Earnshaw <rearnsha@arm.com>
4398 * arm.c (neon_builtin_type_bits): Remove.
4399 (typedef enum neon_builtin_mode): New.
4400 (T_MAX): Don't define.
4401 (typedef enum neon_builtin_datum): Remove bits, codes[],
4402 num_vars and base_fcode. Add mode, code and fcode.
4403 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4404 VAR10): Change accordingly.
4405 (neon_builtin_data[]): Change accordingly
4406 (arm_init_neon_builtins): Change accordingly.
4407 (neon_builtin_compare): Remove.
4408 (locate_neon_builtin_icode): Remove.
4409 (arm_expand_neon_builtin): Change accordingly.
4411 * arm.h (enum arm_builtins): Move to ...
4412 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4414 * arm.c (arm_builtin_decl): Declare.
4415 (TARGET_BUILTIN_DECL): Define.
4416 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4417 (arm_builtin_decls[]): New.
4418 (arm_init_neon_builtins): Store builtin declarations in
4419 arm_builtin_decls[].
4420 (arm_init_tls_builtins): Likewise.
4421 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4422 (arm_builtin_decl): New.
4424 2011-04-18 Richard Guenther <rguenther@suse.de>
4426 * tree.c (upper_bound_in_type): Build properly canonicalized
4428 (lower_bound_in_type): Likewise.
4430 2011-04-18 Richard Guenther <rguenther@suse.de>
4432 * gimple.h (gimple_call_addr_fndecl): New function.
4433 (gimple_call_fndecl): Use it.
4434 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4436 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4437 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4439 2011-04-18 Richard Guenther <rguenther@suse.de>
4442 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4444 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4447 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4448 DECL_IN_CONSTANT_POOL without RTL.
4450 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4451 Ira Rosen <ira.rosen@linaro.org>
4454 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4455 to match neon_vzip/vuzp/vtrn_internal.
4456 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4457 outputs explicitly dependent on both inputs.
4458 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4460 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4462 PR tree-optimization/48616
4463 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4464 whether the shift is by scalar or vector based on whether all SLP
4465 scalar stmts have the same rhs.
4467 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4469 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4472 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4474 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4477 2011-04-17 Jan Hubicka <jh@suse.cz>
4479 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4480 * cgrpahunit.c (cgraph_finalize_function): Do not set
4481 finalized_by_frontend.
4482 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4483 finalized_by_frontend.
4485 2011-04-17 Jan Hubicka <jh@suse.cz>
4487 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4488 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4489 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4490 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4492 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4494 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4496 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4499 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4500 is non-null before accessing it.
4501 (input_cgraph): Remove trailing spaces.
4503 2011-04-17 Revital Eres <revital.eres@linaro.org>
4505 * params.def (sms-min-sc): New param flag.
4506 * modulo-sched.c (sms_schedule): Use it.
4507 * doc/invoke.texi (sms-min-sc): Document it.
4509 2011-04-17 Jan Hubicka <jh@suse.cz>
4511 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4512 present, also set gimple_call_set_cannot_inline.
4513 * ipa-inline.c: Update toplevel comment.
4515 (cgraph_clone_inlined_nodes): Fix linebreaks.
4516 (cgraph_check_inline_limits): Restructure to ...
4517 (caller_growth_limits): ... this one; be more tolerant
4518 on growth in nested inline chains; add explanatory comment;
4519 fix stack accounting thinko introduced by previous patch.
4520 (cgraph_default_inline_p): Remove.
4521 (report_inline_failed_reason): New function.
4522 (can_inline_edge_p): New function.
4523 (can_early_inline_edge_p): New function.
4524 (leaf_node_p): Move upwards in file.
4525 (want_early_inline_function_p): New function.
4526 (want_inline_small_function_p): New function.
4527 (want_inline_self_recursive_call_p): New function.
4528 (cgraph_edge_badness): Rename to ...
4529 (edge_badness) ... this one; fix linebreaks.
4530 (update_edge_key): Update call of edge_baddness; add
4531 detailed dump about queue updates.
4532 (update_caller_keys): Use can_inline_edge_p and
4533 want_inline_small_function_p.
4534 (cgraph_decide_recursive_inlining): Rename to...
4535 (recursive_inlining): Use can_inline_edge_p and
4536 want_inline_self_recursive_call_p; simplify and remove no longer
4538 (cgraph_set_inline_failed): Remove.
4539 (add_new_edges_to_heap): Use can_inline_edge_p and
4540 want_inline_small_function_p.
4541 (cgraph_decide_inlining_of_small_functions): Rename to ...
4542 (inline_small_functions): ... this one; cleanup; use
4543 can/want predicates; cleanup debug ouput; work edges till fibheap
4544 is exhausted and do not stop once unit growth is reached; remove
4545 later loop processing remaining edges.
4546 (cgraph_flatten): Rename to ...
4547 (flatten_function): ... this one; use can_inline_edge_p
4548 and can_early_inline_edge_p predicates.
4549 (cgraph_decide_inlining): Rename to ...
4550 (ipa_inline): ... this one; remove unreachable nodes before
4551 inlining functions called once; simplify the pass.
4552 (cgraph_perform_always_inlining): Rename to ...
4553 (inline_always_inline_functions): ... this one; use
4554 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4555 (cgraph_decide_inlining_incrementally): Rename to ...
4556 (early_inline_small_functions): ... this one; simplify
4557 using new predicates; cleanup; make dumps prettier.
4558 (cgraph_early_inlining): Rename to ...
4559 (early_inliner): newer inline regular functions into always-inlines;
4560 fix updating of call stmt summaries.
4561 (pass_early_inline): Update for new names.
4562 (inline_transform): Fix formating.
4563 (gate_cgraph_decide_inlining): Rename to ...
4564 (pass_ipa_inline): ... this one.
4565 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4566 * ipa-inline-analysis.c (dump_inline_summary): Update.
4567 (compute_inline_parameters): Do not compute disregard_inline_limits;
4568 look for mismatching arguments.
4569 (estimate_growth): Fix handlig of non-trivial self recursion.
4570 (inline_read_summary): Do not read info->disregard_inline_limits.
4571 (inline_write_summary): Do not write info->disregard_inline_limits.
4572 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4573 and move all checks into can_inline_edge_p predicate; re-enable code
4574 comparing optimization levels.
4575 (expand_call_inline): Do not test inline_forbidden_into_p.
4576 * Makefile.in (ipa-inline.o): Update arguments.
4578 2011-04-17 Revital Eres <revital.eres@linaro.org>
4580 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4582 2011-04-17 Revital Eres <revital.eres@linaro.org>
4584 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4586 2011-04-17 Michael Matz <matz@suse.de>
4588 PR tree-optimization/48622
4590 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4591 in same order as they're written.
4593 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4595 * config/pa/predicates.md: Reorganize and simplify predicates.
4596 Eliminate duplicate code checks.
4597 (arith_operand): Rename to arith14_operand
4598 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4599 * config/pa/pa.md: Use renamed operands.
4600 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4601 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4602 arith11_operand, adddi3_operand, indexed_memory_operand,
4603 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4604 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4605 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4606 move_dest_operand, move_src_operand, prefetch_cc_operand,
4607 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4608 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4609 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4610 div_operand, int5_operand, movb_comparison_operator,
4611 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4612 arith_double_operand, ireg_operand, lhs_lshift_operand,
4613 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4614 integer_store_memory_operand): Likewise.
4615 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4616 (integer_store_memory_operand, read_only_operand,
4617 function_label_operand, borx_reg_operand,
4618 non_hard_reg_operand): Likewise.
4619 (eq_neq_comparison_operator): Delete unused operator.
4620 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4621 function_label_operand.
4622 (emit_move_sequence): Likewise.
4624 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4626 * config/i386/sse.md (sseunpackmode): New mode attribute.
4627 (ssepackmode): Ditto.
4628 (vec_pack_trunc_<mode>): Macroize expander from
4629 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4630 (vec_unpacks_lo_<mode>): Macroize expander from
4631 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4632 (vec_unpacks_hi_<mode>): Macroize expander from
4633 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4634 (vec_unpacku_lo_<mode>): Macroize expander from
4635 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4636 (vec_unpacku_hi_<mode>): Macroize expander from
4637 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4638 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4639 ix86_expand_sse4_unpack.
4640 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4642 2011-04-16 Jan Hubicka <jh@suse.cz>
4644 * cgraphbuild.c: Include ipa-inline.h.
4645 (reset_inline_failed): Use initialize_inline_failed.
4646 * cgraph.c: Include ipa-inline.h.
4647 (cgraph_create_node_1): Do not initialize estimated_growth.
4648 (initialize_inline_failed): More to ipa-inline-analysis.c
4649 (dump_cgraph_node): Do not dump inline flags.
4650 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4651 and disregard_inline_limits flags.
4652 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4653 time, size, estimated_growth.
4654 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4656 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4657 DECL_DISREGARD_INLINE_LIMITS.
4658 (cgraph_analyze_function): Do not initialize
4659 node->local.disregard_inline_limits.
4660 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4661 inlinable, versionable and disregard_inline_limits.
4662 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4663 cgraph_check_inline_limits, cgraph_default_inline_p,
4664 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4665 add_new_edges_to_heap): Update.
4666 (cgraph_decide_inlining_of_small_function): Update; set
4667 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4668 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4669 cgraph_decide_inlining_incrementally): Update.
4670 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4671 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4672 time, size and estimated_growth parameters.
4673 (estimate_edge_growth): Update.
4674 (initialize_inline_failed): Declare.
4675 * ipa-split.c: Include ipa-inline.h
4676 (execute_split_functions): Update.
4677 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4678 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4679 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4680 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4681 estimated_growth to INT_MIN.
4682 (inline_node_duplication_hook): Likewise.
4683 (dump_inline_summary): Dump new fields.
4684 (compute_inline_parameters): Update.
4685 (estimate_edge_time, estimate_time_after_inlining,
4686 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4687 inline_write_summary):
4688 (initialize_inline_failed): Move here from cgraph.c.
4689 * tree-sra.c: Include ipa-inline.h.
4690 (ipa_sra_preliminary_function_checks): Update.
4691 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4694 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4696 * config/i386/sse.md (V16): New mode iterator.
4698 (AVXMODEQI, AVXMODEDI): Remove.
4699 (sse2, sse3): New mode attribute.
4700 (mov<mode>): Use V16 mode iterator.
4701 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4702 (push<mode>1): Use V16 mode iterator.
4703 (movmisalign<mode>): Ditto.
4704 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4705 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4706 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4707 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4708 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4709 avx_movdqu<avxmodesuffix>.
4710 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4711 *avx_movdqu<avxmodesuffix>.
4712 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4713 avx_lddqu<avxmodesuffix>.
4714 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4715 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4716 avx_movnt<AVXMODEDI:mode>.
4717 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4718 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4720 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4723 * haifa-sched.c (prune_ready_list, schedule_block): Use
4724 sched_pressure_p rather than flag_sched_pressure.
4726 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4728 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4729 cgraph_get_node instead of cgraph_get_create_node.
4731 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4733 * cfgexpand.c (expand_debug_expr): Use
4734 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4736 2011-04-15 Michael Matz <matz@suse.de>
4738 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4739 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4740 * function.c (gimplify_parameters): Ditto.
4741 * gimplify.c (gimplify_vla_decl): Ditto.
4743 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4744 (gimple_call_set_alloca_for_var): New inline function.
4745 (gimple_call_alloca_for_var_p): Ditto.
4746 * gimple.c (gimple_build_call_from_tree): Remember
4747 CALL_ALLOCA_FOR_VAR_P state.
4748 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4750 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4751 calls if they were for VLA objects.
4753 2011-04-15 Martin Jambor <mjambor@suse.cz>
4755 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4758 2011-04-15 Martin Jambor <mjambor@suse.cz>
4761 * tree-emutls.c (lower_emutls_function_body): Call
4762 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4765 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4767 * c-decl.c (detect_field_duplicates): Call
4768 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4770 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4772 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4773 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4774 * ipa-pure-const.c (check_stmt): Call it.
4775 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4777 2011-04-15 Richard Guenther <rguenther@suse.de>
4779 PR tree-optimization/48290
4780 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4781 Properly decide inhibiting propagation based on the valueized
4782 operand. Do loop-closed SSA form preserving here ...
4783 (init_copy_prop): ... not here.
4785 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4788 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4789 (*ieee_smax<mode>3): Likewise.
4791 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4793 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4794 Replace match_operand with match_dup for the third operand in
4797 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4799 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4800 to track processing of conditionals. Update all callers.
4801 (try_combine, simplify_if_then_else): Update.
4803 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4805 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4808 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4810 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4811 instead of match_operand for operand 3.
4813 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4815 * recog.h (insn_operand_data): Add an "allows_mem" field.
4816 * genoutput.c (output_operand_data): Initialize it.
4817 * optabs.c (maybe_legitimize_operand_same_code): New function.
4818 (maybe_legitimize_operand): Use it when matching the original
4821 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4823 * gimplify.c: Fix issues in comments throughout.
4824 (voidify_wrapper_expr): Fix long line.
4825 (build_stack_save_restore): Likewise.
4826 (gimplify_loop_expr): Likewise.
4827 (gimplify_compound_lval): Likewise.
4828 (gimplify_init_ctor_eval): Likewise.
4829 (gimplify_modify_expr_rhs): Likewise.
4830 (omp_notice_threadprivate_variable): Likewise.
4832 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4834 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4835 original one if this is not a builtin function.
4837 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4840 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4841 offset it as needed based on top 2 bits in operands[3], change
4842 MEM mode to SFmode and mask those 2 bits away from operands[3].
4844 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4846 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4847 change from objc_declare_protocols() to objc_declare_protocol().
4849 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4851 * config/i386/sse.md (sse4_1): New mode attribute.
4852 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4853 avx_blend<ssemodesuffix><avxmodesuffix> and
4854 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4855 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4856 avx_blendv<ssemodesuffix><avxmodesuffix> and
4857 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4858 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4859 avx_dp<ssemodesuffix><avxmodesuffix> and
4860 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4861 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4862 (sse4_1_packusdw): Merge with *avx_packusdw.
4863 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4864 (sse4_1_pblendw): Merge with *avx_pblendw.
4865 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4866 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4867 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4869 (sse4_1_round<ssescalarmodesuffix>): Merge with
4870 *avx_round<ssescalarmodesuffix>.
4871 (aesenc): Merge with *avx_aesenc.
4872 (aesenclast): Merge with *avx_aesenclast.
4873 (aesdec): Merge with *avx_aesdec.
4874 (aesdeclast): Merge with *avx_aesdeclast.
4875 (pclmulqdq): Merge with *pclmulqdq.
4876 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4878 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4880 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4883 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4884 (align_local_variable): This. Update DECL_ALIGN.
4885 (add_stack_var): Updated.
4886 (expand_one_stack_var): Likewise.
4888 2011-04-14 Richard Guenther <rguenther@suse.de>
4890 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4892 (dse_initialize_block_local_data, dse_leave_block,
4893 record_voperand_set, get_stmt_uid): Likewise.
4894 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4895 (dse_optimize_stmt): Remove voperand set handling code.
4896 Simplify and improve to handle any kind of killing stmt.
4897 (dse_record_phi): Remove.
4898 (dse_enter_block): Simplify.
4899 (tree_ssa_dse): Likewise.
4900 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4902 2011-04-14 Jan Hubicka <jh@suse.cz>
4904 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4905 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4906 (cgraph_local_info): Remove inline_summary.
4907 * ipa-cp.c: Include ipa-inline.h.
4908 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4909 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4911 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4912 (input_overwrite_node): Do not set inline summary.
4913 (input_node): Do not stream inline summary.
4914 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4915 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4916 growth; we do not have inline parameters computed for that anyway.
4917 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4918 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4919 (inline_summary_t): New type and VECtor.
4920 (debug_inline_summary, dump_inline_summaries): Declare.
4921 (inline_summary): Use VOCtor.
4922 (estimate_edge_growth): Kill hack computing call stmt size directly.
4923 * lto-section-in.c (lto_section_name): Add inline section.
4924 * ipa-inline-analysis.c: Include lto-streamer.h
4925 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4926 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4927 (inline_summary_vec): Define.
4928 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4929 dump_inline_summaries): New functions.
4930 (estimate_function_body_sizes): Properly compute size/time of outgoing
4932 (compute_inline_parameters): Alloc inline_summary; do not compute
4933 size/time of incomming calls.
4934 (estimate_edge_time): Avoid missing time summary hack.
4935 (inline_read_summary): Read inline summary info.
4936 (inline_write_summary): Write inline summary info.
4937 (inline_free_summary): Free all hooks and inline summary vector.
4938 * lto-streamer.h: Add LTO_section_inline_summary section.
4939 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4940 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4942 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4944 * tree-vectorizer.h (vect_strided_store_supported): Add a
4945 HOST_WIDE_INT argument.
4946 (vect_strided_load_supported): Likewise.
4947 (vect_permute_store_chain): Return void.
4948 (vect_transform_strided_load): Likewise.
4949 (vect_permute_load_chain): Delete.
4950 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4951 count argument. Check that the count is a power of two.
4952 (vect_strided_load_supported): Likewise.
4953 (vect_permute_store_chain): Return void. Update after above changes.
4954 Assert that the access is supported.
4955 (vect_permute_load_chain): Likewise.
4956 (vect_transform_strided_load): Return void.
4957 * tree-vect-stmts.c (vectorizable_store): Update calls after
4958 above interface changes.
4959 (vectorizable_load): Likewise.
4960 (vect_analyze_stmt): Don't check for strided powers of two here.
4962 2011-04-14 Richard Guenther <rguenther@suse.de>
4964 PR tree-optimization/48590
4965 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4966 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4967 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4968 BUILT_IN_STACK_SAVE.
4969 * tree-ssa-dce.c (propagate_necessity): Handle
4970 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4972 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4974 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4977 2011-04-14 Richard Guenther <rguenther@suse.de>
4979 * tree.h (get_object_alignment_1): Declare.
4980 * builtins.c (get_object_alignment_1): Split out worker from ...
4981 (get_object_alignment): ... here.
4982 * fold-const.c (get_pointer_modulus_and_residue): Use
4983 get_object_alignment_1.
4985 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4987 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4989 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4990 parameter. Generalise code to handle arrays as well as vectors.
4991 (vect_setup_realignment): Update accordingly.
4992 * tree-vect-stmts.c (vectorizable_store): Likewise.
4993 (vectorizable_load): Likewise.
4995 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4997 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4998 within the per-copy loop.
5000 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5002 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5005 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5007 * doc/options.texi (Negative): Explicitly mention that the
5008 Negative chain must be circular.
5010 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5012 * function.h (block_chainon): Declare.
5013 * function.c (block_chainon): Define.
5015 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5016 Eric Weddington <eric.weddington@atmel.com>
5017 Georg-Johann Lay <avr@gjlay.de>
5019 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5021 (avr_init_builtins, avr_expand_builtin,
5022 avr_expand_delay_cycles, avr_expand_unop_builtin,
5023 avr_expand_binop_builtin ): New functions.
5024 (avr_builtin_id): New enum
5025 (struct avr_builtin_description): New struct
5026 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5027 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5029 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5030 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5031 UNSPECV_DELAY_CYCLES): new enumeration values
5032 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5033 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5034 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5035 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5036 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5037 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5038 "fmulsu"): New insns
5040 * config/avr/avr-c.c: fix line endings
5041 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5042 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5043 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5044 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5045 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5047 * doc/extend.texi (AVR Built-in Functions): New node
5048 (Target Builtins): Add documentation of AVR
5051 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5054 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5055 alone. Error if non-const data has attribute progmem.
5057 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5059 * tree.h (struct tree_constructor): Include tree_typed instead of
5061 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5062 TS_TYPED instead of TS_COMMON.
5064 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5066 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5067 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5068 (sse2_psadbw): Merge with *avx_psadbw.
5069 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5070 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5071 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5072 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5073 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5074 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5075 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5076 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5077 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5078 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5079 (ssse3_palignrti): Merge with *avx_palignrti.
5081 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5083 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5084 * tree-ssanames.c (fini_ssanames): VEC_free it.
5085 (make_ssa_name_fn): Update for VECness of free_ssanames.
5086 (release_ssa_name, release_dead_ssa_names): Likewise.
5087 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5089 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5090 TS_TYPED instead of TS_COMMON.
5092 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5094 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5095 statistics_counter_event.
5096 * tree-ssa-copyrename.c (stats): Define.
5097 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5098 statistics_counter_event.
5099 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5100 (bswap_stats, widen_mul_stats): Define.
5101 (insert_reciprocals): Increment rdivs_inserted.
5102 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5103 rfuncs_inserted. Add calls to statistics_counter_event.
5104 (execute_cse_sincos_1): Increment inserted.
5105 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5106 statistics_counter_event.
5107 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5108 of bswap_stats. Add calls to statistics_counter_event.
5109 (convert_mult_to_widen): Increment widen_mults_inserted.
5110 (convert_plusminus_to_widen): Increment maccs_inserted.
5111 (convert_mult_to_fma): Increment fmas_inserted.
5112 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5113 calls to statistics_counter_event.
5115 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5117 PR rtl-optimization/48455
5118 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5119 `temp_costs->mem_cost'.
5121 2011-04-13 Jan Hubicka <jh@suse.cz>
5123 * ipa-inline.h: New file.
5124 * ipa-inline-analysis.c: New file. Broken out of ...
5125 * ipa-inline.c: ... this file; update toplevel comment;
5126 include ipa-inline.h
5127 (inline_summary): Move to ipa-inline.h
5128 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5129 ipa-inline-analysis.c.
5130 (cgraph_estimate_time_after_inlining): Rename to
5131 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5132 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5133 to estimate_edge_growth.
5134 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5135 rename to estimate_size_after_inlining.
5136 (cgraph_mark_inline_edge): Update for new naming convention.
5137 (cgraph_check_inline_limits): Likewise.
5138 (cgraph_edge_badness): Likewise.
5139 (cgraph_decide_recursive_inlining): Likewise.
5140 (cgraph_decide_inlining_of_small_functions): Likewise.
5141 (cgraph_decide_inlining_incrementally): Likewise.
5142 (cgraph_estimate_growth): Rename to estimate_growth; move to
5143 ipa-inline-analysis.c.
5144 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5145 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5146 (compute_inline_parameters): Likewise.
5147 (compute_inline_parameters_for_current): Likewise.
5148 (pass_inline_parameters): Likewise.
5149 (inline_indirect_intraprocedural_analysis): Likewise.
5150 (analyze_function): Rename to inline_analyze_function; likewise.
5151 (add_new_function): Move to ipa-inline-analysis.c.
5152 (inline_generate_summary): Likewise.
5153 (inline_read_summary): Likewise.
5154 (inline_write_summary): Likewise.
5155 * Makefile.in (ipa-inline-analysis.c): New file.
5157 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5159 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5160 * configure: Regenerate.
5162 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5164 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5165 instead of tree_common.
5166 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5168 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5169 TS_TYPED rather than TS_COMMON.
5170 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5172 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5175 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5176 r20 around calls of __tablejump_elpm__
5178 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5181 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5183 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5185 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5187 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5188 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5189 (cfi_vec): New typedef.
5190 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5191 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5192 (cie_cfi_vec): New static variable.
5193 (cie_cfi_head): Delete.
5194 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5195 declaration changed. Use vector rather than list operations.
5196 (new_cfi): Don't initialize the dw_cfi_next field.
5197 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5198 rather than list operations.
5199 (lookup_cfa): Use vector rather than list operations.
5200 (output_cfis): New argument upto. Accept a cfi_vec rather than
5201 a dw_cfi_ref list head as argument. All callers changed.
5202 Iterate over the vector using upto as a maximum index.
5203 (output_all_cfis): New static function.
5204 (output_fde): Use vector rather than list operations. Use the
5205 new upto argument for output_cfis rather than manipulating a
5207 (dwarf2out_begin_prologue): Change initializations to match
5209 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5210 from the vector length rather than searching for the end of a list.
5211 Use output_all_cfis.
5212 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5214 2011-04-13 Nick Clifton <nickc@redhat.com>
5216 * config/rx/rx.md (movmemsi): Do not use this pattern when
5217 volatile pointers are involved.
5219 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5221 * config/i386/sse.md (pinsrbits): Remove.
5222 (sse2_packsswb): Merge with *avx_packsswb.
5223 (sse2_packssdw): Merge with *avx_packssdw.
5224 (sse2_packuswb): Merge with *avx_packuswb.
5225 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5226 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5227 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5228 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5229 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5230 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5231 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5232 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5233 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5234 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5235 (sse2_loadld): Merge with *avx_loadld.
5236 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5237 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5238 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5239 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5240 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5242 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5244 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5246 * print-tree.c (print_node): Likewise.
5247 * tree-inline.c (copy_tree_r): Likewise.
5248 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5249 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5250 instead of TS_COMMON.
5251 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5252 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5253 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5254 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5255 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5257 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5259 (TREE_CHAIN): Check for a TS_COMMON structure.
5260 (TREE_TYPE): Check for a TS_TYPED structure.
5262 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5264 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5265 cgraph_get_create_node instead of cgraph_node.
5267 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5269 * c-parser.c (c_parser_initelt): Updated call to
5270 objc_build_message_expr.
5271 (c_parser_postfix_expression): Likewise.
5273 2011-04-12 Kai Tietz <ktietz@redhat.com>
5275 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5276 MASK_MS_BITFIELD_LAYOUT bit.
5278 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5280 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5281 assert it is always true.
5282 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5285 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5287 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5288 compiling Objective-C to be more efficient.
5290 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5292 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5295 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5297 * recog.h, genoutput.c, optabs.c: Revert last patch.
5299 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5302 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5304 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5306 * recog.h (insn_operand_data): Add an "allows_mem" field.
5307 * genoutput.c (output_operand_data): Initialize it.
5308 * optabs.c (maybe_legitimize_operand_same_code): New function.
5309 (maybe_legitimize_operand): Use it when matching the original
5312 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5314 * genpreds.c (process_define_predicate): Move most processing
5315 to gensupport.c. Continue to validate the expression.
5316 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5317 (process_define_predicate): Move processing to gensupport.c.
5318 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5319 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5320 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5322 (valid_predicate_name_p): New function, split out from old
5323 genpreds.c:process_define_predicate.
5324 (process_define_predicate): New function, combining code from
5325 old genpreds.c and genrecog.c functions.
5326 (process_rtx): Call it for DEFINE_PREDICATE and
5327 DEFINE_SPECIAL_PREDICATE.
5329 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5331 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5332 size of a '%A' memory reference.
5333 (T_DREG, T_QREG): New neon_builtin_type_bits.
5334 (arm_init_neon_builtins): Assert that the load and store operands
5335 are neon_struct_operands.
5336 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5337 (NEON_ARG_MEMORY): New builtin_arg.
5338 (neon_dereference_pointer): New function.
5339 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5340 Handle NEON_ARG_MEMORY.
5341 (arm_expand_neon_builtin): Update after above interface changes.
5342 Use NEON_ARG_MEMORY for loads and stores.
5343 * config/arm/predicates.md (neon_struct_operand): New predicate.
5344 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5345 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5346 (V_four_elem): Tweak formatting.
5347 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5348 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5349 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5350 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5351 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5352 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5353 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5354 Use %A in the output template.
5355 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5356 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5357 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5358 the width of the memory access. Remove post-increment.
5359 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5361 2011-04-12 Nick Clifton <nickc@redhat.com>
5363 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5364 instruction for interrupt handlers if the target is the basic V850
5366 (expand_epilogue): Likewise.
5368 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5370 PR rtl-optimization/48549
5371 * combine.c (propagate_for_debug): Also stop after BB_END of
5372 this_basic_block. Process LAST and just stop processing after it.
5373 (combine_instructions): If last_combined_insn has been deleted,
5374 set last_combined_insn to its PREV_INSN.
5376 2011-04-12 Richard Guenther <rguenther@suse.de>
5378 PR tree-optimization/46076
5379 * gimple.h (struct gimple_statement_call): Add fntype field.
5380 (gimple_call_fntype): Adjust.
5381 (gimple_call_set_fntype): New function.
5382 * gimple.c (gimple_build_call_1): Set the call function type.
5383 * gimplify.c (gimplify_call_expr): Preserve the function
5384 type the frontend used for the call.
5385 (gimplify_modify_expr): Likewise.
5386 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5388 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5390 * tree-ssa.c (useless_type_conversion_p): Function pointer
5391 conversions are useless.
5393 2011-04-12 Martin Jambor <mjambor@suse.cz>
5395 * cgraph.h (cgraph_node): Remove function declaration.
5396 (cgraph_create_node): Declare.
5397 (cgraph_get_create_node): Likewise.
5398 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5399 Updated all callers.
5400 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5401 the decl does not already exist. Call cgraph_get_create_node instead
5403 (cgraph_get_create_node): New function.
5404 (cgraph_same_body_alias): Update comment.
5405 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5406 assert it does not return NULL.
5407 (cgraph_update_edges_for_call_stmt): Likewise.
5408 (cgraph_clone_edge): Likewise.
5409 (cgraph_create_virtual_clone): Likewise.
5410 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5411 instead of cgraph_node.
5412 (cgraph_add_new_function): Call cgraph_create_node or
5413 cgraph_get_create_node instead of cgraph_node.
5414 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5415 instead of cgraph_node.
5416 (record_eh_tables): Likewise.
5417 (mark_address): Likewise.
5418 (mark_load): Likewise.
5419 (build_cgraph_edges): Call cgraph_get_create_node instead
5421 (rebuild_cgraph_edges): Likewise.
5422 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5423 instead of cgraph_node.
5424 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5426 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5427 cgraph_create_node instead of cgraph_node.
5428 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5430 * lto-cgraph.c (input_node): Likewise.
5431 * lto-streamer-in.c (input_function): Likewise.
5432 * varasm.c (mark_decl_referenced): Likewise.
5433 (assemble_alias): Likewise.
5435 2011-04-12 Martin Jambor <mjambor@suse.cz>
5437 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5438 instead of cgraph_node and assert it does not return NULL.
5439 * lto-streamer-in.c (lto_read_body): Likewise.
5440 * omp-low.c (new_omp_context): Likewise.
5441 (create_task_copyfn): Likewise.
5442 * tree-emutls.c (lower_emutls_function_body): Likewise.
5443 * matrix-reorg.c (transform_allocation_sites): Likewise.
5445 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5448 * c-typeck.c (build_asm_expr): Error out on attempts to use
5449 void type outputs or inputs for constraints that allow reg or
5452 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5453 Richard Earnshaw <rearnsha@arm.com>
5456 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5457 to use sign-magnitude offsets. Reject unsupported unaligned
5458 cases. Add detailed description in comments.
5459 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5460 condition from TARGET_32BIT to TARGET_ARM.
5462 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5464 * tree.h (struct typed_tree): New.
5465 (struct tree_common): Include it instead of tree_base.
5466 (TREE_TYPE): Update for new location of type field.
5467 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5468 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5469 (union tree_node): Add typed field.
5470 * treestruct.def (TS_TYPED): New.
5471 * lto-streamer.c (check_handled_ts_structures): Handle it.
5472 * tree.c (MARK_TS_TYPED): New macro.
5473 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5475 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5477 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5478 (force_nonfallthru): Do not alter the loop nest if no basic block
5481 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5483 * config/i386/sse.md (VI): New mode iterator.
5485 (AVX256MODEI): Ditto.
5486 (AVXMODEF4P): Ditto.
5487 (avxvecpsmode): Ditto.
5488 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5489 (sse2_andnot<mode>3): New expander.
5490 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5491 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5492 (<any_logic:code><mode>3): Use VI mode iterator.
5493 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5494 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5495 (*andnottf3): Handle AVX three-operand constraints.
5496 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5498 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5499 Robert Millan <rmh@gnu.org>
5501 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5502 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5503 GNU_USER_DYNAMIC_LINKER64): Define.
5504 (REG_NAME): Don't undefine.
5505 (MD_UNWIND_SUPPORT): Undefine.
5506 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5507 (REG_NAME): Don't undefine.
5508 (MD_UNWIND_SUPPORT): Undefine.
5509 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5511 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5513 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5514 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5516 2011-04-11 Xinliang David Li <davidxl@google.com>
5518 * value-profile.c (check_ic_target): New function.
5519 (gimple_ic_transform): Sanity check indirect call target.
5520 * gimple-low.c (gimple_check_call_args): Interface change.
5521 (gimple_check_call_matching_types): New function.
5522 * tree-inline.c (tree_can_inline_p): Call new function.
5524 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5526 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5527 tree-pretty-print.h & realmpfr.h.
5529 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5532 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5533 (setup_allocno_and_important_classes): Ditto.
5535 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5537 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5538 GNU_USER_DYNAMIC_LINKER.
5539 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5540 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5541 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5542 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5543 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5544 GNU_USER_TARGET_OS_CPP_BUILTINS.
5545 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5546 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5547 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5548 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5549 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5550 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5551 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5552 GNU_USER_TARGET_OS_CPP_BUILTINS.
5553 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5554 GNU_USER_DYNAMIC_LINKER.
5555 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5556 GNU_USER_TARGET_OS_CPP_BUILTINS.
5557 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5558 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5559 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5560 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5561 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5562 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5563 GNU_USER_DYNAMIC_LINKER64): Remove.
5564 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5565 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5566 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5567 GNU_USER_DYNAMIC_LINKER.
5568 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5569 GNU_USER_TARGET_OS_CPP_BUILTINS.
5570 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5571 GNU_USER_TARGET_OS_CPP_BUILTINS.
5572 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5573 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5574 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5575 GNU_USER_TARGET_OS_CPP_BUILTINS.
5576 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5577 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5578 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5579 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5580 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5581 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5582 GNU_USER_DYNAMIC_LINKER.
5583 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5584 GNU_USER_TARGET_OS_CPP_BUILTINS.
5585 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5586 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5587 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5588 GNU_USER_DYNAMIC_LINKER.
5589 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5590 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5591 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5592 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5593 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5594 GNU_USER_DYNAMIC_LINKER.
5595 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5596 GNU_USER_DYNAMIC_LINKERN32.
5597 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5598 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5599 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5600 GNU_USER_DYNAMIC_LINKER32.
5601 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5602 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5603 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5604 GNU_USER_DYNAMIC_LINKER.
5605 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5607 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5609 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5610 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5611 GNU_USER_DYNAMIC_LINKER32.
5612 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5613 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5614 GNU_USER_DYNAMIC_LINKER.
5615 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5616 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5617 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5618 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5619 GNU_USER_DYNAMIC_LINKER64.
5620 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5621 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5622 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5623 GNU_USER_DYNAMIC_LINKER.
5624 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5626 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5627 GNU_USER_DYNAMIC_LINKER.
5628 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5629 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5630 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5631 GNU_USER_DYNAMIC_LINKER32.
5632 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5633 GNU_USER_DYNAMIC_LINKER64.
5634 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5635 GNU_USER_DYNAMIC_LINKER64.
5636 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5638 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5639 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5640 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5642 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5644 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5645 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5646 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5647 GNU_USER_DYNAMIC_LINKER.
5648 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5649 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5650 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5651 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5652 GNU_USER_DYNAMIC_LINKER64.
5653 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5654 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5655 GNU_USER_LINK_EMULATION.
5656 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5657 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5658 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5659 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5660 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5661 CPP_SPEC, CC1_SPEC): Remove.
5662 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5663 (GNU_USER_DYNAMIC_LINKER): Define.
5664 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5665 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5666 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5667 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5668 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5669 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5670 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5671 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5672 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5673 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5674 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5675 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5676 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5677 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5678 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5679 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5680 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5681 GNU_USER_DYNAMIC_LINKER.
5682 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5683 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5684 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5685 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5686 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5687 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5688 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5689 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5690 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5691 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5693 2011-04-11 Kai Tietz <ktietz@redhat.com>
5697 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5698 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5700 (ix86_is_msabi_thiscall): Removed.
5701 (ix86_is_type_thiscall): Likewise.
5702 (ix86_get_callcvt): New function.
5703 (ix86_comp_type_attributes): Simplify check.
5704 (ix86_function_regparm): Use ix86_get_callcvt for calling
5705 convention attribute checks.
5706 (ix86_return_pops_args): Likewise.
5707 (ix86_static_chain): Likewise.
5708 (x86_this_parameter): Likewise.
5709 (x86_output_mi_thunk): Likewise.
5710 (ix86_function_type_abi): Optimize check for types without attributes.
5711 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5712 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5713 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5715 (IX86_BASE_CALLCVT): Helper macro.
5716 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5717 Use ix86_get_callcvt for calling convention attribute checks and avoid
5718 symbol-decoration for stdcall in TARGET_RTD case.
5719 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5721 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5724 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5726 * config/i386/sse.md (VI_128): New mode iterator.
5727 (VI12_128): Rename from SSEMODE12.
5728 (VI14_128): Rename from SSEMODE14.
5729 (VI124_128): New mode iterator.
5730 (VI24_128): Rename from SSEMODE248.
5731 (VI248_128): Rename from SSEMODE248.
5732 (SSEMODE124C8): Remove.
5733 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5734 (*sse2_<plusminus_insn><mode>3): Merge with
5735 *avx_<plusminus_insn><mode>3.
5736 (*mulv8hi3): Merge with *avx_mulv8hi3.
5737 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5738 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5739 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5740 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5741 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5742 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5743 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5744 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5745 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5746 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5747 (*<smaxmin:code>v8hi3): Ditto.
5748 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5749 (*<smaxmin:code>v16qi3): Ditto.
5750 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5751 (*sse2_eq<mode>3): Ditto.
5752 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5753 (*sse2_gt<mode>3): Ditto.
5754 (vcondv2di): Split out of vcond<mode>.
5755 (vconduv2di): Split out of vcondu<mode>.
5757 2011-04-11 Richard Guenther <rguenther@suse.de>
5759 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5760 before calling tree_low_cst.
5762 2011-04-11 Richard Guenther <rguenther@suse.de>
5764 * stor-layout.c (layout_type): Compute all array index size operations
5765 in the original type.
5766 (initialize_sizetypes): Add comment.
5767 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5769 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5771 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5773 2011-04-11 Martin Jambor <mjambor@suse.cz>
5775 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5776 of cgraph_node, handle NULL return value.
5777 (cgraph_global_info): Likewise.
5778 (cgraph_rtl_info): Likewise.
5779 * tree-inline.c (estimate_num_insns): Likewise.
5780 * gimplify.c (unshare_body): Likewise.
5781 (unvisit_body): Likewise.
5782 (gimplify_body): Likewise.
5783 * predict.c (optimize_function_for_size_p): Likewise.
5784 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5785 (call_may_clobber_ref_p_1): Likewise.
5786 * varasm.c (function_section_1): Likewise.
5787 (assemble_start_function): Likewise.
5789 2011-04-11 Martin Jambor <mjambor@suse.cz>
5791 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5793 * final.c (rest_of_clean_state): Likewise.
5794 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5795 * passes.c (pass_init_dump_file): Likewise.
5796 (execute_all_ipa_transforms): Likewise.
5797 (function_called_by_processed_nodes_p): Likewise.
5798 * predict.c (maybe_hot_frequency_p): Likewise.
5799 (probably_never_executed_bb_p): Likewise.
5800 (compute_function_frequency): Likewise.
5801 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5802 (unnest_nesting_tree_1): Likewise.
5803 (lower_nested_functions): Likewise.
5804 * tree-optimize.c (execute_fixup_cfg): Likewise.
5805 (tree_rest_of_compilation): Likewise.
5806 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5807 * tree-sra.c (ipa_early_sra): Likewise.
5808 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5809 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5810 * ipa.c (record_cdtor_fn): Likewise.
5811 * ipa-inline.c (cgraph_early_inlining): Likewise.
5812 (compute_inline_parameters_for_current): Likewise.
5813 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5814 * ipa-pure-const.c (local_pure_const): Likewise.
5815 * ipa-split.c (split_function): Likewise.
5816 (execute_split_functions): Likewise.
5817 * cgraphbuild.c (build_cgraph_edges): Likewise.
5818 (rebuild_cgraph_edges): Likewise.
5819 (cgraph_rebuild_references): Likewise.
5820 (remove_cgraph_callee_edges): Likewise.
5821 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5822 (verify_cgraph_node): Likewise.
5823 (cgraph_analyze_functions): Likewise.
5824 (cgraph_preserve_function_body_p): Likewise.
5825 (save_inline_function_body): Likewise.
5826 (save_inline_function_body): Likewise.
5827 * tree-inline.c (copy_bb): Likewise.
5828 (optimize_inline_calls): Likewise.
5830 2011-04-11 Martin Jambor <mjambor@suse.cz>
5832 PR tree-optimization/48195
5833 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5834 ipa_check_create_edge_args.
5835 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5836 ipa_check_create_edge_args.
5837 * ipa-inline.c (inline_generate_summary): Do not call
5838 ipa_check_create_node_params and ipa_check_create_edge_args.
5839 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5840 ipa_check_create_edge_args.
5842 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5844 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5846 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5847 * function.c (record_hard_reg_sets): Likewise.
5848 * ira.c (compute_regs_asm_clobbered): Likewise.
5849 * sched-deps.c (sched_analyze_1): Likewise.
5850 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5852 2011-04-09 Xinliang David Li <davidxl@google.com>
5854 PR tree-optimization/PR48484
5855 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5856 has_valid_pred lazily
5858 2011-04-09 Duncan Sands <baldrick@free.fr>
5860 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5862 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5864 * combine.c (combine_validate_cost): Adjust comments. Set registered
5865 cost of I0 to zero at the end, if any.
5867 2011-04-08 Xinliang David Li <davidxl@google.com>
5869 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5870 to insane profile data.
5872 2011-04-08 Xinliang David Li <davidxl@google.com>
5874 * ipa-cp.c (ipcp_update_profiling): Correct
5875 negative scale factor due to insane profile data.
5877 2011-04-08 Xinliang David Li <davidxl@google.com>
5879 * final.c (dump_basic_block_info): New function.
5880 (final): Dump basic block.
5881 (final_scan_insn): Remove old dump.
5883 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5886 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5889 2011-04-08 Michael Matz <matz@suse.de>
5892 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5894 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5895 * rtl.h (rebuild_jump_labels_chain): Declare.
5896 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5897 insns inserted on edges.
5899 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5901 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5902 * config/arm/arm-arches.def: New.
5903 * config/arm/arm-opts.h: New.
5904 * config/arm/genopt.sh: New.
5905 * config/arm/arm-tables.opt: New (generated).
5906 * config/arm/arm.c (arm_handle_option, arm_target_help,
5907 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5908 (all_architectures): Get most table contents from arm-arches.def.
5909 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5910 arm_selected_tune here.
5911 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5912 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5913 (march=, mcpu=, mtune=): Use Enum and Var.
5914 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5915 (arm.o): Update dependencies.
5917 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5919 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5921 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5922 (write_typed_alloc_defns): Likewise.
5923 (main): Calls write_typed_alloc_defns with output_header.
5925 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5928 * ira-color.c (setup_profitable_hard_regs): Add comments.
5929 Don't take prohibited hard regs into account.
5930 (setup_conflict_profitable_regs): Rename to
5931 get_conflict_profitable_regs.
5932 (check_hard_reg_p): Check prohibited hard regs.
5934 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5936 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5937 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5938 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5940 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5943 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5944 move from floating point to shift amount register.
5945 (emit_move_sequence): Remove secondary reload support for floating
5946 point to shift amount amount register copies.
5947 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5948 amount register copies.
5949 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5950 register, return false if mode isn't a scalar integer mode.
5951 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5953 2011-04-08 Richard Guenther <rguenther@suse.de>
5955 * gimple.c (gimple_call_flags): Remove kludge.
5957 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5959 * sel-sched.c (sel_region_init): Move call to
5960 sel_setup_region_sched_flags after setup_current_loop_nest.
5962 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5964 PR rtl-optimization/48272
5965 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5966 init_insn_reg_pressure_info. Adjust a caller.
5967 * sched-int.h (init_insn_reg_pressure_info): Declare.
5968 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5969 when sched-pressure is enabled.
5971 2011-04-08 Richard Guenther <rguenther@suse.de>
5973 * gimple.c (gimple_set_modified): Do not queue calls to
5974 MODIFIED_NORETURN_CALLS here ...
5975 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5977 2011-04-08 Richard Guenther <rguenther@suse.de>
5980 * toplev.c (lang_dependent_init): Do not open asm_out_file
5981 in WPA mode, nor perform debug machinery initialization.
5982 (finalize): Do not unlink asm_out_file in WPA mode.
5984 2011-04-08 Richard Guenther <rguenther@suse.de>
5986 * gimple.h (gimple_call_fntype): New function.
5987 (gimple_call_return_type): Use it.
5988 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5989 * gimple-low.c (gimple_check_call_args): Likewise.
5990 * gimple.c (gimple_call_flags): Likewise.
5991 (gimple_call_arg_flags): Likewise.
5992 (gimple_call_return_flags): Likewise.
5993 * tree-cfg.c (verify_gimple_call): Likewise.
5994 (do_warn_unused_result): Likewise.
5995 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5996 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5998 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6000 PR rtl-optimization/48235
6001 * sel-sched.c (code_motion_process_successors): Recompute the last
6002 insn in basic block if control flow changed.
6003 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6004 Update condition for ilist_remove.
6006 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6008 PR rtl-optimization/48302
6009 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6010 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6011 it to record added preheader blocks.
6012 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6013 on to sel_add_loop_preheaders.
6014 (sel_region_init): Move call to setup_current_loop_nest after
6017 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6020 * cfgloop.h (loop_has_exit_edges): New helper.
6021 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6023 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6024 that have no exit edges.
6026 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6028 PR rtl-optimization/48442
6029 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6030 all callers. Adjust assert.
6032 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6034 PR tree-optimization/48377
6035 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6036 is_packed to true even for types with smaller TYPE_ALIGN than
6039 2011-04-08 Richard Guenther <rguenther@suse.de>
6042 * doc/tm.texi: Re-generate.
6044 2011-04-08 Wei Guozhi <carrot@google.com>
6047 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6048 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6049 * config/arm/arm.md (*push_multi): Change the length computation to
6052 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6054 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6055 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6056 * doc/tm.texi: Regenerate.
6057 * system.h (ASM_OUTPUT_BSS): Poison.
6058 * varasm.c (asm_output_bss): Remove function.
6059 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6061 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6062 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6063 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6064 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6066 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6068 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6070 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6072 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6074 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6077 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6079 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6080 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6081 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6083 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6084 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6085 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6086 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6087 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6088 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6089 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6090 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6091 options. Don't map other m68k options manually. Don't handle
6092 old-style options as canonical.
6093 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6094 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6096 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6098 * basic-block.h (force_nonfallthru): Move to...
6099 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6100 (force_nonfallthru): ...here.
6101 * cfghooks.c (force_nonfallthru): New function.
6102 * cfgrtl.c (force_nonfallthru): Rename into...
6103 (rtl_force_nonfallthru): ...this.
6104 (commit_one_edge_insertion): Do not set AUX field.
6105 (commit_edge_insertions): Do not discover new basic blocks.
6106 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6107 (cfg_layout_rtl_cfg_hooks): Likewise.
6108 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6109 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6110 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6112 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6114 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6117 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6119 * config/i386/sse.md: Update copyright year.
6120 (avxcvtvecmode): Remove.
6121 (sse_movhlps): Merge with *avx_movhlps.
6122 (sse_movlhps): Merge with *avx_movlhps.
6123 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6124 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6125 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6126 (sse_loadhps): Merge with *avx_loadhps.
6127 (sse_storelps): Merge with *avx_storelps.
6128 (sse_loadlps): Merge with *avx_loadlps.
6129 (sse_movss): Merge with *avx_movss.
6130 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6131 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6132 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6133 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6134 (vec_set<mode>_0): Ditto.
6135 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6136 (sse4_1_insertps): Merge with *avx_insertps.
6137 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6138 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6139 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6140 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6141 (sse2_storehpd): Merge with *avx_storehpd.
6142 (sse2_loadhpd): Merge with *avx_loadhpd.
6143 (sse2_loadlpd): Merge with *avx_loadlpd.
6144 (sse2_movsd): Merge with *avx_movsd.
6145 (*vec_concatv2df): Merge with *vec_concatv2df.
6147 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6150 * combine.c (combine_instructions): Add last_combined_insn,
6151 update it if insn is after it, pass it to all try_combine calls.
6152 (try_combine): Add last_combined_insn parameter, pass it instead of
6153 i3 to propagate_for_debug.
6155 2011-04-07 Nick Clifton <nickc@redhat.com>
6157 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6158 to handle MDR <-> data register transfers.
6159 (movhi_internal): Likewise.
6161 2011-04-07 Alan Modra <amodra@gmail.com>
6163 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6164 previous stack info.
6166 2011-04-07 Tom de Vries <tom@codesourcery.com>
6169 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6170 flow_find_cross_jump. Swap variables to implement backward replacement.
6171 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6173 2011-04-07 Tom de Vries <tom@codesourcery.com>
6176 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6177 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6179 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6180 src1 or src2. Redirect edges to the last basic block. Update
6181 frequency and count on multiple basic blocks in case of fallthru.
6183 2011-04-07 Tom de Vries <tom@codesourcery.com>
6186 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6188 (old_insns_match_p): Change return type. Replace return false/true
6189 with return dir_none/dir_both. Use can_replace_by.
6190 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6191 direction from dir_p. Register replacement direction in dir, last_dir
6192 and afterlast_dir. Handle new return type of old_insns_match_p using
6193 merge_dir. Return replacement direction in dir_p.
6194 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6195 return type of old_insns_match_p.
6196 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6197 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6198 flow_find_cross_jump.
6199 * basic-block.h (enum replace_direction): New type.
6200 (flow_find_cross_jump): Add parameter to declaration.
6202 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6204 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6205 (AVXMODEDCVTPS2DQ): Ditto.
6206 (VEC_FLOAT_MODE): Ditto.
6207 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6208 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6209 (<any_logic:code><mode>3): Use VF mode iterator.
6210 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6211 Use VF mode iterator.
6212 (copysign<mode>3): Use VF mode iterator.
6213 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6214 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6215 (*<any_logic:code><MODEF:mode>3): Merge with
6216 *avx_<any_logic:code><MODEF:mode>3.
6217 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6218 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6219 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6220 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6221 (sse2_cvtdq2ps): Use %v modifier.
6222 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6223 (avx_cvtps2dq<avxmodesuffix>): Remove.
6224 (sse2_cvtps2dq): Use %v modifier.
6225 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6226 (avx_cvttps2dq<avxmodesuffix>): Remove.
6227 (sse2_cvttps2dq): Use %v modifier.
6228 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6229 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6230 (sse2_cvtsd2siq): Fix insn template.
6231 (sse2_cvtsd2siq_2): Ditto.
6232 (sse2_cvttsd2siq): Ditto.
6233 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6234 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6236 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6238 * gcov-io.c: Use GCC Runtime Library Exception.
6240 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6243 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6244 as base_reg whatever register reg has been eliminated to, instead
6245 of hardcoding STACK_POINTER_REGNUM.
6247 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6249 * doc/tm.texi.in: Document C target hooks as separate from general
6251 * doc/tm.texi: Regenerate.
6252 * genhooks.c (struct hook_desc): Add docname field.
6253 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6255 (hook_array): Include c-target.def.
6256 (emit_documentation): Use docname field in output.
6257 (emit_init_macros): Take docname argument. Only emit definitions
6258 for hooks matching docname.
6259 (main): Expect additional arguments in all cases. Pass argument
6260 to emit_init_macros.
6261 * target.def: Move initial macro definitions and comments to
6262 target-hooks-macros.h.
6263 (gcc_targetcm): Move to c-family/c-target.def.
6264 * target.h (targetcm): Move declaration to c-family/c-target.h.
6265 * targhooks.c (default_handle_c_option): Move to
6267 * targhooks.h (default_handle_c_option): Move declaration to
6268 c-family/c-common.h.
6269 * target-hooks-macros.h: New file.
6270 * config.gcc (target_has_targetcm): Define and use to add to
6271 c_target_objs and cxx_target_objs.
6272 * config/default-c.c: New file.
6273 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6274 of target.h and target-def.h.
6275 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6276 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6277 darwin_check_cfstring_format_arg): Make static.
6278 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6279 TARGET_STRING_OBJECT_REF_TYPE_P,
6280 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6281 * config/darwin-protos.h (darwin_objc_construct_string,
6282 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6284 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6285 TARGET_STRING_OBJECT_REF_TYPE_P,
6286 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6287 * config/t-darwin (darwin-c.o): Update dependencies.
6288 * system.h (TARGET_HAS_TARGETCM): Poison.
6289 * Makefile.in (TARGET_H): Update.
6290 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6291 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6292 (default-c.o): New target.
6293 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6294 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6295 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6297 (build/genhooks.o): Update dependencies.
6299 2011-04-06 Richard Guenther <rguenther@suse.de>
6301 * ipa-inline.c (enum inlining_mode): Remove.
6302 (cgraph_flatten): Use some other token.
6303 (cgraph_edge_early_inlinable_p): New function, split out from ...
6304 (cgraph_perform_always_inlining): New function, split out from ...
6305 (cgraph_decide_inlining_incrementally): ... here.
6306 (cgraph_mark_inline_edge): Adjust.
6307 (cgraph_early_inlining): Re-structure.
6308 (pass_early_inline): Require SSA form.
6310 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6311 Julian Brown <julian@codesourcery.com>
6312 Mark Shinwell <shinwell@codesourcery.com>
6314 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6315 LO_REGS only for Thumb-1.
6316 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6317 be used in short instructions when optimising for size on Thumb-2.
6319 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6321 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6322 associated with user returns to be preserved.
6324 2011-04-06 Tristan Gingold <gingold@adacore.com>
6326 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6327 symbol_queue_size, DBXOUT_DECR_NESTING,
6328 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6329 if XCOFF_DEBUGGING_INFO.
6331 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6333 * config/i386/i386.md (attribute isa): New.
6334 (attribute enabled): New.
6335 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6336 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6337 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6338 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6339 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6340 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6341 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6342 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6344 * config/i386/sse.md (VF): New mode iterator.
6348 (SSEMODEF4): Remove.
6349 (attribute sse): Handle V8SF and V4DF modes.
6350 (<absneg:code><mode>2): Use VF mode iterator.
6351 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6353 (<plusminus_insn><mode>3): Use VF mode iterator.
6354 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6355 Use VF mode iterator.
6356 (<sse>_vm<plusminus_insn><mode>3): Merge with
6357 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6358 (mul<mode>3): Use VF mode iterator.
6359 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6360 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6362 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6363 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6364 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6365 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6367 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6368 Use VF1 mode iterator.
6369 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6370 (sqrt<VF2:mode>2): New expander.
6371 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6372 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6373 and sqrtv2df2. Use VF mode iterator.
6374 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6376 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6377 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6378 Use VF1 mode iterator.
6379 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6380 (<smaxmin:code><mode>3): Use VF mode iterator.
6381 (*<smaxmin:code><mode>3_finite): Merge with
6382 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6383 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6384 (<sse>_vm<smaxmin:code><mode>2): Merge with
6385 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6386 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6388 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6390 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6391 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6392 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6393 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6394 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6396 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6397 Use VF_128 mode iterator.
6398 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6400 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6401 VF_128 mode iterator.
6402 (vcond<mode>): Use VF mode iterator.
6403 * config/i386/predicates.md (sse_comparison_operator): Merge with
6404 avx_comparison_float_operator. Do not declare as special_predicate.
6405 * config/i386/i386.c (struct builtin_description): Update for renamed
6407 (ix86_expand_args_builtin): Ditto.
6408 (ix86_expand_sse_compare_mask): Ditto.
6410 2011-04-06 Richard Guenther <rguenther@suse.de>
6412 * tree-inline.c (estimate_num_insns): For calls simply account
6413 for all passed arguments and a used return value.
6415 2011-04-06 Richard Guenther <rguenther@suse.de>
6417 PR tree-optimization/47663
6418 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6419 call_stmt_time fields.
6420 (cgraph_edge_inlinable_p): Declare.
6421 (cgraph_edge_recursive_p): New inline function.
6422 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6423 (cgraph_clone_edge): Copy it.
6424 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6425 Account for call stmt time.
6426 (cgraph_estimate_time_after_inlining): Take edge argument.
6427 (cgraph_estimate_edge_growth): Account call stmt size.
6428 (cgraph_estimate_size_after_inlining): Take edge argument.
6429 (cgraph_mark_inline_edge): Adjust.
6430 (cgraph_check_inline_limits): Likewise.
6431 (cgraph_recursive_inlining_p): Remove.
6432 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6433 (cgraph_decide_recursive_inlining): Take edge argument and
6435 (cgraph_decide_inlining_of_small_functions): Do not avoid
6436 diags for recursive inlining here.
6437 (cgraph_flatten): Adjust.
6438 (cgraph_decide_inlining_incrementally): Likewise.
6439 (estimate_function_body_sizes): Remove call cost handling.
6440 (compute_inline_parameters): Initialize caller edge call costs.
6441 (cgraph_estimate_edge_growth): New function.
6442 (cgraph_estimate_growth): Use it.
6443 (cgraph_edge_badness): Likewise.
6444 (cgraph_check_inline_limits): Take an edge argument.
6445 (cgraph_decide_inlining_of_small_functions): Adjust.
6446 (cgraph_decide_inlining): Likewise.
6447 * tree-inline.c (estimate_num_insns): Only account for call
6448 return value if it is used.
6449 (expand_call_inline): Avoid diagnostics on recursive inline
6451 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6452 (input_edge): Input edge call costs.
6454 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6456 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6458 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6460 * doc/invoke.texi (Spec Files): Fix typo.
6462 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6464 * profile.c (branch_prob): Move declaration of local variable. Remove
6465 obsolete ??? comment. Expand the location explicitly instead of using
6466 the LOCATION_FILE and LOCATION_LINE macros.
6468 2011-04-06 Wei Guozhi <carrot@google.com>
6471 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6472 (arm_cond_branch): Likewise.
6473 (arm_cond_branch_reversed): Likewise.
6474 (arm_jump): Likewise.
6475 (push_multi): Likewise.
6476 * config/arm/constraints.md (Py): New constraint.
6478 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6481 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6483 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6484 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6485 #ifdef DBX_DEBUGGING_INFO.
6487 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6490 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6491 if old and new states differ.
6493 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6495 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6496 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6497 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6498 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6499 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6501 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6502 ColdFire options to -mcpu= options.
6504 2011-04-05 Jeff Law <law@redhat.com>
6506 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6507 check if BB is a successor of LOOP->header and return
6508 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6510 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6512 * cprop.c (struct reg_use): Remove.
6513 (reg_use_table): Make an array of RTX.
6514 (find_used_regs, constprop_register, local_cprop_pass,
6515 bypass_block): Simplify users of reg_use_table.
6516 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6517 on one of the uses found by find_used_regs.
6519 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6522 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6525 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6527 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6529 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6531 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6534 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6536 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6538 * combine.c: Include obstack.h.
6539 (struct insn_link): Define.
6540 (uid_log_links): Adjust type.
6541 (FOR_EACH_LOG_LINK): New macro.
6542 (insn_link_obstack): Declare.
6543 (alloc_insn_link): Define.
6544 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6545 type of link variables.
6546 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6547 (try_combine, record_promoted_values, distribute_notes): Likewise.
6548 (distribute_links): Likewise. Tweak prototype.
6549 (clear_log_links): Delete.
6550 (adjust_for_new_dest): Call alloc_insn_link.
6551 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6553 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6555 * gcse.c (modify_mem_list): Convert to an array of VECs.
6556 (canon_modify_mem_list, compute_transp): Tweak formatting.
6557 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6558 (load_killed_in_block_p): Likewise.
6559 (record_last_mem_set_info): Likewise.
6560 (clear_modify_mem_tables): Likewise.
6562 2011-04-05 Tom de Vries <tom@codesourcery.com>
6565 * function.c (emit_use_return_register_into_block): Only define if
6568 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6570 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6572 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6574 * config/rx/rx-opts.h: New.
6575 * config/rx/rx.c (rx_cpu_type): Remove.
6576 (rx_handle_option): Don't assert that global structures are in
6577 use. Access variables via opts pointer. Defer most handling of
6578 OPT_mint_register_. Use error_at.
6579 (rx_option_override): Handle deferred OPT_mint_register_ here.
6580 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6581 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6582 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6583 (rx_cpu_types): New Enum and EnumValue entries.
6584 (mint-register=): Use Defer and use Var accordingly.
6586 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6588 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6589 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6590 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6592 (debug_free_queue, debug_nesting, symbol_queue_index):
6594 * dbxout.c: ...to here. Make static.
6596 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6598 * gcse.c (modify_pair): Define. Define a VEC of it.
6599 (canon_modify_mem_list): Convert to an array of VECs.
6600 (free_insn_expr_list_list): Delete.
6601 (clear_modify_mem_tables): Call VEC_free instead.
6602 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6603 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6604 (canon_list_insert, compute_transp): Likewise.
6606 2011-04-05 Tom de Vries <tom@codesourcery.com>
6609 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6612 2011-04-05 Tom de Vries <tom@codesourcery.com>
6615 * function.c (emit_use_return_register_into_block): New function.
6616 (thread_prologue_and_epilogue_insns): Use
6617 emit_use_return_register_into_block.
6619 2011-04-05 Tom de Vries <tom@codesourcery.com>
6622 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6625 2011-04-05 Tom de Vries <tom@codesourcery.com>
6627 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6629 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6631 * config/arm/arm.md (define_constants for unspec): Replace with
6633 (define_constants for unspecv): Replace with define_c_enum.
6634 * config/arm/neon.md (define_constants for unspec): Replace with
6637 2011-04-04 Richard Henderson <rth@redhat.com>
6640 * dwarf2out.c (output_line_info): Always emit line info from
6641 at least one section.
6642 (dwarf2out_init): Create text_section_line_info here ...
6643 (set_cur_line_info_table): ... not here.
6645 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6648 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6651 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6653 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6655 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6656 (expr_equiv_p): Remove.
6657 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6658 (hash_scan_set): Update call to insert_set_in_table.
6659 (dump_hash_table): Dump <dest, src> pair.
6660 (lookup_set): Simplify. Lookup <dest, src> pair.
6661 (compute_transp): Remove, fold heavily simplified code into...
6662 (compute_local_properties): ...here. Expect COMP and TRANSP
6664 (find_avail_set): Take set directly from struct expr.
6665 (find_bypass-set): Likewise.
6666 (bypass_block): Likewise.
6667 (cprop_insn): Likewise. Remove redundant INSN_P test.
6669 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6670 checks on form of COND from find_implicit_sets to here.
6671 (find_implicit_sets): Cleanup control flow. Split critical edges
6672 if it exposes implicit sets. Allocate/resize implicit_sets as
6674 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6675 changed something. Run df_analyze after find_implicit_sets if any
6676 edges were split. Do not allocate implicit_sets here.
6678 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6679 (gcse_obstack): Renamed to cprop_obstack.
6680 (GNEW, GNEWVEC, GNEWVAR): Remove.
6682 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6683 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6684 (gcse_alloc): Likewise, and rename to cprop_alloc.
6685 (alloc_gcse_men, free_gcse_mem): Remove.
6686 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6687 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6688 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6690 * cprop.c (oprs_not_set_p): Remove.
6691 (mark_set, mark_clobber): Remove.
6692 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6693 (reg_not_set_p): New function.
6694 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6695 (cprop_insn): Likewise.
6696 (cprop_jump): Use FOR_EACH_EDGE.
6698 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6701 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6702 (rank_for_schedule): Use scheduled_insns vector instead of
6703 last_scheduled_insn.
6704 (ok_for_early_queue_removal): Likewise.
6705 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6707 (choose_ready): Likewise.
6708 (commit_schedule): Use VEC_iterate.
6709 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6710 a dbg_cnt, use it and ensure the first insn is in the ready list.
6711 (haifa_sched_init): Allocate scheduled_insns.
6712 (sched_extend_ready_list): Don't allocate it; reserve space.
6713 (haifa_sched_finish): Free it.
6715 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6717 * optc-gen.awk: Always remove type from Variable entry before
6718 recording in var_seen.
6720 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6722 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6723 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6724 call to tidy_fallthru_edges.
6726 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6728 * doc/options.texi (ToLower): Document.
6729 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6730 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6731 * opts.h (cl_option): Add cl_tolower field.
6732 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6733 arguments with lowercase strings.
6734 * config/rx/rx.opt (mcpu=): Add ToLower.
6735 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6738 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6740 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6742 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6744 * config/vax/vax.c: Include reload.h.
6746 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6748 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6749 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6750 (sparc_preferred_reload_class): New function.
6752 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6755 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6756 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6758 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6760 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6761 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6763 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6765 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6766 (ASM_OUTPUT_ALIGNED_BSS): Define.
6768 2011-04-03 Michael Matz <matz@suse.de>
6770 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6771 and next_slot members.
6772 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6773 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6774 (lto_streamer_cache_append): Declare.
6775 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6776 unsigned index, remove offset parameter, ensure that we append
6777 or update existing entries.
6778 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6779 parameter, update next_slot for append.
6780 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6782 (lto_streamer_cache_insert_at): Likewise.
6783 (lto_streamer_cache_append): New function.
6784 (lto_streamer_cache_lookup): Use unsigned index.
6785 (lto_streamer_cache_get): Likewise.
6786 (lto_record_common_node): Don't test tree_node_can_be_shared.
6787 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6788 (lto_streamer_cache_delete): Don't free offsets member.
6789 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6790 (lto_output_string_with_length): Use lto_output_data_stream.
6791 (lto_output_tree_header): Remove ix parameter, don't write it.
6792 (lto_output_builtin_tree): Likewise.
6793 (lto_write_tree): Adjust callers to above, don't track and write
6794 offset, write unsigned index.
6795 (output_unreferenced_globals): Don't emit all global vars.
6796 (write_global_references): Use unsigned indices.
6797 (lto_output_decl_state_refs): Likewise.
6798 (write_symbol): Likewise.
6799 * lto-streamer-in.c (lto_input_chain): Move earlier.
6800 (input_function): Use unsigned index.
6801 (input_alias_pairs): Don't read and then ignore all global vars.
6802 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6803 don't pass it back, use lto_streamer_cache_append.
6804 (lto_register_var_decl_in_symtab): Use unsigned index.
6805 (lto_register_function_decl_in_symtab): Likewise.
6806 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6808 (lto_get_builtin_tree): Don't read index, use
6809 lto_streamer_cache_append.
6810 (lto_read_tree): Adjust call to lto_materialize_tree.
6812 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6813 don't use function calls in arguments to MIN.
6815 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6818 * gimple.c (gimple_type_leader_entry): Mark deletable.
6820 2011-04-03 Alan Modra <amodra@gmail.com>
6822 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6824 2011-04-03 Michael Matz <matz@suse.de>
6826 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6828 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6830 2011-04-03 Michael Matz <matz@suse.de>
6832 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6833 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6834 without function context.
6835 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6836 current_function_decl and cfun.
6838 2011-04-03 Michael Matz <matz@suse.de>
6840 * tree.c (decl_init_priority_insert): Don't create entry for
6842 (decl_fini_priority_insert): Ditto.
6843 (fields_compatible_p, find_compatible_field): Remove.
6844 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6845 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6847 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6849 * combine.c (try_combine): Remove useless local variable.
6851 2011-04-03 Richard Guenther <rguenther@suse.de>
6852 Ira Rosen <ira.rosen@linaro.org>
6854 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6855 non-variable offsets and compare the remaining bases of the two
6856 accesses instead of looking for exact same data-ref.
6858 2011-04-02 Kai Tietz <ktietz@redhat.com>
6861 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6863 * i386.c (ix86_is_msabi_thiscall): New helper function.
6864 (ix86_is_type_thiscall): New helper function.
6865 (ix86_comp_type_attributes): Handle thiscall for method-functions
6867 (init_cumulative_args): Likewise.
6868 (find_drap_reg): Likewise.
6869 (ix86_static_chain): Likewise.
6870 (x86_this_parameter): Likewise.
6871 (x86_output_mi_thunk): Likewise.
6873 2011-04-01 Olivier Hainque <hainque@adacore.com>
6874 Nicolas Setton <setton@adacore.com>
6875 Eric Botcazou <ebotcazou@adacore.com>
6877 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6878 (add_gnat_descriptive_type_attribute): New function.
6879 (gen_array_type_die): Call it.
6880 (gen_enumeration_type_die): Likewise.
6881 (gen_struct_or_union_type_die): Likewise.
6882 (modified_type_die): Likewise.
6883 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6884 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6885 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6887 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6890 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6891 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6894 2011-03-17 Richard Guenther <rguenther@suse.de>
6897 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6898 origin for decls in other ltrans units.
6899 (input_varpool_node): Likewise.
6901 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6904 * expr.c (expand_assignment): Handle all possibilities
6905 if TO_RTX is CONCAT.
6906 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6907 (store_split_bit_field): If SUBREG_REG (op0) or
6908 op0 itself has smaller mode than word, return it
6909 for offset 0 and const0_rtx for out-of-bounds stores.
6910 If word is const0_rtx, skip it.
6912 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6914 * config/h8300/h8300.c (print_operand_address): Rename to...
6915 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6916 Call h8300_print_operand and h8300_print_operand_address instead of
6917 print_operand and print_operand_address. Declare.
6918 (print_operand): Renake to...
6919 (h8300_print_operand): ...this. Make static. Adjust comments.
6920 Call h8300_print_operand instead of print_operand. Declare.
6921 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6922 (h8300_register_move_cost): Likewise.
6923 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6924 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6925 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6926 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6927 * config/h8300/h8300-protos.h (print_operand): Delete.
6928 (print_operand_address): Delete.
6930 2011-04-01 Richard Henderson <rth@redhat.com>
6933 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6934 in strict mode before dwarf4. Re-order tests to early out
6935 before switching sections.
6937 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6939 * config/h8300/constraints.md: New file.
6940 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6941 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6942 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6943 * config/h8300/predicates.md (bit_operand): Likewise.
6944 (incdec_operand): Use satisfies_constraint_M and
6945 satisfies_constraint_O. Don't use C code block.
6946 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6947 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6948 (compute_mov_length): Use satisfies_constraint_G.
6949 (fix_bit_operand): Use satisfies_constraint_U.
6950 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6951 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6952 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6953 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6954 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6955 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6956 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6957 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6958 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6959 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6960 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6961 (EXTRA_MEMORY_CONSTRAINT): Delete.
6963 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6964 Michael Meissner <meissner@linux.vnet.ibm.com>
6967 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6968 operands, as per the specifications.
6970 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6971 (vec_extract_evenv4sf): Ditto.
6972 (vec_extract_evenv8hi): Ditto.
6973 (vec_extract_evenv16qi): Ditto.
6974 (vec_extract_oddv4si): Ditto.
6976 2011-03-31 Mark Wielaard <mjw@redhat.com>
6978 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6979 high_pc attribute if the CU has no associated code. Only output
6980 DW_AT_entry_pc for CU if not generating strict dwarf and
6983 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6985 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6986 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6988 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6989 * final.c (final_start_function): Call the new function rather
6990 than using a NULL argument for dwarf2out_frame_debug.
6992 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6993 that contains the prologue.
6995 * haifa-sched.c (queue_insn): New arg REASON. All callers
6996 changed. Print it in debugging output.
6998 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7000 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7001 Split most of the code into...
7002 (begin_move_insn): ... here. New function.
7003 (ebb_sched_info): Add a pointer to it.
7004 * haifa-sched.c (scheduled_insns): New static variable.
7005 (sched_extend_ready_list): Allocate it.
7006 (schedule_block): Use it to record the order of scheduled insns.
7007 Perform RTL changes to move insns only after all scheduling
7008 decisions have been made.
7009 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7010 begin_move_insn field.
7011 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7012 * sched-int.h (struct haifa_sched_info): Remove second argument
7013 from begin_schedule_ready hook. Add new member begin_move_insn.
7014 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7015 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7017 * haifa-sched.c (prune_ready_list): New function, broken out of
7019 (schedule_block): Use it.
7021 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7023 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7025 2011-04-01 Kai Tietz <ktietz@redhat.com>
7027 * config.gcc (*-*-mingw*): Allow as option the
7028 posix threading model.
7029 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7030 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7032 (CPP_SPEC): Add pthread/no-pthread handling.
7033 (LIB_SPEC): Likewise.
7034 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7035 (LIB_SPEC): Likewise.
7036 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7037 flag to pass -pthread option for shared libgcc build.
7038 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7039 for shared libgcc build.
7040 * config/i386/t-mingw-pthread: New file.
7041 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7042 New define to enable use of library pthread by default.
7043 * config/i386/mingw.opt (pthread): New driver option.
7044 (no-pthread): New driver option.
7045 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7046 * config/i386/mingw-w64.opt: Likewise.
7048 2011-04-01 Gary Funck <gary@intrepid.com>
7050 * c-decl.c (grokdeclarator): Fix formatting.
7052 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7054 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7055 instead of n_operands.
7056 (set_storage_via_setmem): Likewise.
7057 * optabs.c (maybe_gen_insn): Likewise.
7058 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7059 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7060 (mips_expand_builtin_direct): Likewise.
7061 * config/spu/spu.c (expand_builtin_args): Likewise.
7063 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7065 * recog.h (insn_data_d): Add n_generator_args.
7066 * genoutput.c (data): Likewise.
7067 (output_insn_data): Print it.
7068 (max_opno, num_dups): Delete.
7069 (scan_operands): Just fill in "d->operand[...]".
7070 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7072 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7074 * gensupport.h (pattern_stats): New structure.
7075 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7076 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7077 (max_operand_1, max_operand_vec): Delete.
7078 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7080 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7082 * emit-rtl.c (emit_pattern_after_setloc): New function.
7083 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7084 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7085 (emit_pattern_after): New function.
7086 (emit_insn_after, emit_jump_insn_after): Call it.
7087 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7088 (emit_pattern_before_setloc): New function.
7089 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7090 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7092 (emit_pattern_before): New function.
7093 (emit_insn_before, emit_jump_insn_before): Call it.
7094 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7096 2011-03-31 Richard Henderson <rth@redhat.com>
7098 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7099 (dw_separate_line_info_entry): Remove.
7100 (enum dw_line_info_opcode): New.
7101 (dw_line_info_entry): Use it.
7102 (dw_line_info_table, dw_line_info_table_p): New.
7103 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7104 (line_info_table, line_info_label_num): Remove.
7105 (line_info_table_in_use): Remove.
7106 (separate_line_info_table): Remove.
7107 (separate_line_info_table_allocated): Remove.
7108 (separate_line_info_table_in_use): Remove.
7109 (LINE_INFO_TABLE_INCREMENT): Remove.
7110 (line_info_label_num): New.
7111 (cur_line_info_table): New.
7112 (text_section_line_info, cold_text_section_line_info): New.
7113 (separate_line_info): New.
7114 (SEPARATE_LINE_CODE_LABEL): Remove.
7115 (print_dwarf_line_table): Remove.
7116 (debug_dwarf): Don't dump it.
7117 (output_one_line_info_table): New.
7118 (output_line_info): Use it.
7119 (new_line_info_table): New.
7120 (set_cur_line_info_table): New.
7121 (dwarf2out_switch_text_section): Use it.
7122 (dwarf2out_begin_function): Likewise.
7123 (push_dw_line_info_entry): New.
7124 (dwarf2out_source_line): Rewrite for new line info tables.
7125 (dwarf2out_init): Remove dead initailizations.
7127 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7129 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7131 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7132 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7133 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7134 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7135 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7136 * opt-functions.awk (flag_init, switch_bit_fields): New.
7137 (switch_flags): Don't handle flags moved to bit-fields. Don't
7138 generate CL_MISSING_OK or CL_SAVE.
7139 * optc-gen.awk: Update to generate bit-field output as well as
7141 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7142 bit-field instead of CL_REJECT_DRIVER flag.
7143 * opts-common.c (generate_canonical_option,
7144 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7145 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7146 instead of CL_REJECT_NEGATIVE flag.
7147 * toplev.c (print_switch_values): Use cl_report bit-field instead
7150 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7152 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7153 a zero minimum index only if it is redundant.
7155 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7157 PR rtl-optimization/48381
7158 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7159 instead of ira_class_hard_reg_index for calculating conflicting
7162 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7164 * cprop.c: Clean up hash table building.
7165 (reg_avail_info): Remove.
7166 (oprs_available_p): Remove.
7167 (record_last_reg_set_info): Remove.
7168 (record_last_set_info): Remove.
7169 (reg_available_p): New function.
7170 (gcse_constant_p): Do not treat unfolded conditions as constants.
7171 (make_set_regs_unavailable): New function.
7172 (hash_scan_set): Simplify with new reg_available_p.
7173 (compute_hash_table_work): Traverse insns stream only once.
7174 Do not compute reg_avail_info. Traverse insns in reverse order.
7175 Record implicit sets after recording explicit sets from the block.
7177 2011-03-31 Michael Matz <matz@suse.de>
7179 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7181 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7183 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7184 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7185 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7186 (h8300_mode_dependent_address_p): New function.
7187 (h8300_get_index): Make static.
7189 2011-03-31 Jeff Law <law@redhat.com>
7191 * reload1.c (elimination_effects): Fix typo in recent change.
7193 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7194 typo potentially leading to null pointer dereference.
7196 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7197 (setup_save_areas): Corresponding changes to avoid useless
7200 * jump.c (reversed_comparison_code_parts): Avoid successive return
7201 statements when REVERSE_CONDITION is defined.
7203 * expr.c (expand_assignment): Avoid useless assignments.
7204 (expand_expr_real_1): Likewise.
7205 (expand_expr_real_2): Avoid useless statements.
7207 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7209 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7211 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7214 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7216 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7219 * doc/tm.texi.in (TARGET_VERSION): Remove.
7220 * doc/tm.texi: Regenerate.
7221 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7222 * collect2.c (main): Don't use TARGET_VERSION.
7223 * mips-tdump.c (main): Don't use TARGET_VERSION.
7224 * mips-tfile.c (main): Don't use TARGET_VERSION.
7225 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7226 * config/rs6000/vxworksae.h: Remove.
7227 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7228 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7229 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7230 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7231 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7232 * config/arm/arm.h (TARGET_VERSION): Remove.
7233 * config/arm/coff.h (TARGET_VERSION): Remove.
7234 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7235 * config/arm/elf.h (TARGET_VERSION): Remove.
7236 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7237 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7238 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7239 * config/arm/pe.h (TARGET_VERSION): Remove.
7240 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7241 * config/arm/semi.h (TARGET_VERSION): Remove.
7242 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7243 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7244 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7245 * config/avr/avr.h (TARGET_VERSION): Remove.
7246 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7247 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7248 * config/frv/frv.h (TARGET_VERSION): Remove.
7249 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7250 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7251 * config/i386/darwin.h (TARGET_VERSION): Remove.
7252 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7253 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7254 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7255 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7256 * config/i386/gnu.h (TARGET_VERSION): Remove.
7257 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7258 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7259 * config/i386/linux.h (TARGET_VERSION): Remove.
7260 * config/i386/linux64.h (TARGET_VERSION): Remove.
7261 * config/i386/lynx.h (TARGET_VERSION): Remove.
7262 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7263 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7264 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7265 * config/i386/netware.h (TARGET_VERSION): Remove.
7266 * config/i386/nto.h (TARGET_VERSION): Remove.
7267 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7268 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7269 * config/ia64/elf.h (TARGET_VERSION): Remove.
7270 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7271 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7272 * config/ia64/linux.h (TARGET_VERSION): Remove.
7273 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7274 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7275 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7276 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7277 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7278 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7279 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7280 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7281 * config/m68k/linux.h (TARGET_VERSION): Remove.
7282 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7283 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7284 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7285 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7286 * config/mep/mep.h (TARGET_VERSION): Remove.
7287 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7288 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7289 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7290 * config/mips/linux.h (TARGET_VERSION): Remove.
7291 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7292 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7293 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7294 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7295 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7296 * config/pa/pa.h (TARGET_VERSION): Remove.
7297 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7298 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7299 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7300 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7301 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7302 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7303 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7304 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7305 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7306 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7307 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7308 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7309 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7310 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7311 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7312 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7313 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7314 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7315 * config/s390/linux.h (TARGET_VERSION): Remove.
7316 * config/s390/s390.h (TARGET_VERSION): Remove.
7317 * config/s390/tpf.h (TARGET_VERSION): Remove.
7318 * config/score/score.h (TARGET_VERSION): Remove.
7319 * config/sh/linux.h (TARGET_VERSION): Remove.
7320 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7321 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7322 * config/sh/sh.h (TARGET_VERSION): Remove.
7323 * config/sh/sh64.h (TARGET_VERSION): Remove.
7324 * config/sh/superh.h (TARGET_VERSION): Remove.
7325 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7326 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7327 * config/sparc/linux.h (TARGET_VERSION): Remove.
7328 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7329 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7330 TARGET_NAME32, TARGET_NAME): Remove.
7331 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7332 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7333 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7334 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7335 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7336 * config/spu/spu.h (TARGET_VERSION): Remove.
7337 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7338 * config/v850/v850.h (TARGET_VERSION): Remove.
7339 * config/vax/linux.h (TARGET_VERSION): Remove.
7340 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7341 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7342 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7344 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7347 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7348 frame-related from frame-unrelated adjustments to the stack pointer.
7350 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7352 * common.opt (fdebug-types-section): Move earlier.
7353 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7355 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7357 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7360 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7362 * tree.h (CASE_CHAIN): Define.
7363 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7364 (gimple_redirect_edge_and_branch): Likewise.
7366 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7369 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7372 2011-03-30 Jeff Law <law@redhat.com>
7374 * PR bootstrap/48371
7375 * reload1.c (reload): Fix botch in last change.
7377 * reload.h (struct reload): Fix typo introduced in last change.
7379 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7381 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7382 Undocumented. Remove help text.
7383 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7386 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7388 * doc/options.texi (NegativeAlias): Document.
7389 (Alias): Mention NegativeAlias.
7390 * opt-functions.awk: Handle NegativeAlias.
7391 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7392 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7393 * opts.h (CL_NEGATIVE_ALIAS): Define.
7394 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7395 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7397 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7399 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7400 mno-spe and mno-isel instead of mspe=no and -misel=no.
7402 2011-03-29 Mark Wielaard <mjw@redhat.com>
7404 * common.opt (fdebug-types-section): New flag.
7405 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7406 * dwarf2out.c (use_debug_types): New define.
7407 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7408 (print_die): Guard output of type unit signatures using
7410 (build_abbrev_table): Replace assert of dwarf_version >= 4
7411 with assert on use_debug_types.
7412 (size_of_die): Likewise.
7413 (unmark_dies): Likewise.
7414 (value_format): Decide AT_ref_external form on use_debug_types.
7415 (output_die): Replace dwarf_version version check guard with
7416 use_debug_types where appropriate.
7417 (modified_type_die): Likewise.
7418 (gen_reference_type_die): Likewise.
7419 (dwarf2out_start_source_file): Likewise.
7420 (dwarf2out_end_source_file): Likewise.
7421 (prune_unused_types_walk_attribs): Likewise.
7422 (dwarf2out_finish): Likewise.
7424 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7426 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7428 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7430 PR rtl-optimization/48332
7431 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7432 mode of input operand N and modeN to its actual mode.
7434 2011-03-30 Jeff Law <law@redhat.com>
7436 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7437 define accessor macro.
7438 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7439 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7440 (reg_equiv_init): Likewise.
7441 (reg_equivs_size): New variable.
7442 (reg_equiv_init_size): Remove.
7443 (allocate_initial_values): Move prototype to here from....
7444 * integrate.h (allocate_initial_values): Remove prototype.
7445 * integrate.c: Include reload.h.
7446 (allocate_initial_values): Corresponding changes.
7447 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7448 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7449 (update_equiv_regs): Corresponding changes.
7450 (ira): Corresponding changes.
7451 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7452 (push_secondary_reload): Corresponding changes.
7453 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7454 (make_memloc, find_reloads_address): Corresponding changes.
7455 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7456 (find_reloads_address_1): Corresponding changes.
7457 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7458 (refers_to_regno_for_reload_p): Corresponding changes.
7459 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7460 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7461 * reload1.c: Include ggc.h.
7462 (grow_reg_equivs): New function.
7463 (replace_pseudos_in, reload): Corresponding changes.
7464 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7465 (eliminate_regs_1, elimination_effects): Corresponding changes.
7466 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7467 (delete_output_reload): Likewise.
7468 * caller-save.c (mark_referenced_regs): Corresponding changes.
7469 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7470 * frv/predicates.md (frv_load_operand): Corresponding changes.
7471 * microblaze/microblaze.c (double_memory_operand): Corresponding
7473 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7474 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7475 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7476 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7477 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7479 * pa/pa.c (emit_move_sequence): Corresponding changes.
7480 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7482 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7485 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7486 structure modes. Don't check neon_vector_mem_operand for
7487 vector or structure modes.
7489 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7490 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7493 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7494 operand 1 and reshuffle the operands to match.
7495 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7497 2011-03-30 Christian Schüler <cschueler@gmx.de>
7500 * config/c.opt (F): Added 'Driver' to -F option.
7503 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7505 * config/darwin.opt: Added '-arch' option.
7507 2011-03-30 Nick Clifton <nickc@redhat.com>
7509 * config/rx/rx.md: Add peepholes and patterns to combine
7510 extending loads and simple arithmetic instructions.
7511 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7512 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7513 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7514 modes to use pre-decrement and post-increment addressing.
7515 (rx_is_restricted_memory_address): Add range checking of REG+INT
7517 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7518 (rx_memory_move_cost): Adjust cost of stores.
7519 (rx_adjust_insn_length): New function.
7521 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7524 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7525 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7526 matching arg00/arg01 types.
7528 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7530 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7531 last_location to UNKNOWN_LOCATION.
7533 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7536 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7539 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7540 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7543 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7545 (sparc_cpu): Likewise.
7546 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7549 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7553 PR rtl-optimization/48345
7554 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7555 hard regs for given mode from profitable regs when doing secondary
7558 2011-03-29 Jeff Law <law@redhat.com>
7561 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7562 do_not_duplicate field.
7563 (lookup_redirection_data): Corresponding changes.
7564 (create_duplicates): Always create a template block.
7565 (redirect_edges): Remove code which reused the original block
7566 when it was going to become unreachable code.
7567 (thread_block): Don't set do_not_duplicate field.
7569 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7571 * lto-opts.c (register_user_option_p, lto_register_user_option):
7572 Make type argument unsigned.
7573 * lto-streamer.h (lto_register_user_option): Make type argument
7575 * opth-gen.awk: Make CL_* macros unsigned.
7576 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7577 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7578 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7579 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7580 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7581 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7582 (find_opt): Make lang_mask argument unsigned.
7584 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7586 PR rtl-optimization/48331
7587 PR rtl-optimization/48334
7588 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7589 for any used algorithm.
7591 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7593 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7596 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7598 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7599 (alpha_option_override): Don't set alpha_sr_alias_set.
7600 (emit_frame_store_1): Use gen_frame_mem rather than calling
7602 (alpha_expand_epilogue): Ditto.
7604 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7606 PR tree-optimization/48290
7607 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7608 vectorization, check that relevant phis in the basic block after
7609 the inner loop are really inner loop's exit phis.
7611 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7614 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7615 (cached_dw_loc_list_def): New structure.
7616 (cached_dw_loc_list): New typedef.
7617 (cached_dw_loc_list_table): New variable.
7618 (cached_dw_loc_list_table_hash): New function.
7619 (cached_dw_loc_list_table_eq): Likewise.
7620 (add_location_or_const_value_attribute): Take a bool cache_p.
7621 Cache the list when the parameter is true.
7622 (gen_formal_parameter_die): Update caller.
7623 (gen_variable_die): Likewise.
7624 (dwarf2out_finish): Likewise.
7625 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7626 while generating debug info for the decl.
7627 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7628 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7629 (resolve_addr): Cache the result of resolving a chain of
7632 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7634 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7635 conflict object hard regset nodes have intersecting hard reg sets.
7637 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7638 after regstat_init_n_sets_and_refs.
7640 * ira.c: Add more comments at the top.
7641 (setup_stack_reg_pressure_class, setup_pressure_classes):
7642 Add comments how we compute the register pressure classes.
7643 (setup_allocno_and_important_classes): Add more comments.
7644 (setup_class_translate_array, reorder_important_classes)
7645 (setup_reg_class_relations): Add comments.
7647 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7650 * ira-color.c: Add 2011 to the Copyright line.
7651 (assign_hard_reg): Add more comments.
7652 (improve_allocation): Ditto.
7654 * ira-costs.c: Add 2011 to the Copyright line.
7655 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7657 (setup_regno_cost_classes_by_mode): Ditto.
7659 Initial patches from ira-improv branch:
7661 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7663 * ira-build.c (ira_create_object): Remove initialization of
7664 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7665 (ira_create_allocno): Remove initialization of
7666 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7667 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7668 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7669 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7670 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7671 Initialize ALLOCNO_ADD_DATA.
7672 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7673 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7675 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7676 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7678 * ira.c (ira_reallocate): Remove.
7679 (setup_pressure_classes): Call
7680 ira_init_register_move_cost_if_necessary. Use
7681 ira_register_move_cost instead of ira_get_register_move_cost.
7682 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7683 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7685 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7686 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7687 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7688 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7689 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7690 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7692 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7693 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7694 (struct allocno_color_data): New.
7695 (allocno_color_data_t): New typedef.
7696 (allocno_color_data): New definition.
7697 (ALLOCNO_COLOR_DATA): New macro.
7698 (struct object_color_data): New.
7699 (object_color_data_t): New typedef.
7700 (object_color_data): New definition.
7701 (OBJECT_COLOR_DATA): New macro.
7702 (update_copy_costs, calculate_allocno_spill_cost): Call
7703 ira_init_register_move_cost_if_necessary. Use
7704 ira_register_move_cost instead of ira_get_register_move_cost.
7705 (move_spill_restore, update_curr_costs): Ditto.
7706 (allocno_spill_priority): Make it inline.
7707 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7708 (struct coalesce_data, coalesce_data_t): New.
7709 (allocno_coalesce_data): New definition.
7710 (ALLOCNO_COALESCE_DATA): New macro.
7711 (merge_allocnos, coalesced_allocno_conflict_p): Use
7712 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7713 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7714 (coalesce_allocnos): Ditto.
7715 (setup_coalesced_allocno_costs_and_nums): Ditto.
7716 (collect_spilled_coalesced_allocnos): Ditto.
7717 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7718 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7719 (coalesce_spill_slots): Ditto.
7720 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7721 free allocno_coalesce_data.
7723 * ira-conflicts.c: Fix formatting.
7724 (process_regs_for_copy): Call
7725 ira_init_register_move_cost_if_necessary. Use
7726 ira_register_move_cost instead of ira_get_register_move_cost.
7727 (build_object_conflicts): Optimize.
7729 * ira-costs.c (record_reg_classes): Optimize. Call
7730 ira_init_register_move_cost_if_necessary. Use
7731 ira_register_move_cost, ira_may_move_in_cost, and
7732 ira_may_move_out_cost instead of ira_get_register_move_cost and
7733 ira_get_may_move_cost.
7734 (record_address_regs): Ditto.
7735 (scan_one_insn): Optimize.
7736 (find_costs_and_classes): Optimize.
7737 (process_bb_node_for_hard_reg_moves): Call
7738 ira_init_register_move_cost_if_necessary. Use
7739 ira_register_move_cost instead of ira_get_register_move_cost.
7741 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7742 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7743 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7744 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7746 (ira_initiate_emit_data, ira_finish_emit_data)
7747 (create_new_allocno): New functions.
7748 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7749 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7750 Use ira_register_move_cost instead of ira_get_register_move_cost.
7752 * ira-int.h: Fix some comments.
7753 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7754 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7755 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7756 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7758 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7759 bitfield after mode. Make hard_regno a short int. Make
7760 hard_regno short. Remove first_coalesced_allocno and
7761 next_coalesced_allocno. Move mem_optimized_dest_p,
7762 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7763 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7764 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7765 temp, colorable_p. Add new member add_data.
7766 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7767 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7768 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7769 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7770 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7771 (ALLOCNO_ADD_DATA): New macro.
7772 (ira_emit_data_t): New typedef.
7773 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7774 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7775 from struct ira_allocno.
7776 (ALLOCNO_EMIT_DATA): New macro.
7777 (ira_allocno_emit_data, allocno_emit_reg): New.
7778 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7779 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7780 (OBJECT_ADD_DATA): New macro.
7781 (ira_reallocate): Remove.
7782 (ira_initiate_emit_data, ira_finish_emit_data): New.
7783 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7784 (ira_init_register_move_cost_if_necessary): New.
7785 (ira_object_conflict_iter_next): Merge into
7786 ira_object_conflict_iter_cond.
7787 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7789 * ira-live.c (process_single_reg_class_operands): Call
7790 ira_init_register_move_cost_if_necessary. Use
7791 ira_register_move_cost instead of ira_get_register_move_cost.
7793 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7795 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7797 * ira-costs.c: Fix formatting.
7798 (cost_classes, cost_classes_num): Remove.
7799 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7800 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7801 (cost_classes_del, cost_classes_htab): New.
7802 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7803 (initiate_regno_cost_classes, setup_cost_classes): New.
7804 (setup_regno_cost_classes_by_aclass): New.
7805 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7806 (record_reg_classes): Use regno_cost_classes instead of
7807 cost_classes. Move checking opposite operand up.
7808 (record_address_regs): Use regno_cost_classes
7809 instead of cost_classes.
7810 (scan_one_insn): Ditto. Use always general register.
7811 (print_allocno_costs): Use regno_cost_classes instead of
7813 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7814 (find_costs_and_classes): Set up cost classes for each registers.
7815 Use also their mode for this. Use regno_cost_classes instead of
7817 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7819 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7820 (ira_costs, ira_set_pseudo_classes): Call
7821 initiate_regno_cost_classes and finish_regno_cost_classes.
7823 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7825 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7827 * target.def (ira_cover_classes): Remove.
7829 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7831 * doc/tm.texi.in: Ditto.
7833 * ira-conflicts.c: Remove mentioning cover classes from the file.
7834 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7835 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7837 * targhooks.c (default_ira_cover_classes): Remove.
7839 * targhooks.h (default_ira_cover_classes): Ditto.
7841 * haifa-sched.c: Remove mentioning cover classes from the file.
7842 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7843 ira_pressure_classes and ira_pressure_classes_num instead of
7844 ira_reg_class_cover_size and ira_reg_class_cover. Use
7845 sched_regno_pressure_class instead of sched_regno_cover_class.
7846 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7847 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7849 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7850 classes from the file.
7851 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7852 (struct object_hard_regs, struct object_hard_regs_node): New.
7853 (struct ira_object): New members profitable_hard_regs,
7854 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7855 (struct ira_allocno): Rename cover_class to aclass. Rename
7856 cover_class_cost and updated_cover_class_cost to class_cost and
7857 updated_class_cost. Remove splay_removed_p and
7858 left_conflict_size. Add new members colorable_p.
7859 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7860 (ALLOCNO_COLORABLE_P): New macro.
7861 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7862 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7863 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7864 (OBJECT_...): Rename parameter C to O.
7865 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7866 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7867 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7868 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7869 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7870 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7871 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7872 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7873 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7874 x_ira_reg_class_subunion.
7875 (ira_max_memory_move_cost, ira_max_register_move_cost)
7876 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7877 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7878 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7879 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7880 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7881 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7882 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7883 (ira_tune_allocno_costs_and_cover_classes): Rename to
7884 ira_tune_allocno_costs.
7885 (ira_debug_hard_regs_forest): New.
7886 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7887 (ira_object_conflict_iter_next): Fix comments.
7888 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7889 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7890 cover_class to aclass.
7891 (ira_allocate_and_accumulate_costs): Ditto.
7892 (ira_allocate_and_set_or_copy_costs): Ditto.
7894 * opts.c (decode_options): Remove ira_cover_class check.
7896 * ira-color.c: Remove mentioning cover classes from the file. Use
7897 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7898 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7899 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7900 (splay-tree.h): Remove include.
7901 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7902 before copy_freq_compare_func.
7903 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7904 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7906 (hard_regs_roots, hard_regs_node_vec): Ditto.
7907 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7908 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7909 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7910 (create_new_object_hard_regs_node): Ditto.
7911 (add_new_object_hard_regs_node_to_forest): Ditto.
7912 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7913 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7915 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7916 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7917 (remove_unused_object_hard_regs_nodes): Ditto.
7918 (enumerate_object_hard_regs_nodes): Ditto.
7919 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7920 (object_hard_regs_subnode_t): Ditto.
7921 (struct object_hard_regs_subnode): Ditto.
7922 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7923 (setup_object_hard_regs_subnode_index): Ditto.
7924 (get_object_hard_regs_subnodes_num): Ditto.
7925 (form_object_hard_regs_nodes_forest): Ditto.
7926 (finish_object_hard_regs_nodes_tree): Ditto.
7927 (finish_object_hard_regs_nodes_forest): Ditto.
7928 (allocnos_have_intersected_live_ranges_p): Rename to
7929 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7930 (pseudos_have_intersected_live_ranges_p): Rename to
7931 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7932 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7933 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7934 (update_copy_costs): Remove assert. Skip cost update if the hard
7935 reg does not belong the class.
7936 (assign_hard_reg): Process only profitable hard regs.
7937 (uncolorable_allocnos_num): Make it scalar.
7938 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7939 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7940 and ira_reg_class_max_nregs.
7941 (bucket_allocno_compare_func): Check frequency first.
7942 (sort_bucket): Add compare function as a parameter.
7943 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7944 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7945 (push_allocno_to_stack): Rewrite for checking new allocno
7947 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7948 (push_only_colorable): Pass new parameter to sort_bucket.
7949 (push_allocno_to_spill): Remove.
7950 (allocno_spill_priority_compare): Make it inline and rewrite.
7951 (splay_tree_allocate, splay_tree_free): Remove.
7952 (allocno_spill_sort_compare): New function.
7953 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7954 build and use splay tree. Choose first allocno in uncolorable
7955 allocno bucket to spill. Remove setting spill cost.
7956 (all_conflicting_hard_regs): Remove.
7957 (setup_allocno_available_regs_num): Check only profitable hard
7958 regs. Print info about hard regs nodes.
7959 (setup_allocno_left_conflicts_size): Remove.
7960 (put_allocno_into_bucket): Don't call
7961 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7962 (improve_allocation): New.
7963 (color_allocnos): Call setup_profitable_hard_regs,
7964 form_object_hard_regs_nodes_forest, improve_allocation,
7965 finish_object_hard_regs_nodes_forest. Setup spill cost.
7966 (print_loop_title): Use pressure classes.
7967 (color_allocnso): Ditto.
7968 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7969 and allocnos_for_spilling.
7970 (ira_sort_regnos_for_alter_reg): Don't setup members
7971 {first,next}_coalesced_allocno.
7972 (color): Remove allocating and freeing removed_splay_allocno_vec.
7973 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7974 prohibited_class_mode_regs.
7976 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7978 (update_allocno_pressure_excess_length): Use pressure classes.
7979 (inc_register_pressure, dec_register_pressure): Check for pressure
7981 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7982 pressure class. Use ira_reg_class_nregs instead of
7983 ira_reg_class_max_nregs.
7984 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7985 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7986 (single_reg_class): Use ira_reg_class_nregs instead of
7987 ira_reg_class_max_nregs.
7988 (process_bb_node_lives): Use pressure classes.
7990 * ira-emit.c: Remove mentioning cover classes from the file. Use
7991 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7992 (change_loop): Use pressure classes.
7993 (modify_move_list): Call ira_set_allocno_class instead of
7994 ira_set_allocno_cover_class.
7996 * ira-build.c: Remove mentioning cover classes from the file. Use
7997 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7998 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7999 ALLOCNO_UPDATED_CLASS_COST instead of
8000 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8001 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8002 (ira_create_allocno): Remove initialization of
8003 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8004 ALLOCNO_COLORABLE_P.
8005 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8006 Update conflict regs for the objects.
8007 (create_cap_allocno): Remove assert. Don't propagate
8008 ALLOCNO_AVAILABLE_REGS_NUM.
8009 (ira_free_allocno_costs): New function.
8010 (finish_allocno): Change a part of code into call of
8011 ira_free_allocno_costs.
8012 (low_pressure_loop_node_p): Use pressure classes.
8013 (object_range_compare_func): Don't compare classes.
8014 (setup_min_max_conflict_allocno_ids): Ditto.
8016 * loop-invariant.c: Remove mentioning cover classes from the file.
8017 Use ira_pressure_classes and ira_pressure_classes_num instead of
8018 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8019 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8020 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8021 Use reg_allocno_class instead of reg_cover_class.
8022 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8023 STACK_REG_COVER_CLASS.
8024 (get_regno_cover_class): Rename to get_regno_pressure_class.
8025 (move_loop_invariants): Initialize and finalize regstat.
8027 * ira.c: Remove mentioning cover classes from the file. Add
8028 comments about coloring without cover classes. Use ALLOCNO_CLASS
8029 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8030 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8031 setup_class_subset_and_memory_move_costs.
8032 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8033 (setup_cover_and_important_classes): Rename to
8034 setup_allocno_and_important_classes.
8035 (setup_class_translate_array): New.
8036 (setup_class_translate): Call it for allocno and pressure classes.
8037 (cover_class_order): Rename to allocno_class_order.
8038 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8039 of ira_class_translate.
8040 (reorder_important_classes): Set up ira_important_class_nums.
8041 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8042 (print_class_cover): Rename to print_classes. Add parameter.
8043 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8044 Print pressure classes too.
8045 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8046 setup_reg_subclasses.
8047 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8048 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8049 (setup_prohibited_class_mode_regs): Use
8050 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8051 (clarify_prohibited_class_mode_regs): New function.
8052 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8053 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8054 (ira_init_once): Initialize them.
8055 (free_register_move_costs): Process them.
8056 (ira_init): Move calls of find_reg_classes and
8057 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8058 Call clarify_prohibited_class_mode_regs.
8059 (ira_no_alloc_reg): Remove.
8060 (too_high_register_pressure_p): Use pressure classes.
8062 * sched-deps.c: Remove mentioning cover classes from the file.
8063 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8064 ira_pressure_classes and ira_pressure_classes_num instead of
8065 ira_reg_class_cover_size and ira_reg_class_cover.
8066 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8067 sched_regno_pressure_class instead of sched_regno_cover_class.
8068 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8069 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8071 * ira.h: Add 2010 to Copyright.
8072 (ira_no_alloc_reg): Remove external.
8073 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8074 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8075 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8076 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8077 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8078 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8079 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8080 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8081 x_ira_no_alloc_regs.
8082 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8083 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8084 ira_allocno_classes_num and ira_allocno_classes.
8085 (ira_class_translate): Rename to ira_allocno_class_translate.
8086 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8087 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8088 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8089 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8090 (ira_no_alloc_regs): New.
8092 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8093 classes from the file. Use ALLOCNO_CLASS instead of
8094 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8095 ALLOCNO_COVER_CLASS_COST.
8096 (regno_cover_class): Rename to regno_aclass.
8097 (record_reg_classes): Use ira_reg_class_subunion instead of
8098 ira_reg_class_union.
8099 (record_address_regs): Check overflow.
8100 (scan_one_insn): Ditto.
8101 (print_allocno_costs): Print total mem cost fore regional allocation.
8102 (print_pseudo_costs): Use REG_N_REFS.
8103 (find_costs_and_classes): Use classes intersected with them on the
8104 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8105 ira_reg_class_union. Use ira_allocno_class_translate and
8106 regno_aclass instead of ira_class_translate and regno_cover_class.
8107 Modify code for finding regno_aclass. Setup preferred classes for
8109 (setup_allocno_cover_class_and_costs): Rename to
8110 setup_allocno_class_and_costs. Use regno_aclass instead of
8111 regno_cover_class. Use ira_set_allocno_class instead of
8112 ira_set_allocno_cover_class.
8113 (init_costs, finish_costs): Use regno_aclass instead of
8115 (ira_costs): Use setup_allocno_class_and_costs instead of
8116 setup_allocno_cover_class_and_costs.
8117 (ira_tune_allocno_costs_and_cover_classes): Rename to
8118 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8119 by processing objects. Use ira_reg_class_max_nregs instead of
8120 ira_reg_class_nregs.
8122 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8124 * sched-int.h: Remove mentioning cover classes from the file.
8125 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8127 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8128 classes from the file.
8129 (struct reg_pref): Rename coverclass into allocnoclass.
8130 (reg_cover_class): Rename to reg_allocno_class.
8132 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8134 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8136 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8138 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8140 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8142 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8144 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8146 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8148 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8150 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8152 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8153 (i386_ira_cover_classes): Ditto.
8155 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8157 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8159 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8161 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8163 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8165 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8167 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8168 (mips_ira_cover_classes): Ditto.
8170 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8172 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8174 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8176 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8178 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8180 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8181 (IRA_COVER_CLASSES_VSX): Ditto.
8183 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8184 (rs6000_ira_cover_classes): Ditto.
8186 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8188 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8190 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8192 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8194 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8196 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8198 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8200 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8202 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8204 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8206 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8209 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8210 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8211 dw_fde_unlikely_section_end_label, cold_in_std_section,
8212 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8213 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8215 (output_fde): Use dw_fde_second_{begin,end} if second is
8216 true, otherwise dw_fde_{begin,end}.
8217 (output_call_frame_info): Test dw_fde_second_begin != NULL
8218 instead of dw_fde_switched_sections.
8219 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8220 fields, initialize new fields. Initialize in_std_section
8221 unconditionally from the first partition.
8222 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8223 dw_fde_second_begin is non-NULL.
8224 (dwarf2out_switch_text_section): Stop initializing removed
8225 dw_fde_struct fields, initialize new fields, initialize
8226 also dw_fde_end here. Set dw_fde_switch_cfi even when
8227 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8228 (struct var_loc_list_def): Add last_before_switch field.
8229 (arange_table, arange_table_allocated, arange_table_in_use,
8230 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8231 (size_of_aranges): Count !in_std_section and !second_in_std_section
8232 hunks in fdes, instead of looking at arange_table_in_use.
8233 (output_aranges): Add aranges_length argument, don't call
8234 size_of_aranges here. Instead of using aranges_table*
8235 emit ranges for fdes when !in_std_section resp.
8236 !second_in_std_section.
8237 (dw_loc_list): Break ranges crossing section switch.
8238 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8239 use dw_fde_second_end instead of dw_fde_end as end of last range.
8240 (gen_subprogram_die): Don't call add_arange. Use
8241 dw_fde_{begin,end} for first partition and if switched
8242 section dw_fde_second_{begin,end} for the second.
8243 (var_location_switch_text_section_1,
8244 var_location_switch_text_section): New functions.
8245 (dwarf2out_begin_function): Initialize cold_text_section even
8246 when function_section () isn't text_section.
8247 (prune_unused_types): Don't walk arange_table.
8248 (dwarf2out_finish): Don't needlessly test
8249 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8250 If info_section_emitted, call size_of_aranges and if it indicates
8251 non-empty .debug_aranges, call output_aranges with the computed
8252 size. Stop using removed dw_fde_struct fields, use
8253 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8257 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8258 create ENTRY_VALUE if incoming or address of incoming's MEM
8260 * dwarf2out.c (mem_loc_descriptor): Don't emit
8261 DW_OP_GNU_entry_value of DW_OP_fbreg.
8262 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8263 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8264 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8265 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8267 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8268 is a REG_P or MEM_P with REG_P address, compute hash directly
8269 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8270 (preserve_only_constants): Don't clear VALUES forwaring
8271 ENTRY_VALUE to some other VALUE.
8273 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8275 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8278 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8280 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8281 block before expanding the statement.
8282 (expand_gimple_stmt_1): Likewise. Set them here...
8283 (expand_gimple_stmt): ...and not here. Tidy.
8284 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8287 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8289 * Makefile.in: New rule for cprop.o.
8290 * gcse.c: Move constant/copy propagation to cprop.c.
8291 (compute_local_properties): Only handle expression tables.
8292 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8293 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8294 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8295 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8296 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8297 compute_cprop_data, find_used_regs, try_replace_reg,
8298 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8299 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8300 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8301 find_bypass_set, reg_killed_on_edge, bypass_block,
8302 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8303 execute_rtl_cprop, pass_rtl_cprop): Move to...
8304 * cprop.c: ...here. New file, constant/copy propagation for RTL
8305 moved from gcse.c to here with minor cleanups in duplicated code.
8307 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8309 * config/i386/i386.c (flag_opts): Fix a typo in
8310 -mavx256-split-unaligned-store.
8312 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8314 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8315 LIBCALL_VALUE): Remove macros.
8316 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8317 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8318 (h8300_function_value, h8300_libcall_value,
8319 h8300_function_value_regno_p): New functions.
8321 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8323 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8325 2011-03-28 Jeff Law <law@redhat.com>
8327 * tree-ssa-threadupdate.c (redirect_edges): Call
8328 create_edge_and_update_destination_phis as needed.
8329 (create_edge_and_update_destination_phis): Accept new BB argument.
8330 All callers updated.
8331 (thread_block): Do not update the profile when threading around
8332 intermediate blocks.
8333 (thread_single_edge): Likewise.
8334 (determine_bb_domination_status): If BB is not a successor of the
8335 loop header, return NONDOMINATING.
8336 (register_jump_thread): Note when we register a jump thread around
8337 an intermediate block.
8338 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8339 (thread_across_edge): Use it.
8341 2011-03-28 Tristan Gingold <gingold@adacore.com>
8343 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8344 when for_return is 2.
8346 2011-03-28 Jeff Law <law@redhat.com>
8348 * var-tracking.c (canonicalize_values_mark): Delete unused
8350 (canonicalize_values_star, set_variable_part): Likewise.
8351 (clobber_variable_part, delete_variable_part): Likewise.
8353 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8355 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8357 2011-03-28 Martin Jambor <mjambor@suse.cz>
8359 * tree-inline.c (expand_call_inline): Do not check that destination
8361 (optimize_inline_calls): Assert that destination node is analyzed.
8362 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8363 not call tree_lowering_passes.
8364 * cgraph.h (cgraph_analyze_function): Declare.
8365 * cgraphunit.c (cgraph_analyze_function): Make public.
8367 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8369 * config/sparc/sparc-opts.h: New.
8370 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8371 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8372 (sparc_option_override): Store processor_type enumeration rather
8373 than string in cpu_default. Remove name and enumeration from
8374 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8375 without using sparc_select. Use target_flags_explicit instead of
8377 * config/sparc/sparc.h (enum processor_type): Move to
8379 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8380 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8381 HeaderInclude entry.
8382 (mcpu=, mtune=): Use Var and Enum.
8383 (sparc_processor_type): New Enum and EnumValue entries.
8385 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8386 Iain Sandoe <iains@gcc.gnu.org>
8389 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8391 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8393 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8394 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8395 Insert new statements at it in lieu of STMT.
8396 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8397 * tree-vect-stmts.c (vectorizable_store): Likewise.
8398 (vectorizable_load): Likewise.
8400 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8402 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8407 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8409 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8410 unaligned 256bit load/store.
8411 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8412 (*avx_movdqu<avxmodesuffix>): Likewise.
8414 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8417 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8418 * config/pa/pa.md (iordi3): Use new predicate in expander.
8421 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8423 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8424 FUNCTION_VALUE_REGNO_P): Remove macros.
8425 * config/mips/mips-protos.h (mips_function_value): Remove.
8426 * config/mips/mips.c (mips_function_value): Rename to...
8427 (mips_function_value_1): ... this. Make static. Handle receiving
8428 the function type in 'fn_decl_or_type' argument.
8429 (mips_function_value, mips_libcall_value,
8430 mips_function_value_regno_p): New function.
8431 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8432 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8434 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8436 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8437 and -mavx256-split-unaligned-store.
8438 (ix86_option_override_internal): Split 32-byte AVX unaligned
8439 load/store by default.
8440 (ix86_avx256_split_vector_move_misalign): New.
8441 (ix86_expand_vector_move_misalign): Use it.
8443 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8444 -mavx256-split-unaligned-store.
8446 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8447 256bit load/store. Generate unaligned store on misaligned memory
8449 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8451 (*avx_movdqu<avxmodesuffix>): Likewise.
8453 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8454 -mavx256-split-unaligned-store.
8456 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8459 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8462 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8464 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8465 opno arguments with an expand_operand. Use create_input_operand.
8466 (mips_prepare_builtin_target): Delete.
8467 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8469 (mips_expand_builtin_direct): Use create_output_operand and
8470 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8471 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8472 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8474 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8476 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8478 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8480 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8482 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8483 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8484 basic blocks and call commit_edge_insertions directly.
8485 (fixup_abnormal_edges): Move from here to...
8486 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8487 on the edges and return whether some have actually been inserted.
8488 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8491 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8493 PR rtl-optimization/48144
8494 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8495 (merge_expr_data): ... here.
8496 (av_set_intersect): Rename to av_set_code_motion_filter.
8497 Update all callers. Call merge_history_vect when an expression
8498 is found in both sets.
8499 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8501 2011-03-26 Alan Modra <amodra@gmail.com>
8503 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8504 cmodel medium addresses.
8505 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8506 64-bit gpr loads and stores.
8507 (rs6000_secondary_reload_ppc64): New function.
8508 * config/rs6000/rs6000-protos.h: Declare it.
8509 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8511 2011-03-26 Alan Modra <amodra@gmail.com>
8514 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8515 GNU Go in traceback table.
8517 2011-03-25 Richard Henderson <rth@redhat.com>
8519 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8520 if there are exactly 6 operands.
8521 (set_storage_via_setmem): Similarly.
8523 2011-03-25 Kai Tietz <ktietz@redhat.com>
8525 * collect2.c (write_c_file_stat): Handle backslash
8526 as right-hand directory separator.
8527 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8528 checking just for slash.
8529 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8530 instead of checking for trailing slash.
8531 * gcc.c (record_temp_file): Use filename_cmp instead
8533 (do_spec_1): Likewise.
8534 (replace_outfile_spec_function): Likewise.
8535 (is_directory): Use filename_ncmp instead of strncmp.
8536 (print_multilib_info): Likewise.
8537 * gcov.c (find_source): Use filename_cmp instead
8539 (make_gcov_file_name): Fix order of slash/backslash
8541 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8542 (add_standard_paths): Likewise.
8543 * mips-tfile.c (saber_stop): Handle backslash.
8544 * prefix.c (update_path): Use filename_ncmp instead of
8546 * profile.c (output_location): Use filename_cmp instead
8548 * read-md.c (handle_toplevel_file): Handle backslash.
8549 * tlink.c (frob_extension): Likewise.
8550 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8552 * tree-dump.c (dequeue_and_dump): Handle backslash.
8553 * tree.c (get_file_function_name): Likewise.
8554 * gengtype.c (read_input_list): Likewise.
8555 (get_file_realbasename): Likewise.
8556 (get_output_file_with_visibility): Use filename_cmp
8559 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8561 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8564 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8566 * fold-const.c (expr_location_or): New function.
8567 (fold_truth_not_expr): Call it.
8569 2011-03-25 Jeff Law <law@redhat.com>
8571 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8573 * c-family/c-common.c (def_fn_type): Likewise.
8574 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8575 * emit-rtl.c (gen_rtvec): Likewise.
8576 * lto/lto-lang.c (def_fn_type): Likewise.
8578 2011-03-25 Richard Guenther <rguenther@suse.de>
8580 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8581 also generate copies.
8582 (fini_copy_prop): Handle constant values properly.
8584 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8586 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8587 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8588 (hash_loc_operands, compare_loc_operands): Handle
8589 DW_OP_GNU_entry_value.
8591 2011-03-25 Kai Tietz <ktietz@redhat.com>
8593 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8594 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8595 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8596 comment and use macro TARGET_64BIT_MS_ABI instead.
8597 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8598 and change default behavior for 32-bit MS_ABI.
8599 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8600 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8602 (ix86_cfun_abi): Likewise.
8603 (ix86_maybe_switch_abi): Adjust comment.
8604 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8605 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8606 instead of checking for SYSV_ABI.
8607 (ix86_nsaved_sseregs): Likewise.
8608 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8610 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8611 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8612 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8613 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8614 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8616 2011-03-25 Richard Guenther <rguenther@suse.de>
8618 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8619 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8620 (verify_gimple): Remove.
8621 * tree-cfg.c (verify_gimple_call): Merge verification
8623 (verify_gimple_phi): Merge verification from verify_stmts.
8624 (verify_gimple_label): New function.
8625 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8626 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8627 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8628 (verify_stmts): Rename to verify_gimple_in_cfg.
8629 (verify_gimple_in_cfg): New function.
8630 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8631 * tree-ssa.c (verify_ssa): Likewise.
8632 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8634 2011-03-25 Richard Guenther <rguenther@suse.de>
8636 * passes.c (init_optimization_passes): Add FRE pass after
8639 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8640 Andrew Stubbs <ams@codesourcery.com>
8642 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8644 (arm_movdi_vfp_cortexa8): New pattern.
8645 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8646 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8647 instructions when tuning for Cortex-A8. Set attribute "arch".
8648 * config/arm/arm.md: Move include arm-tune.md up a bit.
8649 (define_attr "arch"): Add "onlya8" and "nota8" values.
8650 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8652 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8656 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8658 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8659 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8660 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8661 * passes.c (init_optimization_passes): Move
8662 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8664 2011-03-25 Kai Tietz <ktietz@redhat.com>
8666 * c-typeck.c (comptypes_internal): Replace target
8667 hook call of comp_type_attributes by version in tree.c file.
8668 * gimple.c (gimple_types_compatible_p_1): Likewise.
8669 * tree-ssa.c (useless_type_conversion_p): Likewise.
8670 * tree.c (build_type_attribute_qual_variant): Likewise.
8671 (attribute_value_equal): New static helper function.
8672 (comp_type_attributes): New function.
8673 (merge_attributes): Use attribute_value_equal for comparison.
8674 (attribute_list_contained): Likewise.
8675 * tree.h (comp_type_attributes): New prototype.
8677 2011-03-25 Richard Guenther <rguenther@suse.de>
8679 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8680 of complex types at -O0.
8681 (verify_gimple_assign_binary): Likewise.
8682 (verify_gimple_assign_ternary): Likewise.
8684 2011-03-24 Mark Wielaard <mjw@redhat.com>
8686 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8687 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8689 2011-03-24 Mark Wielaard <mjw@redhat.com>
8692 * dwarf2out.c (output_abbrev_section): Only write table when
8693 abbrev_die_table_in_use > 1.
8695 2011-02-24 Richard Henderson <rth@redhat.com>
8697 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8698 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8699 (alpha_expand_unaligned_load_words): Use extql.
8700 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8701 (emit_insxl): Handle all modes for consistency.
8703 2011-02-24 Richard Henderson <rth@redhat.com>
8705 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8706 (alpha_expand_unaligned_load): Likewise.
8707 (alpha_expand_unaligned_store): Likewise.
8708 (alpha_expand_unaligned_load_words): Likewise.
8709 (alpha_expand_unaligned_store_words): Likewise.
8710 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8711 (alpha_split_lock_test_and_set_12): Likewise.
8712 (print_operand, alpha_fold_builtin_extxx): Likewise.
8713 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8714 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8715 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8716 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8717 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8718 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8719 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8720 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8721 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8722 (extwl, extll, extql): Similarly.
8723 (inswh, inslh, insqh): Similarly.
8724 (mskbl, mskwl, mskll, mskql): Similarly.
8725 (mskwh, msklh, mskqh): Similarly.
8727 2011-02-24 Richard Henderson <rth@redhat.com>
8729 * config/alpha/alpha.md (attribute isa): Add er, ner.
8730 (attribute enabled): Handle them.
8731 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8733 2011-02-24 Richard Henderson <rth@redhat.com>
8735 * config/alpha/alpha.md (attribute isa): Add vms.
8736 (attribute enabled): Handle it.
8737 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8738 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8739 (*movtf): Rename from *movtf_internal for consistency.
8740 (*movsi): Merge with *movsi_nt_vms.
8741 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8742 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8743 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8744 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8746 2011-02-24 Richard Henderson <rth@redhat.com>
8748 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8749 (extendqisi2, extendhisi2): Likewise.
8750 (extendqidi2): Simplify BWX/non-BWX expansions.
8751 (extendhidi2): Similarly.
8753 2011-02-24 Richard Henderson <rth@redhat.com>
8755 * config/alpha/alpha.md (attribute isa): New.
8756 (attribute enabled): New.
8757 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8758 (zero_extendqisi2, zero_extendqidi2): Similarly.
8759 (zero_extendhisi2, zero_extendhidi2): Similarly.
8760 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8762 2011-02-24 Richard Henderson <rth@redhat.com>
8764 * config/alpha/predicates.md (input_operand): Revert last change;
8765 update comment to mention 32-bit VMS rather than Windows.
8767 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8769 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8770 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8771 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8772 * passes.c (init_optimization_passes): Move
8773 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8775 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8777 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8779 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8781 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8784 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8787 * simplify-rtx.c (simplify_const_unary_operation): Call
8788 real_convert when changing mode class with FLOAT_EXTEND.
8790 2011-03-24 Nick Clifton <nickc@redhat.com>
8792 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8793 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8794 * config/rx/rx.c (rx_option_override): Set align_jumps,
8795 align_loops and align_labels if not set by the user.
8796 (rx_align_for_label): New function.
8797 (rx_max_skip_for_label): New function.
8798 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8799 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8800 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8801 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8802 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8804 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8806 PR rtl-optimization/48263
8807 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8808 and original commutative_p handling. Use maybe_gen_insn.
8810 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8812 * reload.c (find_reloads_subreg_address): Add address_reloaded
8813 parameter and return true there if the full address has been
8815 (find_reloads_toplev): Pass address_reloaded flag.
8816 (find_reloads_address_1): Don't use address_reloaded parameter.
8818 2011-03-24 Jeff Law <law@redhat.com>
8820 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8821 unused variable "ann".
8822 (remove_unused_locals): Likewise.
8824 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8827 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8830 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8832 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8833 for invalid symbolic addresses.
8834 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8837 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8839 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8840 the argument in calls to fold_truth_not_expr.
8842 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8844 * tree.c (record_node_allocation_statistics): New function.
8845 (make_node_stat, copy_node_stat, build_string): Call it.
8846 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8847 (build1_stat, build_omp_clause): Likewise.
8849 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8851 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8854 2011-03-24 Richard Guenther <rguenther@suse.de>
8856 PR tree-optimization/48271
8857 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8858 blocks that still exist.
8860 2011-03-24 Richard Guenther <rguenther@suse.de>
8862 PR tree-optimization/48270
8863 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8864 not free datarefs before ddrs.
8866 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8868 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8869 from the address built for a reference with variable offset.
8871 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8874 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8875 alternatives that can be handled with movq or movabsq insn.
8876 (*movdf_internal): Disable for !TARGET_64BIT.
8877 (*movdf_internal_nointeger): Ditto.
8878 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8880 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8882 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8883 (FUNCTION_ARG_ADVANCE): Likewise.
8884 * tm.texi.in: Change references to them to hook references.
8885 * tm.texi: Regenerate.
8886 * targhooks.c (default_function_arg): Eliminate check for target macro.
8887 (default_function_incoming_arg): Likewise.
8888 (default_function_arg_advance): Likewise.
8889 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8890 (function_arg_advance): Likewise.
8891 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8893 2011-03-24 Richard Guenther <rguenther@suse.de>
8896 * tree-object-size.c (addr_object_size): Do not double-account
8897 for MEM_REF offsets.
8899 2011-03-24 Diego Novillo <dnovillo@google.com>
8901 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8902 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8903 (lto_input_data_block): Move from lto-opts.c. Make extern.
8905 (lto_input_string): Rename from input_string. Make extern.
8907 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8908 output_string_with_length.
8909 Output 0 to indicate a non-NULL string. Update all callers to
8911 (lto_output_string): Rename from output_string. Make extern.
8913 (lto_output_decl_state_streams): Make extern.
8914 (lto_output_decl_state_refs): Make extern.
8915 * lto-streamer.h (lto_input_string): Declare.
8916 (lto_input_data_block): Declare.
8917 (lto_output_string): Declare.
8918 (lto_output_string_with_length): Declare.
8919 (lto_output_decl_state_streams): Declare.
8920 (lto_output_decl_state_refs): Declare.
8922 2011-03-24 Richard Guenther <rguenther@suse.de>
8924 PR tree-optimization/46562
8925 * tree.c (build_invariant_address): New function.
8926 * tree.h (build_invariant_address): Declare.
8927 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8928 a renamed function moved ...
8929 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8930 Take valueization callback parameter.
8931 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8932 * gimple-fold.h: New file.
8933 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8934 (ccp_fold, fold_const_aggregate_ref,
8935 fold_ctor_reference, fold_nonarray_ctor_reference,
8936 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8937 get_base_constructor): Move ...
8938 * gimple-fold.c: ... here.
8939 (gimple_fold_stmt_to_constant_1): New function
8940 split out from ccp_fold. Take a valueization callback parameter.
8941 Valueize all operands.
8942 (gimple_fold_stmt_to_constant): New wrapper function.
8943 (fold_const_aggregate_ref_1): New function split out from
8944 fold_const_aggregate_ref. Take a valueization callback parameter.
8945 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8946 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8947 invariant POINTER_PLUS_EXPRs to invariant form.
8948 (vn_valueize): New function.
8949 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8950 * tree-vrp.c (vrp_valueize): New function.
8951 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8952 to fold statements to constants.
8953 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8954 function declarations.
8955 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8956 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8958 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8960 * config/h8300/predicates.md (jump_address_operand): Fix register
8963 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8965 * doc/invoke.texi (max-stores-to-sink): Document.
8966 * params.h (MAX_STORES_TO_SINK): Define.
8967 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8968 if either vectorization or if-conversion is disabled.
8969 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8970 tree-vect-data-refs.c vect_equal_offsets.
8971 (dr_equal_offsets_p): New function.
8972 (find_data_references_in_bb): Remove static.
8973 * tree-data-ref.h (find_data_references_in_bb): Declare.
8974 (dr_equal_offsets_p): Likewise.
8975 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8976 (vect_drs_dependent_in_basic_block): Update calls to
8978 (vect_check_interleaving): Likewise.
8979 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8980 (cond_if_else_store_replacement): Rename to...
8981 (cond_if_else_store_replacement_1): ... this. Change arguments and
8983 (cond_if_else_store_replacement): New function.
8984 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8985 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8987 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8990 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8991 to subtract lower bound instead of GEN_INT().
8993 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8998 * doc/extend.texi (Alignment): Move section to match order in TOC.
8999 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9000 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9002 2011-03-23 Jeff Law <law@redhat.com>
9004 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9005 before removing the edge.
9007 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9008 it may have been freed by redirect_branch_edge or
9009 redirect_edge_succ_nodup.
9011 2011-03-23 Richard Guenther <rguenther@suse.de>
9013 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9014 (check_va_list_escapes): Likewise.
9015 (check_all_va_list_escapes): Likewise.
9017 2011-03-23 Richard Guenther <rguenther@suse.de>
9019 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9020 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9021 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9022 (alias.o): Likewise.
9023 (ipa-type-escape.o): Remove.
9024 (ipa-struct-reorg.o): Likewise.
9025 (GTFILES): Remove ipa-struct-reorg.c.
9026 * alias.c: Do not include ipa-type-escape.h.
9027 * tree-ssa-alias.c: Likewise.
9028 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9029 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9030 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9031 and ipa-type-escape passes.
9032 * tree-pass.h (pass_ipa_type_escape): Remove.
9033 (pass_ipa_struct_reorg): Likewise.
9034 * ipa-struct-reorg.h: Remove.
9035 * ipa-struct-reorg.c: Likewise.
9036 * ipa-type-escape.h: Likewise.
9037 * ipa-type-escape.c: Likewise.
9038 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9039 (--param struct-reorg-cold-struct-ratio): Likewise.
9040 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9041 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9042 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9044 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9046 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9047 cpu attribute value.
9048 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9049 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9050 * config/s390/s390.c (processor_flags_table): New constant array.
9051 (s390_handle_arch_option): Remove.
9052 (s390_handle_option): Remove s390_handle_arch_option invocations
9053 and OPT_mwarn_framesize_ handling.
9054 (s390_option_override): Remove s390_handle_arch_option invocation.
9055 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9057 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9058 * config/s390/s390.opt (s390_tune, s390_arch)
9059 (march=): Replace s390_arch_option enum and values with
9060 processor_type. Set variable name to s390_arch. Set
9061 initialization value.
9062 (mtune=): Replace s390_arch_option with processor_type. Set
9063 variable name to s390_tune. Set initialization value.
9065 2011-03-23 Julian Brown <julian@codesourcery.com>
9067 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9068 accesses which are not naturally aligned.
9070 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9073 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9075 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9077 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9078 parameter from "int" to "enum insn_code".
9079 (expand_operand_type): New enum.
9080 (expand_operand): New structure.
9081 (create_expand_operand): New function.
9082 (create_fixed_operand, create_output_operand): Likewise
9083 (create_input_operand, create_convert_operand_to): Likewise.
9084 (create_convert_operand_from, create_address_operand): Likewise.
9085 (create_integer_operand): Likewise.
9086 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9087 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9088 (expand_insn, expand_jump_insn): Likewise.
9089 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9090 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9091 (expand_movstr, expand_builtin___clear_cache): Likewise.
9092 (expand_builtin_lock_release): Likewise.
9093 * explow.c (allocate_dynamic_stack_space): Likewise.
9094 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9095 and use the default handling in that case.
9096 * expmed.c (check_predicate_volatile_ok): Delete.
9097 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9098 (emit_cstore): Likewise.
9099 * expr.c (emit_block_move_via_movmem): Likewise.
9100 (set_storage_via_setmem, expand_assignment): Likewise.
9101 (emit_storent_insn, try_casesi): Likewise.
9102 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9103 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9104 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9105 (expand_twoval_unop, expand_twoval_binop): Likewise.
9106 (expand_unop_direct, emit_indirect_jump): Likewise.
9107 (emit_conditional_move, vector_compare_rtx): Likewise.
9108 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9109 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9110 (expand_sync_lock_test_and_set): Likewise.
9111 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9112 (emit_unop_insn): Likewise.
9113 (expand_copysign_absneg): Change icode to an insn_code.
9114 (create_convert_operand_from_type): New function.
9115 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9116 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9117 (expand_insn, expand_jump_insn): Likewise.
9118 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9119 than const_int_operand for operand 2.
9121 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9123 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9126 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9128 * emit-rtl.c (emit_pattern_before_noloc): New function.
9129 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9130 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9131 (emit_pattern_after_noloc): New function.
9132 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9133 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9135 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9137 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9138 (__ffsDI2): Likewise.
9140 2011-03-22 Richard Henderson <rth@redhat.com>
9142 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9143 of !TARGET_ABI_OPEN_VMS.
9144 (alpha_trampoline_init, alpha_start_function): Likewise.
9145 (alpha_expand_epilogue, alpha_file_start): Likewise.
9146 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9147 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9148 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9149 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9150 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9152 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9154 * config/s390/s390-opts.h: New.
9155 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9156 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9157 s390_stack_guard): Remove.
9158 (s390_handle_arch_option): Return void. Take enum
9159 s390_arch_option value instead of string and searching array.
9160 (s390_handle_option): Don't assert that global structures are in
9161 use. Access variables via opts pointer. Use error_at. Don't use
9162 sscanf for -mstack-guard= or -mstack-size=. Update call to
9163 s390_handle_arch_option.
9164 (s390_option_override): Update call to s390_handle_arch_option.
9165 (s390_emit_prologue): Use %d format for s390_stack_size in
9166 diagnostic. Use %wd for HOST_WIDE_INT.
9167 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9168 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9169 * config/s390/s390.opt (config/s390/s390-opts.h): New
9170 HeaderInclude entry.
9171 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9172 s390_arch_flags, s390_warn_framesize): New Variable entries.
9173 (s390_arch_option): New Enum and EnumValue entries.
9174 (march=): Use Enum instead of Var.
9175 (mstack-guard=, mstack-size=): Use UInteger and Var.
9178 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9180 * config/score/score.c (score_handle_option): Don't assert that
9181 global structures are in use. Access target_flags via opts
9182 pointer. Use value of -march= option to determine target_flags
9184 * config/score/score.opt (march=): Use Enum.
9185 (score_arch): New Enum and EnumValue entries.
9187 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9189 * config/mep/mep.c (option_mtiny_specified): Remove.
9190 (mep_option_override): Move register handling for -mivc2 from
9191 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9192 instead of option_mtiny_specified.
9193 (mep_handle_option): Access target_flags via opts pointer. Don't
9194 assert that global structures are in use. Defer part of -mivc2
9195 handling and move it to mep_option_override.
9196 * config/mep/mep.opt (IVC2): New Mask entry.
9197 (mivc2): Use Var and Defer instead of Mask.
9199 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9201 * config/v850/v850-opts.h: New.
9202 * config/v850/v850.c (small_memory): Replace with
9203 small_memory_physical_max array. Make that array static const.
9204 (v850_handle_memory_option): Take integer value of argument. Take
9205 gcc_options pointer, option text and location. Return void.
9206 Update for changes to small memory structures.
9207 (v850_handle_option): Access target_flags via opts pointer. Don't
9208 assert that global structures are in use. Update calls to
9209 v850_handle_memory_option.
9210 (v850_encode_data_area): Update references to small memory settings.
9211 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9212 (enum small_memory_type): Move to v850-opts.h.
9213 * config/v850/v850.opt (config/v850/v850-opts.h): New
9214 HeaderInclude entry.
9215 (small_memory_max): New Variable entry.
9216 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9217 (mtda, mzda): Likewise.
9219 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9221 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9222 pointer. Don't assert that global structures are in use.
9224 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9226 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9227 via opts pointer. Don't assert that global structures are in use.
9229 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9231 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9232 (munix=93): Use Var.
9233 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9234 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9235 * config/pa/pa-opts.h: New.
9236 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9237 (pa_handle_option): Don't assert that global structures are in
9238 use. Access target_flags via opts pointer. Don't handle
9239 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9241 (pa_option_override): Handle deferred OPT_mfixed_range_.
9243 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9245 * config/mn10300/mn10300-opts.h: New.
9246 * config/mn10300/mn10300.c (mn10300_processor,
9247 mn10300_tune_string): Remove.
9248 (mn10300_handle_option): Don't assert that global structures are
9249 in use. Access mn10300_processor via opts pointer. Don't handle
9251 * config/mn10300/mn10300.h (enum processor_type): Move to
9253 (mn10300_processor): Remove.
9254 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9255 HeaderInclude entry.
9256 (mn10300_processor): New Variable entry.
9259 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9261 * config/microblaze/microblaze.c: Don't include opts.h.
9262 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9263 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9264 (mno-clearbss): Use Var and Warn.
9266 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9268 * config/m32r/m32r-opts.h: New.
9269 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9270 (m32r_handle_option): Don't assert that global structures are in
9271 use. Access target_flags and m32r_cache_flush_func via opts
9272 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9273 OPT_mno_flush_trap here.
9274 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9275 include of m32r-opts.h.
9276 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9277 HeaderInclude entry.
9278 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9279 (mmodel=): Use Enum and Var.
9280 (m32r_model): New Enum and EnumValue entries.
9281 (mno-flush-trap): Use Var.
9282 (msdata=): Use Enum and Var.
9283 (m32r_sdata): New Enum and EnumValue entries.
9285 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9287 * config/m32c/m32c.c: Don't include opts.h.
9288 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9289 m32c_handle_option): Remove.
9290 (m32c_option_override): Check global_options_set.x_target_memregs
9291 instead of target_memregs_set.
9292 * config/m32c/m32c.h (target_memregs): Remove.
9293 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9296 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9298 * config/iq2000/iq2000-opts.h: New.
9299 * config/iq2000/iq2000.c: Don't include opts.h.
9300 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9301 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9302 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9303 HeaderInclude entry.
9304 (iq2000_tune): New Variable entry.
9305 (march=): Add comment. Use Enum.
9306 (iq2000_arch): New Enum and EnumValue entries.
9307 (mcpu=): Use Enum and Var.
9308 (iq2000_tune): New Enum and EnumValue entries.
9310 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9312 * config/ia64/ia64-opts.h: New.
9313 * config/ia64/ia64.c (ia64_tune): Remove.
9314 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9316 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9317 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9318 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9319 HeaderInclude entry.
9320 (ia64_tune): New Variable entry.
9321 (mfixed-range=): Use Defer and Var.
9322 (mtune=): Use Enum and Var.
9323 (ia64_tune): New Enum and EnumValue entries.
9325 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9327 * config/frv/frv-opts.h: New.
9328 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9330 (frv_cpu_type): Remove.
9331 * config/frv/frv.c: Don't include opts.h.
9332 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9333 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9334 (frv_cpu_type): New Variable entry.
9335 (frv_cpu): New Enum and EnumValue entries.
9337 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9339 * config/cris/cris.c (cris_handle_option): Access target_flags via
9340 opts pointer. Don't assert that global structures are in use.
9341 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9342 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9346 * config/bfin/bfin-opts.h: New.
9347 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9348 bfin_si_revision, bfin_workarounds): Remove.
9349 (bfin_cpus): Make static const.
9350 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9351 not bfin_lib_id_given.
9352 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9353 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9354 pointer. Use error_at. Don't assert that global structures are in use.
9355 * config/bfin/bfin.h: Include bfin-opts.h.
9356 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9357 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9358 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9359 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9362 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9364 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9365 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9366 or -msoft-float here.
9367 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9368 -msoft-float and -mhard-float.
9369 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9370 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9372 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9374 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9375 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9377 (LIBGCC_SPEC): Don't handle -msoft-float.
9378 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9380 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9382 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9383 -mfloat-abi=*, not -msoft-float and -mhard-float.
9384 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9386 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9387 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9388 mhard-float and msoft-float.
9389 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9390 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9391 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9392 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9394 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9395 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9397 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9399 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9402 2011-03-22 Richard Henderson <rth@redhat.com>
9404 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9405 TARGET_ABI_WINDOWS_NT.
9406 (alpha_output_function_end_prologue): Likewise.
9407 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9408 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9409 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9410 (trap, *movsi_nt_vms): Likewise.
9411 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9412 (*tablejump_osf_nt_internal): Remove.
9413 * config/alpha/predicates.md (input_operand): Only test Pmode.
9415 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9417 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9418 via opts pointer. Use error_at. Don't assert that global
9419 structures are in use.
9421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9423 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9424 (ix86_handle_option): Access ix86_isa_flags and
9425 ix86_isa_flags_explicit via opts pointer. Don't assert that
9426 global structures are in use.
9427 (ix86_function_specific_save, ix86_function_specific_restore):
9428 Update ix86_isa_flags_explicit field name.
9429 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9430 (ix86_isa_flags_explicit): Rename TargetSave entry to
9431 x_ix86_isa_flags_explicit.
9433 2011-03-22 Richard Henderson <rth@redhat.com>
9435 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9436 (alpha_option_override, direct_return): Likewise.
9437 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9438 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9439 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9440 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9441 (alpha_expand_epilogue, alpha_end_function): Likewise.
9442 (alpha_init_libfuncs): Likewise.
9443 (struct machine_function): Remove unicosmk members.
9444 (print_operand) ['t']: Remove.
9445 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9446 unicosmk_output_module_name, unicosmk_output_common,
9447 current_section_align, unicosmk_output_text_section_asm_op,
9448 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9449 unicosmk_section_type_flags, unicosmk_unique_section,
9450 unicosmk_asm_named_section, unicosmk_insert_attributes,
9451 unicosmk_output_align, unicosmk_defer_case_vector,
9452 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9453 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9454 unicosmk_output_ssib, unicosmk_add_call_info_word,
9455 unicosmk_extern_head, unicosmk_output_default_externs,
9456 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9457 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9458 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9459 * config/alpha/alpha-protos.h: Update.
9460 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9461 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9462 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9463 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9464 (*mulsi_se, mulvsi3): Likewise.
9465 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9466 (*divmodsi_internal, call, call_value, realign): Likewise.
9467 (moddi3, umoddi3): Likewise; remove duplicate expander.
9468 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9469 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9470 (*movdi_nofix): Remove r/U alternative.
9471 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9472 * config/alpha/constraints.md ("U"): Remove.
9473 * config/alpha/predicates.md (call_operand"): Don't test
9474 TARGET_ABI_UNICOSMK.
9476 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9478 * target.def (handle_option): Take gcc_options and
9479 cl_decoded_option pointers and location_t.
9480 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9481 * doc/tm.texi: Regenerate.
9482 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9483 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9484 * lto-opts.c (lto_reissue_options): Generate option structure for
9485 targetm.handle_option call.
9486 * opts.c (target_handle_option): Update call to
9487 targetm.handle_option. Remove assertions about values now passed
9489 * targhooks.c (default_target_handle_option): New.
9490 * targhooks.h (default_target_handle_option): Declare.
9491 * config/alpha/alpha.c: Include opts.h.
9492 (alpha_handle_option): Update to new hook interface.
9493 * config/arm/arm.c: Include opts.h.
9494 (arm_handle_option): Update to new hook interface.
9495 * config/arm/t-arm (arm.o): Update dependencies.
9496 * config/bfin/bfin.c: Include opts.h.
9497 (bfin_handle_option): Update to new hook interface.
9498 * config/cris/cris.c: Include opts.h.
9499 (cris_handle_option): Update to new hook interface.
9500 * config/frv/frv.c: Include opts.h.
9501 (frv_handle_option): Update to new hook interface.
9502 * config/i386/i386.c: Include opts.h.
9503 (ix86_handle_option): Update to new hook interface.
9504 (ix86_valid_target_attribute_inner_p): Generate option structure
9505 for call to ix86_handle_option.
9506 * config/i386/t-i386 (i386.o): Update dependencies.
9507 * config/ia64/ia64.c: Include opts.h.
9508 (ia64_handle_option): Update to new hook interface.
9509 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9510 * config/iq2000/iq2000.c: Include opts.h.
9511 (iq2000_handle_option): Update to new hook interface.
9512 * config/m32c/m32c.c: Include opts.h.
9513 (m32c_handle_option): Update to new hook interface.
9514 * config/m32r/m32r.c: Include opts.h.
9515 (m32r_handle_option): Update to new hook interface.
9516 * config/m68k/m68k.c: Include opts.h.
9517 (m68k_handle_option): Update to new hook interface.
9518 * config/mep/mep.c: Include opts.h.
9519 (mep_handle_option): Update to new hook interface.
9520 * config/microblaze/microblaze.c: Include opts.h.
9521 (microblaze_handle_option): Update to new hook interface.
9522 * config/mips/mips.c: Include opts.h.
9523 (mips_handle_option): Update to new hook interface.
9524 * config/mn10300/mn10300.c: Include opts.h.
9525 (mn10300_handle_option): Update to new hook interface.
9526 * config/pa/pa.c: Include opts.h.
9527 (pa_handle_option): Update to new hook interface.
9528 * config/pdp11/pdp11.c: Include opts.h.
9529 (pdp11_handle_option): Update to new hook interface.
9530 * config/rs6000/rs6000.c: Include opts.h.
9531 (rs6000_handle_option): Update to new hook interface.
9532 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9533 * config/rx/rx.c: Include opts.h.
9534 (rx_handle_option): Update to new hook interface.
9535 * config/s390/s390.c: Include opts.h.
9536 (s390_handle_option): Update to new hook interface.
9537 * config/score/score.c: Include opts.h.
9538 (score_handle_option): Update to new hook interface.
9539 * config/sh/sh.c: Include opts.h.
9540 (sh_handle_option): Update to new hook interface.
9541 * config/sparc/sparc.c: Include opts.h.
9542 (sparc_handle_option): Update to new hook interface.
9543 * config/v850/v850.c: Include opts.h.
9544 (v850_handle_option): Update to new hook interface.
9546 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9548 * gcc.c (driver_unknown_option_callback): Only permit and save
9549 unknown -Wno- options.
9550 (driver_wrong_lang_callback): Save options directly instead of via
9551 driver_unknown_option_callback.
9553 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9555 * combine.c (simplify_set): Try harder to find the best CC mode when
9556 simplifying a nested COMPARE on the RHS.
9558 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9560 * config/alpha/gnu.h: Remove.
9561 * config/arc: Remove directory.
9562 * config/arm/netbsd.h: Remove.
9563 * config/arm/t-pe: Remove.
9564 * config/crx: Remove directory.
9565 * config/i386/netbsd.h: Remove.
9566 * config/m68hc11: Remove directory.
9567 * config/m68k/uclinux-oldabi.h: Remove.
9568 * config/mcore/mcore-pe.h: Remove.
9569 * config/mcore/t-mcore-pe: Remove.
9570 * config/netbsd-aout.h: Remove.
9571 * config/rs6000/gnu.h: Remove.
9572 * config/sh/sh-symbian.h: Remove.
9573 * config/sh/symbian-base.c: Remove.
9574 * config/sh/symbian-c.c: Remove.
9575 * config/sh/symbian-cxx.c: Remove.
9576 * config/sh/symbian-post.h: Remove.
9577 * config/sh/symbian-pre.h: Remove.
9578 * config/sh/t-symbian: Remove.
9579 * config/svr3.h: Remove.
9580 * config/vax/netbsd.h: Remove.
9581 * config.build: Don't handle i[34567]86-*-pe.
9582 * config.gcc: Remove handling of deprecations for most deprecated
9584 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9585 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9586 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9587 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9588 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9589 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9591 * config.host: Don't handle i[34567]86-*-pe.
9592 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9593 (ASM_SPEC32): Don't handle -mcall-gnu.
9594 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9596 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9597 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9598 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9599 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9600 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9601 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9602 conditional on SYMBIAN.
9603 * configure.ac: Don't handle powerpc*-*-gnu*.
9604 * configure: Regenerate.
9605 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9606 * doc/install-old.texi (m6811, m6812): Don't mention.
9607 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9608 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9609 (m68k-uclinuxoldabi): Don't mention.
9610 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9612 (-mcall-gnu): Remove.
9613 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9614 families): Remove constraint documentation.
9616 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9618 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9619 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9620 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9622 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9625 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9626 vector when peeking at the next token for vector, don't expand the
9629 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9631 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9632 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9633 * config/avr/avr.c (init_cumulative_args)
9634 (avr_function_arg_advance): Use it.
9635 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9637 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9638 (avr_function_ok_for_sibcall): ...this new function.
9639 (avr_lookup_function_attribute1): New static Function.
9640 (avr_naked_function_p, interrupt_function_p)
9641 (signal_function_p, avr_OS_task_function_p)
9642 (avr_OS_main_function_p): Use it.
9643 * config/avr/avr.md ("sibcall", "sibcall_value")
9644 ("sibcall_epilogue"): New expander.
9645 ("*call_insn", "*call_value_insn"): New insn.
9646 ("call_insn", "call_value_insn"): Remove
9647 ("call", "call_value", "epilogue"): Change expander to handle
9650 2011-03-21 Nick Clifton <nickc@redhat.com>
9652 * doc/invoke.texi (Overall Options): Move closing brace to end of
9654 (Optimization Options): Add missing @gol.
9655 (Directory Options): Likewise.
9656 (i386 and x86-64 Options): Likewise.
9657 (RS6000 and PowerPC Options): Likewise.
9658 (i386 and x86-64 Windows Options): Likewise.
9659 (V850 Options): Add text missing from descriptions.
9661 2011-03-22 Richard Henderson <rth@redhat.com>
9663 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9664 (avr_incoming_return_addr_rtx): New.
9665 (emit_push_byte): New.
9666 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9667 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9668 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9669 (emit_pop_byte): New.
9670 (expand_epilogue): Use it. Pop frame pointer by bytes.
9671 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9672 (INCOMING_RETURN_ADDR_RTX): New.
9673 (INCOMING_FRAME_SP_OFFSET): New.
9674 (ARG_POINTER_CFA_OFFSET): New.
9675 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9676 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9679 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9681 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9683 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9684 (FUNCTION_ARG_ADVANCE): Likewise.
9685 * tm.texi.in: Change references to them to hook references.
9686 * tm.texi: Regenerate.
9687 * targhooks.c (default_function_arg): Eliminate check for target
9689 (default_function_incoming_arg): Likewise.
9690 (default_function_arg_advance): Likewise.
9691 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9692 (function_arg_advance): Likewise.
9693 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9695 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9697 * tree.c (build_call_1): New function.
9698 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9700 2011-03-22 Richard Guenther <rguenther@suse.de>
9702 PR tree-optimization/48228
9703 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9704 for single-arg PHIs.
9706 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9708 PR rtl-optimization/48143
9709 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9710 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9711 sse2_cvtps2pd): Likewise.
9713 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9715 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9717 2011-03-22 Richard Guenther <rguenther@suse.de>
9719 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9720 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9721 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9722 and REALIGN_LOAD_EXPR.
9723 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9724 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9725 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9726 DOT_PROD_EXPR case ...
9727 (expand_expr_real_2): ... here.
9728 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9729 and REALIGN_LOAD_EXPR.
9730 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9731 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9732 (vect_create_epilog_for_reduction): Likewise.
9733 (vectorizable_reduction): Likewise.
9734 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9735 * tree-vect-stmts.c (vectorizable_load): Likewise.
9737 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9739 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9741 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9743 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9744 handling for PLTOFF/GOTOFF.
9746 2011-03-22 Nick Clifton <nickc@redhat.com>
9748 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9749 trailing backslash from the end of the macro definition.
9751 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9753 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9756 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9758 * expr.h (prepare_operand): Move to...
9759 * optabs.h (prepare_operand): ...here and change the insn code
9760 parameter from "int" to "enum insn_code".
9761 (insn_operand_matches): Declare.
9762 * expr.c (init_expr_target): Use insn_operand_matches.
9763 (compress_float_constant): Likewise.
9764 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9765 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9766 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9767 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9769 (gen_cond_trap): Likewise.
9770 (prepare_operand): Likewise. Change icode to an insn_code.
9771 (insn_operand_matches): New function.
9772 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9773 * reload1.c (gen_reload): Likewise.
9774 * targhooks.c (default_secondary_reload): Likewise.
9776 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9778 * config/alpha/alpha.md (unspec): New define_c_enum.
9781 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9784 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9785 between a call and its CALL_ARG_LOCATION note.
9787 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9789 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9791 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9795 * c-common.c (shorten_compare): If primopN is first sign-extended
9796 to opN and then zero-extended to result type, set primopN to opN.
9798 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9800 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9801 for barrier handlers.
9803 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9805 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9806 UNSPEC constants to be in the unspec enumeration, and redefine
9807 all UNSPECV constants to be in the unspecv enumeration, so that
9808 dumps print which unspec/unspec_volatile this is.
9809 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9810 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9811 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9812 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9813 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9815 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9816 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9817 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9818 * config/rs6000/sync.md (isync, lwsync): Ditto.
9820 2011-03-21 Richard Guenther <rguenther@suse.de>
9822 * params.def (lto-min-partition): Fix typo.
9824 2011-03-21 Richard Guenther <rguenther@suse.de>
9827 * c-decl.c (grokdeclarator): Drop to the main variant only
9828 for array types. Drop flag_gen_aux_info check.
9830 2011-03-21 Richard Guenther <rguenther@suse.de>
9832 PR translation/47911
9833 * params.def (lto-partitions): Fix typo.
9834 (lto-min-partition): Fix wording.
9836 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9838 * config/rs6000/t-freebsd: Remove duplication from file.
9840 2011-03-21 Richard Guenther <rguenther@suse.de>
9843 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9845 2011-03-21 Richard Guenther <rguenther@suse.de>
9848 * params.def (lto-partitions): Require at least 1 partition.
9850 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9852 * gthr-solaris.h: Remove.
9853 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9854 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9855 (LIB_SPEC): Likewise.
9856 * config/sol2.opt (threads): Remove.
9857 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9858 (sparc*-*-solaris2*): Likewise.
9859 * configure.ac (enable_threads): Enable solaris support.
9860 * configure: Regenerate.
9861 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9862 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9865 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9867 * config.gcc: Obsolete *-*-solaris2.8*.
9868 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9870 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9873 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9874 reference. Solaris 8 perl works.
9876 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9879 * doc/install.texi (Prerequisites): Move jar etc. up.
9880 Explain support library version requirements.
9882 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9885 * doc/install.texi (Prerequisites): Move Perl to build
9886 requirements. Always necessary on Solaris 2 with Sun ld.
9888 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9890 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9892 (Specific, i?86-*-solaris2.[89]): Likewise.
9893 (Specific, i?86-*-solaris2.10): Likewise.
9894 (Specific, mips-sgi-irix6): Likewise.
9895 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9896 Update for binutils 2.21.
9898 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9900 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9901 Allow -fuse-linker-plugin for non-default plugin linker.
9902 * configure: Regenerate.
9904 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9907 * gengtype.c (files_rules): Added rule for cp/parser.h.
9909 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9912 * config/s390/s390.c (s390_delegitimize_address): Don't call
9913 lowpart_subreg if orig_x has BLKmode.
9915 2011-03-21 Kai Tietz <ktietz@redhat.com>
9918 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9919 * tree.h (attribute_spec): Add new member affects_type_identity.
9920 * attribs.c (empty_attribute_table): Adjust attribute_spec
9922 * config/alpha/alpha.c: Likewise.
9923 * config/arc/arc.c: Likewise.
9924 * config/arm/arm.c: Likewise.
9925 * config/avr/avr.c: Likewise.
9926 * config/bfin/bfin.c: Likewise.
9927 * config/crx/crx.c: Likewise.
9928 * config/darwin.h: Likewise.
9929 * config/h8300/h8300.c: Likewise.
9930 * config/i386/cygming.h: Likewise.
9931 * config/i386/i386.c: Likewise.
9932 * config/ia64/ia64.c: Likewise.
9933 * config/m32c/m32c.c: Likewise.
9934 * config/m32r/m32r.c: Likewise.
9935 * config/m68hc11/m68hc11.c: Likewise.
9936 * config/m68k/m68k.c: Likewise.
9937 * config/mcore/mcore.c: Likewise.
9938 * config/mep/mep.c: Likewise.
9939 * config/microblaze/microblaze.c: Likewise.
9940 * config/mips/mips.c: Likewise.
9941 * config/rs6000/rs6000.c: Likewise.
9942 * config/rx/rx.c: Likewise.
9943 * config/sh/sh.c: Likewise.
9944 * config/sol2.h: Likewise.
9945 * config/sparc/sparc.c: Likewise.
9946 * config/spu/spu.c: Likewise.
9947 * config/stormy16/stormy16.c: Likewise.
9948 * config/v850/v850.c: Likewise.
9950 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9952 * simplify-rtx.c (simplify_binary_operation_1): Handle
9953 (xor (and A B) C) case when B and C are both constants.
9955 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9957 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9959 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9962 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9964 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9966 PR rtl-optimization/48156
9967 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9968 assume df and df_lr are not NULL.
9970 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9973 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9974 between a call and its CALL_ARG_LOCATION note.
9976 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9979 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9980 between a call and its corresponding CALL_ARG_LOCATION note.
9982 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9984 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9985 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9986 * haifa-sched.c (setup_ref_regs): Ditto.
9987 * caller-save.c (add_used_regs_1): Ditto.
9988 * dse.c (look_for_hardregs): Ditto.
9989 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9990 * sched-rgn.c (check_live_1): Ditto.
9992 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9994 * c-decl.c (diagnose_mismatched_decls): Give an error for
9995 redefining a typedef with variably modified type.
9997 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9999 * c-decl.c (grokfield): Don't allow typedefs for structures or
10000 unions with no tag by default.
10001 * doc/extend.texi (Unnamed Fields): Update.
10003 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10005 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10006 Rewrite using indirect functions.
10007 (lwp_slwpcb): Ditto.
10008 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10009 (avx_vinsertf128<mode>): Ditto.
10011 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10013 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10016 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10018 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10019 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10021 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10023 PR rtl-optimization/48170
10024 * gcse.c (hoist_code): Remove bogus asserts.
10026 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10028 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10029 computation for prologue/epilogue.
10031 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10033 * Makefile.in (check-consistency): Remove.
10035 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10038 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10039 arange_table_in_use is 0, but either text_section_used or
10040 cold_text_section_used is true. Don't call it if
10041 !info_section_emitted.
10043 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10045 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10046 FUNCTION_VALUE_REGNO_P): Remove.
10047 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10049 * config/avr/avr.c (avr_ret_register): Make static inline.
10050 (avr_function_value_regno_p): New function.
10051 (avr_libcall_value): Make static. Add 'func' argument.
10052 (avr_function_value): Make static. Rename 'func' argument to
10053 'fn_decl_or_type', forward it to avr_libcall_value. Call
10054 avr_ret_register function instead of RET_REGISTER macro.
10055 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10057 2011-03-18 Jason Merrill <jason@redhat.com>
10060 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10062 2011-03-18 Richard Guenther <rguenther@suse.de>
10064 * doc/install.texi (--enable-gold): Remove.
10065 (--with-plugin-ld): Document.
10066 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10068 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10070 PR middle-end/47790
10071 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10072 again after expansion changes.
10074 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10076 * combine.c (try_combine): Do simplification only call of
10077 subst() on i2 even when i1 is present. Update comments.
10079 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10081 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10082 and UNSPEC_PCREL_SYMOFF.
10084 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10086 * config/s390/s390.md: Use define_c_enum for the unspec constant
10089 2011-03-18 Richard Henderson <rth@redhat.com>
10090 Jakub Jelinek <jakub@redhat.com>
10093 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10094 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10096 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10098 PR middle-end/47725
10099 * combine.c (cant_combine_insn_p): Don't check zero/sign
10100 extended hard registers.
10102 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10104 PR middle-end/47725
10105 * combine.c (cant_combine_insn_p): Check zero/sign extended
10108 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10110 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10111 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10112 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10113 Change return type to bool.
10114 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10116 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10119 * var-tracking.c (prepare_call_arguments): If CALL target
10120 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10121 pc instead of looking it up using cselib_lookup and use
10122 Pmode for it if x has VOIDmode.
10123 * dwarf2out.c (gen_subprogram_die): If also both first and
10124 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10127 * function.c (assign_parms): For data.passed_pointer parms
10128 use MEM of data.entry_parm instead of data.entry_parm itself
10129 as DECL_INCOMING_RTL.
10130 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10131 also when passed and declared mode is the same, DECL_RTL
10132 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10135 2011-03-16 Jeff Law <law@redhat.com>
10137 PR rtl-optimization/37273
10138 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10139 handle them like argument loads from stack slots. Do not double
10140 count memory for memory constants and argument loads from stack slots.
10142 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10145 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10147 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10150 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10152 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10155 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10157 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10158 Clear call_arg_locations and call_arg_loc_last always.
10160 PR middle-end/48152
10161 * var-tracking.c (prepare_call_arguments): If argument needs to be
10162 passed by reference, adjust argtype and mode.
10164 2011-03-17 Richard Guenther <rguenther@suse.de>
10166 PR middle-end/48134
10167 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10168 a value make sure to fold the statement.
10170 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10173 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10174 return condition with !cfun->calls_alloca.
10176 2011-03-17 Richard Guenther <rguenther@suse.de>
10179 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10180 origin for decls in other ltrans units.
10181 (input_varpool_node): Likewise.
10183 2011-03-17 Richard Guenther <rguenther@suse.de>
10185 PR middle-end/48165
10186 * tree-object-size.c (compute_object_offset): Properly return
10187 the offset operand of MEM_REFs as sizetype.
10189 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10191 PR rtl-optimization/48141
10192 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10193 * dse.c: Include params.h.
10194 (active_local_stores_len): New variable.
10195 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10197 (record_store, check_mem_read_rtx): Decrease it when removing
10199 (scan_insn): Likewise. Increase it when adding to chain, if it
10200 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10201 set active_local_stores to NULL before the addition.
10202 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10204 PR rtl-optimization/48141
10205 * dse.c (record_store): If no positions are needed in an insn
10206 that cannot be deleted, at least unchain it from active_local_stores.
10208 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10211 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10212 (lookup_type_die_strip_naming_typedef): ... here.
10213 (get_context_die): Use it.
10214 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10215 the anonymous struct named by the naming typedef.
10217 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10220 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10221 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10223 2011-03-16 Jeff Law <law@redhat.com>
10225 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10226 check for operands of conditional. Allow type to be a pointer.
10228 2011-03-16 Richard Guenther <rguenther@suse.de>
10230 PR tree-optimization/48149
10231 * fold-const.c (fold_binary_loc): Fold
10232 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10234 2011-03-16 Richard Guenther <rguenther@suse.de>
10236 PR tree-optimization/26134
10237 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10238 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10239 (non_rewritable_mem_ref_base): Handle complex type component
10240 accesses, constrain offsets for vector and complex extracts
10243 2011-03-16 Richard Guenther <rguenther@suse.de>
10245 PR tree-optimization/48146
10246 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10247 operands avoiding the need for renaming.
10249 2011-03-16 Richard Guenther <rguenther@suse.de>
10251 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10252 constant folding. Move MEM_REF canonicalization first.
10253 Rely on fold_const_aggregate_ref for initializer folding.
10254 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10256 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10258 PR middle-end/48136
10259 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10260 arg0/arg1 or their arguments are always fold converted to matching
10263 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10266 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10269 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10270 Handle in-tree gold.
10271 (ld_vers): Extract binutils version for gold.
10272 (gcc_cv_ld_hidden): Handle gold here.
10273 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10274 * configure: Regenerate.
10275 * config.in: Regenerate.
10276 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10277 -fuse-linker-plugin otherwise.
10278 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10279 (LINK_COMMAND_SPEC): Use it.
10280 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10282 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10284 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10285 * calls.c: Remove debug.h include.
10286 (emit_call_1): Don't call virtual_call_token debug hook.
10287 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10288 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10289 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10290 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10291 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10292 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10293 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10294 dwarf2out_virtual_call): Remove.
10295 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10296 copy_call_info and virtual_call hooks.
10297 (dwarf2out_init): Don't initialize vcall_insn_table,
10298 debug_dcall_section and debug_vcall_section.
10299 (prune_unused_types): Don't mark nodes from dcall_table.
10300 (dwarf2out_finish): Don't output dcall or vcall tables.
10301 * final.c (final_scan_insn): Don't call direct_call or
10302 virtual_call debug hooks.
10303 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10304 virtual_call_token, copy_call_info and virtual_call hooks.
10305 (debug_nothing_uid): Remove prototype.
10306 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10307 copy_call_info and virtual_call hooks.
10308 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10309 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10310 * debug.c (do_nothing_debug_hooks): Likewise.
10311 (debug_nothing_uid): Remove.
10312 * doc/invoke.texi (-fenable-icf-debug): Remove.
10313 * common.opt (-fenable-icf-debug): Likewise.
10315 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10316 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10317 call's MEM. Handle functions returning aggregate through a hidden
10318 first pointer. For virtual calls add clobbered pc to call arguments
10320 * dwarf2out.c (gen_subprogram_die): Emit
10321 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10325 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10326 * rtl.h (ENTRY_VALUE_EXP): Define.
10327 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10328 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10329 * print-rtl.c (print_rtx): Likewise.
10330 * gengtype.c (adjust_field_rtx_def): Likewise.
10331 * var-tracking.c (vt_add_function_parameter): Adjust
10332 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10333 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10334 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10335 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10336 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10338 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10339 Call var_location debug hook even on CALL_INSNs.
10340 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10341 * rtl.def (ENTRY_VALUE): New.
10342 * dwarf2out.c: Include cfglayout.h.
10343 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10344 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10345 (struct call_arg_loc_node): New type.
10346 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10347 tail_call_site_count): New variables.
10348 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10349 DW_TAG_GNU_call_site_parameter.
10350 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10351 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10352 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10353 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10354 and DW_AT_GNU_all_source_call_sites.
10355 (mem_loc_descriptor): Handle ENTRY_VALUE.
10356 (add_src_coords_attributes): Don't add enything if
10357 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10358 (dwarf2out_abstract_function): Save and clear call_arg_location,
10359 call_site_count and tail_call_site_count around dwarf2out_decl call.
10360 (gen_call_site_die): New function.
10361 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10362 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10363 (dwarf2out_function_decl): Clear call_arg_locations,
10364 call_arg_loc_last, set call_site_count and tail_call_site_count
10365 to -1 and free block_map.
10366 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10367 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10368 followed by any real instructions.
10369 (dwarf2out_begin_function): Set call_site_count and
10370 tail_call_site_count to 0.
10371 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10372 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10373 attempt to force a DIE for it and worst case remove the attribute.
10374 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10375 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10377 * var-tracking.c: Include tm_p.h.
10378 (vt_stack_adjustments): For calls call note_register_arguments.
10379 (argument_reg_set): New variable.
10380 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10381 ensure the VALUE is resolved.
10382 (call_arguments): New variable.
10383 (prepare_call_arguments): New function.
10384 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10385 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10386 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10387 always use the best expression.
10388 (vt_expand_loc): Add ignore_cur_loc argument.
10389 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10390 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10391 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10392 note for all calls.
10393 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10394 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10395 argument. Don't call cselib_preserve_only_values and
10396 cselib_reset_table.
10397 (note_register_arguments): New function.
10398 (vt_initialize): Compute argument_reg_set. Call
10399 vt_add_function_parameters before processing basic blocks instead of
10400 afterwards. For calls call prepare_call_arguments before calling
10401 cselib_process_insn.
10402 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10403 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10404 (var-tracking.o): Depend on $(TM_P_H).
10405 * cfglayout.h (insn_scope): New prototype.
10406 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10407 * cfglayout.c (insn_scope): No longer static.
10408 * insn-notes.def (CALL_ARG_LOCATION): New.
10409 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10410 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10411 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10412 nothing for DECL_EXTERNAL BLOCK_VARS.
10414 2011-03-16 Alan Modra <amodra@gmail.com>
10417 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10418 create invalid offset address for vsx splat insn.
10419 * config/rs6000/predicates.md (splat_input_operand): New.
10420 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10422 2011-03-15 Xinliang David Li <davidxl@google.com>
10425 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10426 (normalize_preds): New function.
10427 (is_use_properly_guarded): Normalize def predicates.
10429 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10432 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10433 in the output template.
10435 2011-03-15 Richard Guenther <rguenther@suse.de>
10437 PR middle-end/47650
10438 * tree-pretty-print.c (dump_function_declaration): Properly
10439 dump unprototyped and varargs function types.
10441 2011-03-15 Richard Guenther <rguenther@suse.de>
10443 PR tree-optimization/13954
10444 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10447 2011-03-15 Richard Guenther <rguenther@suse.de>
10449 PR tree-optimization/48037
10450 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10451 selects into BIT_FIELD_REFs.
10452 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10455 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10457 PR tree-optimization/48129
10458 * builtins.c (fold_builtin_snprintf): Convert to type of
10459 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10460 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10462 2011-03-15 Richard Guenther <rguenther@suse.de>
10464 PR tree-optimization/41490
10465 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10466 value but with VUSE.
10467 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10469 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10470 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10471 * tree-tailcall.c (find_tail_calls): Ignore returns.
10473 2011-03-15 Richard Guenther <rguenther@suse.de>
10475 PR middle-end/48031
10476 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10477 or variable-indexed array accesses when in gimple form.
10479 2011-03-15 Richard Guenther <rguenther@suse.de>
10481 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10483 2011-03-15 Alan Modra <amodra@gmail.com>
10486 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10487 presume symbol_refs without a symbol_ref_decl are suitably
10488 aligned, nor other trees we may see here. Handle anchor symbols.
10489 (legitimate_constant_pool_address_p): Comment. Add mode param.
10490 Check cmodel=medium addresses. Adjust all calls.
10491 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10492 creating cmodel=medium optimized access to locals.
10493 * config/rs6000/constraints.md (R): Pass QImode to
10494 legitimate_constant_pool_address_p.
10495 * config/rs6000/predicates.md (input_operand): Pass mode to
10496 legitimate_constant_pool_address_p.
10497 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10500 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10503 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10504 64-bit constants being loaded into registers other than GPRs such
10505 as loading 0 into a VSX register.
10507 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10509 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10511 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10513 PR middle-end/47917
10514 * builtins.c (fold_builtin_snprintf): New function.
10515 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10516 (fold_builtin_4): Likewise.
10518 PR middle-end/38878
10519 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10520 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10521 and C - X == X also strip nops from +/-/p+ operand.
10522 When optimizing -X == C, fold C to arg0's type.
10525 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10526 emit it as add_AT_int instead of add_AT_unsigned.
10528 2011-03-14 Tom Tromey <tromey@redhat.com>
10530 * unwind-dw2.c: Include sys/sdt.h if it exists.
10531 (_Unwind_DebugHook): Use STAP_PROBE2.
10532 * config.in, configure: Rebuild.
10533 * configure.ac: Check for sys/sdt.h.
10535 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10537 * config/i386/i386.md (ROUND_FLOOR): New constant.
10538 (ROUND_CEIL): Ditto.
10539 (ROUND_TRUNC): Ditto.
10540 (ROUND_MXCSR): Ditto.
10541 (ROUND_NO_EXC): Ditto.
10542 (rint<mode>2): Use new defines instead of numerical constants.
10543 (floor<mode>2): Ditto.
10544 (ceil<mode>2): Ditto.
10545 (btrunc<mode>2): Ditto.
10546 * config/i386/i386-builtin-types.def: Define ROUND function type
10548 * config/i386/i386.c (enum ix86_builtins): Add
10549 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10550 (struct builtin_description): Add
10551 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10552 (ix86_expand_sse_round): New static function.
10553 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10555 (ix86_builtin_vectorized_function): Handle
10556 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10558 2011-03-14 Tom Tromey <tromey@redhat.com>
10560 * c-parser.c (c_parser_asm_string_literal): Clear
10561 warn_overlength_strings.
10563 2011-03-14 Tom Tromey <tromey@redhat.com>
10565 * c-parser.c (disable_extension_diagnostics): Save
10566 warn_overlength_strings.
10567 (restore_extension_diagnostics): Restore warn_overlength_strings.
10569 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10571 * BASE-VER: Change to 4.7.0.
10573 2011-03-14 Richard Guenther <rguenther@suse.de>
10575 PR middle-end/48098
10576 * tree.c (build_vector_from_val): Adjust assert to requirements
10579 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10582 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10584 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10586 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10587 terms of target_flags_explicit. Adjust copyright year.
10589 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10590 * config/rs6000/t-freebsd: New file. Add override for
10593 2011-03-13 Chris Demetriou <cgd@google.com>
10595 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10596 (-fno-diagnostics-show-option): this, to reflect current default.
10597 (-Werror=): Update text about -fno-diagnostics-show-option.
10599 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10602 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10603 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10604 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10605 mode is not V2DImode or V2DFmode.
10606 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10607 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10608 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10610 (movdi_internal64): Likewise.
10612 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10614 PR tree-optimization/47127
10615 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10617 (set_cloog_options): Same.
10618 (scop_to_clast): Same.
10619 (print_clast_stmt): Do not call cloog_state_malloc and
10621 (print_generated_program): Same.
10623 * graphite-clast-to-gimple.h (cloog_state): Declared.
10624 (scop_to_clast): Adjust declaration.
10625 * graphite.c (cloog_state): Defined here.
10626 (graphite_initialize): Call cloog_state_malloc.
10627 (graphite_finalize): Call cloog_state_free.
10629 2011-03-11 Jason Merrill <jason@redhat.com>
10631 * attribs.c (lookup_attribute_spec): Take const_tree.
10634 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10636 * config/sparc/sparc.c (sparc_option_override): Use
10637 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10639 2011-03-11 Richard Guenther <rguenther@suse.de>
10641 PR tree-optimization/48067
10642 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10643 multiplication result will be only used once on the target
10646 2011-03-11 Richard Guenther <rguenther@suse.de>
10648 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10650 2011-03-11 Richard Guenther <rguenther@suse.de>
10653 * tree.c (find_decls_types_r): Do not walk types only reachable
10654 from IDENTIFIER_NODEs.
10656 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10658 PR middle-end/48044
10659 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10660 all vnode->force_output nodes as needed.
10662 2011-03-11 Jason Merrill <jason@redhat.com>
10665 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10666 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10668 2011-03-11 Martin Jambor <mjambor@suse.cz>
10670 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10673 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10675 PR tree-optimization/48063
10676 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10677 inline functions called once if !tree_can_inline_p (node->callers).
10679 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10681 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10683 * config/score/score3.c: Delete.
10684 * config/score/score3.h: Delete.
10685 * config/score/mul-div.S: Delete.
10686 * config/score/sfp-machine.h: Add new file.
10687 * config/score/constraints.md: Add new file.
10688 * config/score/t-score-softfp: Add new file.
10689 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10690 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10691 (score7_extra_constraint): Delete.
10692 (score7_option_override): Remove unused code.
10693 * config/score/score.c: Remove score3 and score5 define and code.
10694 * config/score/score.h: Remove score3 and score5 define and code.
10695 * config/score/score.md: Remove score3 template and unusual insn.
10696 * config/score/score.opt: Remove score3 and score5 options.
10698 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10700 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10701 when _HPUX_SOURCE is defined.
10702 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10704 2011-03-10 Jason Merrill <jason@redhat.com>
10707 * stor-layout.c (layout_type): Don't set structural equality
10708 on arrays of incomplete type.
10709 * tree.c (type_hash_eq): Handle comparing them properly.
10711 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10714 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10715 result mode matches original rtl mode.
10717 2011-03-10 Nick Clifton <nickc@redhat.com>
10719 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10720 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10722 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10724 PR rtl-optimization/47866
10725 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10726 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10727 if target wasn't scalar.
10728 * function.c (assign_stack_temp_for_type): Assert that neither
10729 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10730 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10732 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10734 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10736 * config/s390/s390-protos.h (s390_label_align): New prototype.
10737 * config/s390/s390.c (s390_label_align): New function.
10738 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10740 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10743 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10744 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10745 (output_vec_const_move): Ditto.
10747 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10749 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10750 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10751 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10752 Change 'rclass' argument and result type to reg_class_t.
10753 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10755 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10757 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10758 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10759 (TARGET_MEMORY_MOVE_COST): Define.
10760 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10762 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10765 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10768 PR tree-optimization/48022
10769 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10772 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10775 * var-tracking.c (find_use_val): Return NULL for
10776 cui->sets && cui->store_p BLKmode MEMs.
10778 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10780 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10782 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10783 xstormy16_print_operand_address): Remove.
10784 * config/stormy16/stormy16.c (xstormy16_print_operand,
10785 xstormy16_print_operand_address): Make static.
10786 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10788 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10791 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10792 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10795 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10798 * cfgloopmanip.c (fix_bb_placements): Return immediately
10799 if FROM is BASE_LOOP's header.
10801 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10803 * gimplify.c (gimplify_function_tree): Fix building calls
10804 to __builtin_return_address.
10806 2011-03-07 Alan Modra <amodra@gmail.com>
10808 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10809 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10810 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10811 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10813 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10814 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10815 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10816 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10817 * config/rs6000/rs6000.c
10818 (rs6000_elf_end_indicate_exec_stack): Rename to..
10819 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10820 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10821 (rs6000_file_start): ..here.
10822 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10823 file scope variables.
10824 (call_ABI_of_interest): New function.
10825 (init_cumulative_args): Set above vars when function return value
10826 is a float, vector, or small struct.
10827 (rs6000_function_arg_advance_1): Likewise for function args.
10828 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10829 references float args.
10831 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10833 * doc/cfg.texi: Remove "See" before @ref.
10834 * doc/invoke.texi: Likewise.
10836 2011-03-05 Jason Merrill <jason@redhat.com>
10838 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10840 2011-03-05 Anthony Green <green@moxielogic.com>
10842 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10844 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10846 PR rtl-optimization/47899
10847 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10848 to flow_loop_nested_p when moving the loop upward.
10850 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10853 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10855 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10857 PR tree-optimization/47967
10858 * ipa-cp.c (build_const_val): Return NULL instead of creating
10859 VIEW_CONVERT_EXPR for mismatching sizes.
10860 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10861 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10862 give up on versioning.
10864 2011-03-05 Alan Modra <amodra@gmail.com>
10867 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10868 full cmodel medium/large lo_sum + high addresses.
10870 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10872 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10873 pool references in UNSPEC_LTREL_OFFSET.
10875 2011-03-04 Jan Hubicka <jh@suse.cz>
10878 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10879 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10880 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10882 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10883 cgraph_add_thunk): Add node pointers.
10884 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10885 associated to right node.
10886 (input_node): Update use of cgraph_same_body_alias
10887 and cgraph_add_thunk.
10889 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10891 * config/i386/i386.opt (mprefer-avx128): New flag.
10892 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10893 modes when the flag -mprefer-avx128 is on.
10895 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10897 * dwarf2out.c (compare_loc_operands): Fix address handling.
10899 2011-03-04 Alan Modra <amodra@gmail.com>
10901 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10903 2011-03-04 Richard Guenther <rguenther@suse.de>
10905 PR middle-end/47968
10906 * expmed.c (extract_bit_field_1): Prefer vector modes that
10907 vec_extract patterns can handle.
10909 2011-03-04 Richard Guenther <rguenther@suse.de>
10911 PR middle-end/47975
10912 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10914 2011-03-04 Richard Henderson <rth@redhat.com>
10916 * explow.c (emit_stack_save): Remove 'after' parameter.
10917 (emit_stack_restore): Likewise.
10918 * expr.h: Update to match.
10919 * builtins.c, calls.c, stmt.c: Likewise.
10920 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10921 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10922 * function.c (expand_function_end): Insert the emit_stack_save
10923 sequence before parm_birth_insn instead of after.
10925 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10927 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10928 (ssse3_pmaddubsw128): Ditto.
10929 (ssse3_pmaddubsw): Ditto.
10931 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10933 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10935 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10938 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10939 on TYPE_SIZE_UNIT if it is a DECL.
10942 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10943 first operand is not is_gimple_mem_ref_addr, try to fold it.
10944 If the operand still isn't is_gimple_mem_ref_addr, clear
10947 2011-03-03 Richard Guenther <rguenther@suse.de>
10949 PR middle-end/47283
10950 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10952 (refs_may_alias_p_1): For release branches return true if
10953 we are confused by our input.
10955 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10957 * config/s390/s390.c (s390_function_value): Rename to ...
10958 (s390_function_and_libcall_value): ... this.
10959 (s390_function_value): New function.
10960 (s390_libcall_value): New function.
10961 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10962 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10963 target macro definitions.
10964 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10966 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10968 * config/i386/freebsd64.h (CC1_SPEC): Define.
10969 * config/i386/linux64.h (CC1_SPEC): Define.
10970 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10972 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10974 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10976 * config/stormy16/stormy16.c: Include reload.h.
10977 (xstormy16_memory_move_cost): New function.
10978 (TARGET_MEMORY_MOVE_COST): Define.
10980 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10982 PR rtl-optimization/47925
10983 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10984 with side effects. Remove the more-specific check for volatile asms.
10986 2011-03-02 Alan Modra <amodra@gmail.com>
10989 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10990 toc relative addresses for valid offsets.
10992 2011-03-01 Richard Guenther <rguenther@suse.de>
10994 PR tree-optimization/47890
10995 * tree-vect-loop.c (get_initial_def_for_induction): Set
10996 related stmt properly.
10998 2011-03-01 Richard Guenther <rguenther@suse.de>
11001 * lto-streamer.c (lto_record_common_node): Also register
11002 the canonical type.
11004 2011-03-01 Richard Guenther <rguenther@suse.de>
11007 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11008 Do not stream DECL_ABSTRACT_ORIGIN.
11009 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11010 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11011 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11012 Do not stream DECL_ABSTRACT_ORIGIN.
11013 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11014 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11016 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11018 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11019 FUNCTION_VALUE_REGNO_P): Remove.
11020 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11021 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11022 Add 'outgoing' argument.
11023 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11025 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11026 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11028 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11031 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11032 (lookup_filename): Likewise.
11033 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11035 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11036 Jakub Jelinek <jakub@redhat.com>
11038 PR middle-end/47893
11039 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11040 (assign_stack_local_1): Change last argument type to int.
11041 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11042 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11043 don't record padding space into frame_space_list nor use those areas.
11044 (assign_stack_local): Adjust caller.
11045 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11046 of assign_stack_local, pass 0 as last argument.
11047 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11050 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11053 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11054 Use target address_mode and pointer_mode hooks instead of hardcoded
11055 Pmode and ptr_mode. Handle some simple cases of extending if
11056 POINTERS_EXTEND_UNSIGNED < 0.
11057 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11058 Call convert_debug_memory_address.
11059 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11060 convert_debug_memory_address.
11062 PR middle-end/46790
11063 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11064 * configure: Regenerated.
11065 * config.in: Regenerated.
11066 * varasm.c (default_function_section): Return NULL
11067 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11069 2011-02-28 Martin Jambor <mjambor@suse.cz>
11071 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11072 the description to match the printed values.
11074 2011-02-28 Richard Guenther <rguenther@suse.de>
11076 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11077 of the copied scope tree.
11079 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11081 * doc/extend.texi (Function Attributes): Avoid deeply (and
11082 wrongly) nested tables.
11084 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11086 PR middle-end/47903
11087 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11088 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11089 r isn't op0 nor op1.
11091 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11093 * config/avr/avr.md: Remove magic comment for emacs.
11095 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11098 * config/avr/avr.c (avr_option_override): Use error on bad options.
11099 (avr_help): New function.
11100 (TARGET_HELP): Define.
11102 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11105 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11106 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11108 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11110 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11111 (ARM Options): Ditto.
11112 (i386 and x86-64 Options): Ditto.
11113 (RX Options): Ditto.
11114 (SPARC Options): Ditto.
11116 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11118 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11119 FreeBSD 6 and later. Generally use cpu generic.
11121 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11123 * doc/cpp.texi: Update copyright years.
11125 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11128 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11130 2011-02-25 Jon Beniston <jon@beniston.com>
11133 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11134 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11135 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11136 (lm32_block_move_inline): Add type cast to remove warning.
11137 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11138 (gen_int_relational): Move declarations to start of function.
11140 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11142 PR tree-optimization/45470
11143 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11144 can throw internally only.
11145 * tree-vect-stmts.c (vectorizable_call): Likewise.
11147 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11149 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11150 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11151 * config/stormy16/stormy16-protos.h
11152 (xstormy16_preferred_reload_class): Remove.
11153 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11154 static. Change 'rclass' argument and return type to reg_class_t.
11155 (TARGET_PREFERRED_RELOAD_CLASS,
11156 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11158 2011-02-24 Richard Guenther <rguenther@suse.de>
11160 * lto-streamer-in.c (input_bb): Do not find referenced vars
11161 in debug statements.
11163 2011-02-23 Jason Merrill <jason@redhat.com>
11165 * common.opt (fabi-version): Document v5 and v6.
11167 2011-02-23 Richard Guenther <rguenther@suse.de>
11169 PR tree-optimization/47849
11170 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11172 2011-02-23 Jie Zhang <jie@codesourcery.com>
11174 * opts-common.c (decode_cmdline_option): Print empty string
11175 argument as "" in decoded->orig_option_with_args_text.
11176 * gcc.c (execute): Print empty string argument as ""
11177 in the verbose output.
11178 (do_spec_1): Keep empty string argument.
11180 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11182 * config.gcc: Declare score-* and crx-* obsolete.
11184 2011-02-23 Jie Zhang <jie@codesourcery.com>
11186 PR rtl-optimization/47763
11187 * web.c (web_main): Ignore naked clobber when replacing register.
11189 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11191 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11194 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11197 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11199 2011-02-22 Mike Stump <mikestump@comcast.net>
11201 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11203 * configure: Regenerate.
11205 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11207 PR rtl-optimization/46002
11208 * ira-color.c (update_copy_costs): Change class intersection
11209 test to reg_class_contents[] test of 'hard_regno'.
11211 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11213 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11214 than Driver option.
11215 * config/hpux11.opt (mt): Likewise.
11216 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11217 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11218 * config/vax/elf.opt (mno-asm-pic): Likewise.
11219 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11221 2011-02-21 Mike Stump <mikestump@comcast.net>
11224 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11225 tree so we can get save the type.
11226 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11227 for CFString instead of trying to use past the end of the builtins.
11228 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11229 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11230 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11231 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11232 Rename to darwin_builtin_cfstring.
11233 (darwin_init_cfstring_builtins): Return the built type.
11235 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11238 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11239 (_mm256_insert_epi64): Use _mm_insert_epi64.
11241 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11243 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11244 * config/stormy16/stormy16-protos.h
11245 (xstormy16_mode_dependent_address_p): Remove.
11246 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11247 Make static. Change return type to bool. Change argument type to
11248 const_rtx. Remove dead code.
11249 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11251 2011-02-21 Richard Guenther <rguenther@suse.de>
11254 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11255 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11256 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11258 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11259 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11261 2011-02-20 Richard Guenther <rguenther@suse.de>
11264 * tree.c (free_lang_data_in_decl): Clean builtins from
11265 the TU decl BLOCK_VARS.
11267 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11271 * haifa-sched.c (fix_tick_ready): Skip tick computation
11274 2011-02-19 Richard Guenther <rguenther@suse.de>
11277 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11278 Remove lazy BLOCK_VARS streaming.
11279 (lto_input_ts_block_tree_pointers): Likewise.
11280 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11282 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11284 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11286 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11288 * config/i386/biarch32.h, config/i386/mach.h,
11289 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11291 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11294 * config/i386/i386.md (peephole2 for shift and plus): Use
11295 operands[1] original mode in the first insn.
11297 2011-02-18 Mike Stump <mikestump@comcast.net>
11299 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11301 2011-02-18 Jan Hubicka <jh@suse.cz>
11303 PR middle-end/47788
11304 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11305 to zero when the function is not inlinable at all.
11307 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11309 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11310 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11311 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11312 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11313 * config/pa/t-pa64: Likewise.
11314 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11316 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11319 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11321 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11324 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11326 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11328 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11329 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11330 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11331 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11332 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11333 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11334 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11335 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11336 m32r_legitimate_address_p): New functions.
11337 * config/m32r/constraints.md (constraint "S"): Don't use
11338 STORE_PREINC_PREDEC_P.
11339 (constraint "U"): Don't use LOAD_POSTINC_P.
11341 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11343 PR rtl-optimization/46178
11344 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11345 compute ira_hard_regno_cover_class[].
11347 2011-02-18 Richard Guenther <rguenther@suse.de>
11350 * lto-streamer.h (lto_global_var_decls): Declare.
11351 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11352 statics for global var processing.
11354 2011-02-18 Richard Guenther <rguenther@suse.de>
11356 PR tree-optimization/47737
11357 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11358 edge dominance check.
11360 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11363 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11364 avoid invalid rtx sharing.
11366 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11368 * doc/cpp.texi (Obsolete Features): Add background on the
11369 origin of assertions.
11371 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11373 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11375 * config/darwin.c (output_objc_section_asm_op): Added support for
11377 (is_objc_metadata): New.
11378 (darwin_objc2_section): New.
11379 (darwin_objc1_section): New.
11380 (machopic_select_section): Added support for ABI v1 and v2.
11381 (darwin_emit_objc_zeroed): New.
11382 (darwin_output_aligned_bss): Detect objc metadata and treat it
11384 (darwin_asm_output_aligned_decl_common): Same.
11385 (darwin_asm_output_aligned_decl_local): Same.
11386 * config/darwin-sections.def: Updated for ABI v1 and v2.
11387 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11388 compiling Objective-C code for the NeXT runtime, default to using
11389 ABI version 0 for 32-bit, and version 2 for 64-bit.
11391 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11393 * common.opt (optimize_fast): New Variable.
11394 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11395 instead of local variable ofast.
11397 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11399 * doc/invoke.texi (fobjc-abi-version): Documented.
11400 (fobjc-nilcheck): Documented.
11401 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11404 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11407 * common.opt (export-dynamic): New Driver option.
11408 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11410 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11412 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11414 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11415 Jan Hubicka <jh@suse.cz>
11419 * cfgexpand.c (account_used_vars_for_block): Remove.
11420 (estimated_stack_frame_size): Use referenced vars.
11421 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11422 that were referenced in the original function. Test src_fn
11423 rather than cfun. Drop redundant get_var_ann.
11424 (setup_one_parameter): Drop redundant get_var_ann.
11425 (declare_return_variable): Likewise.
11426 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11427 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11428 * ipa-inline.c (compute_inline_parameters): Do not compute
11429 disregard_inline_limits here.
11430 (compute_inlinable_for_current, pass_inlinable): New.
11431 (pass_inline_parameters): Require PROP_referenced_vars.
11432 * cgraphunit.c (cgraph_process_new_functions): Don't run
11433 compute_inline_parameters explicitly unless function is in SSA form.
11434 (cgraph_analyze_function): Set .disregard_inline_limits.
11435 * tree-sra.c (convert_callers): Compute inliner parameters
11436 only for functions already in SSA form.
11438 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11440 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11441 -mlittle-endian-data.
11443 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11445 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11446 -mno-fpu, not -fpu and -no-fpu.
11447 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11448 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11450 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11453 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11454 input reload with PLUS RTX.
11456 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11458 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11459 of InverseVar(MDMX).
11461 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11463 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11466 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11468 * config/mn10300/mn10300.opt (mno-crt0): New.
11470 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11472 * config/m68k/uclinux.opt (static-libc): New Driver option.
11474 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11476 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11478 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11480 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11481 %{muser-extend-enabled}.
11483 2011-02-16 Richard Guenther <rguenther@suse.de>
11485 PR tree-optimization/47738
11486 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11487 the TODO from tree_predictive_commoning.
11489 2011-02-15 Jeff Law <law@redhat.com>
11492 2011-01-25 Jeff Law <law@redhat.com>
11494 PR rtl-optimization/37273
11495 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11496 handle them like argument loads from stack slots. Do not double
11497 count memory for memory constants and argument loads from stack slots.
11499 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11501 PR middle-end/47725
11502 * combine.c (cant_combine_insn_p): Revert the last change.
11504 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11507 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11508 mode for vector constants. Remove code that checks for TImode.
11510 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11514 * cgraph.h (compute_inline_parameters): Return void.
11515 * ipa-inline.c (compute_inline_parameters): Adjust.
11517 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11521 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11523 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11524 * ipa-inline.c (compute_inline_parameters): Adjust.
11526 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11530 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11531 Adjust all users. Pass FN to...
11532 * tree-flow-inline.h (first_referenced_var): ... this. Add
11534 * ipa-struct-reorg.c: Adjust.
11535 * tree-dfa.c: Adjust.
11536 * tree-into-ssa.c: Adjust.
11537 * tree-sra.c: Adjust.
11538 * tree-ssa-alias.c: Adjust.
11539 * tree-ssa-live.c: Adjust.
11540 * tree-ssa.c: Adjust.
11541 * tree-ssanames.c: Adjust.
11542 * tree-tailcall.c: Adjust.
11544 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11548 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11549 Adjust all callers.
11550 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11551 * tree-flow-inline.h: Adjust.
11552 * gimple-pretty-print.c: Adjust.
11553 * tree-into-ssa.c: Adjust.
11554 * tree-ssa.c: Adjust.
11555 * cfgexpand.c: Adjust.
11557 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11559 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11560 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11561 (EXTRA_CONSTRAINT): Delete.
11562 * config/iq2000/constraints.md: New file.
11563 * config/iq2000/iq2000.md: Include it.
11564 (define_insn ""): Delete.
11565 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11566 unsupported constraint letters from patterns.
11567 (call_value, call_value_internal1): Likewise.
11568 (call_value_multiple_internal1): Likewise.
11570 2011-02-15 Nick Clifton <nickc@redhat.com>
11572 * config/mn10300/mn10300.c: Include tm-constrs.h.
11573 (struct liw_data): New data structure describing an LIW candidate
11575 (extract_bundle): Use struct liw_data. Allow small integer
11576 operands for some instructions.
11577 (check_liw_constraints): Use struct liw_data. Remove swapped
11578 parameter. Add comments describing the checks. Fix bug when
11579 assigning the source of liw1 to the source of liw2.
11580 (liw_candidate): Delete. Code moved into extract_bundle.
11581 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11583 * config/mn10300/predicates.md (liw_operand): New predicate.
11584 Allows registers and small integer constants.
11585 * config/mn10300/constraints.md (O): New constraint. Accetps
11586 integers in the range -8 to +7 inclusive.
11587 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11588 for moving a small integer into a register. Give this alternative
11590 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11591 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11592 using the J,K,L and M constraints,
11593 (liw): Remove SI mode on second operands to allow for HI and QI
11595 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11598 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11600 PR middle-end/47725
11601 * combine.c (cant_combine_insn_p): Check zero/sign extended
11604 2011-02-15 Richard Guenther <rguenther@suse.de>
11606 PR tree-optimization/47743
11607 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11608 for a non-type-compatible VN lookup bail out.
11610 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11612 * config/fr30/constraints.md: New file.
11613 * config/fr30/fr30.md: Include it.
11614 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11615 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11616 (EXTRA_CONSTRAINT): Delete.
11618 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11620 * config/frv/constraints.md: New file.
11621 * config/frv/predicates.md: Include it.
11622 * config/frv/frv.c (reg_class_from_letter): Delete.
11623 (frv_option_override): Don't initialize it.
11624 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11625 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11626 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11627 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11628 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11629 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11630 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11631 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11632 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11633 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11634 (REG_CLASS_FROM_CONSTRAINT): Delete.
11636 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11638 PR middle-end/47581
11639 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11640 if frame size is 0 in a leaf function.
11642 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11645 * config/alpha/host-osf.c: New file.
11646 * config/alpha/x-osf: New file.
11647 * config.host (alpha*-dec-osf*): Use it.
11649 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11651 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11652 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11653 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11654 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11656 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11658 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11660 * config/stormy16/constraints.md: New file.
11661 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11662 Use satisfies_constraint_Q and satisfies_constraint_R.
11663 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11665 (xstormy16_legitiamte_address_p): Declare.
11666 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11667 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11668 (EXTRA_CONSTRAINT): Delete.
11669 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11671 (xstormy16_extra_constraint_p): Delete.
11673 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11675 PR tree-optimization/46494
11676 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11677 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11678 (pass_rtl_loop_done): Add TODO_verify_flow.
11679 * fwprop.c (pass_rtl_fwprop): Likewise.
11680 * modulo-sched.c (pass_sms): Likewise.
11681 * tree-ssa-dom.c (pass_dominator): Likewise.
11682 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11683 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11684 (pass_tree_loop_done): Likewise.
11685 * tree-ssa-pre.c (execute_pre): Likewise.
11686 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11687 * tree-ssa-sink.c (pass_sink_code): Likewise.
11688 * tree-vrp.c (pass_vrp): Likewise.
11690 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11692 * config/v850/constraints.md: New file.
11693 * config/v850/v850.md: Include it.
11694 * config/v850/predicates.md (reg_or_0_operand): Use
11695 satisfies_constraint_G.
11696 (special_symbolref_operand): Use satisfies_constraint_K.
11697 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11698 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11699 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11700 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11701 (EXTRA_CONSTRAINT): Delete.
11702 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11703 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11704 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11706 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11709 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11712 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11714 * config/mcore/constraints.md: New file.
11715 * config/mcore/mcore.md: Include it.
11716 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11717 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11718 (REG_CLASS_FROM_LETTER): Delete.
11719 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11720 insn_const_int_ok_for_constraint.
11721 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11722 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11723 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11724 (EXTRA_CONSTRAINT): Delete.
11726 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11729 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11730 (IS_SIGHANDLER): Define.
11731 (sparc64_is_sighandler): New function, split off from
11732 sparc64_fallback_frame_state.
11733 (sparc_is_sighandler): New function, split off from
11734 sparc_fallback_frame_state.
11735 (sparc64_fallback_frame_state): Merge with ...
11736 (sparc_fallback_frame_state): ... this into ...
11737 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11738 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11739 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11740 stack instead of hardcoded offsets.
11742 2011-02-14 Andriy Gapon <avg@freebsd.org>
11745 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11747 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11749 * configure: Regenerate.
11751 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11754 * gcc.c (asm_options): Correct spec matching --target-help.
11756 2011-02-12 Martin Jambor <mjambor@suse.cz>
11758 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11759 to gimple call error.
11761 2011-02-12 Mike Stump <mikestump@comcast.net>
11763 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11764 comments in backslash regions.
11766 2011-02-12 Mike Stump <mikestump@comcast.net>
11767 Jakub Jelinek <jakub@redhat.com>
11768 Iain Sandoe <iains@gcc.gnu.org>
11771 * dwarf2out.c (output_cfa_loc): When required, apply the
11772 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11773 (output_loc_sequence): Likewise.
11774 (output_loc_operands_raw): Likewise.
11775 (output_loc_sequence_raw): Likewise.
11776 (output_cfa_loc): Likewise.
11777 (output_loc_list): Suppress register number adjustment when
11778 calling output_loc_sequence()
11779 (output_die): Likewise.
11781 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11783 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11785 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11786 xtensa_memory_move_cost): New functions.
11787 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11789 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11792 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11793 in the current directory.
11794 * configure: Rebuilt.
11796 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11798 * config/darwin.c (darwin_override_options): Add a hunk missed
11799 from the commit of r168571. Trim comment line lengths and
11800 correct indents of the preceding block.
11802 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11804 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11807 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11809 * common.opt (nostartfiles): New Driver option.
11811 2011-02-11 Xinliang David Li <davidxl@google.com>
11813 PR tree-optimization/47707
11814 * tree-chrec.c (convert_affine_scev): Keep type precision.
11816 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11818 PR tree-optimization/47420
11819 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11821 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11823 PR rtl-optimization/47614
11824 * rtl.h (check_for_inc_dec): Declare.
11825 * dse.c (check_for_inc_dec): Externalize...
11826 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11827 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11829 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11832 * gcc.c (main): Do not compile inputs if there were errors in
11834 * opts-common.c (read_cmdline_option): Check for wrong language
11835 after other error checks.
11837 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11839 * cgraph.c: Fix comment typos.
11840 * cgraph.h: Likewise.
11841 * cgraphunit.c: Likewise.
11842 * ipa-cp.c: Likewise.
11843 * ipa-inline.c: Likewise.
11844 * ipa-prop.c: Likewise.
11845 * ipa-pure-const.c: Likewise.
11846 * ipa-ref.c: Likewise.
11847 * ipa-reference.c: Likewise.
11849 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11852 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11854 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11857 * doc/sourcebuild.texi (Require Support): Document
11858 dg-require-ascii-locale.
11860 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11862 * doc/lto.texi (Write summary): Fix missing parentheses.
11864 2011-02-10 DJ Delorie <dj@redhat.com>
11866 * config/m32c/m32c.c (m32c_option_override): Disable
11867 -fcombine-stack-adjustments until flag value tracking and compare
11868 optimization can be rewritten.
11870 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11872 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11874 (PROCESSOR_DEFAULT64): Likewise.
11876 2011-02-10 Richard Henderson <rth@redhat.com>
11878 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11879 change from 2011-02-03.
11880 * config/rx/rx.c (flags_from_code): Likewise.
11881 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11882 is valid, n/pz otherwise.
11883 (rx_select_cc_mode): Return CCmode if Y is not zero.
11885 2011-02-10 Richard Guenther <rguenther@suse.de>
11887 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11889 2011-02-10 Richard Guenther <rguenther@suse.de>
11891 PR tree-optimization/47677
11892 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11894 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11897 * combine.c (make_compound_operation): Only change shifts into
11898 multiplication for SCALAR_INT_MODE_P.
11900 2011-02-10 Jie Zhang <jie@codesourcery.com>
11904 2011-02-05 Jie Zhang <jie@codesourcery.com>
11906 * web.c (entry_register): Don't clobber the number of the
11907 first uninitialized reference in used[].
11909 2011-02-09 Richard Guenther <rguenther@suse.de>
11911 PR tree-optimization/47664
11912 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11915 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11919 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11921 (PROCESSOR_DEFAULT64): Same.
11922 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11924 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11926 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11928 2011-02-09 Martin Jambor <mjambor@suse.cz>
11930 PR middle-end/45505
11931 * tree-sra.c (struct access): New flags grp_scalar_read and
11932 grp_scalar_write. Changed description of assignment read and write
11934 (dump_access): Dump new flags, reorder all of them.
11935 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11936 to detect multiple scalar reads.
11937 (analyze_access_subtree): Use the new scalar read write flags instead
11938 of the old flags. Adjusted comments.
11940 2011-02-08 DJ Delorie <dj@redhat.com>
11943 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11946 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11948 * config/m68k/uclinux.opt: New.
11949 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11951 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11953 * config/cris/elf.opt (sim): New Driver option.
11955 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11957 * config/xtensa/elf.opt: New.
11958 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11960 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11962 * config/vax/elf.opt: New.
11963 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11965 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11967 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11969 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11971 * config/gnu-user.opt: New.
11972 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11973 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11974 *-*-uclinux*): Use gnu-user.opt.
11976 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11978 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11979 * config/i386/gnu.h (CPP_SPEC): Likewise.
11981 2011-02-08 Ian Lance Taylor <iant@google.com>
11983 * common.opt (fcx-limited-range): Add SetByCombined flag.
11984 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11985 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11986 (fassociative-math, freciprocal-math): Likewise.
11987 (funsafe-math-optimizations): Likewise.
11988 * opth-gen.awk: Handle SetByCombined.
11989 * optc-gen.awk: Likewise.
11990 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11991 (set_unsafe_math_optimizations_flags): Likewise.
11992 * doc/options.texi (Option properties): Document SetByCombined.
11994 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11996 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11997 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11998 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11999 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12000 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12002 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12004 PR tree-optimization/46834
12005 PR tree-optimization/46994
12006 PR tree-optimization/46995
12007 * graphite-sese-to-poly.c (used_outside_reduction): New.
12008 (detect_commutative_reduction): Call used_outside_reduction.
12009 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12010 translate_scalar_reduction_to_array only when at least one
12011 loop-phi/close-phi tuple has been detected.
12013 2011-02-08 Richard Guenther <rguenther@suse.de>
12015 PR middle-end/47639
12016 * tree-vect-generic.c (expand_vector_operations_1): Update
12018 (expand_vector_operations): ... not here. Cleanup EH info
12019 and the CFG if required.
12021 2011-02-08 Richard Guenther <rguenther@suse.de>
12023 PR tree-optimization/47641
12024 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12025 require type compatibility.
12027 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12029 * gimple-low.c (lower_function_body): Don't remove the location of
12030 the return statement here.
12031 (lower_gimple_return): Do it here instead but only if the return
12032 statement is actually used twice.
12034 2011-02-08 Richard Guenther <rguenther@suse.de>
12036 PR tree-optimization/47632
12037 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12038 unused up_to_stmt parameter, return whether cfg-cleanup is
12039 necessary, remove EH info properly.
12040 (forward_propagate_into_gimple_cond): Adjust caller.
12041 (forward_propagate_into_cond): Likewise.
12042 (forward_propagate_comparison): Likewise.
12043 (tree_ssa_forward_propagate_single_use_vars): Make
12044 forward_propagate_comparison case similar to the two others.
12046 2011-02-08 Nick Clifton <nickc@redhat.com>
12048 * config/mn10300/mn10300.opt (mliw): New command line option.
12049 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12050 (liw_bundling): New automaton.
12051 (liw): New attribute.
12052 (liw_op): New attribute.
12053 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12054 (movsi_internal): Add LIW attributes.
12055 (andsi3): Likewise.
12056 (iorsi3): Likewise.
12057 (xorsi3): Likewise.
12058 (addsi3): Separate register and immediate alternatives.
12059 Add LIW attributes.
12060 (subsi3): Likewise.
12062 (aslsi3): Likewise.
12063 (lshrsi3): Likewise.
12064 (ashrsi3): Likewise.
12065 (liw): New pattern.
12066 * config/mn10300/mn10300.c (liw_op_names): New
12067 (mn10300_print_operand): Handle 'W' operand descriptor.
12068 (extract_bundle): New function.
12069 (check_liw_constraints): New function.
12070 (liw_candidate): New function.
12071 (mn10300_bundle_liw): New function.
12072 (mn10300_reorg): New function.
12073 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12074 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12075 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12076 __LIW__ or __NO_LIW__.
12077 * doc/invoke.texi: Describe the -mliw command line option.
12079 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12081 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12082 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12083 pthread_mutex_unlock): Remove.
12084 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12085 * config/pa/t-pa64: Likewise.
12086 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12087 shared libc if not linking against libpthread.
12088 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12090 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12093 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12094 on 10.6 and later to ensure that we always use the unwinder from
12095 the system. Only add -no_compact_unwind when tarteting darwin
12098 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12101 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12102 (vec_interleave_lowv2sf): Ditto.
12103 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12104 (vec_extract_oddv2sf): Ditto.
12106 2011-02-07 Mike Stump <mikestump@comcast.net>
12109 Add __ieee_divdc3 entry point.
12110 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12112 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12113 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12114 * config/darwin.c (darwin_rename_builtins): Add.
12115 * config/darwin-protos.h (darwin_rename_builtins): Add.
12117 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12120 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12123 2011-02-07 Mike Stump <mikestump@comcast.net>
12125 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12127 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12130 * config/avr/libgcc.S (exit): Move .endfunc
12132 2011-02-07 Richard Guenther <rguenther@suse.de>
12134 PR tree-optimization/47615
12135 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12136 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12137 (run_scc_vn): Initialize it.
12138 (visit_reference_op_load): Use it.
12139 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12141 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12143 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12144 DImode trapping arithmetic libfuncs.
12146 2011-02-07 Richard Guenther <rguenther@suse.de>
12148 PR tree-optimization/47621
12149 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12151 (execute_update_addresses_taken): ... here. Make it more
12152 conservative in what we accept.
12154 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12156 * config/sparc/freebsd.h (ASM_SPEC): Define.
12157 * config/sparc/vxworks.h (ASM_SPEC): Define.
12159 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12161 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12163 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12165 * doc/invoke.texi: Remove reference to compiler internals from
12166 user documentation.
12168 * reg-notes.def: Remove REG_VALUE_PROFILE.
12169 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12171 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12173 PR middle-end/47610
12174 * varasm.c (default_section_type_flags): If decl is NULL,
12175 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12177 2011-02-05 Jie Zhang <jie@codesourcery.com>
12180 * web.c (entry_register): Don't clobber the number of the
12181 first uninitialized reference in used[].
12183 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12185 PR tree-optimization/46194
12186 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12187 (build_classic_dist_vector_1): Do not represent classic distance
12188 vectors when the access functions are variating in different loops.
12190 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12192 * config/mips/iris6.opt: New.
12193 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12195 2011-02-04 Richard Henderson <rth@redhat.com>
12196 Steve Ellcey <sje@cup.hp.com>
12199 * config/ia64/predicates.md (mux1_brcst_element): New.
12200 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12201 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12202 (ia64_unpack_sign): New.
12203 (ia64_expand_unpack): Rewrite using new routines.
12204 (ia64_expand_widen_sum): Ditto.
12205 (ia64_expand_dot_prod_v8qi): Ditto.
12206 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12207 routines, add endian check.
12208 (pmpy2_even): Rename from pmpy2_r, add endian check.
12209 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12210 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12211 (vec_widen_smult_hi_v4hi): Ditto.
12212 (vec_widen_umult_lo_v4hi): Ditto.
12213 (vec_widen_umult_hi_v4hi): Ditto.
12214 (mulv2si3): Change endian checks.
12215 (sdot_prodv4hi): Rewrite with new calls.
12216 (udot_prodv4hi): New.
12217 (vec_pack_ssat_v4hi): Add endian check.
12218 (vec_pack_usat_v4hi): Ditto.
12219 (vec_pack_ssat_v2si): Ditto.
12220 (max1_even): Rename from max1_r, add endian check.
12221 (max1_odd): Rename from max1_l, add endian check.
12222 (*mux1_rev): Format change.
12223 (*mux1_mix): Ditto.
12224 (*mux1_shuf): Ditto.
12225 (*mux1_alt): Ditto.
12226 (*mux1_brcst_v8qi): Use new predicate.
12227 (vec_extract_evenv8qi): Remove endian check.
12228 (vec_extract_oddv8qi): Ditto.
12229 (vec_interleave_lowv4hi): Format change.
12230 (vec_interleave_highv4hi): Ditto.
12231 (mix2_even): Rename from mix2_r, add endian check.
12232 (mix2_odd): Rename from mux2_l, add endian check.
12233 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12234 (vec_extract_evenodd_helper): Format change.
12235 (vec_extract_evenv4hi): Remove endian check.
12236 (vec_extract_oddv4hi): Remove endian check.
12237 (vec_interleave_lowv2si): Format change.
12238 (vec_interleave_highv2si): Format change.
12239 (vec_initv2si): Remove endian check.
12240 (vecinit_v2si): Add endian check.
12241 (reduc_splus_v2sf): Add endian check.
12242 (reduc_smax_v2sf): Ditto.
12243 (reduc_smin_v2sf): Ditto.
12244 (vec_initv2sf): Remove endian check.
12245 (fpack): Add endian check.
12246 (fswap): Add endian check.
12247 (vec_interleave_highv2sf): Add endian check.
12248 (vec_interleave_lowv2sf): Add endian check.
12249 (fmix_lr): Add endian check.
12250 (vec_setv2sf): Format change.
12251 (*vec_extractv2sf_0_be): Use shift to extract operand.
12252 (*vec_extractv2sf_1_be): New.
12253 (vec_pack_trunc_v4hi): Add endian check.
12254 (vec_pack_trunc_v2si): Format change.
12256 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12258 PR inline-asm/23200
12259 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12260 do bb, locus and block comparison and disallow loads if it is not set.
12261 (stmt_is_replaceable_p): New function.
12262 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12264 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12265 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12267 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12269 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12271 * config/rs6000/xilinx.opt: New.
12272 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12274 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12276 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12278 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12280 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12281 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12282 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12283 secondary_reload_info, xtensa_secondary_reload): Remove.
12284 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12285 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12286 (xtensa_preferred_reload_class): Make static. Change return and
12287 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12288 Use CONST_DOUBLE_P predicate.
12289 (xtensa_preferred_output_reload_class): New function.
12290 (xtensa_secondary_reload): Make static.
12292 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12294 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12295 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12296 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12298 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12300 PR middle-end/31490
12301 * output.h (SECTION_RELRO): Define.
12302 (SECTION_MACH_DEP): Adjust.
12303 (get_variable_section): New prototype.
12304 * varpool.c (varpool_finalize_named_section_flags): New function.
12305 (varpool_assemble_pending_decls): Call it.
12306 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12307 * cgraphunit.c (cgraph_output_in_order): Call
12308 varpool_finalize_named_section_flags.
12309 * varasm.c (get_section): Allow section flags conflicts between
12310 relro and read-only sections if the section hasn't been declared yet.
12311 Set SECTION_OVERRIDE after diagnosing section type conflict.
12312 (get_variable_section): No longer static.
12313 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12314 readonly sections that need relocations.
12315 (decl_readonly_section_1): New function.
12316 (decl_readonly_section): Use it.
12319 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12320 Steve Ellcey <sje@cup.hp.com>
12322 PR middle-end/31490
12323 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12324 if section attribute used.
12326 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12328 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12329 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12330 (darwin_init_sections): Remove assertion.
12332 2011-02-03 Nick Clifton <nickc@redhat.com>
12334 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12336 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12337 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12338 instead of "n" and "pz".
12339 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12342 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12345 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12346 fma, expand FMA_EXPR as fma{,f,l} call.
12349 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12350 copy them into a unsigned char variable and pass address of it to
12351 lto_output_data_stream.
12354 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12355 around backend_init_target and lang_dependent_init_target calls.
12356 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12357 (verify_cgraph_node): Don't call set_cfun here. Use
12358 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12359 Set error_found for incorrectly represented calls to thunks.
12361 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12364 PR rtl-optimization/43494
12365 * rtl.h (for_each_inc_dec_fn): New type.
12366 (for_each_inc_dec): Declare.
12367 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12368 (for_each_inc_dec_find_inc_dec): New fn.
12369 (for_each_inc_dec_find_mem): New fn.
12370 (for_each_inc_dec): New fn.
12371 * dse.c (struct insn_size): Remove.
12372 (replace_inc_dec, replace_inc_dec_mem): Remove.
12373 (emit_inc_dec_insn_before): New fn.
12374 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12375 (canon_address): Pass mem modes to cselib_lookup.
12376 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12377 (cselib_lookup_from_insn): Likewise.
12378 (cselib_subst_to_values): Likewise.
12379 * cselib.c (find_slot_memmode): New var.
12380 (cselib_find_slot): New fn. Use it instead of
12381 htab_find_slot_with_hash everywhere.
12382 (entry_and_rtx_equal_p): Use find_slot_memmode.
12383 (autoinc_split): New fn.
12384 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12385 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12386 Deal with autoinc. Special-case recursion into MEMs.
12387 (cselib_hash_rtx): Likewise.
12388 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12389 address and MEM modes.
12390 (cselib_subst_to_values): Add memmode, pass it on.
12392 (cselib_lookup): Add memmode argument, pass it on.
12393 (cselib_lookup_from_insn): Add memmode.
12394 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12395 (struct cselib_record_autoinc_data): New.
12396 (cselib_record_autoinc_cb): New fn.
12397 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12398 mode to cselib_lookup. Reset autoinced REGs here instead of...
12399 (cselib_process_insn): ... here.
12400 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12402 (add_uses): Likewise, also to cselib_subst_to_values.
12403 (add_stores): Likewise.
12404 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12405 cselib_subst_to_values.
12406 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12407 * gcse.c (do_local_cprop): Adjusted.
12408 * postreload.c (reload_cse_simplify_set): Adjusted.
12409 (reload_cse_simplify_operands): Adjusted.
12410 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12412 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12414 PR tree-optimization/45122
12415 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12416 unsafe assumptions when there's more than one loop exit.
12418 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12421 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12422 Document using vector double with the load/store builtins, and
12423 that the load/store builtins always use Altivec instructions.
12425 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12426 to use altivec memory instructions, even on VSX.
12427 (vector_altivec_store_<mode>): Ditto.
12429 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12432 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12433 V2DF, V2DI support to load/store overloaded builtins.
12435 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12436 altivec load/store builtins for V2DF/V2DI types.
12438 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12439 set avoid indexed addresses on power6 if -maltivec.
12440 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12441 vector_altivec_load/vector_altivec_store builtins.
12442 (altivec_expand_st_builtin): Ditto.
12443 (altivec_expand_builtin): Add VSX memory builtins.
12444 (rs6000_init_builtins): Add V2DI types to internal types.
12445 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12446 load/store builtins.
12447 (rs6000_address_for_altivec): Insure memory address is appropriate
12450 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12451 vec_vsx_ld and vec_vsx_st.
12452 (vsx_store_<mode>): Ditto.
12454 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12455 variables to hold long long types for VSX vector memory builtins.
12456 (RS6000_BTI_unsigned_long_long): Ditto.
12457 (long_long_integer_type_internal_node): Ditti.
12458 (long_long_unsigned_type_internal_node): Ditti.
12460 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12461 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12462 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12464 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12466 (vec_vsx_st): Ditto.
12468 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12470 * config/pa/pa-hpux10.opt: New.
12471 * config/hpux11.opt (pthread): New Driver option.
12472 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12473 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12475 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12477 * config/ia64/vms.opt: New.
12478 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12480 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12483 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12484 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12485 generator functions.
12486 (vsx_floatuns<VSi><mode>2): Ditto.
12487 (vsx_fix_trunc<mode><VSi>2): Ditto.
12488 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12490 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12492 * config/i386/djgpp.opt (posix): New Driver option.
12494 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12496 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12497 Move to the unsupported targets list.
12499 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12501 PR rtl-optimization/47525
12502 * df-scan.c: Update copyright years.
12503 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12504 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12506 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12508 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12509 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12510 (ASM_OUTPUT_ASCII): Remove.
12511 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12513 2011-02-02 Jeff Law <law@redhat.com>
12515 PR middle-end/47543
12516 * reload.c (find_reloads_address): Handle reg+d address where both
12517 components are invalid by reloading the entire address.
12519 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12520 Richard Guenther <rguenther@suse.de>
12522 PR tree-optimization/40979
12524 * passes.c (init_optimization_passes): After LIM call copy_prop
12525 and DCE to clean up.
12526 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12528 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12530 PR tree-optimization/47576
12531 PR tree-optimization/47555
12532 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12533 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12534 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12535 * tree-scalar-evolution.c (follow_ssa_edge): Use
12536 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12538 2011-02-02 Richard Guenther <rguenther@suse.de>
12540 PR tree-optimization/47566
12541 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12543 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12547 * tree-inline.c (declare_return_variable): Remove unused caller
12552 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12553 * cfgexpand.c (account_used_vars_for_block): Use them.
12554 * tree-nrv.c (tree_nrv): Likewise.
12555 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12556 (dump_scope_block): Likewise.
12557 (remove_unused_locals): Likewise.
12561 * tree-inline.c (declare_return_variable): Add result decl to
12562 local decls only once.
12563 * gimple-low.c (record_vars_into): Mark newly-created variables
12566 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12572 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12574 (no_real_insns_p, schedule_block, set_priorities): Drop special
12575 treatment of boundary debug insns.
12576 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12577 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12578 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12579 (BOUNDARY_DEBUG_INSN_P): Likewise.
12580 (SCHEDULE_DEBUG_INSN_P): Likewise.
12581 * sched-rgn.c (init_ready_list): Drop special treatment of
12582 boundary debug insns.
12583 * final.c (rest_of_clean_state): Clear notes' BB.
12585 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12587 * config/openbsd.opt (assert=): New Driver option.
12589 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12591 * config/i386/nto.opt: New.
12592 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12594 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12596 * config/i386/netware.opt: New.
12597 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12599 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12601 * config/interix.opt (posix): New Driver option.
12603 2011-02-01 DJ Delorie <dj@redhat.com>
12605 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12607 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12610 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12612 PR tree-optimization/47561
12613 * toplev.c (process_options): Print the Graphite flags. Add
12614 flag_loop_flatten to the list of options requiring Graphite.
12616 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12618 * config/i386/cygming.opt (posix): New Driver option.
12620 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12622 * config/arm/vxworks.opt: New.
12623 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12625 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12627 * config/alpha/elf.opt: New.
12628 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12629 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12631 2011-02-01 Richard Guenther <rguenther@suse.de>
12633 PR tree-optimization/47559
12634 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12635 store-motion on references that can throw.
12637 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12639 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12640 * tree-pass.h (TDF_CSELIB): New macro.
12641 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12642 cselib_lookup): Check for it rather than for TDF_DETAILS.
12644 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12647 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12648 is HOST_BIT_BUCKET.
12650 * opts.c (finish_options): Don't add x_aux_base_name if it is
12653 2011-02-01 Richard Guenther <rguenther@suse.de>
12655 PR tree-optimization/47555
12657 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12659 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12661 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12664 * config/lm32/t-lm32: Add multilib for all CPU options.
12666 2011-02-01 Richard Guenther <rguenther@suse.de>
12668 PR tree-optimization/47541
12669 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12670 sure to have a field at offset zero.
12672 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12674 * config/arc/arc.opt (EB, EL): New Driver options.
12676 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12678 * config/alpha/osf5.opt: New.
12679 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12681 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12683 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12685 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12687 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12688 -floop-interchange.
12689 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12690 is an alias of -floop-interchange and that it requires the
12691 Graphite infrastructure.
12692 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12693 flag_loop_interchange based on the value of flag_tree_loop_linear.
12695 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12696 Richard Guenther <rguenther@suse.de>
12698 PR tree-optimization/47538
12699 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12700 type instead of r1type, except for comparisons. For right
12701 shifts and comparisons punt if there are mismatches in
12702 sizetype vs. non-sizetype types.
12704 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12706 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12709 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12711 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12713 * configure: Regenerate.
12715 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12717 * configure.ac (gcc_cv_ld_static_option): Define.
12718 (gcc_cv_ld_dynamic_option): Define.
12719 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12721 (HAVE_LD_STATIC_DYNAMIC): Update message.
12722 (LD_STATIC_OPTION): Define.
12723 (LD_DYNAMIC_OPTION): Define.
12724 * configure: Regenerate.
12725 * config.in: Regenerate.
12726 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12727 HAVE_LD_STATIC_DYNAMIC]: Use them.
12729 2011-01-31 Nick Clifton <nickc@redhat.com>
12731 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12732 registers inside interrupt handlers if the handler is not a leaf
12735 2011-01-31 Nick Clifton <nickc@redhat.com>
12737 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12738 reg_renumber returning an INVALID_REGNUM.
12740 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12743 * doc/install.texi: Document host options discarded when cross
12744 configuring target libraries.
12746 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12749 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12752 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12754 (no_real_insns_p, schedule_block, set_priorities): Drop special
12755 treatment of boundary debug insns.
12756 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12757 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12758 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12759 (BOUNDARY_DEBUG_INSN_P): Likewise.
12760 (SCHEDULE_DEBUG_INSN_P): Likewise.
12761 * sched-rgn.c (init_ready_list): Drop special treatment of
12762 boundary debug insns.
12763 * final.c (rest_of_clean-state): Clear notes' BB.
12765 2011-01-31 Alan Modra <amodra@gmail.com>
12767 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12768 toc relative expressions as we do in print_operand_address.
12770 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12772 * doc/extend.texi: Follow spelling conventions.
12773 * doc/invoke.texi: Fix a typo.
12775 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12777 * config/hpux11.opt: New.
12778 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12779 ia64*-*-hpux*): Use hpux11.opt.
12781 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12783 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12786 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12788 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12791 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12793 * doc/install.texi (Binaries): Remove outdated reference for
12794 Motorola 68HC11/68HC12 downloads.
12796 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12798 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12801 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12804 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12807 2011-01-28 Ahmad Sharif <asharif@google.com>
12809 * value-prof.c (check_counter): Corrected error message.
12811 2011-01-29 Jie Zhang <jie@codesourcery.com>
12813 * config/arm/arm.c (arm_legitimize_reload_address): New.
12814 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12815 arm_legitimize_reload_address.
12816 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12818 2011-01-28 Ian Lance Taylor <iant@google.com>
12820 * godump.c (go_define): Ignore macros whose definitions include
12821 two adjacent operands.
12823 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12826 * varasm.c (force_const_mem): Store copy of x in desc->constant
12827 instead of x itself.
12828 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12829 itself into REG_EQUAL note.
12831 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12833 * config/freebsd.opt (posix, rdynamic): New Driver options.
12835 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12837 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12838 -Bstatic/-Bdynamic.
12839 * configure: Regenerate.
12841 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12843 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12844 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12846 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12848 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12849 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12850 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12851 (s390_preferred_reload_class): Make static. Change return and
12852 'rclass' argument type to reg_class_t.
12854 2011-01-27 Jan Hubicka <jh@suse.cz>
12856 PR middle-end/46949
12857 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12858 (process_function_and_variable_attributes): Check defined weakrefs.
12860 2011-01-27 Martin Jambor <mjambor@suse.cz>
12862 PR tree-optimization/47228
12863 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12864 build_ref_for_offset.
12866 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12868 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12870 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12872 PR rtl-optimization/46856
12873 * postreload.c (reload_combine_recognize_const_pattern): Do not
12874 separate cc0 setter and user on cc0 targets.
12876 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12879 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12880 passed a VOID_TYPE expression, immediately emit an error and
12881 return error_mark_node.
12883 2011-01-26 Jeff Law <law@redhat.com>
12885 PR rtl-optimization/47464
12886 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12887 rather than may_trap_p as needed.
12889 2011-01-26 DJ Delorie <dj@redhat.com>
12891 PR rtl-optimization/46878
12892 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12893 setter/user dependency as well.
12895 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12897 PR rtl-optimization/44469
12898 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12899 after removing trivially dead basic blocks.
12901 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12903 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12904 * config/frv/frv.h (LINK_SPEC): Likewise.
12905 * config/i386/netware.h (LINK_SPEC): Likewise.
12906 * config/m68k/linux.h (ASM_SPEC): Likewise.
12907 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12908 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12909 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12910 * config/sparc/linux.h (ASM_SPEC): Likewise.
12911 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12912 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12914 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12916 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12917 * config/frv/frv.h (ASM_SPEC): Likewise.
12918 * config/m68k/linux.h (ASM_SPEC): Likewise.
12919 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12920 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12921 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12922 * config/sparc/linux.h (ASM_SPEC): Likewise.
12923 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12924 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12926 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12928 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12929 * config/frv/frv.h (LINK_SPEC): Likewise.
12930 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12932 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12934 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12935 * config/frv/frv.h (ASM_SPEC): Likewise.
12936 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12937 * config/m68k/linux.h (ASM_SPEC): Likewise.
12938 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12939 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12940 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12941 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12942 * config/sparc/linux.h (ASM_SPEC): Likewise.
12943 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12944 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12945 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12947 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12950 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12952 (vec_extract_evenodd_help): Ditto.
12953 (vec_extract_evenv4hi): Ditto.
12954 (vec_extract_oddv4hi): Ditto.
12955 (vec_interleave_lowv2si): Ditto.
12956 (vec_interleave_highv2si): Ditto.
12957 (vec_extract_evenv2si): Ditto.
12958 (vec_extract_oddv2si: Ditto.
12959 (vec_pack_trunc_v2si): Ditto.
12961 2011-01-22 Jan Hubicka <jh@suse.cz>
12964 * cgraph.h (cgraph_local_info): New field can_change_signature.
12965 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12966 signature can change.
12967 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12969 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12970 (cgraph_function_versioning): We can not change signature of functions
12971 that don't allow that.
12972 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12973 (lto_input_node): Likewise.
12974 * ipa-inline.c (compute_inline_parameters): Compute
12975 local.can_change_signature.
12976 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12977 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12978 functions that can not change signature.
12979 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12980 init_cumulative_args): Do not use local calling conventions
12981 for functions that can not change signature.
12983 2011-01-22 Jan Hubicka <jh@suse.cz>
12985 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12987 2011-01-26 Richard Guenther <rguenther@suse.de>
12989 PR tree-optimization/47190
12990 * cgraphunit.c (process_common_attributes): New function.
12991 (process_function_and_variable_attributes): Use it.
12993 2011-01-26 Richard Guenther <rguenther@suse.de>
12996 * cgraphbuild.c (record_eh_tables): Record reference to personality
12999 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13002 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13003 non-debug insns from moving up.
13005 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13008 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13009 t-dlldir{,-x} fragment for build and add it to tmake_file.
13010 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13011 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13012 * config/i386/t-dlldir: New file.
13013 (SHLIB_DLLDIR): Define.
13014 * config/i386/t-dlldir-x: New file.
13015 (SHLIB_DLLDIR): Define.
13016 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13017 (SHLIB_INSTALL): Use it.
13019 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13022 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13023 lower bound of the allowed Thumb-2 coprocessor load/store
13024 index range to -256. Add explaining comment.
13026 2011-01-25 Ian Lance Taylor <iant@google.com>
13028 * godump.c (go_define): Improve lexing of macro expansion to only
13029 accept expressions which match Go spec.
13031 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13034 * tree.c (handle_dll_attribute): Handle it.
13035 * doc/extend.texi (@item dllexport): Mention it.
13036 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13038 2011-01-25 Ian Lance Taylor <iant@google.com>
13040 PR tree-optimization/26854
13041 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13042 (decl_jump_unsafe): Move higher in file, with no other change.
13043 (bind): Set has_jump_unsafe_decl if appropriate.
13044 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13045 (check_earlier_gotos): Likewise.
13046 (c_check_switch_jump_warnings): Likewise.
13048 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13050 * doc/invoke.texi (Warning Options): Add missing hyphen.
13051 (-fprofile-dir): Minor grammatical fixes.
13052 (-fbranch-probabilities): Likewise.
13054 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13058 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13060 (no_real_insns_p, schedule_block, set_priorities): Drop special
13061 treatment of boundary debug insns.
13062 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13063 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13064 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13065 (BOUNDARY_DEBUG_INSN_P): Likewise.
13066 (SCHEDULE_DEBUG_INSN_P): Likewise.
13067 * sched-rgn.c (init_ready_list): Drop special treatment of
13068 boundary debug insns.
13069 * final.c (rest_of_clean-state): Clear notes' BB.
13071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13073 * Makefile.in (LAMBDA_H): Removed.
13074 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13075 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13076 lambda-trans.o, and tree-loop-linear.o.
13077 (lto-symtab.o): Remove dependence on LAMBDA_H.
13078 (tree-loop-linear.o): Remove rule.
13079 (lambda-mat.o): Same.
13080 (lambda-trans.o): Same.
13081 (lambda-code.o): Same.
13082 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13083 (tree-vect-slp.o): Same.
13084 * hwint.h (gcd): Moved here.
13085 (least_common_multiple): Same.
13086 * lambda-code.c: Removed.
13087 * lambda-mat.c: Removed.
13088 * lambda-trans.c: Removed.
13089 * lambda.h: Removed.
13090 * tree-loop-linear.c: Removed.
13091 * lto-symtab.c: Do not include lambda.h.
13092 * omega.c (gcd): Removed.
13093 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13094 * tree-data-ref.c (print_lambda_vector): Moved here.
13095 (lambda_vector_copy): Same.
13096 (lambda_matrix_copy): Same.
13097 (lambda_matrix_id): Same.
13098 (lambda_vector_first_nz): Same.
13099 (lambda_matrix_row_add): Same.
13100 (lambda_matrix_row_exchange): Same.
13101 (lambda_vector_mult_const): Same.
13102 (lambda_vector_negate): Same.
13103 (lambda_matrix_row_negate): Same.
13104 (lambda_vector_equal): Same.
13105 (lambda_matrix_right_hermite): Same.
13106 * tree-data-ref.h: Do not include lambda.h.
13107 (lambda_vector): Moved here.
13108 (lambda_matrix): Same.
13109 (dependence_level): Same.
13110 (lambda_transform_legal_p): Removed declaration.
13111 (lambda_collect_parameters): Same.
13112 (lambda_compute_access_matrices): Same.
13113 (lambda_vector_gcd): Same.
13114 (lambda_vector_new): Same.
13115 (lambda_vector_clear): Same.
13116 (lambda_vector_lexico_pos): Same.
13117 (lambda_vector_zerop): Same.
13118 (lambda_matrix_new): Same.
13119 * tree-flow.h (least_common_multiple): Removed declaration.
13120 * tree-parloops.c (lambda_trans_matrix): Moved here.
13121 (LTM_MATRIX): Same.
13122 (LTM_ROWSIZE): Same.
13123 (LTM_COLSIZE): Same.
13124 (LTM_DENOMINATOR): Same.
13125 (lambda_trans_matrix_new): Same.
13126 (lambda_matrix_vector_mult): Same.
13127 (lambda_transform_legal_p): Same.
13128 * tree-pass.h (pass_linear_transform): Removed declaration.
13129 * tree-ssa-loop.c (tree_linear_transform): Removed.
13130 (gate_tree_linear_transform): Removed.
13131 (pass_linear_transform): Removed.
13132 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13133 flag_loop_interchange.
13135 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13137 PR tree-optimization/47265
13138 PR tree-optimization/47443
13139 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13140 if name still has some uses.
13142 2011-01-25 Martin Jambor <mjambor@suse.cz>
13144 PR tree-optimization/47382
13145 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13146 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13148 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13150 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13151 sjlj_except_unwind_info.
13153 2011-01-25 Richard Guenther <rguenther@suse.de>
13155 PR tree-optimization/47426
13156 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13157 visible functions results escape.
13159 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13162 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13163 (arm_get_frame_offsets): Use it.
13165 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13166 Jakub Jelinek <jakub@redhat.com>
13168 PR tree-optimization/47271
13169 * tree-if-conv.c (bb_postdominates_preds): New.
13170 (if_convertible_bb_p): Call bb_postdominates_preds.
13171 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13172 (predicate_scalar_phi): Call bb_postdominates_preds.
13174 2011-01-25 Nick Clifton <nickc@redhat.com>
13176 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13177 * config/rx/rx.c (rx_function_value): Likewise.
13178 (rx_promote_function_mode): Likewise.
13179 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13180 in order to make it legitimate.
13181 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13182 make sure that the first operand is the same as the result register.
13183 (addsi3_unspec): Delete.
13184 (subdi3): Do not accept immediate operands.
13185 (subdi3_internal): Likewise.
13187 2011-01-25 Jeff Law <law@redhat.com>
13189 PR rtl-optimization/37273
13190 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13191 handle them like argument loads from stack slots. Do not double
13192 count memory for memory constants and argument loads from stack slots.
13194 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13196 PR tree-optimization/47427
13197 PR tree-optimization/47428
13198 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13199 coalesce if the new root var would be TREE_READONLY.
13201 2011-01-25 Richard Guenther <rguenther@suse.de>
13203 PR middle-end/47414
13204 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13205 correct type for TBAA.
13207 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13209 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13210 (close_phi_written_to_memory): Call for_each_index with
13211 dr_indices_valid_in_loop.
13213 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13215 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13216 when it is initialized.
13218 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13220 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13221 call to graphite_find_data_references_in_stmt.
13222 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13223 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13224 call to graphite_find_data_references_in_stmt.
13225 (analyze_drs_in_stmts): Same.
13226 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13227 in which the scalar analysis of indices is performed.
13228 (create_data_ref): Same. Update call to dr_analyze_indices.
13229 (find_data_references_in_stmt): Update call to create_data_ref.
13230 (graphite_find_data_references_in_stmt): Same.
13231 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13233 (create_data_ref): Same.
13234 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13235 call to create_data_ref.
13237 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13239 * graphite-sese-to-poly.c (build_poly_scop): Move
13240 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13242 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13244 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13245 VAR_DECL, PARM_DECL, and RESULT_DECL.
13247 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13249 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13250 in a reduction PBB.
13251 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13252 that have already been marked as PBB_IS_REDUCTION.
13254 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13256 * graphite-scop-detection.c (same_close_phi_node): New.
13257 (remove_duplicate_close_phi): New.
13258 (make_close_phi_nodes_unique): New.
13259 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13261 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13263 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13264 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13265 of both data references to be the same.
13267 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13269 * graphite-dependences.c (build_lexicographical_constraint): Remove
13270 the gdim parameter.
13271 (build_lexicographical_constraint): Adjust call to
13272 ppl_powerset_is_empty.
13273 (dependence_polyhedron): Same.
13274 (graphite_legal_transform_dr): Same.
13275 (graphite_carried_dependence_level_k): Same.
13276 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13278 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13280 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13282 * graphite-sese-to-poly.c
13283 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13284 (close_phi_written_to_memory): New.
13285 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13288 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13290 * doc/install.texi: Update the expected version number of PPL to 0.11.
13291 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13292 #if PPL_VERSION_MINOR < 11.
13294 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13296 * graphite-dependences.c: Include graphite-cloog-util.h.
13297 (new_poly_ddr): Inlined into dependence_polyhedron.
13298 (free_poly_ddr): Moved close by new_poly_ddr.
13299 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13300 Early return NULL when ppl_powerset_is_empty returns true.
13301 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13302 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13303 (graphite_legal_transform_dr): Call new_poly_ddr.
13304 (graphite_carried_dependence_level_k): Same.
13305 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13306 (dot_transformed_deps_stmt_1): Removed.
13307 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13308 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13309 (dot_deps_1): Call dot_deps_2.
13310 * Makefile.in (graphite-dependences.o): Add missing dependence on
13311 graphite-cloog-util.h.
13313 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13315 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13316 (build_lexicographical_constraint): Same.
13317 (dependence_polyhedron_1): Same.
13318 (graphite_legal_transform_dr): Same.
13319 (graphite_carried_dependence_level_k): Same.
13320 * graphite-ppl.c (ppl_powerset_is_empty): New.
13321 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13322 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13324 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13326 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13327 the "a followed by b" relation and document it.
13329 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13331 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13332 iteration when the bag of constraints is empty.
13334 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13336 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13338 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13340 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13341 nest and two loop depths as parameters.
13342 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13343 lst_perfect_nestify.
13345 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13347 * graphite-dependences.c (print_pddr): Call
13348 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13350 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13352 * graphite-ppl.c (debug_gmp_value): New.
13353 * graphite-ppl.h (debug_gmp_value): Declared.
13355 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13357 * doc/install.texi: Document availability of cloog-0.16.
13359 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13361 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13362 invalid postdominance info.
13364 2011-01-24 Jan Hubicka <jh@suse.cz>
13367 * doc/extend.texi (weak pragma): Drop claim that it must
13368 appear before definition.
13369 * varasm.c (merge_weak, declare_weak): Only sanity check
13370 that DECL is not output at a time it is declared weak.
13372 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13374 * machmode.def: Fixed comments.
13376 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13378 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13380 2011-01-24 Paul Koning <ni1d@arrl.net>
13382 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13385 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13388 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13389 (block_info): Add scanned and prev.
13390 (move_or_delete_vzeroupper_2): Return if the basic block
13391 has been scanned and the upper 128bit state is unchanged
13392 from the last scan.
13393 (move_or_delete_vzeroupper_1): Return true if the exit
13395 (move_or_delete_vzeroupper): Visit basic blocks using the
13396 work-list based algorithm based on vt_find_locations in
13399 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13401 2011-01-24 Nick Clifton <nickc@redhat.com>
13403 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13404 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13405 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13406 then define __v850e1__.
13407 * doc/invoke.texi: Document -mv850es.
13409 2011-01-24 Richard Henderson <rth@redhat.com>
13411 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13412 compound unordered comparisons.
13413 * config/rx/rx.c (rx_split_fp_compare): Remove.
13414 * config/rx/rx-protos.h: Update.
13415 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13416 (cbranchsf4): Don't call rx_split_fp_compare.
13417 (*cbranchsf4): Use rx_split_cbranch.
13418 (*cmpsf): Don't accept "i" constraint.
13419 (*conditional_branch): Only valid after reload.
13420 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13422 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13425 * config/rs6000/altivec.md (vector constant splitters): Add
13426 support for creating vector single precision constants if -mvsx is
13427 used and we would create the constant using Altivec primitives.
13429 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13430 Richard Sandiford <rdsandiford@googlemail.com>
13432 PR rtl-optimization/47166
13433 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13434 mechanism for PRE_MODIFY and POST_MODIFY.
13435 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13438 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13440 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13442 2011-01-22 Jan Hubicka <jh@suse.cz>
13445 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13447 2011-01-22 Jan Hubicka <jh@suse.cz>
13449 PR tree-optimization/43884
13451 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13452 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13454 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13456 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13457 * config/s390/s390.c (s390_register_move_cost,
13458 s390_memory_move_cost): New.
13459 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13461 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13463 PR middle-end/47401
13464 * except.c (sjlj_assign_call_site_values): Move setting the
13465 crtl->uses_eh_lsda flag to ...
13466 (sjlj_mark_call_sites): ... here.
13467 (sjlj_emit_function_enter): Support NULL dispatch label.
13468 (sjlj_build_landing_pads): In a function with no landing pads
13469 that still has must-not-throw regions, generate code to register
13470 a personality function with empty LSDA.
13472 2011-01-21 Richard Henderson <rth@redhat.com>
13474 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13476 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13478 * compare-elim.c: New file.
13479 * Makefile.in (OBJS-common): Add it.
13480 (compare-elim.o): New.
13481 * common.opt (fcompare-elim): New.
13482 * opts.c (default_options_table): Add OPT_fcompare_elim.
13483 * tree-pass.h (pass_compare_elim_after_reload): New.
13484 * passes.c (init_optimization_passes): Add it.
13485 * recog.h: Protect against re-inclusion.
13486 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13487 * doc/invoke.texi (-fcompare-elim): Document it.
13488 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13489 * doc/tm.texi: Rebuild.
13491 2011-01-22 Nick Clifton <nickc@redhat.com>
13493 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13494 rx_split_fp_compare.
13496 2011-01-22 Nick Clifton <nickc@redhat.com>
13498 * config/rx/rx.md (UNSPEC_CONST): New.
13499 (deallocate_and_return): Wrap the amount popped off the stack in
13500 an UNSPEC_CONST in order to stop it being rejected by
13501 -mmax-constant-size.
13502 (pop_and_return): Add a "(return)" rtx.
13503 (call): Drop the immediate operand.
13504 (call_internal): Likewise.
13505 (call_value): Likewise.
13506 (call_value_internal): Likewise.
13507 (sibcall_internal): Likewise.
13508 (sibcall_value_internal): Likewise.
13509 (sibcall): Likewise. Generate an explicit call using
13511 (sibcall_value): Likewise.
13512 (mov<>): FAIL if a constant operand is not legitimate.
13513 (addsi3_unpsec): New pattern.
13515 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13516 (ok_for_max_constant): New function.
13517 (gen_safe_add): New function.
13518 (rx_expand_prologue): Use gen_safe_add.
13519 (rx_expand_epilogue): Likewise.
13520 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13523 2011-01-21 Jeff Law <law@redhat.com>
13525 PR tree-optimization/47053
13526 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13527 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13528 statements are deleted.
13529 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13530 is nonempty, then purge dead edges and cleanup the CFG.
13532 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13535 Temporarily revert:
13536 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13538 * tree-dfa.c (create_var_ann): Mark variable as used.
13540 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13542 PR middle-end/45566
13543 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13544 notes from other section in hot/cold partitioning even if
13545 last_action is -3. Increment call_site_base.
13547 PR rtl-optimization/47366
13548 * fwprop.c (forward_propagate_into): Return bool. If
13549 any changes are made, -fnon-call-exceptions is used and
13550 REG_EH_REGION note is present, call purge_dead_edges
13551 and return true if it purged anything.
13552 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13553 any EH edges were purged.
13555 2011-01-21 Jeff Law <law@redhat.com>
13557 PR rtl-optimization/41619
13558 * caller-save.c (setup_save_areas): Break out code to determine
13559 which hard regs are live across calls by examining the reload chains
13560 so that it is always used.
13561 Eliminate code which checked REG_N_CALLS_CROSSED.
13563 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13565 PR tree-optimization/47355
13566 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13567 NOP has non-debug uses beyond PHIs in new_bb.
13569 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13572 * cfgexpand.c (account_used_vars_for_block): Only account vars
13573 that are annotated as used.
13574 (estimated_stack_frame_size): Don't set TREE_USED.
13575 * tree-dfa.c (create_var_ann): Mark variable as used.
13577 2011-01-21 Richard Guenther <rguenther@suse.de>
13579 PR middle-end/47395
13580 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13582 2011-01-21 Richard Guenther <rguenther@suse.de>
13584 PR tree-optimization/47365
13585 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13586 (vn_reference_lookup_pieces): Adjust.
13587 (vn_reference_lookup): Likewise.
13588 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13589 (vn_reference_lookup_3): Only look through kills if in
13590 VN_WALKREWRITE mode.
13591 (vn_reference_lookup_pieces): Adjust.
13592 (vn_reference_lookup): Likewise.
13593 (visit_reference_op_load): Likewise.
13594 (visit_reference_op_store): Likewise.
13595 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13596 (compute_avail): Likewise.
13597 (eliminate): Likewise.
13599 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13601 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13602 DECL_IGNORED_P non-reg vars if they are used.
13604 PR tree-optimization/47391
13605 * varpool.c (const_value_known_p): Return false if
13608 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13611 * config/i386/i386.c (ix86_local_alignment): Handle
13612 case for va_list_type_node is nil.
13613 (ix86_canonical_va_list_type): Likewise.
13615 2011-01-21 Alan Modra <amodra@gmail.com>
13617 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13618 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13620 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13622 * config/arm/arm.md (define_attr type): Rename f_load
13623 and f_store to f_fpa_load and f_fpa_store. Update.
13624 (write_conflict): Deal with rename fallout.
13625 (*push_fp_multi): Likewise.
13626 * config/arm/fpa.md (f_load): Use f_fpa_load.
13627 (f_store): Use f_fpa_store.
13628 (*movsf_fpa): Likewise.
13629 (*movdf_fpa): Likewise.
13630 (*movxf_fpa): Likewise.
13631 (*thumb2_movsf_fpa): Likewise.
13632 (*thumb2_movdf_fpa): Likewise.
13633 (*thumb2_movxf_fpa): Likewise.
13634 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13635 f_loadd and f_stored.
13636 (*thumb2_movdi_vfp): Likewise.
13637 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13638 (*thumb2_movsi_vfp): Likewise.
13639 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13640 Use f_loads instead of f_load.
13641 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13643 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13645 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13646 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13647 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13648 (xtensa_mode_dependent_address_p): New function.
13649 (constantpool_address_p): Make static. Change return type to bool.
13650 Change argument type to const_rtx. Use CONST_INT_P predicate.
13652 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13655 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13657 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13660 * cfgexpand.c (expand_debug_expr): Instead of generating
13661 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13664 2011-01-20 Richard Guenther <rguenther@suse.de>
13666 PR middle-end/47370
13667 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13668 the pointer operand of MEM_REFs.
13670 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13672 PR tree-optimization/46130
13673 * ipa-split.c (consider_split): If return_bb contains non-virtual
13674 PHIs other than for retval or if split_function would not adjust it,
13677 2011-01-20 Richard Guenther <rguenther@suse.de>
13679 PR tree-optimization/47167
13680 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13681 Revert previous change, only avoid enumeral type changes.
13683 2011-01-19 Mike Stump <mikestump@comcast.net>
13685 * doc/tm.texi.in (BRANCH_COST): Englishify.
13686 * doc/tm.texi (BRANCH_COST): Likewise.
13688 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13691 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13692 (gen_scheduled_generic_parms_dies): New functions.
13693 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13694 generation for the end of CU compilation.
13695 (dwarf2out_finish): Generate template parameters DIEs here.
13697 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13700 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13701 debug bind stmt on merge edges.
13703 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13707 * function.c (instantiate_expr): Instantiate incoming rtl of
13708 implicit arguments, and recurse on VALUE_EXPRs.
13709 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13710 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13712 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13714 * c-parser.c (c_parser_for_statement): Initialize
13715 collection_expression.
13717 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13719 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13721 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13723 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13724 (LINK_SHLIB_SPEC): Don't use %(link_path).
13725 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13727 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13729 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13730 (NO_SHARED_LIB_SUPPORT): Remove.
13731 (LINK_SHLIB_SPEC): Remove one conditional definition.
13733 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13735 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13737 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13738 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13739 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13740 %{call_shared} and conditionals on these options not being passed.
13741 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13744 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13746 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13749 * ipa-split.c: Spelling fixes.
13751 2011-01-19 Richard Henderson <rth@redhat.com>
13753 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13754 (*mulsi3): Likewise.
13756 * longlong.h [__mn10300__] (count_leading_zeros): New.
13757 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13758 [__mn10300__] (add_ssaaaa, subddmmss): New.
13759 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13760 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13762 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13764 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13766 2011-01-19 Richard Henderson <rth@redhat.com>
13768 * config/mn10300/mn10300.md (addsi3_flags): New.
13769 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13770 (subsi3_flags, subc_internal, subdi3): New.
13771 (subdi3_internal, *subdi3_degenerate): New.
13772 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13774 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13775 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13776 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13777 * config/mn10300/mn10300-protos.h: Update.
13778 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13779 (return_ret): Likewise. Rename from return_internal_regs.
13780 (return_internal): Remove.
13782 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13783 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13784 (mn10300_legitimate_constant_p): Likewise.
13785 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13786 (mn10300_frame_size): New.
13787 (mn10300_expand_prologue): Use it.
13788 (mn10300_expand_epilogue): Likewise.
13789 (mn10300_initial_offset): Likewise.
13790 * config/mn10300/mn10300-protos.h: Update.
13791 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13792 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13793 (prologue, epilogue, return_internal): Tidy output code.
13794 (mn10300_store_multiple_operation, return): Likewise.
13795 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13796 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13797 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13798 (load_pic, am33_load_pic): New.
13799 (mn10300_load_pic0, mn10300_load_pic1): New.
13801 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13802 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13803 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13804 (cc_flags_for_mode, cc_flags_for_code): New.
13805 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13806 overflow flag is not valid. Validate that the flags we need
13807 for the comparison are valid.
13808 (mn10300_output_cmp): Remove.
13809 (mn10300_output_add): New.
13810 (mn10300_select_cc_mode): Use cc_flags_for_code.
13811 (mn10300_split_cbranch): New.
13812 (mn10300_match_ccmode): New.
13813 (mn10300_split_and_operand_count): New.
13814 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13816 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13817 (addsi3): ... here. Use mn10300_output_add.
13818 (*addsi3_flags): New.
13819 (*am33_subsi3, *mn10300_subsi3): Merge...
13820 (subsi3): ... here. Use attribute isa.
13821 (*subsi3_flags): New.
13822 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13824 (*am33_andsi3, *mn10300_andsi3): Merge...
13825 (andsi3): ... here.
13826 (*andsi3_flags): New.
13827 (andsi3 splitters): New.
13828 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13829 (iorsi3): ... here.
13830 (*iorsi3_flags): New.
13831 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13832 (xorsi3): ... here.
13833 (*xorsi3_flags): New.
13834 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13835 (one_cmplsi2): ... here.
13836 (*one_cmplsi2_flags): New.
13837 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13838 instead of "dax" in constraints. Use mn10300_split_cbranch.
13839 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13840 use matching constraints to eliminate a self-comparison.
13841 (*integer_conditional_branch): Rename from integer_conditional_branch.
13842 Use int_mode_flags to match CC_REG.
13843 (*cbranchsi4_btst, *btstsi): New.
13844 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13845 mn10300_split_cbranch.
13846 (*am33_cmpsf): Rename from am33_cmpsf.
13847 (*float_conditional_branch): Rename from float_conditional_branch.
13848 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13849 (zero_extendqisi2): ... here.
13850 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13851 (zero_extendhisi2): ... here.
13852 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13853 (extendqisi2): ... here.
13854 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13855 (extendhisi2): ... here.
13856 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13857 (ashlsi3): ... here.
13858 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13859 (lshrsi3): ... here.
13860 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13861 (ashrsi3): ... here.
13862 (consecutive add peephole): Remove.
13863 * config/mn10300/predicates.md (label_ref_operand): New.
13864 (int_mode_flags): New.
13865 (CCZN_comparison_operator): New.
13867 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13868 (throughput_42_latency_43): New reservation.
13869 (mulsidi3, umulsidi3): New expanders.
13870 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13871 the MDR register to allocation; separately allocate the low and
13872 high parts of the DImode result.
13873 (umulsidi3_internal): Similarly.
13874 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13875 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13876 (udivsi3, umodsi3): Remove.
13877 (udivmodsi4, divmodsi4): New expanders.
13878 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13879 (*divmodsi4): Simiarly.
13880 (ext_internal): New.
13882 * config/mn10300/constraints.md ("z"): New constraint.
13883 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13884 (FIXED_REGISTERS): Don't fix MDR.
13885 (CALL_USED_REGSITERS): Reformat nicely.
13886 (REG_ALLOC_ORDER): Add MDR.
13887 (enum regclass): Add MDR_REGS.
13888 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13889 (IRA_COVER_CLASSES): Add MDR_REGS.
13890 (REGNO_REG_CLASS): Handle MDR_REG.
13891 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13892 (mn10300_register_move_cost): Likewise.
13893 * config/mn10300/mn10300.md (MDR_REG): New.
13894 (*movsi_internal): Handle moves to/from MDR_REGS.
13896 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13898 (mn10300_secondary_reload): Tidy combination reload classes.
13899 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13900 addresses for AM33. Allow symbolic offsets for reg+imm.
13901 (mn10300_regno_in_class_p): New.
13902 (mn10300_legitimize_reload_address): New.
13903 * config/mn10300/mn10300.h (enum reg_class): Remove
13904 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13905 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13906 SP_OR_GENERAL_REGS.
13907 (REG_CLASS_NAMES): Update to match.
13908 (REG_CLASS_CONTENTS): Likewise.
13909 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13910 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13911 (REGNO_IN_RANGE_P): Remove.
13912 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13913 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13914 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13915 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13916 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13917 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13918 (REGNO_GENERAL_P): New.
13919 (HAVE_POST_MODIFY_DISP): New.
13920 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13921 (LEGITIMIZE_RELOAD_ADDRESS): New.
13922 * config/mn10300/mn10300-protos.h: Update.
13924 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13925 DATA_REGS for AM33 stack-pointer destination.
13926 (mn10300_preferred_output_reload_class): Likewise.
13927 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13928 into a form appropriate for ...
13929 (TARGET_SECONDARY_RELOAD): New.
13930 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13931 * config/mn10300/mn10300-protos.h: Update.
13932 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13933 reload_insi; use the "A" constraint for the scratch; handle AM33
13934 moves of sp to non-address registers.
13936 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13937 (*movqi_internal): ... here.
13938 (*am33_movhi, *mn10300_movhi): Merge into...
13939 (*movhi_internal): ... here.
13940 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13941 as the source/destination of moves from/to SP.
13942 (movsf): Only allow for AM33-2.
13943 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13944 any integer constant constraint. Only allow for AM33-2. Tidy
13945 all of the alternative outputs.
13946 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13947 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13949 (udivsi3, umodsi3): New patterns for MN103 only.
13951 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13953 * doc/tm.texi.in: Spell out that a lack of register class unions
13955 * doc/tm.texi: Regenerate.
13957 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13959 PR rtl-optimization/47337
13960 * dce.c (check_argument_store): New function.
13961 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13963 PR tree-optimization/47290
13964 * tree-eh.c (infinite_empty_loop_p): New function.
13965 (cleanup_empty_eh): Use it.
13967 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13970 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13971 (a64_expand_widen_sum): Ditto.
13972 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13973 (vec_extract_evenodd_help): Ditto.
13974 (vec_extract_evenv4hi): Ditto.
13975 (vec_extract_oddv4hi): Ditto.
13976 (vec_extract_evenv2si): Ditto.
13977 (vec_extract_oddv2si): Ditto.
13978 (vec_extract_evenv2sf): Ditto.
13979 (vec_extract_oddv2sf): Ditto.
13980 (vec_pack_trunc_v4hi: Ditto.
13981 (vec_pack_trunc_v2si): Ditto.
13982 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13983 (vec_interleave_highv8qi): Ditto.
13985 (vec_extract_oddv8qi): Ditto.
13986 (vec_interleave_lowv4hi): Ditto.
13987 (vec_interleave_highv4hi): Ditto.
13988 (vec_interleave_lowv2si): Ditto.
13989 (vec_interleave_highv2si): Ditto.
13991 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13993 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13994 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13995 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13996 (pa_c_mode_for_suffix): New.
13997 (TARGET_EXPAND_BUILTIN): Define.
13998 (TARGET_C_MODE_FOR_SUFFIX): Define.
13999 (pa_builtins): Define.
14000 (pa_init_builtins): Register __float128 type and init new support
14002 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14003 * config/pa/quadlib.c (_U_Qfcopysign): New.
14005 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14007 PR middle-end/46894
14008 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14009 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14012 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14014 PR tree-optimization/47179
14015 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14016 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14018 2011-01-18 Richard Guenther <rguenther@suse.de>
14020 PR rtl-optimization/47216
14021 * emit-rtl.c: Include tree-flow.h.
14022 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14023 of replicating it with different semantics.
14024 * Makefile.in (emit-rtl.o): Adjust.
14026 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14028 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14029 (cortex_a9_dp): Handle neon types correctly.
14031 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14033 PR rtl-optimization/47299
14034 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14035 subtarget. Use normal multiplication if both operands are constants.
14036 * expmed.c (expand_widening_mult): Don't try to optimize constant
14037 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14040 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14042 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14043 spacing after 'e.g.', typos, comma, hyphenation.
14045 2011-01-17 Richard Henderson <rth@redhat.com>
14047 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14048 (rx_restricted_mem_operand): New.
14049 (rx_shift_operand): Use register_operand.
14050 (rx_source_operand, rx_compare_operand): Likewise.
14051 * config/rx/rx.md (addsi3_flags): New expander.
14052 (adddi3): Rewrite as expander.
14053 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14054 (subsi3_flags): New expander.
14055 (subdi3): Rewrite as expander.
14056 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14058 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14059 (rx_init_builtins): Remove sat builtin.
14060 (rx_expand_builtin): Likewise.
14061 * config/rx/rx.md (ssaddsi3): New.
14062 (*sat): Rename from sat. Represent the CC_REG input.
14064 * config/rx/predicates.md (rshift_operator): New.
14065 * config/rx/rx.c (rx_expand_insv): Remove.
14066 * config/rx/rx-protos.h: Update.
14067 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14068 operand to the canonical position.
14069 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14070 (*bitclr, *bitclr_in_memory): Similarly.
14071 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14072 (insv): Retain the zero_extract in the expansion.
14074 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14075 (bswaphi2, bitinvert, revw): Likewise.
14077 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14078 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14079 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14080 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14081 (bitset, bitset_in_memory): Likewise.
14082 (bitinvert, bitinvert_in_memory): Likewise.
14083 (bitclr, bitclr_in_memory): Likewise.
14084 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14085 (rx_strend, rx_cmpstrn): Likewise.
14086 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14087 (bitop peep2 patterns): Remove.
14089 * config/rx/rx.c (rx_match_ccmode): New.
14090 * config/rx/rx-protos.h: Update.
14091 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14092 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14093 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14094 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14095 (fix_truncsfsi2, floatsisf2): Likewise.
14096 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14097 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14098 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14099 (*subsi3_flags, *xorsi3_flags): New.
14101 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14103 * config/rx/rx.c (rx_print_operand): Remove workaround for
14104 unsplit comparison operations.
14106 * config/rx/rx.md (movsicc): Split after reload.
14107 (*movsicc): Merge *movsieq and *movsine via match_operator.
14108 (*stcc): New pattern.
14110 * config/rx/rx.c (rx_float_compare_mode): Remove.
14111 * config/rx/rx.h (rx_float_compare_mode): Remove.
14112 * config/rx/rx.md (cstoresi4): Split after reload.
14113 (*sccc): New pattern.
14115 * config/rx/predicates.md (label_ref_operand): New.
14116 (rx_z_comparison_operator): New.
14117 (rx_zs_comparison_operator): New.
14118 (rx_fp_comparison_operator): New.
14119 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14120 Validate that the flags are set properly for the comparison.
14121 (rx_gen_cond_branch_template): Remove.
14122 (rx_cc_modes_compatible): Remove.
14123 (mode_from_flags): New.
14124 (flags_from_code): Rename from flags_needed_for_conditional.
14125 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14126 (rx_select_cc_mode): Likewise.
14127 (rx_split_fp_compare): New.
14128 (rx_split_cbranch): New.
14129 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14130 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14131 (*cbranchsf4): Similarly.
14132 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14133 match_operator and rx_split_cbranch.
14134 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14135 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14136 (*cmpsi): Rename from cmpsi.
14137 (*tstsi): Rename from tstsi.
14138 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14139 (*conditional_branch): Rename from conditional_branch.
14140 (*reveresed_conditional_branch): Remove.
14141 (b<code>): Remove expander.
14142 * config/rx/rx-protos.h: Update.
14144 * config/rx/rx.c (rx_compare_redundant): Remove.
14145 * config/rx/rx.md (cmpsi): Don't use it.
14146 * config/rx/rx-protos.h: Update.
14148 * config/rx/rx-modes.def (CC_F): New mode.
14149 * config/rx/rx.c (rx_select_cc_mode): New.
14150 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14151 * config/rx/rx-protos.h: Update.
14153 2011-01-17 Richard Henderson <rth@redhat.com>
14155 * except.c (dump_eh_tree): Fix stray ; after for statement.
14157 2011-01-17 Richard Guenther <rguenther@suse.de>
14159 PR tree-optimization/47313
14160 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14161 handling before copying the body. Properly deal with
14162 by-reference result in SSA form.
14164 2011-01-17 Ian Lance Taylor <iant@google.com>
14167 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14168 (struct_value_alias_set): Don't define.
14169 (sparc_option_override): Don't set sparc_sr_alias_set and
14170 struct_value_alias_set.
14171 (save_or_restore_regs): Use gen_frame_mem rather than calling
14173 (sparc_struct_value_rtx): Likewise.
14175 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14178 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14179 (_mm_maskstore_pd): Likewise.
14180 (_mm_maskload_ps): Likewise.
14181 (_mm_maskstore_ps): Likewise.
14182 (_mm256_maskload_pd): Change mask to __m256i.
14183 (_mm256_maskstore_pd): Likewise.
14184 (_mm256_maskload_ps): Likewise.
14185 (_mm256_maskstore_ps): Likewise.
14187 * config/i386/i386-builtin-types.def: Updated.
14188 (ix86_expand_special_args_builtin): Likewise.
14190 * config/i386/i386.c (bdesc_special_args): Update
14191 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14192 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14193 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14194 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14196 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14197 Use <avxpermvecmode> on mask register.
14198 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14200 2011-01-17 Olivier Hainque <hainque@adacore.com>
14201 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14202 Eric Botcazou <ebotcazou@adacore.com>
14205 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14206 if <= USHRT_MAX in 32-bit mode.
14208 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14210 * doc/install.texi (Configuration, Specific): Wrap long
14211 lines in examples. Allow line wrapping in long options
14212 and URLs where beneficial for PDF output.
14214 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14216 * config/mips/mips.c (mips_classify_symbol): Don't return
14217 SYMBOL_PC_RELATIVE for nonlocal labels.
14219 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14221 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14223 2011-01-15 Jan Hubicka <jh@suse.cz>
14225 PR tree-optimization/47276
14226 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14227 declarations as needed.
14229 2011-01-15 Martin Jambor <mjambor@suse.cz>
14231 * common.opt (fdevirtualize): New flag.
14232 * doc/invoke.texi (Option Summary): Document it.
14233 * opts.c (default_options_table): Add devirtualize flag.
14234 * ipa-prop.c (detect_type_change): Return immediately if
14235 devirtualize flag is not set.
14236 (detect_type_change_ssa): Likewise.
14237 (compute_known_type_jump_func): Likewise.
14238 (ipa_analyze_virtual_call_uses): Likewise.
14240 2011-01-14 Martin Jambor <mjambor@suse.cz>
14242 PR tree-optimization/45934
14243 PR tree-optimization/46302
14244 * ipa-prop.c (type_change_info): New type.
14245 (stmt_may_be_vtbl_ptr_store): New function.
14246 (check_stmt_for_type_change): Likewise.
14247 (detect_type_change): Likewise.
14248 (detect_type_change_ssa): Likewise.
14249 (compute_complex_assign_jump_func): Check for dynamic type change.
14250 (compute_complex_ancestor_jump_func): Likewise.
14251 (compute_known_type_jump_func): Likewise.
14252 (compute_scalar_jump_functions): Likewise.
14253 (ipa_analyze_virtual_call_uses): Likewise.
14254 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14256 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14258 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14259 * config/i386/i386.opt (msse5): New Alias.
14261 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14263 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14264 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14265 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14266 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14268 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14270 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14272 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14273 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14274 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14275 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14277 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14279 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14281 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14283 2011-01-14 Mike Stump <mikestump@comcast.net>
14285 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14286 * config/fr30/fr30.md: Likweise
14287 (movsi_push): Likewise.
14288 (movsi_pop): Likewise.
14289 (enter_func): Likewise.
14290 * config/moxie/moxie.md (movsi_push): Likewise.
14291 (movsi_pop): Likewise.
14293 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14295 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14296 %{no_archive} %{exact_version}.
14297 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14298 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14299 %{no_archive} %{exact_version}.
14300 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14301 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14302 * config/mips/vxworks.h: Likewise.
14304 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14306 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14308 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14310 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14311 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14313 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14315 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14318 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14320 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14322 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14323 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14325 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14326 Don't handle -shlib.
14328 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14330 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14331 (CC1_SPEC): Don't handle -profile.
14333 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14335 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14336 * config/mips/mips.h (CC1_SPEC): Likewise.
14338 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14340 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14341 * config/mips/mips.h (CC1_SPEC): Likewise.
14343 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14345 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14346 * config/m32r/linux.h (LINK_SPEC): Likewise.
14347 * config/mips/linux.h (LINK_SPEC): Likewise.
14348 * config/mips/linux64.h (LINK_SPEC): Likewise.
14349 * config/sparc/linux.h (LINK_SPEC): Likewise.
14350 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14351 LINK_SPEC): Likewise.
14352 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14354 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14356 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14358 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14360 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14362 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14363 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14365 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14367 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14369 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14371 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14372 supports -Bstatic/-Bdynamic.
14373 * configure: Regenerate.
14375 2011-01-14 Jan Hubicka <jh@suse.cz>
14376 Jack Howarth <howarth@bromo.med.uc.edu>
14379 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14380 when checking debug_info_level. Test write_symbols instead of
14381 debug_hooks->var_location when setting flag_var_tracking_uninit.
14383 2011-01-14 Richard Guenther <rguenther@suse.de>
14385 PR tree-optimization/47179
14386 * target.def (ref_may_alias_errno): New target hook.
14387 * targhooks.h (default_ref_may_alias_errno): Declare.
14388 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14389 (default_ref_may_alias_errno): New function.
14390 * target.h (struct ao_ref_s): Declare.
14391 * tree-ssa-alias.c: Include target.h.
14392 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14393 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14394 (targhooks.o): Likewise.
14395 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14396 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14398 2011-01-14 Richard Guenther <rguenther@suse.de>
14400 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14402 2011-01-14 Richard Guenther <rguenther@suse.de>
14404 PR tree-optimization/47280
14405 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14406 return CFG changes.
14407 (tree_ssa_forward_propagate_single_use_vars): Deal with
14408 CFG changes from associate_plusminus.
14410 2011-01-14 Richard Guenther <rguenther@suse.de>
14412 PR middle-end/47281
14414 2011-01-11 Richard Guenther <rguenther@suse.de>
14416 PR tree-optimization/46076
14417 * tree-ssa.c (useless_type_conversion_p): Conversions from
14418 unprototyped to empty argument list function types are useless.
14420 2011-01-14 Richard Guenther <rguenther@suse.de>
14422 PR tree-optimization/47286
14423 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14425 2011-01-14 Martin Jambor <mjambor@suse.cz>
14427 PR middle-end/46823
14428 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14430 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14432 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14433 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14434 * config/xtensa/xtensa.c (xtensa_libcall_value,
14435 xtensa_function_value_regno_p): New functions.
14436 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14438 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14441 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14443 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14444 New function prototype.
14445 * config/i386/winnt.c (i386_pe_assemble_visibility):
14446 Warn only if attribute was specified by user.
14448 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14451 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14453 (floatunsdidf2_fcfidu): Ditto.
14455 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14457 * config/s390/s390.c (print_operand_address): Replace 'error' with
14458 'output_operand_lossage'.
14459 (print_operand): Likewise.
14461 2011-01-13 Jeff Law <law@redhat.com>
14463 PR rtl-optimization/39077
14464 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14465 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14466 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14467 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14468 * gcse.c (prune_insertions_deletions): New function.
14469 (compute_pre_data): Use it.
14471 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14474 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14476 (prune_unused_types_mark): Use it.
14478 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14480 PR rtl-optimization/45352
14481 * sel-sched.c: Update copyright years.
14482 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14483 in the advancing loop when we have issued issue_rate insns.
14485 2011-01-12 Richard Henderson <rth@redhat.com>
14487 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14488 (TARGET_MD_ASM_CLOBBERS): New.
14490 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14491 (TARGET_DELEGITIMIZE_ADDRESS): New.
14493 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14494 (clzsi2, *bsch): New patterns.
14496 * config/mn10300/mn10300.md (INT): New mode iterator.
14497 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14499 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14500 flag_split_wide_types.
14502 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14503 (mn10300_trampoline_init): Rewrite without a template, an immediate
14504 load and a direct branch.
14505 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14507 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14509 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14510 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14511 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14512 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14514 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14517 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14520 2011-01-12 Jan Hubicka <jh@suse.cz>
14523 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14524 (PLUGIN_COND_CLOSE): New macro.
14525 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14527 2011-01-12 Richard Guenther <rguenther@suse.de>
14530 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14531 register variables in a MEM_REF.
14533 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14535 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14536 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14537 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14538 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14539 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14540 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14541 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14542 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14543 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14544 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14545 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14546 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14547 * config/gnu-user.h: New. Copied from linux.h.
14548 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14549 GNU_USER_TARGET_STARTFILE_SPEC.
14550 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14551 GNU_USER_TARGET_ENDFILE_SPEC.
14552 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14553 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14554 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14555 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14556 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14557 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14558 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14559 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14560 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14561 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14562 * config/arm/linux-eabi.h (CC1_SPEC): Use
14563 GNU_USER_TARGET_CC1_SPEC.
14564 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14565 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14566 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14567 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14568 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14569 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14570 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14571 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14573 2011-01-12 Richard Guenther <rguenther@suse.de>
14576 * doc/invoke.texi (ffast-math): Document it is turned on
14579 2011-01-12 Jan Hubicka <jh@suse.cz>
14581 PR tree-optimization/47233
14582 * opts.c (common_handle_option): Disable ipa-reference with profile
14585 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14587 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14590 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14592 * c-parser.c (c_lex_one_token): Updated and reindented some
14593 comments. No changes in code.
14595 2011-01-11 Ian Lance Taylor <iant@google.com>
14597 * godump.c (go_output_var): Don't output the variable if there is
14598 already a type with the same name.
14600 2011-01-11 Ian Lance Taylor <iant@google.com>
14602 * godump.c (go_format_type): Don't generate float80.
14604 2011-01-11 Richard Henderson <rth@redhat.com>
14606 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14607 declaration. Rewrite for both speed and size.
14608 (mn10300_address_cost_1): Remove.
14609 (mn10300_register_move_cost): New.
14610 (mn10300_memory_move_cost): New.
14611 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14612 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14613 extensions, shifts, BSWAP, CLZ.
14614 (mn10300_wide_const_load_uses_clr): Remove.
14615 (TARGET_REGISTER_MOVE_COST): New.
14616 (TARGET_MEMORY_MOVE_COST): New.
14617 * config/mn10300/mn10300-protos.h: Update.
14618 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14620 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14621 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14622 * config/mn10300/mn10300-protos.h: Update.
14623 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14624 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14625 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14626 (*test_int_bitfield, *test_byte_bitfield): Remove.
14627 (*bit_test, *subreg_bit_test): Remove.
14628 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14630 * config/mn10300/constraints.md ("c"): Rename from "A".
14631 ("A", "D"): New constraint letters.
14632 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14633 (fmssf4, fnmasf4, fnmssf4): Likewise.
14635 * config/mn10300/mn10300.md (isa): New attribute.
14636 (enabled): New attribute.
14638 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14639 (abssf2, negsf2): Define only for hardware fp.
14640 (sqrtsf2): Reformat.
14641 (addsf3, subsf3, mulsf3): Merge expander and insn.
14643 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14644 (DEBUGGER_AUTO_OFFSET): Remove.
14645 (DEBUGGER_ARG_OFFSET): Remove.
14647 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14648 Emit register stores with the same offsets as the hardware.
14649 (mn10300_store_multiple_operation): Don't check that the register
14650 save offsets are monotonic.
14651 * config/mn10300/mn10300-protos.h: Update.
14653 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14655 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14656 in terms of the value on the stack, not the MDR register.
14658 2011-01-11 Jan Hubicka <jh@suse.cz>
14662 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14663 (symbol_alias_set_destroy, symbol_alias_set_contains,
14664 propagate_aliases_backward): Declare.
14665 * lto-streamer-out.c (struct sets): New sturcture.
14666 (trivally_defined_alias): New function.
14667 (output_alias_pair_p): Rewrite.
14668 (output_unreferenced_globals): Fix output of alias pairs.
14669 (produce_symtab): Likewise.
14670 * ipa.c (function_and_variable_visibility): Set weak alias destination
14672 * varasm.c (symbol_alias_set_t): Remove.
14673 (symbol_alias_set_destroy): Export.
14674 (propagate_aliases_forward, propagate_aliases_backward): New functions
14676 (compute_visible_aliases): ... this one; remove.
14677 (trivially_visible_alias): New
14678 (trivially_defined_alias): New.
14679 (remove_unreachable_alias_pairs): Rewrite.
14680 (finish_aliases_1): Reorganize code checking if alias is defined.
14681 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14684 2011-01-11 Richard Guenther <rguenther@suse.de>
14686 PR tree-optimization/46076
14687 * tree-ssa.c (useless_type_conversion_p): Conversions from
14688 unprototyped to empty argument list function types are useless.
14690 2011-01-11 Richard Guenther <rguenther@suse.de>
14692 PR middle-end/45235
14693 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14694 volatile MEMs as MEM_READONLY_P.
14696 2011-01-11 Richard Guenther <rguenther@suse.de>
14698 PR tree-optimization/47239
14699 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14701 2011-01-11 Jeff Law <law@redhat.com>
14703 PR tree-optimization/47086
14704 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14705 IVs from statements that might throw.
14707 2011-01-10 Jan Hubicka <jh@suse.cz>
14710 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14712 2011-01-10 Jan Hubicka <jh@suse.cz>
14715 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14716 when correcting profile.
14718 2011-01-10 Jan Hubicka <jh@suse.cz>
14721 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14722 DECL_FINI_PRIORITY.
14723 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14724 Restore DECL_FINI_PRIORITY.
14726 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14728 * doc/gimple.texi: Fix quoting of multi-word return values in
14729 @deftypefn statements. Ensure presence of return value. Wrap
14730 overlong @deftypefn lines.
14731 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14732 descriptions of removed functions.
14733 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14734 of multi-word return value in @deftypefn statement.
14736 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14738 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14739 (Conditional Expressions, Logical Operators)
14740 (Statement and operand traversals): Do not indent smallexample
14741 code. Fix duplicate function argument in example.
14743 2011-01-10 Jeff Law <law@redhat.com>
14745 PR tree-optimization/47141
14746 * ipa-split.c (split_function): Handle case where we are
14747 returning a value and the return block has a virtual operand phi.
14749 2011-01-10 Jan Hubicka <jh@suse.cz>
14751 PR tree-optimization/47234
14752 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14753 (pass_feedback_split_functions): Declare.
14754 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14756 * ipa-split.c (gate_split_functions): Update comments; disable
14757 split-functions for profile_arc_flag and branch_probabilities.
14758 (gate_feedback_split_functions): New function.
14759 (execute_feedback_split_functions): New function.
14760 (pass_feedback_split_functions): New global var.
14762 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14765 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14766 calling gimple_call_set_cannot_inline.
14768 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14770 * config/darwin-sections.def: Remove unused section.
14772 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14775 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14777 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14780 * c-parser.c (c_parser_declaration_or_fndef): Improved
14783 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14785 * config/i386/winnt.c (i386_pe_start_function): Make sure
14786 to switch back to function's section.
14788 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14792 * plugin.c: Move include of dlfcn.h from here...
14793 * system.h: ... to here.
14795 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14797 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14799 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14800 two extra empty pages in PDF output.
14802 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14805 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14806 for error recovery purposes behave as if it was not specified so
14807 that the default type is usd.
14809 2011-01-07 Jan Hubicka <jh@suse.cz>
14811 PR tree-optmization/46469
14812 * ipa.c (function_and_variable_visibility): Clear needed flags on
14813 nodes with external decls; handle weakrefs merging correctly.
14815 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14817 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14820 2011-01-07 Jan Hubicka <jh@suse.cz>
14822 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14823 and no longer claim that gold is required for linker plugin.
14824 * configure: Regenerate.
14825 * gcc.c (PLUGIN_COND): New macro.
14826 (LINK_COMMAND_SPEC): Use it.
14827 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14828 * config.in (HAVE_LTO_PLUGIN): New.
14829 * configure.ac (--with-lto-plugin): New parameter; autodetect
14832 2011-01-07 Jan Hubicka <jh@suse.cz>
14834 PR tree-optimization/46367
14835 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14836 when we can update original.
14837 (cgraph_mark_inline_edge): Sanity check.
14838 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14840 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14842 * config/spu/spu.h (ASM_COMMENT_START): Define.
14844 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14847 * gcc.c (%>S): New.
14848 (SWITCH_KEEP_FOR_GCC): Likewise.
14849 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14850 (do_spec_1): Handle "%>".
14852 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14854 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14857 * config/i386/i386.c (ix86_delegitimize_address): If
14858 simplify_gen_subreg fails, return orig_x.
14861 * value-prof.c (gimple_stringop_fixed_value): Handle
14862 lhs of the call properly.
14864 2011-01-07 Jan Hubicka <jh@suse.cz>
14867 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14869 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14871 * target.def (function_switched_text_sections): New hook.
14872 * doc/tm.texi: Regenerated.
14873 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14874 * final.c (default_function_switched_text_sections): New.
14875 (final_scan_insn): Call function_switched_text_sections when a
14876 mid-function section change occurs.
14877 * output.h (default_function_switched_text_sections): Declare.
14878 * config/darwin-protos.h (darwin_function_switched_text_sections):
14880 * config/darwin.c (darwin_function_switched_text_sections): New.
14881 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14883 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14885 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14886 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14887 the secondary code fragment when outputting for DWARF == 2.
14889 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14891 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14892 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14894 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14895 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14897 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14900 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14901 when it is not empty.
14903 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14906 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14907 (case ${target}): Add btver1.
14908 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14909 -march=native recognize btver1 processors.
14910 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14911 btver1 def_and_undef
14912 * config/i386/i386.c (struct processor_costs btver1_cost): New
14914 (m_BTVER1): New definition.
14915 (m_AMD_MULTIPLE): Includes m_BTVER1.
14916 (initial_ix86_tune_features): Add btver1 tune.
14917 (processor_target_table): Add btver1 entry.
14918 (static const char *const cpu_names): Add btver1 entry.
14919 (software_prefetching_beneficial_p): Add btver1.
14920 (ix86_option_override_internal): Add btver1 instruction sets.
14921 (ix86_issue_rate): Add btver1.
14922 (ix86_adjust_cost): Add btver1.
14923 * config/i386/i386.h (TARGET_BTVER1): New definition.
14924 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14925 (enum processor_type): Add PROCESSOR_BTVER1.
14926 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14928 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14931 * config/i386/i386.c (legitimize_tls_address)
14932 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14933 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14934 (tls_initial_exec_64_sun): New pattern.
14936 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14938 * doc/invoke.texi (Overall Options): Improve wording and markup
14939 of the description of -wrapper.
14941 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14943 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14944 rdynamic, threads): New Driver options.
14946 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14949 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14950 if coming from .tdata.
14951 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14953 2011-01-06 Jan Hubicka <jh@suse.cz>
14956 * collect2.c (main): Do not enable LTOmode when plugin is active.
14958 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14961 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14962 --version output if supported.
14963 * configure: Regenerate.
14965 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14967 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14970 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14973 * c-convert.c (convert): When converting a complex expression
14974 other than COMPLEX_EXPR to a different complex type, ensure
14975 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14976 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14977 when converting COMPLEX_TYPE.
14979 2011-01-06 Ira Rosen <irar@il.ibm.com>
14981 PR tree-optimization/47139
14982 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14983 only the last reduction value is used outside the loop. Update
14986 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14988 * config/rtems.opt: New.
14989 * config.gcc (*-*-rtems*): Use rtems.opt.
14991 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14993 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14994 processors do not support 3DNow instructions.
14996 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14998 * config/spu/spu.c (spu_option_override): Set parameter
14999 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15001 2011-01-05 Jan Hubicka <jh@suse.cz>
15003 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15004 at the command line.
15006 2011-01-05 Martin Jambor <mjambor@suse.cz>
15009 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15010 deltas on streamed outgoing edges.
15011 (output_node_opt_summary): Output info for outgoing edges only when
15012 the node is in new parameter set.
15013 (output_cgraph_opt_summary): New parameter set, passed to the two
15014 aforementioned functions. Update its forward declaration and its
15017 2011-01-05 Tom Tromey <tromey@redhat.com>
15019 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15020 operator to c_finish_omp_atomic.
15021 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15022 (build_unary_op): Update.
15023 (build_modify_expr): Update.
15024 (build_asm_expr): Update.
15026 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15028 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15029 newly inserted insns.
15030 (pad_bb): Likewise.
15031 (spu_emit_branch_hint): Likewise.
15032 (insert_hbrp_for_ilb_runout): Likewise.
15033 (spu_machine_dependent_reorg): Call df_finish_pass after
15034 schedule_insns returns.
15036 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15038 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15040 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15042 PR tree-optimization/47005
15043 * tree-sra.c (struct access): Add 'non_addressable' bit.
15044 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15045 (decide_one_param_reduction): Return 0 if the parameter is passed by
15046 reference and one of the accesses in the group is non_addressable.
15048 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15050 PR tree-optimization/47056
15051 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15052 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15053 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15055 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15057 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15058 initializer. Skip view conversions from aggregate types.
15060 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15063 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15065 2011-01-04 Philipp Thomas <pth@suse.de>
15067 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15070 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15072 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15073 on empty epilogue sequences.
15075 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15077 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15078 non-static): New Driver options.
15080 2011-01-04 Jie Zhang <jie@codesourcery.com>
15083 * gcc.c (default_compilers[]): Set combinable field to 0
15084 for all assembly languages.
15086 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15088 * config/mips/loongson3a.md: New file.
15089 * config/mips/mips.md: Include loongson3a.md.
15090 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15093 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15095 PR middle-end/47017
15096 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15097 instead of convert_memory_address_addr_space on the base expression.
15099 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15101 * config/spu/spu.c (spu_option_override): Update error text
15102 for bad -march= / -mtune= values.
15104 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15106 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15107 if branch-hint optimization will be performed.
15109 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15111 PR tree-optimization/47148
15112 * ipa-split.c (split_function): Convert arguments to
15113 DECL_ARG_TYPE if possible.
15115 PR tree-optimization/47155
15116 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15117 when computing uns.
15119 PR rtl-optimization/47157
15120 * combine.c (try_combine): If undobuf.other_insn becomes
15121 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15122 and set *new_direct_jump_p too.
15124 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15126 PR tree-optimization/47021
15127 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15129 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15131 * gcc.c (process_command): Update copyright notice dates.
15132 * gcov.c (print_version): Likewise.
15133 * gcov-dump.c (print_version): Likewise.
15134 * mips-tfile.c (main): Likewise.
15135 * mips-tdump.c (main): Likewise.
15137 2011-01-03 Martin Jambor <mjambor@suse.cz>
15139 PR tree-optimization/46801
15140 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15141 aggregate fields start at byte boundary instead of the bit-field flag.
15143 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15146 * gcc.c (main): Revert revision 168407.
15148 2011-01-03 Martin Jambor <mjambor@suse.cz>
15150 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15152 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15154 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15155 vector optab to expand vector/scalar shift, update gimple to vector.
15157 2011-01-03 Martin Jambor <mjambor@suse.cz>
15159 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15162 2011-01-03 Martin Jambor <mjambor@suse.cz>
15164 PR tree-optimization/46984
15165 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15167 (cgraph_create_indirect_edge): Fixed line length.
15168 (cgraph_indirect_call_info): Declare.
15169 (cgraph_make_edge_direct) Update declaration.
15170 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15171 (cgraph_create_indirect_edge): Use it.
15172 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15174 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15175 the new thunk_delta representation.
15176 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15178 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15179 (ipa_read_indirect_edge_info): Likewise.
15180 * lto-cgraph.c (output_edge_opt_summary): New function.
15181 (output_node_opt_summary): Call it on all outgoing edges.
15182 (input_edge_opt_summary): New function.
15183 (input_node_opt_summary): Call it on all outgoing edges.
15185 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15188 * gcc.c (main): Don't check have_o when settting combine_inputs.
15190 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15192 * regrename.c: Add general comment describing the pass.
15193 (struct du_head): Remove 'length' field.
15194 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15195 (regrename_optimize): Do not sort chains. Rework comments, add others.
15196 Force renaming to the preferred class (if any) in the first pass and do
15197 not consider registers that belong to it in the second pass.
15198 (create_new_chain): Do not set 'length' field.
15199 (scan_rtx_reg): Likewise.
15201 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15203 PR tree-optimization/47140
15204 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15205 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15206 to bit_value_binop.
15208 PR rtl-optimization/47028
15209 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15210 parm_birth_insn instead of at the beginning of first bb.
15212 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15214 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15215 Remove the word "see" before "@pxref".
15216 * doc/rtl.texi: Remove the word "see" before "@pxref".
15218 2011-01-01 Jan Hubicka <jh@suse.cz>
15220 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15223 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15226 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15229 Copyright (C) 2011 Free Software Foundation, Inc.
15231 Copying and distribution of this file, with or without modification,
15232 are permitted in any medium without royalty provided the copyright
15233 notice and this notice are preserved.