1 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4 parts of output shared with the driver.
5 * optc-gen.awk: Don't generate parts of output not shared with the
7 * opth-gen.awk: Remove GCC_DRIVER conditionals.
8 * doc/options.texi (SourcerInclude): Mention options-save.c.
9 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
10 (OBJS): Add options-save.o.
11 (options-save.c, options-save.o): New.
12 (options.o): Update dependencies.
13 (gcc-options.o): Remove.
14 (mostlyclean): Remove options-save.c.
16 2011-05-23 Jakub Jelinek <jakub@redhat.com>
19 * dbxout.c: Include cgraph.h.
20 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
21 and without value expr, return NULL if no varpool node exists for
22 it or if it is not needed.
23 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
26 * c-decl.c (start_decl): Convert expr to void_type_node.
28 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
30 PR rtl-optimization/48826
31 * emit-rtl.c (try_split): When splitting a call that is followed
32 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
34 2011-05-23 Jakub Jelinek <jakub@redhat.com>
36 * cfgexpand.c (expand_debug_expr): For unused non-addressable
37 parameters passed in memory prefer using DECL_INCOMING_RTL over
38 the pseudos it will be copied into.
40 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
43 * config/i386/i386.c (ix86_option_override_internal): Save the
44 initial options after checking vzeroupper.
46 2011-05-23 David Li <davidxl@google.com>
48 PR tree-optimization/48988
49 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
50 Initialize has_valid_pred for each pred chain.
52 2011-05-23 Richard Guenther <rguenther@suse.de>
54 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
55 (iterative_hash_gimple_type): Always hash type names.
57 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
59 * c-typeck.c (build_function_call_vec): Tweak call to
60 check_function_arguments.
62 2011-05-23 Richard Guenther <rguenther@suse.de>
64 PR tree-optimization/49115
65 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
66 is not necessarily carried out, do not claim it kills the ref.
67 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
69 2011-05-23 Richard Guenther <rguenther@suse.de>
72 * builtins.c (fold_builtin_memory_op): Be less restrictive about
73 what pointer types we accept for folding.
75 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
77 * gthr-gnat.c: Remove.
78 * gthr-gnat.h: Remove.
79 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
80 * config/t-freebsd (LIB2ADDEH): Likewise.
81 * config/t-linux (LIB2ADDEH): Likewise.
82 * config/t-sol2 (LIB2ADDEH): Likewise.
83 * config/ia64/t-vms (LIB2ADDEH): Likewise.
84 * configure.ac (target_thread_file): Remove gnat handling.
85 * configure: Regenerate.
86 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
88 2011-05-23 Tristan Gingold <gingold@adacore.com>
89 Eric Botcazou <ebotcazou@adacore.com>
91 * gcov.c (create_file_names): If no object directory is specified,
92 keep the directory of the file.
94 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
96 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
97 * configure: Regenerate.
99 2011-05-23 Jakub Jelinek <jakub@redhat.com>
102 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
103 failed and the comparison has a single bit signed type, use
104 constm1_rtx instead of const1_rtx for true value.
105 (do_store_flag): If ops->type is single bit signed type, disable
106 signel bit test optimization and pass -1 instead of 1 as last
107 parameter to emit_store_flag_force.
109 2011-05-23 Tom de Vries <tom@codesourcery.com>
112 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
114 (infer_loop_bounds_from_undefined): Use new function.
116 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
118 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
119 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
120 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
122 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
124 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
126 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
127 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
130 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
132 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
134 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
136 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
137 UNSPEC_MOVE_PIC pattern.
139 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
141 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
142 (sparc-*-rtems*): Likewise.
143 (sparc64-*-elf*): Likewise.
144 (sparc64-*-rtems*): Likewise.
145 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
146 * config/sparc/t-crtin: New file.
147 * config/sparc/t-sol2 (crti.o): Delete rule.
149 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
150 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
151 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
152 (ENDFILE_SPEC): Add crtn.o.
154 2011-05-22 Tom de Vries <tom@codesourcery.com>
157 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
158 CODE_CONTAINS_STRUCT (TS_COMMON).
160 2011-05-22 Jakub Jelinek <jakub@redhat.com>
163 * expmed.c (extract_fixed_bit_field): Test whether target can be used
164 only after deciding which mode to use.
166 2011-05-22 Tom de Vries <tom@codesourcery.com>
169 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
170 for call to get_shiftadd_cost.
172 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
175 * config/i386/cpuid.h (bit_MMXEXT): New define.
177 2011-05-22 Nick Clifton <nickc@redhat.com>
179 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
180 initialisation of non-existant args[2] element. Use args[] array
181 not arg[] array to pass arguments to build_function_type_list.
183 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
185 PR tree-optimization/49087
186 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
188 2011-05-21 Jason Merrill <jason@redhat.com>
191 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
192 static storage duration.
194 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
196 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
199 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
201 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
202 false if there are call-saved registers here...
203 (sparc_can_use_return_insn_p): ...but here instead.
204 (save_or_restore_regs): Fix thinko.
205 (sparc_expand_prologue): Use current_function_is_leaf.
206 (sparc_frame_pointer_required): Likewise.
208 2011-05-21 Nick Clifton <nickc@redhat.com>
211 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
213 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
215 * gengtype.c (walk_type): Implemented "atomic" GTY option.
216 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
218 2011-05-21 Joseph Myers <joseph@codesourcery.com>
220 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
221 * optc-gen.awk: Move common code to opt-read.awk.
222 * opth-gen.awk: Likewise.
223 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
225 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
227 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
229 2011-05-20 Tom de Vries <tom@codesourcery.com>
232 * tree-ssa-loop-ivopts.c: Include expmed.h.
233 (get_shiftadd_cost): New function.
234 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
236 2011-05-20 Jakub Jelinek <jakub@redhat.com>
239 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
240 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
242 2011-05-20 Joseph Myers <joseph@codesourcery.com>
244 * Makefile.in: Update comment referring to $(OBJS-common).
246 2011-05-20 Ian Lance Taylor <iant@google.com>
248 * godump.c (go_output_typedef): Put enum constants in the macro
249 hash table to avoid duplicate Go const definitions.
251 2011-05-20 Joseph Myers <joseph@codesourcery.com>
253 * Makefile.in (LIBDEPS): Add libcommon.a.
255 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
256 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
257 pretty-print.o and version.o.
258 (OBJS-libcommon): New.
259 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
260 (BACKEND): Add libcommon.a.
261 (MOSTLYCLEANFILES): Likewise.
263 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
264 (cpp$(exeext)): Likewise.
265 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
266 pretty-print.o and input.o.
267 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
268 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
270 (mips-tfile): Don't explicitly use version.o.
271 (mips-tdump): Likewise.
272 (gcov.o): Depend on $(DIAGNOSTIC_H).
273 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
274 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
275 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
276 * gcov-dump.c: Include intl.h and diagnostic.h.
277 (main): Initialize diagnostics.
278 * gcov.c: Include diagnostic.h.
280 (main): Initialize diagnostics.
281 * lto-wrapper.c: Include diagnostic.h.
282 (main): Initialize diagnostics.
284 2011-05-20 Michael Matz <matz@suse.de>
286 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
288 2011-05-20 Michael Matz <matz@suse.de>
289 Richard Guenther <rguenther@suse.de>
291 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
292 use lto_streamer_cache_append directly instead of returning a VEC.
293 (preload_common_node): Remove.
294 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
296 (lto_streamer_cache_create): Call lto_preload_common_nodes.
298 2011-05-20 Richard Guenther <rguenther@suse.de>
300 PR tree-optimization/49079
301 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
302 MEM_REFs correctly for the trailing array access detection.
303 Special case constants the same way as decls for overall size
306 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
308 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
311 2011-05-20 Jakub Jelinek <jakub@redhat.com>
313 PR tree-optimization/49073
314 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
315 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
316 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
318 2011-05-20 Richard Guenther <rguenther@suse.de>
321 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
322 of pointer types the same way the middle-end does.
324 2011-05-20 Richard Guenther <rguenther@suse.de>
326 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
327 or pointer-to chains. Delay all fixup to uniquify_nodes.
329 2011-05-19 Quentin Neill <quentin.neill@amd.com>
331 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
332 (fma4_fmaddsub): Likewise
334 2011-05-19 Jan Hubicka <jh@suse.cz>
336 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
337 (GIMPLE_TYPE_PAIR_SIZE): New macro.
338 (type_pair_cache): New static var.
339 (lookup_type_pair): Use fixed sized custom hash; make inline.
340 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
341 calls of lookup_type_pair.
342 (print_gimple_types_stats): Remove cache stats.
343 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
346 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
348 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
349 when TARGET_RDRND is active.
350 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
351 Generate dummy SImode target register when target is NULL.
353 2011-05-19 Joseph Myers <joseph@codesourcery.com>
355 * config/arm/arm-fpus.def: New.
356 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
358 * config/arm/arm-tables.opt: Regenerate.
359 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
360 (arm_option_override): Don't decode FPU name to string here.
361 * config/arm/arm.opt (mfpu=): Use Enum.
362 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
365 2011-05-19 Joseph Myers <joseph@codesourcery.com>
367 * collect2.c: Include diagnostic.h.
368 (fatal_perror, fatal, error, fancy_abort): Remove.
369 (main): Set progname. Call xmalloc_set_program_name and
370 diagnostic_initialize.
371 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
372 scan_libraries, resolve_lib_name): Call fatal_error instead of
373 fatal and fatal_perror.
374 * collect2.h (error, fatal, fatal_perror): Don't declare.
375 * tlink.c: Include diagnostic-core.h.
376 (recompile_files): Call fatal_error instead of fatal_perror.
377 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
378 pretty-print.o and input.o.
379 (collect2.o, tlink.o): Update dependencies.
381 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
383 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
385 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
389 COMDAT group syntax, both SPARC and x86 variants.
390 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
391 * configure: Regenerate.
392 * config/sol2.h (TARGET_SOLARIS): Define.
393 (PUSHSECTION_FORMAT): Remove.
394 (SECTION_NAME_FORMAT): Define.
395 * config/sol2.c: Include hashtab.h.
396 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
397 expansion, using SECTION_NAME_FORMAT.
398 (solaris_comdat_htab): New variable.
399 (struct comdat_entry): Define.
400 (comdat_hash): New function.
401 (comdat_eq): New function.
402 (solaris_elf_asm_comdat_section): New function.
403 (solaris_define_comdat_signature): New function.
404 (solaris_code_end): New function.
405 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
406 (solaris_code_end): Declare.
407 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
408 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
410 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
411 Remove ATTRIBUTE_UNUSED.
412 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
413 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
414 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
415 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
416 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
417 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
418 (PUSHSECTION_FORMAT): Remove.
419 (SECTION_NAME_FORMAT): Redefine.
421 2011-05-19 Kai Tietz <ktietz@redhat.com>
423 * tree-cfg.c (verify_gimple_assign_binary): Barf on
424 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
425 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
427 2011-05-19 Anatoly Sokolov <aesok@post.ru>
428 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
432 2011-05-19 Richard Guenther <rguenther@suse.de>
435 * tree-object-size.c (addr_object_size): If the pointed-to
436 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
438 2011-05-19 Richard Guenther <rguenther@suse.de>
440 * gimple.c (gimple_types_compatible_p_1): Compare names of
441 the types themselves.
442 (iterative_hash_gimple_type): And hash them that way.
443 (gimple_register_type_1): If we register a main variant properly
444 initialize the leader to ourselves.
446 2011-05-19 Tom de Vries <tom@codesourcery.com>
449 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
450 get_loop_invariant_expr_id.
451 (get_loop_invariant_expr_id): Use get_expr_id.
452 (parm_decl_cost): New function.
453 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
454 Improve bound cost estimation. Use different inv_expr_id for elim and
457 2011-05-19 Tom de Vries <tom@codesourcery.com>
460 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
463 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
466 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
467 Properly handle load cast.
469 2011-05-18 Jakub Jelinek <jakub@redhat.com>
471 PR tree-optimization/49039
472 * tree-vrp.c (extract_range_from_binary_expr): For
473 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
474 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
476 2011-05-18 Tom de Vries <tom@codesourcery.com>
479 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
481 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
483 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
484 (*tls_global_dynamic_64): Ditto.
485 (*tls_local_dynamic_base_32_gnu): Ditto.
486 (*tls_local_dynamic_base_64): Ditto.
487 (tls_initial_exec_64_sun): Ditto.
489 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
491 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
492 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
494 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
495 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
496 * config/bfin/bfin.c (bfin_cpus): Add bf592.
497 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
498 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
499 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
500 * config/bfin/elf.h (LIB_SPEC): Add bf592.
502 2011-05-18 Joseph Myers <joseph@codesourcery.com>
504 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
505 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
506 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
507 target_thread_pointer, arm_structure_size_boundary, struct
508 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
509 struct abi_name, arm_all_abis): Remove.
510 (arm_option_override) Don't process most enumerated option values here.
511 Don't process target_fpe_name here. Work with integer not string for
512 structure size boundary; use separate diagnostics for each case.
513 * config/arm/arm.h (enum float_abi_type, enum
514 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
516 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
517 arm_structure_size_boundary): Remove.
518 * config/arm/arm.opt (mabi=): Use Enum and Init.
519 (arm_abi_type): New Enum and EnumValue entries.
520 (mfloat-abi=): Use Enum and Init.
521 (float_abi_type): New Enum and EnumValue entries.
522 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
523 (mfp16-format=): Use Enum and Init.
524 (arm_fp16_format_type): New Enum and EnumValue entries.
525 (mstructure-size-boundary=): Use UInteger and Init.
526 (mtp=): Use Enum and Init.
527 (arm_tp_type): New Enum and EnumValue entries.
529 2011-05-18 Richard Guenther <rguenther@suse.de>
531 PR tree-optimization/49018
532 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
533 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
534 gimple_has_side_effects.
536 2011-05-18 Richard Guenther <rguenther@suse.de>
538 * gimple.c (gimple_register_type_1): New function, split out from ...
539 (gimple_register_type): ... here. Avoid infinite recursion.
541 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
543 PR tree-optimization/41881
544 * tree-vectorizer.h (struct _loop_vec_info): Add new field
545 reduction_chains along with a macro for its access.
546 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
547 (destroy_loop_vec_info): Free reduction chains.
548 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
549 (vect_is_slp_reduction): New function.
550 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
551 (vect_create_epilog_for_reduction): Support SLP reduction chains.
552 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
553 definition types for reduction chains.
554 (vect_supported_load_permutation_p): Don't allow permutations for
556 (vect_analyze_slp_instance): Support reduction chains.
557 (vect_analyze_slp): Try to build SLP instance from reduction chains.
558 (vect_get_constant_vectors): Handle reduction chains.
559 (vect_schedule_slp_instance): Mark the first statement of the
560 reduction chain as reduction.
562 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
564 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
565 names for group elements access.
566 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
567 reduction chains as well. Remove data reference and interleaving
568 related words from the fields names.
569 * tree-vect-loop.c (vect_transform_loop): Use new names for group
571 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
572 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
573 vect_update_interleaving_chain, vect_same_range_drs,
574 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
575 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
576 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
577 vect_analyze_group_access, vect_analyze_data_ref_access,
578 vect_create_data_ref_ptr, vect_transform_strided_load,
579 vect_record_strided_load_vectors): Likewise.
580 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
581 vect_model_load_cost, vectorizable_store, vectorizable_load,
582 vect_remove_stores, new_stmt_vec_info): Likewise.
583 * tree-vect-slp.c (vect_build_slp_tree,
584 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
586 2011-05-18 Richard Guenther <rguenther@suse.de>
589 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
590 operand verification.
591 (verify_gimple_assign_binary): Likewise.
592 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
593 to non-1-precision BOOLEAN_TYPEs.
595 2011-05-18 Tom de Vries <tom@codesourcery.com>
598 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
600 2011-05-18 Jakub Jelinek <jakub@redhat.com>
602 PR tree-optimization/49000
603 * tree-ssa.c (execute_update_addresses_taken): Call
604 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
605 be rewritten and decl has been marked for renaming, reset
608 2011-05-17 Joseph Myers <joseph@codesourcery.com>
610 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
611 enum_opts_set when testing if attributes have set -mfpmath=.
613 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
615 * config/mips/mips.c (mips_handle_option): Remove unused variable.
617 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
619 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
621 * tree-inline.c (maybe_inline_call_in_expr): Initialize
622 id.transform_lang_insert_block with NULL.
624 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
626 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
627 (output_fp_compare): Change args 3 and 4 to bool.
628 (ix86_expand_call): Change arg 6 to bool.
629 (ix86_attr_length_immediate_default): Change arg 2 to bool.
630 (ix86_attr_length_vex_default): Change arg 3 to bool.
631 * config/i386/i386.md: Update all uses.
632 * config/i386/i386.c: Ditto.
633 (ix86_flags_dependent): Change return type to bool.
635 2011-05-17 Richard Guenther <rguenther@suse.de>
637 * gimple.c (type_hash_pair_compare): Fix comparison.
639 2011-05-17 Richard Guenther <rguenther@suse.de>
641 * gimple.c (iterative_hash_gimple_type): Simplify singleton
642 case some more, fix final hash value of the non-singleton case.
644 2011-05-17 Richard Guenther <rguenther@suse.de>
648 2011-05-16 Richard Guenther <rguenther@suse.de>
650 * gimple.c (gimple_types_compatible_p_1): Use names of the
651 type itself, not its main variant.
652 (iterative_hash_gimple_type): Likewise.
654 2011-05-17 Richard Guenther <rguenther@suse.de>
656 * gimple.c (gimple_register_canonical_type): Use the main-variant
657 leader for computing the canonical type.
659 2011-05-17 Nick Clifton <nickc@redhat.com>
661 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
664 * config/rx/rx.md: Add peephole to remove redundant extensions
666 (bitset_in_memory): Use rx_restricted_mem_operand.
667 (bitinvert_in_memory): Likewise.
668 (bitclr_in_memory): Likewise.
670 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
671 Nick Clifton <nickc@redhat.com>
673 * config/rx/rx.md: Add peepholes to match a register move followed
674 by a comparison of the moved register. Replace these with an
675 addition of zero that does both actions in one instruction.
677 2011-05-17 Jakub Jelinek <jakub@redhat.com>
680 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
681 predicate to allow CONST_INT.
682 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
684 2011-05-16 Joseph Myers <joseph@codesourcery.com>
686 * opts-common.c (opt_enum_arg_to_value): New.
687 * opts.h (opt_enum_arg_to_value): Declare.
688 * config/i386/i386.opt (fpmath): Remove.
689 (mfpmath=): Use Enum, Init and Save.
690 (fpmath_unit): New Enum and EnumValue entries.
691 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
692 name for function fpmath state.
693 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
694 * config/i386/i386.c: Include diagnostic.h.
695 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
696 (ix86_target_string): Take enum fpmath_unit value instead of string.
697 (ix86_debug_options): Update call to ix86_target_string.
698 (ix86_option_override_internal): Don't process fpmath strings here.
699 (x86_function_specific_save, ix86_function_specific_restore):
700 Don't handle fpmath state specially.
701 (ix86_function_specific_print): Pass fpmath state to
702 ix86_target_string instead of printing in this function.
703 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
704 Handle enum attributes.
705 (IX86_ATTR_ENUM, ix86_opt_enum): New.
706 (ix86_valid_target_attribute_tree): Update option_strings
707 handling. Handle fpmath as enum option.
708 (ix86_can_inline_p): Update field names for function fpmath state.
709 (ix86_expand_builtin): Update call to ix86_target_string.
710 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
711 (ix86_fpmath): Remove.
712 * config/i386/t-i386 (i386.o): Update dependencies.
714 2011-05-16 Joseph Myers <joseph@codesourcery.com>
716 PR preprocessor/48677
717 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
718 from decoded_options[0], not from itself.
720 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
722 * config/i386/constraints.md (z): New constraint.
723 * config/i386/i386.c (c): New mode attribute.
724 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
725 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
726 constraint for operand 0.
727 (*call_vzeroupper): Ditto.
728 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
729 (*call_rex64_ms_sysv_vzeroupper): Ditto.
730 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
731 Use "lzm" constraint for operand 0.
732 (*call_pop_vzeroupper): Ditto.
733 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
734 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
735 constraint for operand 0.
736 (*sibcall_vzeroupper): Ditto.
737 (*sibcall_rex64_ms_sysv): Ditto.
738 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
739 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
740 *sibcall_pop_1. Use "Uz" constraint for operand 0.
741 (*sibcall_pop_vzeroupper): Ditto.
742 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
743 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
744 mode iterator. Use "<c>zm" constraint for operand 1.
745 (*call_value_vzeroupper): Ditto.
746 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
748 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
749 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
750 *call_value_pop_1. Use "lzm" constraint for operand 1.
751 (*call_value_pop_vzeroupper): Ditto.
752 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
753 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
754 mode iterator. Use "Uz" constraint for operand 1.
755 (*sibcall_value_vzeroupper): Ditto.
756 (*sibcall_value_rex64_ms_sysv): Ditto.
757 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
758 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
759 constraint for operand 1.
760 (*sibcall_value_pop_vzeroupper): Ditto.
761 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
762 and "z" constraint for operand 2.
763 (*tls_global_dynamic_32_gnu): Ditto.
764 (*tls_local_dynamic_base_32_gnu): Ditto.
765 (*tls_local_dynamic_base_64): Ditto.
766 (*tls_local_dynamic_32_once): Ditto.
767 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
769 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
771 2011-05-16 Richard Guenther <rguenther@suse.de>
773 * gimple.c (gimple_types_compatible_p_1): Use names of the
774 type itself, not its main variant.
775 (iterative_hash_gimple_type): Likewise.
777 2011-05-16 Richard Guenther <rguenther@suse.de>
779 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
780 always visit pointer target and function result and argument types.
782 2011-05-16 Jason Merrill <jason@redhat.com>
785 * tree-inline.c (copy_statement_list): Put back recursion.
787 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
791 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
792 * config/avr/avr.md ("*ior<mode>qi.byte0",
793 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
795 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
798 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
799 register is needed for a function argument.
801 2011-05-16 Richard Guenther <rguenther@suse.de>
803 * gimple.c (struct type_hash_pair): New type.
804 (type_hash_pair_compare): New function.
805 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
807 2011-05-16 Revital Eres <revital.eres@linaro.org>
809 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
811 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
813 * config/i386/i386.md (floating point move splitters): Fix
814 usage of standard_80387_constant_p.
815 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
817 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
819 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
821 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
823 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
824 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
825 (tree_ssa_lim_finalize): Likewise.
827 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
829 * config/i386/constraint.md (Yd, Yx): New register constraints.
830 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
831 Yd conditional register constraint.
832 (*movtf_internal): Use standard_sse_constant_opcode.
833 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
834 Yx conditional register constraint.
835 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
836 Yd conditional register constraint. Use standard_sse_constant_p to
837 check for valid SSE constants and call standard_sse_constant_opcode to
839 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
840 constants and call standard_sse_constant_opcode to output SSE insn.
841 * config/i386/i386.c (ix86_option_ovverride_internal): Set
842 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
843 optimize_size is set.
844 (standard_sse_constant_opcode): Output conditional AVX insn templates.
846 2011-05-14 Tobias Burnus <burnus@net-b.de>
848 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
850 2011-05-13 Martin Jambor <mjambor@suse.cz>
852 * ipa-prop.c (ipa_cst_from_jfunc): New function.
853 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
854 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
855 (evaluate_conditions_for_ipcp_clone): Removed.
856 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
857 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
858 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
860 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
862 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
863 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
864 lieu of MAY_HAVE_DEBUG_STMTS.
865 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
866 debug statements if !MAY_HAVE_DEBUG_STMTS.
868 2011-05-13 Martin Thuresson <martint@google.com>
870 PR gcov-profile/47793
871 * libgcov.c (gcov_exit): Support relative profile paths.
872 * doc/invoke.texi (-fprofile-dir): Update for above change.
874 2011-05-13 Richard Guenther <rguenther@suse.de>
876 * gimple.c (gimple_canonical_types_compatible_p): Do not use
877 type-pair caching, do not compare hashes.
879 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
882 * tree-cfg.c (edge_to_cases_cleanup): Return true.
883 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
885 2011-05-13 Kai Tietz <ktietz@redhat.com>
887 * gimplify.c (gimplify_expr): Make sure operand is boolified.
888 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
889 compatible type for TRUTH_NOT_EXPR.
891 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
893 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
894 (ix86_hard_regno_mode_ok): Change return value to bool. Use
895 can_create_pseudo_p ().
897 2011-05-13 Richard Guenther <rguenther@suse.de>
900 * gimple.c (iterative_hash_gimple_type): Revert change in
901 pointer target and function result and argument hashing.
903 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
905 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
906 (*movxf_internal_nointeger): Ditto.
907 (*movdf_internal_rex64): Ditto.
908 (*movdf_internal): Ditto.
909 (*movdf_internal_nointeger): Ditto.
910 (*movsf_internal): Ditto.
911 (sincos splitters): Use can_create_pseudo ().
913 2011-05-13 Joseph Myers <joseph@codesourcery.com>
915 * config/i386/i386-opts.h: New.
916 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
917 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
918 ix86_section_threshold): Remove.
919 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
920 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
922 (ix86_option_override_internal): Don't decode strings for options
923 other than -march=, -mtune= and -mfpmath=. Don't allow for
924 __attribute__ uses in remaining diagnostics for options with
925 string arguments. Don't check for integer arguments being negative.
926 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
927 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
928 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
929 ix86_branch_cost, ix86_section_threshold): Remove.
930 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
932 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
934 (masm=): Use Enum and Init.
935 (asm_dialect): New Enum and EnumValue entries.
936 (mbranch-cost=): Use UInteger.
937 (mlarge-data-threshold=): Use UInteger and Init.
938 (mcmodel=): Use Enum and Init.
939 (cmodel): New Enum and EnumValue entries.
940 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
941 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
942 mregparm=): Use UInteger.
943 (mstringop-strategy=): Use Enum and Init.
944 (stringop_alg): New Enum and EnumValue entries.
945 (mtls-dialect=): Use Enum and Init.
946 (tls_dialect): New Enum and EnumValue entries.
947 (mabi=): Use Enum and Init.
948 (calling_abi): New Enum and EnumValue entries.
949 (mveclibabi=): Use Enum and Init.
950 (ix86_veclibabi): New Enum and EnumValue entries.
952 2011-05-13 Nick Clifton <nickc@redhat.com>
954 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
955 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
957 2011-05-13 Kai Tietz <ktietz@redhat.com>
960 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
961 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
962 (gimple_boolify): Check for cast for boolean_type_node instead for
965 2011-05-13 Richard Guenther <rguenther@suse.de>
967 PR tree-optimization/48172
968 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
969 multiplying by number of iterations for equal step.
970 (vect_create_cond_for_alias_checks): Likewise.
972 2011-05-13 Andreas Schwab <schwab@redhat.com>
974 * configure.ac: Use AS_HELP_STRING throughout.
975 * configure: Regenerate.
977 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
979 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
980 (ix86_emit_restore_regs_using_mov): Likewise.
981 (ix86_emit_restore_sse_regs_using_mov): Likewise.
983 2011-05-12 Anatoly Sokolov <aesok@post.ru>
985 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
986 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
987 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
988 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
989 RTX_OK_FOR_OLO10_P): ...here.
990 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
993 2011-05-12 Kai Tietz <ktietz@redhat.com>
995 * gimplify.c (gimple_boolify): Re-boolify expression
996 arguments even if expression type is of kind BOOLEAN_TYPE.
997 (gimplify_boolean_expr): Removed.
998 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
999 and XOR. Additional take care that we keep expression's type.
1000 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1001 of TRUTH_AND|OR|XOR_EXPR.
1003 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1005 PR tree-optimization/48975
1006 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1007 on all bbs here and free and clear ifc_bbs at the end.
1009 2011-05-12 Richard Guenther <rguenther@suse.de>
1011 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1012 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1013 until after simple checks.
1014 (gimple_types_compatible_p): Likewise.
1015 (iterative_hash_gimple_type): Always hash pointer targets
1016 and function return and argument types.
1017 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1018 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1019 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1020 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1021 completely in the simple compare section.
1022 (gimple_register_canonical_type): Query the cache again after
1025 2011-05-12 Richard Guenther <rguenther@suse.de>
1027 PR tree-optimization/48172
1028 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1029 the number of iterations from the segment size calculation.
1030 (vect_create_cond_for_alias_checks): Adjust.
1032 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1035 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1036 if validate_subreg fails.
1038 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1040 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1041 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1044 2011-05-12 DJ Delorie <dj@redhat.com>
1046 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1047 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1048 created builtin into rx_builtins array.
1049 (rx_builtin_decl): New function.
1050 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1052 2011-05-12 DJ Delorie <dj@redhat.com>
1053 Nick Clifton <nickc@redhat.com>
1055 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1056 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1057 (rx_is_legitimate_address): Add pre-decrement and post-increment
1058 addressing in HImode and QImode. Fix test for out of range
1060 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1061 (rx_align_for_label): Test label before extracting its usage count.
1062 (rx_adjust_insn_lengths): Fix selection of insn codes.
1063 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1065 2011-05-11 Jason Merrill <jason@redhat.com>
1067 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1069 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1071 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1072 reindent the subsequent block.
1074 2011-05-11 Satoru Takabayashi <satorux@google.com>
1075 Paul Pluzhnikov <ppluzhnikov@google.com>
1077 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1078 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1079 * config.in: Add LINKER_HASH_STYLE.
1080 * configure.ac: Add --with-linker-hash-style.
1081 * configure: Regenerate.
1083 2011-05-11 Richard Guenther <rguenther@suse.de>
1086 * gimple.c (iterative_hash_canonical_type): Fix typo.
1088 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1090 * config/i386/i386.c (legitimize_tls_address)
1091 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1092 expanders directly for TARGET_GNU2_TLS. Determine pic and
1093 __tls_get_addr symbol reference here. Update call to
1094 gen_tls_global_dynamic_{32,64} for added arguments.
1095 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1096 expanders directly for TARGET_GNU2_TLS. Determine
1097 __tls_get_addr symbol reference here. Update call to
1098 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1099 unique UNSPEC REG_EQUIV to libcall block.
1100 (ix86_tls_get_addr): Declare static.
1101 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1102 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1103 Do not determine pic and __tls_get_addr symbol reference here. Do not
1104 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1105 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1106 (tls_global_dynamic_64): Add operand 2. Do not determine
1107 __tls_get_addr symbol reference here. Do not call
1108 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1109 (tls_local_dynamic_base64): Ditto for operand 1.
1111 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1113 * function.c (expand_function_start): Initialize stack_check_probe_note
1114 only if the generic stack checking mechanism is used.
1116 2011-05-11 Richard Guenther <rguenther@suse.de>
1118 PR tree-optimization/15256
1119 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1120 (A & B) | C, combine (A op CST1) op CST2.
1121 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1122 visit assigns that have uses.
1124 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1126 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1127 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1128 (unpack_ts_type_common_value_fields): ...this. Update comment.
1129 (unpack_value_fields): Adjust for renaming.
1130 (lto_input_ts_type_tree_pointers): Split into...
1131 (lto_input_ts_type_common_tree_pointer): ...this and...
1132 (lto_input_ts_type_non_common_tree_pointers): ...this.
1133 (lto_input_tree_pointers): Adjust for above split.
1134 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1135 (pack_ts_type_common_value_fields): ...this. Update comment.
1136 (lto_output_ts_type_tree_pointers): Split into...
1137 (lto_output_ts_type_common_tree_pointers): ...this and...
1138 (lto_output_ts_type_non_common_tree_pointers): ...this.
1139 (lto_output_tree_pointers): Adjust for above split.
1140 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1141 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1142 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1143 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1145 (struct tree_type): Split into...
1146 (struct tree_type_common: ...this and...
1147 (struct tree_type_with_lang_specific): ...this and...
1148 (struct tree_type_non_common): ...this. Adjust accessor macros
1150 (TYPE_VALUES_RAW): Define.
1151 (union tree_node): Update for above changes.
1152 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1154 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1155 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1156 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1157 * treestructu.def (TS_TYPE): Remove.
1158 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1161 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1164 * tree-ssa.c (reset_debug_uses): New function.
1165 * tree-flow.h (reset_debug_uses): New prototype.
1166 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1167 * tree-loop-distribution.c (generate_loops_for_partition): Call
1168 reset_debug_uses on the stmts that will be removed. Keep around
1169 all debug stmts, don't count them as bits in partition bitmap.
1170 (generate_builtin): Don't count debug stmts or labels as bits in
1173 2011-05-11 Richard Guenther <rguenther@suse.de>
1175 * gimple.c (gimple_type_hash_1): Merge with ...
1176 (gimple_type_hash): ... this.
1177 (gtc_visit): Remove mode parameter and simplify accordingly.
1178 (gimple_types_compatible_p_1): Likewise.
1179 (gimple_types_compatible_p): Likewise.
1180 (iterative_hash_gimple_type): Likewise.
1182 (gimple_type_eq): Adjust.
1184 2011-05-11 Revital Eres <revital.eres@linaro.org>
1186 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1187 enters the branch create an anti edge in the opposite direction
1188 to prevent the creation of reg-moves.
1189 * modulo-sched.c: Adjust comment to reflect the fact we are
1190 scheduling closing branch.
1191 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1192 (stage_count): New field in struct partial_schedule.
1193 (calculate_stage_count): New function.
1194 (normalize_sched_times): Rename to reset_sched_times and handle
1195 incrementing the sched time of the nodes by a constant value
1196 passed as parameter.
1197 (duplicate_insns_of_cycles): Skip closing branch.
1198 (sms_schedule_by_order): Schedule closing branch.
1199 (ps_insn_find_column): Handle closing branch.
1200 (sms_schedule): Call reset_sched_times and adjust the code to
1201 support scheduling of the closing branch.
1202 (ps_insert_empty_row): Update calls to normalize_sched_times
1203 and rotate_partial_schedule functions.
1205 2011-05-11 Richard Guenther <rguenther@suse.de>
1208 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1210 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1212 * opts.c (finish_options): Move warning settings from process_options.
1213 * toplev.c (process_options): Move warning settings to finish_options.
1215 2011-05-11 Richard Guenther <rguenther@suse.de>
1217 PR tree-optimization/18041
1218 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1219 (simplify_bitwise_binary): ... this. Handle operand conversions
1220 by applying them to the result instead.
1221 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1223 2011-05-11 Richard Guenther <rguenther@suse.de>
1225 * gimple.c (gimple_canonical_types_compatible_p): Split out
1226 from gimple_types_compatible_p and friends. Do not recurse
1227 to pointed-to types.
1228 (gimple_canonical_type_eq): Use it.
1229 (iterative_hash_canonical_type): Split out from
1230 iterative_hash_gimple_type and friends. Do not recurse
1231 to pointed-to types.
1232 (gimple_canonical_type_hash): Use it, allocate the hash here.
1234 2011-05-11 Revital Eres <revital.eres@linaro.org>
1236 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1239 2011-05-11 Revital Eres <revital.eres@linaro.org>
1241 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1242 instead of PREV_INSN.
1244 2011-05-11 Revital Eres <revital.eres@linaro.org>
1246 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1247 * loop-doloop.c (doloop_condition_get): Likewise.
1248 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1250 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1252 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1254 * tree.def (CASE_LABEL_EXPR): Add an operand.
1255 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1257 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1259 * c-decl.c (c_override_global_bindings_to_false): Remove.
1260 (global_bindings_p): Don't check
1261 c_override_global_bindings_to_false.
1262 * c-tree.h (c_override_global_bindings_to_false): Remove.
1263 * c-typeck.c (composite_type): Don't set
1264 c_override_global_bindings_to_false.
1266 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1268 PR target/48857, 48495
1269 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1271 (VSX_MOVE_MODE): Ditto.
1272 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1273 VSX vector types. Add V2DImode.
1274 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1275 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1276 (MODES_TIEABLE_P): Ditto.
1278 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1279 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1281 (init_cumulative_args): Ditto.
1282 (rs6000_function_arg_boundary): Ditto.
1283 (rs6000_function_arg_advance_1): Ditto.
1284 (rs6000_function_arg): Ditto.
1285 (rs6000_function_ok_for_sibcall): Ditto.
1286 (emit_frame_save): Ditto.
1287 (rs6000_function_value): Ditto.
1288 (rs6000_libcall_value): Ditto.
1290 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1292 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1293 i386/darwin-lib.h to $libgcc_tm_file.
1294 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1296 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1298 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1300 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1302 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1303 * config/rs6000/rs6000-tables.opt: New file (generated).
1304 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1305 rs6000/rs6000-tables.opt to extra_options.
1306 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1307 * config/rs6000/rs6000.c (rs6000_select): Remove.
1308 (processor_target_table): Move contents to rs6000-cpus.def.
1309 (darwin_rs6000_override_options): Check
1310 global_options_set.x_rs6000_cpu_index instead of
1311 rs6000_select[1].string.
1312 (rs6000_option_override_internal): Likewise.
1313 (rs6000_handle_option): Don't assert that global structures are in
1314 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1315 (rs6000_default_cpu): New variable.
1316 (rs6000_file_start): Set it instead of local default_cpu. Check
1317 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1318 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1319 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1320 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1321 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1322 rs6000_select): Remove.
1323 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1325 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1326 * config/rs6000/t-rs6000
1327 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1328 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1329 global_options_set.x_rs6000_cpu_index instead of
1330 rs6000_select[1].string.
1331 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1332 global_options_set.x_rs6000_cpu_index instead of
1333 rs6000_select[1].string.
1335 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1337 * config.gcc (libgcc_tm_file): Define instead of including files
1338 from ../../libgcc/config/ in tm_file.
1339 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1340 * configure: Regenerate.
1341 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1342 libgcc_tm.h, cs-libgcc_tm.h): New.
1343 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1344 (clean): Remove libgcc_tm.h.
1345 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1346 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1347 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1349 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1352 * config/avr/avr.c (avr_ret_register): Return unsigned int
1354 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1355 it to avr_libcall_value.
1356 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1358 (avr_expand_binop_builtin): Ditto.
1359 (avr_expand_unop_builtin): Ditto.
1361 2011-05-10 DJ Delorie <dj@redhat.com>
1363 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1364 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1365 * config/rx/rx.c (rx_align_for_label): Add label and
1366 uses_threshold parameters. Do not align when the label is not
1368 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1370 2011-05-10 Richard Guenther <rguenther@suse.de>
1372 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1373 a series of conversions and apply foldings similar to what
1375 (tree_ssa_forward_propagate_single_use_vars): Call it.
1377 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1379 PR tree-optimization/48611
1380 PR tree-optimization/48794
1381 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1382 referenced from RESX or EH_DISPATCH arguments.
1385 * dfp.c (decimal_to_decnumber): Handle conversion from
1386 dconst{1,2,m1,half}.
1388 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1390 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1391 for !flag_prefer_avx128.
1392 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1394 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1396 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1397 (fold_ternary_loc): Use expr_location_or.
1399 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1402 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1403 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1404 Pmode and mem_mode is not VOIDmode.
1406 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1408 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1409 TYPE_QUAL_RESTRICT): Convert to enum.
1411 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1413 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1414 (const_pow2_1_to_8_operand): Ditto.
1415 (const_pow2_1_to_128_operand): Ditto.
1416 (const_pow2_1_to_32768_operand): Ditto.
1417 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1418 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1419 in insn constraint to check integer value of operand 3.
1420 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1422 (PINSR_MODE): New mode iterator.
1423 (sse2p4_1): New mode attribute.
1424 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1425 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1426 iterator. Use const_int_operand instead of
1427 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1428 exact_log2 in insn constraint to check integer value of operand 3.
1430 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1432 * config/i386/sse.md (blendbits): Remove mode attribute.
1433 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1434 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1435 Check integer value of operand 3 in insn constraint.
1437 2011-05-09 Richard Guenther <rguenther@suse.de>
1439 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1441 (lto_symtab_merge): Likewise. Do not register types here.
1442 (lto_symtab_merge_decls_2): Likewise.
1443 (lto_symtab_merge_decls_1): Likewise.
1444 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1445 * gimple.c (enum gtc_mode): Declare.
1446 (gimple_types_compatible_p): Make static.
1448 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1450 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1451 temporary register to match Pmode.
1453 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1455 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1456 and *vec_concatv4si_1_avx.
1458 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1460 PR rtl-optimization/48927
1461 * ira-conflicts.c (commutative_constraint_p): Use
1462 recog_data.alternative_enabled_p to disable alternatives where
1463 "enabled" attribute is false.
1464 (get_dup_num): Ditto.
1465 * ira-lives.c (single_reg_class): Ditto.
1466 (ira_implicitly_set_insn_hard_regs): Ditto.
1468 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1470 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1471 (dataflow_set_preserve_mem_locs): Likewise.
1473 2011-05-09 Philipp Thomas <pth@suse.de>
1475 * config/mep/mep.c (mep_validate_vliw): Syntax description
1476 should not be translated.
1478 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1480 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1481 * config/mips/mips-tables.opt: New file (generated).
1482 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1483 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1484 MIPS_ARCH_OPTION_NATIVE): Define.
1485 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1487 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1488 mips_parse_cpu): Remove.
1489 (mips_cpu_info_from_opt, mips_default_arch): New.
1490 (mips_handle_option): Don't assert that global structures are in
1491 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1492 (mips_option_override): Use new variables and functions to set
1493 state of these options. Use strcmp to check for individual CPU names.
1494 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1496 * config/mips/mips.opt (march=): Use ToLower and Enum.
1497 (mips): Use ToLower, Enum and Var.
1498 (mtune=): Use ToLower and Enum.
1499 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1501 2011-05-08 Jan Hubicka <jh@suse.cz>
1503 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1504 Arrange type pairs to be UID ordered.
1505 (gimple_lookup_type_leader): Make inline.
1507 2011-05-09 Nick Clifton <nickc@redhat.com>
1510 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1514 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1517 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1519 * combine.c (simplify_comparison): Abstract out parts into...
1520 (simplify_compare_const): ... new function.
1521 (try_combine): Generalize parallel arithmetic/compare combining
1522 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1524 2011-05-08 Jan Hubicka <jh@suse.cz>
1526 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1527 (cgraph_create_virtual_clone): Call hooks once virtual clone
1529 * cgraph.h (cgraph_clone_node): Update prototype.
1530 * ipa-cp.c (ipcp_estimate_growth): Use
1531 estimate_ipcp_clone_size_and_time.
1532 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1533 * lto-cgraph.c (input_node): Update.
1534 * ipa-inline.c (recursive_inlining): Update.
1535 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1536 (evaluate_conditions_for_known_args): Break out from ...
1537 (evaluate_conditions_for_edge): ... here.
1538 (evaluate_conditions_for_ipcp_clone): New function.
1539 (inline_node_duplication_hook): Update clone summary based
1541 (estimate_callee_size_and_time): Rename to ...
1542 (estimate_node_size_and_time): take NODE instead of EDGE;
1543 take POSSIBLE_TRUTHS as argument.
1544 (estimate_callee_size_and_time): Update.
1545 (estimate_ipcp_clone_size_and_time): New function.
1546 (do_estimate_edge_time): Update.
1548 2011-05-08 Richard Guenther <rguenther@suse.de>
1552 * expmed.c (expand_shift_1): Compute adjusted constant shift
1555 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1557 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1559 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1561 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1563 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1565 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1567 2011-05-07 Jan Hubicka <jh@suse.cz>
1569 * ipa-inline-transform.c (inline_call): Account when program size
1571 * ipa-inline.c (relative_time_benefit): New function.
1572 (edge_badness): Reorganize to be power 2 based; fix thinko when
1573 computing badness for negative growth; update comments to match
1574 reality; better dumps.
1576 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1578 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1579 type to bool and adjust comment.
1580 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1581 (fold_mathfn_compare): Remove calls to global_bindings_p.
1582 (fold_inf_compare): Likewise.
1583 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1584 * c-tree.h (global_bindings_p): Adjust prototype.
1585 * c-decl.c (global_bindings_p): Return bool and simplify.
1587 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1589 PR tree-optimization/48837
1590 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1591 when accumulator transformation is performed.
1593 2011-05-06 Jan Hubicka <jh@suse.cz>
1595 * i386.h (ix86_tune_indices): Add
1596 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1597 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1598 * i386.c (initial_ix86_tune_features): Add
1599 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1600 (software_prefetching_beneficial_p): Remove predicate.
1601 (ix86_option_override_internal): Use new macro.
1603 2011-05-06 Jan Hubicka <jh@suse.cz>
1605 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1607 2011-05-06 Jan Hubicka <jh@suse.cz>
1609 * cgraph.c (cgraph_add_thunk): Create real function node instead
1610 of alias node; finalize it and mark needed/reachale; arrange visibility
1611 to be right and add it into the corresponding same comdat group list.
1612 (dump_cgraph_node): Dump thunks.
1613 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1614 cgraph_function_with_gimple_body_p,
1615 cgraph_first_function_with_gimple_body,
1616 cgraph_next_function_with_gimple_body): New functions.
1617 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1619 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1620 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1621 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1622 devirtualization when optimizing.
1623 (verify_cgraph_node): Verify thunks.
1624 (cgraph_analyze_function): Analyze thunks.
1625 (cgraph_mark_functions_to_output): Output thunks only in combination
1626 with function they are assigned to.
1627 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1628 alias into normal node.
1629 (assemble_thunks): New functoin.
1630 (cgraph_expand_function): Use it.
1631 * lto-cgraph.c (lto_output_node): Stream thunks.
1632 (input_overwrite_node): Stream in thunks.
1633 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1634 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1635 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1636 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1637 (inline_analyze_function): Do not care about thunk jump functions.
1638 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1639 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1640 cgraph_function_with_gimple_body_p.
1641 * passes.c (do_per_function_toporder): Use
1642 cgraph_function_with_gimple_body_p.
1643 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1644 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1645 (function_called_by_processed_nodes_p): Likewise.
1647 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1649 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1650 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1652 (mabi=): Replace with separate entries for mabi=altivec,
1653 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1654 mabi=ieeelongdouble and mabi=ibmlongdouble.
1655 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1656 check for -mabi=spe without SPE ABI support here.
1657 (rs6000_handle_option): Replace OPT_mabi_ handling with
1658 OPT_mabi_altivec and OPT_mabi_spe handling.
1660 2011-05-06 Cary Coutant <ccoutant@google.com>
1662 * dwarf2out.c (contains_subprogram_definition): New function.
1663 (should_move_die_to_comdat): Call it.
1665 2011-05-06 Jeff Law <law@redhat.com>
1667 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1668 remove_ctrl_stmt_and_useless_edges.
1669 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1670 (fixup_template_block, thread_single_edge): Likewise.
1671 (mark_threaded_blocks): Use THREAD_TARGET.
1673 2011-05-06 Alan Modra <amodra@gmail.com>
1676 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1677 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1679 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1681 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1682 constraint modifier to "r".
1684 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1686 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1687 fall through for OPT_mcmodel_.
1689 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1691 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1693 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1695 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1698 * config/arm/arm.opt (marm): Document it.
1699 (mthumb): Reject negative variant.
1701 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1704 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1705 Fix typo in "ccvt" variable name.
1707 2011-05-06 Tristan Gingold <gingold@adacore.com>
1710 * config/vms/vms-ar.c (main): Remove cwd variable.
1712 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1715 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1717 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1719 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1720 * gimplify.c (gimplify_switch_expr): Likewise.
1721 * omp-low.c (expand_omp_sections): Likewise.
1722 * tree-eh.c (lower_try_finally_switch): Likewise.
1723 (lower_eh_dispatch): Likewise.
1724 * tree.h (build_case_label): Declare.
1725 * tree.c (build_case_label): Define.
1727 2011-05-05 Jason Merrill <jason@redhat.com>
1730 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1731 (copy_statement_list): Don't recurse.
1732 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1735 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1737 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1738 through from -mfpu= handling.
1739 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1741 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1743 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1746 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1748 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1750 (hppa[12]*-*-hpux11*): Ditto.
1751 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1752 * config/ia64/hpux-unix2003.h: New.
1753 * config/pa/pa-hpux1131.opt: New.
1754 * config/pa/pa-hpux1131.h: New.
1755 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1756 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1757 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1759 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1762 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1763 instead of mode as 3rd argument to recursive call.
1764 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1765 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1767 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1768 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1769 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1770 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1772 2011-05-05 Julian Brown <julian@codesourcery.com>
1774 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1775 parenthesis in D-register case.
1777 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1779 * opt-functions.awk (var_type_struct): Handle Enum options.
1780 * optc-gen.awk: Don't check range of variables of character type.
1781 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1782 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1783 rs6000_sdata_name, rs6000_explicit_options): Remove.
1784 (rs6000_option_override_internal): Check for -malign-power here.
1785 Use global_options_set instead of rs6000_explicit_options.
1786 (rs6000_parse_fpu_option): Remove.
1787 (rs6000_handle_option): Access variables via opts and opts_set
1788 pointers. Use error_at and warning_at. Add fall-through
1789 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1790 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1791 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1792 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1793 here. Don't use rs6000_parse_fpu_option.
1794 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1795 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1796 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1798 (mspe): Use Var and Save.
1799 (mtraceback=): Use Enum and Var.
1800 (rs6000_traceback_type): New Enum and EnumValue entries.
1801 (mfloat-gprs=): Use Enum, Var and Save.
1802 (rs6000_float_gprs): New Enum and EnumValue entries.
1803 (mlong-double-): use Var and Save.
1804 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1805 (malign-): Use Enum and Var.
1806 (rs6000_alignment_flags): New Enum and EnumValue entries.
1808 (fpu_type_t): New Enum and EnumValue entries.
1809 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1810 global_options_set instead of rs6000_explicit_options.
1811 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1812 global_options_set instead of rs6000_explicit_options.
1813 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1814 global_options_set instead of rs6000_explicit_options.
1815 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1816 global_options_set instead of rs6000_explicit_options.
1817 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1818 global_options_set instead of rs6000_explicit_options.
1819 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1820 global_options_set instead of rs6000_explicit_options.
1821 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1823 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1824 global_options_set instead of rs6000_explicit_options.
1825 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1826 (rs6000_cmodel): New Enum and EnumValue entries.
1827 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1828 global_options_set instead of rs6000_explicit_options.
1829 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1830 (mtls-size=): Use Enum and Var.
1831 (rs6000_tls_size): New Enum and EnumValue entries.
1833 2011-05-05 Michael Matz <matz@suse.de>
1835 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1836 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1837 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1838 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1839 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1840 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1841 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1842 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1843 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1844 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1845 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1846 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1847 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1848 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1849 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1850 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1852 2011-05-05 Richard Guenther <rguenther@suse.de>
1854 * expmed.c (expand_variable_shift): Rename to ...
1855 (expand_shift_1): ... this. Take an expanded shift amount.
1856 For rotates recurse directly not building trees for the shift amount.
1857 (expand_variable_shift): Wrap around expand_shift_1.
1858 (expand_shift): Adjust.
1860 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1862 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1864 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1866 * tree.h (get_pending_sizes): Remove prototype.
1867 (put_pending_size): Likewise.
1868 (put_pending_sizes): Likewise.
1869 * stor-layout.c (pending_sizes): Delete.
1870 (get_pending_sizes): Likewise.
1871 (put_pending_size): Likewise.
1872 (put_pending_sizes): Likewise.
1873 (variable_size): Do not call put_pending_size and tidy up.
1874 * function.h (struct function): Remove dont_save_pending_sizes_p.
1875 * lto-streamer-in.c (input_function): Do not stream it.
1876 * lto-streamer-out.c (output_function): Likewise.
1877 * tree-inline.c (initialize_cfun): Do not copy it.
1878 * c-decl.c (store_parm_decls): Do not set it.
1879 * omp-low.c (create_task_copyfn): Likewise.
1880 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1882 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1884 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1886 (*movdf_internal): Ditto.
1887 (*movdf_internal_nointeger): Ditto.
1888 (*movsf_internal): Ditto.
1890 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1892 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1893 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1894 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1895 (c_variable_size): Remove.
1896 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1897 call put_pending_sizes.
1898 (get_parm_info): Add parameter expr. Use it to set
1899 arg_info->pending_sizes.
1900 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1902 * c-parser.c (c_parser_parms_declarator): Update call to
1903 c_parser_parms_list_declarator.
1904 (c_parser_parms_list_declarator): Take parameter expr. Update
1905 call to push_parm_decl. Update recursive call. Don't call
1906 get_pending_sizes. Update calls to get_parm_info.
1907 (c_parser_objc_method_definition): Update calls to
1908 c_parser_objc_method_decl and objc_start_method_definition.
1909 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1910 (c_parser_objc_method_decl): Add parameter expr. Update call to
1912 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1913 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1914 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1916 2011-05-05 Michael Hope <michael.hope@linaro.org>
1919 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1922 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1924 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1925 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1926 (spu_output_mi_thunk): New function.
1928 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1930 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1931 targetm.asm_out.print_operand.
1932 * config/sol2.c: Include target.h.
1934 2011-05-04 Jan Hubicka <jh@suse.cz>
1936 * ipa-inline.c (reset_edge_caches): New function.
1937 (update_caller_keys): Add check_inlinablity_for; do not
1938 reset edge caches; remove now unnecesary loop.
1939 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1940 (update_all_callee_keys): Likewise.
1941 (inline_small_functions): Sanity check cache; update code
1944 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1946 PR rtl-optimization/47612
1947 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1948 as the last insn of the sequence to be moved.
1950 2011-05-04 Tobias Burnus <burnus@net-b.de>
1953 * doc/invoke.texi (Ofast): Document that it
1954 enables Fortran's -fno-protect-parens.
1956 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1958 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1960 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1962 * stor-layout.c (variable_size): Do not issue errors.
1964 2011-05-04 Richard Guenther <rguenther@suse.de>
1966 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1967 for array-ref indices.
1968 (tree_coverage_counter_addr): Likewise.
1969 (build_fn_info_type): Use size_int for index types.
1970 (build_gcov_info): Likewise.
1972 2011-05-04 Richard Guenther <rguenther@suse.de>
1974 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1976 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1977 for constructor indices.
1978 (push_init_level): Likewise.
1980 2011-05-04 Richard Guenther <rguenther@suse.de>
1982 * explow.c (promote_mode): Move variable declarations before code.
1984 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1986 * tree.h (build_function_type_array): Declare.
1987 (build_varargs_function_type_array): Declare.
1988 (build_function_type_vec, build_varargs_function_type_vec): Define.
1989 * tree.c (build_function_type_array_1): New function.
1990 (build_function_type_array): New function.
1991 (build_varargs_function_type_array): New function.
1993 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1995 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1996 before setting STMT_VINFO_TYPE.
1998 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2000 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2001 instead of spu_pass_by_reference.
2003 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2005 * calls.c (emit_library_call_value_1): Invoke
2006 promote_function_mode hook on libcall arguments.
2007 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2008 argument being NULL.
2009 * targhooks.c (default_promote_function_mode): Lisewise.
2010 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2011 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2013 * doc/tm.texi: Document that TYPE argument might be NULL.
2015 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2017 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2019 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2022 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2024 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2026 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2027 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2029 * mips-tfile.c: ... here.
2030 Don't include coretypes.h, tm.h, filenames.h.
2031 (saber_stop): Remove definition and all calls.
2032 [__SABER__]: Remove.
2033 (__LINE__): Remove default.
2034 (Size_t, Ptrdiff_t): Remove definitions.
2035 Replace by size_t, ptrdiff_t.
2036 [!MIPS_DEBUGGING_INFO]: Remove.
2037 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2038 (progname): Add const.
2040 Replace all uses by static.
2041 (ALIGN_SYMTABLE_OFFSET): Remove default.
2042 * mips-tdump.c: Don't include coretypes.h, tm.h.
2043 Remove !MIPS_IS_STAB guard.
2044 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2045 $(TM_H), filenames.h dependencies.
2046 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2048 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2051 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2052 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2054 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2057 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2058 account and save/restore RETS.
2059 (PROFILE_BEFORE_PROLOGUE): Define.
2060 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2061 the push insn to use predecrement.
2063 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2066 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2068 2011-05-04 Nick Clifton <nickc@redhat.com>
2070 * config/mn10300/mn10300.c: Include cfgloop.h.
2072 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2073 Lcc or a FLcc insn into the instruction stream.
2074 (mn10300_block_contains_call): New function. Returns true if the
2075 given basic block contains a CALL insn.
2076 (mn10300_loop_contains_call_insn): New function. Returns true if
2077 the given loop contains a CALL insn.
2078 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2079 to use the SETLB and Lcc or FLcc insns.
2080 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2081 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2082 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2083 disable the SETLB optimization.
2084 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2085 __SETLB__ or __NO_SETLB__.
2086 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2087 (movsf_internal): Handle MDR register.
2088 (cmpsi): Make visible.
2089 (setlb): New pattern.
2091 (FLcc): New pattern.
2093 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2096 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2097 for reg<->xmm moves.
2098 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2099 (vec_concatv2di_rex64_sse): Ditto.
2100 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2101 (*vec_extractv2di_1_rex64): Ditto.
2104 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2106 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2108 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2110 2011-05-04 Richard Guenther <rguenther@suse.de>
2112 * tree.h (int_const_binop): Remove notrunc argument.
2113 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2114 create integer constants that are properly truncated.
2115 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2116 (const_binop): Remove zero notrunc argument to int_const_binop.
2117 (size_binop_loc): Likewise.
2118 (fold_div_compare): Likewise.
2119 (maybe_canonicalize_comparison_1): Likewise.
2120 (fold_comparison): Likewise.
2121 (fold_binary_loc): Likewise.
2122 (multiple_of_p): Likewise.
2123 * expr.c (store_constructor): Likewise.
2124 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2125 (maybe_fold_stmt_addition): Likewise.
2126 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2127 * stor-layout.c (layout_type): Likewise.
2128 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2129 * tree-sra.c (build_ref_for_offset): Likewise.
2130 (build_user_friendly_ref_for_offset): Likewise.
2131 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2132 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2133 * tree-ssa-loop-niter.c (inverse): Likewise.
2134 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2135 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2136 * tree-switch-conversion.c (check_range): Likewise.
2137 (build_constructors): Likewise.
2138 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2139 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2140 (extract_range_from_assert): Likewise.
2141 (vrp_int_const_binop): Likewise.
2142 (extract_range_from_binary_expr): Likewise.
2143 (extract_range_from_unary_expr): Likewise.
2144 (check_array_ref): Likewise.
2145 (find_case_label_range): Likewise.
2146 (simplify_div_or_mod_using_ranges): Likewise.
2147 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2148 comparing case labels for merging.
2150 2011-05-03 Mark Wielaard <mjw@redhat.com>
2152 * dwarf2out.c (debug_str_hash_forced): Removed.
2153 (gen_label_for_indirect_string): Removed.
2154 (get_debug_string_label): Removed.
2155 (AT_string_form): Generate label directly.
2156 (output_indirect_string): Test indirect_string_node for
2157 DW_FORM_strp instead of checking label and refcount.
2158 (prune_indirect_string): Removed.
2159 (prune_unused_types): Don't check debug_str_hash_forced or
2160 call prune_indirect_string.
2162 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2165 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2167 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2171 * combine.c (try_combine): Skip debug insns at m_split tests.
2173 2011-04-26 Mark Wielaard <mjw@redhat.com>
2176 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2177 when info_section_emitted.
2179 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2181 * config/mips/mips-opts.h: New.
2182 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2184 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2185 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2186 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2188 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2190 (mips_abi, mips_code_readable): Don't declare.
2191 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2192 (mabi=): Use Enum and Var.
2193 (mips_abi): New Enum and EnumValue entries.
2194 (mcode-readable=): Use Enum and Var.
2195 (mips_code_readable_setting): New Enum and EnumValue entries.
2196 (mr10k-cache-barrier=): Use Enum and Var.
2197 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2199 2011-05-03 Jan Hubicka <jh@suse.cz>
2201 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2202 replace hash by pointer map.
2203 (cgraph_node_set_element_def, cgraph_node_set_element,
2204 const_cgraph_node_set_element, varpool_node_set_element_def,
2205 varpool_node_set_element, const_varpool_node_set_element): Remove.
2206 (free_cgraph_node_set, free_varpool_node_set): New function.
2207 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2208 * tree-emutls.c: Free varpool node set.
2209 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2210 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2211 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2212 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2213 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2214 Move here from ipa.c; implement using pointer_map
2215 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2216 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2217 debug_cgraph_node_set, varpool_node_set_new,
2218 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2219 dump_varpool_node_set, debug_varpool_node_set):
2220 Move to ipa-uitls.c.
2221 * passes.c (ipa_write_summaries): Update.
2223 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2225 From Mike Frysinger:
2226 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2227 bf542/bf544/bf547/bf548/bf549.
2229 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2231 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2233 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2236 * config/bfin/bfin.md (MOVCC): New mode_macro.
2237 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2238 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2239 comments from generated assembly.
2241 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2244 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2245 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2246 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2247 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2248 * config/bfin/lib1funcs.asm (___muldi3): New function.
2250 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2252 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2253 build_function_type_list instead of build_function_type.
2254 Rearrange initialization of `args' to do so.
2256 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2258 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2259 instead of build_function_type.
2261 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2263 * config/rs6000/rs6000.c (spe_init_builtins): Call
2264 build_function_type_list instead of build_function_type.
2265 (paired_init_builtins, altivec_init_builtins): Likewise.
2266 (builtin_function_type): Likewise.
2268 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2270 * config/sh/sh.c (sh_media_init_builtins): Call
2271 build_function_type_list instead of build_function_type.
2273 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2275 * config/sparc/sparc.c (sparc_file_end): Call
2276 build_function_type_list instead of build_function_type.
2278 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2280 * config/alpha/alpha.c (alpha_init_builtins): Call
2281 build_function_type_list instead of build_function_type.
2283 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2285 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2286 build_function_type_list instead of build_function_type.
2288 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2290 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2291 build_function_type_list instead of build_function_type.
2292 Delete `endlink' variable.
2294 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2296 * config/avr/avr.c (avr_init_builtins): Call
2297 build_function_type_list instead of build_function_type.
2299 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2301 * config/picochip/picochip.c (picochip_init_builtins): Call
2302 build_function_type_list instead of build_function_type.
2303 Delete `endlink' variable.
2305 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2307 * config/bfin/bfin.c (bfin_init_builtins): Call
2308 build_function_type_list instead of build_function_type.
2310 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2313 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2314 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2316 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2319 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2320 libbffastfp overrides libgcc when -mfast-fp.
2322 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2324 Originally from Bernd Schmidt
2325 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2326 * config/bfin/bfin.c (override_options): Test it and error if
2329 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2331 Originally From Bernd Schmidt
2332 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2335 2011-05-03 Jeff Law <law@redhat.com>
2337 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2338 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2339 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2340 than accessing AUX field directly. Free the AUX field before
2342 (thread_block, thread_through_loop_header): Likewise.
2343 (thread_single_edge, mark_threaded_blocks): Likewise.
2344 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2345 (register_jump_thread): Do not attempt to thread to a NULL edge.
2347 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2349 * function.c (init_function_start): Call decide_function_section.
2350 * varasm.c (decide_function_section): New function.
2351 (assemble_start_function): When not using
2352 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2353 or first_function_block_is_cold.
2354 * rtl.h (decide_function_section): Declare.
2356 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2357 Jakub Jelinek <jakub@redhat.com>
2360 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2361 only succeed if req_mode is the same as set_mode.
2363 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2365 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2366 * genemit.c (gen_exp): Handle RETURN.
2367 * emit-rtl.c (verify_rtx_sharing): Likewise.
2368 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2369 * rtl.c (copy_rtx): RETURN is shared.
2370 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2372 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2373 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2374 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2375 * config/cris/cris.c (cris_expand_return): Likewise.
2376 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2377 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2378 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2379 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2380 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2382 * config/v850/v850.c (expand_epilogue): Likewise.
2383 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2384 * config/arm/arm.md (epilogue): Likewise.
2385 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2386 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2387 variable to ret_reg.
2389 2011-05-03 Richard Guenther <rguenther@suse.de>
2392 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2393 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2394 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2396 2011-05-03 Richard Guenther <rguenther@suse.de>
2398 * c-decl.c (grokdeclarator): Instead of looking at
2399 TREE_OVERFLOW check if the constant fits in the index type.
2401 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2403 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2404 (vec_store_lanes<mode><mode>): Likewise.
2406 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2408 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2409 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2410 convert_optab_index values.
2411 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2412 * genopinit.c (optabs): Initialize the new optabs.
2413 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2414 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2415 (expand_STORE_LANES): New functions.
2416 * tree.h (build_array_type_nelts): Declare.
2417 * tree.c (build_array_type_nelts): New function.
2418 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2419 (vect_model_load_cost): Likewise.
2420 (vect_store_lanes_supported, vect_load_lanes_supported)
2421 (vect_record_strided_load_vectors): Declare.
2422 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2423 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2424 (vect_transform_strided_load): Split out statement recording into...
2425 (vect_record_strided_load_vectors): ...this new function.
2426 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2427 (write_vector_array, create_array_ref): New functions.
2428 (vect_model_store_cost): Add store_lanes_p argument.
2429 (vect_model_load_cost): Add load_lanes_p argument.
2430 (vectorizable_store): Try to use store-lanes functions for
2432 (vectorizable_load): Likewise load-lanes and loads.
2433 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2434 to vect_model_store_cost.
2435 (vect_build_slp_tree): Likewise vect_model_load_cost.
2437 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2439 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2440 * hooks.c (hook_bool_mode_uhwi_false): New function.
2441 * target.def (array_mode_supported_p): New hook.
2442 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2443 * doc/tm.texi: Regenerate.
2444 * stor-layout.c (mode_for_array): New function.
2445 (layout_type): Use it.
2446 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2447 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2449 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2452 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2453 for -fstack-check if the size to allocate is negative.
2455 2011-05-02 Lawrence Crowl <crowl@google.com>
2457 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2458 (timevar_cond_start): New for starting a timer only when it is not
2460 (timevar_cond_stop): New for stopping a timer when it was not already
2463 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2464 (timevar_cond_start): New as above.
2465 (timevar_cond_stop): New as above.
2467 * timevar.def: Add start/stop timers for compiler phases,
2468 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2469 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2470 and TV_PHASE_FINALIZE.
2471 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2472 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2473 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2474 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2475 Make unused TV_OVERLOAD into a start/stop timer.
2477 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2478 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2479 to indicate that they are start/stop timers.
2481 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2482 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2483 Move initialization to do_compile.
2484 (do_compile): Add initialization from above.
2485 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2487 * c-decl.c (c_write_global_declarations): Add start/stop of
2488 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2490 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2491 or TV_PARSE_INLINE, as appropriate.
2492 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2493 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2495 2011-05-02 Jason Merrill <jason@redhat.com>
2498 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2500 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2503 * c-decl.c (finish_decl): Only create a composite if the types are
2506 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2508 * config/fr30/fr30-protos.h (Mmode): Don't define.
2509 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2510 definition where used.
2511 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2512 define. Expand definitions where used.
2513 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2514 Expand definitions where used.
2515 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2516 rx_function_arg, rx_function_arg_advance,
2517 rx_function_arg_boundary): Expand definitions of those macros.
2518 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2519 definition where used.
2521 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2523 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2525 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2526 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2527 with *movv2sf_internal_rex64_avx.
2528 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2529 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2530 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2531 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2532 "vex" in "prefix" attribute calculation.
2533 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2535 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2538 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2539 inputs match the output.
2541 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2544 * config/m68k/m68k.c (m68k_expand_prologue): Set
2545 current_function_static_stack_size.
2547 2011-05-02 Jan Hubicka <jh@suse.cz>
2549 * lto-streamer.c (lto_streamer_cache_insert_1,
2550 lto_streamer_cache_lookup, lto_streamer_cache_create,
2551 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2552 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2554 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2556 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2557 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2558 config/m68k/t-opts: New files.
2559 * config/m68k/m68k-tables.opt: New file (generated).
2560 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2561 extra_options and m68k/t-opts to tmake_file.
2562 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2563 (all_isas): Initialize using m68k-isas.def.
2564 (all_microarchs): Initialize using m68k-microarchs.def.
2565 (m68k_find_selection): Remove.
2566 (m68k_handle_option): Don't assert that global structures are in
2567 use. Use error_at. Access variables via opts pointer. Don't
2568 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2569 directly for -m68020-40 and -m68020-60.
2570 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2571 m68k_tune_entry here.
2572 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2574 (m68k_library_id_string): Remove declaration.
2575 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2576 (m68k_library_id_string): New Variable.
2577 (march=, mcpu=, mtune=): Use Enum and Var.
2579 2011-05-02 Richard Guenther <rguenther@suse.de>
2581 * varasm.c (output_constructor_regular_field): Compute zero-based
2582 index with double-ints. Make sure to ICE instead of producing
2584 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2585 in asserts. Properly use a signed type.
2587 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2589 * config/i386/sse.md (V): New mode iterator.
2590 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2592 (V_256): Rename from AVX256MODE.
2593 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2594 condition to all users.
2596 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2597 condition to all users.
2598 (VF_128): Make V4SF mode unconditional.
2599 (VF_256): Rename from AVX256MODEF2P.
2600 (VI4F_128): Rename from SSEMODE4S.
2601 (VI8F_128): Rename from SSEMODE2D.
2602 (VI4F_256): Rename from AVX256MODE8P.
2603 (VI8F_256): Rename from AVX256MODE4P.
2604 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2605 (ssescalarmodesuffix): Remove SF and DF modes.
2606 (SSEMODE124): Remove.
2607 (SSEMODE1248): Ditto.
2608 (SSEMODEF2P): Ditto.
2609 (AVXMODEF2P): Ditto.
2610 (AVXMODEFDP): Ditto.
2611 (AVXMODEFSP): Ditto.
2612 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2614 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2616 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2617 xop_pcmov_<mode>256. Use V mode iterator.
2619 Adjust RTX patterns globally for renamed mode attributes.
2621 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2623 * haifa-sched.c (sched_emit_insn): Emit insn before first
2624 non-scheduled insn. Inform back-end about new insn. Add
2625 new insn to scheduled_insns list.
2627 2011-05-02 Richard Guenther <rguenther@suse.de>
2629 PR tree-optimization/48822
2630 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2631 (process_scc): Indicate which iteration we start.
2633 2011-05-02 Jan Hubicka <jh@suse.cz>
2635 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2636 (lto_section_overrun): New.
2637 * lto-section-out.c (append_block): Rename to ...
2638 (lto_append_block): ... this one; export.
2639 (lto_output_1_stream): Move lto lto-streamer.h
2640 (lto_output_data_stream): Update.
2641 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2642 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2645 2011-05-02 Richard Guenther <rguenther@suse.de>
2647 * tree.c (tree_code_counts): New global array.
2648 (record_node_allocation_statistics): Count individual tree codes.
2649 (dump_tree_statistics): Dump individual code stats.
2651 2011-05-01 Jan Hubicka <jh@suse.cz>
2653 * ipa-inline.c (caller_growth_limits): Fix thinko when
2654 looking for largest stack frame.
2655 * ipa-inline.h (dump_inline_summary): Declare.
2656 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2658 (dump_inline_summary): Export.
2659 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2661 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2663 * reginfo.c (memory_move_cost): Change rclass argument type form
2664 'enum reg_class' to reg_class_t.
2665 * reload.h (memory_move_cost): Update prototype.
2666 * postreload.c reload_cse_simplify_set): Change type dclass var to
2668 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2670 (ira_allocate_and_set_costs): Change aclass argument type form
2671 'enum reg_class' to reg_class_t.
2672 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2673 Change aclass argument type to reg_class_t.
2674 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2676 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2677 memory_move_cost call.
2679 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2680 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2681 Change type tmp var to reg_class_t.
2683 2011-04-30 Jan Hubicka <jh@suse.cz>
2685 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2686 inlining into function with flatten attribute.
2687 (want_inline_small_function_p): Be more realistic about inlining
2688 cold calls where callee size grows.
2690 2011-04-30 Jan Hubicka <jh@suse.cz>
2692 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2695 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2697 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2698 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2699 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2700 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2701 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2702 (print_operand): Rename to...
2703 (sparc_print_operand): ...this. Make static. Adjust
2704 sparc_print_operand function call.
2705 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2708 2011-04-30 Jan Hubicka <jh@suse.cz>
2711 * ipa-inline.c (early_inliner): Disable when doing late
2712 addition of function.
2714 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2716 * dwarf2out.c (get_address_mode): New inline.
2717 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2718 if not dwarf_strict emit
2719 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2720 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2721 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2722 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2723 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2724 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2725 mem_loc_descriptor callers.
2726 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2727 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2728 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2729 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2730 (base_types): New variable.
2731 (get_base_type_offset, calc_base_type_die_sizes,
2732 base_type_for_mode, mark_base_types, base_type_cmp,
2733 move_marked_base_types): New functions.
2734 (calc_die_sizes): Assert that die_offset is 0 or equal to
2736 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2737 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2738 callers. If not dwarf_strict, call mem_loc_descriptor even for
2739 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2740 (gen_subprogram_die): Don't give up on call site parameters
2741 with non-integral or large integral modes. Adjust
2742 mem_loc_descriptor callers.
2743 (prune_unused_types): Call prune_unused_types_mark on base_types
2745 (resolve_addr): Call mark_base_types.
2746 (dwarf2out_finish): Call move_marked_base_types.
2748 PR tree-optimization/48809
2749 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2751 (gen_inbound_check): Don't compute index_expr - range_min in utype
2752 again, instead reuse SSA_NAME initialized in build_arrays.
2753 Remove two useless gsi_for_stmt calls.
2755 2011-04-29 Jeff Law <law@redhat.com>
2757 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2759 2011-04-29 Martin Jambor <mjambor@suse.cz>
2761 * cgraph.h (cgraph_postorder): Remove declaration.
2762 * ipa-utils.h (ipa_free_postorder_info): Declare.
2763 (ipa_reverse_postorder): Likewise.
2764 * cgraphunit.c: Include ipa-utils.h.
2765 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2766 * ipa-inline.c: Include ipa-utils.h.
2767 (ipa_inline): Update call to ipa_reverse_postorder.
2768 * ipa-pure-const.c (propagate_pure_const): Update call to
2769 ipa_reduced_postorder and ipa_print_order. Call
2770 ipa_free_postorder_info to clean up.
2771 (propagate_nothrow): Likewise.
2772 * ipa-reference.c (propagate): Removed a useless call to
2773 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2774 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2775 * ipa.c: Include ipa-utils.h.
2776 (ipa_profile): Update call to ipa_reverse_postorder.
2777 (cgraph_postorder): Moved to...
2778 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2779 (ipa_utils_print_order): Renamed to ipa_print_order.
2780 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2782 (ipa_free_postorder_info): New function.
2783 * passes.c: Include ipa-utils.h.
2784 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2785 (ipa_write_summaries): Likewise.
2786 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2787 (cgraphunit.o): Likewise.
2789 (ipa-inline.o): Likewise.
2791 2011-04-29 Jan Hubicka <jh@suse.cz>
2793 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2794 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2795 * ipa-inline.h (clause_t): Turn into unsigned int.
2796 * ipa-inline-analysis.c (add_clause): Do more simplification.
2797 (and_predicates): Shortcut more cases.
2798 (predicates_equal_p): Move forward; check that clauses are properly
2800 (or_predicates): Shortcut more cases.
2801 (edge_execution_predicate): Rewrite as...
2802 (set_cond_stmt_execution_predicate): ... this function; handle
2803 __builtin_constant_p.
2804 (set_switch_stmt_execution_predicate): New .
2805 (compute_bb_predicates): New.
2806 (will_be_nonconstant_predicate): Update TODO.
2807 (estimate_function_body_sizes): Use compute_bb_predicates
2808 and free them later, always try to estimate if stmt is constant.
2809 (estimate_time_after_inlining, estimate_size_after_inlining):
2810 Gracefully handle optimized out edges.
2811 (read_predicate): Fix off by one error.
2813 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2815 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2817 2011-04-27 Xinliang David Li <davidxl@google.com>
2819 * tree-profile.c (init_ic_make_global_vars): Set
2820 tls attribute on ic vars.
2821 * coverage.c (coverage_end_function): Initialize
2822 function_list with zero.
2824 2011-04-29 Richard Guenther <rguenther@suse.de>
2826 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2827 for the type of the result.
2828 (fold_builtin_isascii): Likewise.
2829 (fold_builtin_toascii): Use integer_type_node where appropriate.
2830 (fold_builtin_logb): Likewise.
2831 (fold_builtin_frexp): Likewise.
2832 (fold_builtin_strstr): Likewise.
2833 (fold_builtin_strpbrk): Likewise.
2834 (fold_builtin_fputs): Likewise.
2835 (fold_builtin_sprintf): Likewise.
2836 (fold_builtin_snprintf): Likewise.
2837 (fold_builtin_printf): Likewise.
2838 (do_mpfr_remquo): Use a proper type for the assigned constant.
2839 (do_mpfr_lgamma_r): Likewise.
2840 * dwarf2out.c (resolve_one_addr): Use size_int.
2841 * except.c (init_eh): Likewise.
2842 (assign_filter_values): Use integer_type_node for filter values.
2843 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2845 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2846 for EH region numbers.
2847 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2848 for the shift amount.
2850 2011-04-29 Richard Guenther <rguenther@suse.de>
2852 * expr.h (expand_shift): Rename to ...
2853 (expand_variable_shift): ... this.
2854 (expand_shift): Take a constant shift amount.
2855 * expmed.c (expand_shift): Rename to ...
2856 (expand_variable_shift): ... this.
2857 (expand_shift): New wrapper around expand_variable_shift.
2858 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2859 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2860 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2861 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2862 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2863 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2864 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2865 emit_store_flag_1, emit_store_flag): Likewise.
2866 * builtins.c (expand_builtin_signbit): Likewise.
2867 * calls.c (load_register_parameters): Likewise.
2868 * function.c (assign_parm_setup_block): Likewise.
2869 * lower-subreg.c (resolve_shift_zext): Likewise.
2870 * optabs.c (widen_bswap, expand_abs_nojump,
2871 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2872 * spu/spu.c (spu_expand_extv): Likewise.
2873 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2875 2011-04-29 Richard Guenther <rguenther@suse.de>
2877 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2878 for the remapped region number.
2879 * predict.c (build_predict_expr): Use integer_type_node for the
2881 * fold-const.c (fold_binary_loc): Use integer_type_node for
2882 the shift amount. Use a proper type for the PLUS_EXPR operand.
2884 2011-04-29 Michael Matz <matz@suse.de>
2886 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2887 other trees that just builtins.
2888 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2890 2011-04-29 Richard Guenther <rguenther@suse.de>
2892 * tree-nested.c (get_trampoline_type): Use size_int.
2893 (get_nl_goto_field): Likewise.
2894 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2896 (lower_eh_constructs_2): Likewise.
2897 (lower_resx): Likewise.
2898 (lower_eh_dispatch): Likewise.
2899 * tree-mudflap.c (mf_build_string): Use size_int.
2900 (mudflap_register_call): Use integer_type_node for the flag.
2901 (mudflap_enqueue_constant): Use size_int.
2902 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2903 instead of rebuilding it.
2905 2011-04-29 Richard Guenther <rguenther@suse.de>
2907 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2908 Handle OBJ_TYPE_REF.
2909 (find_func_aliases_for_call): Use it more consistently.
2911 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2913 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2914 (rank_for_schedule): Use it.
2915 (schedule_block): Set it.
2917 2011-04-28 David Li <davidxl@google.com>
2919 * tree.c (crc32_string): Use crc32_byte.
2920 (crc32_byte): New function.
2921 * tree.h (crc32_byte): New function.
2922 * gcov.c (read_graph_file): Handle new cfg_cksum.
2923 (read_count_file): Ditto.
2924 * profile.c (instrument_values): Ditto.
2925 (get_exec_counts): Ditto.
2926 (read_profile_edge_counts): Ditto.
2927 (compute_branch_probabilities): Ditto.
2928 (compute_value_histograms): Ditto.
2929 (branch_prob): Ditto.
2930 (end_branch_prob): Ditto.
2931 * coverage.c (read_counts_file): Ditto.
2932 (get_coverage_counts): Ditto.
2933 (tree_coverage_counter_addr): Ditto.
2934 (coverage_checksum_string): Ditto.
2935 (coverage_begin_output): Ditto.
2936 (coverage_end_function): Ditto.
2937 (build_fn_info_type): Ditto.
2938 (build_fn_info_value): Ditto.
2939 * libgcov.c (gcov_exit): Ditto.
2940 * gcov-dump.c (tag_function): Ditto.
2941 (compute_checksum): Remove.
2943 2011-04-29 Alan Modra <amodra@gmail.com>
2945 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2946 unspec plus offset. Tidy macho code.
2948 2011-04-29 Martin Jambor <mjambor@suse.cz>
2950 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2951 node instead of a decl. Update all callers.
2952 * cgraph.h: Update declaration.
2954 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2956 PR tree-optimization/48765
2957 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2958 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2959 to indicate if loop aware SLP is being used. Scan the statements
2960 and update the vectorization factor according to the type of
2961 vectorization before statement analysis.
2962 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2963 pass it to vect_analyze_loop_operations.
2964 (vectorizable_reduction): Set number of copies to 1 in case of pure
2966 * tree-vect-stmts.c (vectorizable_conversion,
2967 vectorizable_assignment, vectorizable_shift,
2968 vectorizable_operation, vectorizable_type_demotion,
2969 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2971 (vectorizable_condition): Move the check that it is not SLP
2972 vectorization before the number of copies check.
2973 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2974 to vectorize the loop using SLP.
2976 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2979 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2982 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2984 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2985 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2986 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2987 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2988 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2990 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2991 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2992 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2993 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2994 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2995 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2997 * config/i386/linux.h (REG_NAME): Don't define.
2998 * config/i386/linux64.h (REG_NAME): Don't define.
2999 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3000 Undefine before defining.
3002 2011-04-28 Jan Hubicka <jh@suse.cz>
3004 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3005 nonconstant_names array.
3006 (estimate_function_body_sizes): Build nonconstant_names array; handle
3007 BUILT_IN_CONSTANT_P.
3009 2011-04-28 Richard Guenther <rguenther@suse.de>
3013 2011-04-28 Richard Guenther <rguenther@suse.de>
3015 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3016 as late as possible.
3018 2011-04-28 Richard Guenther <rguenther@suse.de>
3020 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3021 (debug_constraint): Do it here.
3022 (dump_constraints): And here.
3023 (rewrite_constraints): And here.
3024 (dump_constraint_edge): Remove.
3025 (dump_constraint_graph): Rewrite to produce DOT output.
3026 (solve_constraints): Build succ graph as late as possible.
3027 Dump constraint graphs before and after solving.
3029 2011-04-28 Richard Guenther <rguenther@suse.de>
3031 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3032 New function split out from ...
3033 (find_func_aliases): ... here. Call it.
3034 (find_func_aliases_for_call): Likewise.
3036 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3038 * internal-fn.h (internal_fn_name_array): Declare.
3039 (internal_fn_flags_array): Likewise.
3041 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3044 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3046 (ssemodefsuffix): Remove.
3047 (ssevecmodesuffix): New mode attribute.
3048 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3049 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3050 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3051 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3052 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3053 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3054 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3055 ssemodesuffix mode attribute.
3056 (float splitters): Use ssevecmodesuffix mode attribute.
3057 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3058 (sseinsmode): Rename from avxvecmode.
3059 (avxsizesuffix): Rename from avxmodesuffix.
3060 (sseintvecmode): Rename from avxpermvecmode.
3061 (ssedoublevecmode): Rename from ssedoublesizemode.
3062 (ssehalfvecmode): Rename from avxhalfvecmode.
3063 (ssescalarmode): Rename from avxscalarmode.
3064 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3065 templates for ssemodesuffix mode attribute.
3066 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3069 Adjust RTX patterns globally for renamed mode attributes.
3071 2011-04-27 Jan Hubcika <jh@suse.cz>
3073 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3074 * ipa-inline-analysis.c: Include alloc-pool.h.
3075 (edge_predicate_pool): New.
3076 (trye_predicate_p): New function
3077 (false_predicate_p): New function.
3078 (add_clause): Sanity check that false clauses are "optimized";
3079 never add clauses to predicate that is already known to be false.
3080 (and_predicate): Use flase_predicate_p.
3081 (evaulate_predicate): Rename to ...
3082 (evaluate_predicate): ... this one; update all callers; assert
3083 that false is not listed among possible truths.
3084 (dump_predicate): Use true_predicate_p.
3085 (account_size_time): Use false_predicate_p.
3086 (evaulate_conditions_for_edge): Rename to ...
3087 (evaluate_conditions_for_edge) ... this one.
3088 (edge_set_predicate): New function.
3089 (inline_edge_duplication_hook): Duplicate edge predicates.
3090 (inline_edge_removal_hook): Free edge predicates.
3091 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3092 (dump_inline_summary): Update.
3093 (estimate_function_body_sizes): Set edge predicates.
3094 (estimate_calls_size_and_time): Handle predicates.
3095 (estimate_callee_size_and_time): Update.
3096 (remap_predicate): Add toplev_predicate; update comment.
3097 (remap_edge_predicates): New function.
3098 (inline_merge_summary): Compute toplev predicate; update.
3099 (read_predicate): New function.
3100 (read_inline_edge_summary): Use it.
3101 (inline_read_section): Likewise.
3102 (write_predicate): New function.
3103 (write_inline_edge_summary): Use it.
3104 (inline_write_summary): Likewise.
3105 (inline_free_summary): Free alloc pool and edge summary vec.
3107 2011-04-27 Richard Guenther <rguenther@suse.de>
3109 * tree-ssa-structalias.c (changed_count): Remove.
3110 (changed): Use a bitmap.
3111 (unify_nodes): Adjust.
3112 (do_sd_constraint): Likewise.
3113 (do_ds_constraint): Likewise.
3114 (do_complex_constraint): Likewise.
3115 (solve_graph): Likewise.
3117 2011-04-27 Jan Hubicka <jh@suse.cz>
3119 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3121 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3123 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3124 (avx_vperm2f128_*_operand): Ditto.
3125 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3126 Use avx_vpermilp_parallel in insn condition.
3127 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3128 Use avx_vperm2f128_parallel in insn condition.
3130 2011-04-27 Richard Guenther <rguenther@suse.de>
3132 * Makefile.in (tree-ssa-structalias.o): Remove
3133 gt-tree-ssa-structalias.h dependency.
3134 (GTFILES): Remove tree-ssa-structalias.c.
3135 * tree.c (allocate_decl_uid): New function.
3136 (make_node_stat): Use it.
3137 (copy_node_stat): Likewise.
3138 * tree.h (allocate_decl_uid): Declare.
3139 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3140 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3141 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3142 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3143 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3144 (struct heapvar_map): Likewise.
3145 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3146 heapvar_insert): Likewise.
3147 (make_heapvar_for): Rename to ...
3148 (make_heapvar): ... this. Simplify.
3149 (fake_var_decl_obstack): New global var.
3150 (build_fake_var_decl): New function.
3151 (make_constraint_from_heapvar): Adjust.
3152 (handle_lhs_call): Likewise.
3153 (create_function_info_for): Likewise.
3154 (intra_create_variable_infos): Likewise.
3155 (init_alias_vars): Allocate fake_var_decl_obstack.
3156 (init_alias_heapvars, delete_alias_heapvars): Remove.
3157 (compute_points_to_sets): Do not call init_alias_heapvars.
3158 (ipa_pta_execute): Likewise.
3159 (delete_points_to_sets): Free fake_var_decl_obstack.
3161 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3163 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3164 (si_from_UTItype, si_to_UTItype): New functions.
3165 (__udivmodti4): Use them to implement type-punning.
3166 * config/spu/multi3.c (union qword_TItype): New data type.
3167 (si_from_TItype, si_to_TItype): New functions.
3168 (__multi3): Use them to implement type-punning.
3170 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3172 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3174 2011-04-27 Jan Hubicka <jh@suse.cz>
3176 * ipa-prop.c (function_insertion_hook_holder): New holder.
3177 (ipa_add_new_function): New function.
3178 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3179 Register/deregister holder.
3181 2011-04-27 Richard Guenther <rguenther@suse.de>
3183 PR tree-optimization/48772
3184 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3186 2011-04-27 Richard Guenther <rguenther@suse.de>
3188 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3189 TARGET_MEM_REF handling.
3191 2011-04-27 Nick Clifton <nickc@redhat.com>
3193 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3194 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3195 (REG_CLASS_NAMES): Likewise.
3196 (REG_CLASS_CONTENTS): Likewise.
3197 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3198 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3199 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3200 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3201 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3202 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3203 duplicate register classes.
3204 (frv_class_likely_spilled_p): Likewise.
3205 (frv_register_move_cost): Likewise.
3207 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3208 end of the regno_reg_class array.
3210 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3213 * c-typeck.c (build_binary_op): Don't wrap arguments if
3214 int_operands is true.
3216 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3219 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3220 targetm.calls.must_pass_in_stack for void type.
3222 2011-04-26 Jan Hubicka <jh@suse.cz>
3224 * cgraphbuild.c (build_cgraph_edges): Update call
3225 of cgraph_create_edge and cgraph_create_indirect_edge.
3226 * cgraph.c (cgraph_create_edge_including_clones,
3227 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3228 cgraph_update_edges_for_call_stmt_node): Do not take nest
3229 argument; do not initialize call_stmt_size/time.
3230 (dump_cgraph_node): Do not dump nest.
3231 (cgraph_clone_edge): Do not take loop_nest argument;
3232 do not propagate it; do not clone call_stmt_size/time.
3233 (cgraph_clone_node): Likewise.
3234 (cgraph_create_virtual_clone): Update.
3235 * cgraph.h (struct cgraph_edge): Remove
3236 call_stmt_size/call_stmt_time/loop_nest.
3237 (cgraph_create_edge, cgraph_create_indirect_edge,
3238 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3240 * tree-emutls.c (gen_emutls_addr): Update.
3241 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3242 loop_nest; handle indirect calls, too.
3243 (clone_inlined_nodes): Do not care about updating inline summaries.
3244 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3245 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3246 stream call_stmt_size/call_stmt_time/loop_nest.
3247 * ipa-inline.c (edge_badness): Update.
3248 (ipa_inline): dump summaries after inlining.
3249 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3251 (inline_edge_summary): New function.
3252 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3253 (inline_edge_removal_hook): Handle edge summaries.
3254 (inline_edge_duplication_hook): New hook.
3255 (inline_summary_alloc): Alloc hooks.
3256 (initialize_growth_caches): Do not register removal hooks.
3257 (free_growth_caches); Do not free removal hook.
3258 (dump_inline_edge_summary): New function.
3259 (dump_inline_summary): Use it.
3260 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3261 (inline_update_callee_summaries): New function.
3262 (inline_merge_summary): Use it.
3263 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3264 (read_inline_edge_summary): New function.
3265 (inline_read_section): Use it.
3266 (write_inline_edge_summary): New function.
3267 (inline_write_summary): Use it.
3268 (inline_free_summary): Free edge new holders.
3269 * tree-inline.c (copy_bb): Update.
3271 2011-04-26 Jason Merrill <jason@redhat.com>
3273 * tree-eh.c (lower_try_finally_switch): Create the label along with
3274 the CASE_LABEL_EXPR.
3276 2011-04-26 David S. Miller <davem@davemloft.net>
3277 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3279 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3280 * configure: Regenerate.
3282 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3285 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3287 (VEC_reduc): New code iterator and splitters for vector reduction.
3288 (VEC_reduc_name): Ditto.
3289 (VEC_reduc_rtx): Ditto.
3290 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3291 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3293 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3294 support for extracting SF on VSX.
3296 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3297 generating xscvspdp.
3298 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3299 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3300 double add, minimum, maximum vector reduction.
3301 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3302 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3303 optimize double vector reduction.
3304 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3306 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3308 * config/fr30/fr30.h (inhibit_libc): Don't define.
3309 * config/m32r/m32r-protos.h: Correct comment.
3310 * config/v850/v850.h (GHS_default_section_names,
3311 GHS_current_section_names): Use tree, not union tree_node *.
3313 2011-04-26 Xinliang David Li <davidxl@google.com>
3315 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3316 * c-family/c-opts.c (c_common_handle_option): Set
3317 warn_maybe_uninitialized.
3318 * opts.c (common_handle_option): Ditto.
3319 * common.opt: New option.
3320 * tree-ssa.c (warn_uninit): Add one more parameter.
3321 (warn_uninitialized_var): Pass warning code.
3322 * tree-flow.h: Interface change.
3325 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3327 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3328 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3329 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3331 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3333 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3334 * config/mips/mips.opt (mmips-tfile): Remove.
3336 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3337 mips-tdump reference to ...
3338 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3339 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3340 reference by Tru64 UNIX.
3342 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3345 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3346 is error_mark_node, set value to NULL.
3348 PR tree-optimization/48734
3349 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3350 if return value from maybe_fold_*_comparsions isn't something
3351 the code is prepared to handle.
3353 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3355 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3357 (ext_QIreg_nomode_operands): Remove.
3358 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3362 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3364 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3366 2011-04-26 Richard Guenther <rguenther@suse.de>
3368 * c-typeck.c (build_unary_op): Do not expand array-refs via
3369 pointer arithmetic. Only adjust qualifiers for function types.
3371 2011-04-26 Richard Guenther <rguenther@suse.de>
3374 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3375 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3376 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3377 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3379 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3381 * doc/extend.texi: Document __underlying_type.
3383 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3385 * config/rs6000/titan.md (automata_option "progress"): Remove.
3387 2011-04-25 Jeff Law <law@redhat.com>
3389 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3391 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3393 * system.h (ENUM_BITFIELD): Remove.
3395 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3396 Eric Botcazou <ebotcazou@adacore.com>
3398 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3399 for STORE_FLAG_VALUE==-1 case.
3401 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3404 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3405 LEGITIMATE_PIC_OPERAND_P.
3407 2011-04-24 Jan Hubicka <jh@suse.cz>
3409 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3411 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3412 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3413 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3414 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3415 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3416 Sanity check predicate length.
3417 (remap_predicate): Likewise; sanity check jump functions.
3418 (inline_read_section, inline_write_summary): Sanity check
3421 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3424 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3425 __is_literal_type, and __is_trivial; update throughout about
3426 possibly cv-qualified void types.
3428 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3430 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3431 testsuite and make it version agnostic.
3433 2011-04-22 Jan Hubicka <jh@suse.cz>
3435 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3437 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3440 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3441 to VOID_TYPE even around MODIFY_EXPR.
3443 2011-04-22 Mike Stump <mikestump@comcast.net>
3445 * gensupport.c (read_md_rtx): Fix typo in comment.
3446 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3449 2011-04-22 Jan Hubicka <jh@suse.cz>
3451 * gengtype.c (open_base_files): Add ipa-inline.h include.
3452 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3453 ipa-prop.c; update all uses.
3454 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3455 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3456 merge summary of inlined function into former caller.
3457 * ipa-inline.c (max_benefit): Remove.
3458 (edge_badness): Compensate for removal of benefits.
3459 (update_caller_keys): Use
3460 reset_node_growth_cache/reset_edge_growth_cache.
3461 (update_callee_keys): Likewise.
3462 (update_all_callee_keys): Likewise.
3463 (inline_small_functions): Do not collect max_benefit; do not reset
3464 estimated_growth; call free_growth_caches and initialize_growth_caches.
3465 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3466 struct size_time_entry): New structures.
3467 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3468 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3469 and estimated_growth.
3470 (edge_growth_cache_entry): New structure.
3471 (node_growth_cache, edge_growth_cache): New global vars.
3472 (estimate_growth): Turn into inline.
3473 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3474 initialize_growth_caches, free_growth_caches): Declare.
3475 (estimate_edge_growth): Rewrite.
3476 (estimate_edge_time): Implement as inline cache lookup.
3477 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3479 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3480 (NUM_CONDITIONS): New constant.
3481 (predicate_conditions): New enum.
3482 (IS_NOT_CONSTANT): New constant.
3483 (edge_removal_hook_holder): New var.
3484 (node_growth_cache, edge_growth_cache): New global vars.
3485 (true_predicate, single_cond_predicate, false_predicate,
3486 not_inlined_predicate, add_condition, add_clause, and_predicates,
3487 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3488 dump_clause, dump_predicate, account_size_time,
3489 evaulate_conditions_for_edge): New functions.
3490 (inline_summary_alloc): Move to heap.
3491 (inline_node_removal_hook): Clear condition and entry vectors.
3492 (inline_edge_removal_hook): New function.
3493 (initialize_growth_caches, free_growth_caches): New function.
3494 (dump_inline_summary): Update.
3495 (edge_execution_predicate): New function.
3496 (will_be_nonconstant_predicate): New function.
3497 (estimate_function_body_sizes): Compute BB and constantness predicates.
3498 (compute_inline_parameters): Do not clear estimated_growth.
3499 (estimate_edge_size_and_time): New function.
3500 (estimate_calls_size_and_time): New function.
3501 (estimate_callee_size_and_time): New function.
3502 (remap_predicate): New function.
3503 (inline_merge_summary): New function.
3504 (do_estimate_edge_time): New function based on...
3505 (estimate_edge_time): ... this one.
3506 (do_estimate_edge_growth): New function.
3507 (do_estimate_growth): New function based on....
3508 (estimate_growth): ... this one.
3509 (inline_analyze_function): Analyze after deciding on jump functions.
3510 (inline_read_section): New function.
3511 (inline_read_summary): Use it.
3512 (inline_write_summary): Write all the new data.
3513 * ipa-prop.c (ipa_get_param_decl_index): Export.
3514 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3515 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3517 (ipa_get_lattice): Move here from ipa-cp.c
3518 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3519 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3520 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3521 cgraph_edge_inlinable_p): Remove.
3522 * cgraphunit.c: Include ipainline.h
3523 (cgraph_process_new_functions): Update call of
3524 compute_inline_parameters.
3526 2011-04-22 Richard Guenther <rguenther@suse.de>
3528 * tree.c (build_int_cst): Properly create canonicalized integer
3530 (build_int_cst_type): Remove scary comments.
3532 2011-04-22 Xinliang David Li <davidxl@google.com>
3534 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3535 by default when -Wno-error is not specified.
3536 * opts-global.c (decode_options): Remove call to
3537 control_warning_options.
3539 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3541 PR tree-optimization/48717
3542 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3543 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3545 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3547 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3548 definition where used.
3550 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3553 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3554 TREE_STATIC variables declared inside of some OpenMP construct.
3556 2011-04-22 Martin Jambor <mjambor@suse.cz>
3559 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3561 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3564 * c-typeck.c (pop_init_level): Do not warn about initializing
3567 2011-04-22 Alan Modra <amodra@gmail.com>
3569 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3570 when returning call_cookie.
3571 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3572 pointers, to functions with no more vector args than the current
3573 function, and some non-local calls for ABI_V4.
3574 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3575 sibcall_nonlocal_aix64): Combine to ..
3576 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3577 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3578 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3579 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3580 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3582 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3583 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3584 sibcall_value_symbolic_64): Delete.
3586 2011-04-21 Xinliang David Li <davidxl@google.com>
3588 * cgraph.h: Remove pid.
3589 * cgraph.c: Remove pid.
3590 * value-prof.c (init_node_map): New function.
3591 (del_node_map): New function.
3592 (find_func_by_funcdef_no): New function.
3593 (gimple_ic_transform): Call new function.
3594 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3595 * function.c (get_last_funcdef_no): New function.
3596 * function.h (get_last_funcdef_no): New function.
3597 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3598 to libgcov function.
3599 (tree-profiling): Call node map init and delete function.
3601 2011-04-21 Ian Lance Taylor <iant@google.com>
3603 * godump.c (go_format_type): Use exported Go name for anonymous
3606 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3608 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3609 Call builtin_function_type_list instead of builtin_function_type.
3610 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3612 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3614 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3615 build_function_type_list instead of build_function_type.
3616 Delete variable `endlink'.
3618 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3620 * config/s390/s390.c (s390_init_builtins): Call
3621 build_function_type_list instead of build_function_type.
3623 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3625 * config/ia64/ia64.c (ia64_init_builtins): Call
3626 build_function_type_list instead of builtin_function_type.
3628 2011-04-21 Easwaran Raman <eraman@google.com>
3630 * cfgexpand.c (stack_var): Remove OFFSET...
3631 (add_stack_var): ...and its reference here...
3632 (expand_stack_vars): ...and here.
3633 (stack_var_cmp): Sort by descending order of size.
3634 (partition_stack_vars): Change heuristic.
3635 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3636 (dump_stack_var_partition): Add newline after each partition.
3638 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3639 Jeff Law <law@redhat.com>
3641 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3642 * gengtype.c (matching_file_name_substitute): Likewise.
3644 2011-04-21 Richard Guenther <rguenther@suse.de>
3647 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3649 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3651 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3653 2011-04-21 Richard Guenther <rguenther@suse.de>
3655 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3658 2011-04-21 Richard Guenther <rguenther@suse.de>
3660 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3661 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3662 Use DECL_P, not SSA_VAR_P.
3663 (ptr_derefs_may_alias_p): Likewise.
3664 (ptr_deref_may_alias_ref_p_1): Likewise.
3665 (decl_refs_may_alias_p): Likewise.
3666 (refs_may_alias_p_1): Likewise.
3667 (ref_maybe_used_by_call_p_1): Likewise.
3668 (call_may_clobber_ref_p_1): Likewise.
3669 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3670 are either MEM_REF or TARGET_MEM_REF.
3671 (indirect_refs_may_alias_p): Likewise.
3672 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3673 for MEM_EXPR of indirect calls.
3675 2011-04-21 Tristan Gingold <gingold@adacore.com>
3677 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3678 (dst_file_info_struct): Remove flen field.
3679 (lookup_filename): Remove code that set flen field.
3681 2011-04-21 Tristan Gingold <gingold@adacore.com>
3683 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3685 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3688 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3689 vec_extract and vec_concat for non-SSE4_1 targets.
3691 2011-04-21 Richard Guenther <rguenther@suse.de>
3693 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3696 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3698 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3700 (FILE): Don't undefine.
3702 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3704 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3706 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3708 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3709 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3710 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3712 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3713 definitions where used.
3714 * config/microblaze/microblaze.h (struct microblaze_args): Use
3715 rtx, not struct rtx_def *.
3716 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3718 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3719 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3720 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3721 not struct rtx_def *.
3722 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3724 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3726 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3728 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3730 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3731 operand_equal_p to compare DR_BASE_ADDRESSes.
3732 (vect_check_interleaving): Likewise.
3734 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3737 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3738 for all Neon struct constants.
3740 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3742 * target.def (legitimate_constant_p): New hook.
3743 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3744 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3745 * doc/tm.texi: Regenerate.
3746 * hooks.h (hook_bool_mode_rtx_true): Declare.
3747 * hooks.c (hook_bool_mode_rtx_true): Define.
3748 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3749 * calls.c (precompute_register_parameters): Replace uses of
3750 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3751 (emit_library_call_value_1): Likewise.
3752 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3753 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3754 * ira-costs.c (scan_one_insn): Likewise.
3755 * recog.c (general_operand, immediate_operand): Likewise.
3756 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3757 * reload1.c (init_eliminable_invariants): Likewise.
3759 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3761 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3762 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3764 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3765 * config/alpha/predicates.md (input_operand): Update call to
3766 alpha_legitimate_constant_p.
3768 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3769 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3770 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3771 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3772 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3773 (arm_legitimate_constant_p): New functions.
3774 (arm_cannot_force_const_mem): Make static.
3776 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3778 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3779 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3780 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3781 instead of bfin_legitimate_constant_p.
3782 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3783 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3785 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3787 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3789 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3790 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3791 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3792 (frv_legitimate_constant_p): Make static. Add a mode argument.
3794 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3795 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3796 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3798 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3799 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3800 * config/i386/i386.c (legitimate_constant_p): Rename to...
3801 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3803 (ix86_cannot_force_const_mem): Update accordingly.
3804 (ix86_legitimate_address_p): Likewise.
3805 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3806 * config/i386/i386.md: Update commentary.
3808 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3809 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3810 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3811 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3813 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3815 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3816 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3817 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3818 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3820 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3821 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3822 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3824 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3825 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3826 (m32r_legitimate_constant_p): New function.
3828 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3829 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3830 LEGITIMATE_CONSTANT_P.
3831 (LEGITIMATE_CONSTANT_P): Delete.
3832 * config/m68k/m68k.c (m68k_expand_prologue): Call
3833 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3834 (m68k_legitimate_constant_p): New function.
3835 * config/m68k/m68k.md: Update comments.
3837 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3838 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3839 (mcore_legitimate_constant_p): New function.
3841 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3842 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3843 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3844 Add a mode argument.
3845 (mep_legitimate_address): Update accordingly.
3846 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3848 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3850 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3851 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3852 static. Check OP's mode for VOIDmode.
3853 (microblaze_legitimate_constant_p): New function.
3854 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3856 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3857 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3858 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3859 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3860 * config/mips/predicates.md: Update comments.
3862 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3863 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3864 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3865 (mmix_legitimate_constant_p): Make static, return a bool, and take
3867 (mmix_print_operand_address): Update accordingly.
3869 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3871 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3872 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3873 static. Add a mode argument.
3874 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3876 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3878 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3879 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3880 (pa_legitimate_constant_p): New function.
3882 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3884 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3885 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3886 (pdp11_legitimate_constant_p): New function.
3888 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3889 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3890 (rs6000_legitimate_constant_p): New function.
3892 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3893 (rx_legitimate_constant_p): ...this.
3894 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3895 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3896 (rx_legitimate_constant_p): ...this.
3897 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3898 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3900 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3901 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3902 * config/s390/s390.c (legitimate_constant_p): Rename to...
3903 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3904 and add a mode argument.
3905 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3907 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3909 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3910 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3911 (sh_legitimate_constant_p): New function.
3913 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3914 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3915 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3916 (legitimate_constant_p): Rename to...
3917 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3919 (constant_address_p): Update accordingly.
3921 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3922 argument and return a bool.
3923 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3924 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3925 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3926 (spu_rtx_costs): Update accordingly.
3927 * config/spu/predicates.md (vec_imm_operand): Likewise.
3929 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3931 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3932 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3933 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3935 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3936 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3937 * config/vax/vax.c (legitimate_constant_p): Likewise.
3939 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3940 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3941 (xtensa_legitimate_constant_p): New function.
3943 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3945 * target.def (cannot_force_const_mem): Add a mode argument.
3946 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3947 * doc/tm.texi: Regenerate.
3948 * hooks.h (hook_bool_mode_rtx_false): Declare.
3949 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3950 (hook_bool_mode_const_rtx_true): Likewise.
3951 (hook_bool_mode_rtx_false): New function.
3952 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3953 to be non-VOID. Update call to cannot_force_const_mem.
3954 (find_reloads): Update accordingly.
3955 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3956 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3958 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3959 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3960 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3961 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3962 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3963 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3964 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3965 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3966 (m68k_cannot_force_const_mem): ...this new function.
3967 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3969 (mips_const_insns, mips_legitimize_const_move): Update calls.
3970 (mips_secondary_reload_class): Likewise.
3971 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3972 (pa_cannot_force_const_mem): ...this new function.
3973 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3974 (rs6000_cannot_force_const_mem): ...this new function.
3975 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3977 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3978 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3980 (xtensa_cannot_force_const_mem): ...this new function.
3982 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3984 * config/mips/mips.c (mips16_build_function_stub): Call
3985 build_function_type_list instead of build_function_type.
3986 (mips16_build_call_stub): Likewise.
3988 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3990 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3991 instead of build_function_type.
3993 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3995 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3996 instead of build_function_type.
3998 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4001 * config/i386/i386.md (insv): Change operand 0 constraint to
4002 "register_operand". Change operand 1 and 2 constraint to
4003 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4004 * config/i386/sse.md (sse4_1_pinsrb): Export.
4005 (sse2_pinsrw): Ditto.
4006 (sse4_1_pinsrd): Ditto.
4007 (sse4_1_pinsrq): Ditto.
4008 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4009 * config/i386/i386.c (ix86_expand_pinsr): New.
4011 2011-04-20 Easwaran Raman <eraman@google.com>
4013 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4014 containing union type only with -fstrict-aliasing.
4016 2011-04-20 Jim Meyering <meyering@redhat.com>
4018 Remove useless if-before-free tests.
4019 * calls.c (expand_call, save_area): Likewise.
4020 * cfgcleanup.c (try_forward_edges): Likewise.
4021 * collect2.c (collect_execute): Likewise.
4022 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4023 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4024 * coverage.c (coverage_checksum_string): Likewise.
4025 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4026 * cselib.c (cselib_init): Likewise.
4027 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4028 (df_set_clean_cfg): Likewise.
4029 * function.c (free_after_compilation): Likewise.
4030 * gcc.c (do_spec_1, main): Likewise.
4031 * gcov.c (create_file_names): Likewise.
4032 * gensupport.c (identify_predicable_attribute): Likewise.
4033 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4034 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4035 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4036 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4037 * ipa-pure-const.c (local_pure_const): Likewise.
4038 * ipa-reference.c (propagate): Likewise.
4039 * ira-costs.c (free_ira_costs): Likewise.
4040 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4041 * matrix-reorg.c (mat_free): Likewise.
4042 * prefix.c (get_key_value): Likewise.
4043 * profile.c (compute_value_histograms): Likewise.
4044 * reload1.c (free_reg_equiv): Likewise.
4045 * sched-deps.c (free_deps): Likewise.
4046 * sel-sched-ir.c (fence_clear): Likewise.
4047 * sese.c (set_rename, if_region_set_false_region): Likewise.
4048 * tree-data-ref.c (free_rdg): Likewise.
4049 * tree-eh.c (lower_try_finally): Likewise.
4050 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4051 * tree-ssa-live.c (delete_var_map): Likewise.
4052 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4053 * tree-ssa-pre.c (phi_trans_add): Likewise.
4055 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4057 PR tree-optimization/48611
4058 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4059 beyond ERT_MUST_NOT_THROW region.
4061 2011-04-20 Catherine Moore <clm@codesourcery.com>
4063 * config/mips/mips.opt (mfix-24k): New.
4064 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4065 * config/mips/mips.md (length): Increase by 4 for stores if
4067 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4068 all noreorder if fixing 24K errata.
4069 * doc/invoke.texi: Document mfix-24k.
4071 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4073 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4074 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4076 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4078 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4079 (const_ok_for_op): ... to here.
4081 2011-04-20 Kai Tietz <ktietz@redhat.com>
4083 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4084 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4086 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4088 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4090 2011-04-20 Richard Guenther <rguenther@suse.de>
4092 PR tree-optimization/47892
4093 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4096 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4098 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4100 2011-04-20 Tristan Gingold <gingold@adacore.com>
4102 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4104 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4108 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4109 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4110 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4111 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4112 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4114 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4117 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4118 (avr_asm_named_section, avr_asm_output_aligned_common,
4119 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4120 New functions to update...
4121 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4122 (avr_asm_init_sections): Overwrite section callbacks for
4123 data_section, bss_section.
4124 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4126 (avr_file_end): ...here.
4128 2011-04-20 Richard Guenther <rguenther@suse.de>
4131 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4132 objects and types here. Adjust for their offset before comparing.
4134 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4136 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4139 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4141 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4142 (GIMPLE_H): Include $(INTERNAL_FN_H).
4143 (OBJS-common): Add internal-fn.o.
4144 (internal-fn.o): New rule.
4145 * internal-fn.def: New file.
4146 * internal-fn.h: Likewise.
4147 * internal-fn.c: Likewise.
4148 * gimple.h: Include internal-fn.h.
4149 (GF_CALL_INTERNAL): New gf_mask.
4150 (gimple_statement_call): Put fntype into a union with a new
4152 (gimple_build_call_internal): Declare.
4153 (gimple_build_call_internal_vec): Likewise.
4154 (gimple_call_same_target_p): Likewise.
4155 (gimple_call_internal_p): New function.
4156 (gimple_call_internal_fn): Likewise.
4157 (gimple_call_fntype): Return null for internal calls.
4158 (gimple_call_set_fntype): Assert that the function is not internal.
4159 (gimple_call_set_fn): Likewise.
4160 (gimple_call_set_fndecl): Likewise.
4161 (gimple_call_set_internal_fn): New function.
4162 (gimple_call_addr_fndecl): Handle null functions.
4163 (gimple_call_return_type): Likewise null types.
4164 * gimple.c (gimple_build_call_internal_1): New function.
4165 (gimple_build_call_internal): Likewise.
4166 (gimple_build_call_internal_vec): Likewise.
4167 (gimple_call_same_target_p): Likewise.
4168 (gimple_call_flags): Handle calls to internal functions.
4169 (gimple_call_fnspec): New function.
4170 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4171 (gimple_has_side_effects): Handle null functions.
4172 (gimple_rhs_has_side_effects): Likewise.
4173 (gimple_call_copy_skip_args): Handle calls to internal functions.
4174 * cfgexpand.c (expand_call_stmt): Likewise.
4175 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4176 * gimple-fold.c (gimple_fold_call): Handle null functions.
4177 (gimple_fold_stmt_to_constant_1): Don't fold
4178 calls to internal functions.
4179 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4181 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4182 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4183 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4184 (do_warn_unused_result): Likewise.
4185 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4186 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4187 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4188 the target of a call.
4189 (initialize_hash_element): Update accordingly.
4190 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4191 (iterative_hash_hashable_expr): Handle calls to internal functions.
4192 (print_expr_hash_elt): Likewise.
4193 * tree-ssa-pre.c (can_value_number_call): Likewise.
4194 (eliminate): Handle null functions.
4195 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4196 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4197 (find_func_aliases): Likewise.
4198 * value-prof.c (gimple_ic_transform): Likewise.
4199 (gimple_indirect_call_to_profile): Likewise.
4200 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4201 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4203 2011-04-19 Jan Hubicka <jh@suse.cz>
4205 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4206 * ipa-inline.c (inline_small_functions): Compute summaries first,
4207 populate heap later.
4209 2011-04-19 Jan Hubicka <jh@suse.cz>
4211 * cgraph.h (save_inline_function_body): Remove.
4212 * ipa-inline-transform.c: New file, broke out of...
4213 * ipa-inline.c: ... this one; Update toplevel comment.
4214 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4216 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4217 (cgraph_mark_inline_edge): Rename to inline_call; move to
4218 ipa-inline-transform.c.
4219 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4220 move to ipa-inline-transform.c
4221 (recursive_inlining, inline_small_functions, flatten_function,
4222 ipa_inline, inline_always_inline_functions,
4223 early_inline_small_functions): Update.
4224 (inline_transform): Move to ipa-inline-transform.c.
4225 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4227 * Makefile.in (ipa-inline-transform.o): New file.
4228 * cgraphunit.c (save_inline_function_body): Move to
4229 ipa-inline-transform.c
4231 2011-04-19 DJ Delorie <dj@redhat.com>
4233 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4234 registers if we already know there aren't any.
4235 (m32c_emit_epilogue): Don't emit a barrier here.
4236 (m32c_emit_eh_epilogue): Likewise.
4237 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4238 operands at expand time.
4239 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4241 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4242 duplicates. Provide aliases instead.
4243 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4244 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4247 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4249 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4250 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4251 (general_or_i64_p, sparc_register_move_cost): New function.
4253 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4255 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4256 Add lynx, mipssde. Sort table.
4258 2011-04-19 Xinliang David Li <davidxl@google.com>
4260 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4263 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4266 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4267 is a SUBREG with non-MODE_INT mode inside of it.
4269 2011-04-19 Martin Jambor <mjambor@suse.cz>
4271 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4272 also according to actual contants.
4273 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4274 (gimple_fold_call): Use it.
4275 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4277 2011-04-19 Martin Jambor <mjambor@suse.cz>
4279 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4280 non-pointer assignments.
4282 2011-04-19 Martin Jambor <mjambor@suse.cz>
4284 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4285 account anc_offset and otr_type from the indirect edge info.
4286 * ipa-prop.c (get_ancestor_addr_info): New function.
4287 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4288 get_ancestor_addr_info, call it.
4289 (ipa_note_param_call): Do not initialize information about polymorphic
4290 calls, return the indirect call graph edge. Remove the last
4291 parameter, adjust all callers.
4292 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4293 parameters. Initialize polymorphic information in the indirect edge.
4295 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4298 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4299 the types if they have different enumeration identifiers.
4301 2011-04-19 Jan Hubicka <jh@suse.cz>
4303 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4304 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4305 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4306 (optimize_function_for_size_p) ... here.
4308 2011-04-19 Richard Guenther <rguenther@suse.de>
4311 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4314 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4316 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4317 if DECL_NO_INLINE_WARNING_P is set on the function.
4319 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4322 * reload1.c (inc_for_reload): Return void. All callers changed.
4323 (emit_input_reload_insns): Don't try to delete previous output
4324 reloads to a register, or record spill_reg_store for autoincs.
4326 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4328 * gengtype.h: Updated copyright year.
4329 (struct input_file_st): Add inpisplugin field.
4330 (type_fileloc): New function.
4332 (write_typed_struct_alloc_def): Add gcc_assert.
4333 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4334 (write_typed_alloc_defns): Don't output for plugin files.
4335 (input_file_by_name): Clear inpisplugin field.
4336 (main): Set inpisplugin field for plugin files.
4338 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4340 * gengtype-state.c (string_eq): New.
4341 (read_state): Use string_eq instead of strcmp when creating the
4344 2011-04-19 Wei Guozhi <carrot@google.com>
4347 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4348 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4350 * config/arm/constraints.md (Uu): New constraint.
4351 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4353 2011-04-19 Tristan Gingold <gingold@adacore.com>
4355 * config.gcc (-*-*-*vms): Added.
4356 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4358 * config/vms/vms-ld.c: New file.
4359 * config/vms/vms-ar.c: New file.
4360 * config/vms/t-vmsnative: New file.
4362 2011-04-18 Xinliang David Li <davidxl@google.com>
4364 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4366 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4369 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4370 if TREE_TYPE (v) is non-NULL.
4372 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4373 gimple_get_virt_mehtod_for_binfo.
4374 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4375 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4377 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4379 2011-04-18 Michael Matz <matz@suse.de>
4380 Steve Ellcey <sje@cup.hp.com>
4382 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4383 use its mode as source mode if it isn't VOIDmode.
4385 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4387 * doc/passes.texi: Fill crossref nodes.
4389 2011-04-18 Jim Meyering <meyering@redhat.com>
4391 Fix doubled-word typos in comments and strings
4392 * config/alpha/vms-unwind.h: s/for for/for/
4393 * config/arm/unwind-arm.h: Likewise.
4394 * config/microblaze/microblaze.c: Likewise.
4395 * config/sh/constraints.md: s/in in/in/
4396 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4398 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4400 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4401 (AVX_FLOAT_MODE_P): Ditto.
4402 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4403 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4404 (AVX_VEC_FLOAT_MODE_P): Ditto.
4405 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4406 (UNSPEC_MASKSTORE): Ditto.
4407 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4408 Merge from <sse>_movmsk<ssemodesuffix> and
4409 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4410 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4412 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4413 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4414 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4416 2011-04-18 Jan Hubicka <jh@suse.cz>
4418 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4420 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4421 (want_inline_function_called_once_p): Break out the logic from
4423 (edge_badness): Ensure that profile is not misupdated.
4424 (lookup_recursive_calls): Prioritize by call frequencies.
4425 (inline_small_functions): Move program size estimates here;
4426 actually process whole queue even when unit growth has been
4427 met. (to properly compute inline_failed reasons and for the
4428 case unit size decrease.) Revisit comments on recursive inlining.
4429 (ipa_inline): Remove unit summary code; first inline hot calls
4430 of functions called once, cold calls next.
4431 (order, nnodes): Remove unused variables.
4432 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4433 (GTFILES): Remove ipa-inline.c
4434 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4436 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4438 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4440 2011-04-18 Jie Zhang <jie@codesourcery.com>
4441 Richard Earnshaw <rearnsha@arm.com>
4443 * arm.c (neon_builtin_type_bits): Remove.
4444 (typedef enum neon_builtin_mode): New.
4445 (T_MAX): Don't define.
4446 (typedef enum neon_builtin_datum): Remove bits, codes[],
4447 num_vars and base_fcode. Add mode, code and fcode.
4448 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4449 VAR10): Change accordingly.
4450 (neon_builtin_data[]): Change accordingly
4451 (arm_init_neon_builtins): Change accordingly.
4452 (neon_builtin_compare): Remove.
4453 (locate_neon_builtin_icode): Remove.
4454 (arm_expand_neon_builtin): Change accordingly.
4456 * arm.h (enum arm_builtins): Move to ...
4457 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4459 * arm.c (arm_builtin_decl): Declare.
4460 (TARGET_BUILTIN_DECL): Define.
4461 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4462 (arm_builtin_decls[]): New.
4463 (arm_init_neon_builtins): Store builtin declarations in
4464 arm_builtin_decls[].
4465 (arm_init_tls_builtins): Likewise.
4466 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4467 (arm_builtin_decl): New.
4469 2011-04-18 Richard Guenther <rguenther@suse.de>
4471 * tree.c (upper_bound_in_type): Build properly canonicalized
4473 (lower_bound_in_type): Likewise.
4475 2011-04-18 Richard Guenther <rguenther@suse.de>
4477 * gimple.h (gimple_call_addr_fndecl): New function.
4478 (gimple_call_fndecl): Use it.
4479 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4481 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4482 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4484 2011-04-18 Richard Guenther <rguenther@suse.de>
4487 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4489 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4492 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4493 DECL_IN_CONSTANT_POOL without RTL.
4495 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4496 Ira Rosen <ira.rosen@linaro.org>
4499 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4500 to match neon_vzip/vuzp/vtrn_internal.
4501 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4502 outputs explicitly dependent on both inputs.
4503 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4505 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4507 PR tree-optimization/48616
4508 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4509 whether the shift is by scalar or vector based on whether all SLP
4510 scalar stmts have the same rhs.
4512 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4514 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4517 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4519 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4522 2011-04-17 Jan Hubicka <jh@suse.cz>
4524 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4525 * cgrpahunit.c (cgraph_finalize_function): Do not set
4526 finalized_by_frontend.
4527 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4528 finalized_by_frontend.
4530 2011-04-17 Jan Hubicka <jh@suse.cz>
4532 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4533 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4534 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4535 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4537 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4539 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4541 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4544 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4545 is non-null before accessing it.
4546 (input_cgraph): Remove trailing spaces.
4548 2011-04-17 Revital Eres <revital.eres@linaro.org>
4550 * params.def (sms-min-sc): New param flag.
4551 * modulo-sched.c (sms_schedule): Use it.
4552 * doc/invoke.texi (sms-min-sc): Document it.
4554 2011-04-17 Jan Hubicka <jh@suse.cz>
4556 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4557 present, also set gimple_call_set_cannot_inline.
4558 * ipa-inline.c: Update toplevel comment.
4560 (cgraph_clone_inlined_nodes): Fix linebreaks.
4561 (cgraph_check_inline_limits): Restructure to ...
4562 (caller_growth_limits): ... this one; be more tolerant
4563 on growth in nested inline chains; add explanatory comment;
4564 fix stack accounting thinko introduced by previous patch.
4565 (cgraph_default_inline_p): Remove.
4566 (report_inline_failed_reason): New function.
4567 (can_inline_edge_p): New function.
4568 (can_early_inline_edge_p): New function.
4569 (leaf_node_p): Move upwards in file.
4570 (want_early_inline_function_p): New function.
4571 (want_inline_small_function_p): New function.
4572 (want_inline_self_recursive_call_p): New function.
4573 (cgraph_edge_badness): Rename to ...
4574 (edge_badness) ... this one; fix linebreaks.
4575 (update_edge_key): Update call of edge_baddness; add
4576 detailed dump about queue updates.
4577 (update_caller_keys): Use can_inline_edge_p and
4578 want_inline_small_function_p.
4579 (cgraph_decide_recursive_inlining): Rename to...
4580 (recursive_inlining): Use can_inline_edge_p and
4581 want_inline_self_recursive_call_p; simplify and remove no longer
4583 (cgraph_set_inline_failed): Remove.
4584 (add_new_edges_to_heap): Use can_inline_edge_p and
4585 want_inline_small_function_p.
4586 (cgraph_decide_inlining_of_small_functions): Rename to ...
4587 (inline_small_functions): ... this one; cleanup; use
4588 can/want predicates; cleanup debug ouput; work edges till fibheap
4589 is exhausted and do not stop once unit growth is reached; remove
4590 later loop processing remaining edges.
4591 (cgraph_flatten): Rename to ...
4592 (flatten_function): ... this one; use can_inline_edge_p
4593 and can_early_inline_edge_p predicates.
4594 (cgraph_decide_inlining): Rename to ...
4595 (ipa_inline): ... this one; remove unreachable nodes before
4596 inlining functions called once; simplify the pass.
4597 (cgraph_perform_always_inlining): Rename to ...
4598 (inline_always_inline_functions): ... this one; use
4599 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4600 (cgraph_decide_inlining_incrementally): Rename to ...
4601 (early_inline_small_functions): ... this one; simplify
4602 using new predicates; cleanup; make dumps prettier.
4603 (cgraph_early_inlining): Rename to ...
4604 (early_inliner): newer inline regular functions into always-inlines;
4605 fix updating of call stmt summaries.
4606 (pass_early_inline): Update for new names.
4607 (inline_transform): Fix formating.
4608 (gate_cgraph_decide_inlining): Rename to ...
4609 (pass_ipa_inline): ... this one.
4610 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4611 * ipa-inline-analysis.c (dump_inline_summary): Update.
4612 (compute_inline_parameters): Do not compute disregard_inline_limits;
4613 look for mismatching arguments.
4614 (estimate_growth): Fix handlig of non-trivial self recursion.
4615 (inline_read_summary): Do not read info->disregard_inline_limits.
4616 (inline_write_summary): Do not write info->disregard_inline_limits.
4617 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4618 and move all checks into can_inline_edge_p predicate; re-enable code
4619 comparing optimization levels.
4620 (expand_call_inline): Do not test inline_forbidden_into_p.
4621 * Makefile.in (ipa-inline.o): Update arguments.
4623 2011-04-17 Revital Eres <revital.eres@linaro.org>
4625 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4627 2011-04-17 Revital Eres <revital.eres@linaro.org>
4629 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4631 2011-04-17 Michael Matz <matz@suse.de>
4633 PR tree-optimization/48622
4635 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4636 in same order as they're written.
4638 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4640 * config/pa/predicates.md: Reorganize and simplify predicates.
4641 Eliminate duplicate code checks.
4642 (arith_operand): Rename to arith14_operand
4643 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4644 * config/pa/pa.md: Use renamed operands.
4645 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4646 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4647 arith11_operand, adddi3_operand, indexed_memory_operand,
4648 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4649 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4650 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4651 move_dest_operand, move_src_operand, prefetch_cc_operand,
4652 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4653 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4654 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4655 div_operand, int5_operand, movb_comparison_operator,
4656 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4657 arith_double_operand, ireg_operand, lhs_lshift_operand,
4658 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4659 integer_store_memory_operand): Likewise.
4660 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4661 (integer_store_memory_operand, read_only_operand,
4662 function_label_operand, borx_reg_operand,
4663 non_hard_reg_operand): Likewise.
4664 (eq_neq_comparison_operator): Delete unused operator.
4665 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4666 function_label_operand.
4667 (emit_move_sequence): Likewise.
4669 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4671 * config/i386/sse.md (sseunpackmode): New mode attribute.
4672 (ssepackmode): Ditto.
4673 (vec_pack_trunc_<mode>): Macroize expander from
4674 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4675 (vec_unpacks_lo_<mode>): Macroize expander from
4676 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4677 (vec_unpacks_hi_<mode>): Macroize expander from
4678 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4679 (vec_unpacku_lo_<mode>): Macroize expander from
4680 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4681 (vec_unpacku_hi_<mode>): Macroize expander from
4682 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4683 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4684 ix86_expand_sse4_unpack.
4685 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4687 2011-04-16 Jan Hubicka <jh@suse.cz>
4689 * cgraphbuild.c: Include ipa-inline.h.
4690 (reset_inline_failed): Use initialize_inline_failed.
4691 * cgraph.c: Include ipa-inline.h.
4692 (cgraph_create_node_1): Do not initialize estimated_growth.
4693 (initialize_inline_failed): More to ipa-inline-analysis.c
4694 (dump_cgraph_node): Do not dump inline flags.
4695 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4696 and disregard_inline_limits flags.
4697 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4698 time, size, estimated_growth.
4699 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4701 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4702 DECL_DISREGARD_INLINE_LIMITS.
4703 (cgraph_analyze_function): Do not initialize
4704 node->local.disregard_inline_limits.
4705 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4706 inlinable, versionable and disregard_inline_limits.
4707 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4708 cgraph_check_inline_limits, cgraph_default_inline_p,
4709 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4710 add_new_edges_to_heap): Update.
4711 (cgraph_decide_inlining_of_small_function): Update; set
4712 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4713 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4714 cgraph_decide_inlining_incrementally): Update.
4715 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4716 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4717 time, size and estimated_growth parameters.
4718 (estimate_edge_growth): Update.
4719 (initialize_inline_failed): Declare.
4720 * ipa-split.c: Include ipa-inline.h
4721 (execute_split_functions): Update.
4722 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4723 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4724 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4725 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4726 estimated_growth to INT_MIN.
4727 (inline_node_duplication_hook): Likewise.
4728 (dump_inline_summary): Dump new fields.
4729 (compute_inline_parameters): Update.
4730 (estimate_edge_time, estimate_time_after_inlining,
4731 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4732 inline_write_summary):
4733 (initialize_inline_failed): Move here from cgraph.c.
4734 * tree-sra.c: Include ipa-inline.h.
4735 (ipa_sra_preliminary_function_checks): Update.
4736 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4739 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4741 * config/i386/sse.md (V16): New mode iterator.
4743 (AVXMODEQI, AVXMODEDI): Remove.
4744 (sse2, sse3): New mode attribute.
4745 (mov<mode>): Use V16 mode iterator.
4746 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4747 (push<mode>1): Use V16 mode iterator.
4748 (movmisalign<mode>): Ditto.
4749 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4750 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4751 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4752 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4753 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4754 avx_movdqu<avxmodesuffix>.
4755 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4756 *avx_movdqu<avxmodesuffix>.
4757 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4758 avx_lddqu<avxmodesuffix>.
4759 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4760 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4761 avx_movnt<AVXMODEDI:mode>.
4762 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4763 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4765 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4768 * haifa-sched.c (prune_ready_list, schedule_block): Use
4769 sched_pressure_p rather than flag_sched_pressure.
4771 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4773 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4774 cgraph_get_node instead of cgraph_get_create_node.
4776 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4778 * cfgexpand.c (expand_debug_expr): Use
4779 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4781 2011-04-15 Michael Matz <matz@suse.de>
4783 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4784 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4785 * function.c (gimplify_parameters): Ditto.
4786 * gimplify.c (gimplify_vla_decl): Ditto.
4788 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4789 (gimple_call_set_alloca_for_var): New inline function.
4790 (gimple_call_alloca_for_var_p): Ditto.
4791 * gimple.c (gimple_build_call_from_tree): Remember
4792 CALL_ALLOCA_FOR_VAR_P state.
4793 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4795 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4796 calls if they were for VLA objects.
4798 2011-04-15 Martin Jambor <mjambor@suse.cz>
4800 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4803 2011-04-15 Martin Jambor <mjambor@suse.cz>
4806 * tree-emutls.c (lower_emutls_function_body): Call
4807 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4810 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4812 * c-decl.c (detect_field_duplicates): Call
4813 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4815 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4817 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4818 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4819 * ipa-pure-const.c (check_stmt): Call it.
4820 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4822 2011-04-15 Richard Guenther <rguenther@suse.de>
4824 PR tree-optimization/48290
4825 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4826 Properly decide inhibiting propagation based on the valueized
4827 operand. Do loop-closed SSA form preserving here ...
4828 (init_copy_prop): ... not here.
4830 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4833 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4834 (*ieee_smax<mode>3): Likewise.
4836 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4838 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4839 Replace match_operand with match_dup for the third operand in
4842 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4844 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4845 to track processing of conditionals. Update all callers.
4846 (try_combine, simplify_if_then_else): Update.
4848 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4850 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4853 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4855 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4856 instead of match_operand for operand 3.
4858 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4860 * recog.h (insn_operand_data): Add an "allows_mem" field.
4861 * genoutput.c (output_operand_data): Initialize it.
4862 * optabs.c (maybe_legitimize_operand_same_code): New function.
4863 (maybe_legitimize_operand): Use it when matching the original
4866 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4868 * gimplify.c: Fix issues in comments throughout.
4869 (voidify_wrapper_expr): Fix long line.
4870 (build_stack_save_restore): Likewise.
4871 (gimplify_loop_expr): Likewise.
4872 (gimplify_compound_lval): Likewise.
4873 (gimplify_init_ctor_eval): Likewise.
4874 (gimplify_modify_expr_rhs): Likewise.
4875 (omp_notice_threadprivate_variable): Likewise.
4877 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4879 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4880 original one if this is not a builtin function.
4882 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4885 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4886 offset it as needed based on top 2 bits in operands[3], change
4887 MEM mode to SFmode and mask those 2 bits away from operands[3].
4889 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4891 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4892 change from objc_declare_protocols() to objc_declare_protocol().
4894 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4896 * config/i386/sse.md (sse4_1): New mode attribute.
4897 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4898 avx_blend<ssemodesuffix><avxmodesuffix> and
4899 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4900 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4901 avx_blendv<ssemodesuffix><avxmodesuffix> and
4902 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4903 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4904 avx_dp<ssemodesuffix><avxmodesuffix> and
4905 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4906 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4907 (sse4_1_packusdw): Merge with *avx_packusdw.
4908 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4909 (sse4_1_pblendw): Merge with *avx_pblendw.
4910 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4911 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4912 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4914 (sse4_1_round<ssescalarmodesuffix>): Merge with
4915 *avx_round<ssescalarmodesuffix>.
4916 (aesenc): Merge with *avx_aesenc.
4917 (aesenclast): Merge with *avx_aesenclast.
4918 (aesdec): Merge with *avx_aesdec.
4919 (aesdeclast): Merge with *avx_aesdeclast.
4920 (pclmulqdq): Merge with *pclmulqdq.
4921 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4923 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4925 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4928 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4929 (align_local_variable): This. Update DECL_ALIGN.
4930 (add_stack_var): Updated.
4931 (expand_one_stack_var): Likewise.
4933 2011-04-14 Richard Guenther <rguenther@suse.de>
4935 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4937 (dse_initialize_block_local_data, dse_leave_block,
4938 record_voperand_set, get_stmt_uid): Likewise.
4939 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4940 (dse_optimize_stmt): Remove voperand set handling code.
4941 Simplify and improve to handle any kind of killing stmt.
4942 (dse_record_phi): Remove.
4943 (dse_enter_block): Simplify.
4944 (tree_ssa_dse): Likewise.
4945 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4947 2011-04-14 Jan Hubicka <jh@suse.cz>
4949 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4950 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4951 (cgraph_local_info): Remove inline_summary.
4952 * ipa-cp.c: Include ipa-inline.h.
4953 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4954 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4956 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4957 (input_overwrite_node): Do not set inline summary.
4958 (input_node): Do not stream inline summary.
4959 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4960 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4961 growth; we do not have inline parameters computed for that anyway.
4962 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4963 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4964 (inline_summary_t): New type and VECtor.
4965 (debug_inline_summary, dump_inline_summaries): Declare.
4966 (inline_summary): Use VOCtor.
4967 (estimate_edge_growth): Kill hack computing call stmt size directly.
4968 * lto-section-in.c (lto_section_name): Add inline section.
4969 * ipa-inline-analysis.c: Include lto-streamer.h
4970 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4971 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4972 (inline_summary_vec): Define.
4973 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4974 dump_inline_summaries): New functions.
4975 (estimate_function_body_sizes): Properly compute size/time of outgoing
4977 (compute_inline_parameters): Alloc inline_summary; do not compute
4978 size/time of incomming calls.
4979 (estimate_edge_time): Avoid missing time summary hack.
4980 (inline_read_summary): Read inline summary info.
4981 (inline_write_summary): Write inline summary info.
4982 (inline_free_summary): Free all hooks and inline summary vector.
4983 * lto-streamer.h: Add LTO_section_inline_summary section.
4984 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4985 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4987 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4989 * tree-vectorizer.h (vect_strided_store_supported): Add a
4990 HOST_WIDE_INT argument.
4991 (vect_strided_load_supported): Likewise.
4992 (vect_permute_store_chain): Return void.
4993 (vect_transform_strided_load): Likewise.
4994 (vect_permute_load_chain): Delete.
4995 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4996 count argument. Check that the count is a power of two.
4997 (vect_strided_load_supported): Likewise.
4998 (vect_permute_store_chain): Return void. Update after above changes.
4999 Assert that the access is supported.
5000 (vect_permute_load_chain): Likewise.
5001 (vect_transform_strided_load): Return void.
5002 * tree-vect-stmts.c (vectorizable_store): Update calls after
5003 above interface changes.
5004 (vectorizable_load): Likewise.
5005 (vect_analyze_stmt): Don't check for strided powers of two here.
5007 2011-04-14 Richard Guenther <rguenther@suse.de>
5009 PR tree-optimization/48590
5010 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5011 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5012 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5013 BUILT_IN_STACK_SAVE.
5014 * tree-ssa-dce.c (propagate_necessity): Handle
5015 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5017 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5019 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5022 2011-04-14 Richard Guenther <rguenther@suse.de>
5024 * tree.h (get_object_alignment_1): Declare.
5025 * builtins.c (get_object_alignment_1): Split out worker from ...
5026 (get_object_alignment): ... here.
5027 * fold-const.c (get_pointer_modulus_and_residue): Use
5028 get_object_alignment_1.
5030 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5032 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5034 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5035 parameter. Generalise code to handle arrays as well as vectors.
5036 (vect_setup_realignment): Update accordingly.
5037 * tree-vect-stmts.c (vectorizable_store): Likewise.
5038 (vectorizable_load): Likewise.
5040 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5042 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5043 within the per-copy loop.
5045 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5047 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5050 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5052 * doc/options.texi (Negative): Explicitly mention that the
5053 Negative chain must be circular.
5055 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5057 * function.h (block_chainon): Declare.
5058 * function.c (block_chainon): Define.
5060 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5061 Eric Weddington <eric.weddington@atmel.com>
5062 Georg-Johann Lay <avr@gjlay.de>
5064 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5066 (avr_init_builtins, avr_expand_builtin,
5067 avr_expand_delay_cycles, avr_expand_unop_builtin,
5068 avr_expand_binop_builtin ): New functions.
5069 (avr_builtin_id): New enum
5070 (struct avr_builtin_description): New struct
5071 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5072 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5074 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5075 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5076 UNSPECV_DELAY_CYCLES): new enumeration values
5077 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5078 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5079 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5080 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5081 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5082 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5083 "fmulsu"): New insns
5085 * config/avr/avr-c.c: fix line endings
5086 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5087 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5088 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5089 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5090 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5092 * doc/extend.texi (AVR Built-in Functions): New node
5093 (Target Builtins): Add documentation of AVR
5096 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5099 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5100 alone. Error if non-const data has attribute progmem.
5102 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5104 * tree.h (struct tree_constructor): Include tree_typed instead of
5106 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5107 TS_TYPED instead of TS_COMMON.
5109 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5111 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5112 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5113 (sse2_psadbw): Merge with *avx_psadbw.
5114 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5115 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5116 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5117 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5118 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5119 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5120 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5121 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5122 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5123 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5124 (ssse3_palignrti): Merge with *avx_palignrti.
5126 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5128 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5129 * tree-ssanames.c (fini_ssanames): VEC_free it.
5130 (make_ssa_name_fn): Update for VECness of free_ssanames.
5131 (release_ssa_name, release_dead_ssa_names): Likewise.
5132 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5134 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5135 TS_TYPED instead of TS_COMMON.
5137 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5139 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5140 statistics_counter_event.
5141 * tree-ssa-copyrename.c (stats): Define.
5142 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5143 statistics_counter_event.
5144 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5145 (bswap_stats, widen_mul_stats): Define.
5146 (insert_reciprocals): Increment rdivs_inserted.
5147 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5148 rfuncs_inserted. Add calls to statistics_counter_event.
5149 (execute_cse_sincos_1): Increment inserted.
5150 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5151 statistics_counter_event.
5152 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5153 of bswap_stats. Add calls to statistics_counter_event.
5154 (convert_mult_to_widen): Increment widen_mults_inserted.
5155 (convert_plusminus_to_widen): Increment maccs_inserted.
5156 (convert_mult_to_fma): Increment fmas_inserted.
5157 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5158 calls to statistics_counter_event.
5160 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5162 PR rtl-optimization/48455
5163 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5164 `temp_costs->mem_cost'.
5166 2011-04-13 Jan Hubicka <jh@suse.cz>
5168 * ipa-inline.h: New file.
5169 * ipa-inline-analysis.c: New file. Broken out of ...
5170 * ipa-inline.c: ... this file; update toplevel comment;
5171 include ipa-inline.h
5172 (inline_summary): Move to ipa-inline.h
5173 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5174 ipa-inline-analysis.c.
5175 (cgraph_estimate_time_after_inlining): Rename to
5176 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5177 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5178 to estimate_edge_growth.
5179 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5180 rename to estimate_size_after_inlining.
5181 (cgraph_mark_inline_edge): Update for new naming convention.
5182 (cgraph_check_inline_limits): Likewise.
5183 (cgraph_edge_badness): Likewise.
5184 (cgraph_decide_recursive_inlining): Likewise.
5185 (cgraph_decide_inlining_of_small_functions): Likewise.
5186 (cgraph_decide_inlining_incrementally): Likewise.
5187 (cgraph_estimate_growth): Rename to estimate_growth; move to
5188 ipa-inline-analysis.c.
5189 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5190 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5191 (compute_inline_parameters): Likewise.
5192 (compute_inline_parameters_for_current): Likewise.
5193 (pass_inline_parameters): Likewise.
5194 (inline_indirect_intraprocedural_analysis): Likewise.
5195 (analyze_function): Rename to inline_analyze_function; likewise.
5196 (add_new_function): Move to ipa-inline-analysis.c.
5197 (inline_generate_summary): Likewise.
5198 (inline_read_summary): Likewise.
5199 (inline_write_summary): Likewise.
5200 * Makefile.in (ipa-inline-analysis.c): New file.
5202 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5204 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5205 * configure: Regenerate.
5207 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5209 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5210 instead of tree_common.
5211 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5213 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5214 TS_TYPED rather than TS_COMMON.
5215 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5217 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5220 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5221 r20 around calls of __tablejump_elpm__
5223 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5226 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5228 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5230 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5232 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5233 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5234 (cfi_vec): New typedef.
5235 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5236 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5237 (cie_cfi_vec): New static variable.
5238 (cie_cfi_head): Delete.
5239 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5240 declaration changed. Use vector rather than list operations.
5241 (new_cfi): Don't initialize the dw_cfi_next field.
5242 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5243 rather than list operations.
5244 (lookup_cfa): Use vector rather than list operations.
5245 (output_cfis): New argument upto. Accept a cfi_vec rather than
5246 a dw_cfi_ref list head as argument. All callers changed.
5247 Iterate over the vector using upto as a maximum index.
5248 (output_all_cfis): New static function.
5249 (output_fde): Use vector rather than list operations. Use the
5250 new upto argument for output_cfis rather than manipulating a
5252 (dwarf2out_begin_prologue): Change initializations to match
5254 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5255 from the vector length rather than searching for the end of a list.
5256 Use output_all_cfis.
5257 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5259 2011-04-13 Nick Clifton <nickc@redhat.com>
5261 * config/rx/rx.md (movmemsi): Do not use this pattern when
5262 volatile pointers are involved.
5264 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5266 * config/i386/sse.md (pinsrbits): Remove.
5267 (sse2_packsswb): Merge with *avx_packsswb.
5268 (sse2_packssdw): Merge with *avx_packssdw.
5269 (sse2_packuswb): Merge with *avx_packuswb.
5270 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5271 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5272 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5273 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5274 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5275 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5276 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5277 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5278 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5279 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5280 (sse2_loadld): Merge with *avx_loadld.
5281 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5282 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5283 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5284 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5285 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5287 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5289 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5291 * print-tree.c (print_node): Likewise.
5292 * tree-inline.c (copy_tree_r): Likewise.
5293 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5294 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5295 instead of TS_COMMON.
5296 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5297 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5298 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5299 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5300 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5302 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5304 (TREE_CHAIN): Check for a TS_COMMON structure.
5305 (TREE_TYPE): Check for a TS_TYPED structure.
5307 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5309 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5310 cgraph_get_create_node instead of cgraph_node.
5312 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5314 * c-parser.c (c_parser_initelt): Updated call to
5315 objc_build_message_expr.
5316 (c_parser_postfix_expression): Likewise.
5318 2011-04-12 Kai Tietz <ktietz@redhat.com>
5320 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5321 MASK_MS_BITFIELD_LAYOUT bit.
5323 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5325 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5326 assert it is always true.
5327 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5330 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5332 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5333 compiling Objective-C to be more efficient.
5335 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5337 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5340 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5342 * recog.h, genoutput.c, optabs.c: Revert last patch.
5344 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5347 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5349 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5351 * recog.h (insn_operand_data): Add an "allows_mem" field.
5352 * genoutput.c (output_operand_data): Initialize it.
5353 * optabs.c (maybe_legitimize_operand_same_code): New function.
5354 (maybe_legitimize_operand): Use it when matching the original
5357 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5359 * genpreds.c (process_define_predicate): Move most processing
5360 to gensupport.c. Continue to validate the expression.
5361 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5362 (process_define_predicate): Move processing to gensupport.c.
5363 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5364 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5365 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5367 (valid_predicate_name_p): New function, split out from old
5368 genpreds.c:process_define_predicate.
5369 (process_define_predicate): New function, combining code from
5370 old genpreds.c and genrecog.c functions.
5371 (process_rtx): Call it for DEFINE_PREDICATE and
5372 DEFINE_SPECIAL_PREDICATE.
5374 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5376 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5377 size of a '%A' memory reference.
5378 (T_DREG, T_QREG): New neon_builtin_type_bits.
5379 (arm_init_neon_builtins): Assert that the load and store operands
5380 are neon_struct_operands.
5381 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5382 (NEON_ARG_MEMORY): New builtin_arg.
5383 (neon_dereference_pointer): New function.
5384 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5385 Handle NEON_ARG_MEMORY.
5386 (arm_expand_neon_builtin): Update after above interface changes.
5387 Use NEON_ARG_MEMORY for loads and stores.
5388 * config/arm/predicates.md (neon_struct_operand): New predicate.
5389 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5390 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5391 (V_four_elem): Tweak formatting.
5392 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5393 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5394 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5395 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5396 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5397 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5398 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5399 Use %A in the output template.
5400 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5401 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5402 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5403 the width of the memory access. Remove post-increment.
5404 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5406 2011-04-12 Nick Clifton <nickc@redhat.com>
5408 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5409 instruction for interrupt handlers if the target is the basic V850
5411 (expand_epilogue): Likewise.
5413 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5415 PR rtl-optimization/48549
5416 * combine.c (propagate_for_debug): Also stop after BB_END of
5417 this_basic_block. Process LAST and just stop processing after it.
5418 (combine_instructions): If last_combined_insn has been deleted,
5419 set last_combined_insn to its PREV_INSN.
5421 2011-04-12 Richard Guenther <rguenther@suse.de>
5423 PR tree-optimization/46076
5424 * gimple.h (struct gimple_statement_call): Add fntype field.
5425 (gimple_call_fntype): Adjust.
5426 (gimple_call_set_fntype): New function.
5427 * gimple.c (gimple_build_call_1): Set the call function type.
5428 * gimplify.c (gimplify_call_expr): Preserve the function
5429 type the frontend used for the call.
5430 (gimplify_modify_expr): Likewise.
5431 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5433 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5435 * tree-ssa.c (useless_type_conversion_p): Function pointer
5436 conversions are useless.
5438 2011-04-12 Martin Jambor <mjambor@suse.cz>
5440 * cgraph.h (cgraph_node): Remove function declaration.
5441 (cgraph_create_node): Declare.
5442 (cgraph_get_create_node): Likewise.
5443 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5444 Updated all callers.
5445 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5446 the decl does not already exist. Call cgraph_get_create_node instead
5448 (cgraph_get_create_node): New function.
5449 (cgraph_same_body_alias): Update comment.
5450 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5451 assert it does not return NULL.
5452 (cgraph_update_edges_for_call_stmt): Likewise.
5453 (cgraph_clone_edge): Likewise.
5454 (cgraph_create_virtual_clone): Likewise.
5455 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5456 instead of cgraph_node.
5457 (cgraph_add_new_function): Call cgraph_create_node or
5458 cgraph_get_create_node instead of cgraph_node.
5459 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5460 instead of cgraph_node.
5461 (record_eh_tables): Likewise.
5462 (mark_address): Likewise.
5463 (mark_load): Likewise.
5464 (build_cgraph_edges): Call cgraph_get_create_node instead
5466 (rebuild_cgraph_edges): Likewise.
5467 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5468 instead of cgraph_node.
5469 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5471 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5472 cgraph_create_node instead of cgraph_node.
5473 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5475 * lto-cgraph.c (input_node): Likewise.
5476 * lto-streamer-in.c (input_function): Likewise.
5477 * varasm.c (mark_decl_referenced): Likewise.
5478 (assemble_alias): Likewise.
5480 2011-04-12 Martin Jambor <mjambor@suse.cz>
5482 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5483 instead of cgraph_node and assert it does not return NULL.
5484 * lto-streamer-in.c (lto_read_body): Likewise.
5485 * omp-low.c (new_omp_context): Likewise.
5486 (create_task_copyfn): Likewise.
5487 * tree-emutls.c (lower_emutls_function_body): Likewise.
5488 * matrix-reorg.c (transform_allocation_sites): Likewise.
5490 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5493 * c-typeck.c (build_asm_expr): Error out on attempts to use
5494 void type outputs or inputs for constraints that allow reg or
5497 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5498 Richard Earnshaw <rearnsha@arm.com>
5501 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5502 to use sign-magnitude offsets. Reject unsupported unaligned
5503 cases. Add detailed description in comments.
5504 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5505 condition from TARGET_32BIT to TARGET_ARM.
5507 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5509 * tree.h (struct typed_tree): New.
5510 (struct tree_common): Include it instead of tree_base.
5511 (TREE_TYPE): Update for new location of type field.
5512 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5513 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5514 (union tree_node): Add typed field.
5515 * treestruct.def (TS_TYPED): New.
5516 * lto-streamer.c (check_handled_ts_structures): Handle it.
5517 * tree.c (MARK_TS_TYPED): New macro.
5518 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5520 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5522 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5523 (force_nonfallthru): Do not alter the loop nest if no basic block
5526 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5528 * config/i386/sse.md (VI): New mode iterator.
5530 (AVX256MODEI): Ditto.
5531 (AVXMODEF4P): Ditto.
5532 (avxvecpsmode): Ditto.
5533 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5534 (sse2_andnot<mode>3): New expander.
5535 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5536 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5537 (<any_logic:code><mode>3): Use VI mode iterator.
5538 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5539 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5540 (*andnottf3): Handle AVX three-operand constraints.
5541 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5543 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5544 Robert Millan <rmh@gnu.org>
5546 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5547 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5548 GNU_USER_DYNAMIC_LINKER64): Define.
5549 (REG_NAME): Don't undefine.
5550 (MD_UNWIND_SUPPORT): Undefine.
5551 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5552 (REG_NAME): Don't undefine.
5553 (MD_UNWIND_SUPPORT): Undefine.
5554 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5556 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5558 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5559 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5561 2011-04-11 Xinliang David Li <davidxl@google.com>
5563 * value-profile.c (check_ic_target): New function.
5564 (gimple_ic_transform): Sanity check indirect call target.
5565 * gimple-low.c (gimple_check_call_args): Interface change.
5566 (gimple_check_call_matching_types): New function.
5567 * tree-inline.c (tree_can_inline_p): Call new function.
5569 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5571 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5572 tree-pretty-print.h & realmpfr.h.
5574 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5577 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5578 (setup_allocno_and_important_classes): Ditto.
5580 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5582 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5583 GNU_USER_DYNAMIC_LINKER.
5584 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5585 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5586 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5587 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5588 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5589 GNU_USER_TARGET_OS_CPP_BUILTINS.
5590 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5592 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5593 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5594 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5595 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5596 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5597 GNU_USER_TARGET_OS_CPP_BUILTINS.
5598 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5599 GNU_USER_DYNAMIC_LINKER.
5600 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5601 GNU_USER_TARGET_OS_CPP_BUILTINS.
5602 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5603 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5604 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5605 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5606 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5607 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5608 GNU_USER_DYNAMIC_LINKER64): Remove.
5609 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5610 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5611 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5612 GNU_USER_DYNAMIC_LINKER.
5613 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5614 GNU_USER_TARGET_OS_CPP_BUILTINS.
5615 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5616 GNU_USER_TARGET_OS_CPP_BUILTINS.
5617 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5618 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5619 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5620 GNU_USER_TARGET_OS_CPP_BUILTINS.
5621 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5622 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5623 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5624 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5626 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5627 GNU_USER_DYNAMIC_LINKER.
5628 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5629 GNU_USER_TARGET_OS_CPP_BUILTINS.
5630 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5631 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5632 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5633 GNU_USER_DYNAMIC_LINKER.
5634 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5635 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5636 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5638 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5639 GNU_USER_DYNAMIC_LINKER.
5640 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5641 GNU_USER_DYNAMIC_LINKERN32.
5642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5643 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5644 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5645 GNU_USER_DYNAMIC_LINKER32.
5646 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5648 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5649 GNU_USER_DYNAMIC_LINKER.
5650 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5651 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5652 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5653 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5654 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5655 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5656 GNU_USER_DYNAMIC_LINKER32.
5657 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5658 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5659 GNU_USER_DYNAMIC_LINKER.
5660 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5661 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5662 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5663 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5664 GNU_USER_DYNAMIC_LINKER64.
5665 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5667 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5668 GNU_USER_DYNAMIC_LINKER.
5669 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5670 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5671 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5672 GNU_USER_DYNAMIC_LINKER.
5673 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5674 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5675 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5676 GNU_USER_DYNAMIC_LINKER32.
5677 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5678 GNU_USER_DYNAMIC_LINKER64.
5679 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5680 GNU_USER_DYNAMIC_LINKER64.
5681 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5682 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5683 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5684 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5685 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5687 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5689 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5690 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5691 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5692 GNU_USER_DYNAMIC_LINKER.
5693 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5694 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5695 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5696 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5697 GNU_USER_DYNAMIC_LINKER64.
5698 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5699 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5700 GNU_USER_LINK_EMULATION.
5701 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5702 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5703 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5704 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5705 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5706 CPP_SPEC, CC1_SPEC): Remove.
5707 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5708 (GNU_USER_DYNAMIC_LINKER): Define.
5709 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5710 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5711 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5712 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5713 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5714 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5715 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5716 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5717 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5718 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5719 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5720 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5721 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5722 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5723 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5724 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5725 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5726 GNU_USER_DYNAMIC_LINKER.
5727 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5728 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5729 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5730 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5731 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5732 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5733 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5734 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5735 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5736 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5738 2011-04-11 Kai Tietz <ktietz@redhat.com>
5742 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5743 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5745 (ix86_is_msabi_thiscall): Removed.
5746 (ix86_is_type_thiscall): Likewise.
5747 (ix86_get_callcvt): New function.
5748 (ix86_comp_type_attributes): Simplify check.
5749 (ix86_function_regparm): Use ix86_get_callcvt for calling
5750 convention attribute checks.
5751 (ix86_return_pops_args): Likewise.
5752 (ix86_static_chain): Likewise.
5753 (x86_this_parameter): Likewise.
5754 (x86_output_mi_thunk): Likewise.
5755 (ix86_function_type_abi): Optimize check for types without attributes.
5756 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5757 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5758 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5760 (IX86_BASE_CALLCVT): Helper macro.
5761 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5762 Use ix86_get_callcvt for calling convention attribute checks and avoid
5763 symbol-decoration for stdcall in TARGET_RTD case.
5764 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5766 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5769 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5771 * config/i386/sse.md (VI_128): New mode iterator.
5772 (VI12_128): Rename from SSEMODE12.
5773 (VI14_128): Rename from SSEMODE14.
5774 (VI124_128): New mode iterator.
5775 (VI24_128): Rename from SSEMODE248.
5776 (VI248_128): Rename from SSEMODE248.
5777 (SSEMODE124C8): Remove.
5778 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5779 (*sse2_<plusminus_insn><mode>3): Merge with
5780 *avx_<plusminus_insn><mode>3.
5781 (*mulv8hi3): Merge with *avx_mulv8hi3.
5782 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5783 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5784 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5785 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5786 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5787 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5788 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5789 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5790 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5791 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5792 (*<smaxmin:code>v8hi3): Ditto.
5793 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5794 (*<smaxmin:code>v16qi3): Ditto.
5795 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5796 (*sse2_eq<mode>3): Ditto.
5797 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5798 (*sse2_gt<mode>3): Ditto.
5799 (vcondv2di): Split out of vcond<mode>.
5800 (vconduv2di): Split out of vcondu<mode>.
5802 2011-04-11 Richard Guenther <rguenther@suse.de>
5804 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5805 before calling tree_low_cst.
5807 2011-04-11 Richard Guenther <rguenther@suse.de>
5809 * stor-layout.c (layout_type): Compute all array index size operations
5810 in the original type.
5811 (initialize_sizetypes): Add comment.
5812 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5814 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5816 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5818 2011-04-11 Martin Jambor <mjambor@suse.cz>
5820 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5821 of cgraph_node, handle NULL return value.
5822 (cgraph_global_info): Likewise.
5823 (cgraph_rtl_info): Likewise.
5824 * tree-inline.c (estimate_num_insns): Likewise.
5825 * gimplify.c (unshare_body): Likewise.
5826 (unvisit_body): Likewise.
5827 (gimplify_body): Likewise.
5828 * predict.c (optimize_function_for_size_p): Likewise.
5829 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5830 (call_may_clobber_ref_p_1): Likewise.
5831 * varasm.c (function_section_1): Likewise.
5832 (assemble_start_function): Likewise.
5834 2011-04-11 Martin Jambor <mjambor@suse.cz>
5836 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5838 * final.c (rest_of_clean_state): Likewise.
5839 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5840 * passes.c (pass_init_dump_file): Likewise.
5841 (execute_all_ipa_transforms): Likewise.
5842 (function_called_by_processed_nodes_p): Likewise.
5843 * predict.c (maybe_hot_frequency_p): Likewise.
5844 (probably_never_executed_bb_p): Likewise.
5845 (compute_function_frequency): Likewise.
5846 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5847 (unnest_nesting_tree_1): Likewise.
5848 (lower_nested_functions): Likewise.
5849 * tree-optimize.c (execute_fixup_cfg): Likewise.
5850 (tree_rest_of_compilation): Likewise.
5851 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5852 * tree-sra.c (ipa_early_sra): Likewise.
5853 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5854 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5855 * ipa.c (record_cdtor_fn): Likewise.
5856 * ipa-inline.c (cgraph_early_inlining): Likewise.
5857 (compute_inline_parameters_for_current): Likewise.
5858 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5859 * ipa-pure-const.c (local_pure_const): Likewise.
5860 * ipa-split.c (split_function): Likewise.
5861 (execute_split_functions): Likewise.
5862 * cgraphbuild.c (build_cgraph_edges): Likewise.
5863 (rebuild_cgraph_edges): Likewise.
5864 (cgraph_rebuild_references): Likewise.
5865 (remove_cgraph_callee_edges): Likewise.
5866 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5867 (verify_cgraph_node): Likewise.
5868 (cgraph_analyze_functions): Likewise.
5869 (cgraph_preserve_function_body_p): Likewise.
5870 (save_inline_function_body): Likewise.
5871 (save_inline_function_body): Likewise.
5872 * tree-inline.c (copy_bb): Likewise.
5873 (optimize_inline_calls): Likewise.
5875 2011-04-11 Martin Jambor <mjambor@suse.cz>
5877 PR tree-optimization/48195
5878 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5879 ipa_check_create_edge_args.
5880 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5881 ipa_check_create_edge_args.
5882 * ipa-inline.c (inline_generate_summary): Do not call
5883 ipa_check_create_node_params and ipa_check_create_edge_args.
5884 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5885 ipa_check_create_edge_args.
5887 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5889 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5891 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5892 * function.c (record_hard_reg_sets): Likewise.
5893 * ira.c (compute_regs_asm_clobbered): Likewise.
5894 * sched-deps.c (sched_analyze_1): Likewise.
5895 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5897 2011-04-09 Xinliang David Li <davidxl@google.com>
5899 PR tree-optimization/PR48484
5900 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5901 has_valid_pred lazily
5903 2011-04-09 Duncan Sands <baldrick@free.fr>
5905 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5907 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5909 * combine.c (combine_validate_cost): Adjust comments. Set registered
5910 cost of I0 to zero at the end, if any.
5912 2011-04-08 Xinliang David Li <davidxl@google.com>
5914 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5915 to insane profile data.
5917 2011-04-08 Xinliang David Li <davidxl@google.com>
5919 * ipa-cp.c (ipcp_update_profiling): Correct
5920 negative scale factor due to insane profile data.
5922 2011-04-08 Xinliang David Li <davidxl@google.com>
5924 * final.c (dump_basic_block_info): New function.
5925 (final): Dump basic block.
5926 (final_scan_insn): Remove old dump.
5928 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5931 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5934 2011-04-08 Michael Matz <matz@suse.de>
5937 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5939 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5940 * rtl.h (rebuild_jump_labels_chain): Declare.
5941 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5942 insns inserted on edges.
5944 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5946 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5947 * config/arm/arm-arches.def: New.
5948 * config/arm/arm-opts.h: New.
5949 * config/arm/genopt.sh: New.
5950 * config/arm/arm-tables.opt: New (generated).
5951 * config/arm/arm.c (arm_handle_option, arm_target_help,
5952 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5953 (all_architectures): Get most table contents from arm-arches.def.
5954 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5955 arm_selected_tune here.
5956 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5957 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5958 (march=, mcpu=, mtune=): Use Enum and Var.
5959 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5960 (arm.o): Update dependencies.
5962 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5964 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5966 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5967 (write_typed_alloc_defns): Likewise.
5968 (main): Calls write_typed_alloc_defns with output_header.
5970 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5973 * ira-color.c (setup_profitable_hard_regs): Add comments.
5974 Don't take prohibited hard regs into account.
5975 (setup_conflict_profitable_regs): Rename to
5976 get_conflict_profitable_regs.
5977 (check_hard_reg_p): Check prohibited hard regs.
5979 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5981 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5982 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5983 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5985 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5988 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5989 move from floating point to shift amount register.
5990 (emit_move_sequence): Remove secondary reload support for floating
5991 point to shift amount amount register copies.
5992 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5993 amount register copies.
5994 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5995 register, return false if mode isn't a scalar integer mode.
5996 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5998 2011-04-08 Richard Guenther <rguenther@suse.de>
6000 * gimple.c (gimple_call_flags): Remove kludge.
6002 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6004 * sel-sched.c (sel_region_init): Move call to
6005 sel_setup_region_sched_flags after setup_current_loop_nest.
6007 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6009 PR rtl-optimization/48272
6010 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6011 init_insn_reg_pressure_info. Adjust a caller.
6012 * sched-int.h (init_insn_reg_pressure_info): Declare.
6013 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6014 when sched-pressure is enabled.
6016 2011-04-08 Richard Guenther <rguenther@suse.de>
6018 * gimple.c (gimple_set_modified): Do not queue calls to
6019 MODIFIED_NORETURN_CALLS here ...
6020 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6022 2011-04-08 Richard Guenther <rguenther@suse.de>
6025 * toplev.c (lang_dependent_init): Do not open asm_out_file
6026 in WPA mode, nor perform debug machinery initialization.
6027 (finalize): Do not unlink asm_out_file in WPA mode.
6029 2011-04-08 Richard Guenther <rguenther@suse.de>
6031 * gimple.h (gimple_call_fntype): New function.
6032 (gimple_call_return_type): Use it.
6033 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6034 * gimple-low.c (gimple_check_call_args): Likewise.
6035 * gimple.c (gimple_call_flags): Likewise.
6036 (gimple_call_arg_flags): Likewise.
6037 (gimple_call_return_flags): Likewise.
6038 * tree-cfg.c (verify_gimple_call): Likewise.
6039 (do_warn_unused_result): Likewise.
6040 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6041 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6043 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6045 PR rtl-optimization/48235
6046 * sel-sched.c (code_motion_process_successors): Recompute the last
6047 insn in basic block if control flow changed.
6048 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6049 Update condition for ilist_remove.
6051 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6053 PR rtl-optimization/48302
6054 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6055 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6056 it to record added preheader blocks.
6057 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6058 on to sel_add_loop_preheaders.
6059 (sel_region_init): Move call to setup_current_loop_nest after
6062 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6065 * cfgloop.h (loop_has_exit_edges): New helper.
6066 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6068 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6069 that have no exit edges.
6071 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6073 PR rtl-optimization/48442
6074 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6075 all callers. Adjust assert.
6077 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6079 PR tree-optimization/48377
6080 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6081 is_packed to true even for types with smaller TYPE_ALIGN than
6084 2011-04-08 Richard Guenther <rguenther@suse.de>
6087 * doc/tm.texi: Re-generate.
6089 2011-04-08 Wei Guozhi <carrot@google.com>
6092 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6093 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6094 * config/arm/arm.md (*push_multi): Change the length computation to
6097 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6099 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6100 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6101 * doc/tm.texi: Regenerate.
6102 * system.h (ASM_OUTPUT_BSS): Poison.
6103 * varasm.c (asm_output_bss): Remove function.
6104 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6106 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6107 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6108 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6109 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6111 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6113 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6115 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6117 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6119 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6122 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6124 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6125 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6126 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6128 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6129 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6130 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6131 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6132 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6133 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6134 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6135 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6136 options. Don't map other m68k options manually. Don't handle
6137 old-style options as canonical.
6138 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6139 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6141 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6143 * basic-block.h (force_nonfallthru): Move to...
6144 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6145 (force_nonfallthru): ...here.
6146 * cfghooks.c (force_nonfallthru): New function.
6147 * cfgrtl.c (force_nonfallthru): Rename into...
6148 (rtl_force_nonfallthru): ...this.
6149 (commit_one_edge_insertion): Do not set AUX field.
6150 (commit_edge_insertions): Do not discover new basic blocks.
6151 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6152 (cfg_layout_rtl_cfg_hooks): Likewise.
6153 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6154 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6155 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6157 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6159 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6162 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6164 * config/i386/sse.md: Update copyright year.
6165 (avxcvtvecmode): Remove.
6166 (sse_movhlps): Merge with *avx_movhlps.
6167 (sse_movlhps): Merge with *avx_movlhps.
6168 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6169 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6170 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6171 (sse_loadhps): Merge with *avx_loadhps.
6172 (sse_storelps): Merge with *avx_storelps.
6173 (sse_loadlps): Merge with *avx_loadlps.
6174 (sse_movss): Merge with *avx_movss.
6175 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6176 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6177 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6178 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6179 (vec_set<mode>_0): Ditto.
6180 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6181 (sse4_1_insertps): Merge with *avx_insertps.
6182 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6183 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6184 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6185 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6186 (sse2_storehpd): Merge with *avx_storehpd.
6187 (sse2_loadhpd): Merge with *avx_loadhpd.
6188 (sse2_loadlpd): Merge with *avx_loadlpd.
6189 (sse2_movsd): Merge with *avx_movsd.
6190 (*vec_concatv2df): Merge with *vec_concatv2df.
6192 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6195 * combine.c (combine_instructions): Add last_combined_insn,
6196 update it if insn is after it, pass it to all try_combine calls.
6197 (try_combine): Add last_combined_insn parameter, pass it instead of
6198 i3 to propagate_for_debug.
6200 2011-04-07 Nick Clifton <nickc@redhat.com>
6202 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6203 to handle MDR <-> data register transfers.
6204 (movhi_internal): Likewise.
6206 2011-04-07 Alan Modra <amodra@gmail.com>
6208 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6209 previous stack info.
6211 2011-04-07 Tom de Vries <tom@codesourcery.com>
6214 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6215 flow_find_cross_jump. Swap variables to implement backward replacement.
6216 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6218 2011-04-07 Tom de Vries <tom@codesourcery.com>
6221 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6222 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6224 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6225 src1 or src2. Redirect edges to the last basic block. Update
6226 frequency and count on multiple basic blocks in case of fallthru.
6228 2011-04-07 Tom de Vries <tom@codesourcery.com>
6231 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6233 (old_insns_match_p): Change return type. Replace return false/true
6234 with return dir_none/dir_both. Use can_replace_by.
6235 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6236 direction from dir_p. Register replacement direction in dir, last_dir
6237 and afterlast_dir. Handle new return type of old_insns_match_p using
6238 merge_dir. Return replacement direction in dir_p.
6239 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6240 return type of old_insns_match_p.
6241 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6242 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6243 flow_find_cross_jump.
6244 * basic-block.h (enum replace_direction): New type.
6245 (flow_find_cross_jump): Add parameter to declaration.
6247 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6249 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6250 (AVXMODEDCVTPS2DQ): Ditto.
6251 (VEC_FLOAT_MODE): Ditto.
6252 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6253 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6254 (<any_logic:code><mode>3): Use VF mode iterator.
6255 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6256 Use VF mode iterator.
6257 (copysign<mode>3): Use VF mode iterator.
6258 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6259 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6260 (*<any_logic:code><MODEF:mode>3): Merge with
6261 *avx_<any_logic:code><MODEF:mode>3.
6262 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6263 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6264 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6265 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6266 (sse2_cvtdq2ps): Use %v modifier.
6267 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6268 (avx_cvtps2dq<avxmodesuffix>): Remove.
6269 (sse2_cvtps2dq): Use %v modifier.
6270 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6271 (avx_cvttps2dq<avxmodesuffix>): Remove.
6272 (sse2_cvttps2dq): Use %v modifier.
6273 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6274 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6275 (sse2_cvtsd2siq): Fix insn template.
6276 (sse2_cvtsd2siq_2): Ditto.
6277 (sse2_cvttsd2siq): Ditto.
6278 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6279 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6281 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6283 * gcov-io.c: Use GCC Runtime Library Exception.
6285 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6288 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6289 as base_reg whatever register reg has been eliminated to, instead
6290 of hardcoding STACK_POINTER_REGNUM.
6292 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6294 * doc/tm.texi.in: Document C target hooks as separate from general
6296 * doc/tm.texi: Regenerate.
6297 * genhooks.c (struct hook_desc): Add docname field.
6298 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6300 (hook_array): Include c-target.def.
6301 (emit_documentation): Use docname field in output.
6302 (emit_init_macros): Take docname argument. Only emit definitions
6303 for hooks matching docname.
6304 (main): Expect additional arguments in all cases. Pass argument
6305 to emit_init_macros.
6306 * target.def: Move initial macro definitions and comments to
6307 target-hooks-macros.h.
6308 (gcc_targetcm): Move to c-family/c-target.def.
6309 * target.h (targetcm): Move declaration to c-family/c-target.h.
6310 * targhooks.c (default_handle_c_option): Move to
6312 * targhooks.h (default_handle_c_option): Move declaration to
6313 c-family/c-common.h.
6314 * target-hooks-macros.h: New file.
6315 * config.gcc (target_has_targetcm): Define and use to add to
6316 c_target_objs and cxx_target_objs.
6317 * config/default-c.c: New file.
6318 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6319 of target.h and target-def.h.
6320 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6321 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6322 darwin_check_cfstring_format_arg): Make static.
6323 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6324 TARGET_STRING_OBJECT_REF_TYPE_P,
6325 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6326 * config/darwin-protos.h (darwin_objc_construct_string,
6327 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6329 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6330 TARGET_STRING_OBJECT_REF_TYPE_P,
6331 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6332 * config/t-darwin (darwin-c.o): Update dependencies.
6333 * system.h (TARGET_HAS_TARGETCM): Poison.
6334 * Makefile.in (TARGET_H): Update.
6335 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6336 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6337 (default-c.o): New target.
6338 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6339 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6340 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6342 (build/genhooks.o): Update dependencies.
6344 2011-04-06 Richard Guenther <rguenther@suse.de>
6346 * ipa-inline.c (enum inlining_mode): Remove.
6347 (cgraph_flatten): Use some other token.
6348 (cgraph_edge_early_inlinable_p): New function, split out from ...
6349 (cgraph_perform_always_inlining): New function, split out from ...
6350 (cgraph_decide_inlining_incrementally): ... here.
6351 (cgraph_mark_inline_edge): Adjust.
6352 (cgraph_early_inlining): Re-structure.
6353 (pass_early_inline): Require SSA form.
6355 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6356 Julian Brown <julian@codesourcery.com>
6357 Mark Shinwell <shinwell@codesourcery.com>
6359 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6360 LO_REGS only for Thumb-1.
6361 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6362 be used in short instructions when optimising for size on Thumb-2.
6364 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6366 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6367 associated with user returns to be preserved.
6369 2011-04-06 Tristan Gingold <gingold@adacore.com>
6371 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6372 symbol_queue_size, DBXOUT_DECR_NESTING,
6373 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6374 if XCOFF_DEBUGGING_INFO.
6376 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6378 * config/i386/i386.md (attribute isa): New.
6379 (attribute enabled): New.
6380 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6381 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6382 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6383 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6384 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6385 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6386 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6387 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6389 * config/i386/sse.md (VF): New mode iterator.
6393 (SSEMODEF4): Remove.
6394 (attribute sse): Handle V8SF and V4DF modes.
6395 (<absneg:code><mode>2): Use VF mode iterator.
6396 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6398 (<plusminus_insn><mode>3): Use VF mode iterator.
6399 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6400 Use VF mode iterator.
6401 (<sse>_vm<plusminus_insn><mode>3): Merge with
6402 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6403 (mul<mode>3): Use VF mode iterator.
6404 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6405 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6407 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6408 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6409 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6410 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6412 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6413 Use VF1 mode iterator.
6414 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6415 (sqrt<VF2:mode>2): New expander.
6416 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6417 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6418 and sqrtv2df2. Use VF mode iterator.
6419 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6421 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6422 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6423 Use VF1 mode iterator.
6424 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6425 (<smaxmin:code><mode>3): Use VF mode iterator.
6426 (*<smaxmin:code><mode>3_finite): Merge with
6427 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6428 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6429 (<sse>_vm<smaxmin:code><mode>2): Merge with
6430 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6431 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6433 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6435 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6436 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6437 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6438 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6439 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6441 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6442 Use VF_128 mode iterator.
6443 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6445 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6446 VF_128 mode iterator.
6447 (vcond<mode>): Use VF mode iterator.
6448 * config/i386/predicates.md (sse_comparison_operator): Merge with
6449 avx_comparison_float_operator. Do not declare as special_predicate.
6450 * config/i386/i386.c (struct builtin_description): Update for renamed
6452 (ix86_expand_args_builtin): Ditto.
6453 (ix86_expand_sse_compare_mask): Ditto.
6455 2011-04-06 Richard Guenther <rguenther@suse.de>
6457 * tree-inline.c (estimate_num_insns): For calls simply account
6458 for all passed arguments and a used return value.
6460 2011-04-06 Richard Guenther <rguenther@suse.de>
6462 PR tree-optimization/47663
6463 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6464 call_stmt_time fields.
6465 (cgraph_edge_inlinable_p): Declare.
6466 (cgraph_edge_recursive_p): New inline function.
6467 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6468 (cgraph_clone_edge): Copy it.
6469 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6470 Account for call stmt time.
6471 (cgraph_estimate_time_after_inlining): Take edge argument.
6472 (cgraph_estimate_edge_growth): Account call stmt size.
6473 (cgraph_estimate_size_after_inlining): Take edge argument.
6474 (cgraph_mark_inline_edge): Adjust.
6475 (cgraph_check_inline_limits): Likewise.
6476 (cgraph_recursive_inlining_p): Remove.
6477 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6478 (cgraph_decide_recursive_inlining): Take edge argument and
6480 (cgraph_decide_inlining_of_small_functions): Do not avoid
6481 diags for recursive inlining here.
6482 (cgraph_flatten): Adjust.
6483 (cgraph_decide_inlining_incrementally): Likewise.
6484 (estimate_function_body_sizes): Remove call cost handling.
6485 (compute_inline_parameters): Initialize caller edge call costs.
6486 (cgraph_estimate_edge_growth): New function.
6487 (cgraph_estimate_growth): Use it.
6488 (cgraph_edge_badness): Likewise.
6489 (cgraph_check_inline_limits): Take an edge argument.
6490 (cgraph_decide_inlining_of_small_functions): Adjust.
6491 (cgraph_decide_inlining): Likewise.
6492 * tree-inline.c (estimate_num_insns): Only account for call
6493 return value if it is used.
6494 (expand_call_inline): Avoid diagnostics on recursive inline
6496 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6497 (input_edge): Input edge call costs.
6499 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6501 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6503 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6505 * doc/invoke.texi (Spec Files): Fix typo.
6507 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6509 * profile.c (branch_prob): Move declaration of local variable. Remove
6510 obsolete ??? comment. Expand the location explicitly instead of using
6511 the LOCATION_FILE and LOCATION_LINE macros.
6513 2011-04-06 Wei Guozhi <carrot@google.com>
6516 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6517 (arm_cond_branch): Likewise.
6518 (arm_cond_branch_reversed): Likewise.
6519 (arm_jump): Likewise.
6520 (push_multi): Likewise.
6521 * config/arm/constraints.md (Py): New constraint.
6523 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6526 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6528 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6529 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6530 #ifdef DBX_DEBUGGING_INFO.
6532 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6535 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6536 if old and new states differ.
6538 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6540 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6541 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6542 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6543 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6544 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6546 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6547 ColdFire options to -mcpu= options.
6549 2011-04-05 Jeff Law <law@redhat.com>
6551 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6552 check if BB is a successor of LOOP->header and return
6553 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6555 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6557 * cprop.c (struct reg_use): Remove.
6558 (reg_use_table): Make an array of RTX.
6559 (find_used_regs, constprop_register, local_cprop_pass,
6560 bypass_block): Simplify users of reg_use_table.
6561 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6562 on one of the uses found by find_used_regs.
6564 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6567 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6570 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6572 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6574 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6576 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6579 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6581 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6583 * combine.c: Include obstack.h.
6584 (struct insn_link): Define.
6585 (uid_log_links): Adjust type.
6586 (FOR_EACH_LOG_LINK): New macro.
6587 (insn_link_obstack): Declare.
6588 (alloc_insn_link): Define.
6589 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6590 type of link variables.
6591 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6592 (try_combine, record_promoted_values, distribute_notes): Likewise.
6593 (distribute_links): Likewise. Tweak prototype.
6594 (clear_log_links): Delete.
6595 (adjust_for_new_dest): Call alloc_insn_link.
6596 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6598 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6600 * gcse.c (modify_mem_list): Convert to an array of VECs.
6601 (canon_modify_mem_list, compute_transp): Tweak formatting.
6602 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6603 (load_killed_in_block_p): Likewise.
6604 (record_last_mem_set_info): Likewise.
6605 (clear_modify_mem_tables): Likewise.
6607 2011-04-05 Tom de Vries <tom@codesourcery.com>
6610 * function.c (emit_use_return_register_into_block): Only define if
6613 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6615 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6617 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6619 * config/rx/rx-opts.h: New.
6620 * config/rx/rx.c (rx_cpu_type): Remove.
6621 (rx_handle_option): Don't assert that global structures are in
6622 use. Access variables via opts pointer. Defer most handling of
6623 OPT_mint_register_. Use error_at.
6624 (rx_option_override): Handle deferred OPT_mint_register_ here.
6625 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6626 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6627 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6628 (rx_cpu_types): New Enum and EnumValue entries.
6629 (mint-register=): Use Defer and use Var accordingly.
6631 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6633 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6634 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6635 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6637 (debug_free_queue, debug_nesting, symbol_queue_index):
6639 * dbxout.c: ...to here. Make static.
6641 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6643 * gcse.c (modify_pair): Define. Define a VEC of it.
6644 (canon_modify_mem_list): Convert to an array of VECs.
6645 (free_insn_expr_list_list): Delete.
6646 (clear_modify_mem_tables): Call VEC_free instead.
6647 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6648 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6649 (canon_list_insert, compute_transp): Likewise.
6651 2011-04-05 Tom de Vries <tom@codesourcery.com>
6654 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6657 2011-04-05 Tom de Vries <tom@codesourcery.com>
6660 * function.c (emit_use_return_register_into_block): New function.
6661 (thread_prologue_and_epilogue_insns): Use
6662 emit_use_return_register_into_block.
6664 2011-04-05 Tom de Vries <tom@codesourcery.com>
6667 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6670 2011-04-05 Tom de Vries <tom@codesourcery.com>
6672 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6674 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6676 * config/arm/arm.md (define_constants for unspec): Replace with
6678 (define_constants for unspecv): Replace with define_c_enum.
6679 * config/arm/neon.md (define_constants for unspec): Replace with
6682 2011-04-04 Richard Henderson <rth@redhat.com>
6685 * dwarf2out.c (output_line_info): Always emit line info from
6686 at least one section.
6687 (dwarf2out_init): Create text_section_line_info here ...
6688 (set_cur_line_info_table): ... not here.
6690 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6693 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6696 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6698 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6700 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6701 (expr_equiv_p): Remove.
6702 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6703 (hash_scan_set): Update call to insert_set_in_table.
6704 (dump_hash_table): Dump <dest, src> pair.
6705 (lookup_set): Simplify. Lookup <dest, src> pair.
6706 (compute_transp): Remove, fold heavily simplified code into...
6707 (compute_local_properties): ...here. Expect COMP and TRANSP
6709 (find_avail_set): Take set directly from struct expr.
6710 (find_bypass-set): Likewise.
6711 (bypass_block): Likewise.
6712 (cprop_insn): Likewise. Remove redundant INSN_P test.
6714 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6715 checks on form of COND from find_implicit_sets to here.
6716 (find_implicit_sets): Cleanup control flow. Split critical edges
6717 if it exposes implicit sets. Allocate/resize implicit_sets as
6719 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6720 changed something. Run df_analyze after find_implicit_sets if any
6721 edges were split. Do not allocate implicit_sets here.
6723 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6724 (gcse_obstack): Renamed to cprop_obstack.
6725 (GNEW, GNEWVEC, GNEWVAR): Remove.
6727 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6728 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6729 (gcse_alloc): Likewise, and rename to cprop_alloc.
6730 (alloc_gcse_men, free_gcse_mem): Remove.
6731 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6732 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6733 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6735 * cprop.c (oprs_not_set_p): Remove.
6736 (mark_set, mark_clobber): Remove.
6737 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6738 (reg_not_set_p): New function.
6739 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6740 (cprop_insn): Likewise.
6741 (cprop_jump): Use FOR_EACH_EDGE.
6743 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6746 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6747 (rank_for_schedule): Use scheduled_insns vector instead of
6748 last_scheduled_insn.
6749 (ok_for_early_queue_removal): Likewise.
6750 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6752 (choose_ready): Likewise.
6753 (commit_schedule): Use VEC_iterate.
6754 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6755 a dbg_cnt, use it and ensure the first insn is in the ready list.
6756 (haifa_sched_init): Allocate scheduled_insns.
6757 (sched_extend_ready_list): Don't allocate it; reserve space.
6758 (haifa_sched_finish): Free it.
6760 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6762 * optc-gen.awk: Always remove type from Variable entry before
6763 recording in var_seen.
6765 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6767 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6768 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6769 call to tidy_fallthru_edges.
6771 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6773 * doc/options.texi (ToLower): Document.
6774 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6775 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6776 * opts.h (cl_option): Add cl_tolower field.
6777 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6778 arguments with lowercase strings.
6779 * config/rx/rx.opt (mcpu=): Add ToLower.
6780 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6783 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6785 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6787 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6789 * config/vax/vax.c: Include reload.h.
6791 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6793 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6794 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6795 (sparc_preferred_reload_class): New function.
6797 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6800 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6801 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6803 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6805 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6806 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6808 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6810 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6811 (ASM_OUTPUT_ALIGNED_BSS): Define.
6813 2011-04-03 Michael Matz <matz@suse.de>
6815 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6816 and next_slot members.
6817 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6818 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6819 (lto_streamer_cache_append): Declare.
6820 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6821 unsigned index, remove offset parameter, ensure that we append
6822 or update existing entries.
6823 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6824 parameter, update next_slot for append.
6825 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6827 (lto_streamer_cache_insert_at): Likewise.
6828 (lto_streamer_cache_append): New function.
6829 (lto_streamer_cache_lookup): Use unsigned index.
6830 (lto_streamer_cache_get): Likewise.
6831 (lto_record_common_node): Don't test tree_node_can_be_shared.
6832 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6833 (lto_streamer_cache_delete): Don't free offsets member.
6834 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6835 (lto_output_string_with_length): Use lto_output_data_stream.
6836 (lto_output_tree_header): Remove ix parameter, don't write it.
6837 (lto_output_builtin_tree): Likewise.
6838 (lto_write_tree): Adjust callers to above, don't track and write
6839 offset, write unsigned index.
6840 (output_unreferenced_globals): Don't emit all global vars.
6841 (write_global_references): Use unsigned indices.
6842 (lto_output_decl_state_refs): Likewise.
6843 (write_symbol): Likewise.
6844 * lto-streamer-in.c (lto_input_chain): Move earlier.
6845 (input_function): Use unsigned index.
6846 (input_alias_pairs): Don't read and then ignore all global vars.
6847 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6848 don't pass it back, use lto_streamer_cache_append.
6849 (lto_register_var_decl_in_symtab): Use unsigned index.
6850 (lto_register_function_decl_in_symtab): Likewise.
6851 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6853 (lto_get_builtin_tree): Don't read index, use
6854 lto_streamer_cache_append.
6855 (lto_read_tree): Adjust call to lto_materialize_tree.
6857 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6858 don't use function calls in arguments to MIN.
6860 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6863 * gimple.c (gimple_type_leader_entry): Mark deletable.
6865 2011-04-03 Alan Modra <amodra@gmail.com>
6867 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6869 2011-04-03 Michael Matz <matz@suse.de>
6871 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6873 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6875 2011-04-03 Michael Matz <matz@suse.de>
6877 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6878 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6879 without function context.
6880 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6881 current_function_decl and cfun.
6883 2011-04-03 Michael Matz <matz@suse.de>
6885 * tree.c (decl_init_priority_insert): Don't create entry for
6887 (decl_fini_priority_insert): Ditto.
6888 (fields_compatible_p, find_compatible_field): Remove.
6889 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6890 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6892 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6894 * combine.c (try_combine): Remove useless local variable.
6896 2011-04-03 Richard Guenther <rguenther@suse.de>
6897 Ira Rosen <ira.rosen@linaro.org>
6899 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6900 non-variable offsets and compare the remaining bases of the two
6901 accesses instead of looking for exact same data-ref.
6903 2011-04-02 Kai Tietz <ktietz@redhat.com>
6906 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6908 * i386.c (ix86_is_msabi_thiscall): New helper function.
6909 (ix86_is_type_thiscall): New helper function.
6910 (ix86_comp_type_attributes): Handle thiscall for method-functions
6912 (init_cumulative_args): Likewise.
6913 (find_drap_reg): Likewise.
6914 (ix86_static_chain): Likewise.
6915 (x86_this_parameter): Likewise.
6916 (x86_output_mi_thunk): Likewise.
6918 2011-04-01 Olivier Hainque <hainque@adacore.com>
6919 Nicolas Setton <setton@adacore.com>
6920 Eric Botcazou <ebotcazou@adacore.com>
6922 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6923 (add_gnat_descriptive_type_attribute): New function.
6924 (gen_array_type_die): Call it.
6925 (gen_enumeration_type_die): Likewise.
6926 (gen_struct_or_union_type_die): Likewise.
6927 (modified_type_die): Likewise.
6928 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6929 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6930 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6932 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6935 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6936 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6939 2011-03-17 Richard Guenther <rguenther@suse.de>
6942 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6943 origin for decls in other ltrans units.
6944 (input_varpool_node): Likewise.
6946 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6949 * expr.c (expand_assignment): Handle all possibilities
6950 if TO_RTX is CONCAT.
6951 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6952 (store_split_bit_field): If SUBREG_REG (op0) or
6953 op0 itself has smaller mode than word, return it
6954 for offset 0 and const0_rtx for out-of-bounds stores.
6955 If word is const0_rtx, skip it.
6957 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6959 * config/h8300/h8300.c (print_operand_address): Rename to...
6960 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6961 Call h8300_print_operand and h8300_print_operand_address instead of
6962 print_operand and print_operand_address. Declare.
6963 (print_operand): Renake to...
6964 (h8300_print_operand): ...this. Make static. Adjust comments.
6965 Call h8300_print_operand instead of print_operand. Declare.
6966 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6967 (h8300_register_move_cost): Likewise.
6968 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6969 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6970 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6971 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6972 * config/h8300/h8300-protos.h (print_operand): Delete.
6973 (print_operand_address): Delete.
6975 2011-04-01 Richard Henderson <rth@redhat.com>
6978 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6979 in strict mode before dwarf4. Re-order tests to early out
6980 before switching sections.
6982 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6984 * config/h8300/constraints.md: New file.
6985 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6986 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6987 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6988 * config/h8300/predicates.md (bit_operand): Likewise.
6989 (incdec_operand): Use satisfies_constraint_M and
6990 satisfies_constraint_O. Don't use C code block.
6991 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6992 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6993 (compute_mov_length): Use satisfies_constraint_G.
6994 (fix_bit_operand): Use satisfies_constraint_U.
6995 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6996 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6997 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6998 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6999 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7000 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7001 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7002 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7003 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7004 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7005 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7006 (EXTRA_MEMORY_CONSTRAINT): Delete.
7008 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7009 Michael Meissner <meissner@linux.vnet.ibm.com>
7012 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7013 operands, as per the specifications.
7015 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7016 (vec_extract_evenv4sf): Ditto.
7017 (vec_extract_evenv8hi): Ditto.
7018 (vec_extract_evenv16qi): Ditto.
7019 (vec_extract_oddv4si): Ditto.
7021 2011-03-31 Mark Wielaard <mjw@redhat.com>
7023 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7024 high_pc attribute if the CU has no associated code. Only output
7025 DW_AT_entry_pc for CU if not generating strict dwarf and
7028 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7030 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7031 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7033 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7034 * final.c (final_start_function): Call the new function rather
7035 than using a NULL argument for dwarf2out_frame_debug.
7037 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7038 that contains the prologue.
7040 * haifa-sched.c (queue_insn): New arg REASON. All callers
7041 changed. Print it in debugging output.
7043 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7045 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7046 Split most of the code into...
7047 (begin_move_insn): ... here. New function.
7048 (ebb_sched_info): Add a pointer to it.
7049 * haifa-sched.c (scheduled_insns): New static variable.
7050 (sched_extend_ready_list): Allocate it.
7051 (schedule_block): Use it to record the order of scheduled insns.
7052 Perform RTL changes to move insns only after all scheduling
7053 decisions have been made.
7054 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7055 begin_move_insn field.
7056 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7057 * sched-int.h (struct haifa_sched_info): Remove second argument
7058 from begin_schedule_ready hook. Add new member begin_move_insn.
7059 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7060 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7062 * haifa-sched.c (prune_ready_list): New function, broken out of
7064 (schedule_block): Use it.
7066 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7068 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7070 2011-04-01 Kai Tietz <ktietz@redhat.com>
7072 * config.gcc (*-*-mingw*): Allow as option the
7073 posix threading model.
7074 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7075 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7077 (CPP_SPEC): Add pthread/no-pthread handling.
7078 (LIB_SPEC): Likewise.
7079 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7080 (LIB_SPEC): Likewise.
7081 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7082 flag to pass -pthread option for shared libgcc build.
7083 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7084 for shared libgcc build.
7085 * config/i386/t-mingw-pthread: New file.
7086 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7087 New define to enable use of library pthread by default.
7088 * config/i386/mingw.opt (pthread): New driver option.
7089 (no-pthread): New driver option.
7090 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7091 * config/i386/mingw-w64.opt: Likewise.
7093 2011-04-01 Gary Funck <gary@intrepid.com>
7095 * c-decl.c (grokdeclarator): Fix formatting.
7097 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7099 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7100 instead of n_operands.
7101 (set_storage_via_setmem): Likewise.
7102 * optabs.c (maybe_gen_insn): Likewise.
7103 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7104 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7105 (mips_expand_builtin_direct): Likewise.
7106 * config/spu/spu.c (expand_builtin_args): Likewise.
7108 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7110 * recog.h (insn_data_d): Add n_generator_args.
7111 * genoutput.c (data): Likewise.
7112 (output_insn_data): Print it.
7113 (max_opno, num_dups): Delete.
7114 (scan_operands): Just fill in "d->operand[...]".
7115 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7117 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7119 * gensupport.h (pattern_stats): New structure.
7120 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7121 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7122 (max_operand_1, max_operand_vec): Delete.
7123 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7125 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7127 * emit-rtl.c (emit_pattern_after_setloc): New function.
7128 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7129 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7130 (emit_pattern_after): New function.
7131 (emit_insn_after, emit_jump_insn_after): Call it.
7132 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7133 (emit_pattern_before_setloc): New function.
7134 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7135 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7137 (emit_pattern_before): New function.
7138 (emit_insn_before, emit_jump_insn_before): Call it.
7139 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7141 2011-03-31 Richard Henderson <rth@redhat.com>
7143 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7144 (dw_separate_line_info_entry): Remove.
7145 (enum dw_line_info_opcode): New.
7146 (dw_line_info_entry): Use it.
7147 (dw_line_info_table, dw_line_info_table_p): New.
7148 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7149 (line_info_table, line_info_label_num): Remove.
7150 (line_info_table_in_use): Remove.
7151 (separate_line_info_table): Remove.
7152 (separate_line_info_table_allocated): Remove.
7153 (separate_line_info_table_in_use): Remove.
7154 (LINE_INFO_TABLE_INCREMENT): Remove.
7155 (line_info_label_num): New.
7156 (cur_line_info_table): New.
7157 (text_section_line_info, cold_text_section_line_info): New.
7158 (separate_line_info): New.
7159 (SEPARATE_LINE_CODE_LABEL): Remove.
7160 (print_dwarf_line_table): Remove.
7161 (debug_dwarf): Don't dump it.
7162 (output_one_line_info_table): New.
7163 (output_line_info): Use it.
7164 (new_line_info_table): New.
7165 (set_cur_line_info_table): New.
7166 (dwarf2out_switch_text_section): Use it.
7167 (dwarf2out_begin_function): Likewise.
7168 (push_dw_line_info_entry): New.
7169 (dwarf2out_source_line): Rewrite for new line info tables.
7170 (dwarf2out_init): Remove dead initailizations.
7172 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7174 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7176 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7177 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7178 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7179 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7180 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7181 * opt-functions.awk (flag_init, switch_bit_fields): New.
7182 (switch_flags): Don't handle flags moved to bit-fields. Don't
7183 generate CL_MISSING_OK or CL_SAVE.
7184 * optc-gen.awk: Update to generate bit-field output as well as
7186 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7187 bit-field instead of CL_REJECT_DRIVER flag.
7188 * opts-common.c (generate_canonical_option,
7189 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7190 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7191 instead of CL_REJECT_NEGATIVE flag.
7192 * toplev.c (print_switch_values): Use cl_report bit-field instead
7195 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7197 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7198 a zero minimum index only if it is redundant.
7200 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7202 PR rtl-optimization/48381
7203 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7204 instead of ira_class_hard_reg_index for calculating conflicting
7207 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7209 * cprop.c: Clean up hash table building.
7210 (reg_avail_info): Remove.
7211 (oprs_available_p): Remove.
7212 (record_last_reg_set_info): Remove.
7213 (record_last_set_info): Remove.
7214 (reg_available_p): New function.
7215 (gcse_constant_p): Do not treat unfolded conditions as constants.
7216 (make_set_regs_unavailable): New function.
7217 (hash_scan_set): Simplify with new reg_available_p.
7218 (compute_hash_table_work): Traverse insns stream only once.
7219 Do not compute reg_avail_info. Traverse insns in reverse order.
7220 Record implicit sets after recording explicit sets from the block.
7222 2011-03-31 Michael Matz <matz@suse.de>
7224 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7226 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7228 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7229 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7230 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7231 (h8300_mode_dependent_address_p): New function.
7232 (h8300_get_index): Make static.
7234 2011-03-31 Jeff Law <law@redhat.com>
7236 * reload1.c (elimination_effects): Fix typo in recent change.
7238 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7239 typo potentially leading to null pointer dereference.
7241 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7242 (setup_save_areas): Corresponding changes to avoid useless
7245 * jump.c (reversed_comparison_code_parts): Avoid successive return
7246 statements when REVERSE_CONDITION is defined.
7248 * expr.c (expand_assignment): Avoid useless assignments.
7249 (expand_expr_real_1): Likewise.
7250 (expand_expr_real_2): Avoid useless statements.
7252 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7254 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7256 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7259 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7261 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7264 * doc/tm.texi.in (TARGET_VERSION): Remove.
7265 * doc/tm.texi: Regenerate.
7266 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7267 * collect2.c (main): Don't use TARGET_VERSION.
7268 * mips-tdump.c (main): Don't use TARGET_VERSION.
7269 * mips-tfile.c (main): Don't use TARGET_VERSION.
7270 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7271 * config/rs6000/vxworksae.h: Remove.
7272 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7273 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7274 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7275 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7276 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7277 * config/arm/arm.h (TARGET_VERSION): Remove.
7278 * config/arm/coff.h (TARGET_VERSION): Remove.
7279 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7280 * config/arm/elf.h (TARGET_VERSION): Remove.
7281 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7282 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7283 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7284 * config/arm/pe.h (TARGET_VERSION): Remove.
7285 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7286 * config/arm/semi.h (TARGET_VERSION): Remove.
7287 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7288 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7289 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7290 * config/avr/avr.h (TARGET_VERSION): Remove.
7291 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7292 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7293 * config/frv/frv.h (TARGET_VERSION): Remove.
7294 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7295 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7296 * config/i386/darwin.h (TARGET_VERSION): Remove.
7297 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7298 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7299 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7300 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7301 * config/i386/gnu.h (TARGET_VERSION): Remove.
7302 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7303 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7304 * config/i386/linux.h (TARGET_VERSION): Remove.
7305 * config/i386/linux64.h (TARGET_VERSION): Remove.
7306 * config/i386/lynx.h (TARGET_VERSION): Remove.
7307 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7308 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7309 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7310 * config/i386/netware.h (TARGET_VERSION): Remove.
7311 * config/i386/nto.h (TARGET_VERSION): Remove.
7312 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7313 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7314 * config/ia64/elf.h (TARGET_VERSION): Remove.
7315 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7316 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7317 * config/ia64/linux.h (TARGET_VERSION): Remove.
7318 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7319 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7320 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7321 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7322 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7323 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7324 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7325 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7326 * config/m68k/linux.h (TARGET_VERSION): Remove.
7327 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7328 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7329 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7330 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7331 * config/mep/mep.h (TARGET_VERSION): Remove.
7332 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7333 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7334 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7335 * config/mips/linux.h (TARGET_VERSION): Remove.
7336 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7337 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7338 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7339 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7340 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7341 * config/pa/pa.h (TARGET_VERSION): Remove.
7342 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7343 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7344 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7345 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7346 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7347 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7348 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7349 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7350 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7351 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7352 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7353 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7354 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7355 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7356 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7357 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7358 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7359 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7360 * config/s390/linux.h (TARGET_VERSION): Remove.
7361 * config/s390/s390.h (TARGET_VERSION): Remove.
7362 * config/s390/tpf.h (TARGET_VERSION): Remove.
7363 * config/score/score.h (TARGET_VERSION): Remove.
7364 * config/sh/linux.h (TARGET_VERSION): Remove.
7365 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7366 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7367 * config/sh/sh.h (TARGET_VERSION): Remove.
7368 * config/sh/sh64.h (TARGET_VERSION): Remove.
7369 * config/sh/superh.h (TARGET_VERSION): Remove.
7370 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7371 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7372 * config/sparc/linux.h (TARGET_VERSION): Remove.
7373 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7374 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7375 TARGET_NAME32, TARGET_NAME): Remove.
7376 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7377 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7378 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7379 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7380 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7381 * config/spu/spu.h (TARGET_VERSION): Remove.
7382 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7383 * config/v850/v850.h (TARGET_VERSION): Remove.
7384 * config/vax/linux.h (TARGET_VERSION): Remove.
7385 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7386 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7387 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7389 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7392 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7393 frame-related from frame-unrelated adjustments to the stack pointer.
7395 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7397 * common.opt (fdebug-types-section): Move earlier.
7398 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7400 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7402 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7405 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7407 * tree.h (CASE_CHAIN): Define.
7408 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7409 (gimple_redirect_edge_and_branch): Likewise.
7411 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7414 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7417 2011-03-30 Jeff Law <law@redhat.com>
7419 * PR bootstrap/48371
7420 * reload1.c (reload): Fix botch in last change.
7422 * reload.h (struct reload): Fix typo introduced in last change.
7424 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7426 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7427 Undocumented. Remove help text.
7428 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7431 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7433 * doc/options.texi (NegativeAlias): Document.
7434 (Alias): Mention NegativeAlias.
7435 * opt-functions.awk: Handle NegativeAlias.
7436 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7437 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7438 * opts.h (CL_NEGATIVE_ALIAS): Define.
7439 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7440 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7442 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7444 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7445 mno-spe and mno-isel instead of mspe=no and -misel=no.
7447 2011-03-29 Mark Wielaard <mjw@redhat.com>
7449 * common.opt (fdebug-types-section): New flag.
7450 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7451 * dwarf2out.c (use_debug_types): New define.
7452 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7453 (print_die): Guard output of type unit signatures using
7455 (build_abbrev_table): Replace assert of dwarf_version >= 4
7456 with assert on use_debug_types.
7457 (size_of_die): Likewise.
7458 (unmark_dies): Likewise.
7459 (value_format): Decide AT_ref_external form on use_debug_types.
7460 (output_die): Replace dwarf_version version check guard with
7461 use_debug_types where appropriate.
7462 (modified_type_die): Likewise.
7463 (gen_reference_type_die): Likewise.
7464 (dwarf2out_start_source_file): Likewise.
7465 (dwarf2out_end_source_file): Likewise.
7466 (prune_unused_types_walk_attribs): Likewise.
7467 (dwarf2out_finish): Likewise.
7469 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7471 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7473 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7475 PR rtl-optimization/48332
7476 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7477 mode of input operand N and modeN to its actual mode.
7479 2011-03-30 Jeff Law <law@redhat.com>
7481 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7482 define accessor macro.
7483 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7484 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7485 (reg_equiv_init): Likewise.
7486 (reg_equivs_size): New variable.
7487 (reg_equiv_init_size): Remove.
7488 (allocate_initial_values): Move prototype to here from....
7489 * integrate.h (allocate_initial_values): Remove prototype.
7490 * integrate.c: Include reload.h.
7491 (allocate_initial_values): Corresponding changes.
7492 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7493 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7494 (update_equiv_regs): Corresponding changes.
7495 (ira): Corresponding changes.
7496 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7497 (push_secondary_reload): Corresponding changes.
7498 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7499 (make_memloc, find_reloads_address): Corresponding changes.
7500 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7501 (find_reloads_address_1): Corresponding changes.
7502 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7503 (refers_to_regno_for_reload_p): Corresponding changes.
7504 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7505 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7506 * reload1.c: Include ggc.h.
7507 (grow_reg_equivs): New function.
7508 (replace_pseudos_in, reload): Corresponding changes.
7509 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7510 (eliminate_regs_1, elimination_effects): Corresponding changes.
7511 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7512 (delete_output_reload): Likewise.
7513 * caller-save.c (mark_referenced_regs): Corresponding changes.
7514 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7515 * frv/predicates.md (frv_load_operand): Corresponding changes.
7516 * microblaze/microblaze.c (double_memory_operand): Corresponding
7518 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7519 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7520 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7521 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7522 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7524 * pa/pa.c (emit_move_sequence): Corresponding changes.
7525 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7527 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7530 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7531 structure modes. Don't check neon_vector_mem_operand for
7532 vector or structure modes.
7534 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7535 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7538 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7539 operand 1 and reshuffle the operands to match.
7540 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7542 2011-03-30 Christian Schüler <cschueler@gmx.de>
7545 * config/c.opt (F): Added 'Driver' to -F option.
7548 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7550 * config/darwin.opt: Added '-arch' option.
7552 2011-03-30 Nick Clifton <nickc@redhat.com>
7554 * config/rx/rx.md: Add peepholes and patterns to combine
7555 extending loads and simple arithmetic instructions.
7556 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7557 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7558 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7559 modes to use pre-decrement and post-increment addressing.
7560 (rx_is_restricted_memory_address): Add range checking of REG+INT
7562 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7563 (rx_memory_move_cost): Adjust cost of stores.
7564 (rx_adjust_insn_length): New function.
7566 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7569 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7570 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7571 matching arg00/arg01 types.
7573 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7575 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7576 last_location to UNKNOWN_LOCATION.
7578 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7581 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7584 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7585 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7588 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7590 (sparc_cpu): Likewise.
7591 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7594 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7598 PR rtl-optimization/48345
7599 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7600 hard regs for given mode from profitable regs when doing secondary
7603 2011-03-29 Jeff Law <law@redhat.com>
7606 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7607 do_not_duplicate field.
7608 (lookup_redirection_data): Corresponding changes.
7609 (create_duplicates): Always create a template block.
7610 (redirect_edges): Remove code which reused the original block
7611 when it was going to become unreachable code.
7612 (thread_block): Don't set do_not_duplicate field.
7614 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7616 * lto-opts.c (register_user_option_p, lto_register_user_option):
7617 Make type argument unsigned.
7618 * lto-streamer.h (lto_register_user_option): Make type argument
7620 * opth-gen.awk: Make CL_* macros unsigned.
7621 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7622 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7623 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7624 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7625 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7626 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7627 (find_opt): Make lang_mask argument unsigned.
7629 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7631 PR rtl-optimization/48331
7632 PR rtl-optimization/48334
7633 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7634 for any used algorithm.
7636 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7638 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7641 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7643 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7644 (alpha_option_override): Don't set alpha_sr_alias_set.
7645 (emit_frame_store_1): Use gen_frame_mem rather than calling
7647 (alpha_expand_epilogue): Ditto.
7649 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7651 PR tree-optimization/48290
7652 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7653 vectorization, check that relevant phis in the basic block after
7654 the inner loop are really inner loop's exit phis.
7656 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7659 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7660 (cached_dw_loc_list_def): New structure.
7661 (cached_dw_loc_list): New typedef.
7662 (cached_dw_loc_list_table): New variable.
7663 (cached_dw_loc_list_table_hash): New function.
7664 (cached_dw_loc_list_table_eq): Likewise.
7665 (add_location_or_const_value_attribute): Take a bool cache_p.
7666 Cache the list when the parameter is true.
7667 (gen_formal_parameter_die): Update caller.
7668 (gen_variable_die): Likewise.
7669 (dwarf2out_finish): Likewise.
7670 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7671 while generating debug info for the decl.
7672 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7673 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7674 (resolve_addr): Cache the result of resolving a chain of
7677 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7679 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7680 conflict object hard regset nodes have intersecting hard reg sets.
7682 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7683 after regstat_init_n_sets_and_refs.
7685 * ira.c: Add more comments at the top.
7686 (setup_stack_reg_pressure_class, setup_pressure_classes):
7687 Add comments how we compute the register pressure classes.
7688 (setup_allocno_and_important_classes): Add more comments.
7689 (setup_class_translate_array, reorder_important_classes)
7690 (setup_reg_class_relations): Add comments.
7692 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7695 * ira-color.c: Add 2011 to the Copyright line.
7696 (assign_hard_reg): Add more comments.
7697 (improve_allocation): Ditto.
7699 * ira-costs.c: Add 2011 to the Copyright line.
7700 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7702 (setup_regno_cost_classes_by_mode): Ditto.
7704 Initial patches from ira-improv branch:
7706 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7708 * ira-build.c (ira_create_object): Remove initialization of
7709 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7710 (ira_create_allocno): Remove initialization of
7711 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7712 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7713 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7714 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7715 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7716 Initialize ALLOCNO_ADD_DATA.
7717 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7718 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7720 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7721 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7723 * ira.c (ira_reallocate): Remove.
7724 (setup_pressure_classes): Call
7725 ira_init_register_move_cost_if_necessary. Use
7726 ira_register_move_cost instead of ira_get_register_move_cost.
7727 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7728 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7730 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7731 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7732 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7733 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7734 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7735 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7737 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7738 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7739 (struct allocno_color_data): New.
7740 (allocno_color_data_t): New typedef.
7741 (allocno_color_data): New definition.
7742 (ALLOCNO_COLOR_DATA): New macro.
7743 (struct object_color_data): New.
7744 (object_color_data_t): New typedef.
7745 (object_color_data): New definition.
7746 (OBJECT_COLOR_DATA): New macro.
7747 (update_copy_costs, calculate_allocno_spill_cost): Call
7748 ira_init_register_move_cost_if_necessary. Use
7749 ira_register_move_cost instead of ira_get_register_move_cost.
7750 (move_spill_restore, update_curr_costs): Ditto.
7751 (allocno_spill_priority): Make it inline.
7752 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7753 (struct coalesce_data, coalesce_data_t): New.
7754 (allocno_coalesce_data): New definition.
7755 (ALLOCNO_COALESCE_DATA): New macro.
7756 (merge_allocnos, coalesced_allocno_conflict_p): Use
7757 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7758 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7759 (coalesce_allocnos): Ditto.
7760 (setup_coalesced_allocno_costs_and_nums): Ditto.
7761 (collect_spilled_coalesced_allocnos): Ditto.
7762 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7763 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7764 (coalesce_spill_slots): Ditto.
7765 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7766 free allocno_coalesce_data.
7768 * ira-conflicts.c: Fix formatting.
7769 (process_regs_for_copy): Call
7770 ira_init_register_move_cost_if_necessary. Use
7771 ira_register_move_cost instead of ira_get_register_move_cost.
7772 (build_object_conflicts): Optimize.
7774 * ira-costs.c (record_reg_classes): Optimize. Call
7775 ira_init_register_move_cost_if_necessary. Use
7776 ira_register_move_cost, ira_may_move_in_cost, and
7777 ira_may_move_out_cost instead of ira_get_register_move_cost and
7778 ira_get_may_move_cost.
7779 (record_address_regs): Ditto.
7780 (scan_one_insn): Optimize.
7781 (find_costs_and_classes): Optimize.
7782 (process_bb_node_for_hard_reg_moves): Call
7783 ira_init_register_move_cost_if_necessary. Use
7784 ira_register_move_cost instead of ira_get_register_move_cost.
7786 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7787 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7788 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7789 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7791 (ira_initiate_emit_data, ira_finish_emit_data)
7792 (create_new_allocno): New functions.
7793 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7794 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7795 Use ira_register_move_cost instead of ira_get_register_move_cost.
7797 * ira-int.h: Fix some comments.
7798 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7799 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7800 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7801 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7803 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7804 bitfield after mode. Make hard_regno a short int. Make
7805 hard_regno short. Remove first_coalesced_allocno and
7806 next_coalesced_allocno. Move mem_optimized_dest_p,
7807 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7808 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7809 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7810 temp, colorable_p. Add new member add_data.
7811 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7812 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7813 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7814 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7815 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7816 (ALLOCNO_ADD_DATA): New macro.
7817 (ira_emit_data_t): New typedef.
7818 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7819 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7820 from struct ira_allocno.
7821 (ALLOCNO_EMIT_DATA): New macro.
7822 (ira_allocno_emit_data, allocno_emit_reg): New.
7823 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7824 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7825 (OBJECT_ADD_DATA): New macro.
7826 (ira_reallocate): Remove.
7827 (ira_initiate_emit_data, ira_finish_emit_data): New.
7828 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7829 (ira_init_register_move_cost_if_necessary): New.
7830 (ira_object_conflict_iter_next): Merge into
7831 ira_object_conflict_iter_cond.
7832 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7834 * ira-live.c (process_single_reg_class_operands): Call
7835 ira_init_register_move_cost_if_necessary. Use
7836 ira_register_move_cost instead of ira_get_register_move_cost.
7838 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7840 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7842 * ira-costs.c: Fix formatting.
7843 (cost_classes, cost_classes_num): Remove.
7844 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7845 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7846 (cost_classes_del, cost_classes_htab): New.
7847 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7848 (initiate_regno_cost_classes, setup_cost_classes): New.
7849 (setup_regno_cost_classes_by_aclass): New.
7850 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7851 (record_reg_classes): Use regno_cost_classes instead of
7852 cost_classes. Move checking opposite operand up.
7853 (record_address_regs): Use regno_cost_classes
7854 instead of cost_classes.
7855 (scan_one_insn): Ditto. Use always general register.
7856 (print_allocno_costs): Use regno_cost_classes instead of
7858 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7859 (find_costs_and_classes): Set up cost classes for each registers.
7860 Use also their mode for this. Use regno_cost_classes instead of
7862 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7864 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7865 (ira_costs, ira_set_pseudo_classes): Call
7866 initiate_regno_cost_classes and finish_regno_cost_classes.
7868 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7870 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7872 * target.def (ira_cover_classes): Remove.
7874 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7876 * doc/tm.texi.in: Ditto.
7878 * ira-conflicts.c: Remove mentioning cover classes from the file.
7879 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7880 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7882 * targhooks.c (default_ira_cover_classes): Remove.
7884 * targhooks.h (default_ira_cover_classes): Ditto.
7886 * haifa-sched.c: Remove mentioning cover classes from the file.
7887 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7888 ira_pressure_classes and ira_pressure_classes_num instead of
7889 ira_reg_class_cover_size and ira_reg_class_cover. Use
7890 sched_regno_pressure_class instead of sched_regno_cover_class.
7891 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7892 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7894 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7895 classes from the file.
7896 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7897 (struct object_hard_regs, struct object_hard_regs_node): New.
7898 (struct ira_object): New members profitable_hard_regs,
7899 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7900 (struct ira_allocno): Rename cover_class to aclass. Rename
7901 cover_class_cost and updated_cover_class_cost to class_cost and
7902 updated_class_cost. Remove splay_removed_p and
7903 left_conflict_size. Add new members colorable_p.
7904 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7905 (ALLOCNO_COLORABLE_P): New macro.
7906 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7907 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7908 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7909 (OBJECT_...): Rename parameter C to O.
7910 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7911 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7912 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7913 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7914 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7915 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7916 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7917 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7918 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7919 x_ira_reg_class_subunion.
7920 (ira_max_memory_move_cost, ira_max_register_move_cost)
7921 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7922 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7923 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7924 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7925 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7926 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7927 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7928 (ira_tune_allocno_costs_and_cover_classes): Rename to
7929 ira_tune_allocno_costs.
7930 (ira_debug_hard_regs_forest): New.
7931 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7932 (ira_object_conflict_iter_next): Fix comments.
7933 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7934 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7935 cover_class to aclass.
7936 (ira_allocate_and_accumulate_costs): Ditto.
7937 (ira_allocate_and_set_or_copy_costs): Ditto.
7939 * opts.c (decode_options): Remove ira_cover_class check.
7941 * ira-color.c: Remove mentioning cover classes from the file. Use
7942 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7943 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7944 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7945 (splay-tree.h): Remove include.
7946 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7947 before copy_freq_compare_func.
7948 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7949 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7951 (hard_regs_roots, hard_regs_node_vec): Ditto.
7952 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7953 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7954 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7955 (create_new_object_hard_regs_node): Ditto.
7956 (add_new_object_hard_regs_node_to_forest): Ditto.
7957 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7958 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7960 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7961 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7962 (remove_unused_object_hard_regs_nodes): Ditto.
7963 (enumerate_object_hard_regs_nodes): Ditto.
7964 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7965 (object_hard_regs_subnode_t): Ditto.
7966 (struct object_hard_regs_subnode): Ditto.
7967 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7968 (setup_object_hard_regs_subnode_index): Ditto.
7969 (get_object_hard_regs_subnodes_num): Ditto.
7970 (form_object_hard_regs_nodes_forest): Ditto.
7971 (finish_object_hard_regs_nodes_tree): Ditto.
7972 (finish_object_hard_regs_nodes_forest): Ditto.
7973 (allocnos_have_intersected_live_ranges_p): Rename to
7974 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7975 (pseudos_have_intersected_live_ranges_p): Rename to
7976 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7977 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7978 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7979 (update_copy_costs): Remove assert. Skip cost update if the hard
7980 reg does not belong the class.
7981 (assign_hard_reg): Process only profitable hard regs.
7982 (uncolorable_allocnos_num): Make it scalar.
7983 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7984 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7985 and ira_reg_class_max_nregs.
7986 (bucket_allocno_compare_func): Check frequency first.
7987 (sort_bucket): Add compare function as a parameter.
7988 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7989 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7990 (push_allocno_to_stack): Rewrite for checking new allocno
7992 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7993 (push_only_colorable): Pass new parameter to sort_bucket.
7994 (push_allocno_to_spill): Remove.
7995 (allocno_spill_priority_compare): Make it inline and rewrite.
7996 (splay_tree_allocate, splay_tree_free): Remove.
7997 (allocno_spill_sort_compare): New function.
7998 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7999 build and use splay tree. Choose first allocno in uncolorable
8000 allocno bucket to spill. Remove setting spill cost.
8001 (all_conflicting_hard_regs): Remove.
8002 (setup_allocno_available_regs_num): Check only profitable hard
8003 regs. Print info about hard regs nodes.
8004 (setup_allocno_left_conflicts_size): Remove.
8005 (put_allocno_into_bucket): Don't call
8006 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8007 (improve_allocation): New.
8008 (color_allocnos): Call setup_profitable_hard_regs,
8009 form_object_hard_regs_nodes_forest, improve_allocation,
8010 finish_object_hard_regs_nodes_forest. Setup spill cost.
8011 (print_loop_title): Use pressure classes.
8012 (color_allocnso): Ditto.
8013 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8014 and allocnos_for_spilling.
8015 (ira_sort_regnos_for_alter_reg): Don't setup members
8016 {first,next}_coalesced_allocno.
8017 (color): Remove allocating and freeing removed_splay_allocno_vec.
8018 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8019 prohibited_class_mode_regs.
8021 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8023 (update_allocno_pressure_excess_length): Use pressure classes.
8024 (inc_register_pressure, dec_register_pressure): Check for pressure
8026 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8027 pressure class. Use ira_reg_class_nregs instead of
8028 ira_reg_class_max_nregs.
8029 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8030 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8031 (single_reg_class): Use ira_reg_class_nregs instead of
8032 ira_reg_class_max_nregs.
8033 (process_bb_node_lives): Use pressure classes.
8035 * ira-emit.c: Remove mentioning cover classes from the file. Use
8036 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8037 (change_loop): Use pressure classes.
8038 (modify_move_list): Call ira_set_allocno_class instead of
8039 ira_set_allocno_cover_class.
8041 * ira-build.c: Remove mentioning cover classes from the file. Use
8042 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8043 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8044 ALLOCNO_UPDATED_CLASS_COST instead of
8045 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8046 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8047 (ira_create_allocno): Remove initialization of
8048 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8049 ALLOCNO_COLORABLE_P.
8050 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8051 Update conflict regs for the objects.
8052 (create_cap_allocno): Remove assert. Don't propagate
8053 ALLOCNO_AVAILABLE_REGS_NUM.
8054 (ira_free_allocno_costs): New function.
8055 (finish_allocno): Change a part of code into call of
8056 ira_free_allocno_costs.
8057 (low_pressure_loop_node_p): Use pressure classes.
8058 (object_range_compare_func): Don't compare classes.
8059 (setup_min_max_conflict_allocno_ids): Ditto.
8061 * loop-invariant.c: Remove mentioning cover classes from the file.
8062 Use ira_pressure_classes and ira_pressure_classes_num instead of
8063 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8064 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8065 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8066 Use reg_allocno_class instead of reg_cover_class.
8067 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8068 STACK_REG_COVER_CLASS.
8069 (get_regno_cover_class): Rename to get_regno_pressure_class.
8070 (move_loop_invariants): Initialize and finalize regstat.
8072 * ira.c: Remove mentioning cover classes from the file. Add
8073 comments about coloring without cover classes. Use ALLOCNO_CLASS
8074 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8075 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8076 setup_class_subset_and_memory_move_costs.
8077 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8078 (setup_cover_and_important_classes): Rename to
8079 setup_allocno_and_important_classes.
8080 (setup_class_translate_array): New.
8081 (setup_class_translate): Call it for allocno and pressure classes.
8082 (cover_class_order): Rename to allocno_class_order.
8083 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8084 of ira_class_translate.
8085 (reorder_important_classes): Set up ira_important_class_nums.
8086 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8087 (print_class_cover): Rename to print_classes. Add parameter.
8088 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8089 Print pressure classes too.
8090 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8091 setup_reg_subclasses.
8092 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8093 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8094 (setup_prohibited_class_mode_regs): Use
8095 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8096 (clarify_prohibited_class_mode_regs): New function.
8097 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8098 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8099 (ira_init_once): Initialize them.
8100 (free_register_move_costs): Process them.
8101 (ira_init): Move calls of find_reg_classes and
8102 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8103 Call clarify_prohibited_class_mode_regs.
8104 (ira_no_alloc_reg): Remove.
8105 (too_high_register_pressure_p): Use pressure classes.
8107 * sched-deps.c: Remove mentioning cover classes from the file.
8108 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8109 ira_pressure_classes and ira_pressure_classes_num instead of
8110 ira_reg_class_cover_size and ira_reg_class_cover.
8111 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8112 sched_regno_pressure_class instead of sched_regno_cover_class.
8113 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8114 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8116 * ira.h: Add 2010 to Copyright.
8117 (ira_no_alloc_reg): Remove external.
8118 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8119 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8120 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8121 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8122 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8123 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8124 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8125 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8126 x_ira_no_alloc_regs.
8127 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8128 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8129 ira_allocno_classes_num and ira_allocno_classes.
8130 (ira_class_translate): Rename to ira_allocno_class_translate.
8131 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8132 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8133 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8134 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8135 (ira_no_alloc_regs): New.
8137 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8138 classes from the file. Use ALLOCNO_CLASS instead of
8139 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8140 ALLOCNO_COVER_CLASS_COST.
8141 (regno_cover_class): Rename to regno_aclass.
8142 (record_reg_classes): Use ira_reg_class_subunion instead of
8143 ira_reg_class_union.
8144 (record_address_regs): Check overflow.
8145 (scan_one_insn): Ditto.
8146 (print_allocno_costs): Print total mem cost fore regional allocation.
8147 (print_pseudo_costs): Use REG_N_REFS.
8148 (find_costs_and_classes): Use classes intersected with them on the
8149 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8150 ira_reg_class_union. Use ira_allocno_class_translate and
8151 regno_aclass instead of ira_class_translate and regno_cover_class.
8152 Modify code for finding regno_aclass. Setup preferred classes for
8154 (setup_allocno_cover_class_and_costs): Rename to
8155 setup_allocno_class_and_costs. Use regno_aclass instead of
8156 regno_cover_class. Use ira_set_allocno_class instead of
8157 ira_set_allocno_cover_class.
8158 (init_costs, finish_costs): Use regno_aclass instead of
8160 (ira_costs): Use setup_allocno_class_and_costs instead of
8161 setup_allocno_cover_class_and_costs.
8162 (ira_tune_allocno_costs_and_cover_classes): Rename to
8163 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8164 by processing objects. Use ira_reg_class_max_nregs instead of
8165 ira_reg_class_nregs.
8167 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8169 * sched-int.h: Remove mentioning cover classes from the file.
8170 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8172 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8173 classes from the file.
8174 (struct reg_pref): Rename coverclass into allocnoclass.
8175 (reg_cover_class): Rename to reg_allocno_class.
8177 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8179 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8181 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8183 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8185 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8187 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8189 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8191 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8193 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8195 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8197 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8198 (i386_ira_cover_classes): Ditto.
8200 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8202 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8204 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8206 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8208 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8210 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8212 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8213 (mips_ira_cover_classes): Ditto.
8215 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8217 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8219 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8221 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8223 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8225 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8226 (IRA_COVER_CLASSES_VSX): Ditto.
8228 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8229 (rs6000_ira_cover_classes): Ditto.
8231 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8233 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8235 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8237 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8239 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8241 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8243 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8245 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8247 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8249 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8251 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8254 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8255 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8256 dw_fde_unlikely_section_end_label, cold_in_std_section,
8257 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8258 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8260 (output_fde): Use dw_fde_second_{begin,end} if second is
8261 true, otherwise dw_fde_{begin,end}.
8262 (output_call_frame_info): Test dw_fde_second_begin != NULL
8263 instead of dw_fde_switched_sections.
8264 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8265 fields, initialize new fields. Initialize in_std_section
8266 unconditionally from the first partition.
8267 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8268 dw_fde_second_begin is non-NULL.
8269 (dwarf2out_switch_text_section): Stop initializing removed
8270 dw_fde_struct fields, initialize new fields, initialize
8271 also dw_fde_end here. Set dw_fde_switch_cfi even when
8272 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8273 (struct var_loc_list_def): Add last_before_switch field.
8274 (arange_table, arange_table_allocated, arange_table_in_use,
8275 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8276 (size_of_aranges): Count !in_std_section and !second_in_std_section
8277 hunks in fdes, instead of looking at arange_table_in_use.
8278 (output_aranges): Add aranges_length argument, don't call
8279 size_of_aranges here. Instead of using aranges_table*
8280 emit ranges for fdes when !in_std_section resp.
8281 !second_in_std_section.
8282 (dw_loc_list): Break ranges crossing section switch.
8283 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8284 use dw_fde_second_end instead of dw_fde_end as end of last range.
8285 (gen_subprogram_die): Don't call add_arange. Use
8286 dw_fde_{begin,end} for first partition and if switched
8287 section dw_fde_second_{begin,end} for the second.
8288 (var_location_switch_text_section_1,
8289 var_location_switch_text_section): New functions.
8290 (dwarf2out_begin_function): Initialize cold_text_section even
8291 when function_section () isn't text_section.
8292 (prune_unused_types): Don't walk arange_table.
8293 (dwarf2out_finish): Don't needlessly test
8294 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8295 If info_section_emitted, call size_of_aranges and if it indicates
8296 non-empty .debug_aranges, call output_aranges with the computed
8297 size. Stop using removed dw_fde_struct fields, use
8298 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8302 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8303 create ENTRY_VALUE if incoming or address of incoming's MEM
8305 * dwarf2out.c (mem_loc_descriptor): Don't emit
8306 DW_OP_GNU_entry_value of DW_OP_fbreg.
8307 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8308 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8309 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8310 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8312 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8313 is a REG_P or MEM_P with REG_P address, compute hash directly
8314 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8315 (preserve_only_constants): Don't clear VALUES forwaring
8316 ENTRY_VALUE to some other VALUE.
8318 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8320 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8323 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8325 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8326 block before expanding the statement.
8327 (expand_gimple_stmt_1): Likewise. Set them here...
8328 (expand_gimple_stmt): ...and not here. Tidy.
8329 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8332 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8334 * Makefile.in: New rule for cprop.o.
8335 * gcse.c: Move constant/copy propagation to cprop.c.
8336 (compute_local_properties): Only handle expression tables.
8337 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8338 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8339 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8340 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8341 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8342 compute_cprop_data, find_used_regs, try_replace_reg,
8343 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8344 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8345 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8346 find_bypass_set, reg_killed_on_edge, bypass_block,
8347 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8348 execute_rtl_cprop, pass_rtl_cprop): Move to...
8349 * cprop.c: ...here. New file, constant/copy propagation for RTL
8350 moved from gcse.c to here with minor cleanups in duplicated code.
8352 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8354 * config/i386/i386.c (flag_opts): Fix a typo in
8355 -mavx256-split-unaligned-store.
8357 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8359 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8360 LIBCALL_VALUE): Remove macros.
8361 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8362 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8363 (h8300_function_value, h8300_libcall_value,
8364 h8300_function_value_regno_p): New functions.
8366 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8368 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8370 2011-03-28 Jeff Law <law@redhat.com>
8372 * tree-ssa-threadupdate.c (redirect_edges): Call
8373 create_edge_and_update_destination_phis as needed.
8374 (create_edge_and_update_destination_phis): Accept new BB argument.
8375 All callers updated.
8376 (thread_block): Do not update the profile when threading around
8377 intermediate blocks.
8378 (thread_single_edge): Likewise.
8379 (determine_bb_domination_status): If BB is not a successor of the
8380 loop header, return NONDOMINATING.
8381 (register_jump_thread): Note when we register a jump thread around
8382 an intermediate block.
8383 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8384 (thread_across_edge): Use it.
8386 2011-03-28 Tristan Gingold <gingold@adacore.com>
8388 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8389 when for_return is 2.
8391 2011-03-28 Jeff Law <law@redhat.com>
8393 * var-tracking.c (canonicalize_values_mark): Delete unused
8395 (canonicalize_values_star, set_variable_part): Likewise.
8396 (clobber_variable_part, delete_variable_part): Likewise.
8398 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8400 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8402 2011-03-28 Martin Jambor <mjambor@suse.cz>
8404 * tree-inline.c (expand_call_inline): Do not check that destination
8406 (optimize_inline_calls): Assert that destination node is analyzed.
8407 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8408 not call tree_lowering_passes.
8409 * cgraph.h (cgraph_analyze_function): Declare.
8410 * cgraphunit.c (cgraph_analyze_function): Make public.
8412 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8414 * config/sparc/sparc-opts.h: New.
8415 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8416 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8417 (sparc_option_override): Store processor_type enumeration rather
8418 than string in cpu_default. Remove name and enumeration from
8419 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8420 without using sparc_select. Use target_flags_explicit instead of
8422 * config/sparc/sparc.h (enum processor_type): Move to
8424 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8425 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8426 HeaderInclude entry.
8427 (mcpu=, mtune=): Use Var and Enum.
8428 (sparc_processor_type): New Enum and EnumValue entries.
8430 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8431 Iain Sandoe <iains@gcc.gnu.org>
8434 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8436 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8438 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8439 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8440 Insert new statements at it in lieu of STMT.
8441 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8442 * tree-vect-stmts.c (vectorizable_store): Likewise.
8443 (vectorizable_load): Likewise.
8445 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8447 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8452 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8454 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8455 unaligned 256bit load/store.
8456 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8457 (*avx_movdqu<avxmodesuffix>): Likewise.
8459 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8462 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8463 * config/pa/pa.md (iordi3): Use new predicate in expander.
8466 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8468 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8469 FUNCTION_VALUE_REGNO_P): Remove macros.
8470 * config/mips/mips-protos.h (mips_function_value): Remove.
8471 * config/mips/mips.c (mips_function_value): Rename to...
8472 (mips_function_value_1): ... this. Make static. Handle receiving
8473 the function type in 'fn_decl_or_type' argument.
8474 (mips_function_value, mips_libcall_value,
8475 mips_function_value_regno_p): New function.
8476 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8477 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8479 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8481 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8482 and -mavx256-split-unaligned-store.
8483 (ix86_option_override_internal): Split 32-byte AVX unaligned
8484 load/store by default.
8485 (ix86_avx256_split_vector_move_misalign): New.
8486 (ix86_expand_vector_move_misalign): Use it.
8488 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8489 -mavx256-split-unaligned-store.
8491 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8492 256bit load/store. Generate unaligned store on misaligned memory
8494 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8496 (*avx_movdqu<avxmodesuffix>): Likewise.
8498 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8499 -mavx256-split-unaligned-store.
8501 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8504 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8507 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8509 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8510 opno arguments with an expand_operand. Use create_input_operand.
8511 (mips_prepare_builtin_target): Delete.
8512 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8514 (mips_expand_builtin_direct): Use create_output_operand and
8515 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8516 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8517 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8519 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8521 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8523 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8525 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8527 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8528 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8529 basic blocks and call commit_edge_insertions directly.
8530 (fixup_abnormal_edges): Move from here to...
8531 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8532 on the edges and return whether some have actually been inserted.
8533 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8536 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8538 PR rtl-optimization/48144
8539 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8540 (merge_expr_data): ... here.
8541 (av_set_intersect): Rename to av_set_code_motion_filter.
8542 Update all callers. Call merge_history_vect when an expression
8543 is found in both sets.
8544 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8546 2011-03-26 Alan Modra <amodra@gmail.com>
8548 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8549 cmodel medium addresses.
8550 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8551 64-bit gpr loads and stores.
8552 (rs6000_secondary_reload_ppc64): New function.
8553 * config/rs6000/rs6000-protos.h: Declare it.
8554 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8556 2011-03-26 Alan Modra <amodra@gmail.com>
8559 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8560 GNU Go in traceback table.
8562 2011-03-25 Richard Henderson <rth@redhat.com>
8564 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8565 if there are exactly 6 operands.
8566 (set_storage_via_setmem): Similarly.
8568 2011-03-25 Kai Tietz <ktietz@redhat.com>
8570 * collect2.c (write_c_file_stat): Handle backslash
8571 as right-hand directory separator.
8572 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8573 checking just for slash.
8574 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8575 instead of checking for trailing slash.
8576 * gcc.c (record_temp_file): Use filename_cmp instead
8578 (do_spec_1): Likewise.
8579 (replace_outfile_spec_function): Likewise.
8580 (is_directory): Use filename_ncmp instead of strncmp.
8581 (print_multilib_info): Likewise.
8582 * gcov.c (find_source): Use filename_cmp instead
8584 (make_gcov_file_name): Fix order of slash/backslash
8586 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8587 (add_standard_paths): Likewise.
8588 * mips-tfile.c (saber_stop): Handle backslash.
8589 * prefix.c (update_path): Use filename_ncmp instead of
8591 * profile.c (output_location): Use filename_cmp instead
8593 * read-md.c (handle_toplevel_file): Handle backslash.
8594 * tlink.c (frob_extension): Likewise.
8595 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8597 * tree-dump.c (dequeue_and_dump): Handle backslash.
8598 * tree.c (get_file_function_name): Likewise.
8599 * gengtype.c (read_input_list): Likewise.
8600 (get_file_realbasename): Likewise.
8601 (get_output_file_with_visibility): Use filename_cmp
8604 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8606 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8609 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8611 * fold-const.c (expr_location_or): New function.
8612 (fold_truth_not_expr): Call it.
8614 2011-03-25 Jeff Law <law@redhat.com>
8616 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8618 * c-family/c-common.c (def_fn_type): Likewise.
8619 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8620 * emit-rtl.c (gen_rtvec): Likewise.
8621 * lto/lto-lang.c (def_fn_type): Likewise.
8623 2011-03-25 Richard Guenther <rguenther@suse.de>
8625 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8626 also generate copies.
8627 (fini_copy_prop): Handle constant values properly.
8629 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8631 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8632 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8633 (hash_loc_operands, compare_loc_operands): Handle
8634 DW_OP_GNU_entry_value.
8636 2011-03-25 Kai Tietz <ktietz@redhat.com>
8638 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8639 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8640 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8641 comment and use macro TARGET_64BIT_MS_ABI instead.
8642 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8643 and change default behavior for 32-bit MS_ABI.
8644 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8645 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8647 (ix86_cfun_abi): Likewise.
8648 (ix86_maybe_switch_abi): Adjust comment.
8649 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8650 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8651 instead of checking for SYSV_ABI.
8652 (ix86_nsaved_sseregs): Likewise.
8653 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8655 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8656 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8657 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8658 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8659 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8661 2011-03-25 Richard Guenther <rguenther@suse.de>
8663 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8664 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8665 (verify_gimple): Remove.
8666 * tree-cfg.c (verify_gimple_call): Merge verification
8668 (verify_gimple_phi): Merge verification from verify_stmts.
8669 (verify_gimple_label): New function.
8670 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8671 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8672 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8673 (verify_stmts): Rename to verify_gimple_in_cfg.
8674 (verify_gimple_in_cfg): New function.
8675 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8676 * tree-ssa.c (verify_ssa): Likewise.
8677 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8679 2011-03-25 Richard Guenther <rguenther@suse.de>
8681 * passes.c (init_optimization_passes): Add FRE pass after
8684 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8685 Andrew Stubbs <ams@codesourcery.com>
8687 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8689 (arm_movdi_vfp_cortexa8): New pattern.
8690 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8691 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8692 instructions when tuning for Cortex-A8. Set attribute "arch".
8693 * config/arm/arm.md: Move include arm-tune.md up a bit.
8694 (define_attr "arch"): Add "onlya8" and "nota8" values.
8695 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8697 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8701 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8703 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8704 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8705 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8706 * passes.c (init_optimization_passes): Move
8707 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8709 2011-03-25 Kai Tietz <ktietz@redhat.com>
8711 * c-typeck.c (comptypes_internal): Replace target
8712 hook call of comp_type_attributes by version in tree.c file.
8713 * gimple.c (gimple_types_compatible_p_1): Likewise.
8714 * tree-ssa.c (useless_type_conversion_p): Likewise.
8715 * tree.c (build_type_attribute_qual_variant): Likewise.
8716 (attribute_value_equal): New static helper function.
8717 (comp_type_attributes): New function.
8718 (merge_attributes): Use attribute_value_equal for comparison.
8719 (attribute_list_contained): Likewise.
8720 * tree.h (comp_type_attributes): New prototype.
8722 2011-03-25 Richard Guenther <rguenther@suse.de>
8724 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8725 of complex types at -O0.
8726 (verify_gimple_assign_binary): Likewise.
8727 (verify_gimple_assign_ternary): Likewise.
8729 2011-03-24 Mark Wielaard <mjw@redhat.com>
8731 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8732 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8734 2011-03-24 Mark Wielaard <mjw@redhat.com>
8737 * dwarf2out.c (output_abbrev_section): Only write table when
8738 abbrev_die_table_in_use > 1.
8740 2011-02-24 Richard Henderson <rth@redhat.com>
8742 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8743 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8744 (alpha_expand_unaligned_load_words): Use extql.
8745 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8746 (emit_insxl): Handle all modes for consistency.
8748 2011-02-24 Richard Henderson <rth@redhat.com>
8750 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8751 (alpha_expand_unaligned_load): Likewise.
8752 (alpha_expand_unaligned_store): Likewise.
8753 (alpha_expand_unaligned_load_words): Likewise.
8754 (alpha_expand_unaligned_store_words): Likewise.
8755 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8756 (alpha_split_lock_test_and_set_12): Likewise.
8757 (print_operand, alpha_fold_builtin_extxx): Likewise.
8758 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8759 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8760 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8761 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8762 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8763 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8764 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8765 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8766 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8767 (extwl, extll, extql): Similarly.
8768 (inswh, inslh, insqh): Similarly.
8769 (mskbl, mskwl, mskll, mskql): Similarly.
8770 (mskwh, msklh, mskqh): Similarly.
8772 2011-02-24 Richard Henderson <rth@redhat.com>
8774 * config/alpha/alpha.md (attribute isa): Add er, ner.
8775 (attribute enabled): Handle them.
8776 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8778 2011-02-24 Richard Henderson <rth@redhat.com>
8780 * config/alpha/alpha.md (attribute isa): Add vms.
8781 (attribute enabled): Handle it.
8782 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8783 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8784 (*movtf): Rename from *movtf_internal for consistency.
8785 (*movsi): Merge with *movsi_nt_vms.
8786 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8787 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8788 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8789 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8791 2011-02-24 Richard Henderson <rth@redhat.com>
8793 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8794 (extendqisi2, extendhisi2): Likewise.
8795 (extendqidi2): Simplify BWX/non-BWX expansions.
8796 (extendhidi2): Similarly.
8798 2011-02-24 Richard Henderson <rth@redhat.com>
8800 * config/alpha/alpha.md (attribute isa): New.
8801 (attribute enabled): New.
8802 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8803 (zero_extendqisi2, zero_extendqidi2): Similarly.
8804 (zero_extendhisi2, zero_extendhidi2): Similarly.
8805 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8807 2011-02-24 Richard Henderson <rth@redhat.com>
8809 * config/alpha/predicates.md (input_operand): Revert last change;
8810 update comment to mention 32-bit VMS rather than Windows.
8812 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8814 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8815 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8816 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8817 * passes.c (init_optimization_passes): Move
8818 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8820 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8822 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8824 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8826 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8829 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8832 * simplify-rtx.c (simplify_const_unary_operation): Call
8833 real_convert when changing mode class with FLOAT_EXTEND.
8835 2011-03-24 Nick Clifton <nickc@redhat.com>
8837 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8838 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8839 * config/rx/rx.c (rx_option_override): Set align_jumps,
8840 align_loops and align_labels if not set by the user.
8841 (rx_align_for_label): New function.
8842 (rx_max_skip_for_label): New function.
8843 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8844 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8845 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8846 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8847 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8849 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8851 PR rtl-optimization/48263
8852 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8853 and original commutative_p handling. Use maybe_gen_insn.
8855 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8857 * reload.c (find_reloads_subreg_address): Add address_reloaded
8858 parameter and return true there if the full address has been
8860 (find_reloads_toplev): Pass address_reloaded flag.
8861 (find_reloads_address_1): Don't use address_reloaded parameter.
8863 2011-03-24 Jeff Law <law@redhat.com>
8865 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8866 unused variable "ann".
8867 (remove_unused_locals): Likewise.
8869 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8872 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8875 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8877 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8878 for invalid symbolic addresses.
8879 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8882 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8884 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8885 the argument in calls to fold_truth_not_expr.
8887 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8889 * tree.c (record_node_allocation_statistics): New function.
8890 (make_node_stat, copy_node_stat, build_string): Call it.
8891 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8892 (build1_stat, build_omp_clause): Likewise.
8894 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8896 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8899 2011-03-24 Richard Guenther <rguenther@suse.de>
8901 PR tree-optimization/48271
8902 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8903 blocks that still exist.
8905 2011-03-24 Richard Guenther <rguenther@suse.de>
8907 PR tree-optimization/48270
8908 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8909 not free datarefs before ddrs.
8911 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8913 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8914 from the address built for a reference with variable offset.
8916 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8919 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8920 alternatives that can be handled with movq or movabsq insn.
8921 (*movdf_internal): Disable for !TARGET_64BIT.
8922 (*movdf_internal_nointeger): Ditto.
8923 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8925 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8927 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8928 (FUNCTION_ARG_ADVANCE): Likewise.
8929 * tm.texi.in: Change references to them to hook references.
8930 * tm.texi: Regenerate.
8931 * targhooks.c (default_function_arg): Eliminate check for target macro.
8932 (default_function_incoming_arg): Likewise.
8933 (default_function_arg_advance): Likewise.
8934 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8935 (function_arg_advance): Likewise.
8936 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8938 2011-03-24 Richard Guenther <rguenther@suse.de>
8941 * tree-object-size.c (addr_object_size): Do not double-account
8942 for MEM_REF offsets.
8944 2011-03-24 Diego Novillo <dnovillo@google.com>
8946 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8947 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8948 (lto_input_data_block): Move from lto-opts.c. Make extern.
8950 (lto_input_string): Rename from input_string. Make extern.
8952 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8953 output_string_with_length.
8954 Output 0 to indicate a non-NULL string. Update all callers to
8956 (lto_output_string): Rename from output_string. Make extern.
8958 (lto_output_decl_state_streams): Make extern.
8959 (lto_output_decl_state_refs): Make extern.
8960 * lto-streamer.h (lto_input_string): Declare.
8961 (lto_input_data_block): Declare.
8962 (lto_output_string): Declare.
8963 (lto_output_string_with_length): Declare.
8964 (lto_output_decl_state_streams): Declare.
8965 (lto_output_decl_state_refs): Declare.
8967 2011-03-24 Richard Guenther <rguenther@suse.de>
8969 PR tree-optimization/46562
8970 * tree.c (build_invariant_address): New function.
8971 * tree.h (build_invariant_address): Declare.
8972 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8973 a renamed function moved ...
8974 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8975 Take valueization callback parameter.
8976 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8977 * gimple-fold.h: New file.
8978 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8979 (ccp_fold, fold_const_aggregate_ref,
8980 fold_ctor_reference, fold_nonarray_ctor_reference,
8981 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8982 get_base_constructor): Move ...
8983 * gimple-fold.c: ... here.
8984 (gimple_fold_stmt_to_constant_1): New function
8985 split out from ccp_fold. Take a valueization callback parameter.
8986 Valueize all operands.
8987 (gimple_fold_stmt_to_constant): New wrapper function.
8988 (fold_const_aggregate_ref_1): New function split out from
8989 fold_const_aggregate_ref. Take a valueization callback parameter.
8990 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8991 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8992 invariant POINTER_PLUS_EXPRs to invariant form.
8993 (vn_valueize): New function.
8994 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8995 * tree-vrp.c (vrp_valueize): New function.
8996 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8997 to fold statements to constants.
8998 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8999 function declarations.
9000 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9001 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9003 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9005 * config/h8300/predicates.md (jump_address_operand): Fix register
9008 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9010 * doc/invoke.texi (max-stores-to-sink): Document.
9011 * params.h (MAX_STORES_TO_SINK): Define.
9012 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9013 if either vectorization or if-conversion is disabled.
9014 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9015 tree-vect-data-refs.c vect_equal_offsets.
9016 (dr_equal_offsets_p): New function.
9017 (find_data_references_in_bb): Remove static.
9018 * tree-data-ref.h (find_data_references_in_bb): Declare.
9019 (dr_equal_offsets_p): Likewise.
9020 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9021 (vect_drs_dependent_in_basic_block): Update calls to
9023 (vect_check_interleaving): Likewise.
9024 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9025 (cond_if_else_store_replacement): Rename to...
9026 (cond_if_else_store_replacement_1): ... this. Change arguments and
9028 (cond_if_else_store_replacement): New function.
9029 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9030 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9032 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9035 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9036 to subtract lower bound instead of GEN_INT().
9038 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9043 * doc/extend.texi (Alignment): Move section to match order in TOC.
9044 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9045 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9047 2011-03-23 Jeff Law <law@redhat.com>
9049 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9050 before removing the edge.
9052 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9053 it may have been freed by redirect_branch_edge or
9054 redirect_edge_succ_nodup.
9056 2011-03-23 Richard Guenther <rguenther@suse.de>
9058 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9059 (check_va_list_escapes): Likewise.
9060 (check_all_va_list_escapes): Likewise.
9062 2011-03-23 Richard Guenther <rguenther@suse.de>
9064 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9065 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9066 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9067 (alias.o): Likewise.
9068 (ipa-type-escape.o): Remove.
9069 (ipa-struct-reorg.o): Likewise.
9070 (GTFILES): Remove ipa-struct-reorg.c.
9071 * alias.c: Do not include ipa-type-escape.h.
9072 * tree-ssa-alias.c: Likewise.
9073 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9074 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9075 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9076 and ipa-type-escape passes.
9077 * tree-pass.h (pass_ipa_type_escape): Remove.
9078 (pass_ipa_struct_reorg): Likewise.
9079 * ipa-struct-reorg.h: Remove.
9080 * ipa-struct-reorg.c: Likewise.
9081 * ipa-type-escape.h: Likewise.
9082 * ipa-type-escape.c: Likewise.
9083 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9084 (--param struct-reorg-cold-struct-ratio): Likewise.
9085 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9086 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9087 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9089 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9091 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9092 cpu attribute value.
9093 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9094 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9095 * config/s390/s390.c (processor_flags_table): New constant array.
9096 (s390_handle_arch_option): Remove.
9097 (s390_handle_option): Remove s390_handle_arch_option invocations
9098 and OPT_mwarn_framesize_ handling.
9099 (s390_option_override): Remove s390_handle_arch_option invocation.
9100 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9102 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9103 * config/s390/s390.opt (s390_tune, s390_arch)
9104 (march=): Replace s390_arch_option enum and values with
9105 processor_type. Set variable name to s390_arch. Set
9106 initialization value.
9107 (mtune=): Replace s390_arch_option with processor_type. Set
9108 variable name to s390_tune. Set initialization value.
9110 2011-03-23 Julian Brown <julian@codesourcery.com>
9112 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9113 accesses which are not naturally aligned.
9115 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9118 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9120 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9122 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9123 parameter from "int" to "enum insn_code".
9124 (expand_operand_type): New enum.
9125 (expand_operand): New structure.
9126 (create_expand_operand): New function.
9127 (create_fixed_operand, create_output_operand): Likewise
9128 (create_input_operand, create_convert_operand_to): Likewise.
9129 (create_convert_operand_from, create_address_operand): Likewise.
9130 (create_integer_operand): Likewise.
9131 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9132 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9133 (expand_insn, expand_jump_insn): Likewise.
9134 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9135 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9136 (expand_movstr, expand_builtin___clear_cache): Likewise.
9137 (expand_builtin_lock_release): Likewise.
9138 * explow.c (allocate_dynamic_stack_space): Likewise.
9139 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9140 and use the default handling in that case.
9141 * expmed.c (check_predicate_volatile_ok): Delete.
9142 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9143 (emit_cstore): Likewise.
9144 * expr.c (emit_block_move_via_movmem): Likewise.
9145 (set_storage_via_setmem, expand_assignment): Likewise.
9146 (emit_storent_insn, try_casesi): Likewise.
9147 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9148 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9149 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9150 (expand_twoval_unop, expand_twoval_binop): Likewise.
9151 (expand_unop_direct, emit_indirect_jump): Likewise.
9152 (emit_conditional_move, vector_compare_rtx): Likewise.
9153 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9154 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9155 (expand_sync_lock_test_and_set): Likewise.
9156 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9157 (emit_unop_insn): Likewise.
9158 (expand_copysign_absneg): Change icode to an insn_code.
9159 (create_convert_operand_from_type): New function.
9160 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9161 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9162 (expand_insn, expand_jump_insn): Likewise.
9163 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9164 than const_int_operand for operand 2.
9166 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9168 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9171 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9173 * emit-rtl.c (emit_pattern_before_noloc): New function.
9174 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9175 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9176 (emit_pattern_after_noloc): New function.
9177 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9178 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9180 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9182 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9183 (__ffsDI2): Likewise.
9185 2011-03-22 Richard Henderson <rth@redhat.com>
9187 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9188 of !TARGET_ABI_OPEN_VMS.
9189 (alpha_trampoline_init, alpha_start_function): Likewise.
9190 (alpha_expand_epilogue, alpha_file_start): Likewise.
9191 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9192 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9193 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9194 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9195 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9197 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9199 * config/s390/s390-opts.h: New.
9200 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9201 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9202 s390_stack_guard): Remove.
9203 (s390_handle_arch_option): Return void. Take enum
9204 s390_arch_option value instead of string and searching array.
9205 (s390_handle_option): Don't assert that global structures are in
9206 use. Access variables via opts pointer. Use error_at. Don't use
9207 sscanf for -mstack-guard= or -mstack-size=. Update call to
9208 s390_handle_arch_option.
9209 (s390_option_override): Update call to s390_handle_arch_option.
9210 (s390_emit_prologue): Use %d format for s390_stack_size in
9211 diagnostic. Use %wd for HOST_WIDE_INT.
9212 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9213 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9214 * config/s390/s390.opt (config/s390/s390-opts.h): New
9215 HeaderInclude entry.
9216 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9217 s390_arch_flags, s390_warn_framesize): New Variable entries.
9218 (s390_arch_option): New Enum and EnumValue entries.
9219 (march=): Use Enum instead of Var.
9220 (mstack-guard=, mstack-size=): Use UInteger and Var.
9223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9225 * config/score/score.c (score_handle_option): Don't assert that
9226 global structures are in use. Access target_flags via opts
9227 pointer. Use value of -march= option to determine target_flags
9229 * config/score/score.opt (march=): Use Enum.
9230 (score_arch): New Enum and EnumValue entries.
9232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9234 * config/mep/mep.c (option_mtiny_specified): Remove.
9235 (mep_option_override): Move register handling for -mivc2 from
9236 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9237 instead of option_mtiny_specified.
9238 (mep_handle_option): Access target_flags via opts pointer. Don't
9239 assert that global structures are in use. Defer part of -mivc2
9240 handling and move it to mep_option_override.
9241 * config/mep/mep.opt (IVC2): New Mask entry.
9242 (mivc2): Use Var and Defer instead of Mask.
9244 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9246 * config/v850/v850-opts.h: New.
9247 * config/v850/v850.c (small_memory): Replace with
9248 small_memory_physical_max array. Make that array static const.
9249 (v850_handle_memory_option): Take integer value of argument. Take
9250 gcc_options pointer, option text and location. Return void.
9251 Update for changes to small memory structures.
9252 (v850_handle_option): Access target_flags via opts pointer. Don't
9253 assert that global structures are in use. Update calls to
9254 v850_handle_memory_option.
9255 (v850_encode_data_area): Update references to small memory settings.
9256 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9257 (enum small_memory_type): Move to v850-opts.h.
9258 * config/v850/v850.opt (config/v850/v850-opts.h): New
9259 HeaderInclude entry.
9260 (small_memory_max): New Variable entry.
9261 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9262 (mtda, mzda): Likewise.
9264 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9266 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9267 pointer. Don't assert that global structures are in use.
9269 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9271 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9272 via opts pointer. Don't assert that global structures are in use.
9274 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9276 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9277 (munix=93): Use Var.
9278 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9279 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9280 * config/pa/pa-opts.h: New.
9281 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9282 (pa_handle_option): Don't assert that global structures are in
9283 use. Access target_flags via opts pointer. Don't handle
9284 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9286 (pa_option_override): Handle deferred OPT_mfixed_range_.
9288 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9290 * config/mn10300/mn10300-opts.h: New.
9291 * config/mn10300/mn10300.c (mn10300_processor,
9292 mn10300_tune_string): Remove.
9293 (mn10300_handle_option): Don't assert that global structures are
9294 in use. Access mn10300_processor via opts pointer. Don't handle
9296 * config/mn10300/mn10300.h (enum processor_type): Move to
9298 (mn10300_processor): Remove.
9299 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9300 HeaderInclude entry.
9301 (mn10300_processor): New Variable entry.
9304 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9306 * config/microblaze/microblaze.c: Don't include opts.h.
9307 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9308 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9309 (mno-clearbss): Use Var and Warn.
9311 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9313 * config/m32r/m32r-opts.h: New.
9314 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9315 (m32r_handle_option): Don't assert that global structures are in
9316 use. Access target_flags and m32r_cache_flush_func via opts
9317 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9318 OPT_mno_flush_trap here.
9319 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9320 include of m32r-opts.h.
9321 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9322 HeaderInclude entry.
9323 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9324 (mmodel=): Use Enum and Var.
9325 (m32r_model): New Enum and EnumValue entries.
9326 (mno-flush-trap): Use Var.
9327 (msdata=): Use Enum and Var.
9328 (m32r_sdata): New Enum and EnumValue entries.
9330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9332 * config/m32c/m32c.c: Don't include opts.h.
9333 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9334 m32c_handle_option): Remove.
9335 (m32c_option_override): Check global_options_set.x_target_memregs
9336 instead of target_memregs_set.
9337 * config/m32c/m32c.h (target_memregs): Remove.
9338 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9343 * config/iq2000/iq2000-opts.h: New.
9344 * config/iq2000/iq2000.c: Don't include opts.h.
9345 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9346 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9347 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9348 HeaderInclude entry.
9349 (iq2000_tune): New Variable entry.
9350 (march=): Add comment. Use Enum.
9351 (iq2000_arch): New Enum and EnumValue entries.
9352 (mcpu=): Use Enum and Var.
9353 (iq2000_tune): New Enum and EnumValue entries.
9355 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9357 * config/ia64/ia64-opts.h: New.
9358 * config/ia64/ia64.c (ia64_tune): Remove.
9359 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9361 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9362 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9363 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9364 HeaderInclude entry.
9365 (ia64_tune): New Variable entry.
9366 (mfixed-range=): Use Defer and Var.
9367 (mtune=): Use Enum and Var.
9368 (ia64_tune): New Enum and EnumValue entries.
9370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9372 * config/frv/frv-opts.h: New.
9373 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9375 (frv_cpu_type): Remove.
9376 * config/frv/frv.c: Don't include opts.h.
9377 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9378 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9379 (frv_cpu_type): New Variable entry.
9380 (frv_cpu): New Enum and EnumValue entries.
9382 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9384 * config/cris/cris.c (cris_handle_option): Access target_flags via
9385 opts pointer. Don't assert that global structures are in use.
9386 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9387 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9389 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9391 * config/bfin/bfin-opts.h: New.
9392 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9393 bfin_si_revision, bfin_workarounds): Remove.
9394 (bfin_cpus): Make static const.
9395 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9396 not bfin_lib_id_given.
9397 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9398 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9399 pointer. Use error_at. Don't assert that global structures are in use.
9400 * config/bfin/bfin.h: Include bfin-opts.h.
9401 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9402 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9403 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9404 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9407 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9409 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9410 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9411 or -msoft-float here.
9412 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9413 -msoft-float and -mhard-float.
9414 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9415 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9417 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9419 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9420 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9422 (LIBGCC_SPEC): Don't handle -msoft-float.
9423 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9425 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9427 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9428 -mfloat-abi=*, not -msoft-float and -mhard-float.
9429 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9431 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9432 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9433 mhard-float and msoft-float.
9434 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9435 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9436 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9437 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9439 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9440 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9442 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9444 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9447 2011-03-22 Richard Henderson <rth@redhat.com>
9449 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9450 TARGET_ABI_WINDOWS_NT.
9451 (alpha_output_function_end_prologue): Likewise.
9452 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9453 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9454 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9455 (trap, *movsi_nt_vms): Likewise.
9456 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9457 (*tablejump_osf_nt_internal): Remove.
9458 * config/alpha/predicates.md (input_operand): Only test Pmode.
9460 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9462 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9463 via opts pointer. Use error_at. Don't assert that global
9464 structures are in use.
9466 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9468 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9469 (ix86_handle_option): Access ix86_isa_flags and
9470 ix86_isa_flags_explicit via opts pointer. Don't assert that
9471 global structures are in use.
9472 (ix86_function_specific_save, ix86_function_specific_restore):
9473 Update ix86_isa_flags_explicit field name.
9474 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9475 (ix86_isa_flags_explicit): Rename TargetSave entry to
9476 x_ix86_isa_flags_explicit.
9478 2011-03-22 Richard Henderson <rth@redhat.com>
9480 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9481 (alpha_option_override, direct_return): Likewise.
9482 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9483 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9484 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9485 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9486 (alpha_expand_epilogue, alpha_end_function): Likewise.
9487 (alpha_init_libfuncs): Likewise.
9488 (struct machine_function): Remove unicosmk members.
9489 (print_operand) ['t']: Remove.
9490 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9491 unicosmk_output_module_name, unicosmk_output_common,
9492 current_section_align, unicosmk_output_text_section_asm_op,
9493 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9494 unicosmk_section_type_flags, unicosmk_unique_section,
9495 unicosmk_asm_named_section, unicosmk_insert_attributes,
9496 unicosmk_output_align, unicosmk_defer_case_vector,
9497 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9498 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9499 unicosmk_output_ssib, unicosmk_add_call_info_word,
9500 unicosmk_extern_head, unicosmk_output_default_externs,
9501 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9502 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9503 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9504 * config/alpha/alpha-protos.h: Update.
9505 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9506 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9507 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9508 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9509 (*mulsi_se, mulvsi3): Likewise.
9510 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9511 (*divmodsi_internal, call, call_value, realign): Likewise.
9512 (moddi3, umoddi3): Likewise; remove duplicate expander.
9513 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9514 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9515 (*movdi_nofix): Remove r/U alternative.
9516 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9517 * config/alpha/constraints.md ("U"): Remove.
9518 * config/alpha/predicates.md (call_operand"): Don't test
9519 TARGET_ABI_UNICOSMK.
9521 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9523 * target.def (handle_option): Take gcc_options and
9524 cl_decoded_option pointers and location_t.
9525 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9526 * doc/tm.texi: Regenerate.
9527 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9528 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9529 * lto-opts.c (lto_reissue_options): Generate option structure for
9530 targetm.handle_option call.
9531 * opts.c (target_handle_option): Update call to
9532 targetm.handle_option. Remove assertions about values now passed
9534 * targhooks.c (default_target_handle_option): New.
9535 * targhooks.h (default_target_handle_option): Declare.
9536 * config/alpha/alpha.c: Include opts.h.
9537 (alpha_handle_option): Update to new hook interface.
9538 * config/arm/arm.c: Include opts.h.
9539 (arm_handle_option): Update to new hook interface.
9540 * config/arm/t-arm (arm.o): Update dependencies.
9541 * config/bfin/bfin.c: Include opts.h.
9542 (bfin_handle_option): Update to new hook interface.
9543 * config/cris/cris.c: Include opts.h.
9544 (cris_handle_option): Update to new hook interface.
9545 * config/frv/frv.c: Include opts.h.
9546 (frv_handle_option): Update to new hook interface.
9547 * config/i386/i386.c: Include opts.h.
9548 (ix86_handle_option): Update to new hook interface.
9549 (ix86_valid_target_attribute_inner_p): Generate option structure
9550 for call to ix86_handle_option.
9551 * config/i386/t-i386 (i386.o): Update dependencies.
9552 * config/ia64/ia64.c: Include opts.h.
9553 (ia64_handle_option): Update to new hook interface.
9554 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9555 * config/iq2000/iq2000.c: Include opts.h.
9556 (iq2000_handle_option): Update to new hook interface.
9557 * config/m32c/m32c.c: Include opts.h.
9558 (m32c_handle_option): Update to new hook interface.
9559 * config/m32r/m32r.c: Include opts.h.
9560 (m32r_handle_option): Update to new hook interface.
9561 * config/m68k/m68k.c: Include opts.h.
9562 (m68k_handle_option): Update to new hook interface.
9563 * config/mep/mep.c: Include opts.h.
9564 (mep_handle_option): Update to new hook interface.
9565 * config/microblaze/microblaze.c: Include opts.h.
9566 (microblaze_handle_option): Update to new hook interface.
9567 * config/mips/mips.c: Include opts.h.
9568 (mips_handle_option): Update to new hook interface.
9569 * config/mn10300/mn10300.c: Include opts.h.
9570 (mn10300_handle_option): Update to new hook interface.
9571 * config/pa/pa.c: Include opts.h.
9572 (pa_handle_option): Update to new hook interface.
9573 * config/pdp11/pdp11.c: Include opts.h.
9574 (pdp11_handle_option): Update to new hook interface.
9575 * config/rs6000/rs6000.c: Include opts.h.
9576 (rs6000_handle_option): Update to new hook interface.
9577 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9578 * config/rx/rx.c: Include opts.h.
9579 (rx_handle_option): Update to new hook interface.
9580 * config/s390/s390.c: Include opts.h.
9581 (s390_handle_option): Update to new hook interface.
9582 * config/score/score.c: Include opts.h.
9583 (score_handle_option): Update to new hook interface.
9584 * config/sh/sh.c: Include opts.h.
9585 (sh_handle_option): Update to new hook interface.
9586 * config/sparc/sparc.c: Include opts.h.
9587 (sparc_handle_option): Update to new hook interface.
9588 * config/v850/v850.c: Include opts.h.
9589 (v850_handle_option): Update to new hook interface.
9591 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9593 * gcc.c (driver_unknown_option_callback): Only permit and save
9594 unknown -Wno- options.
9595 (driver_wrong_lang_callback): Save options directly instead of via
9596 driver_unknown_option_callback.
9598 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9600 * combine.c (simplify_set): Try harder to find the best CC mode when
9601 simplifying a nested COMPARE on the RHS.
9603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9605 * config/alpha/gnu.h: Remove.
9606 * config/arc: Remove directory.
9607 * config/arm/netbsd.h: Remove.
9608 * config/arm/t-pe: Remove.
9609 * config/crx: Remove directory.
9610 * config/i386/netbsd.h: Remove.
9611 * config/m68hc11: Remove directory.
9612 * config/m68k/uclinux-oldabi.h: Remove.
9613 * config/mcore/mcore-pe.h: Remove.
9614 * config/mcore/t-mcore-pe: Remove.
9615 * config/netbsd-aout.h: Remove.
9616 * config/rs6000/gnu.h: Remove.
9617 * config/sh/sh-symbian.h: Remove.
9618 * config/sh/symbian-base.c: Remove.
9619 * config/sh/symbian-c.c: Remove.
9620 * config/sh/symbian-cxx.c: Remove.
9621 * config/sh/symbian-post.h: Remove.
9622 * config/sh/symbian-pre.h: Remove.
9623 * config/sh/t-symbian: Remove.
9624 * config/svr3.h: Remove.
9625 * config/vax/netbsd.h: Remove.
9626 * config.build: Don't handle i[34567]86-*-pe.
9627 * config.gcc: Remove handling of deprecations for most deprecated
9629 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9630 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9631 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9632 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9633 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9634 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9636 * config.host: Don't handle i[34567]86-*-pe.
9637 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9638 (ASM_SPEC32): Don't handle -mcall-gnu.
9639 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9641 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9642 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9643 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9644 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9645 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9646 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9647 conditional on SYMBIAN.
9648 * configure.ac: Don't handle powerpc*-*-gnu*.
9649 * configure: Regenerate.
9650 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9651 * doc/install-old.texi (m6811, m6812): Don't mention.
9652 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9653 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9654 (m68k-uclinuxoldabi): Don't mention.
9655 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9657 (-mcall-gnu): Remove.
9658 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9659 families): Remove constraint documentation.
9661 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9663 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9664 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9665 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9667 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9670 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9671 vector when peeking at the next token for vector, don't expand the
9674 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9676 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9677 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9678 * config/avr/avr.c (init_cumulative_args)
9679 (avr_function_arg_advance): Use it.
9680 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9682 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9683 (avr_function_ok_for_sibcall): ...this new function.
9684 (avr_lookup_function_attribute1): New static Function.
9685 (avr_naked_function_p, interrupt_function_p)
9686 (signal_function_p, avr_OS_task_function_p)
9687 (avr_OS_main_function_p): Use it.
9688 * config/avr/avr.md ("sibcall", "sibcall_value")
9689 ("sibcall_epilogue"): New expander.
9690 ("*call_insn", "*call_value_insn"): New insn.
9691 ("call_insn", "call_value_insn"): Remove
9692 ("call", "call_value", "epilogue"): Change expander to handle
9695 2011-03-21 Nick Clifton <nickc@redhat.com>
9697 * doc/invoke.texi (Overall Options): Move closing brace to end of
9699 (Optimization Options): Add missing @gol.
9700 (Directory Options): Likewise.
9701 (i386 and x86-64 Options): Likewise.
9702 (RS6000 and PowerPC Options): Likewise.
9703 (i386 and x86-64 Windows Options): Likewise.
9704 (V850 Options): Add text missing from descriptions.
9706 2011-03-22 Richard Henderson <rth@redhat.com>
9708 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9709 (avr_incoming_return_addr_rtx): New.
9710 (emit_push_byte): New.
9711 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9712 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9713 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9714 (emit_pop_byte): New.
9715 (expand_epilogue): Use it. Pop frame pointer by bytes.
9716 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9717 (INCOMING_RETURN_ADDR_RTX): New.
9718 (INCOMING_FRAME_SP_OFFSET): New.
9719 (ARG_POINTER_CFA_OFFSET): New.
9720 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9721 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9724 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9726 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9728 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9729 (FUNCTION_ARG_ADVANCE): Likewise.
9730 * tm.texi.in: Change references to them to hook references.
9731 * tm.texi: Regenerate.
9732 * targhooks.c (default_function_arg): Eliminate check for target
9734 (default_function_incoming_arg): Likewise.
9735 (default_function_arg_advance): Likewise.
9736 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9737 (function_arg_advance): Likewise.
9738 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9740 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9742 * tree.c (build_call_1): New function.
9743 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9745 2011-03-22 Richard Guenther <rguenther@suse.de>
9747 PR tree-optimization/48228
9748 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9749 for single-arg PHIs.
9751 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9753 PR rtl-optimization/48143
9754 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9755 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9756 sse2_cvtps2pd): Likewise.
9758 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9760 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9762 2011-03-22 Richard Guenther <rguenther@suse.de>
9764 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9765 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9766 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9767 and REALIGN_LOAD_EXPR.
9768 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9769 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9770 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9771 DOT_PROD_EXPR case ...
9772 (expand_expr_real_2): ... here.
9773 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9774 and REALIGN_LOAD_EXPR.
9775 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9776 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9777 (vect_create_epilog_for_reduction): Likewise.
9778 (vectorizable_reduction): Likewise.
9779 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9780 * tree-vect-stmts.c (vectorizable_load): Likewise.
9782 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9784 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9786 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9788 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9789 handling for PLTOFF/GOTOFF.
9791 2011-03-22 Nick Clifton <nickc@redhat.com>
9793 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9794 trailing backslash from the end of the macro definition.
9796 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9798 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9801 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9803 * expr.h (prepare_operand): Move to...
9804 * optabs.h (prepare_operand): ...here and change the insn code
9805 parameter from "int" to "enum insn_code".
9806 (insn_operand_matches): Declare.
9807 * expr.c (init_expr_target): Use insn_operand_matches.
9808 (compress_float_constant): Likewise.
9809 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9810 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9811 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9812 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9814 (gen_cond_trap): Likewise.
9815 (prepare_operand): Likewise. Change icode to an insn_code.
9816 (insn_operand_matches): New function.
9817 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9818 * reload1.c (gen_reload): Likewise.
9819 * targhooks.c (default_secondary_reload): Likewise.
9821 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9823 * config/alpha/alpha.md (unspec): New define_c_enum.
9826 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9829 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9830 between a call and its CALL_ARG_LOCATION note.
9832 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9834 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9836 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9840 * c-common.c (shorten_compare): If primopN is first sign-extended
9841 to opN and then zero-extended to result type, set primopN to opN.
9843 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9845 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9846 for barrier handlers.
9848 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9850 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9851 UNSPEC constants to be in the unspec enumeration, and redefine
9852 all UNSPECV constants to be in the unspecv enumeration, so that
9853 dumps print which unspec/unspec_volatile this is.
9854 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9855 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9856 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9857 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9858 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9860 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9861 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9862 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9863 * config/rs6000/sync.md (isync, lwsync): Ditto.
9865 2011-03-21 Richard Guenther <rguenther@suse.de>
9867 * params.def (lto-min-partition): Fix typo.
9869 2011-03-21 Richard Guenther <rguenther@suse.de>
9872 * c-decl.c (grokdeclarator): Drop to the main variant only
9873 for array types. Drop flag_gen_aux_info check.
9875 2011-03-21 Richard Guenther <rguenther@suse.de>
9877 PR translation/47911
9878 * params.def (lto-partitions): Fix typo.
9879 (lto-min-partition): Fix wording.
9881 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9883 * config/rs6000/t-freebsd: Remove duplication from file.
9885 2011-03-21 Richard Guenther <rguenther@suse.de>
9888 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9890 2011-03-21 Richard Guenther <rguenther@suse.de>
9893 * params.def (lto-partitions): Require at least 1 partition.
9895 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9897 * gthr-solaris.h: Remove.
9898 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9899 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9900 (LIB_SPEC): Likewise.
9901 * config/sol2.opt (threads): Remove.
9902 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9903 (sparc*-*-solaris2*): Likewise.
9904 * configure.ac (enable_threads): Enable solaris support.
9905 * configure: Regenerate.
9906 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9907 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9910 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9912 * config.gcc: Obsolete *-*-solaris2.8*.
9913 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9915 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9918 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9919 reference. Solaris 8 perl works.
9921 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9924 * doc/install.texi (Prerequisites): Move jar etc. up.
9925 Explain support library version requirements.
9927 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9930 * doc/install.texi (Prerequisites): Move Perl to build
9931 requirements. Always necessary on Solaris 2 with Sun ld.
9933 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9935 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9937 (Specific, i?86-*-solaris2.[89]): Likewise.
9938 (Specific, i?86-*-solaris2.10): Likewise.
9939 (Specific, mips-sgi-irix6): Likewise.
9940 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9941 Update for binutils 2.21.
9943 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9945 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9946 Allow -fuse-linker-plugin for non-default plugin linker.
9947 * configure: Regenerate.
9949 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9952 * gengtype.c (files_rules): Added rule for cp/parser.h.
9954 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9957 * config/s390/s390.c (s390_delegitimize_address): Don't call
9958 lowpart_subreg if orig_x has BLKmode.
9960 2011-03-21 Kai Tietz <ktietz@redhat.com>
9963 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9964 * tree.h (attribute_spec): Add new member affects_type_identity.
9965 * attribs.c (empty_attribute_table): Adjust attribute_spec
9967 * config/alpha/alpha.c: Likewise.
9968 * config/arc/arc.c: Likewise.
9969 * config/arm/arm.c: Likewise.
9970 * config/avr/avr.c: Likewise.
9971 * config/bfin/bfin.c: Likewise.
9972 * config/crx/crx.c: Likewise.
9973 * config/darwin.h: Likewise.
9974 * config/h8300/h8300.c: Likewise.
9975 * config/i386/cygming.h: Likewise.
9976 * config/i386/i386.c: Likewise.
9977 * config/ia64/ia64.c: Likewise.
9978 * config/m32c/m32c.c: Likewise.
9979 * config/m32r/m32r.c: Likewise.
9980 * config/m68hc11/m68hc11.c: Likewise.
9981 * config/m68k/m68k.c: Likewise.
9982 * config/mcore/mcore.c: Likewise.
9983 * config/mep/mep.c: Likewise.
9984 * config/microblaze/microblaze.c: Likewise.
9985 * config/mips/mips.c: Likewise.
9986 * config/rs6000/rs6000.c: Likewise.
9987 * config/rx/rx.c: Likewise.
9988 * config/sh/sh.c: Likewise.
9989 * config/sol2.h: Likewise.
9990 * config/sparc/sparc.c: Likewise.
9991 * config/spu/spu.c: Likewise.
9992 * config/stormy16/stormy16.c: Likewise.
9993 * config/v850/v850.c: Likewise.
9995 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9997 * simplify-rtx.c (simplify_binary_operation_1): Handle
9998 (xor (and A B) C) case when B and C are both constants.
10000 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10002 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10004 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10007 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10009 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10011 PR rtl-optimization/48156
10012 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10013 assume df and df_lr are not NULL.
10015 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10018 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10019 between a call and its CALL_ARG_LOCATION note.
10021 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10024 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10025 between a call and its corresponding CALL_ARG_LOCATION note.
10027 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10029 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10030 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10031 * haifa-sched.c (setup_ref_regs): Ditto.
10032 * caller-save.c (add_used_regs_1): Ditto.
10033 * dse.c (look_for_hardregs): Ditto.
10034 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10035 * sched-rgn.c (check_live_1): Ditto.
10037 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10039 * c-decl.c (diagnose_mismatched_decls): Give an error for
10040 redefining a typedef with variably modified type.
10042 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10044 * c-decl.c (grokfield): Don't allow typedefs for structures or
10045 unions with no tag by default.
10046 * doc/extend.texi (Unnamed Fields): Update.
10048 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10050 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10051 Rewrite using indirect functions.
10052 (lwp_slwpcb): Ditto.
10053 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10054 (avx_vinsertf128<mode>): Ditto.
10056 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10058 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10061 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10063 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10064 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10066 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10068 PR rtl-optimization/48170
10069 * gcse.c (hoist_code): Remove bogus asserts.
10071 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10073 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10074 computation for prologue/epilogue.
10076 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10078 * Makefile.in (check-consistency): Remove.
10080 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10083 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10084 arange_table_in_use is 0, but either text_section_used or
10085 cold_text_section_used is true. Don't call it if
10086 !info_section_emitted.
10088 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10090 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10091 FUNCTION_VALUE_REGNO_P): Remove.
10092 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10094 * config/avr/avr.c (avr_ret_register): Make static inline.
10095 (avr_function_value_regno_p): New function.
10096 (avr_libcall_value): Make static. Add 'func' argument.
10097 (avr_function_value): Make static. Rename 'func' argument to
10098 'fn_decl_or_type', forward it to avr_libcall_value. Call
10099 avr_ret_register function instead of RET_REGISTER macro.
10100 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10102 2011-03-18 Jason Merrill <jason@redhat.com>
10105 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10107 2011-03-18 Richard Guenther <rguenther@suse.de>
10109 * doc/install.texi (--enable-gold): Remove.
10110 (--with-plugin-ld): Document.
10111 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10113 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10115 PR middle-end/47790
10116 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10117 again after expansion changes.
10119 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10121 * combine.c (try_combine): Do simplification only call of
10122 subst() on i2 even when i1 is present. Update comments.
10124 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10126 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10127 and UNSPEC_PCREL_SYMOFF.
10129 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10131 * config/s390/s390.md: Use define_c_enum for the unspec constant
10134 2011-03-18 Richard Henderson <rth@redhat.com>
10135 Jakub Jelinek <jakub@redhat.com>
10138 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10139 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10141 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10143 PR middle-end/47725
10144 * combine.c (cant_combine_insn_p): Don't check zero/sign
10145 extended hard registers.
10147 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10149 PR middle-end/47725
10150 * combine.c (cant_combine_insn_p): Check zero/sign extended
10153 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10155 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10156 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10157 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10158 Change return type to bool.
10159 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10161 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10164 * var-tracking.c (prepare_call_arguments): If CALL target
10165 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10166 pc instead of looking it up using cselib_lookup and use
10167 Pmode for it if x has VOIDmode.
10168 * dwarf2out.c (gen_subprogram_die): If also both first and
10169 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10172 * function.c (assign_parms): For data.passed_pointer parms
10173 use MEM of data.entry_parm instead of data.entry_parm itself
10174 as DECL_INCOMING_RTL.
10175 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10176 also when passed and declared mode is the same, DECL_RTL
10177 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10180 2011-03-16 Jeff Law <law@redhat.com>
10182 PR rtl-optimization/37273
10183 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10184 handle them like argument loads from stack slots. Do not double
10185 count memory for memory constants and argument loads from stack slots.
10187 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10190 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10192 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10195 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10197 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10200 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10202 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10203 Clear call_arg_locations and call_arg_loc_last always.
10205 PR middle-end/48152
10206 * var-tracking.c (prepare_call_arguments): If argument needs to be
10207 passed by reference, adjust argtype and mode.
10209 2011-03-17 Richard Guenther <rguenther@suse.de>
10211 PR middle-end/48134
10212 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10213 a value make sure to fold the statement.
10215 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10218 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10219 return condition with !cfun->calls_alloca.
10221 2011-03-17 Richard Guenther <rguenther@suse.de>
10224 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10225 origin for decls in other ltrans units.
10226 (input_varpool_node): Likewise.
10228 2011-03-17 Richard Guenther <rguenther@suse.de>
10230 PR middle-end/48165
10231 * tree-object-size.c (compute_object_offset): Properly return
10232 the offset operand of MEM_REFs as sizetype.
10234 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10236 PR rtl-optimization/48141
10237 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10238 * dse.c: Include params.h.
10239 (active_local_stores_len): New variable.
10240 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10242 (record_store, check_mem_read_rtx): Decrease it when removing
10244 (scan_insn): Likewise. Increase it when adding to chain, if it
10245 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10246 set active_local_stores to NULL before the addition.
10247 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10249 PR rtl-optimization/48141
10250 * dse.c (record_store): If no positions are needed in an insn
10251 that cannot be deleted, at least unchain it from active_local_stores.
10253 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10256 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10257 (lookup_type_die_strip_naming_typedef): ... here.
10258 (get_context_die): Use it.
10259 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10260 the anonymous struct named by the naming typedef.
10262 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10265 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10266 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10268 2011-03-16 Jeff Law <law@redhat.com>
10270 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10271 check for operands of conditional. Allow type to be a pointer.
10273 2011-03-16 Richard Guenther <rguenther@suse.de>
10275 PR tree-optimization/48149
10276 * fold-const.c (fold_binary_loc): Fold
10277 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10279 2011-03-16 Richard Guenther <rguenther@suse.de>
10281 PR tree-optimization/26134
10282 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10283 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10284 (non_rewritable_mem_ref_base): Handle complex type component
10285 accesses, constrain offsets for vector and complex extracts
10288 2011-03-16 Richard Guenther <rguenther@suse.de>
10290 PR tree-optimization/48146
10291 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10292 operands avoiding the need for renaming.
10294 2011-03-16 Richard Guenther <rguenther@suse.de>
10296 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10297 constant folding. Move MEM_REF canonicalization first.
10298 Rely on fold_const_aggregate_ref for initializer folding.
10299 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10301 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10303 PR middle-end/48136
10304 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10305 arg0/arg1 or their arguments are always fold converted to matching
10308 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10311 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10314 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10315 Handle in-tree gold.
10316 (ld_vers): Extract binutils version for gold.
10317 (gcc_cv_ld_hidden): Handle gold here.
10318 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10319 * configure: Regenerate.
10320 * config.in: Regenerate.
10321 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10322 -fuse-linker-plugin otherwise.
10323 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10324 (LINK_COMMAND_SPEC): Use it.
10325 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10327 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10329 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10330 * calls.c: Remove debug.h include.
10331 (emit_call_1): Don't call virtual_call_token debug hook.
10332 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10333 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10334 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10335 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10336 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10337 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10338 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10339 dwarf2out_virtual_call): Remove.
10340 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10341 copy_call_info and virtual_call hooks.
10342 (dwarf2out_init): Don't initialize vcall_insn_table,
10343 debug_dcall_section and debug_vcall_section.
10344 (prune_unused_types): Don't mark nodes from dcall_table.
10345 (dwarf2out_finish): Don't output dcall or vcall tables.
10346 * final.c (final_scan_insn): Don't call direct_call or
10347 virtual_call debug hooks.
10348 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10349 virtual_call_token, copy_call_info and virtual_call hooks.
10350 (debug_nothing_uid): Remove prototype.
10351 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10352 copy_call_info and virtual_call hooks.
10353 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10354 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10355 * debug.c (do_nothing_debug_hooks): Likewise.
10356 (debug_nothing_uid): Remove.
10357 * doc/invoke.texi (-fenable-icf-debug): Remove.
10358 * common.opt (-fenable-icf-debug): Likewise.
10360 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10361 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10362 call's MEM. Handle functions returning aggregate through a hidden
10363 first pointer. For virtual calls add clobbered pc to call arguments
10365 * dwarf2out.c (gen_subprogram_die): Emit
10366 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10370 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10371 * rtl.h (ENTRY_VALUE_EXP): Define.
10372 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10373 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10374 * print-rtl.c (print_rtx): Likewise.
10375 * gengtype.c (adjust_field_rtx_def): Likewise.
10376 * var-tracking.c (vt_add_function_parameter): Adjust
10377 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10378 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10379 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10380 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10381 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10383 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10384 Call var_location debug hook even on CALL_INSNs.
10385 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10386 * rtl.def (ENTRY_VALUE): New.
10387 * dwarf2out.c: Include cfglayout.h.
10388 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10389 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10390 (struct call_arg_loc_node): New type.
10391 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10392 tail_call_site_count): New variables.
10393 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10394 DW_TAG_GNU_call_site_parameter.
10395 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10396 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10397 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10398 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10399 and DW_AT_GNU_all_source_call_sites.
10400 (mem_loc_descriptor): Handle ENTRY_VALUE.
10401 (add_src_coords_attributes): Don't add enything if
10402 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10403 (dwarf2out_abstract_function): Save and clear call_arg_location,
10404 call_site_count and tail_call_site_count around dwarf2out_decl call.
10405 (gen_call_site_die): New function.
10406 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10407 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10408 (dwarf2out_function_decl): Clear call_arg_locations,
10409 call_arg_loc_last, set call_site_count and tail_call_site_count
10410 to -1 and free block_map.
10411 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10412 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10413 followed by any real instructions.
10414 (dwarf2out_begin_function): Set call_site_count and
10415 tail_call_site_count to 0.
10416 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10417 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10418 attempt to force a DIE for it and worst case remove the attribute.
10419 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10420 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10422 * var-tracking.c: Include tm_p.h.
10423 (vt_stack_adjustments): For calls call note_register_arguments.
10424 (argument_reg_set): New variable.
10425 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10426 ensure the VALUE is resolved.
10427 (call_arguments): New variable.
10428 (prepare_call_arguments): New function.
10429 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10430 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10431 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10432 always use the best expression.
10433 (vt_expand_loc): Add ignore_cur_loc argument.
10434 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10435 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10436 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10437 note for all calls.
10438 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10439 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10440 argument. Don't call cselib_preserve_only_values and
10441 cselib_reset_table.
10442 (note_register_arguments): New function.
10443 (vt_initialize): Compute argument_reg_set. Call
10444 vt_add_function_parameters before processing basic blocks instead of
10445 afterwards. For calls call prepare_call_arguments before calling
10446 cselib_process_insn.
10447 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10448 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10449 (var-tracking.o): Depend on $(TM_P_H).
10450 * cfglayout.h (insn_scope): New prototype.
10451 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10452 * cfglayout.c (insn_scope): No longer static.
10453 * insn-notes.def (CALL_ARG_LOCATION): New.
10454 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10455 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10456 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10457 nothing for DECL_EXTERNAL BLOCK_VARS.
10459 2011-03-16 Alan Modra <amodra@gmail.com>
10462 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10463 create invalid offset address for vsx splat insn.
10464 * config/rs6000/predicates.md (splat_input_operand): New.
10465 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10467 2011-03-15 Xinliang David Li <davidxl@google.com>
10470 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10471 (normalize_preds): New function.
10472 (is_use_properly_guarded): Normalize def predicates.
10474 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10477 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10478 in the output template.
10480 2011-03-15 Richard Guenther <rguenther@suse.de>
10482 PR middle-end/47650
10483 * tree-pretty-print.c (dump_function_declaration): Properly
10484 dump unprototyped and varargs function types.
10486 2011-03-15 Richard Guenther <rguenther@suse.de>
10488 PR tree-optimization/13954
10489 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10492 2011-03-15 Richard Guenther <rguenther@suse.de>
10494 PR tree-optimization/48037
10495 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10496 selects into BIT_FIELD_REFs.
10497 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10500 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10502 PR tree-optimization/48129
10503 * builtins.c (fold_builtin_snprintf): Convert to type of
10504 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10505 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10507 2011-03-15 Richard Guenther <rguenther@suse.de>
10509 PR tree-optimization/41490
10510 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10511 value but with VUSE.
10512 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10514 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10515 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10516 * tree-tailcall.c (find_tail_calls): Ignore returns.
10518 2011-03-15 Richard Guenther <rguenther@suse.de>
10520 PR middle-end/48031
10521 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10522 or variable-indexed array accesses when in gimple form.
10524 2011-03-15 Richard Guenther <rguenther@suse.de>
10526 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10528 2011-03-15 Alan Modra <amodra@gmail.com>
10531 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10532 presume symbol_refs without a symbol_ref_decl are suitably
10533 aligned, nor other trees we may see here. Handle anchor symbols.
10534 (legitimate_constant_pool_address_p): Comment. Add mode param.
10535 Check cmodel=medium addresses. Adjust all calls.
10536 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10537 creating cmodel=medium optimized access to locals.
10538 * config/rs6000/constraints.md (R): Pass QImode to
10539 legitimate_constant_pool_address_p.
10540 * config/rs6000/predicates.md (input_operand): Pass mode to
10541 legitimate_constant_pool_address_p.
10542 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10545 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10548 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10549 64-bit constants being loaded into registers other than GPRs such
10550 as loading 0 into a VSX register.
10552 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10554 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10556 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10558 PR middle-end/47917
10559 * builtins.c (fold_builtin_snprintf): New function.
10560 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10561 (fold_builtin_4): Likewise.
10563 PR middle-end/38878
10564 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10565 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10566 and C - X == X also strip nops from +/-/p+ operand.
10567 When optimizing -X == C, fold C to arg0's type.
10570 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10571 emit it as add_AT_int instead of add_AT_unsigned.
10573 2011-03-14 Tom Tromey <tromey@redhat.com>
10575 * unwind-dw2.c: Include sys/sdt.h if it exists.
10576 (_Unwind_DebugHook): Use STAP_PROBE2.
10577 * config.in, configure: Rebuild.
10578 * configure.ac: Check for sys/sdt.h.
10580 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10582 * config/i386/i386.md (ROUND_FLOOR): New constant.
10583 (ROUND_CEIL): Ditto.
10584 (ROUND_TRUNC): Ditto.
10585 (ROUND_MXCSR): Ditto.
10586 (ROUND_NO_EXC): Ditto.
10587 (rint<mode>2): Use new defines instead of numerical constants.
10588 (floor<mode>2): Ditto.
10589 (ceil<mode>2): Ditto.
10590 (btrunc<mode>2): Ditto.
10591 * config/i386/i386-builtin-types.def: Define ROUND function type
10593 * config/i386/i386.c (enum ix86_builtins): Add
10594 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10595 (struct builtin_description): Add
10596 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10597 (ix86_expand_sse_round): New static function.
10598 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10600 (ix86_builtin_vectorized_function): Handle
10601 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10603 2011-03-14 Tom Tromey <tromey@redhat.com>
10605 * c-parser.c (c_parser_asm_string_literal): Clear
10606 warn_overlength_strings.
10608 2011-03-14 Tom Tromey <tromey@redhat.com>
10610 * c-parser.c (disable_extension_diagnostics): Save
10611 warn_overlength_strings.
10612 (restore_extension_diagnostics): Restore warn_overlength_strings.
10614 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10616 * BASE-VER: Change to 4.7.0.
10618 2011-03-14 Richard Guenther <rguenther@suse.de>
10620 PR middle-end/48098
10621 * tree.c (build_vector_from_val): Adjust assert to requirements
10624 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10627 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10629 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10631 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10632 terms of target_flags_explicit. Adjust copyright year.
10634 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10635 * config/rs6000/t-freebsd: New file. Add override for
10638 2011-03-13 Chris Demetriou <cgd@google.com>
10640 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10641 (-fno-diagnostics-show-option): this, to reflect current default.
10642 (-Werror=): Update text about -fno-diagnostics-show-option.
10644 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10647 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10648 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10649 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10650 mode is not V2DImode or V2DFmode.
10651 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10652 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10653 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10655 (movdi_internal64): Likewise.
10657 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10659 PR tree-optimization/47127
10660 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10662 (set_cloog_options): Same.
10663 (scop_to_clast): Same.
10664 (print_clast_stmt): Do not call cloog_state_malloc and
10666 (print_generated_program): Same.
10668 * graphite-clast-to-gimple.h (cloog_state): Declared.
10669 (scop_to_clast): Adjust declaration.
10670 * graphite.c (cloog_state): Defined here.
10671 (graphite_initialize): Call cloog_state_malloc.
10672 (graphite_finalize): Call cloog_state_free.
10674 2011-03-11 Jason Merrill <jason@redhat.com>
10676 * attribs.c (lookup_attribute_spec): Take const_tree.
10679 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10681 * config/sparc/sparc.c (sparc_option_override): Use
10682 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10684 2011-03-11 Richard Guenther <rguenther@suse.de>
10686 PR tree-optimization/48067
10687 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10688 multiplication result will be only used once on the target
10691 2011-03-11 Richard Guenther <rguenther@suse.de>
10693 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10695 2011-03-11 Richard Guenther <rguenther@suse.de>
10698 * tree.c (find_decls_types_r): Do not walk types only reachable
10699 from IDENTIFIER_NODEs.
10701 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10703 PR middle-end/48044
10704 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10705 all vnode->force_output nodes as needed.
10707 2011-03-11 Jason Merrill <jason@redhat.com>
10710 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10711 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10713 2011-03-11 Martin Jambor <mjambor@suse.cz>
10715 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10718 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10720 PR tree-optimization/48063
10721 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10722 inline functions called once if !tree_can_inline_p (node->callers).
10724 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10726 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10728 * config/score/score3.c: Delete.
10729 * config/score/score3.h: Delete.
10730 * config/score/mul-div.S: Delete.
10731 * config/score/sfp-machine.h: Add new file.
10732 * config/score/constraints.md: Add new file.
10733 * config/score/t-score-softfp: Add new file.
10734 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10735 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10736 (score7_extra_constraint): Delete.
10737 (score7_option_override): Remove unused code.
10738 * config/score/score.c: Remove score3 and score5 define and code.
10739 * config/score/score.h: Remove score3 and score5 define and code.
10740 * config/score/score.md: Remove score3 template and unusual insn.
10741 * config/score/score.opt: Remove score3 and score5 options.
10743 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10745 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10746 when _HPUX_SOURCE is defined.
10747 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10749 2011-03-10 Jason Merrill <jason@redhat.com>
10752 * stor-layout.c (layout_type): Don't set structural equality
10753 on arrays of incomplete type.
10754 * tree.c (type_hash_eq): Handle comparing them properly.
10756 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10759 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10760 result mode matches original rtl mode.
10762 2011-03-10 Nick Clifton <nickc@redhat.com>
10764 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10765 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10767 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10769 PR rtl-optimization/47866
10770 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10771 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10772 if target wasn't scalar.
10773 * function.c (assign_stack_temp_for_type): Assert that neither
10774 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10775 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10777 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10779 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10781 * config/s390/s390-protos.h (s390_label_align): New prototype.
10782 * config/s390/s390.c (s390_label_align): New function.
10783 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10785 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10788 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10789 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10790 (output_vec_const_move): Ditto.
10792 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10794 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10795 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10796 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10797 Change 'rclass' argument and result type to reg_class_t.
10798 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10800 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10802 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10803 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10804 (TARGET_MEMORY_MOVE_COST): Define.
10805 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10807 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10810 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10813 PR tree-optimization/48022
10814 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10817 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10820 * var-tracking.c (find_use_val): Return NULL for
10821 cui->sets && cui->store_p BLKmode MEMs.
10823 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10825 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10827 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10828 xstormy16_print_operand_address): Remove.
10829 * config/stormy16/stormy16.c (xstormy16_print_operand,
10830 xstormy16_print_operand_address): Make static.
10831 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10833 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10836 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10837 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10840 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10843 * cfgloopmanip.c (fix_bb_placements): Return immediately
10844 if FROM is BASE_LOOP's header.
10846 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10848 * gimplify.c (gimplify_function_tree): Fix building calls
10849 to __builtin_return_address.
10851 2011-03-07 Alan Modra <amodra@gmail.com>
10853 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10854 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10855 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10856 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10858 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10859 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10860 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10861 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10862 * config/rs6000/rs6000.c
10863 (rs6000_elf_end_indicate_exec_stack): Rename to..
10864 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10865 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10866 (rs6000_file_start): ..here.
10867 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10868 file scope variables.
10869 (call_ABI_of_interest): New function.
10870 (init_cumulative_args): Set above vars when function return value
10871 is a float, vector, or small struct.
10872 (rs6000_function_arg_advance_1): Likewise for function args.
10873 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10874 references float args.
10876 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10878 * doc/cfg.texi: Remove "See" before @ref.
10879 * doc/invoke.texi: Likewise.
10881 2011-03-05 Jason Merrill <jason@redhat.com>
10883 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10885 2011-03-05 Anthony Green <green@moxielogic.com>
10887 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10889 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10891 PR rtl-optimization/47899
10892 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10893 to flow_loop_nested_p when moving the loop upward.
10895 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10898 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10900 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10902 PR tree-optimization/47967
10903 * ipa-cp.c (build_const_val): Return NULL instead of creating
10904 VIEW_CONVERT_EXPR for mismatching sizes.
10905 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10906 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10907 give up on versioning.
10909 2011-03-05 Alan Modra <amodra@gmail.com>
10912 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10913 full cmodel medium/large lo_sum + high addresses.
10915 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10917 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10918 pool references in UNSPEC_LTREL_OFFSET.
10920 2011-03-04 Jan Hubicka <jh@suse.cz>
10923 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10924 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10925 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10927 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10928 cgraph_add_thunk): Add node pointers.
10929 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10930 associated to right node.
10931 (input_node): Update use of cgraph_same_body_alias
10932 and cgraph_add_thunk.
10934 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10936 * config/i386/i386.opt (mprefer-avx128): New flag.
10937 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10938 modes when the flag -mprefer-avx128 is on.
10940 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10942 * dwarf2out.c (compare_loc_operands): Fix address handling.
10944 2011-03-04 Alan Modra <amodra@gmail.com>
10946 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10948 2011-03-04 Richard Guenther <rguenther@suse.de>
10950 PR middle-end/47968
10951 * expmed.c (extract_bit_field_1): Prefer vector modes that
10952 vec_extract patterns can handle.
10954 2011-03-04 Richard Guenther <rguenther@suse.de>
10956 PR middle-end/47975
10957 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10959 2011-03-04 Richard Henderson <rth@redhat.com>
10961 * explow.c (emit_stack_save): Remove 'after' parameter.
10962 (emit_stack_restore): Likewise.
10963 * expr.h: Update to match.
10964 * builtins.c, calls.c, stmt.c: Likewise.
10965 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10966 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10967 * function.c (expand_function_end): Insert the emit_stack_save
10968 sequence before parm_birth_insn instead of after.
10970 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10972 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10973 (ssse3_pmaddubsw128): Ditto.
10974 (ssse3_pmaddubsw): Ditto.
10976 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10978 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10980 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10983 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10984 on TYPE_SIZE_UNIT if it is a DECL.
10987 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10988 first operand is not is_gimple_mem_ref_addr, try to fold it.
10989 If the operand still isn't is_gimple_mem_ref_addr, clear
10992 2011-03-03 Richard Guenther <rguenther@suse.de>
10994 PR middle-end/47283
10995 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10997 (refs_may_alias_p_1): For release branches return true if
10998 we are confused by our input.
11000 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11002 * config/s390/s390.c (s390_function_value): Rename to ...
11003 (s390_function_and_libcall_value): ... this.
11004 (s390_function_value): New function.
11005 (s390_libcall_value): New function.
11006 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11007 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11008 target macro definitions.
11009 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11011 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11013 * config/i386/freebsd64.h (CC1_SPEC): Define.
11014 * config/i386/linux64.h (CC1_SPEC): Define.
11015 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11017 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11019 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11021 * config/stormy16/stormy16.c: Include reload.h.
11022 (xstormy16_memory_move_cost): New function.
11023 (TARGET_MEMORY_MOVE_COST): Define.
11025 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11027 PR rtl-optimization/47925
11028 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11029 with side effects. Remove the more-specific check for volatile asms.
11031 2011-03-02 Alan Modra <amodra@gmail.com>
11034 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11035 toc relative addresses for valid offsets.
11037 2011-03-01 Richard Guenther <rguenther@suse.de>
11039 PR tree-optimization/47890
11040 * tree-vect-loop.c (get_initial_def_for_induction): Set
11041 related stmt properly.
11043 2011-03-01 Richard Guenther <rguenther@suse.de>
11046 * lto-streamer.c (lto_record_common_node): Also register
11047 the canonical type.
11049 2011-03-01 Richard Guenther <rguenther@suse.de>
11052 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11053 Do not stream DECL_ABSTRACT_ORIGIN.
11054 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11055 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11056 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11057 Do not stream DECL_ABSTRACT_ORIGIN.
11058 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11059 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11061 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11063 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11064 FUNCTION_VALUE_REGNO_P): Remove.
11065 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11066 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11067 Add 'outgoing' argument.
11068 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11070 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11071 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11073 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11076 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11077 (lookup_filename): Likewise.
11078 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11080 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11081 Jakub Jelinek <jakub@redhat.com>
11083 PR middle-end/47893
11084 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11085 (assign_stack_local_1): Change last argument type to int.
11086 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11087 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11088 don't record padding space into frame_space_list nor use those areas.
11089 (assign_stack_local): Adjust caller.
11090 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11091 of assign_stack_local, pass 0 as last argument.
11092 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11095 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11098 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11099 Use target address_mode and pointer_mode hooks instead of hardcoded
11100 Pmode and ptr_mode. Handle some simple cases of extending if
11101 POINTERS_EXTEND_UNSIGNED < 0.
11102 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11103 Call convert_debug_memory_address.
11104 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11105 convert_debug_memory_address.
11107 PR middle-end/46790
11108 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11109 * configure: Regenerated.
11110 * config.in: Regenerated.
11111 * varasm.c (default_function_section): Return NULL
11112 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11114 2011-02-28 Martin Jambor <mjambor@suse.cz>
11116 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11117 the description to match the printed values.
11119 2011-02-28 Richard Guenther <rguenther@suse.de>
11121 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11122 of the copied scope tree.
11124 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11126 * doc/extend.texi (Function Attributes): Avoid deeply (and
11127 wrongly) nested tables.
11129 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11131 PR middle-end/47903
11132 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11133 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11134 r isn't op0 nor op1.
11136 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11138 * config/avr/avr.md: Remove magic comment for emacs.
11140 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11143 * config/avr/avr.c (avr_option_override): Use error on bad options.
11144 (avr_help): New function.
11145 (TARGET_HELP): Define.
11147 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11150 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11151 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11153 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11155 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11156 (ARM Options): Ditto.
11157 (i386 and x86-64 Options): Ditto.
11158 (RX Options): Ditto.
11159 (SPARC Options): Ditto.
11161 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11163 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11164 FreeBSD 6 and later. Generally use cpu generic.
11166 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11168 * doc/cpp.texi: Update copyright years.
11170 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11173 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11175 2011-02-25 Jon Beniston <jon@beniston.com>
11178 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11179 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11180 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11181 (lm32_block_move_inline): Add type cast to remove warning.
11182 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11183 (gen_int_relational): Move declarations to start of function.
11185 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11187 PR tree-optimization/45470
11188 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11189 can throw internally only.
11190 * tree-vect-stmts.c (vectorizable_call): Likewise.
11192 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11194 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11195 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11196 * config/stormy16/stormy16-protos.h
11197 (xstormy16_preferred_reload_class): Remove.
11198 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11199 static. Change 'rclass' argument and return type to reg_class_t.
11200 (TARGET_PREFERRED_RELOAD_CLASS,
11201 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11203 2011-02-24 Richard Guenther <rguenther@suse.de>
11205 * lto-streamer-in.c (input_bb): Do not find referenced vars
11206 in debug statements.
11208 2011-02-23 Jason Merrill <jason@redhat.com>
11210 * common.opt (fabi-version): Document v5 and v6.
11212 2011-02-23 Richard Guenther <rguenther@suse.de>
11214 PR tree-optimization/47849
11215 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11217 2011-02-23 Jie Zhang <jie@codesourcery.com>
11219 * opts-common.c (decode_cmdline_option): Print empty string
11220 argument as "" in decoded->orig_option_with_args_text.
11221 * gcc.c (execute): Print empty string argument as ""
11222 in the verbose output.
11223 (do_spec_1): Keep empty string argument.
11225 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11227 * config.gcc: Declare score-* and crx-* obsolete.
11229 2011-02-23 Jie Zhang <jie@codesourcery.com>
11231 PR rtl-optimization/47763
11232 * web.c (web_main): Ignore naked clobber when replacing register.
11234 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11236 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11239 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11242 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11244 2011-02-22 Mike Stump <mikestump@comcast.net>
11246 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11248 * configure: Regenerate.
11250 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11252 PR rtl-optimization/46002
11253 * ira-color.c (update_copy_costs): Change class intersection
11254 test to reg_class_contents[] test of 'hard_regno'.
11256 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11258 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11259 than Driver option.
11260 * config/hpux11.opt (mt): Likewise.
11261 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11262 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11263 * config/vax/elf.opt (mno-asm-pic): Likewise.
11264 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11266 2011-02-21 Mike Stump <mikestump@comcast.net>
11269 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11270 tree so we can get save the type.
11271 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11272 for CFString instead of trying to use past the end of the builtins.
11273 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11274 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11275 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11276 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11277 Rename to darwin_builtin_cfstring.
11278 (darwin_init_cfstring_builtins): Return the built type.
11280 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11283 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11284 (_mm256_insert_epi64): Use _mm_insert_epi64.
11286 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11288 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11289 * config/stormy16/stormy16-protos.h
11290 (xstormy16_mode_dependent_address_p): Remove.
11291 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11292 Make static. Change return type to bool. Change argument type to
11293 const_rtx. Remove dead code.
11294 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11296 2011-02-21 Richard Guenther <rguenther@suse.de>
11299 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11300 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11301 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11303 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11304 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11306 2011-02-20 Richard Guenther <rguenther@suse.de>
11309 * tree.c (free_lang_data_in_decl): Clean builtins from
11310 the TU decl BLOCK_VARS.
11312 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11316 * haifa-sched.c (fix_tick_ready): Skip tick computation
11319 2011-02-19 Richard Guenther <rguenther@suse.de>
11322 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11323 Remove lazy BLOCK_VARS streaming.
11324 (lto_input_ts_block_tree_pointers): Likewise.
11325 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11327 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11329 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11331 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11333 * config/i386/biarch32.h, config/i386/mach.h,
11334 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11336 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11339 * config/i386/i386.md (peephole2 for shift and plus): Use
11340 operands[1] original mode in the first insn.
11342 2011-02-18 Mike Stump <mikestump@comcast.net>
11344 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11346 2011-02-18 Jan Hubicka <jh@suse.cz>
11348 PR middle-end/47788
11349 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11350 to zero when the function is not inlinable at all.
11352 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11354 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11355 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11356 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11357 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11358 * config/pa/t-pa64: Likewise.
11359 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11361 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11364 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11366 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11369 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11371 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11373 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11374 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11375 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11376 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11377 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11378 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11379 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11380 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11381 m32r_legitimate_address_p): New functions.
11382 * config/m32r/constraints.md (constraint "S"): Don't use
11383 STORE_PREINC_PREDEC_P.
11384 (constraint "U"): Don't use LOAD_POSTINC_P.
11386 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11388 PR rtl-optimization/46178
11389 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11390 compute ira_hard_regno_cover_class[].
11392 2011-02-18 Richard Guenther <rguenther@suse.de>
11395 * lto-streamer.h (lto_global_var_decls): Declare.
11396 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11397 statics for global var processing.
11399 2011-02-18 Richard Guenther <rguenther@suse.de>
11401 PR tree-optimization/47737
11402 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11403 edge dominance check.
11405 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11408 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11409 avoid invalid rtx sharing.
11411 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11413 * doc/cpp.texi (Obsolete Features): Add background on the
11414 origin of assertions.
11416 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11418 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11420 * config/darwin.c (output_objc_section_asm_op): Added support for
11422 (is_objc_metadata): New.
11423 (darwin_objc2_section): New.
11424 (darwin_objc1_section): New.
11425 (machopic_select_section): Added support for ABI v1 and v2.
11426 (darwin_emit_objc_zeroed): New.
11427 (darwin_output_aligned_bss): Detect objc metadata and treat it
11429 (darwin_asm_output_aligned_decl_common): Same.
11430 (darwin_asm_output_aligned_decl_local): Same.
11431 * config/darwin-sections.def: Updated for ABI v1 and v2.
11432 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11433 compiling Objective-C code for the NeXT runtime, default to using
11434 ABI version 0 for 32-bit, and version 2 for 64-bit.
11436 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11438 * common.opt (optimize_fast): New Variable.
11439 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11440 instead of local variable ofast.
11442 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11444 * doc/invoke.texi (fobjc-abi-version): Documented.
11445 (fobjc-nilcheck): Documented.
11446 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11449 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11452 * common.opt (export-dynamic): New Driver option.
11453 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11455 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11457 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11459 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11460 Jan Hubicka <jh@suse.cz>
11464 * cfgexpand.c (account_used_vars_for_block): Remove.
11465 (estimated_stack_frame_size): Use referenced vars.
11466 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11467 that were referenced in the original function. Test src_fn
11468 rather than cfun. Drop redundant get_var_ann.
11469 (setup_one_parameter): Drop redundant get_var_ann.
11470 (declare_return_variable): Likewise.
11471 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11472 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11473 * ipa-inline.c (compute_inline_parameters): Do not compute
11474 disregard_inline_limits here.
11475 (compute_inlinable_for_current, pass_inlinable): New.
11476 (pass_inline_parameters): Require PROP_referenced_vars.
11477 * cgraphunit.c (cgraph_process_new_functions): Don't run
11478 compute_inline_parameters explicitly unless function is in SSA form.
11479 (cgraph_analyze_function): Set .disregard_inline_limits.
11480 * tree-sra.c (convert_callers): Compute inliner parameters
11481 only for functions already in SSA form.
11483 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11485 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11486 -mlittle-endian-data.
11488 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11490 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11491 -mno-fpu, not -fpu and -no-fpu.
11492 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11493 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11495 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11498 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11499 input reload with PLUS RTX.
11501 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11503 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11504 of InverseVar(MDMX).
11506 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11508 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11511 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11513 * config/mn10300/mn10300.opt (mno-crt0): New.
11515 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11517 * config/m68k/uclinux.opt (static-libc): New Driver option.
11519 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11521 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11523 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11525 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11526 %{muser-extend-enabled}.
11528 2011-02-16 Richard Guenther <rguenther@suse.de>
11530 PR tree-optimization/47738
11531 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11532 the TODO from tree_predictive_commoning.
11534 2011-02-15 Jeff Law <law@redhat.com>
11537 2011-01-25 Jeff Law <law@redhat.com>
11539 PR rtl-optimization/37273
11540 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11541 handle them like argument loads from stack slots. Do not double
11542 count memory for memory constants and argument loads from stack slots.
11544 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11546 PR middle-end/47725
11547 * combine.c (cant_combine_insn_p): Revert the last change.
11549 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11552 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11553 mode for vector constants. Remove code that checks for TImode.
11555 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11559 * cgraph.h (compute_inline_parameters): Return void.
11560 * ipa-inline.c (compute_inline_parameters): Adjust.
11562 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11566 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11568 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11569 * ipa-inline.c (compute_inline_parameters): Adjust.
11571 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11575 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11576 Adjust all users. Pass FN to...
11577 * tree-flow-inline.h (first_referenced_var): ... this. Add
11579 * ipa-struct-reorg.c: Adjust.
11580 * tree-dfa.c: Adjust.
11581 * tree-into-ssa.c: Adjust.
11582 * tree-sra.c: Adjust.
11583 * tree-ssa-alias.c: Adjust.
11584 * tree-ssa-live.c: Adjust.
11585 * tree-ssa.c: Adjust.
11586 * tree-ssanames.c: Adjust.
11587 * tree-tailcall.c: Adjust.
11589 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11593 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11594 Adjust all callers.
11595 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11596 * tree-flow-inline.h: Adjust.
11597 * gimple-pretty-print.c: Adjust.
11598 * tree-into-ssa.c: Adjust.
11599 * tree-ssa.c: Adjust.
11600 * cfgexpand.c: Adjust.
11602 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11604 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11605 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11606 (EXTRA_CONSTRAINT): Delete.
11607 * config/iq2000/constraints.md: New file.
11608 * config/iq2000/iq2000.md: Include it.
11609 (define_insn ""): Delete.
11610 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11611 unsupported constraint letters from patterns.
11612 (call_value, call_value_internal1): Likewise.
11613 (call_value_multiple_internal1): Likewise.
11615 2011-02-15 Nick Clifton <nickc@redhat.com>
11617 * config/mn10300/mn10300.c: Include tm-constrs.h.
11618 (struct liw_data): New data structure describing an LIW candidate
11620 (extract_bundle): Use struct liw_data. Allow small integer
11621 operands for some instructions.
11622 (check_liw_constraints): Use struct liw_data. Remove swapped
11623 parameter. Add comments describing the checks. Fix bug when
11624 assigning the source of liw1 to the source of liw2.
11625 (liw_candidate): Delete. Code moved into extract_bundle.
11626 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11628 * config/mn10300/predicates.md (liw_operand): New predicate.
11629 Allows registers and small integer constants.
11630 * config/mn10300/constraints.md (O): New constraint. Accetps
11631 integers in the range -8 to +7 inclusive.
11632 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11633 for moving a small integer into a register. Give this alternative
11635 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11636 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11637 using the J,K,L and M constraints,
11638 (liw): Remove SI mode on second operands to allow for HI and QI
11640 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11643 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11645 PR middle-end/47725
11646 * combine.c (cant_combine_insn_p): Check zero/sign extended
11649 2011-02-15 Richard Guenther <rguenther@suse.de>
11651 PR tree-optimization/47743
11652 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11653 for a non-type-compatible VN lookup bail out.
11655 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11657 * config/fr30/constraints.md: New file.
11658 * config/fr30/fr30.md: Include it.
11659 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11660 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11661 (EXTRA_CONSTRAINT): Delete.
11663 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11665 * config/frv/constraints.md: New file.
11666 * config/frv/predicates.md: Include it.
11667 * config/frv/frv.c (reg_class_from_letter): Delete.
11668 (frv_option_override): Don't initialize it.
11669 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11670 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11671 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11672 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11673 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11674 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11675 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11676 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11677 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11678 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11679 (REG_CLASS_FROM_CONSTRAINT): Delete.
11681 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11683 PR middle-end/47581
11684 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11685 if frame size is 0 in a leaf function.
11687 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11690 * config/alpha/host-osf.c: New file.
11691 * config/alpha/x-osf: New file.
11692 * config.host (alpha*-dec-osf*): Use it.
11694 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11696 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11697 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11698 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11699 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11701 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11703 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11705 * config/stormy16/constraints.md: New file.
11706 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11707 Use satisfies_constraint_Q and satisfies_constraint_R.
11708 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11710 (xstormy16_legitiamte_address_p): Declare.
11711 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11712 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11713 (EXTRA_CONSTRAINT): Delete.
11714 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11716 (xstormy16_extra_constraint_p): Delete.
11718 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11720 PR tree-optimization/46494
11721 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11722 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11723 (pass_rtl_loop_done): Add TODO_verify_flow.
11724 * fwprop.c (pass_rtl_fwprop): Likewise.
11725 * modulo-sched.c (pass_sms): Likewise.
11726 * tree-ssa-dom.c (pass_dominator): Likewise.
11727 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11728 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11729 (pass_tree_loop_done): Likewise.
11730 * tree-ssa-pre.c (execute_pre): Likewise.
11731 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11732 * tree-ssa-sink.c (pass_sink_code): Likewise.
11733 * tree-vrp.c (pass_vrp): Likewise.
11735 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11737 * config/v850/constraints.md: New file.
11738 * config/v850/v850.md: Include it.
11739 * config/v850/predicates.md (reg_or_0_operand): Use
11740 satisfies_constraint_G.
11741 (special_symbolref_operand): Use satisfies_constraint_K.
11742 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11743 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11744 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11745 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11746 (EXTRA_CONSTRAINT): Delete.
11747 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11748 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11749 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11751 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11754 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11757 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11759 * config/mcore/constraints.md: New file.
11760 * config/mcore/mcore.md: Include it.
11761 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11762 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11763 (REG_CLASS_FROM_LETTER): Delete.
11764 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11765 insn_const_int_ok_for_constraint.
11766 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11767 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11768 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11769 (EXTRA_CONSTRAINT): Delete.
11771 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11774 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11775 (IS_SIGHANDLER): Define.
11776 (sparc64_is_sighandler): New function, split off from
11777 sparc64_fallback_frame_state.
11778 (sparc_is_sighandler): New function, split off from
11779 sparc_fallback_frame_state.
11780 (sparc64_fallback_frame_state): Merge with ...
11781 (sparc_fallback_frame_state): ... this into ...
11782 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11783 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11784 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11785 stack instead of hardcoded offsets.
11787 2011-02-14 Andriy Gapon <avg@freebsd.org>
11790 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11792 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11794 * configure: Regenerate.
11796 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11799 * gcc.c (asm_options): Correct spec matching --target-help.
11801 2011-02-12 Martin Jambor <mjambor@suse.cz>
11803 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11804 to gimple call error.
11806 2011-02-12 Mike Stump <mikestump@comcast.net>
11808 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11809 comments in backslash regions.
11811 2011-02-12 Mike Stump <mikestump@comcast.net>
11812 Jakub Jelinek <jakub@redhat.com>
11813 Iain Sandoe <iains@gcc.gnu.org>
11816 * dwarf2out.c (output_cfa_loc): When required, apply the
11817 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11818 (output_loc_sequence): Likewise.
11819 (output_loc_operands_raw): Likewise.
11820 (output_loc_sequence_raw): Likewise.
11821 (output_cfa_loc): Likewise.
11822 (output_loc_list): Suppress register number adjustment when
11823 calling output_loc_sequence()
11824 (output_die): Likewise.
11826 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11828 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11830 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11831 xtensa_memory_move_cost): New functions.
11832 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11834 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11837 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11838 in the current directory.
11839 * configure: Rebuilt.
11841 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11843 * config/darwin.c (darwin_override_options): Add a hunk missed
11844 from the commit of r168571. Trim comment line lengths and
11845 correct indents of the preceding block.
11847 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11849 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11852 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11854 * common.opt (nostartfiles): New Driver option.
11856 2011-02-11 Xinliang David Li <davidxl@google.com>
11858 PR tree-optimization/47707
11859 * tree-chrec.c (convert_affine_scev): Keep type precision.
11861 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11863 PR tree-optimization/47420
11864 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11866 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11868 PR rtl-optimization/47614
11869 * rtl.h (check_for_inc_dec): Declare.
11870 * dse.c (check_for_inc_dec): Externalize...
11871 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11872 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11874 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11877 * gcc.c (main): Do not compile inputs if there were errors in
11879 * opts-common.c (read_cmdline_option): Check for wrong language
11880 after other error checks.
11882 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11884 * cgraph.c: Fix comment typos.
11885 * cgraph.h: Likewise.
11886 * cgraphunit.c: Likewise.
11887 * ipa-cp.c: Likewise.
11888 * ipa-inline.c: Likewise.
11889 * ipa-prop.c: Likewise.
11890 * ipa-pure-const.c: Likewise.
11891 * ipa-ref.c: Likewise.
11892 * ipa-reference.c: Likewise.
11894 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11897 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11899 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11902 * doc/sourcebuild.texi (Require Support): Document
11903 dg-require-ascii-locale.
11905 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11907 * doc/lto.texi (Write summary): Fix missing parentheses.
11909 2011-02-10 DJ Delorie <dj@redhat.com>
11911 * config/m32c/m32c.c (m32c_option_override): Disable
11912 -fcombine-stack-adjustments until flag value tracking and compare
11913 optimization can be rewritten.
11915 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11917 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11919 (PROCESSOR_DEFAULT64): Likewise.
11921 2011-02-10 Richard Henderson <rth@redhat.com>
11923 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11924 change from 2011-02-03.
11925 * config/rx/rx.c (flags_from_code): Likewise.
11926 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11927 is valid, n/pz otherwise.
11928 (rx_select_cc_mode): Return CCmode if Y is not zero.
11930 2011-02-10 Richard Guenther <rguenther@suse.de>
11932 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11934 2011-02-10 Richard Guenther <rguenther@suse.de>
11936 PR tree-optimization/47677
11937 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11939 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11942 * combine.c (make_compound_operation): Only change shifts into
11943 multiplication for SCALAR_INT_MODE_P.
11945 2011-02-10 Jie Zhang <jie@codesourcery.com>
11949 2011-02-05 Jie Zhang <jie@codesourcery.com>
11951 * web.c (entry_register): Don't clobber the number of the
11952 first uninitialized reference in used[].
11954 2011-02-09 Richard Guenther <rguenther@suse.de>
11956 PR tree-optimization/47664
11957 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11960 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11964 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11966 (PROCESSOR_DEFAULT64): Same.
11967 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11969 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11971 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11973 2011-02-09 Martin Jambor <mjambor@suse.cz>
11975 PR middle-end/45505
11976 * tree-sra.c (struct access): New flags grp_scalar_read and
11977 grp_scalar_write. Changed description of assignment read and write
11979 (dump_access): Dump new flags, reorder all of them.
11980 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11981 to detect multiple scalar reads.
11982 (analyze_access_subtree): Use the new scalar read write flags instead
11983 of the old flags. Adjusted comments.
11985 2011-02-08 DJ Delorie <dj@redhat.com>
11988 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11991 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11993 * config/m68k/uclinux.opt: New.
11994 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11996 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11998 * config/cris/elf.opt (sim): New Driver option.
12000 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12002 * config/xtensa/elf.opt: New.
12003 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12005 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12007 * config/vax/elf.opt: New.
12008 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12010 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12012 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12014 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12016 * config/gnu-user.opt: New.
12017 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12018 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12019 *-*-uclinux*): Use gnu-user.opt.
12021 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12023 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12024 * config/i386/gnu.h (CPP_SPEC): Likewise.
12026 2011-02-08 Ian Lance Taylor <iant@google.com>
12028 * common.opt (fcx-limited-range): Add SetByCombined flag.
12029 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12030 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12031 (fassociative-math, freciprocal-math): Likewise.
12032 (funsafe-math-optimizations): Likewise.
12033 * opth-gen.awk: Handle SetByCombined.
12034 * optc-gen.awk: Likewise.
12035 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12036 (set_unsafe_math_optimizations_flags): Likewise.
12037 * doc/options.texi (Option properties): Document SetByCombined.
12039 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12041 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12042 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12043 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12044 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12045 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12047 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12049 PR tree-optimization/46834
12050 PR tree-optimization/46994
12051 PR tree-optimization/46995
12052 * graphite-sese-to-poly.c (used_outside_reduction): New.
12053 (detect_commutative_reduction): Call used_outside_reduction.
12054 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12055 translate_scalar_reduction_to_array only when at least one
12056 loop-phi/close-phi tuple has been detected.
12058 2011-02-08 Richard Guenther <rguenther@suse.de>
12060 PR middle-end/47639
12061 * tree-vect-generic.c (expand_vector_operations_1): Update
12063 (expand_vector_operations): ... not here. Cleanup EH info
12064 and the CFG if required.
12066 2011-02-08 Richard Guenther <rguenther@suse.de>
12068 PR tree-optimization/47641
12069 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12070 require type compatibility.
12072 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12074 * gimple-low.c (lower_function_body): Don't remove the location of
12075 the return statement here.
12076 (lower_gimple_return): Do it here instead but only if the return
12077 statement is actually used twice.
12079 2011-02-08 Richard Guenther <rguenther@suse.de>
12081 PR tree-optimization/47632
12082 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12083 unused up_to_stmt parameter, return whether cfg-cleanup is
12084 necessary, remove EH info properly.
12085 (forward_propagate_into_gimple_cond): Adjust caller.
12086 (forward_propagate_into_cond): Likewise.
12087 (forward_propagate_comparison): Likewise.
12088 (tree_ssa_forward_propagate_single_use_vars): Make
12089 forward_propagate_comparison case similar to the two others.
12091 2011-02-08 Nick Clifton <nickc@redhat.com>
12093 * config/mn10300/mn10300.opt (mliw): New command line option.
12094 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12095 (liw_bundling): New automaton.
12096 (liw): New attribute.
12097 (liw_op): New attribute.
12098 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12099 (movsi_internal): Add LIW attributes.
12100 (andsi3): Likewise.
12101 (iorsi3): Likewise.
12102 (xorsi3): Likewise.
12103 (addsi3): Separate register and immediate alternatives.
12104 Add LIW attributes.
12105 (subsi3): Likewise.
12107 (aslsi3): Likewise.
12108 (lshrsi3): Likewise.
12109 (ashrsi3): Likewise.
12110 (liw): New pattern.
12111 * config/mn10300/mn10300.c (liw_op_names): New
12112 (mn10300_print_operand): Handle 'W' operand descriptor.
12113 (extract_bundle): New function.
12114 (check_liw_constraints): New function.
12115 (liw_candidate): New function.
12116 (mn10300_bundle_liw): New function.
12117 (mn10300_reorg): New function.
12118 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12119 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12120 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12121 __LIW__ or __NO_LIW__.
12122 * doc/invoke.texi: Describe the -mliw command line option.
12124 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12126 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12127 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12128 pthread_mutex_unlock): Remove.
12129 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12130 * config/pa/t-pa64: Likewise.
12131 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12132 shared libc if not linking against libpthread.
12133 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12135 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12138 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12139 on 10.6 and later to ensure that we always use the unwinder from
12140 the system. Only add -no_compact_unwind when tarteting darwin
12143 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12146 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12147 (vec_interleave_lowv2sf): Ditto.
12148 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12149 (vec_extract_oddv2sf): Ditto.
12151 2011-02-07 Mike Stump <mikestump@comcast.net>
12154 Add __ieee_divdc3 entry point.
12155 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12157 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12158 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12159 * config/darwin.c (darwin_rename_builtins): Add.
12160 * config/darwin-protos.h (darwin_rename_builtins): Add.
12162 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12165 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12168 2011-02-07 Mike Stump <mikestump@comcast.net>
12170 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12172 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12175 * config/avr/libgcc.S (exit): Move .endfunc
12177 2011-02-07 Richard Guenther <rguenther@suse.de>
12179 PR tree-optimization/47615
12180 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12181 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12182 (run_scc_vn): Initialize it.
12183 (visit_reference_op_load): Use it.
12184 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12186 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12188 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12189 DImode trapping arithmetic libfuncs.
12191 2011-02-07 Richard Guenther <rguenther@suse.de>
12193 PR tree-optimization/47621
12194 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12196 (execute_update_addresses_taken): ... here. Make it more
12197 conservative in what we accept.
12199 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12201 * config/sparc/freebsd.h (ASM_SPEC): Define.
12202 * config/sparc/vxworks.h (ASM_SPEC): Define.
12204 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12206 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12208 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12210 * doc/invoke.texi: Remove reference to compiler internals from
12211 user documentation.
12213 * reg-notes.def: Remove REG_VALUE_PROFILE.
12214 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12216 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12218 PR middle-end/47610
12219 * varasm.c (default_section_type_flags): If decl is NULL,
12220 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12222 2011-02-05 Jie Zhang <jie@codesourcery.com>
12225 * web.c (entry_register): Don't clobber the number of the
12226 first uninitialized reference in used[].
12228 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12230 PR tree-optimization/46194
12231 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12232 (build_classic_dist_vector_1): Do not represent classic distance
12233 vectors when the access functions are variating in different loops.
12235 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12237 * config/mips/iris6.opt: New.
12238 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12240 2011-02-04 Richard Henderson <rth@redhat.com>
12241 Steve Ellcey <sje@cup.hp.com>
12244 * config/ia64/predicates.md (mux1_brcst_element): New.
12245 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12246 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12247 (ia64_unpack_sign): New.
12248 (ia64_expand_unpack): Rewrite using new routines.
12249 (ia64_expand_widen_sum): Ditto.
12250 (ia64_expand_dot_prod_v8qi): Ditto.
12251 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12252 routines, add endian check.
12253 (pmpy2_even): Rename from pmpy2_r, add endian check.
12254 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12255 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12256 (vec_widen_smult_hi_v4hi): Ditto.
12257 (vec_widen_umult_lo_v4hi): Ditto.
12258 (vec_widen_umult_hi_v4hi): Ditto.
12259 (mulv2si3): Change endian checks.
12260 (sdot_prodv4hi): Rewrite with new calls.
12261 (udot_prodv4hi): New.
12262 (vec_pack_ssat_v4hi): Add endian check.
12263 (vec_pack_usat_v4hi): Ditto.
12264 (vec_pack_ssat_v2si): Ditto.
12265 (max1_even): Rename from max1_r, add endian check.
12266 (max1_odd): Rename from max1_l, add endian check.
12267 (*mux1_rev): Format change.
12268 (*mux1_mix): Ditto.
12269 (*mux1_shuf): Ditto.
12270 (*mux1_alt): Ditto.
12271 (*mux1_brcst_v8qi): Use new predicate.
12272 (vec_extract_evenv8qi): Remove endian check.
12273 (vec_extract_oddv8qi): Ditto.
12274 (vec_interleave_lowv4hi): Format change.
12275 (vec_interleave_highv4hi): Ditto.
12276 (mix2_even): Rename from mix2_r, add endian check.
12277 (mix2_odd): Rename from mux2_l, add endian check.
12278 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12279 (vec_extract_evenodd_helper): Format change.
12280 (vec_extract_evenv4hi): Remove endian check.
12281 (vec_extract_oddv4hi): Remove endian check.
12282 (vec_interleave_lowv2si): Format change.
12283 (vec_interleave_highv2si): Format change.
12284 (vec_initv2si): Remove endian check.
12285 (vecinit_v2si): Add endian check.
12286 (reduc_splus_v2sf): Add endian check.
12287 (reduc_smax_v2sf): Ditto.
12288 (reduc_smin_v2sf): Ditto.
12289 (vec_initv2sf): Remove endian check.
12290 (fpack): Add endian check.
12291 (fswap): Add endian check.
12292 (vec_interleave_highv2sf): Add endian check.
12293 (vec_interleave_lowv2sf): Add endian check.
12294 (fmix_lr): Add endian check.
12295 (vec_setv2sf): Format change.
12296 (*vec_extractv2sf_0_be): Use shift to extract operand.
12297 (*vec_extractv2sf_1_be): New.
12298 (vec_pack_trunc_v4hi): Add endian check.
12299 (vec_pack_trunc_v2si): Format change.
12301 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12303 PR inline-asm/23200
12304 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12305 do bb, locus and block comparison and disallow loads if it is not set.
12306 (stmt_is_replaceable_p): New function.
12307 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12309 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12310 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12312 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12314 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12316 * config/rs6000/xilinx.opt: New.
12317 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12319 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12321 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12323 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12325 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12326 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12327 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12328 secondary_reload_info, xtensa_secondary_reload): Remove.
12329 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12330 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12331 (xtensa_preferred_reload_class): Make static. Change return and
12332 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12333 Use CONST_DOUBLE_P predicate.
12334 (xtensa_preferred_output_reload_class): New function.
12335 (xtensa_secondary_reload): Make static.
12337 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12339 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12340 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12341 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12343 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12345 PR middle-end/31490
12346 * output.h (SECTION_RELRO): Define.
12347 (SECTION_MACH_DEP): Adjust.
12348 (get_variable_section): New prototype.
12349 * varpool.c (varpool_finalize_named_section_flags): New function.
12350 (varpool_assemble_pending_decls): Call it.
12351 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12352 * cgraphunit.c (cgraph_output_in_order): Call
12353 varpool_finalize_named_section_flags.
12354 * varasm.c (get_section): Allow section flags conflicts between
12355 relro and read-only sections if the section hasn't been declared yet.
12356 Set SECTION_OVERRIDE after diagnosing section type conflict.
12357 (get_variable_section): No longer static.
12358 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12359 readonly sections that need relocations.
12360 (decl_readonly_section_1): New function.
12361 (decl_readonly_section): Use it.
12364 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12365 Steve Ellcey <sje@cup.hp.com>
12367 PR middle-end/31490
12368 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12369 if section attribute used.
12371 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12373 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12374 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12375 (darwin_init_sections): Remove assertion.
12377 2011-02-03 Nick Clifton <nickc@redhat.com>
12379 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12381 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12382 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12383 instead of "n" and "pz".
12384 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12387 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12390 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12391 fma, expand FMA_EXPR as fma{,f,l} call.
12394 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12395 copy them into a unsigned char variable and pass address of it to
12396 lto_output_data_stream.
12399 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12400 around backend_init_target and lang_dependent_init_target calls.
12401 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12402 (verify_cgraph_node): Don't call set_cfun here. Use
12403 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12404 Set error_found for incorrectly represented calls to thunks.
12406 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12409 PR rtl-optimization/43494
12410 * rtl.h (for_each_inc_dec_fn): New type.
12411 (for_each_inc_dec): Declare.
12412 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12413 (for_each_inc_dec_find_inc_dec): New fn.
12414 (for_each_inc_dec_find_mem): New fn.
12415 (for_each_inc_dec): New fn.
12416 * dse.c (struct insn_size): Remove.
12417 (replace_inc_dec, replace_inc_dec_mem): Remove.
12418 (emit_inc_dec_insn_before): New fn.
12419 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12420 (canon_address): Pass mem modes to cselib_lookup.
12421 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12422 (cselib_lookup_from_insn): Likewise.
12423 (cselib_subst_to_values): Likewise.
12424 * cselib.c (find_slot_memmode): New var.
12425 (cselib_find_slot): New fn. Use it instead of
12426 htab_find_slot_with_hash everywhere.
12427 (entry_and_rtx_equal_p): Use find_slot_memmode.
12428 (autoinc_split): New fn.
12429 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12430 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12431 Deal with autoinc. Special-case recursion into MEMs.
12432 (cselib_hash_rtx): Likewise.
12433 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12434 address and MEM modes.
12435 (cselib_subst_to_values): Add memmode, pass it on.
12437 (cselib_lookup): Add memmode argument, pass it on.
12438 (cselib_lookup_from_insn): Add memmode.
12439 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12440 (struct cselib_record_autoinc_data): New.
12441 (cselib_record_autoinc_cb): New fn.
12442 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12443 mode to cselib_lookup. Reset autoinced REGs here instead of...
12444 (cselib_process_insn): ... here.
12445 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12447 (add_uses): Likewise, also to cselib_subst_to_values.
12448 (add_stores): Likewise.
12449 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12450 cselib_subst_to_values.
12451 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12452 * gcse.c (do_local_cprop): Adjusted.
12453 * postreload.c (reload_cse_simplify_set): Adjusted.
12454 (reload_cse_simplify_operands): Adjusted.
12455 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12457 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12459 PR tree-optimization/45122
12460 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12461 unsafe assumptions when there's more than one loop exit.
12463 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12466 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12467 Document using vector double with the load/store builtins, and
12468 that the load/store builtins always use Altivec instructions.
12470 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12471 to use altivec memory instructions, even on VSX.
12472 (vector_altivec_store_<mode>): Ditto.
12474 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12477 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12478 V2DF, V2DI support to load/store overloaded builtins.
12480 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12481 altivec load/store builtins for V2DF/V2DI types.
12483 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12484 set avoid indexed addresses on power6 if -maltivec.
12485 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12486 vector_altivec_load/vector_altivec_store builtins.
12487 (altivec_expand_st_builtin): Ditto.
12488 (altivec_expand_builtin): Add VSX memory builtins.
12489 (rs6000_init_builtins): Add V2DI types to internal types.
12490 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12491 load/store builtins.
12492 (rs6000_address_for_altivec): Insure memory address is appropriate
12495 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12496 vec_vsx_ld and vec_vsx_st.
12497 (vsx_store_<mode>): Ditto.
12499 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12500 variables to hold long long types for VSX vector memory builtins.
12501 (RS6000_BTI_unsigned_long_long): Ditto.
12502 (long_long_integer_type_internal_node): Ditti.
12503 (long_long_unsigned_type_internal_node): Ditti.
12505 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12506 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12507 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12509 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12511 (vec_vsx_st): Ditto.
12513 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12515 * config/pa/pa-hpux10.opt: New.
12516 * config/hpux11.opt (pthread): New Driver option.
12517 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12518 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12520 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12522 * config/ia64/vms.opt: New.
12523 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12525 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12528 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12529 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12530 generator functions.
12531 (vsx_floatuns<VSi><mode>2): Ditto.
12532 (vsx_fix_trunc<mode><VSi>2): Ditto.
12533 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12535 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12537 * config/i386/djgpp.opt (posix): New Driver option.
12539 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12541 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12542 Move to the unsupported targets list.
12544 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12546 PR rtl-optimization/47525
12547 * df-scan.c: Update copyright years.
12548 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12549 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12551 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12553 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12554 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12555 (ASM_OUTPUT_ASCII): Remove.
12556 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12558 2011-02-02 Jeff Law <law@redhat.com>
12560 PR middle-end/47543
12561 * reload.c (find_reloads_address): Handle reg+d address where both
12562 components are invalid by reloading the entire address.
12564 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12565 Richard Guenther <rguenther@suse.de>
12567 PR tree-optimization/40979
12569 * passes.c (init_optimization_passes): After LIM call copy_prop
12570 and DCE to clean up.
12571 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12573 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12575 PR tree-optimization/47576
12576 PR tree-optimization/47555
12577 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12578 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12579 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12580 * tree-scalar-evolution.c (follow_ssa_edge): Use
12581 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12583 2011-02-02 Richard Guenther <rguenther@suse.de>
12585 PR tree-optimization/47566
12586 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12588 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12592 * tree-inline.c (declare_return_variable): Remove unused caller
12597 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12598 * cfgexpand.c (account_used_vars_for_block): Use them.
12599 * tree-nrv.c (tree_nrv): Likewise.
12600 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12601 (dump_scope_block): Likewise.
12602 (remove_unused_locals): Likewise.
12606 * tree-inline.c (declare_return_variable): Add result decl to
12607 local decls only once.
12608 * gimple-low.c (record_vars_into): Mark newly-created variables
12611 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12617 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12619 (no_real_insns_p, schedule_block, set_priorities): Drop special
12620 treatment of boundary debug insns.
12621 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12622 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12623 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12624 (BOUNDARY_DEBUG_INSN_P): Likewise.
12625 (SCHEDULE_DEBUG_INSN_P): Likewise.
12626 * sched-rgn.c (init_ready_list): Drop special treatment of
12627 boundary debug insns.
12628 * final.c (rest_of_clean_state): Clear notes' BB.
12630 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12632 * config/openbsd.opt (assert=): New Driver option.
12634 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12636 * config/i386/nto.opt: New.
12637 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12639 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12641 * config/i386/netware.opt: New.
12642 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12644 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12646 * config/interix.opt (posix): New Driver option.
12648 2011-02-01 DJ Delorie <dj@redhat.com>
12650 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12652 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12655 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12657 PR tree-optimization/47561
12658 * toplev.c (process_options): Print the Graphite flags. Add
12659 flag_loop_flatten to the list of options requiring Graphite.
12661 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12663 * config/i386/cygming.opt (posix): New Driver option.
12665 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12667 * config/arm/vxworks.opt: New.
12668 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12670 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12672 * config/alpha/elf.opt: New.
12673 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12674 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12676 2011-02-01 Richard Guenther <rguenther@suse.de>
12678 PR tree-optimization/47559
12679 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12680 store-motion on references that can throw.
12682 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12684 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12685 * tree-pass.h (TDF_CSELIB): New macro.
12686 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12687 cselib_lookup): Check for it rather than for TDF_DETAILS.
12689 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12692 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12693 is HOST_BIT_BUCKET.
12695 * opts.c (finish_options): Don't add x_aux_base_name if it is
12698 2011-02-01 Richard Guenther <rguenther@suse.de>
12700 PR tree-optimization/47555
12702 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12704 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12706 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12709 * config/lm32/t-lm32: Add multilib for all CPU options.
12711 2011-02-01 Richard Guenther <rguenther@suse.de>
12713 PR tree-optimization/47541
12714 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12715 sure to have a field at offset zero.
12717 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12719 * config/arc/arc.opt (EB, EL): New Driver options.
12721 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12723 * config/alpha/osf5.opt: New.
12724 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12726 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12728 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12730 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12732 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12733 -floop-interchange.
12734 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12735 is an alias of -floop-interchange and that it requires the
12736 Graphite infrastructure.
12737 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12738 flag_loop_interchange based on the value of flag_tree_loop_linear.
12740 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12741 Richard Guenther <rguenther@suse.de>
12743 PR tree-optimization/47538
12744 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12745 type instead of r1type, except for comparisons. For right
12746 shifts and comparisons punt if there are mismatches in
12747 sizetype vs. non-sizetype types.
12749 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12751 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12754 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12756 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12758 * configure: Regenerate.
12760 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12762 * configure.ac (gcc_cv_ld_static_option): Define.
12763 (gcc_cv_ld_dynamic_option): Define.
12764 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12766 (HAVE_LD_STATIC_DYNAMIC): Update message.
12767 (LD_STATIC_OPTION): Define.
12768 (LD_DYNAMIC_OPTION): Define.
12769 * configure: Regenerate.
12770 * config.in: Regenerate.
12771 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12772 HAVE_LD_STATIC_DYNAMIC]: Use them.
12774 2011-01-31 Nick Clifton <nickc@redhat.com>
12776 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12777 registers inside interrupt handlers if the handler is not a leaf
12780 2011-01-31 Nick Clifton <nickc@redhat.com>
12782 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12783 reg_renumber returning an INVALID_REGNUM.
12785 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12788 * doc/install.texi: Document host options discarded when cross
12789 configuring target libraries.
12791 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12794 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12797 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12799 (no_real_insns_p, schedule_block, set_priorities): Drop special
12800 treatment of boundary debug insns.
12801 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12802 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12803 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12804 (BOUNDARY_DEBUG_INSN_P): Likewise.
12805 (SCHEDULE_DEBUG_INSN_P): Likewise.
12806 * sched-rgn.c (init_ready_list): Drop special treatment of
12807 boundary debug insns.
12808 * final.c (rest_of_clean-state): Clear notes' BB.
12810 2011-01-31 Alan Modra <amodra@gmail.com>
12812 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12813 toc relative expressions as we do in print_operand_address.
12815 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12817 * doc/extend.texi: Follow spelling conventions.
12818 * doc/invoke.texi: Fix a typo.
12820 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12822 * config/hpux11.opt: New.
12823 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12824 ia64*-*-hpux*): Use hpux11.opt.
12826 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12828 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12831 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12833 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12836 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12838 * doc/install.texi (Binaries): Remove outdated reference for
12839 Motorola 68HC11/68HC12 downloads.
12841 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12843 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12846 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12849 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12852 2011-01-28 Ahmad Sharif <asharif@google.com>
12854 * value-prof.c (check_counter): Corrected error message.
12856 2011-01-29 Jie Zhang <jie@codesourcery.com>
12858 * config/arm/arm.c (arm_legitimize_reload_address): New.
12859 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12860 arm_legitimize_reload_address.
12861 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12863 2011-01-28 Ian Lance Taylor <iant@google.com>
12865 * godump.c (go_define): Ignore macros whose definitions include
12866 two adjacent operands.
12868 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12871 * varasm.c (force_const_mem): Store copy of x in desc->constant
12872 instead of x itself.
12873 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12874 itself into REG_EQUAL note.
12876 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12878 * config/freebsd.opt (posix, rdynamic): New Driver options.
12880 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12882 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12883 -Bstatic/-Bdynamic.
12884 * configure: Regenerate.
12886 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12888 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12889 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12891 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12893 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12894 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12895 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12896 (s390_preferred_reload_class): Make static. Change return and
12897 'rclass' argument type to reg_class_t.
12899 2011-01-27 Jan Hubicka <jh@suse.cz>
12901 PR middle-end/46949
12902 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12903 (process_function_and_variable_attributes): Check defined weakrefs.
12905 2011-01-27 Martin Jambor <mjambor@suse.cz>
12907 PR tree-optimization/47228
12908 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12909 build_ref_for_offset.
12911 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12913 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12915 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12917 PR rtl-optimization/46856
12918 * postreload.c (reload_combine_recognize_const_pattern): Do not
12919 separate cc0 setter and user on cc0 targets.
12921 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12924 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12925 passed a VOID_TYPE expression, immediately emit an error and
12926 return error_mark_node.
12928 2011-01-26 Jeff Law <law@redhat.com>
12930 PR rtl-optimization/47464
12931 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12932 rather than may_trap_p as needed.
12934 2011-01-26 DJ Delorie <dj@redhat.com>
12936 PR rtl-optimization/46878
12937 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12938 setter/user dependency as well.
12940 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12942 PR rtl-optimization/44469
12943 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12944 after removing trivially dead basic blocks.
12946 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12948 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12949 * config/frv/frv.h (LINK_SPEC): Likewise.
12950 * config/i386/netware.h (LINK_SPEC): Likewise.
12951 * config/m68k/linux.h (ASM_SPEC): Likewise.
12952 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12953 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12954 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12955 * config/sparc/linux.h (ASM_SPEC): Likewise.
12956 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12957 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12959 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12961 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12962 * config/frv/frv.h (ASM_SPEC): Likewise.
12963 * config/m68k/linux.h (ASM_SPEC): Likewise.
12964 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12965 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12966 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12967 * config/sparc/linux.h (ASM_SPEC): Likewise.
12968 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12969 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12971 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12973 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12974 * config/frv/frv.h (LINK_SPEC): Likewise.
12975 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12977 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12979 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12980 * config/frv/frv.h (ASM_SPEC): Likewise.
12981 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12982 * config/m68k/linux.h (ASM_SPEC): Likewise.
12983 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12984 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12985 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12986 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12987 * config/sparc/linux.h (ASM_SPEC): Likewise.
12988 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12989 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12990 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12992 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12995 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12997 (vec_extract_evenodd_help): Ditto.
12998 (vec_extract_evenv4hi): Ditto.
12999 (vec_extract_oddv4hi): Ditto.
13000 (vec_interleave_lowv2si): Ditto.
13001 (vec_interleave_highv2si): Ditto.
13002 (vec_extract_evenv2si): Ditto.
13003 (vec_extract_oddv2si: Ditto.
13004 (vec_pack_trunc_v2si): Ditto.
13006 2011-01-22 Jan Hubicka <jh@suse.cz>
13009 * cgraph.h (cgraph_local_info): New field can_change_signature.
13010 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13011 signature can change.
13012 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13014 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13015 (cgraph_function_versioning): We can not change signature of functions
13016 that don't allow that.
13017 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13018 (lto_input_node): Likewise.
13019 * ipa-inline.c (compute_inline_parameters): Compute
13020 local.can_change_signature.
13021 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13022 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13023 functions that can not change signature.
13024 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13025 init_cumulative_args): Do not use local calling conventions
13026 for functions that can not change signature.
13028 2011-01-22 Jan Hubicka <jh@suse.cz>
13030 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13032 2011-01-26 Richard Guenther <rguenther@suse.de>
13034 PR tree-optimization/47190
13035 * cgraphunit.c (process_common_attributes): New function.
13036 (process_function_and_variable_attributes): Use it.
13038 2011-01-26 Richard Guenther <rguenther@suse.de>
13041 * cgraphbuild.c (record_eh_tables): Record reference to personality
13044 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13047 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13048 non-debug insns from moving up.
13050 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13053 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13054 t-dlldir{,-x} fragment for build and add it to tmake_file.
13055 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13056 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13057 * config/i386/t-dlldir: New file.
13058 (SHLIB_DLLDIR): Define.
13059 * config/i386/t-dlldir-x: New file.
13060 (SHLIB_DLLDIR): Define.
13061 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13062 (SHLIB_INSTALL): Use it.
13064 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13067 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13068 lower bound of the allowed Thumb-2 coprocessor load/store
13069 index range to -256. Add explaining comment.
13071 2011-01-25 Ian Lance Taylor <iant@google.com>
13073 * godump.c (go_define): Improve lexing of macro expansion to only
13074 accept expressions which match Go spec.
13076 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13079 * tree.c (handle_dll_attribute): Handle it.
13080 * doc/extend.texi (@item dllexport): Mention it.
13081 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13083 2011-01-25 Ian Lance Taylor <iant@google.com>
13085 PR tree-optimization/26854
13086 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13087 (decl_jump_unsafe): Move higher in file, with no other change.
13088 (bind): Set has_jump_unsafe_decl if appropriate.
13089 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13090 (check_earlier_gotos): Likewise.
13091 (c_check_switch_jump_warnings): Likewise.
13093 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13095 * doc/invoke.texi (Warning Options): Add missing hyphen.
13096 (-fprofile-dir): Minor grammatical fixes.
13097 (-fbranch-probabilities): Likewise.
13099 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13103 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13105 (no_real_insns_p, schedule_block, set_priorities): Drop special
13106 treatment of boundary debug insns.
13107 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13108 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13109 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13110 (BOUNDARY_DEBUG_INSN_P): Likewise.
13111 (SCHEDULE_DEBUG_INSN_P): Likewise.
13112 * sched-rgn.c (init_ready_list): Drop special treatment of
13113 boundary debug insns.
13114 * final.c (rest_of_clean-state): Clear notes' BB.
13116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13118 * Makefile.in (LAMBDA_H): Removed.
13119 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13120 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13121 lambda-trans.o, and tree-loop-linear.o.
13122 (lto-symtab.o): Remove dependence on LAMBDA_H.
13123 (tree-loop-linear.o): Remove rule.
13124 (lambda-mat.o): Same.
13125 (lambda-trans.o): Same.
13126 (lambda-code.o): Same.
13127 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13128 (tree-vect-slp.o): Same.
13129 * hwint.h (gcd): Moved here.
13130 (least_common_multiple): Same.
13131 * lambda-code.c: Removed.
13132 * lambda-mat.c: Removed.
13133 * lambda-trans.c: Removed.
13134 * lambda.h: Removed.
13135 * tree-loop-linear.c: Removed.
13136 * lto-symtab.c: Do not include lambda.h.
13137 * omega.c (gcd): Removed.
13138 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13139 * tree-data-ref.c (print_lambda_vector): Moved here.
13140 (lambda_vector_copy): Same.
13141 (lambda_matrix_copy): Same.
13142 (lambda_matrix_id): Same.
13143 (lambda_vector_first_nz): Same.
13144 (lambda_matrix_row_add): Same.
13145 (lambda_matrix_row_exchange): Same.
13146 (lambda_vector_mult_const): Same.
13147 (lambda_vector_negate): Same.
13148 (lambda_matrix_row_negate): Same.
13149 (lambda_vector_equal): Same.
13150 (lambda_matrix_right_hermite): Same.
13151 * tree-data-ref.h: Do not include lambda.h.
13152 (lambda_vector): Moved here.
13153 (lambda_matrix): Same.
13154 (dependence_level): Same.
13155 (lambda_transform_legal_p): Removed declaration.
13156 (lambda_collect_parameters): Same.
13157 (lambda_compute_access_matrices): Same.
13158 (lambda_vector_gcd): Same.
13159 (lambda_vector_new): Same.
13160 (lambda_vector_clear): Same.
13161 (lambda_vector_lexico_pos): Same.
13162 (lambda_vector_zerop): Same.
13163 (lambda_matrix_new): Same.
13164 * tree-flow.h (least_common_multiple): Removed declaration.
13165 * tree-parloops.c (lambda_trans_matrix): Moved here.
13166 (LTM_MATRIX): Same.
13167 (LTM_ROWSIZE): Same.
13168 (LTM_COLSIZE): Same.
13169 (LTM_DENOMINATOR): Same.
13170 (lambda_trans_matrix_new): Same.
13171 (lambda_matrix_vector_mult): Same.
13172 (lambda_transform_legal_p): Same.
13173 * tree-pass.h (pass_linear_transform): Removed declaration.
13174 * tree-ssa-loop.c (tree_linear_transform): Removed.
13175 (gate_tree_linear_transform): Removed.
13176 (pass_linear_transform): Removed.
13177 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13178 flag_loop_interchange.
13180 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13182 PR tree-optimization/47265
13183 PR tree-optimization/47443
13184 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13185 if name still has some uses.
13187 2011-01-25 Martin Jambor <mjambor@suse.cz>
13189 PR tree-optimization/47382
13190 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13191 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13193 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13195 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13196 sjlj_except_unwind_info.
13198 2011-01-25 Richard Guenther <rguenther@suse.de>
13200 PR tree-optimization/47426
13201 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13202 visible functions results escape.
13204 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13207 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13208 (arm_get_frame_offsets): Use it.
13210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13211 Jakub Jelinek <jakub@redhat.com>
13213 PR tree-optimization/47271
13214 * tree-if-conv.c (bb_postdominates_preds): New.
13215 (if_convertible_bb_p): Call bb_postdominates_preds.
13216 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13217 (predicate_scalar_phi): Call bb_postdominates_preds.
13219 2011-01-25 Nick Clifton <nickc@redhat.com>
13221 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13222 * config/rx/rx.c (rx_function_value): Likewise.
13223 (rx_promote_function_mode): Likewise.
13224 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13225 in order to make it legitimate.
13226 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13227 make sure that the first operand is the same as the result register.
13228 (addsi3_unspec): Delete.
13229 (subdi3): Do not accept immediate operands.
13230 (subdi3_internal): Likewise.
13232 2011-01-25 Jeff Law <law@redhat.com>
13234 PR rtl-optimization/37273
13235 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13236 handle them like argument loads from stack slots. Do not double
13237 count memory for memory constants and argument loads from stack slots.
13239 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13241 PR tree-optimization/47427
13242 PR tree-optimization/47428
13243 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13244 coalesce if the new root var would be TREE_READONLY.
13246 2011-01-25 Richard Guenther <rguenther@suse.de>
13248 PR middle-end/47414
13249 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13250 correct type for TBAA.
13252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13254 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13255 (close_phi_written_to_memory): Call for_each_index with
13256 dr_indices_valid_in_loop.
13258 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13260 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13261 when it is initialized.
13263 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13265 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13266 call to graphite_find_data_references_in_stmt.
13267 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13268 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13269 call to graphite_find_data_references_in_stmt.
13270 (analyze_drs_in_stmts): Same.
13271 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13272 in which the scalar analysis of indices is performed.
13273 (create_data_ref): Same. Update call to dr_analyze_indices.
13274 (find_data_references_in_stmt): Update call to create_data_ref.
13275 (graphite_find_data_references_in_stmt): Same.
13276 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13278 (create_data_ref): Same.
13279 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13280 call to create_data_ref.
13282 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13284 * graphite-sese-to-poly.c (build_poly_scop): Move
13285 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13287 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13289 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13290 VAR_DECL, PARM_DECL, and RESULT_DECL.
13292 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13294 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13295 in a reduction PBB.
13296 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13297 that have already been marked as PBB_IS_REDUCTION.
13299 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13301 * graphite-scop-detection.c (same_close_phi_node): New.
13302 (remove_duplicate_close_phi): New.
13303 (make_close_phi_nodes_unique): New.
13304 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13306 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13308 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13309 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13310 of both data references to be the same.
13312 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13314 * graphite-dependences.c (build_lexicographical_constraint): Remove
13315 the gdim parameter.
13316 (build_lexicographical_constraint): Adjust call to
13317 ppl_powerset_is_empty.
13318 (dependence_polyhedron): Same.
13319 (graphite_legal_transform_dr): Same.
13320 (graphite_carried_dependence_level_k): Same.
13321 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13323 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13325 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13327 * graphite-sese-to-poly.c
13328 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13329 (close_phi_written_to_memory): New.
13330 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13333 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13335 * doc/install.texi: Update the expected version number of PPL to 0.11.
13336 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13337 #if PPL_VERSION_MINOR < 11.
13339 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13341 * graphite-dependences.c: Include graphite-cloog-util.h.
13342 (new_poly_ddr): Inlined into dependence_polyhedron.
13343 (free_poly_ddr): Moved close by new_poly_ddr.
13344 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13345 Early return NULL when ppl_powerset_is_empty returns true.
13346 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13347 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13348 (graphite_legal_transform_dr): Call new_poly_ddr.
13349 (graphite_carried_dependence_level_k): Same.
13350 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13351 (dot_transformed_deps_stmt_1): Removed.
13352 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13353 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13354 (dot_deps_1): Call dot_deps_2.
13355 * Makefile.in (graphite-dependences.o): Add missing dependence on
13356 graphite-cloog-util.h.
13358 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13360 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13361 (build_lexicographical_constraint): Same.
13362 (dependence_polyhedron_1): Same.
13363 (graphite_legal_transform_dr): Same.
13364 (graphite_carried_dependence_level_k): Same.
13365 * graphite-ppl.c (ppl_powerset_is_empty): New.
13366 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13367 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13369 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13371 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13372 the "a followed by b" relation and document it.
13374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13376 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13377 iteration when the bag of constraints is empty.
13379 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13381 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13383 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13385 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13386 nest and two loop depths as parameters.
13387 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13388 lst_perfect_nestify.
13390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13392 * graphite-dependences.c (print_pddr): Call
13393 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13395 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13397 * graphite-ppl.c (debug_gmp_value): New.
13398 * graphite-ppl.h (debug_gmp_value): Declared.
13400 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13402 * doc/install.texi: Document availability of cloog-0.16.
13404 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13406 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13407 invalid postdominance info.
13409 2011-01-24 Jan Hubicka <jh@suse.cz>
13412 * doc/extend.texi (weak pragma): Drop claim that it must
13413 appear before definition.
13414 * varasm.c (merge_weak, declare_weak): Only sanity check
13415 that DECL is not output at a time it is declared weak.
13417 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13419 * machmode.def: Fixed comments.
13421 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13423 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13425 2011-01-24 Paul Koning <ni1d@arrl.net>
13427 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13430 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13433 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13434 (block_info): Add scanned and prev.
13435 (move_or_delete_vzeroupper_2): Return if the basic block
13436 has been scanned and the upper 128bit state is unchanged
13437 from the last scan.
13438 (move_or_delete_vzeroupper_1): Return true if the exit
13440 (move_or_delete_vzeroupper): Visit basic blocks using the
13441 work-list based algorithm based on vt_find_locations in
13444 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13446 2011-01-24 Nick Clifton <nickc@redhat.com>
13448 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13449 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13450 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13451 then define __v850e1__.
13452 * doc/invoke.texi: Document -mv850es.
13454 2011-01-24 Richard Henderson <rth@redhat.com>
13456 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13457 compound unordered comparisons.
13458 * config/rx/rx.c (rx_split_fp_compare): Remove.
13459 * config/rx/rx-protos.h: Update.
13460 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13461 (cbranchsf4): Don't call rx_split_fp_compare.
13462 (*cbranchsf4): Use rx_split_cbranch.
13463 (*cmpsf): Don't accept "i" constraint.
13464 (*conditional_branch): Only valid after reload.
13465 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13467 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13470 * config/rs6000/altivec.md (vector constant splitters): Add
13471 support for creating vector single precision constants if -mvsx is
13472 used and we would create the constant using Altivec primitives.
13474 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13475 Richard Sandiford <rdsandiford@googlemail.com>
13477 PR rtl-optimization/47166
13478 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13479 mechanism for PRE_MODIFY and POST_MODIFY.
13480 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13483 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13485 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13487 2011-01-22 Jan Hubicka <jh@suse.cz>
13490 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13492 2011-01-22 Jan Hubicka <jh@suse.cz>
13494 PR tree-optimization/43884
13496 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13497 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13499 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13501 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13502 * config/s390/s390.c (s390_register_move_cost,
13503 s390_memory_move_cost): New.
13504 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13506 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13508 PR middle-end/47401
13509 * except.c (sjlj_assign_call_site_values): Move setting the
13510 crtl->uses_eh_lsda flag to ...
13511 (sjlj_mark_call_sites): ... here.
13512 (sjlj_emit_function_enter): Support NULL dispatch label.
13513 (sjlj_build_landing_pads): In a function with no landing pads
13514 that still has must-not-throw regions, generate code to register
13515 a personality function with empty LSDA.
13517 2011-01-21 Richard Henderson <rth@redhat.com>
13519 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13521 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13523 * compare-elim.c: New file.
13524 * Makefile.in (OBJS-common): Add it.
13525 (compare-elim.o): New.
13526 * common.opt (fcompare-elim): New.
13527 * opts.c (default_options_table): Add OPT_fcompare_elim.
13528 * tree-pass.h (pass_compare_elim_after_reload): New.
13529 * passes.c (init_optimization_passes): Add it.
13530 * recog.h: Protect against re-inclusion.
13531 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13532 * doc/invoke.texi (-fcompare-elim): Document it.
13533 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13534 * doc/tm.texi: Rebuild.
13536 2011-01-22 Nick Clifton <nickc@redhat.com>
13538 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13539 rx_split_fp_compare.
13541 2011-01-22 Nick Clifton <nickc@redhat.com>
13543 * config/rx/rx.md (UNSPEC_CONST): New.
13544 (deallocate_and_return): Wrap the amount popped off the stack in
13545 an UNSPEC_CONST in order to stop it being rejected by
13546 -mmax-constant-size.
13547 (pop_and_return): Add a "(return)" rtx.
13548 (call): Drop the immediate operand.
13549 (call_internal): Likewise.
13550 (call_value): Likewise.
13551 (call_value_internal): Likewise.
13552 (sibcall_internal): Likewise.
13553 (sibcall_value_internal): Likewise.
13554 (sibcall): Likewise. Generate an explicit call using
13556 (sibcall_value): Likewise.
13557 (mov<>): FAIL if a constant operand is not legitimate.
13558 (addsi3_unpsec): New pattern.
13560 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13561 (ok_for_max_constant): New function.
13562 (gen_safe_add): New function.
13563 (rx_expand_prologue): Use gen_safe_add.
13564 (rx_expand_epilogue): Likewise.
13565 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13568 2011-01-21 Jeff Law <law@redhat.com>
13570 PR tree-optimization/47053
13571 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13572 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13573 statements are deleted.
13574 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13575 is nonempty, then purge dead edges and cleanup the CFG.
13577 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13580 Temporarily revert:
13581 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13583 * tree-dfa.c (create_var_ann): Mark variable as used.
13585 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13587 PR middle-end/45566
13588 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13589 notes from other section in hot/cold partitioning even if
13590 last_action is -3. Increment call_site_base.
13592 PR rtl-optimization/47366
13593 * fwprop.c (forward_propagate_into): Return bool. If
13594 any changes are made, -fnon-call-exceptions is used and
13595 REG_EH_REGION note is present, call purge_dead_edges
13596 and return true if it purged anything.
13597 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13598 any EH edges were purged.
13600 2011-01-21 Jeff Law <law@redhat.com>
13602 PR rtl-optimization/41619
13603 * caller-save.c (setup_save_areas): Break out code to determine
13604 which hard regs are live across calls by examining the reload chains
13605 so that it is always used.
13606 Eliminate code which checked REG_N_CALLS_CROSSED.
13608 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13610 PR tree-optimization/47355
13611 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13612 NOP has non-debug uses beyond PHIs in new_bb.
13614 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13617 * cfgexpand.c (account_used_vars_for_block): Only account vars
13618 that are annotated as used.
13619 (estimated_stack_frame_size): Don't set TREE_USED.
13620 * tree-dfa.c (create_var_ann): Mark variable as used.
13622 2011-01-21 Richard Guenther <rguenther@suse.de>
13624 PR middle-end/47395
13625 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13627 2011-01-21 Richard Guenther <rguenther@suse.de>
13629 PR tree-optimization/47365
13630 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13631 (vn_reference_lookup_pieces): Adjust.
13632 (vn_reference_lookup): Likewise.
13633 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13634 (vn_reference_lookup_3): Only look through kills if in
13635 VN_WALKREWRITE mode.
13636 (vn_reference_lookup_pieces): Adjust.
13637 (vn_reference_lookup): Likewise.
13638 (visit_reference_op_load): Likewise.
13639 (visit_reference_op_store): Likewise.
13640 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13641 (compute_avail): Likewise.
13642 (eliminate): Likewise.
13644 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13646 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13647 DECL_IGNORED_P non-reg vars if they are used.
13649 PR tree-optimization/47391
13650 * varpool.c (const_value_known_p): Return false if
13653 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13656 * config/i386/i386.c (ix86_local_alignment): Handle
13657 case for va_list_type_node is nil.
13658 (ix86_canonical_va_list_type): Likewise.
13660 2011-01-21 Alan Modra <amodra@gmail.com>
13662 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13663 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13665 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13667 * config/arm/arm.md (define_attr type): Rename f_load
13668 and f_store to f_fpa_load and f_fpa_store. Update.
13669 (write_conflict): Deal with rename fallout.
13670 (*push_fp_multi): Likewise.
13671 * config/arm/fpa.md (f_load): Use f_fpa_load.
13672 (f_store): Use f_fpa_store.
13673 (*movsf_fpa): Likewise.
13674 (*movdf_fpa): Likewise.
13675 (*movxf_fpa): Likewise.
13676 (*thumb2_movsf_fpa): Likewise.
13677 (*thumb2_movdf_fpa): Likewise.
13678 (*thumb2_movxf_fpa): Likewise.
13679 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13680 f_loadd and f_stored.
13681 (*thumb2_movdi_vfp): Likewise.
13682 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13683 (*thumb2_movsi_vfp): Likewise.
13684 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13685 Use f_loads instead of f_load.
13686 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13688 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13690 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13691 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13692 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13693 (xtensa_mode_dependent_address_p): New function.
13694 (constantpool_address_p): Make static. Change return type to bool.
13695 Change argument type to const_rtx. Use CONST_INT_P predicate.
13697 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13700 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13702 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13705 * cfgexpand.c (expand_debug_expr): Instead of generating
13706 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13709 2011-01-20 Richard Guenther <rguenther@suse.de>
13711 PR middle-end/47370
13712 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13713 the pointer operand of MEM_REFs.
13715 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13717 PR tree-optimization/46130
13718 * ipa-split.c (consider_split): If return_bb contains non-virtual
13719 PHIs other than for retval or if split_function would not adjust it,
13722 2011-01-20 Richard Guenther <rguenther@suse.de>
13724 PR tree-optimization/47167
13725 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13726 Revert previous change, only avoid enumeral type changes.
13728 2011-01-19 Mike Stump <mikestump@comcast.net>
13730 * doc/tm.texi.in (BRANCH_COST): Englishify.
13731 * doc/tm.texi (BRANCH_COST): Likewise.
13733 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13736 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13737 (gen_scheduled_generic_parms_dies): New functions.
13738 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13739 generation for the end of CU compilation.
13740 (dwarf2out_finish): Generate template parameters DIEs here.
13742 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13745 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13746 debug bind stmt on merge edges.
13748 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13752 * function.c (instantiate_expr): Instantiate incoming rtl of
13753 implicit arguments, and recurse on VALUE_EXPRs.
13754 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13755 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13757 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13759 * c-parser.c (c_parser_for_statement): Initialize
13760 collection_expression.
13762 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13764 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13766 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13768 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13769 (LINK_SHLIB_SPEC): Don't use %(link_path).
13770 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13772 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13774 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13775 (NO_SHARED_LIB_SUPPORT): Remove.
13776 (LINK_SHLIB_SPEC): Remove one conditional definition.
13778 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13780 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13782 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13783 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13784 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13785 %{call_shared} and conditionals on these options not being passed.
13786 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13789 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13791 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13794 * ipa-split.c: Spelling fixes.
13796 2011-01-19 Richard Henderson <rth@redhat.com>
13798 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13799 (*mulsi3): Likewise.
13801 * longlong.h [__mn10300__] (count_leading_zeros): New.
13802 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13803 [__mn10300__] (add_ssaaaa, subddmmss): New.
13804 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13805 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13807 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13809 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13811 2011-01-19 Richard Henderson <rth@redhat.com>
13813 * config/mn10300/mn10300.md (addsi3_flags): New.
13814 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13815 (subsi3_flags, subc_internal, subdi3): New.
13816 (subdi3_internal, *subdi3_degenerate): New.
13817 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13819 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13820 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13821 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13822 * config/mn10300/mn10300-protos.h: Update.
13823 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13824 (return_ret): Likewise. Rename from return_internal_regs.
13825 (return_internal): Remove.
13827 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13828 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13829 (mn10300_legitimate_constant_p): Likewise.
13830 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13831 (mn10300_frame_size): New.
13832 (mn10300_expand_prologue): Use it.
13833 (mn10300_expand_epilogue): Likewise.
13834 (mn10300_initial_offset): Likewise.
13835 * config/mn10300/mn10300-protos.h: Update.
13836 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13837 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13838 (prologue, epilogue, return_internal): Tidy output code.
13839 (mn10300_store_multiple_operation, return): Likewise.
13840 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13841 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13842 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13843 (load_pic, am33_load_pic): New.
13844 (mn10300_load_pic0, mn10300_load_pic1): New.
13846 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13847 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13848 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13849 (cc_flags_for_mode, cc_flags_for_code): New.
13850 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13851 overflow flag is not valid. Validate that the flags we need
13852 for the comparison are valid.
13853 (mn10300_output_cmp): Remove.
13854 (mn10300_output_add): New.
13855 (mn10300_select_cc_mode): Use cc_flags_for_code.
13856 (mn10300_split_cbranch): New.
13857 (mn10300_match_ccmode): New.
13858 (mn10300_split_and_operand_count): New.
13859 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13861 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13862 (addsi3): ... here. Use mn10300_output_add.
13863 (*addsi3_flags): New.
13864 (*am33_subsi3, *mn10300_subsi3): Merge...
13865 (subsi3): ... here. Use attribute isa.
13866 (*subsi3_flags): New.
13867 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13869 (*am33_andsi3, *mn10300_andsi3): Merge...
13870 (andsi3): ... here.
13871 (*andsi3_flags): New.
13872 (andsi3 splitters): New.
13873 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13874 (iorsi3): ... here.
13875 (*iorsi3_flags): New.
13876 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13877 (xorsi3): ... here.
13878 (*xorsi3_flags): New.
13879 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13880 (one_cmplsi2): ... here.
13881 (*one_cmplsi2_flags): New.
13882 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13883 instead of "dax" in constraints. Use mn10300_split_cbranch.
13884 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13885 use matching constraints to eliminate a self-comparison.
13886 (*integer_conditional_branch): Rename from integer_conditional_branch.
13887 Use int_mode_flags to match CC_REG.
13888 (*cbranchsi4_btst, *btstsi): New.
13889 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13890 mn10300_split_cbranch.
13891 (*am33_cmpsf): Rename from am33_cmpsf.
13892 (*float_conditional_branch): Rename from float_conditional_branch.
13893 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13894 (zero_extendqisi2): ... here.
13895 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13896 (zero_extendhisi2): ... here.
13897 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13898 (extendqisi2): ... here.
13899 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13900 (extendhisi2): ... here.
13901 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13902 (ashlsi3): ... here.
13903 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13904 (lshrsi3): ... here.
13905 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13906 (ashrsi3): ... here.
13907 (consecutive add peephole): Remove.
13908 * config/mn10300/predicates.md (label_ref_operand): New.
13909 (int_mode_flags): New.
13910 (CCZN_comparison_operator): New.
13912 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13913 (throughput_42_latency_43): New reservation.
13914 (mulsidi3, umulsidi3): New expanders.
13915 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13916 the MDR register to allocation; separately allocate the low and
13917 high parts of the DImode result.
13918 (umulsidi3_internal): Similarly.
13919 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13920 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13921 (udivsi3, umodsi3): Remove.
13922 (udivmodsi4, divmodsi4): New expanders.
13923 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13924 (*divmodsi4): Simiarly.
13925 (ext_internal): New.
13927 * config/mn10300/constraints.md ("z"): New constraint.
13928 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13929 (FIXED_REGISTERS): Don't fix MDR.
13930 (CALL_USED_REGSITERS): Reformat nicely.
13931 (REG_ALLOC_ORDER): Add MDR.
13932 (enum regclass): Add MDR_REGS.
13933 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13934 (IRA_COVER_CLASSES): Add MDR_REGS.
13935 (REGNO_REG_CLASS): Handle MDR_REG.
13936 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13937 (mn10300_register_move_cost): Likewise.
13938 * config/mn10300/mn10300.md (MDR_REG): New.
13939 (*movsi_internal): Handle moves to/from MDR_REGS.
13941 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13943 (mn10300_secondary_reload): Tidy combination reload classes.
13944 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13945 addresses for AM33. Allow symbolic offsets for reg+imm.
13946 (mn10300_regno_in_class_p): New.
13947 (mn10300_legitimize_reload_address): New.
13948 * config/mn10300/mn10300.h (enum reg_class): Remove
13949 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13950 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13951 SP_OR_GENERAL_REGS.
13952 (REG_CLASS_NAMES): Update to match.
13953 (REG_CLASS_CONTENTS): Likewise.
13954 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13955 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13956 (REGNO_IN_RANGE_P): Remove.
13957 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13958 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13959 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13960 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13961 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13962 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13963 (REGNO_GENERAL_P): New.
13964 (HAVE_POST_MODIFY_DISP): New.
13965 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13966 (LEGITIMIZE_RELOAD_ADDRESS): New.
13967 * config/mn10300/mn10300-protos.h: Update.
13969 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13970 DATA_REGS for AM33 stack-pointer destination.
13971 (mn10300_preferred_output_reload_class): Likewise.
13972 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13973 into a form appropriate for ...
13974 (TARGET_SECONDARY_RELOAD): New.
13975 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13976 * config/mn10300/mn10300-protos.h: Update.
13977 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13978 reload_insi; use the "A" constraint for the scratch; handle AM33
13979 moves of sp to non-address registers.
13981 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13982 (*movqi_internal): ... here.
13983 (*am33_movhi, *mn10300_movhi): Merge into...
13984 (*movhi_internal): ... here.
13985 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13986 as the source/destination of moves from/to SP.
13987 (movsf): Only allow for AM33-2.
13988 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13989 any integer constant constraint. Only allow for AM33-2. Tidy
13990 all of the alternative outputs.
13991 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13992 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13994 (udivsi3, umodsi3): New patterns for MN103 only.
13996 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13998 * doc/tm.texi.in: Spell out that a lack of register class unions
14000 * doc/tm.texi: Regenerate.
14002 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14004 PR rtl-optimization/47337
14005 * dce.c (check_argument_store): New function.
14006 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14008 PR tree-optimization/47290
14009 * tree-eh.c (infinite_empty_loop_p): New function.
14010 (cleanup_empty_eh): Use it.
14012 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14015 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14016 (a64_expand_widen_sum): Ditto.
14017 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14018 (vec_extract_evenodd_help): Ditto.
14019 (vec_extract_evenv4hi): Ditto.
14020 (vec_extract_oddv4hi): Ditto.
14021 (vec_extract_evenv2si): Ditto.
14022 (vec_extract_oddv2si): Ditto.
14023 (vec_extract_evenv2sf): Ditto.
14024 (vec_extract_oddv2sf): Ditto.
14025 (vec_pack_trunc_v4hi: Ditto.
14026 (vec_pack_trunc_v2si): Ditto.
14027 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14028 (vec_interleave_highv8qi): Ditto.
14030 (vec_extract_oddv8qi): Ditto.
14031 (vec_interleave_lowv4hi): Ditto.
14032 (vec_interleave_highv4hi): Ditto.
14033 (vec_interleave_lowv2si): Ditto.
14034 (vec_interleave_highv2si): Ditto.
14036 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14038 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14039 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14040 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14041 (pa_c_mode_for_suffix): New.
14042 (TARGET_EXPAND_BUILTIN): Define.
14043 (TARGET_C_MODE_FOR_SUFFIX): Define.
14044 (pa_builtins): Define.
14045 (pa_init_builtins): Register __float128 type and init new support
14047 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14048 * config/pa/quadlib.c (_U_Qfcopysign): New.
14050 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14052 PR middle-end/46894
14053 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14054 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14057 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14059 PR tree-optimization/47179
14060 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14061 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14063 2011-01-18 Richard Guenther <rguenther@suse.de>
14065 PR rtl-optimization/47216
14066 * emit-rtl.c: Include tree-flow.h.
14067 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14068 of replicating it with different semantics.
14069 * Makefile.in (emit-rtl.o): Adjust.
14071 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14073 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14074 (cortex_a9_dp): Handle neon types correctly.
14076 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14078 PR rtl-optimization/47299
14079 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14080 subtarget. Use normal multiplication if both operands are constants.
14081 * expmed.c (expand_widening_mult): Don't try to optimize constant
14082 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14085 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14087 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14088 spacing after 'e.g.', typos, comma, hyphenation.
14090 2011-01-17 Richard Henderson <rth@redhat.com>
14092 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14093 (rx_restricted_mem_operand): New.
14094 (rx_shift_operand): Use register_operand.
14095 (rx_source_operand, rx_compare_operand): Likewise.
14096 * config/rx/rx.md (addsi3_flags): New expander.
14097 (adddi3): Rewrite as expander.
14098 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14099 (subsi3_flags): New expander.
14100 (subdi3): Rewrite as expander.
14101 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14103 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14104 (rx_init_builtins): Remove sat builtin.
14105 (rx_expand_builtin): Likewise.
14106 * config/rx/rx.md (ssaddsi3): New.
14107 (*sat): Rename from sat. Represent the CC_REG input.
14109 * config/rx/predicates.md (rshift_operator): New.
14110 * config/rx/rx.c (rx_expand_insv): Remove.
14111 * config/rx/rx-protos.h: Update.
14112 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14113 operand to the canonical position.
14114 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14115 (*bitclr, *bitclr_in_memory): Similarly.
14116 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14117 (insv): Retain the zero_extract in the expansion.
14119 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14120 (bswaphi2, bitinvert, revw): Likewise.
14122 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14123 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14124 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14125 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14126 (bitset, bitset_in_memory): Likewise.
14127 (bitinvert, bitinvert_in_memory): Likewise.
14128 (bitclr, bitclr_in_memory): Likewise.
14129 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14130 (rx_strend, rx_cmpstrn): Likewise.
14131 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14132 (bitop peep2 patterns): Remove.
14134 * config/rx/rx.c (rx_match_ccmode): New.
14135 * config/rx/rx-protos.h: Update.
14136 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14137 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14138 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14139 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14140 (fix_truncsfsi2, floatsisf2): Likewise.
14141 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14142 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14143 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14144 (*subsi3_flags, *xorsi3_flags): New.
14146 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14148 * config/rx/rx.c (rx_print_operand): Remove workaround for
14149 unsplit comparison operations.
14151 * config/rx/rx.md (movsicc): Split after reload.
14152 (*movsicc): Merge *movsieq and *movsine via match_operator.
14153 (*stcc): New pattern.
14155 * config/rx/rx.c (rx_float_compare_mode): Remove.
14156 * config/rx/rx.h (rx_float_compare_mode): Remove.
14157 * config/rx/rx.md (cstoresi4): Split after reload.
14158 (*sccc): New pattern.
14160 * config/rx/predicates.md (label_ref_operand): New.
14161 (rx_z_comparison_operator): New.
14162 (rx_zs_comparison_operator): New.
14163 (rx_fp_comparison_operator): New.
14164 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14165 Validate that the flags are set properly for the comparison.
14166 (rx_gen_cond_branch_template): Remove.
14167 (rx_cc_modes_compatible): Remove.
14168 (mode_from_flags): New.
14169 (flags_from_code): Rename from flags_needed_for_conditional.
14170 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14171 (rx_select_cc_mode): Likewise.
14172 (rx_split_fp_compare): New.
14173 (rx_split_cbranch): New.
14174 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14175 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14176 (*cbranchsf4): Similarly.
14177 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14178 match_operator and rx_split_cbranch.
14179 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14180 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14181 (*cmpsi): Rename from cmpsi.
14182 (*tstsi): Rename from tstsi.
14183 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14184 (*conditional_branch): Rename from conditional_branch.
14185 (*reveresed_conditional_branch): Remove.
14186 (b<code>): Remove expander.
14187 * config/rx/rx-protos.h: Update.
14189 * config/rx/rx.c (rx_compare_redundant): Remove.
14190 * config/rx/rx.md (cmpsi): Don't use it.
14191 * config/rx/rx-protos.h: Update.
14193 * config/rx/rx-modes.def (CC_F): New mode.
14194 * config/rx/rx.c (rx_select_cc_mode): New.
14195 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14196 * config/rx/rx-protos.h: Update.
14198 2011-01-17 Richard Henderson <rth@redhat.com>
14200 * except.c (dump_eh_tree): Fix stray ; after for statement.
14202 2011-01-17 Richard Guenther <rguenther@suse.de>
14204 PR tree-optimization/47313
14205 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14206 handling before copying the body. Properly deal with
14207 by-reference result in SSA form.
14209 2011-01-17 Ian Lance Taylor <iant@google.com>
14212 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14213 (struct_value_alias_set): Don't define.
14214 (sparc_option_override): Don't set sparc_sr_alias_set and
14215 struct_value_alias_set.
14216 (save_or_restore_regs): Use gen_frame_mem rather than calling
14218 (sparc_struct_value_rtx): Likewise.
14220 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14223 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14224 (_mm_maskstore_pd): Likewise.
14225 (_mm_maskload_ps): Likewise.
14226 (_mm_maskstore_ps): Likewise.
14227 (_mm256_maskload_pd): Change mask to __m256i.
14228 (_mm256_maskstore_pd): Likewise.
14229 (_mm256_maskload_ps): Likewise.
14230 (_mm256_maskstore_ps): Likewise.
14232 * config/i386/i386-builtin-types.def: Updated.
14233 (ix86_expand_special_args_builtin): Likewise.
14235 * config/i386/i386.c (bdesc_special_args): Update
14236 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14237 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14238 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14239 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14241 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14242 Use <avxpermvecmode> on mask register.
14243 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14245 2011-01-17 Olivier Hainque <hainque@adacore.com>
14246 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14247 Eric Botcazou <ebotcazou@adacore.com>
14250 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14251 if <= USHRT_MAX in 32-bit mode.
14253 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14255 * doc/install.texi (Configuration, Specific): Wrap long
14256 lines in examples. Allow line wrapping in long options
14257 and URLs where beneficial for PDF output.
14259 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14261 * config/mips/mips.c (mips_classify_symbol): Don't return
14262 SYMBOL_PC_RELATIVE for nonlocal labels.
14264 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14266 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14268 2011-01-15 Jan Hubicka <jh@suse.cz>
14270 PR tree-optimization/47276
14271 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14272 declarations as needed.
14274 2011-01-15 Martin Jambor <mjambor@suse.cz>
14276 * common.opt (fdevirtualize): New flag.
14277 * doc/invoke.texi (Option Summary): Document it.
14278 * opts.c (default_options_table): Add devirtualize flag.
14279 * ipa-prop.c (detect_type_change): Return immediately if
14280 devirtualize flag is not set.
14281 (detect_type_change_ssa): Likewise.
14282 (compute_known_type_jump_func): Likewise.
14283 (ipa_analyze_virtual_call_uses): Likewise.
14285 2011-01-14 Martin Jambor <mjambor@suse.cz>
14287 PR tree-optimization/45934
14288 PR tree-optimization/46302
14289 * ipa-prop.c (type_change_info): New type.
14290 (stmt_may_be_vtbl_ptr_store): New function.
14291 (check_stmt_for_type_change): Likewise.
14292 (detect_type_change): Likewise.
14293 (detect_type_change_ssa): Likewise.
14294 (compute_complex_assign_jump_func): Check for dynamic type change.
14295 (compute_complex_ancestor_jump_func): Likewise.
14296 (compute_known_type_jump_func): Likewise.
14297 (compute_scalar_jump_functions): Likewise.
14298 (ipa_analyze_virtual_call_uses): Likewise.
14299 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14301 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14303 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14304 * config/i386/i386.opt (msse5): New Alias.
14306 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14308 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14309 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14310 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14311 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14313 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14315 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14317 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14318 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14319 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14320 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14322 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14324 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14326 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14328 2011-01-14 Mike Stump <mikestump@comcast.net>
14330 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14331 * config/fr30/fr30.md: Likweise
14332 (movsi_push): Likewise.
14333 (movsi_pop): Likewise.
14334 (enter_func): Likewise.
14335 * config/moxie/moxie.md (movsi_push): Likewise.
14336 (movsi_pop): Likewise.
14338 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14340 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14341 %{no_archive} %{exact_version}.
14342 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14343 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14344 %{no_archive} %{exact_version}.
14345 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14346 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14347 * config/mips/vxworks.h: Likewise.
14349 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14351 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14353 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14355 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14356 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14358 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14360 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14363 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14365 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14367 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14368 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14370 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14371 Don't handle -shlib.
14373 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14375 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14376 (CC1_SPEC): Don't handle -profile.
14378 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14380 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14381 * config/mips/mips.h (CC1_SPEC): Likewise.
14383 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14385 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14386 * config/mips/mips.h (CC1_SPEC): Likewise.
14388 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14390 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14391 * config/m32r/linux.h (LINK_SPEC): Likewise.
14392 * config/mips/linux.h (LINK_SPEC): Likewise.
14393 * config/mips/linux64.h (LINK_SPEC): Likewise.
14394 * config/sparc/linux.h (LINK_SPEC): Likewise.
14395 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14396 LINK_SPEC): Likewise.
14397 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14399 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14401 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14403 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14405 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14407 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14408 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14410 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14412 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14414 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14416 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14417 supports -Bstatic/-Bdynamic.
14418 * configure: Regenerate.
14420 2011-01-14 Jan Hubicka <jh@suse.cz>
14421 Jack Howarth <howarth@bromo.med.uc.edu>
14424 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14425 when checking debug_info_level. Test write_symbols instead of
14426 debug_hooks->var_location when setting flag_var_tracking_uninit.
14428 2011-01-14 Richard Guenther <rguenther@suse.de>
14430 PR tree-optimization/47179
14431 * target.def (ref_may_alias_errno): New target hook.
14432 * targhooks.h (default_ref_may_alias_errno): Declare.
14433 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14434 (default_ref_may_alias_errno): New function.
14435 * target.h (struct ao_ref_s): Declare.
14436 * tree-ssa-alias.c: Include target.h.
14437 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14438 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14439 (targhooks.o): Likewise.
14440 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14441 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14443 2011-01-14 Richard Guenther <rguenther@suse.de>
14445 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14447 2011-01-14 Richard Guenther <rguenther@suse.de>
14449 PR tree-optimization/47280
14450 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14451 return CFG changes.
14452 (tree_ssa_forward_propagate_single_use_vars): Deal with
14453 CFG changes from associate_plusminus.
14455 2011-01-14 Richard Guenther <rguenther@suse.de>
14457 PR middle-end/47281
14459 2011-01-11 Richard Guenther <rguenther@suse.de>
14461 PR tree-optimization/46076
14462 * tree-ssa.c (useless_type_conversion_p): Conversions from
14463 unprototyped to empty argument list function types are useless.
14465 2011-01-14 Richard Guenther <rguenther@suse.de>
14467 PR tree-optimization/47286
14468 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14470 2011-01-14 Martin Jambor <mjambor@suse.cz>
14472 PR middle-end/46823
14473 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14475 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14477 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14478 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14479 * config/xtensa/xtensa.c (xtensa_libcall_value,
14480 xtensa_function_value_regno_p): New functions.
14481 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14483 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14486 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14488 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14489 New function prototype.
14490 * config/i386/winnt.c (i386_pe_assemble_visibility):
14491 Warn only if attribute was specified by user.
14493 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14496 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14498 (floatunsdidf2_fcfidu): Ditto.
14500 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14502 * config/s390/s390.c (print_operand_address): Replace 'error' with
14503 'output_operand_lossage'.
14504 (print_operand): Likewise.
14506 2011-01-13 Jeff Law <law@redhat.com>
14508 PR rtl-optimization/39077
14509 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14510 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14511 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14512 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14513 * gcse.c (prune_insertions_deletions): New function.
14514 (compute_pre_data): Use it.
14516 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14519 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14521 (prune_unused_types_mark): Use it.
14523 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14525 PR rtl-optimization/45352
14526 * sel-sched.c: Update copyright years.
14527 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14528 in the advancing loop when we have issued issue_rate insns.
14530 2011-01-12 Richard Henderson <rth@redhat.com>
14532 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14533 (TARGET_MD_ASM_CLOBBERS): New.
14535 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14536 (TARGET_DELEGITIMIZE_ADDRESS): New.
14538 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14539 (clzsi2, *bsch): New patterns.
14541 * config/mn10300/mn10300.md (INT): New mode iterator.
14542 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14544 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14545 flag_split_wide_types.
14547 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14548 (mn10300_trampoline_init): Rewrite without a template, an immediate
14549 load and a direct branch.
14550 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14552 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14554 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14555 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14556 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14557 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14559 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14562 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14565 2011-01-12 Jan Hubicka <jh@suse.cz>
14568 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14569 (PLUGIN_COND_CLOSE): New macro.
14570 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14572 2011-01-12 Richard Guenther <rguenther@suse.de>
14575 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14576 register variables in a MEM_REF.
14578 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14580 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14581 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14582 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14583 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14584 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14585 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14586 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14587 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14588 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14589 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14590 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14591 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14592 * config/gnu-user.h: New. Copied from linux.h.
14593 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14594 GNU_USER_TARGET_STARTFILE_SPEC.
14595 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14596 GNU_USER_TARGET_ENDFILE_SPEC.
14597 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14598 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14599 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14600 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14601 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14602 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14603 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14604 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14605 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14606 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14607 * config/arm/linux-eabi.h (CC1_SPEC): Use
14608 GNU_USER_TARGET_CC1_SPEC.
14609 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14610 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14611 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14612 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14613 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14614 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14615 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14616 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14618 2011-01-12 Richard Guenther <rguenther@suse.de>
14621 * doc/invoke.texi (ffast-math): Document it is turned on
14624 2011-01-12 Jan Hubicka <jh@suse.cz>
14626 PR tree-optimization/47233
14627 * opts.c (common_handle_option): Disable ipa-reference with profile
14630 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14632 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14635 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14637 * c-parser.c (c_lex_one_token): Updated and reindented some
14638 comments. No changes in code.
14640 2011-01-11 Ian Lance Taylor <iant@google.com>
14642 * godump.c (go_output_var): Don't output the variable if there is
14643 already a type with the same name.
14645 2011-01-11 Ian Lance Taylor <iant@google.com>
14647 * godump.c (go_format_type): Don't generate float80.
14649 2011-01-11 Richard Henderson <rth@redhat.com>
14651 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14652 declaration. Rewrite for both speed and size.
14653 (mn10300_address_cost_1): Remove.
14654 (mn10300_register_move_cost): New.
14655 (mn10300_memory_move_cost): New.
14656 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14657 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14658 extensions, shifts, BSWAP, CLZ.
14659 (mn10300_wide_const_load_uses_clr): Remove.
14660 (TARGET_REGISTER_MOVE_COST): New.
14661 (TARGET_MEMORY_MOVE_COST): New.
14662 * config/mn10300/mn10300-protos.h: Update.
14663 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14665 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14666 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14667 * config/mn10300/mn10300-protos.h: Update.
14668 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14669 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14670 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14671 (*test_int_bitfield, *test_byte_bitfield): Remove.
14672 (*bit_test, *subreg_bit_test): Remove.
14673 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14675 * config/mn10300/constraints.md ("c"): Rename from "A".
14676 ("A", "D"): New constraint letters.
14677 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14678 (fmssf4, fnmasf4, fnmssf4): Likewise.
14680 * config/mn10300/mn10300.md (isa): New attribute.
14681 (enabled): New attribute.
14683 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14684 (abssf2, negsf2): Define only for hardware fp.
14685 (sqrtsf2): Reformat.
14686 (addsf3, subsf3, mulsf3): Merge expander and insn.
14688 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14689 (DEBUGGER_AUTO_OFFSET): Remove.
14690 (DEBUGGER_ARG_OFFSET): Remove.
14692 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14693 Emit register stores with the same offsets as the hardware.
14694 (mn10300_store_multiple_operation): Don't check that the register
14695 save offsets are monotonic.
14696 * config/mn10300/mn10300-protos.h: Update.
14698 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14700 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14701 in terms of the value on the stack, not the MDR register.
14703 2011-01-11 Jan Hubicka <jh@suse.cz>
14707 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14708 (symbol_alias_set_destroy, symbol_alias_set_contains,
14709 propagate_aliases_backward): Declare.
14710 * lto-streamer-out.c (struct sets): New sturcture.
14711 (trivally_defined_alias): New function.
14712 (output_alias_pair_p): Rewrite.
14713 (output_unreferenced_globals): Fix output of alias pairs.
14714 (produce_symtab): Likewise.
14715 * ipa.c (function_and_variable_visibility): Set weak alias destination
14717 * varasm.c (symbol_alias_set_t): Remove.
14718 (symbol_alias_set_destroy): Export.
14719 (propagate_aliases_forward, propagate_aliases_backward): New functions
14721 (compute_visible_aliases): ... this one; remove.
14722 (trivially_visible_alias): New
14723 (trivially_defined_alias): New.
14724 (remove_unreachable_alias_pairs): Rewrite.
14725 (finish_aliases_1): Reorganize code checking if alias is defined.
14726 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14729 2011-01-11 Richard Guenther <rguenther@suse.de>
14731 PR tree-optimization/46076
14732 * tree-ssa.c (useless_type_conversion_p): Conversions from
14733 unprototyped to empty argument list function types are useless.
14735 2011-01-11 Richard Guenther <rguenther@suse.de>
14737 PR middle-end/45235
14738 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14739 volatile MEMs as MEM_READONLY_P.
14741 2011-01-11 Richard Guenther <rguenther@suse.de>
14743 PR tree-optimization/47239
14744 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14746 2011-01-11 Jeff Law <law@redhat.com>
14748 PR tree-optimization/47086
14749 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14750 IVs from statements that might throw.
14752 2011-01-10 Jan Hubicka <jh@suse.cz>
14755 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14757 2011-01-10 Jan Hubicka <jh@suse.cz>
14760 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14761 when correcting profile.
14763 2011-01-10 Jan Hubicka <jh@suse.cz>
14766 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14767 DECL_FINI_PRIORITY.
14768 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14769 Restore DECL_FINI_PRIORITY.
14771 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14773 * doc/gimple.texi: Fix quoting of multi-word return values in
14774 @deftypefn statements. Ensure presence of return value. Wrap
14775 overlong @deftypefn lines.
14776 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14777 descriptions of removed functions.
14778 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14779 of multi-word return value in @deftypefn statement.
14781 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14783 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14784 (Conditional Expressions, Logical Operators)
14785 (Statement and operand traversals): Do not indent smallexample
14786 code. Fix duplicate function argument in example.
14788 2011-01-10 Jeff Law <law@redhat.com>
14790 PR tree-optimization/47141
14791 * ipa-split.c (split_function): Handle case where we are
14792 returning a value and the return block has a virtual operand phi.
14794 2011-01-10 Jan Hubicka <jh@suse.cz>
14796 PR tree-optimization/47234
14797 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14798 (pass_feedback_split_functions): Declare.
14799 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14801 * ipa-split.c (gate_split_functions): Update comments; disable
14802 split-functions for profile_arc_flag and branch_probabilities.
14803 (gate_feedback_split_functions): New function.
14804 (execute_feedback_split_functions): New function.
14805 (pass_feedback_split_functions): New global var.
14807 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14810 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14811 calling gimple_call_set_cannot_inline.
14813 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14815 * config/darwin-sections.def: Remove unused section.
14817 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14820 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14822 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14825 * c-parser.c (c_parser_declaration_or_fndef): Improved
14828 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14830 * config/i386/winnt.c (i386_pe_start_function): Make sure
14831 to switch back to function's section.
14833 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14837 * plugin.c: Move include of dlfcn.h from here...
14838 * system.h: ... to here.
14840 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14842 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14844 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14845 two extra empty pages in PDF output.
14847 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14850 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14851 for error recovery purposes behave as if it was not specified so
14852 that the default type is usd.
14854 2011-01-07 Jan Hubicka <jh@suse.cz>
14856 PR tree-optmization/46469
14857 * ipa.c (function_and_variable_visibility): Clear needed flags on
14858 nodes with external decls; handle weakrefs merging correctly.
14860 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14862 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14865 2011-01-07 Jan Hubicka <jh@suse.cz>
14867 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14868 and no longer claim that gold is required for linker plugin.
14869 * configure: Regenerate.
14870 * gcc.c (PLUGIN_COND): New macro.
14871 (LINK_COMMAND_SPEC): Use it.
14872 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14873 * config.in (HAVE_LTO_PLUGIN): New.
14874 * configure.ac (--with-lto-plugin): New parameter; autodetect
14877 2011-01-07 Jan Hubicka <jh@suse.cz>
14879 PR tree-optimization/46367
14880 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14881 when we can update original.
14882 (cgraph_mark_inline_edge): Sanity check.
14883 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14885 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14887 * config/spu/spu.h (ASM_COMMENT_START): Define.
14889 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14892 * gcc.c (%>S): New.
14893 (SWITCH_KEEP_FOR_GCC): Likewise.
14894 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14895 (do_spec_1): Handle "%>".
14897 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14899 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14902 * config/i386/i386.c (ix86_delegitimize_address): If
14903 simplify_gen_subreg fails, return orig_x.
14906 * value-prof.c (gimple_stringop_fixed_value): Handle
14907 lhs of the call properly.
14909 2011-01-07 Jan Hubicka <jh@suse.cz>
14912 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14914 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14916 * target.def (function_switched_text_sections): New hook.
14917 * doc/tm.texi: Regenerated.
14918 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14919 * final.c (default_function_switched_text_sections): New.
14920 (final_scan_insn): Call function_switched_text_sections when a
14921 mid-function section change occurs.
14922 * output.h (default_function_switched_text_sections): Declare.
14923 * config/darwin-protos.h (darwin_function_switched_text_sections):
14925 * config/darwin.c (darwin_function_switched_text_sections): New.
14926 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14928 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14930 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14931 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14932 the secondary code fragment when outputting for DWARF == 2.
14934 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14936 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14937 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14939 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14940 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14942 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14945 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14946 when it is not empty.
14948 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14951 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14952 (case ${target}): Add btver1.
14953 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14954 -march=native recognize btver1 processors.
14955 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14956 btver1 def_and_undef
14957 * config/i386/i386.c (struct processor_costs btver1_cost): New
14959 (m_BTVER1): New definition.
14960 (m_AMD_MULTIPLE): Includes m_BTVER1.
14961 (initial_ix86_tune_features): Add btver1 tune.
14962 (processor_target_table): Add btver1 entry.
14963 (static const char *const cpu_names): Add btver1 entry.
14964 (software_prefetching_beneficial_p): Add btver1.
14965 (ix86_option_override_internal): Add btver1 instruction sets.
14966 (ix86_issue_rate): Add btver1.
14967 (ix86_adjust_cost): Add btver1.
14968 * config/i386/i386.h (TARGET_BTVER1): New definition.
14969 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14970 (enum processor_type): Add PROCESSOR_BTVER1.
14971 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14973 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14976 * config/i386/i386.c (legitimize_tls_address)
14977 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14978 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14979 (tls_initial_exec_64_sun): New pattern.
14981 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14983 * doc/invoke.texi (Overall Options): Improve wording and markup
14984 of the description of -wrapper.
14986 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14988 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14989 rdynamic, threads): New Driver options.
14991 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14994 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14995 if coming from .tdata.
14996 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14998 2011-01-06 Jan Hubicka <jh@suse.cz>
15001 * collect2.c (main): Do not enable LTOmode when plugin is active.
15003 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15006 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15007 --version output if supported.
15008 * configure: Regenerate.
15010 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15012 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15015 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15018 * c-convert.c (convert): When converting a complex expression
15019 other than COMPLEX_EXPR to a different complex type, ensure
15020 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15021 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15022 when converting COMPLEX_TYPE.
15024 2011-01-06 Ira Rosen <irar@il.ibm.com>
15026 PR tree-optimization/47139
15027 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15028 only the last reduction value is used outside the loop. Update
15031 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15033 * config/rtems.opt: New.
15034 * config.gcc (*-*-rtems*): Use rtems.opt.
15036 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15038 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15039 processors do not support 3DNow instructions.
15041 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15043 * config/spu/spu.c (spu_option_override): Set parameter
15044 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15046 2011-01-05 Jan Hubicka <jh@suse.cz>
15048 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15049 at the command line.
15051 2011-01-05 Martin Jambor <mjambor@suse.cz>
15054 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15055 deltas on streamed outgoing edges.
15056 (output_node_opt_summary): Output info for outgoing edges only when
15057 the node is in new parameter set.
15058 (output_cgraph_opt_summary): New parameter set, passed to the two
15059 aforementioned functions. Update its forward declaration and its
15062 2011-01-05 Tom Tromey <tromey@redhat.com>
15064 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15065 operator to c_finish_omp_atomic.
15066 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15067 (build_unary_op): Update.
15068 (build_modify_expr): Update.
15069 (build_asm_expr): Update.
15071 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15073 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15074 newly inserted insns.
15075 (pad_bb): Likewise.
15076 (spu_emit_branch_hint): Likewise.
15077 (insert_hbrp_for_ilb_runout): Likewise.
15078 (spu_machine_dependent_reorg): Call df_finish_pass after
15079 schedule_insns returns.
15081 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15083 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15085 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15087 PR tree-optimization/47005
15088 * tree-sra.c (struct access): Add 'non_addressable' bit.
15089 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15090 (decide_one_param_reduction): Return 0 if the parameter is passed by
15091 reference and one of the accesses in the group is non_addressable.
15093 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15095 PR tree-optimization/47056
15096 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15097 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15098 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15100 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15102 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15103 initializer. Skip view conversions from aggregate types.
15105 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15108 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15110 2011-01-04 Philipp Thomas <pth@suse.de>
15112 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15115 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15117 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15118 on empty epilogue sequences.
15120 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15122 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15123 non-static): New Driver options.
15125 2011-01-04 Jie Zhang <jie@codesourcery.com>
15128 * gcc.c (default_compilers[]): Set combinable field to 0
15129 for all assembly languages.
15131 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15133 * config/mips/loongson3a.md: New file.
15134 * config/mips/mips.md: Include loongson3a.md.
15135 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15138 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15140 PR middle-end/47017
15141 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15142 instead of convert_memory_address_addr_space on the base expression.
15144 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15146 * config/spu/spu.c (spu_option_override): Update error text
15147 for bad -march= / -mtune= values.
15149 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15151 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15152 if branch-hint optimization will be performed.
15154 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15156 PR tree-optimization/47148
15157 * ipa-split.c (split_function): Convert arguments to
15158 DECL_ARG_TYPE if possible.
15160 PR tree-optimization/47155
15161 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15162 when computing uns.
15164 PR rtl-optimization/47157
15165 * combine.c (try_combine): If undobuf.other_insn becomes
15166 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15167 and set *new_direct_jump_p too.
15169 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15171 PR tree-optimization/47021
15172 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15174 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15176 * gcc.c (process_command): Update copyright notice dates.
15177 * gcov.c (print_version): Likewise.
15178 * gcov-dump.c (print_version): Likewise.
15179 * mips-tfile.c (main): Likewise.
15180 * mips-tdump.c (main): Likewise.
15182 2011-01-03 Martin Jambor <mjambor@suse.cz>
15184 PR tree-optimization/46801
15185 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15186 aggregate fields start at byte boundary instead of the bit-field flag.
15188 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15191 * gcc.c (main): Revert revision 168407.
15193 2011-01-03 Martin Jambor <mjambor@suse.cz>
15195 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15197 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15199 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15200 vector optab to expand vector/scalar shift, update gimple to vector.
15202 2011-01-03 Martin Jambor <mjambor@suse.cz>
15204 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15207 2011-01-03 Martin Jambor <mjambor@suse.cz>
15209 PR tree-optimization/46984
15210 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15212 (cgraph_create_indirect_edge): Fixed line length.
15213 (cgraph_indirect_call_info): Declare.
15214 (cgraph_make_edge_direct) Update declaration.
15215 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15216 (cgraph_create_indirect_edge): Use it.
15217 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15219 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15220 the new thunk_delta representation.
15221 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15223 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15224 (ipa_read_indirect_edge_info): Likewise.
15225 * lto-cgraph.c (output_edge_opt_summary): New function.
15226 (output_node_opt_summary): Call it on all outgoing edges.
15227 (input_edge_opt_summary): New function.
15228 (input_node_opt_summary): Call it on all outgoing edges.
15230 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15233 * gcc.c (main): Don't check have_o when settting combine_inputs.
15235 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15237 * regrename.c: Add general comment describing the pass.
15238 (struct du_head): Remove 'length' field.
15239 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15240 (regrename_optimize): Do not sort chains. Rework comments, add others.
15241 Force renaming to the preferred class (if any) in the first pass and do
15242 not consider registers that belong to it in the second pass.
15243 (create_new_chain): Do not set 'length' field.
15244 (scan_rtx_reg): Likewise.
15246 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15248 PR tree-optimization/47140
15249 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15250 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15251 to bit_value_binop.
15253 PR rtl-optimization/47028
15254 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15255 parm_birth_insn instead of at the beginning of first bb.
15257 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15259 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15260 Remove the word "see" before "@pxref".
15261 * doc/rtl.texi: Remove the word "see" before "@pxref".
15263 2011-01-01 Jan Hubicka <jh@suse.cz>
15265 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15268 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15271 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15274 Copyright (C) 2011 Free Software Foundation, Inc.
15276 Copying and distribution of this file, with or without modification,
15277 are permitted in any medium without royalty provided the copyright
15278 notice and this notice are preserved.