1 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
9 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14 UNSPEC_MOVE_PIC pattern.
16 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
19 (sparc-*-rtems*): Likewise.
20 (sparc64-*-elf*): Likewise.
21 (sparc64-*-rtems*): Likewise.
22 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
23 * config/sparc/t-crtin: New file.
24 * config/sparc/t-sol2 (crti.o): Delete rule.
26 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
27 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
28 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
29 (ENDFILE_SPEC): Add crtn.o.
31 2011-05-22 Tom de Vries <tom@codesourcery.com>
34 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
35 CODE_CONTAINS_STRUCT (TS_COMMON).
37 2011-05-22 Jakub Jelinek <jakub@redhat.com>
40 * expmed.c (extract_fixed_bit_field): Test whether target can be used
41 only after deciding which mode to use.
43 2011-05-22 Tom de Vries <tom@codesourcery.com>
46 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
47 for call to get_shiftadd_cost.
49 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
52 * config/i386/cpuid.h (bit_MMXEXT): New define.
54 2011-05-22 Nick Clifton <nickc@redhat.com>
56 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
57 initialisation of non-existant args[2] element. Use args[] array
58 not arg[] array to pass arguments to build_function_type_list.
60 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
62 PR tree-optimization/49087
63 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
65 2011-05-21 Jason Merrill <jason@redhat.com>
68 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
69 static storage duration.
71 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
73 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
76 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
78 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
79 false if there are call-saved registers here...
80 (sparc_can_use_return_insn_p): ...but here instead.
81 (save_or_restore_regs): Fix thinko.
82 (sparc_expand_prologue): Use current_function_is_leaf.
83 (sparc_frame_pointer_required): Likewise.
85 2011-05-21 Nick Clifton <nickc@redhat.com>
88 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
90 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
92 * gengtype.c (walk_type): Implemented "atomic" GTY option.
93 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
95 2011-05-21 Joseph Myers <joseph@codesourcery.com>
97 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
98 * optc-gen.awk: Move common code to opt-read.awk.
99 * opth-gen.awk: Likewise.
100 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
102 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
104 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
106 2011-05-20 Tom de Vries <tom@codesourcery.com>
109 * tree-ssa-loop-ivopts.c: Include expmed.h.
110 (get_shiftadd_cost): New function.
111 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
113 2011-05-20 Jakub Jelinek <jakub@redhat.com>
116 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
117 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
119 2011-05-20 Joseph Myers <joseph@codesourcery.com>
121 * Makefile.in: Update comment referring to $(OBJS-common).
123 2011-05-20 Ian Lance Taylor <iant@google.com>
125 * godump.c (go_output_typedef): Put enum constants in the macro
126 hash table to avoid duplicate Go const definitions.
128 2011-05-20 Joseph Myers <joseph@codesourcery.com>
130 * Makefile.in (LIBDEPS): Add libcommon.a.
132 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
133 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
134 pretty-print.o and version.o.
135 (OBJS-libcommon): New.
136 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
137 (BACKEND): Add libcommon.a.
138 (MOSTLYCLEANFILES): Likewise.
140 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
141 (cpp$(exeext)): Likewise.
142 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
143 pretty-print.o and input.o.
144 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
145 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
147 (mips-tfile): Don't explicitly use version.o.
148 (mips-tdump): Likewise.
149 (gcov.o): Depend on $(DIAGNOSTIC_H).
150 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
151 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
152 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
153 * gcov-dump.c: Include intl.h and diagnostic.h.
154 (main): Initialize diagnostics.
155 * gcov.c: Include diagnostic.h.
157 (main): Initialize diagnostics.
158 * lto-wrapper.c: Include diagnostic.h.
159 (main): Initialize diagnostics.
161 2011-05-20 Michael Matz <matz@suse.de>
163 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
165 2011-05-20 Michael Matz <matz@suse.de>
166 Richard Guenther <rguenther@suse.de>
168 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
169 use lto_streamer_cache_append directly instead of returning a VEC.
170 (preload_common_node): Remove.
171 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
173 (lto_streamer_cache_create): Call lto_preload_common_nodes.
175 2011-05-20 Richard Guenther <rguenther@suse.de>
177 PR tree-optimization/49079
178 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
179 MEM_REFs correctly for the trailing array access detection.
180 Special case constants the same way as decls for overall size
183 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
185 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
188 2011-05-20 Jakub Jelinek <jakub@redhat.com>
190 PR tree-optimization/49073
191 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
192 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
193 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
195 2011-05-20 Richard Guenther <rguenther@suse.de>
198 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
199 of pointer types the same way the middle-end does.
201 2011-05-20 Richard Guenther <rguenther@suse.de>
203 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
204 or pointer-to chains. Delay all fixup to uniquify_nodes.
206 2011-05-19 Quentin Neill <quentin.neill@amd.com>
208 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
209 (fma4_fmaddsub): Likewise
211 2011-05-19 Jan Hubicka <jh@suse.cz>
213 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
214 (GIMPLE_TYPE_PAIR_SIZE): New macro.
215 (type_pair_cache): New static var.
216 (lookup_type_pair): Use fixed sized custom hash; make inline.
217 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
218 calls of lookup_type_pair.
219 (print_gimple_types_stats): Remove cache stats.
220 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
223 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
225 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
226 when TARGET_RDRND is active.
227 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
228 Generate dummy SImode target register when target is NULL.
230 2011-05-19 Joseph Myers <joseph@codesourcery.com>
232 * config/arm/arm-fpus.def: New.
233 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
235 * config/arm/arm-tables.opt: Regenerate.
236 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
237 (arm_option_override): Don't decode FPU name to string here.
238 * config/arm/arm.opt (mfpu=): Use Enum.
239 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
242 2011-05-19 Joseph Myers <joseph@codesourcery.com>
244 * collect2.c: Include diagnostic.h.
245 (fatal_perror, fatal, error, fancy_abort): Remove.
246 (main): Set progname. Call xmalloc_set_program_name and
247 diagnostic_initialize.
248 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
249 scan_libraries, resolve_lib_name): Call fatal_error instead of
250 fatal and fatal_perror.
251 * collect2.h (error, fatal, fatal_perror): Don't declare.
252 * tlink.c: Include diagnostic-core.h.
253 (recompile_files): Call fatal_error instead of fatal_perror.
254 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
255 pretty-print.o and input.o.
256 (collect2.o, tlink.o): Update dependencies.
258 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
260 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
262 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
265 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
266 COMDAT group syntax, both SPARC and x86 variants.
267 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
268 * configure: Regenerate.
269 * config/sol2.h (TARGET_SOLARIS): Define.
270 (PUSHSECTION_FORMAT): Remove.
271 (SECTION_NAME_FORMAT): Define.
272 * config/sol2.c: Include hashtab.h.
273 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
274 expansion, using SECTION_NAME_FORMAT.
275 (solaris_comdat_htab): New variable.
276 (struct comdat_entry): Define.
277 (comdat_hash): New function.
278 (comdat_eq): New function.
279 (solaris_elf_asm_comdat_section): New function.
280 (solaris_define_comdat_signature): New function.
281 (solaris_code_end): New function.
282 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
283 (solaris_code_end): Declare.
284 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
285 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
287 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
288 Remove ATTRIBUTE_UNUSED.
289 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
290 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
291 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
292 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
293 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
294 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
295 (PUSHSECTION_FORMAT): Remove.
296 (SECTION_NAME_FORMAT): Redefine.
298 2011-05-19 Kai Tietz <ktietz@redhat.com>
300 * tree-cfg.c (verify_gimple_assign_binary): Barf on
301 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
302 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
304 2011-05-19 Anatoly Sokolov <aesok@post.ru>
305 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
307 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
309 2011-05-19 Richard Guenther <rguenther@suse.de>
312 * tree-object-size.c (addr_object_size): If the pointed-to
313 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
315 2011-05-19 Richard Guenther <rguenther@suse.de>
317 * gimple.c (gimple_types_compatible_p_1): Compare names of
318 the types themselves.
319 (iterative_hash_gimple_type): And hash them that way.
320 (gimple_register_type_1): If we register a main variant properly
321 initialize the leader to ourselves.
323 2011-05-19 Tom de Vries <tom@codesourcery.com>
326 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
327 get_loop_invariant_expr_id.
328 (get_loop_invariant_expr_id): Use get_expr_id.
329 (parm_decl_cost): New function.
330 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
331 Improve bound cost estimation. Use different inv_expr_id for elim and
334 2011-05-19 Tom de Vries <tom@codesourcery.com>
337 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
340 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
343 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
344 Properly handle load cast.
346 2011-05-18 Jakub Jelinek <jakub@redhat.com>
348 PR tree-optimization/49039
349 * tree-vrp.c (extract_range_from_binary_expr): For
350 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
351 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
353 2011-05-18 Tom de Vries <tom@codesourcery.com>
356 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
358 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
360 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
361 (*tls_global_dynamic_64): Ditto.
362 (*tls_local_dynamic_base_32_gnu): Ditto.
363 (*tls_local_dynamic_base_64): Ditto.
364 (tls_initial_exec_64_sun): Ditto.
366 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
368 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
369 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
371 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
372 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
373 * config/bfin/bfin.c (bfin_cpus): Add bf592.
374 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
375 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
376 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
377 * config/bfin/elf.h (LIB_SPEC): Add bf592.
379 2011-05-18 Joseph Myers <joseph@codesourcery.com>
381 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
382 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
383 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
384 target_thread_pointer, arm_structure_size_boundary, struct
385 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
386 struct abi_name, arm_all_abis): Remove.
387 (arm_option_override) Don't process most enumerated option values here.
388 Don't process target_fpe_name here. Work with integer not string for
389 structure size boundary; use separate diagnostics for each case.
390 * config/arm/arm.h (enum float_abi_type, enum
391 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
393 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
394 arm_structure_size_boundary): Remove.
395 * config/arm/arm.opt (mabi=): Use Enum and Init.
396 (arm_abi_type): New Enum and EnumValue entries.
397 (mfloat-abi=): Use Enum and Init.
398 (float_abi_type): New Enum and EnumValue entries.
399 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
400 (mfp16-format=): Use Enum and Init.
401 (arm_fp16_format_type): New Enum and EnumValue entries.
402 (mstructure-size-boundary=): Use UInteger and Init.
403 (mtp=): Use Enum and Init.
404 (arm_tp_type): New Enum and EnumValue entries.
406 2011-05-18 Richard Guenther <rguenther@suse.de>
408 PR tree-optimization/49018
409 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
410 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
411 gimple_has_side_effects.
413 2011-05-18 Richard Guenther <rguenther@suse.de>
415 * gimple.c (gimple_register_type_1): New function, split out from ...
416 (gimple_register_type): ... here. Avoid infinite recursion.
418 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
420 PR tree-optimization/41881
421 * tree-vectorizer.h (struct _loop_vec_info): Add new field
422 reduction_chains along with a macro for its access.
423 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
424 (destroy_loop_vec_info): Free reduction chains.
425 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
426 (vect_is_slp_reduction): New function.
427 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
428 (vect_create_epilog_for_reduction): Support SLP reduction chains.
429 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
430 definition types for reduction chains.
431 (vect_supported_load_permutation_p): Don't allow permutations for
433 (vect_analyze_slp_instance): Support reduction chains.
434 (vect_analyze_slp): Try to build SLP instance from reduction chains.
435 (vect_get_constant_vectors): Handle reduction chains.
436 (vect_schedule_slp_instance): Mark the first statement of the
437 reduction chain as reduction.
439 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
441 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
442 names for group elements access.
443 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
444 reduction chains as well. Remove data reference and interleaving
445 related words from the fields names.
446 * tree-vect-loop.c (vect_transform_loop): Use new names for group
448 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
449 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
450 vect_update_interleaving_chain, vect_same_range_drs,
451 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
452 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
453 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
454 vect_analyze_group_access, vect_analyze_data_ref_access,
455 vect_create_data_ref_ptr, vect_transform_strided_load,
456 vect_record_strided_load_vectors): Likewise.
457 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
458 vect_model_load_cost, vectorizable_store, vectorizable_load,
459 vect_remove_stores, new_stmt_vec_info): Likewise.
460 * tree-vect-slp.c (vect_build_slp_tree,
461 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
463 2011-05-18 Richard Guenther <rguenther@suse.de>
466 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
467 operand verification.
468 (verify_gimple_assign_binary): Likewise.
469 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
470 to non-1-precision BOOLEAN_TYPEs.
472 2011-05-18 Tom de Vries <tom@codesourcery.com>
475 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
477 2011-05-18 Jakub Jelinek <jakub@redhat.com>
479 PR tree-optimization/49000
480 * tree-ssa.c (execute_update_addresses_taken): Call
481 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
482 be rewritten and decl has been marked for renaming, reset
485 2011-05-17 Joseph Myers <joseph@codesourcery.com>
487 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
488 enum_opts_set when testing if attributes have set -mfpmath=.
490 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
492 * config/mips/mips.c (mips_handle_option): Remove unused variable.
494 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
496 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
498 * tree-inline.c (maybe_inline_call_in_expr): Initialize
499 id.transform_lang_insert_block with NULL.
501 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
503 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
504 (output_fp_compare): Change args 3 and 4 to bool.
505 (ix86_expand_call): Change arg 6 to bool.
506 (ix86_attr_length_immediate_default): Change arg 2 to bool.
507 (ix86_attr_length_vex_default): Change arg 3 to bool.
508 * config/i386/i386.md: Update all uses.
509 * config/i386/i386.c: Ditto.
510 (ix86_flags_dependent): Change return type to bool.
512 2011-05-17 Richard Guenther <rguenther@suse.de>
514 * gimple.c (type_hash_pair_compare): Fix comparison.
516 2011-05-17 Richard Guenther <rguenther@suse.de>
518 * gimple.c (iterative_hash_gimple_type): Simplify singleton
519 case some more, fix final hash value of the non-singleton case.
521 2011-05-17 Richard Guenther <rguenther@suse.de>
525 2011-05-16 Richard Guenther <rguenther@suse.de>
527 * gimple.c (gimple_types_compatible_p_1): Use names of the
528 type itself, not its main variant.
529 (iterative_hash_gimple_type): Likewise.
531 2011-05-17 Richard Guenther <rguenther@suse.de>
533 * gimple.c (gimple_register_canonical_type): Use the main-variant
534 leader for computing the canonical type.
536 2011-05-17 Nick Clifton <nickc@redhat.com>
538 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
541 * config/rx/rx.md: Add peephole to remove redundant extensions
543 (bitset_in_memory): Use rx_restricted_mem_operand.
544 (bitinvert_in_memory): Likewise.
545 (bitclr_in_memory): Likewise.
547 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
548 Nick Clifton <nickc@redhat.com>
550 * config/rx/rx.md: Add peepholes to match a register move followed
551 by a comparison of the moved register. Replace these with an
552 addition of zero that does both actions in one instruction.
554 2011-05-17 Jakub Jelinek <jakub@redhat.com>
557 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
558 predicate to allow CONST_INT.
559 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
561 2011-05-16 Joseph Myers <joseph@codesourcery.com>
563 * opts-common.c (opt_enum_arg_to_value): New.
564 * opts.h (opt_enum_arg_to_value): Declare.
565 * config/i386/i386.opt (fpmath): Remove.
566 (mfpmath=): Use Enum, Init and Save.
567 (fpmath_unit): New Enum and EnumValue entries.
568 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
569 name for function fpmath state.
570 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
571 * config/i386/i386.c: Include diagnostic.h.
572 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
573 (ix86_target_string): Take enum fpmath_unit value instead of string.
574 (ix86_debug_options): Update call to ix86_target_string.
575 (ix86_option_override_internal): Don't process fpmath strings here.
576 (x86_function_specific_save, ix86_function_specific_restore):
577 Don't handle fpmath state specially.
578 (ix86_function_specific_print): Pass fpmath state to
579 ix86_target_string instead of printing in this function.
580 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
581 Handle enum attributes.
582 (IX86_ATTR_ENUM, ix86_opt_enum): New.
583 (ix86_valid_target_attribute_tree): Update option_strings
584 handling. Handle fpmath as enum option.
585 (ix86_can_inline_p): Update field names for function fpmath state.
586 (ix86_expand_builtin): Update call to ix86_target_string.
587 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
588 (ix86_fpmath): Remove.
589 * config/i386/t-i386 (i386.o): Update dependencies.
591 2011-05-16 Joseph Myers <joseph@codesourcery.com>
593 PR preprocessor/48677
594 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
595 from decoded_options[0], not from itself.
597 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
599 * config/i386/constraints.md (z): New constraint.
600 * config/i386/i386.c (c): New mode attribute.
601 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
602 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
603 constraint for operand 0.
604 (*call_vzeroupper): Ditto.
605 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
606 (*call_rex64_ms_sysv_vzeroupper): Ditto.
607 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
608 Use "lzm" constraint for operand 0.
609 (*call_pop_vzeroupper): Ditto.
610 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
611 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
612 constraint for operand 0.
613 (*sibcall_vzeroupper): Ditto.
614 (*sibcall_rex64_ms_sysv): Ditto.
615 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
616 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
617 *sibcall_pop_1. Use "Uz" constraint for operand 0.
618 (*sibcall_pop_vzeroupper): Ditto.
619 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
620 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
621 mode iterator. Use "<c>zm" constraint for operand 1.
622 (*call_value_vzeroupper): Ditto.
623 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
625 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
626 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
627 *call_value_pop_1. Use "lzm" constraint for operand 1.
628 (*call_value_pop_vzeroupper): Ditto.
629 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
630 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
631 mode iterator. Use "Uz" constraint for operand 1.
632 (*sibcall_value_vzeroupper): Ditto.
633 (*sibcall_value_rex64_ms_sysv): Ditto.
634 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
635 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
636 constraint for operand 1.
637 (*sibcall_value_pop_vzeroupper): Ditto.
638 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
639 and "z" constraint for operand 2.
640 (*tls_global_dynamic_32_gnu): Ditto.
641 (*tls_local_dynamic_base_32_gnu): Ditto.
642 (*tls_local_dynamic_base_64): Ditto.
643 (*tls_local_dynamic_32_once): Ditto.
644 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
646 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
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-16 Richard Guenther <rguenther@suse.de>
656 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
657 always visit pointer target and function result and argument types.
659 2011-05-16 Jason Merrill <jason@redhat.com>
662 * tree-inline.c (copy_statement_list): Put back recursion.
664 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
668 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
669 * config/avr/avr.md ("*ior<mode>qi.byte0",
670 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
672 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
675 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
676 register is needed for a function argument.
678 2011-05-16 Richard Guenther <rguenther@suse.de>
680 * gimple.c (struct type_hash_pair): New type.
681 (type_hash_pair_compare): New function.
682 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
684 2011-05-16 Revital Eres <revital.eres@linaro.org>
686 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
688 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
690 * config/i386/i386.md (floating point move splitters): Fix
691 usage of standard_80387_constant_p.
692 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
694 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
696 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
698 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
700 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
701 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
702 (tree_ssa_lim_finalize): Likewise.
704 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
706 * config/i386/constraint.md (Yd, Yx): New register constraints.
707 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
708 Yd conditional register constraint.
709 (*movtf_internal): Use standard_sse_constant_opcode.
710 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
711 Yx conditional register constraint.
712 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
713 Yd conditional register constraint. Use standard_sse_constant_p to
714 check for valid SSE constants and call standard_sse_constant_opcode to
716 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
717 constants and call standard_sse_constant_opcode to output SSE insn.
718 * config/i386/i386.c (ix86_option_ovverride_internal): Set
719 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
720 optimize_size is set.
721 (standard_sse_constant_opcode): Output conditional AVX insn templates.
723 2011-05-14 Tobias Burnus <burnus@net-b.de>
725 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
727 2011-05-13 Martin Jambor <mjambor@suse.cz>
729 * ipa-prop.c (ipa_cst_from_jfunc): New function.
730 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
731 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
732 (evaluate_conditions_for_ipcp_clone): Removed.
733 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
734 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
735 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
737 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
739 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
740 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
741 lieu of MAY_HAVE_DEBUG_STMTS.
742 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
743 debug statements if !MAY_HAVE_DEBUG_STMTS.
745 2011-05-13 Martin Thuresson <martint@google.com>
747 PR gcov-profile/47793
748 * libgcov.c (gcov_exit): Support relative profile paths.
749 * doc/invoke.texi (-fprofile-dir): Update for above change.
751 2011-05-13 Richard Guenther <rguenther@suse.de>
753 * gimple.c (gimple_canonical_types_compatible_p): Do not use
754 type-pair caching, do not compare hashes.
756 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
759 * tree-cfg.c (edge_to_cases_cleanup): Return true.
760 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
762 2011-05-13 Kai Tietz <ktietz@redhat.com>
764 * gimplify.c (gimplify_expr): Make sure operand is boolified.
765 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
766 compatible type for TRUTH_NOT_EXPR.
768 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
770 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
771 (ix86_hard_regno_mode_ok): Change return value to bool. Use
772 can_create_pseudo_p ().
774 2011-05-13 Richard Guenther <rguenther@suse.de>
777 * gimple.c (iterative_hash_gimple_type): Revert change in
778 pointer target and function result and argument hashing.
780 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
782 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
783 (*movxf_internal_nointeger): Ditto.
784 (*movdf_internal_rex64): Ditto.
785 (*movdf_internal): Ditto.
786 (*movdf_internal_nointeger): Ditto.
787 (*movsf_internal): Ditto.
788 (sincos splitters): Use can_create_pseudo ().
790 2011-05-13 Joseph Myers <joseph@codesourcery.com>
792 * config/i386/i386-opts.h: New.
793 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
794 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
795 ix86_section_threshold): Remove.
796 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
797 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
799 (ix86_option_override_internal): Don't decode strings for options
800 other than -march=, -mtune= and -mfpmath=. Don't allow for
801 __attribute__ uses in remaining diagnostics for options with
802 string arguments. Don't check for integer arguments being negative.
803 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
804 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
805 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
806 ix86_branch_cost, ix86_section_threshold): Remove.
807 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
809 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
811 (masm=): Use Enum and Init.
812 (asm_dialect): New Enum and EnumValue entries.
813 (mbranch-cost=): Use UInteger.
814 (mlarge-data-threshold=): Use UInteger and Init.
815 (mcmodel=): Use Enum and Init.
816 (cmodel): New Enum and EnumValue entries.
817 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
818 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
819 mregparm=): Use UInteger.
820 (mstringop-strategy=): Use Enum and Init.
821 (stringop_alg): New Enum and EnumValue entries.
822 (mtls-dialect=): Use Enum and Init.
823 (tls_dialect): New Enum and EnumValue entries.
824 (mabi=): Use Enum and Init.
825 (calling_abi): New Enum and EnumValue entries.
826 (mveclibabi=): Use Enum and Init.
827 (ix86_veclibabi): New Enum and EnumValue entries.
829 2011-05-13 Nick Clifton <nickc@redhat.com>
831 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
832 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
834 2011-05-13 Kai Tietz <ktietz@redhat.com>
837 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
838 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
839 (gimple_boolify): Check for cast for boolean_type_node instead for
842 2011-05-13 Richard Guenther <rguenther@suse.de>
844 PR tree-optimization/48172
845 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
846 multiplying by number of iterations for equal step.
847 (vect_create_cond_for_alias_checks): Likewise.
849 2011-05-13 Andreas Schwab <schwab@redhat.com>
851 * configure.ac: Use AS_HELP_STRING throughout.
852 * configure: Regenerate.
854 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
856 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
857 (ix86_emit_restore_regs_using_mov): Likewise.
858 (ix86_emit_restore_sse_regs_using_mov): Likewise.
860 2011-05-12 Anatoly Sokolov <aesok@post.ru>
862 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
863 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
864 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
865 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
866 RTX_OK_FOR_OLO10_P): ...here.
867 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
870 2011-05-12 Kai Tietz <ktietz@redhat.com>
872 * gimplify.c (gimple_boolify): Re-boolify expression
873 arguments even if expression type is of kind BOOLEAN_TYPE.
874 (gimplify_boolean_expr): Removed.
875 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
876 and XOR. Additional take care that we keep expression's type.
877 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
878 of TRUTH_AND|OR|XOR_EXPR.
880 2011-05-12 Jakub Jelinek <jakub@redhat.com>
882 PR tree-optimization/48975
883 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
884 on all bbs here and free and clear ifc_bbs at the end.
886 2011-05-12 Richard Guenther <rguenther@suse.de>
888 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
889 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
890 until after simple checks.
891 (gimple_types_compatible_p): Likewise.
892 (iterative_hash_gimple_type): Always hash pointer targets
893 and function return and argument types.
894 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
895 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
896 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
897 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
898 completely in the simple compare section.
899 (gimple_register_canonical_type): Query the cache again after
902 2011-05-12 Richard Guenther <rguenther@suse.de>
904 PR tree-optimization/48172
905 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
906 the number of iterations from the segment size calculation.
907 (vect_create_cond_for_alias_checks): Adjust.
909 2011-05-12 Jakub Jelinek <jakub@redhat.com>
912 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
913 if validate_subreg fails.
915 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
917 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
918 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
921 2011-05-12 DJ Delorie <dj@redhat.com>
923 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
924 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
925 created builtin into rx_builtins array.
926 (rx_builtin_decl): New function.
927 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
929 2011-05-12 DJ Delorie <dj@redhat.com>
930 Nick Clifton <nickc@redhat.com>
932 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
933 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
934 (rx_is_legitimate_address): Add pre-decrement and post-increment
935 addressing in HImode and QImode. Fix test for out of range
937 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
938 (rx_align_for_label): Test label before extracting its usage count.
939 (rx_adjust_insn_lengths): Fix selection of insn codes.
940 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
942 2011-05-11 Jason Merrill <jason@redhat.com>
944 * tree.c (type_hash_canon): Use struct tree_type_non_common.
946 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
948 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
949 reindent the subsequent block.
951 2011-05-11 Satoru Takabayashi <satorux@google.com>
952 Paul Pluzhnikov <ppluzhnikov@google.com>
954 * doc/install.texi (Configuration): Document --with-linker-hash-style.
955 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
956 * config.in: Add LINKER_HASH_STYLE.
957 * configure.ac: Add --with-linker-hash-style.
958 * configure: Regenerate.
960 2011-05-11 Richard Guenther <rguenther@suse.de>
963 * gimple.c (iterative_hash_canonical_type): Fix typo.
965 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
967 * config/i386/i386.c (legitimize_tls_address)
968 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
969 expanders directly for TARGET_GNU2_TLS. Determine pic and
970 __tls_get_addr symbol reference here. Update call to
971 gen_tls_global_dynamic_{32,64} for added arguments.
972 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
973 expanders directly for TARGET_GNU2_TLS. Determine
974 __tls_get_addr symbol reference here. Update call to
975 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
976 unique UNSPEC REG_EQUIV to libcall block.
977 (ix86_tls_get_addr): Declare static.
978 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
979 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
980 Do not determine pic and __tls_get_addr symbol reference here. Do not
981 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
982 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
983 (tls_global_dynamic_64): Add operand 2. Do not determine
984 __tls_get_addr symbol reference here. Do not call
985 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
986 (tls_local_dynamic_base64): Ditto for operand 1.
988 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
990 * function.c (expand_function_start): Initialize stack_check_probe_note
991 only if the generic stack checking mechanism is used.
993 2011-05-11 Richard Guenther <rguenther@suse.de>
995 PR tree-optimization/15256
996 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
997 (A & B) | C, combine (A op CST1) op CST2.
998 (tree_ssa_forward_propagate_single_use_vars): Only bother to
999 visit assigns that have uses.
1001 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1003 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1004 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1005 (unpack_ts_type_common_value_fields): ...this. Update comment.
1006 (unpack_value_fields): Adjust for renaming.
1007 (lto_input_ts_type_tree_pointers): Split into...
1008 (lto_input_ts_type_common_tree_pointer): ...this and...
1009 (lto_input_ts_type_non_common_tree_pointers): ...this.
1010 (lto_input_tree_pointers): Adjust for above split.
1011 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1012 (pack_ts_type_common_value_fields): ...this. Update comment.
1013 (lto_output_ts_type_tree_pointers): Split into...
1014 (lto_output_ts_type_common_tree_pointers): ...this and...
1015 (lto_output_ts_type_non_common_tree_pointers): ...this.
1016 (lto_output_tree_pointers): Adjust for above split.
1017 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1018 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1019 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1020 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1022 (struct tree_type): Split into...
1023 (struct tree_type_common: ...this and...
1024 (struct tree_type_with_lang_specific): ...this and...
1025 (struct tree_type_non_common): ...this. Adjust accessor macros
1027 (TYPE_VALUES_RAW): Define.
1028 (union tree_node): Update for above changes.
1029 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1031 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1032 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1033 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1034 * treestructu.def (TS_TYPE): Remove.
1035 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1038 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1041 * tree-ssa.c (reset_debug_uses): New function.
1042 * tree-flow.h (reset_debug_uses): New prototype.
1043 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1044 * tree-loop-distribution.c (generate_loops_for_partition): Call
1045 reset_debug_uses on the stmts that will be removed. Keep around
1046 all debug stmts, don't count them as bits in partition bitmap.
1047 (generate_builtin): Don't count debug stmts or labels as bits in
1050 2011-05-11 Richard Guenther <rguenther@suse.de>
1052 * gimple.c (gimple_type_hash_1): Merge with ...
1053 (gimple_type_hash): ... this.
1054 (gtc_visit): Remove mode parameter and simplify accordingly.
1055 (gimple_types_compatible_p_1): Likewise.
1056 (gimple_types_compatible_p): Likewise.
1057 (iterative_hash_gimple_type): Likewise.
1059 (gimple_type_eq): Adjust.
1061 2011-05-11 Revital Eres <revital.eres@linaro.org>
1063 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1064 enters the branch create an anti edge in the opposite direction
1065 to prevent the creation of reg-moves.
1066 * modulo-sched.c: Adjust comment to reflect the fact we are
1067 scheduling closing branch.
1068 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1069 (stage_count): New field in struct partial_schedule.
1070 (calculate_stage_count): New function.
1071 (normalize_sched_times): Rename to reset_sched_times and handle
1072 incrementing the sched time of the nodes by a constant value
1073 passed as parameter.
1074 (duplicate_insns_of_cycles): Skip closing branch.
1075 (sms_schedule_by_order): Schedule closing branch.
1076 (ps_insn_find_column): Handle closing branch.
1077 (sms_schedule): Call reset_sched_times and adjust the code to
1078 support scheduling of the closing branch.
1079 (ps_insert_empty_row): Update calls to normalize_sched_times
1080 and rotate_partial_schedule functions.
1082 2011-05-11 Richard Guenther <rguenther@suse.de>
1085 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1087 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1089 * opts.c (finish_options): Move warning settings from process_options.
1090 * toplev.c (process_options): Move warning settings to finish_options.
1092 2011-05-11 Richard Guenther <rguenther@suse.de>
1094 PR tree-optimization/18041
1095 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1096 (simplify_bitwise_binary): ... this. Handle operand conversions
1097 by applying them to the result instead.
1098 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1100 2011-05-11 Richard Guenther <rguenther@suse.de>
1102 * gimple.c (gimple_canonical_types_compatible_p): Split out
1103 from gimple_types_compatible_p and friends. Do not recurse
1104 to pointed-to types.
1105 (gimple_canonical_type_eq): Use it.
1106 (iterative_hash_canonical_type): Split out from
1107 iterative_hash_gimple_type and friends. Do not recurse
1108 to pointed-to types.
1109 (gimple_canonical_type_hash): Use it, allocate the hash here.
1111 2011-05-11 Revital Eres <revital.eres@linaro.org>
1113 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1116 2011-05-11 Revital Eres <revital.eres@linaro.org>
1118 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1119 instead of PREV_INSN.
1121 2011-05-11 Revital Eres <revital.eres@linaro.org>
1123 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1124 * loop-doloop.c (doloop_condition_get): Likewise.
1125 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1127 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1129 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1131 * tree.def (CASE_LABEL_EXPR): Add an operand.
1132 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1134 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1136 * c-decl.c (c_override_global_bindings_to_false): Remove.
1137 (global_bindings_p): Don't check
1138 c_override_global_bindings_to_false.
1139 * c-tree.h (c_override_global_bindings_to_false): Remove.
1140 * c-typeck.c (composite_type): Don't set
1141 c_override_global_bindings_to_false.
1143 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1145 PR target/48857, 48495
1146 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1148 (VSX_MOVE_MODE): Ditto.
1149 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1150 VSX vector types. Add V2DImode.
1151 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1152 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1153 (MODES_TIEABLE_P): Ditto.
1155 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1156 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1158 (init_cumulative_args): Ditto.
1159 (rs6000_function_arg_boundary): Ditto.
1160 (rs6000_function_arg_advance_1): Ditto.
1161 (rs6000_function_arg): Ditto.
1162 (rs6000_function_ok_for_sibcall): Ditto.
1163 (emit_frame_save): Ditto.
1164 (rs6000_function_value): Ditto.
1165 (rs6000_libcall_value): Ditto.
1167 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1169 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1170 i386/darwin-lib.h to $libgcc_tm_file.
1171 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1173 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1175 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1177 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1179 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1180 * config/rs6000/rs6000-tables.opt: New file (generated).
1181 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1182 rs6000/rs6000-tables.opt to extra_options.
1183 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1184 * config/rs6000/rs6000.c (rs6000_select): Remove.
1185 (processor_target_table): Move contents to rs6000-cpus.def.
1186 (darwin_rs6000_override_options): Check
1187 global_options_set.x_rs6000_cpu_index instead of
1188 rs6000_select[1].string.
1189 (rs6000_option_override_internal): Likewise.
1190 (rs6000_handle_option): Don't assert that global structures are in
1191 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1192 (rs6000_default_cpu): New variable.
1193 (rs6000_file_start): Set it instead of local default_cpu. Check
1194 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1195 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1196 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1197 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1198 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1199 rs6000_select): Remove.
1200 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1202 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1203 * config/rs6000/t-rs6000
1204 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1205 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1206 global_options_set.x_rs6000_cpu_index instead of
1207 rs6000_select[1].string.
1208 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1209 global_options_set.x_rs6000_cpu_index instead of
1210 rs6000_select[1].string.
1212 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1214 * config.gcc (libgcc_tm_file): Define instead of including files
1215 from ../../libgcc/config/ in tm_file.
1216 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1217 * configure: Regenerate.
1218 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1219 libgcc_tm.h, cs-libgcc_tm.h): New.
1220 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1221 (clean): Remove libgcc_tm.h.
1222 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1223 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1224 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1226 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1229 * config/avr/avr.c (avr_ret_register): Return unsigned int
1231 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1232 it to avr_libcall_value.
1233 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1235 (avr_expand_binop_builtin): Ditto.
1236 (avr_expand_unop_builtin): Ditto.
1238 2011-05-10 DJ Delorie <dj@redhat.com>
1240 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1241 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1242 * config/rx/rx.c (rx_align_for_label): Add label and
1243 uses_threshold parameters. Do not align when the label is not
1245 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1247 2011-05-10 Richard Guenther <rguenther@suse.de>
1249 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1250 a series of conversions and apply foldings similar to what
1252 (tree_ssa_forward_propagate_single_use_vars): Call it.
1254 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1256 PR tree-optimization/48611
1257 PR tree-optimization/48794
1258 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1259 referenced from RESX or EH_DISPATCH arguments.
1262 * dfp.c (decimal_to_decnumber): Handle conversion from
1263 dconst{1,2,m1,half}.
1265 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1267 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1268 for !flag_prefer_avx128.
1269 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1271 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1273 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1274 (fold_ternary_loc): Use expr_location_or.
1276 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1279 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1280 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1281 Pmode and mem_mode is not VOIDmode.
1283 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1285 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1286 TYPE_QUAL_RESTRICT): Convert to enum.
1288 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1290 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1291 (const_pow2_1_to_8_operand): Ditto.
1292 (const_pow2_1_to_128_operand): Ditto.
1293 (const_pow2_1_to_32768_operand): Ditto.
1294 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1295 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1296 in insn constraint to check integer value of operand 3.
1297 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1299 (PINSR_MODE): New mode iterator.
1300 (sse2p4_1): New mode attribute.
1301 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1302 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1303 iterator. Use const_int_operand instead of
1304 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1305 exact_log2 in insn constraint to check integer value of operand 3.
1307 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1309 * config/i386/sse.md (blendbits): Remove mode attribute.
1310 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1311 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1312 Check integer value of operand 3 in insn constraint.
1314 2011-05-09 Richard Guenther <rguenther@suse.de>
1316 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1318 (lto_symtab_merge): Likewise. Do not register types here.
1319 (lto_symtab_merge_decls_2): Likewise.
1320 (lto_symtab_merge_decls_1): Likewise.
1321 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1322 * gimple.c (enum gtc_mode): Declare.
1323 (gimple_types_compatible_p): Make static.
1325 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1327 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1328 temporary register to match Pmode.
1330 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1332 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1333 and *vec_concatv4si_1_avx.
1335 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1337 PR rtl-optimization/48927
1338 * ira-conflicts.c (commutative_constraint_p): Use
1339 recog_data.alternative_enabled_p to disable alternatives where
1340 "enabled" attribute is false.
1341 (get_dup_num): Ditto.
1342 * ira-lives.c (single_reg_class): Ditto.
1343 (ira_implicitly_set_insn_hard_regs): Ditto.
1345 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1347 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1348 (dataflow_set_preserve_mem_locs): Likewise.
1350 2011-05-09 Philipp Thomas <pth@suse.de>
1352 * config/mep/mep.c (mep_validate_vliw): Syntax description
1353 should not be translated.
1355 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1357 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1358 * config/mips/mips-tables.opt: New file (generated).
1359 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1360 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1361 MIPS_ARCH_OPTION_NATIVE): Define.
1362 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1364 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1365 mips_parse_cpu): Remove.
1366 (mips_cpu_info_from_opt, mips_default_arch): New.
1367 (mips_handle_option): Don't assert that global structures are in
1368 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1369 (mips_option_override): Use new variables and functions to set
1370 state of these options. Use strcmp to check for individual CPU names.
1371 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1373 * config/mips/mips.opt (march=): Use ToLower and Enum.
1374 (mips): Use ToLower, Enum and Var.
1375 (mtune=): Use ToLower and Enum.
1376 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1378 2011-05-08 Jan Hubicka <jh@suse.cz>
1380 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1381 Arrange type pairs to be UID ordered.
1382 (gimple_lookup_type_leader): Make inline.
1384 2011-05-09 Nick Clifton <nickc@redhat.com>
1387 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1391 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1394 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1396 * combine.c (simplify_comparison): Abstract out parts into...
1397 (simplify_compare_const): ... new function.
1398 (try_combine): Generalize parallel arithmetic/compare combining
1399 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1401 2011-05-08 Jan Hubicka <jh@suse.cz>
1403 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1404 (cgraph_create_virtual_clone): Call hooks once virtual clone
1406 * cgraph.h (cgraph_clone_node): Update prototype.
1407 * ipa-cp.c (ipcp_estimate_growth): Use
1408 estimate_ipcp_clone_size_and_time.
1409 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1410 * lto-cgraph.c (input_node): Update.
1411 * ipa-inline.c (recursive_inlining): Update.
1412 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1413 (evaluate_conditions_for_known_args): Break out from ...
1414 (evaluate_conditions_for_edge): ... here.
1415 (evaluate_conditions_for_ipcp_clone): New function.
1416 (inline_node_duplication_hook): Update clone summary based
1418 (estimate_callee_size_and_time): Rename to ...
1419 (estimate_node_size_and_time): take NODE instead of EDGE;
1420 take POSSIBLE_TRUTHS as argument.
1421 (estimate_callee_size_and_time): Update.
1422 (estimate_ipcp_clone_size_and_time): New function.
1423 (do_estimate_edge_time): Update.
1425 2011-05-08 Richard Guenther <rguenther@suse.de>
1429 * expmed.c (expand_shift_1): Compute adjusted constant shift
1432 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1434 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1436 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1438 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1440 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1442 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1444 2011-05-07 Jan Hubicka <jh@suse.cz>
1446 * ipa-inline-transform.c (inline_call): Account when program size
1448 * ipa-inline.c (relative_time_benefit): New function.
1449 (edge_badness): Reorganize to be power 2 based; fix thinko when
1450 computing badness for negative growth; update comments to match
1451 reality; better dumps.
1453 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1455 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1456 type to bool and adjust comment.
1457 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1458 (fold_mathfn_compare): Remove calls to global_bindings_p.
1459 (fold_inf_compare): Likewise.
1460 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1461 * c-tree.h (global_bindings_p): Adjust prototype.
1462 * c-decl.c (global_bindings_p): Return bool and simplify.
1464 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1466 PR tree-optimization/48837
1467 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1468 when accumulator transformation is performed.
1470 2011-05-06 Jan Hubicka <jh@suse.cz>
1472 * i386.h (ix86_tune_indices): Add
1473 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1474 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1475 * i386.c (initial_ix86_tune_features): Add
1476 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1477 (software_prefetching_beneficial_p): Remove predicate.
1478 (ix86_option_override_internal): Use new macro.
1480 2011-05-06 Jan Hubicka <jh@suse.cz>
1482 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1484 2011-05-06 Jan Hubicka <jh@suse.cz>
1486 * cgraph.c (cgraph_add_thunk): Create real function node instead
1487 of alias node; finalize it and mark needed/reachale; arrange visibility
1488 to be right and add it into the corresponding same comdat group list.
1489 (dump_cgraph_node): Dump thunks.
1490 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1491 cgraph_function_with_gimple_body_p,
1492 cgraph_first_function_with_gimple_body,
1493 cgraph_next_function_with_gimple_body): New functions.
1494 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1496 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1497 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1498 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1499 devirtualization when optimizing.
1500 (verify_cgraph_node): Verify thunks.
1501 (cgraph_analyze_function): Analyze thunks.
1502 (cgraph_mark_functions_to_output): Output thunks only in combination
1503 with function they are assigned to.
1504 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1505 alias into normal node.
1506 (assemble_thunks): New functoin.
1507 (cgraph_expand_function): Use it.
1508 * lto-cgraph.c (lto_output_node): Stream thunks.
1509 (input_overwrite_node): Stream in thunks.
1510 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1511 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1512 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1513 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1514 (inline_analyze_function): Do not care about thunk jump functions.
1515 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1516 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1517 cgraph_function_with_gimple_body_p.
1518 * passes.c (do_per_function_toporder): Use
1519 cgraph_function_with_gimple_body_p.
1520 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1521 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1522 (function_called_by_processed_nodes_p): Likewise.
1524 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1526 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1527 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1529 (mabi=): Replace with separate entries for mabi=altivec,
1530 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1531 mabi=ieeelongdouble and mabi=ibmlongdouble.
1532 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1533 check for -mabi=spe without SPE ABI support here.
1534 (rs6000_handle_option): Replace OPT_mabi_ handling with
1535 OPT_mabi_altivec and OPT_mabi_spe handling.
1537 2011-05-06 Cary Coutant <ccoutant@google.com>
1539 * dwarf2out.c (contains_subprogram_definition): New function.
1540 (should_move_die_to_comdat): Call it.
1542 2011-05-06 Jeff Law <law@redhat.com>
1544 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1545 remove_ctrl_stmt_and_useless_edges.
1546 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1547 (fixup_template_block, thread_single_edge): Likewise.
1548 (mark_threaded_blocks): Use THREAD_TARGET.
1550 2011-05-06 Alan Modra <amodra@gmail.com>
1553 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1554 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1556 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1558 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1559 constraint modifier to "r".
1561 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1563 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1564 fall through for OPT_mcmodel_.
1566 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1568 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1570 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1572 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1575 * config/arm/arm.opt (marm): Document it.
1576 (mthumb): Reject negative variant.
1578 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1581 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1582 Fix typo in "ccvt" variable name.
1584 2011-05-06 Tristan Gingold <gingold@adacore.com>
1587 * config/vms/vms-ar.c (main): Remove cwd variable.
1589 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1592 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1594 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1596 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1597 * gimplify.c (gimplify_switch_expr): Likewise.
1598 * omp-low.c (expand_omp_sections): Likewise.
1599 * tree-eh.c (lower_try_finally_switch): Likewise.
1600 (lower_eh_dispatch): Likewise.
1601 * tree.h (build_case_label): Declare.
1602 * tree.c (build_case_label): Define.
1604 2011-05-05 Jason Merrill <jason@redhat.com>
1607 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1608 (copy_statement_list): Don't recurse.
1609 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1612 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1614 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1615 through from -mfpu= handling.
1616 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1618 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1620 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1623 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1625 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1627 (hppa[12]*-*-hpux11*): Ditto.
1628 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1629 * config/ia64/hpux-unix2003.h: New.
1630 * config/pa/pa-hpux1131.opt: New.
1631 * config/pa/pa-hpux1131.h: New.
1632 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1633 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1634 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1636 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1639 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1640 instead of mode as 3rd argument to recursive call.
1641 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1642 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1644 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1645 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1646 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1647 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1649 2011-05-05 Julian Brown <julian@codesourcery.com>
1651 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1652 parenthesis in D-register case.
1654 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1656 * opt-functions.awk (var_type_struct): Handle Enum options.
1657 * optc-gen.awk: Don't check range of variables of character type.
1658 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1659 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1660 rs6000_sdata_name, rs6000_explicit_options): Remove.
1661 (rs6000_option_override_internal): Check for -malign-power here.
1662 Use global_options_set instead of rs6000_explicit_options.
1663 (rs6000_parse_fpu_option): Remove.
1664 (rs6000_handle_option): Access variables via opts and opts_set
1665 pointers. Use error_at and warning_at. Add fall-through
1666 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1667 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1668 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1669 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1670 here. Don't use rs6000_parse_fpu_option.
1671 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1672 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1673 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1675 (mspe): Use Var and Save.
1676 (mtraceback=): Use Enum and Var.
1677 (rs6000_traceback_type): New Enum and EnumValue entries.
1678 (mfloat-gprs=): Use Enum, Var and Save.
1679 (rs6000_float_gprs): New Enum and EnumValue entries.
1680 (mlong-double-): use Var and Save.
1681 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1682 (malign-): Use Enum and Var.
1683 (rs6000_alignment_flags): New Enum and EnumValue entries.
1685 (fpu_type_t): New Enum and EnumValue entries.
1686 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1687 global_options_set instead of rs6000_explicit_options.
1688 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1689 global_options_set instead of rs6000_explicit_options.
1690 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1691 global_options_set instead of rs6000_explicit_options.
1692 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1693 global_options_set instead of rs6000_explicit_options.
1694 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1695 global_options_set instead of rs6000_explicit_options.
1696 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1697 global_options_set instead of rs6000_explicit_options.
1698 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1700 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1701 global_options_set instead of rs6000_explicit_options.
1702 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1703 (rs6000_cmodel): New Enum and EnumValue entries.
1704 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1705 global_options_set instead of rs6000_explicit_options.
1706 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1707 (mtls-size=): Use Enum and Var.
1708 (rs6000_tls_size): New Enum and EnumValue entries.
1710 2011-05-05 Michael Matz <matz@suse.de>
1712 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1713 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1714 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1715 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1716 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1717 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1718 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1719 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1720 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1721 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1722 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1723 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1724 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1725 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1726 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1727 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1729 2011-05-05 Richard Guenther <rguenther@suse.de>
1731 * expmed.c (expand_variable_shift): Rename to ...
1732 (expand_shift_1): ... this. Take an expanded shift amount.
1733 For rotates recurse directly not building trees for the shift amount.
1734 (expand_variable_shift): Wrap around expand_shift_1.
1735 (expand_shift): Adjust.
1737 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1739 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1741 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1743 * tree.h (get_pending_sizes): Remove prototype.
1744 (put_pending_size): Likewise.
1745 (put_pending_sizes): Likewise.
1746 * stor-layout.c (pending_sizes): Delete.
1747 (get_pending_sizes): Likewise.
1748 (put_pending_size): Likewise.
1749 (put_pending_sizes): Likewise.
1750 (variable_size): Do not call put_pending_size and tidy up.
1751 * function.h (struct function): Remove dont_save_pending_sizes_p.
1752 * lto-streamer-in.c (input_function): Do not stream it.
1753 * lto-streamer-out.c (output_function): Likewise.
1754 * tree-inline.c (initialize_cfun): Do not copy it.
1755 * c-decl.c (store_parm_decls): Do not set it.
1756 * omp-low.c (create_task_copyfn): Likewise.
1757 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1759 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1761 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1763 (*movdf_internal): Ditto.
1764 (*movdf_internal_nointeger): Ditto.
1765 (*movsf_internal): Ditto.
1767 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1769 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1770 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1771 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1772 (c_variable_size): Remove.
1773 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1774 call put_pending_sizes.
1775 (get_parm_info): Add parameter expr. Use it to set
1776 arg_info->pending_sizes.
1777 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1779 * c-parser.c (c_parser_parms_declarator): Update call to
1780 c_parser_parms_list_declarator.
1781 (c_parser_parms_list_declarator): Take parameter expr. Update
1782 call to push_parm_decl. Update recursive call. Don't call
1783 get_pending_sizes. Update calls to get_parm_info.
1784 (c_parser_objc_method_definition): Update calls to
1785 c_parser_objc_method_decl and objc_start_method_definition.
1786 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1787 (c_parser_objc_method_decl): Add parameter expr. Update call to
1789 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1790 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1791 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1793 2011-05-05 Michael Hope <michael.hope@linaro.org>
1796 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1799 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1801 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1802 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1803 (spu_output_mi_thunk): New function.
1805 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1807 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1808 targetm.asm_out.print_operand.
1809 * config/sol2.c: Include target.h.
1811 2011-05-04 Jan Hubicka <jh@suse.cz>
1813 * ipa-inline.c (reset_edge_caches): New function.
1814 (update_caller_keys): Add check_inlinablity_for; do not
1815 reset edge caches; remove now unnecesary loop.
1816 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1817 (update_all_callee_keys): Likewise.
1818 (inline_small_functions): Sanity check cache; update code
1821 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1823 PR rtl-optimization/47612
1824 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1825 as the last insn of the sequence to be moved.
1827 2011-05-04 Tobias Burnus <burnus@net-b.de>
1830 * doc/invoke.texi (Ofast): Document that it
1831 enables Fortran's -fno-protect-parens.
1833 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1835 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1837 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1839 * stor-layout.c (variable_size): Do not issue errors.
1841 2011-05-04 Richard Guenther <rguenther@suse.de>
1843 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1844 for array-ref indices.
1845 (tree_coverage_counter_addr): Likewise.
1846 (build_fn_info_type): Use size_int for index types.
1847 (build_gcov_info): Likewise.
1849 2011-05-04 Richard Guenther <rguenther@suse.de>
1851 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1853 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1854 for constructor indices.
1855 (push_init_level): Likewise.
1857 2011-05-04 Richard Guenther <rguenther@suse.de>
1859 * explow.c (promote_mode): Move variable declarations before code.
1861 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1863 * tree.h (build_function_type_array): Declare.
1864 (build_varargs_function_type_array): Declare.
1865 (build_function_type_vec, build_varargs_function_type_vec): Define.
1866 * tree.c (build_function_type_array_1): New function.
1867 (build_function_type_array): New function.
1868 (build_varargs_function_type_array): New function.
1870 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1872 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1873 before setting STMT_VINFO_TYPE.
1875 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1877 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1878 instead of spu_pass_by_reference.
1880 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1882 * calls.c (emit_library_call_value_1): Invoke
1883 promote_function_mode hook on libcall arguments.
1884 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1885 argument being NULL.
1886 * targhooks.c (default_promote_function_mode): Lisewise.
1887 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1888 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1890 * doc/tm.texi: Document that TYPE argument might be NULL.
1892 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1894 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1896 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1899 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1901 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1903 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1904 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1906 * mips-tfile.c: ... here.
1907 Don't include coretypes.h, tm.h, filenames.h.
1908 (saber_stop): Remove definition and all calls.
1909 [__SABER__]: Remove.
1910 (__LINE__): Remove default.
1911 (Size_t, Ptrdiff_t): Remove definitions.
1912 Replace by size_t, ptrdiff_t.
1913 [!MIPS_DEBUGGING_INFO]: Remove.
1914 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1915 (progname): Add const.
1917 Replace all uses by static.
1918 (ALIGN_SYMTABLE_OFFSET): Remove default.
1919 * mips-tdump.c: Don't include coretypes.h, tm.h.
1920 Remove !MIPS_IS_STAB guard.
1921 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1922 $(TM_H), filenames.h dependencies.
1923 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1925 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1928 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1929 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1931 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1934 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1935 account and save/restore RETS.
1936 (PROFILE_BEFORE_PROLOGUE): Define.
1937 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1938 the push insn to use predecrement.
1940 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1943 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1945 2011-05-04 Nick Clifton <nickc@redhat.com>
1947 * config/mn10300/mn10300.c: Include cfgloop.h.
1949 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1950 Lcc or a FLcc insn into the instruction stream.
1951 (mn10300_block_contains_call): New function. Returns true if the
1952 given basic block contains a CALL insn.
1953 (mn10300_loop_contains_call_insn): New function. Returns true if
1954 the given loop contains a CALL insn.
1955 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1956 to use the SETLB and Lcc or FLcc insns.
1957 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1958 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1959 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1960 disable the SETLB optimization.
1961 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1962 __SETLB__ or __NO_SETLB__.
1963 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1964 (movsf_internal): Handle MDR register.
1965 (cmpsi): Make visible.
1966 (setlb): New pattern.
1968 (FLcc): New pattern.
1970 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1973 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1974 for reg<->xmm moves.
1975 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1976 (vec_concatv2di_rex64_sse): Ditto.
1977 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1978 (*vec_extractv2di_1_rex64): Ditto.
1981 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1983 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1985 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1987 2011-05-04 Richard Guenther <rguenther@suse.de>
1989 * tree.h (int_const_binop): Remove notrunc argument.
1990 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1991 create integer constants that are properly truncated.
1992 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1993 (const_binop): Remove zero notrunc argument to int_const_binop.
1994 (size_binop_loc): Likewise.
1995 (fold_div_compare): Likewise.
1996 (maybe_canonicalize_comparison_1): Likewise.
1997 (fold_comparison): Likewise.
1998 (fold_binary_loc): Likewise.
1999 (multiple_of_p): Likewise.
2000 * expr.c (store_constructor): Likewise.
2001 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2002 (maybe_fold_stmt_addition): Likewise.
2003 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2004 * stor-layout.c (layout_type): Likewise.
2005 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2006 * tree-sra.c (build_ref_for_offset): Likewise.
2007 (build_user_friendly_ref_for_offset): Likewise.
2008 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2009 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2010 * tree-ssa-loop-niter.c (inverse): Likewise.
2011 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2012 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2013 * tree-switch-conversion.c (check_range): Likewise.
2014 (build_constructors): Likewise.
2015 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2016 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2017 (extract_range_from_assert): Likewise.
2018 (vrp_int_const_binop): Likewise.
2019 (extract_range_from_binary_expr): Likewise.
2020 (extract_range_from_unary_expr): Likewise.
2021 (check_array_ref): Likewise.
2022 (find_case_label_range): Likewise.
2023 (simplify_div_or_mod_using_ranges): Likewise.
2024 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2025 comparing case labels for merging.
2027 2011-05-03 Mark Wielaard <mjw@redhat.com>
2029 * dwarf2out.c (debug_str_hash_forced): Removed.
2030 (gen_label_for_indirect_string): Removed.
2031 (get_debug_string_label): Removed.
2032 (AT_string_form): Generate label directly.
2033 (output_indirect_string): Test indirect_string_node for
2034 DW_FORM_strp instead of checking label and refcount.
2035 (prune_indirect_string): Removed.
2036 (prune_unused_types): Don't check debug_str_hash_forced or
2037 call prune_indirect_string.
2039 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2042 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2044 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2048 * combine.c (try_combine): Skip debug insns at m_split tests.
2050 2011-04-26 Mark Wielaard <mjw@redhat.com>
2053 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2054 when info_section_emitted.
2056 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2058 * config/mips/mips-opts.h: New.
2059 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2061 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2062 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2063 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2065 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2067 (mips_abi, mips_code_readable): Don't declare.
2068 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2069 (mabi=): Use Enum and Var.
2070 (mips_abi): New Enum and EnumValue entries.
2071 (mcode-readable=): Use Enum and Var.
2072 (mips_code_readable_setting): New Enum and EnumValue entries.
2073 (mr10k-cache-barrier=): Use Enum and Var.
2074 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2076 2011-05-03 Jan Hubicka <jh@suse.cz>
2078 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2079 replace hash by pointer map.
2080 (cgraph_node_set_element_def, cgraph_node_set_element,
2081 const_cgraph_node_set_element, varpool_node_set_element_def,
2082 varpool_node_set_element, const_varpool_node_set_element): Remove.
2083 (free_cgraph_node_set, free_varpool_node_set): New function.
2084 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2085 * tree-emutls.c: Free varpool node set.
2086 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2087 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2088 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2089 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2090 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2091 Move here from ipa.c; implement using pointer_map
2092 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2093 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2094 debug_cgraph_node_set, varpool_node_set_new,
2095 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2096 dump_varpool_node_set, debug_varpool_node_set):
2097 Move to ipa-uitls.c.
2098 * passes.c (ipa_write_summaries): Update.
2100 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2102 From Mike Frysinger:
2103 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2104 bf542/bf544/bf547/bf548/bf549.
2106 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2108 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2110 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2113 * config/bfin/bfin.md (MOVCC): New mode_macro.
2114 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2115 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2116 comments from generated assembly.
2118 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2121 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2122 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2123 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2124 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2125 * config/bfin/lib1funcs.asm (___muldi3): New function.
2127 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2129 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2130 build_function_type_list instead of build_function_type.
2131 Rearrange initialization of `args' to do so.
2133 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2135 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2136 instead of build_function_type.
2138 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2140 * config/rs6000/rs6000.c (spe_init_builtins): Call
2141 build_function_type_list instead of build_function_type.
2142 (paired_init_builtins, altivec_init_builtins): Likewise.
2143 (builtin_function_type): Likewise.
2145 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2147 * config/sh/sh.c (sh_media_init_builtins): Call
2148 build_function_type_list instead of build_function_type.
2150 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2152 * config/sparc/sparc.c (sparc_file_end): Call
2153 build_function_type_list instead of build_function_type.
2155 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2157 * config/alpha/alpha.c (alpha_init_builtins): Call
2158 build_function_type_list instead of build_function_type.
2160 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2162 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2163 build_function_type_list instead of build_function_type.
2165 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2167 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2168 build_function_type_list instead of build_function_type.
2169 Delete `endlink' variable.
2171 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2173 * config/avr/avr.c (avr_init_builtins): Call
2174 build_function_type_list instead of build_function_type.
2176 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2178 * config/picochip/picochip.c (picochip_init_builtins): Call
2179 build_function_type_list instead of build_function_type.
2180 Delete `endlink' variable.
2182 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2184 * config/bfin/bfin.c (bfin_init_builtins): Call
2185 build_function_type_list instead of build_function_type.
2187 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2190 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2191 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2193 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2196 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2197 libbffastfp overrides libgcc when -mfast-fp.
2199 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2201 Originally from Bernd Schmidt
2202 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2203 * config/bfin/bfin.c (override_options): Test it and error if
2206 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2208 Originally From Bernd Schmidt
2209 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2212 2011-05-03 Jeff Law <law@redhat.com>
2214 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2215 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2216 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2217 than accessing AUX field directly. Free the AUX field before
2219 (thread_block, thread_through_loop_header): Likewise.
2220 (thread_single_edge, mark_threaded_blocks): Likewise.
2221 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2222 (register_jump_thread): Do not attempt to thread to a NULL edge.
2224 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2226 * function.c (init_function_start): Call decide_function_section.
2227 * varasm.c (decide_function_section): New function.
2228 (assemble_start_function): When not using
2229 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2230 or first_function_block_is_cold.
2231 * rtl.h (decide_function_section): Declare.
2233 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2234 Jakub Jelinek <jakub@redhat.com>
2237 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2238 only succeed if req_mode is the same as set_mode.
2240 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2242 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2243 * genemit.c (gen_exp): Handle RETURN.
2244 * emit-rtl.c (verify_rtx_sharing): Likewise.
2245 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2246 * rtl.c (copy_rtx): RETURN is shared.
2247 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2249 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2250 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2251 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2252 * config/cris/cris.c (cris_expand_return): Likewise.
2253 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2254 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2255 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2256 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2257 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2259 * config/v850/v850.c (expand_epilogue): Likewise.
2260 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2261 * config/arm/arm.md (epilogue): Likewise.
2262 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2263 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2264 variable to ret_reg.
2266 2011-05-03 Richard Guenther <rguenther@suse.de>
2269 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2270 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2271 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2273 2011-05-03 Richard Guenther <rguenther@suse.de>
2275 * c-decl.c (grokdeclarator): Instead of looking at
2276 TREE_OVERFLOW check if the constant fits in the index type.
2278 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2280 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2281 (vec_store_lanes<mode><mode>): Likewise.
2283 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2285 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2286 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2287 convert_optab_index values.
2288 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2289 * genopinit.c (optabs): Initialize the new optabs.
2290 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2291 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2292 (expand_STORE_LANES): New functions.
2293 * tree.h (build_array_type_nelts): Declare.
2294 * tree.c (build_array_type_nelts): New function.
2295 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2296 (vect_model_load_cost): Likewise.
2297 (vect_store_lanes_supported, vect_load_lanes_supported)
2298 (vect_record_strided_load_vectors): Declare.
2299 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2300 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2301 (vect_transform_strided_load): Split out statement recording into...
2302 (vect_record_strided_load_vectors): ...this new function.
2303 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2304 (write_vector_array, create_array_ref): New functions.
2305 (vect_model_store_cost): Add store_lanes_p argument.
2306 (vect_model_load_cost): Add load_lanes_p argument.
2307 (vectorizable_store): Try to use store-lanes functions for
2309 (vectorizable_load): Likewise load-lanes and loads.
2310 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2311 to vect_model_store_cost.
2312 (vect_build_slp_tree): Likewise vect_model_load_cost.
2314 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2316 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2317 * hooks.c (hook_bool_mode_uhwi_false): New function.
2318 * target.def (array_mode_supported_p): New hook.
2319 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2320 * doc/tm.texi: Regenerate.
2321 * stor-layout.c (mode_for_array): New function.
2322 (layout_type): Use it.
2323 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2324 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2326 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2329 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2330 for -fstack-check if the size to allocate is negative.
2332 2011-05-02 Lawrence Crowl <crowl@google.com>
2334 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2335 (timevar_cond_start): New for starting a timer only when it is not
2337 (timevar_cond_stop): New for stopping a timer when it was not already
2340 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2341 (timevar_cond_start): New as above.
2342 (timevar_cond_stop): New as above.
2344 * timevar.def: Add start/stop timers for compiler phases,
2345 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2346 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2347 and TV_PHASE_FINALIZE.
2348 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2349 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2350 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2351 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2352 Make unused TV_OVERLOAD into a start/stop timer.
2354 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2355 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2356 to indicate that they are start/stop timers.
2358 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2359 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2360 Move initialization to do_compile.
2361 (do_compile): Add initialization from above.
2362 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2364 * c-decl.c (c_write_global_declarations): Add start/stop of
2365 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2367 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2368 or TV_PARSE_INLINE, as appropriate.
2369 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2370 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2372 2011-05-02 Jason Merrill <jason@redhat.com>
2375 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2377 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2380 * c-decl.c (finish_decl): Only create a composite if the types are
2383 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2385 * config/fr30/fr30-protos.h (Mmode): Don't define.
2386 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2387 definition where used.
2388 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2389 define. Expand definitions where used.
2390 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2391 Expand definitions where used.
2392 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2393 rx_function_arg, rx_function_arg_advance,
2394 rx_function_arg_boundary): Expand definitions of those macros.
2395 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2396 definition where used.
2398 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2400 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2402 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2403 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2404 with *movv2sf_internal_rex64_avx.
2405 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2406 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2407 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2408 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2409 "vex" in "prefix" attribute calculation.
2410 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2412 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2415 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2416 inputs match the output.
2418 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2421 * config/m68k/m68k.c (m68k_expand_prologue): Set
2422 current_function_static_stack_size.
2424 2011-05-02 Jan Hubicka <jh@suse.cz>
2426 * lto-streamer.c (lto_streamer_cache_insert_1,
2427 lto_streamer_cache_lookup, lto_streamer_cache_create,
2428 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2429 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2431 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2433 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2434 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2435 config/m68k/t-opts: New files.
2436 * config/m68k/m68k-tables.opt: New file (generated).
2437 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2438 extra_options and m68k/t-opts to tmake_file.
2439 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2440 (all_isas): Initialize using m68k-isas.def.
2441 (all_microarchs): Initialize using m68k-microarchs.def.
2442 (m68k_find_selection): Remove.
2443 (m68k_handle_option): Don't assert that global structures are in
2444 use. Use error_at. Access variables via opts pointer. Don't
2445 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2446 directly for -m68020-40 and -m68020-60.
2447 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2448 m68k_tune_entry here.
2449 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2451 (m68k_library_id_string): Remove declaration.
2452 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2453 (m68k_library_id_string): New Variable.
2454 (march=, mcpu=, mtune=): Use Enum and Var.
2456 2011-05-02 Richard Guenther <rguenther@suse.de>
2458 * varasm.c (output_constructor_regular_field): Compute zero-based
2459 index with double-ints. Make sure to ICE instead of producing
2461 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2462 in asserts. Properly use a signed type.
2464 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2466 * config/i386/sse.md (V): New mode iterator.
2467 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2469 (V_256): Rename from AVX256MODE.
2470 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2471 condition to all users.
2473 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2474 condition to all users.
2475 (VF_128): Make V4SF mode unconditional.
2476 (VF_256): Rename from AVX256MODEF2P.
2477 (VI4F_128): Rename from SSEMODE4S.
2478 (VI8F_128): Rename from SSEMODE2D.
2479 (VI4F_256): Rename from AVX256MODE8P.
2480 (VI8F_256): Rename from AVX256MODE4P.
2481 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2482 (ssescalarmodesuffix): Remove SF and DF modes.
2483 (SSEMODE124): Remove.
2484 (SSEMODE1248): Ditto.
2485 (SSEMODEF2P): Ditto.
2486 (AVXMODEF2P): Ditto.
2487 (AVXMODEFDP): Ditto.
2488 (AVXMODEFSP): Ditto.
2489 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2491 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2493 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2494 xop_pcmov_<mode>256. Use V mode iterator.
2496 Adjust RTX patterns globally for renamed mode attributes.
2498 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2500 * haifa-sched.c (sched_emit_insn): Emit insn before first
2501 non-scheduled insn. Inform back-end about new insn. Add
2502 new insn to scheduled_insns list.
2504 2011-05-02 Richard Guenther <rguenther@suse.de>
2506 PR tree-optimization/48822
2507 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2508 (process_scc): Indicate which iteration we start.
2510 2011-05-02 Jan Hubicka <jh@suse.cz>
2512 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2513 (lto_section_overrun): New.
2514 * lto-section-out.c (append_block): Rename to ...
2515 (lto_append_block): ... this one; export.
2516 (lto_output_1_stream): Move lto lto-streamer.h
2517 (lto_output_data_stream): Update.
2518 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2519 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2522 2011-05-02 Richard Guenther <rguenther@suse.de>
2524 * tree.c (tree_code_counts): New global array.
2525 (record_node_allocation_statistics): Count individual tree codes.
2526 (dump_tree_statistics): Dump individual code stats.
2528 2011-05-01 Jan Hubicka <jh@suse.cz>
2530 * ipa-inline.c (caller_growth_limits): Fix thinko when
2531 looking for largest stack frame.
2532 * ipa-inline.h (dump_inline_summary): Declare.
2533 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2535 (dump_inline_summary): Export.
2536 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2538 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2540 * reginfo.c (memory_move_cost): Change rclass argument type form
2541 'enum reg_class' to reg_class_t.
2542 * reload.h (memory_move_cost): Update prototype.
2543 * postreload.c reload_cse_simplify_set): Change type dclass var to
2545 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2547 (ira_allocate_and_set_costs): Change aclass argument type form
2548 'enum reg_class' to reg_class_t.
2549 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2550 Change aclass argument type to reg_class_t.
2551 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2553 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2554 memory_move_cost call.
2556 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2557 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2558 Change type tmp var to reg_class_t.
2560 2011-04-30 Jan Hubicka <jh@suse.cz>
2562 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2563 inlining into function with flatten attribute.
2564 (want_inline_small_function_p): Be more realistic about inlining
2565 cold calls where callee size grows.
2567 2011-04-30 Jan Hubicka <jh@suse.cz>
2569 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2572 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2574 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2575 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2576 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2577 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2578 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2579 (print_operand): Rename to...
2580 (sparc_print_operand): ...this. Make static. Adjust
2581 sparc_print_operand function call.
2582 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2585 2011-04-30 Jan Hubicka <jh@suse.cz>
2588 * ipa-inline.c (early_inliner): Disable when doing late
2589 addition of function.
2591 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2593 * dwarf2out.c (get_address_mode): New inline.
2594 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2595 if not dwarf_strict emit
2596 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2597 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2598 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2599 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2600 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2601 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2602 mem_loc_descriptor callers.
2603 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2604 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2605 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2606 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2607 (base_types): New variable.
2608 (get_base_type_offset, calc_base_type_die_sizes,
2609 base_type_for_mode, mark_base_types, base_type_cmp,
2610 move_marked_base_types): New functions.
2611 (calc_die_sizes): Assert that die_offset is 0 or equal to
2613 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2614 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2615 callers. If not dwarf_strict, call mem_loc_descriptor even for
2616 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2617 (gen_subprogram_die): Don't give up on call site parameters
2618 with non-integral or large integral modes. Adjust
2619 mem_loc_descriptor callers.
2620 (prune_unused_types): Call prune_unused_types_mark on base_types
2622 (resolve_addr): Call mark_base_types.
2623 (dwarf2out_finish): Call move_marked_base_types.
2625 PR tree-optimization/48809
2626 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2628 (gen_inbound_check): Don't compute index_expr - range_min in utype
2629 again, instead reuse SSA_NAME initialized in build_arrays.
2630 Remove two useless gsi_for_stmt calls.
2632 2011-04-29 Jeff Law <law@redhat.com>
2634 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2636 2011-04-29 Martin Jambor <mjambor@suse.cz>
2638 * cgraph.h (cgraph_postorder): Remove declaration.
2639 * ipa-utils.h (ipa_free_postorder_info): Declare.
2640 (ipa_reverse_postorder): Likewise.
2641 * cgraphunit.c: Include ipa-utils.h.
2642 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2643 * ipa-inline.c: Include ipa-utils.h.
2644 (ipa_inline): Update call to ipa_reverse_postorder.
2645 * ipa-pure-const.c (propagate_pure_const): Update call to
2646 ipa_reduced_postorder and ipa_print_order. Call
2647 ipa_free_postorder_info to clean up.
2648 (propagate_nothrow): Likewise.
2649 * ipa-reference.c (propagate): Removed a useless call to
2650 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2651 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2652 * ipa.c: Include ipa-utils.h.
2653 (ipa_profile): Update call to ipa_reverse_postorder.
2654 (cgraph_postorder): Moved to...
2655 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2656 (ipa_utils_print_order): Renamed to ipa_print_order.
2657 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2659 (ipa_free_postorder_info): New function.
2660 * passes.c: Include ipa-utils.h.
2661 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2662 (ipa_write_summaries): Likewise.
2663 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2664 (cgraphunit.o): Likewise.
2666 (ipa-inline.o): Likewise.
2668 2011-04-29 Jan Hubicka <jh@suse.cz>
2670 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2671 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2672 * ipa-inline.h (clause_t): Turn into unsigned int.
2673 * ipa-inline-analysis.c (add_clause): Do more simplification.
2674 (and_predicates): Shortcut more cases.
2675 (predicates_equal_p): Move forward; check that clauses are properly
2677 (or_predicates): Shortcut more cases.
2678 (edge_execution_predicate): Rewrite as...
2679 (set_cond_stmt_execution_predicate): ... this function; handle
2680 __builtin_constant_p.
2681 (set_switch_stmt_execution_predicate): New .
2682 (compute_bb_predicates): New.
2683 (will_be_nonconstant_predicate): Update TODO.
2684 (estimate_function_body_sizes): Use compute_bb_predicates
2685 and free them later, always try to estimate if stmt is constant.
2686 (estimate_time_after_inlining, estimate_size_after_inlining):
2687 Gracefully handle optimized out edges.
2688 (read_predicate): Fix off by one error.
2690 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2692 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2694 2011-04-27 Xinliang David Li <davidxl@google.com>
2696 * tree-profile.c (init_ic_make_global_vars): Set
2697 tls attribute on ic vars.
2698 * coverage.c (coverage_end_function): Initialize
2699 function_list with zero.
2701 2011-04-29 Richard Guenther <rguenther@suse.de>
2703 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2704 for the type of the result.
2705 (fold_builtin_isascii): Likewise.
2706 (fold_builtin_toascii): Use integer_type_node where appropriate.
2707 (fold_builtin_logb): Likewise.
2708 (fold_builtin_frexp): Likewise.
2709 (fold_builtin_strstr): Likewise.
2710 (fold_builtin_strpbrk): Likewise.
2711 (fold_builtin_fputs): Likewise.
2712 (fold_builtin_sprintf): Likewise.
2713 (fold_builtin_snprintf): Likewise.
2714 (fold_builtin_printf): Likewise.
2715 (do_mpfr_remquo): Use a proper type for the assigned constant.
2716 (do_mpfr_lgamma_r): Likewise.
2717 * dwarf2out.c (resolve_one_addr): Use size_int.
2718 * except.c (init_eh): Likewise.
2719 (assign_filter_values): Use integer_type_node for filter values.
2720 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2722 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2723 for EH region numbers.
2724 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2725 for the shift amount.
2727 2011-04-29 Richard Guenther <rguenther@suse.de>
2729 * expr.h (expand_shift): Rename to ...
2730 (expand_variable_shift): ... this.
2731 (expand_shift): Take a constant shift amount.
2732 * expmed.c (expand_shift): Rename to ...
2733 (expand_variable_shift): ... this.
2734 (expand_shift): New wrapper around expand_variable_shift.
2735 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2736 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2737 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2738 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2739 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2740 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2741 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2742 emit_store_flag_1, emit_store_flag): Likewise.
2743 * builtins.c (expand_builtin_signbit): Likewise.
2744 * calls.c (load_register_parameters): Likewise.
2745 * function.c (assign_parm_setup_block): Likewise.
2746 * lower-subreg.c (resolve_shift_zext): Likewise.
2747 * optabs.c (widen_bswap, expand_abs_nojump,
2748 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2749 * spu/spu.c (spu_expand_extv): Likewise.
2750 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2752 2011-04-29 Richard Guenther <rguenther@suse.de>
2754 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2755 for the remapped region number.
2756 * predict.c (build_predict_expr): Use integer_type_node for the
2758 * fold-const.c (fold_binary_loc): Use integer_type_node for
2759 the shift amount. Use a proper type for the PLUS_EXPR operand.
2761 2011-04-29 Michael Matz <matz@suse.de>
2763 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2764 other trees that just builtins.
2765 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2767 2011-04-29 Richard Guenther <rguenther@suse.de>
2769 * tree-nested.c (get_trampoline_type): Use size_int.
2770 (get_nl_goto_field): Likewise.
2771 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2773 (lower_eh_constructs_2): Likewise.
2774 (lower_resx): Likewise.
2775 (lower_eh_dispatch): Likewise.
2776 * tree-mudflap.c (mf_build_string): Use size_int.
2777 (mudflap_register_call): Use integer_type_node for the flag.
2778 (mudflap_enqueue_constant): Use size_int.
2779 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2780 instead of rebuilding it.
2782 2011-04-29 Richard Guenther <rguenther@suse.de>
2784 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2785 Handle OBJ_TYPE_REF.
2786 (find_func_aliases_for_call): Use it more consistently.
2788 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2790 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2791 (rank_for_schedule): Use it.
2792 (schedule_block): Set it.
2794 2011-04-28 David Li <davidxl@google.com>
2796 * tree.c (crc32_string): Use crc32_byte.
2797 (crc32_byte): New function.
2798 * tree.h (crc32_byte): New function.
2799 * gcov.c (read_graph_file): Handle new cfg_cksum.
2800 (read_count_file): Ditto.
2801 * profile.c (instrument_values): Ditto.
2802 (get_exec_counts): Ditto.
2803 (read_profile_edge_counts): Ditto.
2804 (compute_branch_probabilities): Ditto.
2805 (compute_value_histograms): Ditto.
2806 (branch_prob): Ditto.
2807 (end_branch_prob): Ditto.
2808 * coverage.c (read_counts_file): Ditto.
2809 (get_coverage_counts): Ditto.
2810 (tree_coverage_counter_addr): Ditto.
2811 (coverage_checksum_string): Ditto.
2812 (coverage_begin_output): Ditto.
2813 (coverage_end_function): Ditto.
2814 (build_fn_info_type): Ditto.
2815 (build_fn_info_value): Ditto.
2816 * libgcov.c (gcov_exit): Ditto.
2817 * gcov-dump.c (tag_function): Ditto.
2818 (compute_checksum): Remove.
2820 2011-04-29 Alan Modra <amodra@gmail.com>
2822 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2823 unspec plus offset. Tidy macho code.
2825 2011-04-29 Martin Jambor <mjambor@suse.cz>
2827 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2828 node instead of a decl. Update all callers.
2829 * cgraph.h: Update declaration.
2831 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2833 PR tree-optimization/48765
2834 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2835 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2836 to indicate if loop aware SLP is being used. Scan the statements
2837 and update the vectorization factor according to the type of
2838 vectorization before statement analysis.
2839 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2840 pass it to vect_analyze_loop_operations.
2841 (vectorizable_reduction): Set number of copies to 1 in case of pure
2843 * tree-vect-stmts.c (vectorizable_conversion,
2844 vectorizable_assignment, vectorizable_shift,
2845 vectorizable_operation, vectorizable_type_demotion,
2846 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2848 (vectorizable_condition): Move the check that it is not SLP
2849 vectorization before the number of copies check.
2850 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2851 to vectorize the loop using SLP.
2853 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2856 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2859 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2861 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2862 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2863 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2864 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2865 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2867 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2868 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2869 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2870 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2871 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2872 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2874 * config/i386/linux.h (REG_NAME): Don't define.
2875 * config/i386/linux64.h (REG_NAME): Don't define.
2876 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2877 Undefine before defining.
2879 2011-04-28 Jan Hubicka <jh@suse.cz>
2881 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2882 nonconstant_names array.
2883 (estimate_function_body_sizes): Build nonconstant_names array; handle
2884 BUILT_IN_CONSTANT_P.
2886 2011-04-28 Richard Guenther <rguenther@suse.de>
2890 2011-04-28 Richard Guenther <rguenther@suse.de>
2892 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2893 as late as possible.
2895 2011-04-28 Richard Guenther <rguenther@suse.de>
2897 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2898 (debug_constraint): Do it here.
2899 (dump_constraints): And here.
2900 (rewrite_constraints): And here.
2901 (dump_constraint_edge): Remove.
2902 (dump_constraint_graph): Rewrite to produce DOT output.
2903 (solve_constraints): Build succ graph as late as possible.
2904 Dump constraint graphs before and after solving.
2906 2011-04-28 Richard Guenther <rguenther@suse.de>
2908 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2909 New function split out from ...
2910 (find_func_aliases): ... here. Call it.
2911 (find_func_aliases_for_call): Likewise.
2913 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2915 * internal-fn.h (internal_fn_name_array): Declare.
2916 (internal_fn_flags_array): Likewise.
2918 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2920 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2921 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2923 (ssemodefsuffix): Remove.
2924 (ssevecmodesuffix): New mode attribute.
2925 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2926 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2927 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2928 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2929 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2930 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2931 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2932 ssemodesuffix mode attribute.
2933 (float splitters): Use ssevecmodesuffix mode attribute.
2934 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2935 (sseinsmode): Rename from avxvecmode.
2936 (avxsizesuffix): Rename from avxmodesuffix.
2937 (sseintvecmode): Rename from avxpermvecmode.
2938 (ssedoublevecmode): Rename from ssedoublesizemode.
2939 (ssehalfvecmode): Rename from avxhalfvecmode.
2940 (ssescalarmode): Rename from avxscalarmode.
2941 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2942 templates for ssemodesuffix mode attribute.
2943 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2946 Adjust RTX patterns globally for renamed mode attributes.
2948 2011-04-27 Jan Hubcika <jh@suse.cz>
2950 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2951 * ipa-inline-analysis.c: Include alloc-pool.h.
2952 (edge_predicate_pool): New.
2953 (trye_predicate_p): New function
2954 (false_predicate_p): New function.
2955 (add_clause): Sanity check that false clauses are "optimized";
2956 never add clauses to predicate that is already known to be false.
2957 (and_predicate): Use flase_predicate_p.
2958 (evaulate_predicate): Rename to ...
2959 (evaluate_predicate): ... this one; update all callers; assert
2960 that false is not listed among possible truths.
2961 (dump_predicate): Use true_predicate_p.
2962 (account_size_time): Use false_predicate_p.
2963 (evaulate_conditions_for_edge): Rename to ...
2964 (evaluate_conditions_for_edge) ... this one.
2965 (edge_set_predicate): New function.
2966 (inline_edge_duplication_hook): Duplicate edge predicates.
2967 (inline_edge_removal_hook): Free edge predicates.
2968 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2969 (dump_inline_summary): Update.
2970 (estimate_function_body_sizes): Set edge predicates.
2971 (estimate_calls_size_and_time): Handle predicates.
2972 (estimate_callee_size_and_time): Update.
2973 (remap_predicate): Add toplev_predicate; update comment.
2974 (remap_edge_predicates): New function.
2975 (inline_merge_summary): Compute toplev predicate; update.
2976 (read_predicate): New function.
2977 (read_inline_edge_summary): Use it.
2978 (inline_read_section): Likewise.
2979 (write_predicate): New function.
2980 (write_inline_edge_summary): Use it.
2981 (inline_write_summary): Likewise.
2982 (inline_free_summary): Free alloc pool and edge summary vec.
2984 2011-04-27 Richard Guenther <rguenther@suse.de>
2986 * tree-ssa-structalias.c (changed_count): Remove.
2987 (changed): Use a bitmap.
2988 (unify_nodes): Adjust.
2989 (do_sd_constraint): Likewise.
2990 (do_ds_constraint): Likewise.
2991 (do_complex_constraint): Likewise.
2992 (solve_graph): Likewise.
2994 2011-04-27 Jan Hubicka <jh@suse.cz>
2996 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2998 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3000 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3001 (avx_vperm2f128_*_operand): Ditto.
3002 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3003 Use avx_vpermilp_parallel in insn condition.
3004 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3005 Use avx_vperm2f128_parallel in insn condition.
3007 2011-04-27 Richard Guenther <rguenther@suse.de>
3009 * Makefile.in (tree-ssa-structalias.o): Remove
3010 gt-tree-ssa-structalias.h dependency.
3011 (GTFILES): Remove tree-ssa-structalias.c.
3012 * tree.c (allocate_decl_uid): New function.
3013 (make_node_stat): Use it.
3014 (copy_node_stat): Likewise.
3015 * tree.h (allocate_decl_uid): Declare.
3016 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3017 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3018 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3019 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3020 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3021 (struct heapvar_map): Likewise.
3022 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3023 heapvar_insert): Likewise.
3024 (make_heapvar_for): Rename to ...
3025 (make_heapvar): ... this. Simplify.
3026 (fake_var_decl_obstack): New global var.
3027 (build_fake_var_decl): New function.
3028 (make_constraint_from_heapvar): Adjust.
3029 (handle_lhs_call): Likewise.
3030 (create_function_info_for): Likewise.
3031 (intra_create_variable_infos): Likewise.
3032 (init_alias_vars): Allocate fake_var_decl_obstack.
3033 (init_alias_heapvars, delete_alias_heapvars): Remove.
3034 (compute_points_to_sets): Do not call init_alias_heapvars.
3035 (ipa_pta_execute): Likewise.
3036 (delete_points_to_sets): Free fake_var_decl_obstack.
3038 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3040 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3041 (si_from_UTItype, si_to_UTItype): New functions.
3042 (__udivmodti4): Use them to implement type-punning.
3043 * config/spu/multi3.c (union qword_TItype): New data type.
3044 (si_from_TItype, si_to_TItype): New functions.
3045 (__multi3): Use them to implement type-punning.
3047 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3049 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3051 2011-04-27 Jan Hubicka <jh@suse.cz>
3053 * ipa-prop.c (function_insertion_hook_holder): New holder.
3054 (ipa_add_new_function): New function.
3055 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3056 Register/deregister holder.
3058 2011-04-27 Richard Guenther <rguenther@suse.de>
3060 PR tree-optimization/48772
3061 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3063 2011-04-27 Richard Guenther <rguenther@suse.de>
3065 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3066 TARGET_MEM_REF handling.
3068 2011-04-27 Nick Clifton <nickc@redhat.com>
3070 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3071 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3072 (REG_CLASS_NAMES): Likewise.
3073 (REG_CLASS_CONTENTS): Likewise.
3074 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3075 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3076 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3077 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3078 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3079 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3080 duplicate register classes.
3081 (frv_class_likely_spilled_p): Likewise.
3082 (frv_register_move_cost): Likewise.
3084 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3085 end of the regno_reg_class array.
3087 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3090 * c-typeck.c (build_binary_op): Don't wrap arguments if
3091 int_operands is true.
3093 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3096 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3097 targetm.calls.must_pass_in_stack for void type.
3099 2011-04-26 Jan Hubicka <jh@suse.cz>
3101 * cgraphbuild.c (build_cgraph_edges): Update call
3102 of cgraph_create_edge and cgraph_create_indirect_edge.
3103 * cgraph.c (cgraph_create_edge_including_clones,
3104 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3105 cgraph_update_edges_for_call_stmt_node): Do not take nest
3106 argument; do not initialize call_stmt_size/time.
3107 (dump_cgraph_node): Do not dump nest.
3108 (cgraph_clone_edge): Do not take loop_nest argument;
3109 do not propagate it; do not clone call_stmt_size/time.
3110 (cgraph_clone_node): Likewise.
3111 (cgraph_create_virtual_clone): Update.
3112 * cgraph.h (struct cgraph_edge): Remove
3113 call_stmt_size/call_stmt_time/loop_nest.
3114 (cgraph_create_edge, cgraph_create_indirect_edge,
3115 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3117 * tree-emutls.c (gen_emutls_addr): Update.
3118 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3119 loop_nest; handle indirect calls, too.
3120 (clone_inlined_nodes): Do not care about updating inline summaries.
3121 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3122 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3123 stream call_stmt_size/call_stmt_time/loop_nest.
3124 * ipa-inline.c (edge_badness): Update.
3125 (ipa_inline): dump summaries after inlining.
3126 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3128 (inline_edge_summary): New function.
3129 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3130 (inline_edge_removal_hook): Handle edge summaries.
3131 (inline_edge_duplication_hook): New hook.
3132 (inline_summary_alloc): Alloc hooks.
3133 (initialize_growth_caches): Do not register removal hooks.
3134 (free_growth_caches); Do not free removal hook.
3135 (dump_inline_edge_summary): New function.
3136 (dump_inline_summary): Use it.
3137 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3138 (inline_update_callee_summaries): New function.
3139 (inline_merge_summary): Use it.
3140 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3141 (read_inline_edge_summary): New function.
3142 (inline_read_section): Use it.
3143 (write_inline_edge_summary): New function.
3144 (inline_write_summary): Use it.
3145 (inline_free_summary): Free edge new holders.
3146 * tree-inline.c (copy_bb): Update.
3148 2011-04-26 Jason Merrill <jason@redhat.com>
3150 * tree-eh.c (lower_try_finally_switch): Create the label along with
3151 the CASE_LABEL_EXPR.
3153 2011-04-26 David S. Miller <davem@davemloft.net>
3154 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3156 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3157 * configure: Regenerate.
3159 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3162 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3164 (VEC_reduc): New code iterator and splitters for vector reduction.
3165 (VEC_reduc_name): Ditto.
3166 (VEC_reduc_rtx): Ditto.
3167 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3168 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3170 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3171 support for extracting SF on VSX.
3173 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3174 generating xscvspdp.
3175 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3176 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3177 double add, minimum, maximum vector reduction.
3178 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3179 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3180 optimize double vector reduction.
3181 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3183 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3185 * config/fr30/fr30.h (inhibit_libc): Don't define.
3186 * config/m32r/m32r-protos.h: Correct comment.
3187 * config/v850/v850.h (GHS_default_section_names,
3188 GHS_current_section_names): Use tree, not union tree_node *.
3190 2011-04-26 Xinliang David Li <davidxl@google.com>
3192 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3193 * c-family/c-opts.c (c_common_handle_option): Set
3194 warn_maybe_uninitialized.
3195 * opts.c (common_handle_option): Ditto.
3196 * common.opt: New option.
3197 * tree-ssa.c (warn_uninit): Add one more parameter.
3198 (warn_uninitialized_var): Pass warning code.
3199 * tree-flow.h: Interface change.
3202 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3204 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3205 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3206 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3208 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3210 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3211 * config/mips/mips.opt (mmips-tfile): Remove.
3213 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3214 mips-tdump reference to ...
3215 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3216 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3217 reference by Tru64 UNIX.
3219 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3222 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3223 is error_mark_node, set value to NULL.
3225 PR tree-optimization/48734
3226 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3227 if return value from maybe_fold_*_comparsions isn't something
3228 the code is prepared to handle.
3230 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3232 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3234 (ext_QIreg_nomode_operands): Remove.
3235 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3239 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3241 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3243 2011-04-26 Richard Guenther <rguenther@suse.de>
3245 * c-typeck.c (build_unary_op): Do not expand array-refs via
3246 pointer arithmetic. Only adjust qualifiers for function types.
3248 2011-04-26 Richard Guenther <rguenther@suse.de>
3251 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3252 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3253 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3254 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3256 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3258 * doc/extend.texi: Document __underlying_type.
3260 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3262 * config/rs6000/titan.md (automata_option "progress"): Remove.
3264 2011-04-25 Jeff Law <law@redhat.com>
3266 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3268 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3270 * system.h (ENUM_BITFIELD): Remove.
3272 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3273 Eric Botcazou <ebotcazou@adacore.com>
3275 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3276 for STORE_FLAG_VALUE==-1 case.
3278 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3281 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3282 LEGITIMATE_PIC_OPERAND_P.
3284 2011-04-24 Jan Hubicka <jh@suse.cz>
3286 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3288 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3289 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3290 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3291 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3292 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3293 Sanity check predicate length.
3294 (remap_predicate): Likewise; sanity check jump functions.
3295 (inline_read_section, inline_write_summary): Sanity check
3298 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3301 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3302 __is_literal_type, and __is_trivial; update throughout about
3303 possibly cv-qualified void types.
3305 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3307 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3308 testsuite and make it version agnostic.
3310 2011-04-22 Jan Hubicka <jh@suse.cz>
3312 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3314 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3317 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3318 to VOID_TYPE even around MODIFY_EXPR.
3320 2011-04-22 Mike Stump <mikestump@comcast.net>
3322 * gensupport.c (read_md_rtx): Fix typo in comment.
3323 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3326 2011-04-22 Jan Hubicka <jh@suse.cz>
3328 * gengtype.c (open_base_files): Add ipa-inline.h include.
3329 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3330 ipa-prop.c; update all uses.
3331 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3332 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3333 merge summary of inlined function into former caller.
3334 * ipa-inline.c (max_benefit): Remove.
3335 (edge_badness): Compensate for removal of benefits.
3336 (update_caller_keys): Use
3337 reset_node_growth_cache/reset_edge_growth_cache.
3338 (update_callee_keys): Likewise.
3339 (update_all_callee_keys): Likewise.
3340 (inline_small_functions): Do not collect max_benefit; do not reset
3341 estimated_growth; call free_growth_caches and initialize_growth_caches.
3342 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3343 struct size_time_entry): New structures.
3344 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3345 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3346 and estimated_growth.
3347 (edge_growth_cache_entry): New structure.
3348 (node_growth_cache, edge_growth_cache): New global vars.
3349 (estimate_growth): Turn into inline.
3350 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3351 initialize_growth_caches, free_growth_caches): Declare.
3352 (estimate_edge_growth): Rewrite.
3353 (estimate_edge_time): Implement as inline cache lookup.
3354 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3356 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3357 (NUM_CONDITIONS): New constant.
3358 (predicate_conditions): New enum.
3359 (IS_NOT_CONSTANT): New constant.
3360 (edge_removal_hook_holder): New var.
3361 (node_growth_cache, edge_growth_cache): New global vars.
3362 (true_predicate, single_cond_predicate, false_predicate,
3363 not_inlined_predicate, add_condition, add_clause, and_predicates,
3364 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3365 dump_clause, dump_predicate, account_size_time,
3366 evaulate_conditions_for_edge): New functions.
3367 (inline_summary_alloc): Move to heap.
3368 (inline_node_removal_hook): Clear condition and entry vectors.
3369 (inline_edge_removal_hook): New function.
3370 (initialize_growth_caches, free_growth_caches): New function.
3371 (dump_inline_summary): Update.
3372 (edge_execution_predicate): New function.
3373 (will_be_nonconstant_predicate): New function.
3374 (estimate_function_body_sizes): Compute BB and constantness predicates.
3375 (compute_inline_parameters): Do not clear estimated_growth.
3376 (estimate_edge_size_and_time): New function.
3377 (estimate_calls_size_and_time): New function.
3378 (estimate_callee_size_and_time): New function.
3379 (remap_predicate): New function.
3380 (inline_merge_summary): New function.
3381 (do_estimate_edge_time): New function based on...
3382 (estimate_edge_time): ... this one.
3383 (do_estimate_edge_growth): New function.
3384 (do_estimate_growth): New function based on....
3385 (estimate_growth): ... this one.
3386 (inline_analyze_function): Analyze after deciding on jump functions.
3387 (inline_read_section): New function.
3388 (inline_read_summary): Use it.
3389 (inline_write_summary): Write all the new data.
3390 * ipa-prop.c (ipa_get_param_decl_index): Export.
3391 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3392 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3394 (ipa_get_lattice): Move here from ipa-cp.c
3395 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3396 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3397 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3398 cgraph_edge_inlinable_p): Remove.
3399 * cgraphunit.c: Include ipainline.h
3400 (cgraph_process_new_functions): Update call of
3401 compute_inline_parameters.
3403 2011-04-22 Richard Guenther <rguenther@suse.de>
3405 * tree.c (build_int_cst): Properly create canonicalized integer
3407 (build_int_cst_type): Remove scary comments.
3409 2011-04-22 Xinliang David Li <davidxl@google.com>
3411 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3412 by default when -Wno-error is not specified.
3413 * opts-global.c (decode_options): Remove call to
3414 control_warning_options.
3416 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3418 PR tree-optimization/48717
3419 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3420 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3422 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3424 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3425 definition where used.
3427 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3430 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3431 TREE_STATIC variables declared inside of some OpenMP construct.
3433 2011-04-22 Martin Jambor <mjambor@suse.cz>
3436 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3438 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3441 * c-typeck.c (pop_init_level): Do not warn about initializing
3444 2011-04-22 Alan Modra <amodra@gmail.com>
3446 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3447 when returning call_cookie.
3448 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3449 pointers, to functions with no more vector args than the current
3450 function, and some non-local calls for ABI_V4.
3451 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3452 sibcall_nonlocal_aix64): Combine to ..
3453 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3454 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3455 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3456 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3457 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3459 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3460 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3461 sibcall_value_symbolic_64): Delete.
3463 2011-04-21 Xinliang David Li <davidxl@google.com>
3465 * cgraph.h: Remove pid.
3466 * cgraph.c: Remove pid.
3467 * value-prof.c (init_node_map): New function.
3468 (del_node_map): New function.
3469 (find_func_by_funcdef_no): New function.
3470 (gimple_ic_transform): Call new function.
3471 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3472 * function.c (get_last_funcdef_no): New function.
3473 * function.h (get_last_funcdef_no): New function.
3474 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3475 to libgcov function.
3476 (tree-profiling): Call node map init and delete function.
3478 2011-04-21 Ian Lance Taylor <iant@google.com>
3480 * godump.c (go_format_type): Use exported Go name for anonymous
3483 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3485 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3486 Call builtin_function_type_list instead of builtin_function_type.
3487 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3489 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3491 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3492 build_function_type_list instead of build_function_type.
3493 Delete variable `endlink'.
3495 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3497 * config/s390/s390.c (s390_init_builtins): Call
3498 build_function_type_list instead of build_function_type.
3500 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3502 * config/ia64/ia64.c (ia64_init_builtins): Call
3503 build_function_type_list instead of builtin_function_type.
3505 2011-04-21 Easwaran Raman <eraman@google.com>
3507 * cfgexpand.c (stack_var): Remove OFFSET...
3508 (add_stack_var): ...and its reference here...
3509 (expand_stack_vars): ...and here.
3510 (stack_var_cmp): Sort by descending order of size.
3511 (partition_stack_vars): Change heuristic.
3512 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3513 (dump_stack_var_partition): Add newline after each partition.
3515 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3516 Jeff Law <law@redhat.com>
3518 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3519 * gengtype.c (matching_file_name_substitute): Likewise.
3521 2011-04-21 Richard Guenther <rguenther@suse.de>
3524 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3526 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3528 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3530 2011-04-21 Richard Guenther <rguenther@suse.de>
3532 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3535 2011-04-21 Richard Guenther <rguenther@suse.de>
3537 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3538 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3539 Use DECL_P, not SSA_VAR_P.
3540 (ptr_derefs_may_alias_p): Likewise.
3541 (ptr_deref_may_alias_ref_p_1): Likewise.
3542 (decl_refs_may_alias_p): Likewise.
3543 (refs_may_alias_p_1): Likewise.
3544 (ref_maybe_used_by_call_p_1): Likewise.
3545 (call_may_clobber_ref_p_1): Likewise.
3546 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3547 are either MEM_REF or TARGET_MEM_REF.
3548 (indirect_refs_may_alias_p): Likewise.
3549 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3550 for MEM_EXPR of indirect calls.
3552 2011-04-21 Tristan Gingold <gingold@adacore.com>
3554 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3555 (dst_file_info_struct): Remove flen field.
3556 (lookup_filename): Remove code that set flen field.
3558 2011-04-21 Tristan Gingold <gingold@adacore.com>
3560 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3562 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3565 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3566 vec_extract and vec_concat for non-SSE4_1 targets.
3568 2011-04-21 Richard Guenther <rguenther@suse.de>
3570 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3573 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3575 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3577 (FILE): Don't undefine.
3579 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3581 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3583 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3585 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3586 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3587 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3589 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3590 definitions where used.
3591 * config/microblaze/microblaze.h (struct microblaze_args): Use
3592 rtx, not struct rtx_def *.
3593 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3595 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3596 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3597 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3598 not struct rtx_def *.
3599 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3601 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3603 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3605 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3607 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3608 operand_equal_p to compare DR_BASE_ADDRESSes.
3609 (vect_check_interleaving): Likewise.
3611 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3614 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3615 for all Neon struct constants.
3617 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3619 * target.def (legitimate_constant_p): New hook.
3620 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3621 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3622 * doc/tm.texi: Regenerate.
3623 * hooks.h (hook_bool_mode_rtx_true): Declare.
3624 * hooks.c (hook_bool_mode_rtx_true): Define.
3625 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3626 * calls.c (precompute_register_parameters): Replace uses of
3627 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3628 (emit_library_call_value_1): Likewise.
3629 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3630 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3631 * ira-costs.c (scan_one_insn): Likewise.
3632 * recog.c (general_operand, immediate_operand): Likewise.
3633 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3634 * reload1.c (init_eliminable_invariants): Likewise.
3636 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3638 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3639 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3641 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3642 * config/alpha/predicates.md (input_operand): Update call to
3643 alpha_legitimate_constant_p.
3645 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3646 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3647 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3648 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3649 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3650 (arm_legitimate_constant_p): New functions.
3651 (arm_cannot_force_const_mem): Make static.
3653 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3655 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3656 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3657 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3658 instead of bfin_legitimate_constant_p.
3659 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3660 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3662 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3664 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3666 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3667 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3668 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3669 (frv_legitimate_constant_p): Make static. Add a mode argument.
3671 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3672 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3673 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3675 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3676 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3677 * config/i386/i386.c (legitimate_constant_p): Rename to...
3678 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3680 (ix86_cannot_force_const_mem): Update accordingly.
3681 (ix86_legitimate_address_p): Likewise.
3682 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3683 * config/i386/i386.md: Update commentary.
3685 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3686 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3687 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3688 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3690 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3692 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3693 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3694 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3695 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3697 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3698 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3699 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3701 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3702 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3703 (m32r_legitimate_constant_p): New function.
3705 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3706 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3707 LEGITIMATE_CONSTANT_P.
3708 (LEGITIMATE_CONSTANT_P): Delete.
3709 * config/m68k/m68k.c (m68k_expand_prologue): Call
3710 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3711 (m68k_legitimate_constant_p): New function.
3712 * config/m68k/m68k.md: Update comments.
3714 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3715 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3716 (mcore_legitimate_constant_p): New function.
3718 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3719 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3720 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3721 Add a mode argument.
3722 (mep_legitimate_address): Update accordingly.
3723 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3725 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3727 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3728 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3729 static. Check OP's mode for VOIDmode.
3730 (microblaze_legitimate_constant_p): New function.
3731 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3733 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3734 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3735 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3736 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3737 * config/mips/predicates.md: Update comments.
3739 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3740 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3741 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3742 (mmix_legitimate_constant_p): Make static, return a bool, and take
3744 (mmix_print_operand_address): Update accordingly.
3746 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3748 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3749 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3750 static. Add a mode argument.
3751 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3753 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3755 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3756 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3757 (pa_legitimate_constant_p): New function.
3759 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3761 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3762 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3763 (pdp11_legitimate_constant_p): New function.
3765 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3766 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3767 (rs6000_legitimate_constant_p): New function.
3769 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3770 (rx_legitimate_constant_p): ...this.
3771 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3772 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3773 (rx_legitimate_constant_p): ...this.
3774 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3775 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3777 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3778 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3779 * config/s390/s390.c (legitimate_constant_p): Rename to...
3780 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3781 and add a mode argument.
3782 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3784 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3786 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3787 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3788 (sh_legitimate_constant_p): New function.
3790 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3791 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3792 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3793 (legitimate_constant_p): Rename to...
3794 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3796 (constant_address_p): Update accordingly.
3798 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3799 argument and return a bool.
3800 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3801 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3802 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3803 (spu_rtx_costs): Update accordingly.
3804 * config/spu/predicates.md (vec_imm_operand): Likewise.
3806 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3808 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3809 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3810 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3812 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3813 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3814 * config/vax/vax.c (legitimate_constant_p): Likewise.
3816 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3817 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3818 (xtensa_legitimate_constant_p): New function.
3820 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3822 * target.def (cannot_force_const_mem): Add a mode argument.
3823 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3824 * doc/tm.texi: Regenerate.
3825 * hooks.h (hook_bool_mode_rtx_false): Declare.
3826 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3827 (hook_bool_mode_const_rtx_true): Likewise.
3828 (hook_bool_mode_rtx_false): New function.
3829 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3830 to be non-VOID. Update call to cannot_force_const_mem.
3831 (find_reloads): Update accordingly.
3832 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3833 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3835 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3836 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3837 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3838 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3839 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3840 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3841 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3842 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3843 (m68k_cannot_force_const_mem): ...this new function.
3844 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3846 (mips_const_insns, mips_legitimize_const_move): Update calls.
3847 (mips_secondary_reload_class): Likewise.
3848 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3849 (pa_cannot_force_const_mem): ...this new function.
3850 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3851 (rs6000_cannot_force_const_mem): ...this new function.
3852 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3854 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3855 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3857 (xtensa_cannot_force_const_mem): ...this new function.
3859 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3861 * config/mips/mips.c (mips16_build_function_stub): Call
3862 build_function_type_list instead of build_function_type.
3863 (mips16_build_call_stub): Likewise.
3865 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3867 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3868 instead of build_function_type.
3870 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3872 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3873 instead of build_function_type.
3875 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3878 * config/i386/i386.md (insv): Change operand 0 constraint to
3879 "register_operand". Change operand 1 and 2 constraint to
3880 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3881 * config/i386/sse.md (sse4_1_pinsrb): Export.
3882 (sse2_pinsrw): Ditto.
3883 (sse4_1_pinsrd): Ditto.
3884 (sse4_1_pinsrq): Ditto.
3885 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3886 * config/i386/i386.c (ix86_expand_pinsr): New.
3888 2011-04-20 Easwaran Raman <eraman@google.com>
3890 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3891 containing union type only with -fstrict-aliasing.
3893 2011-04-20 Jim Meyering <meyering@redhat.com>
3895 Remove useless if-before-free tests.
3896 * calls.c (expand_call, save_area): Likewise.
3897 * cfgcleanup.c (try_forward_edges): Likewise.
3898 * collect2.c (collect_execute): Likewise.
3899 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3900 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3901 * coverage.c (coverage_checksum_string): Likewise.
3902 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3903 * cselib.c (cselib_init): Likewise.
3904 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3905 (df_set_clean_cfg): Likewise.
3906 * function.c (free_after_compilation): Likewise.
3907 * gcc.c (do_spec_1, main): Likewise.
3908 * gcov.c (create_file_names): Likewise.
3909 * gensupport.c (identify_predicable_attribute): Likewise.
3910 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3911 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3912 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3913 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3914 * ipa-pure-const.c (local_pure_const): Likewise.
3915 * ipa-reference.c (propagate): Likewise.
3916 * ira-costs.c (free_ira_costs): Likewise.
3917 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3918 * matrix-reorg.c (mat_free): Likewise.
3919 * prefix.c (get_key_value): Likewise.
3920 * profile.c (compute_value_histograms): Likewise.
3921 * reload1.c (free_reg_equiv): Likewise.
3922 * sched-deps.c (free_deps): Likewise.
3923 * sel-sched-ir.c (fence_clear): Likewise.
3924 * sese.c (set_rename, if_region_set_false_region): Likewise.
3925 * tree-data-ref.c (free_rdg): Likewise.
3926 * tree-eh.c (lower_try_finally): Likewise.
3927 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3928 * tree-ssa-live.c (delete_var_map): Likewise.
3929 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3930 * tree-ssa-pre.c (phi_trans_add): Likewise.
3932 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3934 PR tree-optimization/48611
3935 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3936 beyond ERT_MUST_NOT_THROW region.
3938 2011-04-20 Catherine Moore <clm@codesourcery.com>
3940 * config/mips/mips.opt (mfix-24k): New.
3941 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3942 * config/mips/mips.md (length): Increase by 4 for stores if
3944 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3945 all noreorder if fixing 24K errata.
3946 * doc/invoke.texi: Document mfix-24k.
3948 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3950 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3951 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3953 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3955 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3956 (const_ok_for_op): ... to here.
3958 2011-04-20 Kai Tietz <ktietz@redhat.com>
3960 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3961 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3963 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3965 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3967 2011-04-20 Richard Guenther <rguenther@suse.de>
3969 PR tree-optimization/47892
3970 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3973 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3975 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3977 2011-04-20 Tristan Gingold <gingold@adacore.com>
3979 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3981 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3985 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3986 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3987 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3988 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3989 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3991 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3994 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3995 (avr_asm_named_section, avr_asm_output_aligned_common,
3996 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3997 New functions to update...
3998 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3999 (avr_asm_init_sections): Overwrite section callbacks for
4000 data_section, bss_section.
4001 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4003 (avr_file_end): ...here.
4005 2011-04-20 Richard Guenther <rguenther@suse.de>
4008 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4009 objects and types here. Adjust for their offset before comparing.
4011 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4013 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4016 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4018 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4019 (GIMPLE_H): Include $(INTERNAL_FN_H).
4020 (OBJS-common): Add internal-fn.o.
4021 (internal-fn.o): New rule.
4022 * internal-fn.def: New file.
4023 * internal-fn.h: Likewise.
4024 * internal-fn.c: Likewise.
4025 * gimple.h: Include internal-fn.h.
4026 (GF_CALL_INTERNAL): New gf_mask.
4027 (gimple_statement_call): Put fntype into a union with a new
4029 (gimple_build_call_internal): Declare.
4030 (gimple_build_call_internal_vec): Likewise.
4031 (gimple_call_same_target_p): Likewise.
4032 (gimple_call_internal_p): New function.
4033 (gimple_call_internal_fn): Likewise.
4034 (gimple_call_fntype): Return null for internal calls.
4035 (gimple_call_set_fntype): Assert that the function is not internal.
4036 (gimple_call_set_fn): Likewise.
4037 (gimple_call_set_fndecl): Likewise.
4038 (gimple_call_set_internal_fn): New function.
4039 (gimple_call_addr_fndecl): Handle null functions.
4040 (gimple_call_return_type): Likewise null types.
4041 * gimple.c (gimple_build_call_internal_1): New function.
4042 (gimple_build_call_internal): Likewise.
4043 (gimple_build_call_internal_vec): Likewise.
4044 (gimple_call_same_target_p): Likewise.
4045 (gimple_call_flags): Handle calls to internal functions.
4046 (gimple_call_fnspec): New function.
4047 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4048 (gimple_has_side_effects): Handle null functions.
4049 (gimple_rhs_has_side_effects): Likewise.
4050 (gimple_call_copy_skip_args): Handle calls to internal functions.
4051 * cfgexpand.c (expand_call_stmt): Likewise.
4052 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4053 * gimple-fold.c (gimple_fold_call): Handle null functions.
4054 (gimple_fold_stmt_to_constant_1): Don't fold
4055 calls to internal functions.
4056 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4058 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4059 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4060 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4061 (do_warn_unused_result): Likewise.
4062 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4063 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4064 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4065 the target of a call.
4066 (initialize_hash_element): Update accordingly.
4067 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4068 (iterative_hash_hashable_expr): Handle calls to internal functions.
4069 (print_expr_hash_elt): Likewise.
4070 * tree-ssa-pre.c (can_value_number_call): Likewise.
4071 (eliminate): Handle null functions.
4072 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4073 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4074 (find_func_aliases): Likewise.
4075 * value-prof.c (gimple_ic_transform): Likewise.
4076 (gimple_indirect_call_to_profile): Likewise.
4077 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4078 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4080 2011-04-19 Jan Hubicka <jh@suse.cz>
4082 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4083 * ipa-inline.c (inline_small_functions): Compute summaries first,
4084 populate heap later.
4086 2011-04-19 Jan Hubicka <jh@suse.cz>
4088 * cgraph.h (save_inline_function_body): Remove.
4089 * ipa-inline-transform.c: New file, broke out of...
4090 * ipa-inline.c: ... this one; Update toplevel comment.
4091 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4093 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4094 (cgraph_mark_inline_edge): Rename to inline_call; move to
4095 ipa-inline-transform.c.
4096 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4097 move to ipa-inline-transform.c
4098 (recursive_inlining, inline_small_functions, flatten_function,
4099 ipa_inline, inline_always_inline_functions,
4100 early_inline_small_functions): Update.
4101 (inline_transform): Move to ipa-inline-transform.c.
4102 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4104 * Makefile.in (ipa-inline-transform.o): New file.
4105 * cgraphunit.c (save_inline_function_body): Move to
4106 ipa-inline-transform.c
4108 2011-04-19 DJ Delorie <dj@redhat.com>
4110 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4111 registers if we already know there aren't any.
4112 (m32c_emit_epilogue): Don't emit a barrier here.
4113 (m32c_emit_eh_epilogue): Likewise.
4114 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4115 operands at expand time.
4116 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4118 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4119 duplicates. Provide aliases instead.
4120 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4121 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4124 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4126 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4127 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4128 (general_or_i64_p, sparc_register_move_cost): New function.
4130 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4132 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4133 Add lynx, mipssde. Sort table.
4135 2011-04-19 Xinliang David Li <davidxl@google.com>
4137 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4140 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4143 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4144 is a SUBREG with non-MODE_INT mode inside of it.
4146 2011-04-19 Martin Jambor <mjambor@suse.cz>
4148 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4149 also according to actual contants.
4150 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4151 (gimple_fold_call): Use it.
4152 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4154 2011-04-19 Martin Jambor <mjambor@suse.cz>
4156 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4157 non-pointer assignments.
4159 2011-04-19 Martin Jambor <mjambor@suse.cz>
4161 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4162 account anc_offset and otr_type from the indirect edge info.
4163 * ipa-prop.c (get_ancestor_addr_info): New function.
4164 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4165 get_ancestor_addr_info, call it.
4166 (ipa_note_param_call): Do not initialize information about polymorphic
4167 calls, return the indirect call graph edge. Remove the last
4168 parameter, adjust all callers.
4169 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4170 parameters. Initialize polymorphic information in the indirect edge.
4172 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4175 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4176 the types if they have different enumeration identifiers.
4178 2011-04-19 Jan Hubicka <jh@suse.cz>
4180 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4181 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4182 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4183 (optimize_function_for_size_p) ... here.
4185 2011-04-19 Richard Guenther <rguenther@suse.de>
4188 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4191 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4193 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4194 if DECL_NO_INLINE_WARNING_P is set on the function.
4196 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4199 * reload1.c (inc_for_reload): Return void. All callers changed.
4200 (emit_input_reload_insns): Don't try to delete previous output
4201 reloads to a register, or record spill_reg_store for autoincs.
4203 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4205 * gengtype.h: Updated copyright year.
4206 (struct input_file_st): Add inpisplugin field.
4207 (type_fileloc): New function.
4209 (write_typed_struct_alloc_def): Add gcc_assert.
4210 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4211 (write_typed_alloc_defns): Don't output for plugin files.
4212 (input_file_by_name): Clear inpisplugin field.
4213 (main): Set inpisplugin field for plugin files.
4215 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4217 * gengtype-state.c (string_eq): New.
4218 (read_state): Use string_eq instead of strcmp when creating the
4221 2011-04-19 Wei Guozhi <carrot@google.com>
4224 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4225 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4227 * config/arm/constraints.md (Uu): New constraint.
4228 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4230 2011-04-19 Tristan Gingold <gingold@adacore.com>
4232 * config.gcc (-*-*-*vms): Added.
4233 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4235 * config/vms/vms-ld.c: New file.
4236 * config/vms/vms-ar.c: New file.
4237 * config/vms/t-vmsnative: New file.
4239 2011-04-18 Xinliang David Li <davidxl@google.com>
4241 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4243 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4246 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4247 if TREE_TYPE (v) is non-NULL.
4249 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4250 gimple_get_virt_mehtod_for_binfo.
4251 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4252 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4254 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4256 2011-04-18 Michael Matz <matz@suse.de>
4257 Steve Ellcey <sje@cup.hp.com>
4259 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4260 use its mode as source mode if it isn't VOIDmode.
4262 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4264 * doc/passes.texi: Fill crossref nodes.
4266 2011-04-18 Jim Meyering <meyering@redhat.com>
4268 Fix doubled-word typos in comments and strings
4269 * config/alpha/vms-unwind.h: s/for for/for/
4270 * config/arm/unwind-arm.h: Likewise.
4271 * config/microblaze/microblaze.c: Likewise.
4272 * config/sh/constraints.md: s/in in/in/
4273 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4275 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4277 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4278 (AVX_FLOAT_MODE_P): Ditto.
4279 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4280 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4281 (AVX_VEC_FLOAT_MODE_P): Ditto.
4282 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4283 (UNSPEC_MASKSTORE): Ditto.
4284 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4285 Merge from <sse>_movmsk<ssemodesuffix> and
4286 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4287 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4289 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4290 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4291 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4293 2011-04-18 Jan Hubicka <jh@suse.cz>
4295 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4297 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4298 (want_inline_function_called_once_p): Break out the logic from
4300 (edge_badness): Ensure that profile is not misupdated.
4301 (lookup_recursive_calls): Prioritize by call frequencies.
4302 (inline_small_functions): Move program size estimates here;
4303 actually process whole queue even when unit growth has been
4304 met. (to properly compute inline_failed reasons and for the
4305 case unit size decrease.) Revisit comments on recursive inlining.
4306 (ipa_inline): Remove unit summary code; first inline hot calls
4307 of functions called once, cold calls next.
4308 (order, nnodes): Remove unused variables.
4309 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4310 (GTFILES): Remove ipa-inline.c
4311 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4313 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4315 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4317 2011-04-18 Jie Zhang <jie@codesourcery.com>
4318 Richard Earnshaw <rearnsha@arm.com>
4320 * arm.c (neon_builtin_type_bits): Remove.
4321 (typedef enum neon_builtin_mode): New.
4322 (T_MAX): Don't define.
4323 (typedef enum neon_builtin_datum): Remove bits, codes[],
4324 num_vars and base_fcode. Add mode, code and fcode.
4325 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4326 VAR10): Change accordingly.
4327 (neon_builtin_data[]): Change accordingly
4328 (arm_init_neon_builtins): Change accordingly.
4329 (neon_builtin_compare): Remove.
4330 (locate_neon_builtin_icode): Remove.
4331 (arm_expand_neon_builtin): Change accordingly.
4333 * arm.h (enum arm_builtins): Move to ...
4334 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4336 * arm.c (arm_builtin_decl): Declare.
4337 (TARGET_BUILTIN_DECL): Define.
4338 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4339 (arm_builtin_decls[]): New.
4340 (arm_init_neon_builtins): Store builtin declarations in
4341 arm_builtin_decls[].
4342 (arm_init_tls_builtins): Likewise.
4343 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4344 (arm_builtin_decl): New.
4346 2011-04-18 Richard Guenther <rguenther@suse.de>
4348 * tree.c (upper_bound_in_type): Build properly canonicalized
4350 (lower_bound_in_type): Likewise.
4352 2011-04-18 Richard Guenther <rguenther@suse.de>
4354 * gimple.h (gimple_call_addr_fndecl): New function.
4355 (gimple_call_fndecl): Use it.
4356 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4358 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4359 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4361 2011-04-18 Richard Guenther <rguenther@suse.de>
4364 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4366 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4369 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4370 DECL_IN_CONSTANT_POOL without RTL.
4372 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4373 Ira Rosen <ira.rosen@linaro.org>
4376 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4377 to match neon_vzip/vuzp/vtrn_internal.
4378 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4379 outputs explicitly dependent on both inputs.
4380 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4382 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4384 PR tree-optimization/48616
4385 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4386 whether the shift is by scalar or vector based on whether all SLP
4387 scalar stmts have the same rhs.
4389 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4391 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4394 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4396 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4399 2011-04-17 Jan Hubicka <jh@suse.cz>
4401 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4402 * cgrpahunit.c (cgraph_finalize_function): Do not set
4403 finalized_by_frontend.
4404 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4405 finalized_by_frontend.
4407 2011-04-17 Jan Hubicka <jh@suse.cz>
4409 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4410 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4411 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4412 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4414 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4416 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4418 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4421 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4422 is non-null before accessing it.
4423 (input_cgraph): Remove trailing spaces.
4425 2011-04-17 Revital Eres <revital.eres@linaro.org>
4427 * params.def (sms-min-sc): New param flag.
4428 * modulo-sched.c (sms_schedule): Use it.
4429 * doc/invoke.texi (sms-min-sc): Document it.
4431 2011-04-17 Jan Hubicka <jh@suse.cz>
4433 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4434 present, also set gimple_call_set_cannot_inline.
4435 * ipa-inline.c: Update toplevel comment.
4437 (cgraph_clone_inlined_nodes): Fix linebreaks.
4438 (cgraph_check_inline_limits): Restructure to ...
4439 (caller_growth_limits): ... this one; be more tolerant
4440 on growth in nested inline chains; add explanatory comment;
4441 fix stack accounting thinko introduced by previous patch.
4442 (cgraph_default_inline_p): Remove.
4443 (report_inline_failed_reason): New function.
4444 (can_inline_edge_p): New function.
4445 (can_early_inline_edge_p): New function.
4446 (leaf_node_p): Move upwards in file.
4447 (want_early_inline_function_p): New function.
4448 (want_inline_small_function_p): New function.
4449 (want_inline_self_recursive_call_p): New function.
4450 (cgraph_edge_badness): Rename to ...
4451 (edge_badness) ... this one; fix linebreaks.
4452 (update_edge_key): Update call of edge_baddness; add
4453 detailed dump about queue updates.
4454 (update_caller_keys): Use can_inline_edge_p and
4455 want_inline_small_function_p.
4456 (cgraph_decide_recursive_inlining): Rename to...
4457 (recursive_inlining): Use can_inline_edge_p and
4458 want_inline_self_recursive_call_p; simplify and remove no longer
4460 (cgraph_set_inline_failed): Remove.
4461 (add_new_edges_to_heap): Use can_inline_edge_p and
4462 want_inline_small_function_p.
4463 (cgraph_decide_inlining_of_small_functions): Rename to ...
4464 (inline_small_functions): ... this one; cleanup; use
4465 can/want predicates; cleanup debug ouput; work edges till fibheap
4466 is exhausted and do not stop once unit growth is reached; remove
4467 later loop processing remaining edges.
4468 (cgraph_flatten): Rename to ...
4469 (flatten_function): ... this one; use can_inline_edge_p
4470 and can_early_inline_edge_p predicates.
4471 (cgraph_decide_inlining): Rename to ...
4472 (ipa_inline): ... this one; remove unreachable nodes before
4473 inlining functions called once; simplify the pass.
4474 (cgraph_perform_always_inlining): Rename to ...
4475 (inline_always_inline_functions): ... this one; use
4476 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4477 (cgraph_decide_inlining_incrementally): Rename to ...
4478 (early_inline_small_functions): ... this one; simplify
4479 using new predicates; cleanup; make dumps prettier.
4480 (cgraph_early_inlining): Rename to ...
4481 (early_inliner): newer inline regular functions into always-inlines;
4482 fix updating of call stmt summaries.
4483 (pass_early_inline): Update for new names.
4484 (inline_transform): Fix formating.
4485 (gate_cgraph_decide_inlining): Rename to ...
4486 (pass_ipa_inline): ... this one.
4487 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4488 * ipa-inline-analysis.c (dump_inline_summary): Update.
4489 (compute_inline_parameters): Do not compute disregard_inline_limits;
4490 look for mismatching arguments.
4491 (estimate_growth): Fix handlig of non-trivial self recursion.
4492 (inline_read_summary): Do not read info->disregard_inline_limits.
4493 (inline_write_summary): Do not write info->disregard_inline_limits.
4494 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4495 and move all checks into can_inline_edge_p predicate; re-enable code
4496 comparing optimization levels.
4497 (expand_call_inline): Do not test inline_forbidden_into_p.
4498 * Makefile.in (ipa-inline.o): Update arguments.
4500 2011-04-17 Revital Eres <revital.eres@linaro.org>
4502 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4504 2011-04-17 Revital Eres <revital.eres@linaro.org>
4506 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4508 2011-04-17 Michael Matz <matz@suse.de>
4510 PR tree-optimization/48622
4512 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4513 in same order as they're written.
4515 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4517 * config/pa/predicates.md: Reorganize and simplify predicates.
4518 Eliminate duplicate code checks.
4519 (arith_operand): Rename to arith14_operand
4520 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4521 * config/pa/pa.md: Use renamed operands.
4522 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4523 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4524 arith11_operand, adddi3_operand, indexed_memory_operand,
4525 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4526 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4527 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4528 move_dest_operand, move_src_operand, prefetch_cc_operand,
4529 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4530 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4531 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4532 div_operand, int5_operand, movb_comparison_operator,
4533 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4534 arith_double_operand, ireg_operand, lhs_lshift_operand,
4535 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4536 integer_store_memory_operand): Likewise.
4537 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4538 (integer_store_memory_operand, read_only_operand,
4539 function_label_operand, borx_reg_operand,
4540 non_hard_reg_operand): Likewise.
4541 (eq_neq_comparison_operator): Delete unused operator.
4542 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4543 function_label_operand.
4544 (emit_move_sequence): Likewise.
4546 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4548 * config/i386/sse.md (sseunpackmode): New mode attribute.
4549 (ssepackmode): Ditto.
4550 (vec_pack_trunc_<mode>): Macroize expander from
4551 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4552 (vec_unpacks_lo_<mode>): Macroize expander from
4553 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4554 (vec_unpacks_hi_<mode>): Macroize expander from
4555 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4556 (vec_unpacku_lo_<mode>): Macroize expander from
4557 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4558 (vec_unpacku_hi_<mode>): Macroize expander from
4559 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4560 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4561 ix86_expand_sse4_unpack.
4562 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4564 2011-04-16 Jan Hubicka <jh@suse.cz>
4566 * cgraphbuild.c: Include ipa-inline.h.
4567 (reset_inline_failed): Use initialize_inline_failed.
4568 * cgraph.c: Include ipa-inline.h.
4569 (cgraph_create_node_1): Do not initialize estimated_growth.
4570 (initialize_inline_failed): More to ipa-inline-analysis.c
4571 (dump_cgraph_node): Do not dump inline flags.
4572 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4573 and disregard_inline_limits flags.
4574 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4575 time, size, estimated_growth.
4576 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4578 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4579 DECL_DISREGARD_INLINE_LIMITS.
4580 (cgraph_analyze_function): Do not initialize
4581 node->local.disregard_inline_limits.
4582 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4583 inlinable, versionable and disregard_inline_limits.
4584 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4585 cgraph_check_inline_limits, cgraph_default_inline_p,
4586 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4587 add_new_edges_to_heap): Update.
4588 (cgraph_decide_inlining_of_small_function): Update; set
4589 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4590 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4591 cgraph_decide_inlining_incrementally): Update.
4592 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4593 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4594 time, size and estimated_growth parameters.
4595 (estimate_edge_growth): Update.
4596 (initialize_inline_failed): Declare.
4597 * ipa-split.c: Include ipa-inline.h
4598 (execute_split_functions): Update.
4599 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4600 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4601 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4602 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4603 estimated_growth to INT_MIN.
4604 (inline_node_duplication_hook): Likewise.
4605 (dump_inline_summary): Dump new fields.
4606 (compute_inline_parameters): Update.
4607 (estimate_edge_time, estimate_time_after_inlining,
4608 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4609 inline_write_summary):
4610 (initialize_inline_failed): Move here from cgraph.c.
4611 * tree-sra.c: Include ipa-inline.h.
4612 (ipa_sra_preliminary_function_checks): Update.
4613 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4616 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4618 * config/i386/sse.md (V16): New mode iterator.
4620 (AVXMODEQI, AVXMODEDI): Remove.
4621 (sse2, sse3): New mode attribute.
4622 (mov<mode>): Use V16 mode iterator.
4623 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4624 (push<mode>1): Use V16 mode iterator.
4625 (movmisalign<mode>): Ditto.
4626 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4627 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4628 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4629 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4630 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4631 avx_movdqu<avxmodesuffix>.
4632 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4633 *avx_movdqu<avxmodesuffix>.
4634 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4635 avx_lddqu<avxmodesuffix>.
4636 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4637 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4638 avx_movnt<AVXMODEDI:mode>.
4639 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4640 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4642 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4645 * haifa-sched.c (prune_ready_list, schedule_block): Use
4646 sched_pressure_p rather than flag_sched_pressure.
4648 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4650 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4651 cgraph_get_node instead of cgraph_get_create_node.
4653 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4655 * cfgexpand.c (expand_debug_expr): Use
4656 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4658 2011-04-15 Michael Matz <matz@suse.de>
4660 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4661 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4662 * function.c (gimplify_parameters): Ditto.
4663 * gimplify.c (gimplify_vla_decl): Ditto.
4665 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4666 (gimple_call_set_alloca_for_var): New inline function.
4667 (gimple_call_alloca_for_var_p): Ditto.
4668 * gimple.c (gimple_build_call_from_tree): Remember
4669 CALL_ALLOCA_FOR_VAR_P state.
4670 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4672 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4673 calls if they were for VLA objects.
4675 2011-04-15 Martin Jambor <mjambor@suse.cz>
4677 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4680 2011-04-15 Martin Jambor <mjambor@suse.cz>
4683 * tree-emutls.c (lower_emutls_function_body): Call
4684 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4687 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4689 * c-decl.c (detect_field_duplicates): Call
4690 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4692 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4694 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4695 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4696 * ipa-pure-const.c (check_stmt): Call it.
4697 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4699 2011-04-15 Richard Guenther <rguenther@suse.de>
4701 PR tree-optimization/48290
4702 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4703 Properly decide inhibiting propagation based on the valueized
4704 operand. Do loop-closed SSA form preserving here ...
4705 (init_copy_prop): ... not here.
4707 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4710 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4711 (*ieee_smax<mode>3): Likewise.
4713 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4715 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4716 Replace match_operand with match_dup for the third operand in
4719 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4721 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4722 to track processing of conditionals. Update all callers.
4723 (try_combine, simplify_if_then_else): Update.
4725 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4727 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4730 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4732 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4733 instead of match_operand for operand 3.
4735 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4737 * recog.h (insn_operand_data): Add an "allows_mem" field.
4738 * genoutput.c (output_operand_data): Initialize it.
4739 * optabs.c (maybe_legitimize_operand_same_code): New function.
4740 (maybe_legitimize_operand): Use it when matching the original
4743 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4745 * gimplify.c: Fix issues in comments throughout.
4746 (voidify_wrapper_expr): Fix long line.
4747 (build_stack_save_restore): Likewise.
4748 (gimplify_loop_expr): Likewise.
4749 (gimplify_compound_lval): Likewise.
4750 (gimplify_init_ctor_eval): Likewise.
4751 (gimplify_modify_expr_rhs): Likewise.
4752 (omp_notice_threadprivate_variable): Likewise.
4754 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4756 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4757 original one if this is not a builtin function.
4759 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4762 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4763 offset it as needed based on top 2 bits in operands[3], change
4764 MEM mode to SFmode and mask those 2 bits away from operands[3].
4766 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4768 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4769 change from objc_declare_protocols() to objc_declare_protocol().
4771 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4773 * config/i386/sse.md (sse4_1): New mode attribute.
4774 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4775 avx_blend<ssemodesuffix><avxmodesuffix> and
4776 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4777 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4778 avx_blendv<ssemodesuffix><avxmodesuffix> and
4779 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4780 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4781 avx_dp<ssemodesuffix><avxmodesuffix> and
4782 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4783 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4784 (sse4_1_packusdw): Merge with *avx_packusdw.
4785 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4786 (sse4_1_pblendw): Merge with *avx_pblendw.
4787 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4788 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4789 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4791 (sse4_1_round<ssescalarmodesuffix>): Merge with
4792 *avx_round<ssescalarmodesuffix>.
4793 (aesenc): Merge with *avx_aesenc.
4794 (aesenclast): Merge with *avx_aesenclast.
4795 (aesdec): Merge with *avx_aesdec.
4796 (aesdeclast): Merge with *avx_aesdeclast.
4797 (pclmulqdq): Merge with *pclmulqdq.
4798 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4800 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4802 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4805 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4806 (align_local_variable): This. Update DECL_ALIGN.
4807 (add_stack_var): Updated.
4808 (expand_one_stack_var): Likewise.
4810 2011-04-14 Richard Guenther <rguenther@suse.de>
4812 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4814 (dse_initialize_block_local_data, dse_leave_block,
4815 record_voperand_set, get_stmt_uid): Likewise.
4816 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4817 (dse_optimize_stmt): Remove voperand set handling code.
4818 Simplify and improve to handle any kind of killing stmt.
4819 (dse_record_phi): Remove.
4820 (dse_enter_block): Simplify.
4821 (tree_ssa_dse): Likewise.
4822 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4824 2011-04-14 Jan Hubicka <jh@suse.cz>
4826 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4827 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4828 (cgraph_local_info): Remove inline_summary.
4829 * ipa-cp.c: Include ipa-inline.h.
4830 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4831 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4833 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4834 (input_overwrite_node): Do not set inline summary.
4835 (input_node): Do not stream inline summary.
4836 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4837 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4838 growth; we do not have inline parameters computed for that anyway.
4839 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4840 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4841 (inline_summary_t): New type and VECtor.
4842 (debug_inline_summary, dump_inline_summaries): Declare.
4843 (inline_summary): Use VOCtor.
4844 (estimate_edge_growth): Kill hack computing call stmt size directly.
4845 * lto-section-in.c (lto_section_name): Add inline section.
4846 * ipa-inline-analysis.c: Include lto-streamer.h
4847 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4848 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4849 (inline_summary_vec): Define.
4850 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4851 dump_inline_summaries): New functions.
4852 (estimate_function_body_sizes): Properly compute size/time of outgoing
4854 (compute_inline_parameters): Alloc inline_summary; do not compute
4855 size/time of incomming calls.
4856 (estimate_edge_time): Avoid missing time summary hack.
4857 (inline_read_summary): Read inline summary info.
4858 (inline_write_summary): Write inline summary info.
4859 (inline_free_summary): Free all hooks and inline summary vector.
4860 * lto-streamer.h: Add LTO_section_inline_summary section.
4861 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4862 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4864 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4866 * tree-vectorizer.h (vect_strided_store_supported): Add a
4867 HOST_WIDE_INT argument.
4868 (vect_strided_load_supported): Likewise.
4869 (vect_permute_store_chain): Return void.
4870 (vect_transform_strided_load): Likewise.
4871 (vect_permute_load_chain): Delete.
4872 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4873 count argument. Check that the count is a power of two.
4874 (vect_strided_load_supported): Likewise.
4875 (vect_permute_store_chain): Return void. Update after above changes.
4876 Assert that the access is supported.
4877 (vect_permute_load_chain): Likewise.
4878 (vect_transform_strided_load): Return void.
4879 * tree-vect-stmts.c (vectorizable_store): Update calls after
4880 above interface changes.
4881 (vectorizable_load): Likewise.
4882 (vect_analyze_stmt): Don't check for strided powers of two here.
4884 2011-04-14 Richard Guenther <rguenther@suse.de>
4886 PR tree-optimization/48590
4887 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4888 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4889 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4890 BUILT_IN_STACK_SAVE.
4891 * tree-ssa-dce.c (propagate_necessity): Handle
4892 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4894 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4896 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4899 2011-04-14 Richard Guenther <rguenther@suse.de>
4901 * tree.h (get_object_alignment_1): Declare.
4902 * builtins.c (get_object_alignment_1): Split out worker from ...
4903 (get_object_alignment): ... here.
4904 * fold-const.c (get_pointer_modulus_and_residue): Use
4905 get_object_alignment_1.
4907 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4909 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4911 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4912 parameter. Generalise code to handle arrays as well as vectors.
4913 (vect_setup_realignment): Update accordingly.
4914 * tree-vect-stmts.c (vectorizable_store): Likewise.
4915 (vectorizable_load): Likewise.
4917 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4919 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4920 within the per-copy loop.
4922 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4924 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4927 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4929 * doc/options.texi (Negative): Explicitly mention that the
4930 Negative chain must be circular.
4932 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4934 * function.h (block_chainon): Declare.
4935 * function.c (block_chainon): Define.
4937 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4938 Eric Weddington <eric.weddington@atmel.com>
4939 Georg-Johann Lay <avr@gjlay.de>
4941 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4943 (avr_init_builtins, avr_expand_builtin,
4944 avr_expand_delay_cycles, avr_expand_unop_builtin,
4945 avr_expand_binop_builtin ): New functions.
4946 (avr_builtin_id): New enum
4947 (struct avr_builtin_description): New struct
4948 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4949 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4951 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4952 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4953 UNSPECV_DELAY_CYCLES): new enumeration values
4954 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4955 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4956 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4957 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4958 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4959 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4960 "fmulsu"): New insns
4962 * config/avr/avr-c.c: fix line endings
4963 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4964 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4965 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4966 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4967 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4969 * doc/extend.texi (AVR Built-in Functions): New node
4970 (Target Builtins): Add documentation of AVR
4973 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4976 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4977 alone. Error if non-const data has attribute progmem.
4979 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4981 * tree.h (struct tree_constructor): Include tree_typed instead of
4983 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4984 TS_TYPED instead of TS_COMMON.
4986 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4988 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4989 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4990 (sse2_psadbw): Merge with *avx_psadbw.
4991 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4992 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4993 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4994 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4995 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4996 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4997 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4998 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4999 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5000 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5001 (ssse3_palignrti): Merge with *avx_palignrti.
5003 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5005 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5006 * tree-ssanames.c (fini_ssanames): VEC_free it.
5007 (make_ssa_name_fn): Update for VECness of free_ssanames.
5008 (release_ssa_name, release_dead_ssa_names): Likewise.
5009 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5011 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5012 TS_TYPED instead of TS_COMMON.
5014 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5016 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5017 statistics_counter_event.
5018 * tree-ssa-copyrename.c (stats): Define.
5019 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5020 statistics_counter_event.
5021 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5022 (bswap_stats, widen_mul_stats): Define.
5023 (insert_reciprocals): Increment rdivs_inserted.
5024 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5025 rfuncs_inserted. Add calls to statistics_counter_event.
5026 (execute_cse_sincos_1): Increment inserted.
5027 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5028 statistics_counter_event.
5029 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5030 of bswap_stats. Add calls to statistics_counter_event.
5031 (convert_mult_to_widen): Increment widen_mults_inserted.
5032 (convert_plusminus_to_widen): Increment maccs_inserted.
5033 (convert_mult_to_fma): Increment fmas_inserted.
5034 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5035 calls to statistics_counter_event.
5037 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5039 PR rtl-optimization/48455
5040 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5041 `temp_costs->mem_cost'.
5043 2011-04-13 Jan Hubicka <jh@suse.cz>
5045 * ipa-inline.h: New file.
5046 * ipa-inline-analysis.c: New file. Broken out of ...
5047 * ipa-inline.c: ... this file; update toplevel comment;
5048 include ipa-inline.h
5049 (inline_summary): Move to ipa-inline.h
5050 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5051 ipa-inline-analysis.c.
5052 (cgraph_estimate_time_after_inlining): Rename to
5053 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5054 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5055 to estimate_edge_growth.
5056 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5057 rename to estimate_size_after_inlining.
5058 (cgraph_mark_inline_edge): Update for new naming convention.
5059 (cgraph_check_inline_limits): Likewise.
5060 (cgraph_edge_badness): Likewise.
5061 (cgraph_decide_recursive_inlining): Likewise.
5062 (cgraph_decide_inlining_of_small_functions): Likewise.
5063 (cgraph_decide_inlining_incrementally): Likewise.
5064 (cgraph_estimate_growth): Rename to estimate_growth; move to
5065 ipa-inline-analysis.c.
5066 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5067 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5068 (compute_inline_parameters): Likewise.
5069 (compute_inline_parameters_for_current): Likewise.
5070 (pass_inline_parameters): Likewise.
5071 (inline_indirect_intraprocedural_analysis): Likewise.
5072 (analyze_function): Rename to inline_analyze_function; likewise.
5073 (add_new_function): Move to ipa-inline-analysis.c.
5074 (inline_generate_summary): Likewise.
5075 (inline_read_summary): Likewise.
5076 (inline_write_summary): Likewise.
5077 * Makefile.in (ipa-inline-analysis.c): New file.
5079 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5081 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5082 * configure: Regenerate.
5084 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5086 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5087 instead of tree_common.
5088 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5090 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5091 TS_TYPED rather than TS_COMMON.
5092 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5094 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5097 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5098 r20 around calls of __tablejump_elpm__
5100 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5103 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5105 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5107 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5109 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5110 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5111 (cfi_vec): New typedef.
5112 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5113 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5114 (cie_cfi_vec): New static variable.
5115 (cie_cfi_head): Delete.
5116 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5117 declaration changed. Use vector rather than list operations.
5118 (new_cfi): Don't initialize the dw_cfi_next field.
5119 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5120 rather than list operations.
5121 (lookup_cfa): Use vector rather than list operations.
5122 (output_cfis): New argument upto. Accept a cfi_vec rather than
5123 a dw_cfi_ref list head as argument. All callers changed.
5124 Iterate over the vector using upto as a maximum index.
5125 (output_all_cfis): New static function.
5126 (output_fde): Use vector rather than list operations. Use the
5127 new upto argument for output_cfis rather than manipulating a
5129 (dwarf2out_begin_prologue): Change initializations to match
5131 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5132 from the vector length rather than searching for the end of a list.
5133 Use output_all_cfis.
5134 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5136 2011-04-13 Nick Clifton <nickc@redhat.com>
5138 * config/rx/rx.md (movmemsi): Do not use this pattern when
5139 volatile pointers are involved.
5141 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5143 * config/i386/sse.md (pinsrbits): Remove.
5144 (sse2_packsswb): Merge with *avx_packsswb.
5145 (sse2_packssdw): Merge with *avx_packssdw.
5146 (sse2_packuswb): Merge with *avx_packuswb.
5147 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5148 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5149 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5150 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5151 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5152 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5153 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5154 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5155 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5156 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5157 (sse2_loadld): Merge with *avx_loadld.
5158 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5159 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5160 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5161 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5162 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5164 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5166 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5168 * print-tree.c (print_node): Likewise.
5169 * tree-inline.c (copy_tree_r): Likewise.
5170 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5171 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5172 instead of TS_COMMON.
5173 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5174 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5175 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5176 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5177 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5179 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5181 (TREE_CHAIN): Check for a TS_COMMON structure.
5182 (TREE_TYPE): Check for a TS_TYPED structure.
5184 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5186 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5187 cgraph_get_create_node instead of cgraph_node.
5189 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5191 * c-parser.c (c_parser_initelt): Updated call to
5192 objc_build_message_expr.
5193 (c_parser_postfix_expression): Likewise.
5195 2011-04-12 Kai Tietz <ktietz@redhat.com>
5197 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5198 MASK_MS_BITFIELD_LAYOUT bit.
5200 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5202 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5203 assert it is always true.
5204 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5207 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5209 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5210 compiling Objective-C to be more efficient.
5212 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5214 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5217 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5219 * recog.h, genoutput.c, optabs.c: Revert last patch.
5221 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5224 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5226 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5228 * recog.h (insn_operand_data): Add an "allows_mem" field.
5229 * genoutput.c (output_operand_data): Initialize it.
5230 * optabs.c (maybe_legitimize_operand_same_code): New function.
5231 (maybe_legitimize_operand): Use it when matching the original
5234 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5236 * genpreds.c (process_define_predicate): Move most processing
5237 to gensupport.c. Continue to validate the expression.
5238 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5239 (process_define_predicate): Move processing to gensupport.c.
5240 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5241 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5242 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5244 (valid_predicate_name_p): New function, split out from old
5245 genpreds.c:process_define_predicate.
5246 (process_define_predicate): New function, combining code from
5247 old genpreds.c and genrecog.c functions.
5248 (process_rtx): Call it for DEFINE_PREDICATE and
5249 DEFINE_SPECIAL_PREDICATE.
5251 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5253 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5254 size of a '%A' memory reference.
5255 (T_DREG, T_QREG): New neon_builtin_type_bits.
5256 (arm_init_neon_builtins): Assert that the load and store operands
5257 are neon_struct_operands.
5258 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5259 (NEON_ARG_MEMORY): New builtin_arg.
5260 (neon_dereference_pointer): New function.
5261 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5262 Handle NEON_ARG_MEMORY.
5263 (arm_expand_neon_builtin): Update after above interface changes.
5264 Use NEON_ARG_MEMORY for loads and stores.
5265 * config/arm/predicates.md (neon_struct_operand): New predicate.
5266 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5267 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5268 (V_four_elem): Tweak formatting.
5269 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5270 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5271 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5272 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5273 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5274 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5275 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5276 Use %A in the output template.
5277 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5278 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5279 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5280 the width of the memory access. Remove post-increment.
5281 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5283 2011-04-12 Nick Clifton <nickc@redhat.com>
5285 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5286 instruction for interrupt handlers if the target is the basic V850
5288 (expand_epilogue): Likewise.
5290 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5292 PR rtl-optimization/48549
5293 * combine.c (propagate_for_debug): Also stop after BB_END of
5294 this_basic_block. Process LAST and just stop processing after it.
5295 (combine_instructions): If last_combined_insn has been deleted,
5296 set last_combined_insn to its PREV_INSN.
5298 2011-04-12 Richard Guenther <rguenther@suse.de>
5300 PR tree-optimization/46076
5301 * gimple.h (struct gimple_statement_call): Add fntype field.
5302 (gimple_call_fntype): Adjust.
5303 (gimple_call_set_fntype): New function.
5304 * gimple.c (gimple_build_call_1): Set the call function type.
5305 * gimplify.c (gimplify_call_expr): Preserve the function
5306 type the frontend used for the call.
5307 (gimplify_modify_expr): Likewise.
5308 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5310 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5312 * tree-ssa.c (useless_type_conversion_p): Function pointer
5313 conversions are useless.
5315 2011-04-12 Martin Jambor <mjambor@suse.cz>
5317 * cgraph.h (cgraph_node): Remove function declaration.
5318 (cgraph_create_node): Declare.
5319 (cgraph_get_create_node): Likewise.
5320 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5321 Updated all callers.
5322 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5323 the decl does not already exist. Call cgraph_get_create_node instead
5325 (cgraph_get_create_node): New function.
5326 (cgraph_same_body_alias): Update comment.
5327 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5328 assert it does not return NULL.
5329 (cgraph_update_edges_for_call_stmt): Likewise.
5330 (cgraph_clone_edge): Likewise.
5331 (cgraph_create_virtual_clone): Likewise.
5332 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5333 instead of cgraph_node.
5334 (cgraph_add_new_function): Call cgraph_create_node or
5335 cgraph_get_create_node instead of cgraph_node.
5336 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5337 instead of cgraph_node.
5338 (record_eh_tables): Likewise.
5339 (mark_address): Likewise.
5340 (mark_load): Likewise.
5341 (build_cgraph_edges): Call cgraph_get_create_node instead
5343 (rebuild_cgraph_edges): Likewise.
5344 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5345 instead of cgraph_node.
5346 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5348 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5349 cgraph_create_node instead of cgraph_node.
5350 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5352 * lto-cgraph.c (input_node): Likewise.
5353 * lto-streamer-in.c (input_function): Likewise.
5354 * varasm.c (mark_decl_referenced): Likewise.
5355 (assemble_alias): Likewise.
5357 2011-04-12 Martin Jambor <mjambor@suse.cz>
5359 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5360 instead of cgraph_node and assert it does not return NULL.
5361 * lto-streamer-in.c (lto_read_body): Likewise.
5362 * omp-low.c (new_omp_context): Likewise.
5363 (create_task_copyfn): Likewise.
5364 * tree-emutls.c (lower_emutls_function_body): Likewise.
5365 * matrix-reorg.c (transform_allocation_sites): Likewise.
5367 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5370 * c-typeck.c (build_asm_expr): Error out on attempts to use
5371 void type outputs or inputs for constraints that allow reg or
5374 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5375 Richard Earnshaw <rearnsha@arm.com>
5378 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5379 to use sign-magnitude offsets. Reject unsupported unaligned
5380 cases. Add detailed description in comments.
5381 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5382 condition from TARGET_32BIT to TARGET_ARM.
5384 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5386 * tree.h (struct typed_tree): New.
5387 (struct tree_common): Include it instead of tree_base.
5388 (TREE_TYPE): Update for new location of type field.
5389 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5390 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5391 (union tree_node): Add typed field.
5392 * treestruct.def (TS_TYPED): New.
5393 * lto-streamer.c (check_handled_ts_structures): Handle it.
5394 * tree.c (MARK_TS_TYPED): New macro.
5395 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5397 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5399 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5400 (force_nonfallthru): Do not alter the loop nest if no basic block
5403 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5405 * config/i386/sse.md (VI): New mode iterator.
5407 (AVX256MODEI): Ditto.
5408 (AVXMODEF4P): Ditto.
5409 (avxvecpsmode): Ditto.
5410 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5411 (sse2_andnot<mode>3): New expander.
5412 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5413 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5414 (<any_logic:code><mode>3): Use VI mode iterator.
5415 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5416 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5417 (*andnottf3): Handle AVX three-operand constraints.
5418 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5420 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5421 Robert Millan <rmh@gnu.org>
5423 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5424 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5425 GNU_USER_DYNAMIC_LINKER64): Define.
5426 (REG_NAME): Don't undefine.
5427 (MD_UNWIND_SUPPORT): Undefine.
5428 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5429 (REG_NAME): Don't undefine.
5430 (MD_UNWIND_SUPPORT): Undefine.
5431 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5433 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5435 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5436 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5438 2011-04-11 Xinliang David Li <davidxl@google.com>
5440 * value-profile.c (check_ic_target): New function.
5441 (gimple_ic_transform): Sanity check indirect call target.
5442 * gimple-low.c (gimple_check_call_args): Interface change.
5443 (gimple_check_call_matching_types): New function.
5444 * tree-inline.c (tree_can_inline_p): Call new function.
5446 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5448 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5449 tree-pretty-print.h & realmpfr.h.
5451 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5454 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5455 (setup_allocno_and_important_classes): Ditto.
5457 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5459 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5460 GNU_USER_DYNAMIC_LINKER.
5461 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5462 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5463 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5464 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5465 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5466 GNU_USER_TARGET_OS_CPP_BUILTINS.
5467 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5468 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5469 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5470 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5471 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5472 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5473 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5474 GNU_USER_TARGET_OS_CPP_BUILTINS.
5475 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5476 GNU_USER_DYNAMIC_LINKER.
5477 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5478 GNU_USER_TARGET_OS_CPP_BUILTINS.
5479 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5480 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5481 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5483 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5484 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5485 GNU_USER_DYNAMIC_LINKER64): Remove.
5486 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5488 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5489 GNU_USER_DYNAMIC_LINKER.
5490 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5491 GNU_USER_TARGET_OS_CPP_BUILTINS.
5492 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5493 GNU_USER_TARGET_OS_CPP_BUILTINS.
5494 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5495 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5496 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5497 GNU_USER_TARGET_OS_CPP_BUILTINS.
5498 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5499 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5500 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5501 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5502 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5503 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5504 GNU_USER_DYNAMIC_LINKER.
5505 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5506 GNU_USER_TARGET_OS_CPP_BUILTINS.
5507 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5508 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5509 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5510 GNU_USER_DYNAMIC_LINKER.
5511 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5512 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5513 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5514 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5515 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5516 GNU_USER_DYNAMIC_LINKER.
5517 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5518 GNU_USER_DYNAMIC_LINKERN32.
5519 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5520 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5521 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5522 GNU_USER_DYNAMIC_LINKER32.
5523 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5524 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5525 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5526 GNU_USER_DYNAMIC_LINKER.
5527 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5528 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5529 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5530 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5531 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5532 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5533 GNU_USER_DYNAMIC_LINKER32.
5534 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5535 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5536 GNU_USER_DYNAMIC_LINKER.
5537 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5539 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5540 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5541 GNU_USER_DYNAMIC_LINKER64.
5542 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5543 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5544 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5545 GNU_USER_DYNAMIC_LINKER.
5546 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5547 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5548 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5549 GNU_USER_DYNAMIC_LINKER.
5550 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5551 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5552 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5553 GNU_USER_DYNAMIC_LINKER32.
5554 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5555 GNU_USER_DYNAMIC_LINKER64.
5556 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5557 GNU_USER_DYNAMIC_LINKER64.
5558 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5559 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5560 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5561 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5562 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5564 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5566 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5567 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5568 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5569 GNU_USER_DYNAMIC_LINKER.
5570 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5571 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5572 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5573 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5574 GNU_USER_DYNAMIC_LINKER64.
5575 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5576 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5577 GNU_USER_LINK_EMULATION.
5578 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5579 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5580 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5581 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5582 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5583 CPP_SPEC, CC1_SPEC): Remove.
5584 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5585 (GNU_USER_DYNAMIC_LINKER): Define.
5586 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5587 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5588 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5589 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5590 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5591 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5592 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5593 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5594 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5595 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5596 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5597 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5598 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5599 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5600 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5601 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5602 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5603 GNU_USER_DYNAMIC_LINKER.
5604 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5605 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5606 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5607 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5608 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5609 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5610 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5611 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5612 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5613 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5615 2011-04-11 Kai Tietz <ktietz@redhat.com>
5619 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5620 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5622 (ix86_is_msabi_thiscall): Removed.
5623 (ix86_is_type_thiscall): Likewise.
5624 (ix86_get_callcvt): New function.
5625 (ix86_comp_type_attributes): Simplify check.
5626 (ix86_function_regparm): Use ix86_get_callcvt for calling
5627 convention attribute checks.
5628 (ix86_return_pops_args): Likewise.
5629 (ix86_static_chain): Likewise.
5630 (x86_this_parameter): Likewise.
5631 (x86_output_mi_thunk): Likewise.
5632 (ix86_function_type_abi): Optimize check for types without attributes.
5633 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5634 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5635 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5637 (IX86_BASE_CALLCVT): Helper macro.
5638 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5639 Use ix86_get_callcvt for calling convention attribute checks and avoid
5640 symbol-decoration for stdcall in TARGET_RTD case.
5641 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5643 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5646 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5648 * config/i386/sse.md (VI_128): New mode iterator.
5649 (VI12_128): Rename from SSEMODE12.
5650 (VI14_128): Rename from SSEMODE14.
5651 (VI124_128): New mode iterator.
5652 (VI24_128): Rename from SSEMODE248.
5653 (VI248_128): Rename from SSEMODE248.
5654 (SSEMODE124C8): Remove.
5655 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5656 (*sse2_<plusminus_insn><mode>3): Merge with
5657 *avx_<plusminus_insn><mode>3.
5658 (*mulv8hi3): Merge with *avx_mulv8hi3.
5659 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5660 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5661 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5662 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5663 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5664 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5665 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5666 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5667 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5668 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5669 (*<smaxmin:code>v8hi3): Ditto.
5670 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5671 (*<smaxmin:code>v16qi3): Ditto.
5672 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5673 (*sse2_eq<mode>3): Ditto.
5674 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5675 (*sse2_gt<mode>3): Ditto.
5676 (vcondv2di): Split out of vcond<mode>.
5677 (vconduv2di): Split out of vcondu<mode>.
5679 2011-04-11 Richard Guenther <rguenther@suse.de>
5681 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5682 before calling tree_low_cst.
5684 2011-04-11 Richard Guenther <rguenther@suse.de>
5686 * stor-layout.c (layout_type): Compute all array index size operations
5687 in the original type.
5688 (initialize_sizetypes): Add comment.
5689 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5691 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5693 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5695 2011-04-11 Martin Jambor <mjambor@suse.cz>
5697 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5698 of cgraph_node, handle NULL return value.
5699 (cgraph_global_info): Likewise.
5700 (cgraph_rtl_info): Likewise.
5701 * tree-inline.c (estimate_num_insns): Likewise.
5702 * gimplify.c (unshare_body): Likewise.
5703 (unvisit_body): Likewise.
5704 (gimplify_body): Likewise.
5705 * predict.c (optimize_function_for_size_p): Likewise.
5706 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5707 (call_may_clobber_ref_p_1): Likewise.
5708 * varasm.c (function_section_1): Likewise.
5709 (assemble_start_function): Likewise.
5711 2011-04-11 Martin Jambor <mjambor@suse.cz>
5713 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5715 * final.c (rest_of_clean_state): Likewise.
5716 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5717 * passes.c (pass_init_dump_file): Likewise.
5718 (execute_all_ipa_transforms): Likewise.
5719 (function_called_by_processed_nodes_p): Likewise.
5720 * predict.c (maybe_hot_frequency_p): Likewise.
5721 (probably_never_executed_bb_p): Likewise.
5722 (compute_function_frequency): Likewise.
5723 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5724 (unnest_nesting_tree_1): Likewise.
5725 (lower_nested_functions): Likewise.
5726 * tree-optimize.c (execute_fixup_cfg): Likewise.
5727 (tree_rest_of_compilation): Likewise.
5728 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5729 * tree-sra.c (ipa_early_sra): Likewise.
5730 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5731 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5732 * ipa.c (record_cdtor_fn): Likewise.
5733 * ipa-inline.c (cgraph_early_inlining): Likewise.
5734 (compute_inline_parameters_for_current): Likewise.
5735 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5736 * ipa-pure-const.c (local_pure_const): Likewise.
5737 * ipa-split.c (split_function): Likewise.
5738 (execute_split_functions): Likewise.
5739 * cgraphbuild.c (build_cgraph_edges): Likewise.
5740 (rebuild_cgraph_edges): Likewise.
5741 (cgraph_rebuild_references): Likewise.
5742 (remove_cgraph_callee_edges): Likewise.
5743 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5744 (verify_cgraph_node): Likewise.
5745 (cgraph_analyze_functions): Likewise.
5746 (cgraph_preserve_function_body_p): Likewise.
5747 (save_inline_function_body): Likewise.
5748 (save_inline_function_body): Likewise.
5749 * tree-inline.c (copy_bb): Likewise.
5750 (optimize_inline_calls): Likewise.
5752 2011-04-11 Martin Jambor <mjambor@suse.cz>
5754 PR tree-optimization/48195
5755 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5756 ipa_check_create_edge_args.
5757 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5758 ipa_check_create_edge_args.
5759 * ipa-inline.c (inline_generate_summary): Do not call
5760 ipa_check_create_node_params and ipa_check_create_edge_args.
5761 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5762 ipa_check_create_edge_args.
5764 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5766 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5768 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5769 * function.c (record_hard_reg_sets): Likewise.
5770 * ira.c (compute_regs_asm_clobbered): Likewise.
5771 * sched-deps.c (sched_analyze_1): Likewise.
5772 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5774 2011-04-09 Xinliang David Li <davidxl@google.com>
5776 PR tree-optimization/PR48484
5777 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5778 has_valid_pred lazily
5780 2011-04-09 Duncan Sands <baldrick@free.fr>
5782 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5784 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5786 * combine.c (combine_validate_cost): Adjust comments. Set registered
5787 cost of I0 to zero at the end, if any.
5789 2011-04-08 Xinliang David Li <davidxl@google.com>
5791 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5792 to insane profile data.
5794 2011-04-08 Xinliang David Li <davidxl@google.com>
5796 * ipa-cp.c (ipcp_update_profiling): Correct
5797 negative scale factor due to insane profile data.
5799 2011-04-08 Xinliang David Li <davidxl@google.com>
5801 * final.c (dump_basic_block_info): New function.
5802 (final): Dump basic block.
5803 (final_scan_insn): Remove old dump.
5805 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5808 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5811 2011-04-08 Michael Matz <matz@suse.de>
5814 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5816 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5817 * rtl.h (rebuild_jump_labels_chain): Declare.
5818 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5819 insns inserted on edges.
5821 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5823 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5824 * config/arm/arm-arches.def: New.
5825 * config/arm/arm-opts.h: New.
5826 * config/arm/genopt.sh: New.
5827 * config/arm/arm-tables.opt: New (generated).
5828 * config/arm/arm.c (arm_handle_option, arm_target_help,
5829 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5830 (all_architectures): Get most table contents from arm-arches.def.
5831 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5832 arm_selected_tune here.
5833 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5834 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5835 (march=, mcpu=, mtune=): Use Enum and Var.
5836 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5837 (arm.o): Update dependencies.
5839 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5841 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5843 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5844 (write_typed_alloc_defns): Likewise.
5845 (main): Calls write_typed_alloc_defns with output_header.
5847 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5850 * ira-color.c (setup_profitable_hard_regs): Add comments.
5851 Don't take prohibited hard regs into account.
5852 (setup_conflict_profitable_regs): Rename to
5853 get_conflict_profitable_regs.
5854 (check_hard_reg_p): Check prohibited hard regs.
5856 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5858 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5859 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5860 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5862 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5865 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5866 move from floating point to shift amount register.
5867 (emit_move_sequence): Remove secondary reload support for floating
5868 point to shift amount amount register copies.
5869 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5870 amount register copies.
5871 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5872 register, return false if mode isn't a scalar integer mode.
5873 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5875 2011-04-08 Richard Guenther <rguenther@suse.de>
5877 * gimple.c (gimple_call_flags): Remove kludge.
5879 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5881 * sel-sched.c (sel_region_init): Move call to
5882 sel_setup_region_sched_flags after setup_current_loop_nest.
5884 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5886 PR rtl-optimization/48272
5887 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5888 init_insn_reg_pressure_info. Adjust a caller.
5889 * sched-int.h (init_insn_reg_pressure_info): Declare.
5890 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5891 when sched-pressure is enabled.
5893 2011-04-08 Richard Guenther <rguenther@suse.de>
5895 * gimple.c (gimple_set_modified): Do not queue calls to
5896 MODIFIED_NORETURN_CALLS here ...
5897 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5899 2011-04-08 Richard Guenther <rguenther@suse.de>
5902 * toplev.c (lang_dependent_init): Do not open asm_out_file
5903 in WPA mode, nor perform debug machinery initialization.
5904 (finalize): Do not unlink asm_out_file in WPA mode.
5906 2011-04-08 Richard Guenther <rguenther@suse.de>
5908 * gimple.h (gimple_call_fntype): New function.
5909 (gimple_call_return_type): Use it.
5910 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5911 * gimple-low.c (gimple_check_call_args): Likewise.
5912 * gimple.c (gimple_call_flags): Likewise.
5913 (gimple_call_arg_flags): Likewise.
5914 (gimple_call_return_flags): Likewise.
5915 * tree-cfg.c (verify_gimple_call): Likewise.
5916 (do_warn_unused_result): Likewise.
5917 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5918 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5920 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5922 PR rtl-optimization/48235
5923 * sel-sched.c (code_motion_process_successors): Recompute the last
5924 insn in basic block if control flow changed.
5925 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5926 Update condition for ilist_remove.
5928 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5930 PR rtl-optimization/48302
5931 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5932 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5933 it to record added preheader blocks.
5934 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5935 on to sel_add_loop_preheaders.
5936 (sel_region_init): Move call to setup_current_loop_nest after
5939 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5942 * cfgloop.h (loop_has_exit_edges): New helper.
5943 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5945 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5946 that have no exit edges.
5948 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5950 PR rtl-optimization/48442
5951 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5952 all callers. Adjust assert.
5954 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5956 PR tree-optimization/48377
5957 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5958 is_packed to true even for types with smaller TYPE_ALIGN than
5961 2011-04-08 Richard Guenther <rguenther@suse.de>
5964 * doc/tm.texi: Re-generate.
5966 2011-04-08 Wei Guozhi <carrot@google.com>
5969 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5970 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5971 * config/arm/arm.md (*push_multi): Change the length computation to
5974 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5976 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5977 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5978 * doc/tm.texi: Regenerate.
5979 * system.h (ASM_OUTPUT_BSS): Poison.
5980 * varasm.c (asm_output_bss): Remove function.
5981 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5983 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5984 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5985 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5986 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5988 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5990 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5992 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5994 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5996 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5999 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6001 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6002 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6003 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6005 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6006 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6007 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6008 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6009 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6010 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6011 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6012 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6013 options. Don't map other m68k options manually. Don't handle
6014 old-style options as canonical.
6015 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6016 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6018 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6020 * basic-block.h (force_nonfallthru): Move to...
6021 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6022 (force_nonfallthru): ...here.
6023 * cfghooks.c (force_nonfallthru): New function.
6024 * cfgrtl.c (force_nonfallthru): Rename into...
6025 (rtl_force_nonfallthru): ...this.
6026 (commit_one_edge_insertion): Do not set AUX field.
6027 (commit_edge_insertions): Do not discover new basic blocks.
6028 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6029 (cfg_layout_rtl_cfg_hooks): Likewise.
6030 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6031 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6032 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6034 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6036 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6039 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6041 * config/i386/sse.md: Update copyright year.
6042 (avxcvtvecmode): Remove.
6043 (sse_movhlps): Merge with *avx_movhlps.
6044 (sse_movlhps): Merge with *avx_movlhps.
6045 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6046 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6047 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6048 (sse_loadhps): Merge with *avx_loadhps.
6049 (sse_storelps): Merge with *avx_storelps.
6050 (sse_loadlps): Merge with *avx_loadlps.
6051 (sse_movss): Merge with *avx_movss.
6052 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6053 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6054 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6055 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6056 (vec_set<mode>_0): Ditto.
6057 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6058 (sse4_1_insertps): Merge with *avx_insertps.
6059 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6060 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6061 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6062 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6063 (sse2_storehpd): Merge with *avx_storehpd.
6064 (sse2_loadhpd): Merge with *avx_loadhpd.
6065 (sse2_loadlpd): Merge with *avx_loadlpd.
6066 (sse2_movsd): Merge with *avx_movsd.
6067 (*vec_concatv2df): Merge with *vec_concatv2df.
6069 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6072 * combine.c (combine_instructions): Add last_combined_insn,
6073 update it if insn is after it, pass it to all try_combine calls.
6074 (try_combine): Add last_combined_insn parameter, pass it instead of
6075 i3 to propagate_for_debug.
6077 2011-04-07 Nick Clifton <nickc@redhat.com>
6079 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6080 to handle MDR <-> data register transfers.
6081 (movhi_internal): Likewise.
6083 2011-04-07 Alan Modra <amodra@gmail.com>
6085 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6086 previous stack info.
6088 2011-04-07 Tom de Vries <tom@codesourcery.com>
6091 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6092 flow_find_cross_jump. Swap variables to implement backward replacement.
6093 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6095 2011-04-07 Tom de Vries <tom@codesourcery.com>
6098 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6099 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6101 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6102 src1 or src2. Redirect edges to the last basic block. Update
6103 frequency and count on multiple basic blocks in case of fallthru.
6105 2011-04-07 Tom de Vries <tom@codesourcery.com>
6108 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6110 (old_insns_match_p): Change return type. Replace return false/true
6111 with return dir_none/dir_both. Use can_replace_by.
6112 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6113 direction from dir_p. Register replacement direction in dir, last_dir
6114 and afterlast_dir. Handle new return type of old_insns_match_p using
6115 merge_dir. Return replacement direction in dir_p.
6116 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6117 return type of old_insns_match_p.
6118 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6119 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6120 flow_find_cross_jump.
6121 * basic-block.h (enum replace_direction): New type.
6122 (flow_find_cross_jump): Add parameter to declaration.
6124 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6126 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6127 (AVXMODEDCVTPS2DQ): Ditto.
6128 (VEC_FLOAT_MODE): Ditto.
6129 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6130 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6131 (<any_logic:code><mode>3): Use VF mode iterator.
6132 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6133 Use VF mode iterator.
6134 (copysign<mode>3): Use VF mode iterator.
6135 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6136 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6137 (*<any_logic:code><MODEF:mode>3): Merge with
6138 *avx_<any_logic:code><MODEF:mode>3.
6139 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6140 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6141 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6142 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6143 (sse2_cvtdq2ps): Use %v modifier.
6144 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6145 (avx_cvtps2dq<avxmodesuffix>): Remove.
6146 (sse2_cvtps2dq): Use %v modifier.
6147 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6148 (avx_cvttps2dq<avxmodesuffix>): Remove.
6149 (sse2_cvttps2dq): Use %v modifier.
6150 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6151 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6152 (sse2_cvtsd2siq): Fix insn template.
6153 (sse2_cvtsd2siq_2): Ditto.
6154 (sse2_cvttsd2siq): Ditto.
6155 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6156 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6158 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6160 * gcov-io.c: Use GCC Runtime Library Exception.
6162 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6165 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6166 as base_reg whatever register reg has been eliminated to, instead
6167 of hardcoding STACK_POINTER_REGNUM.
6169 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6171 * doc/tm.texi.in: Document C target hooks as separate from general
6173 * doc/tm.texi: Regenerate.
6174 * genhooks.c (struct hook_desc): Add docname field.
6175 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6177 (hook_array): Include c-target.def.
6178 (emit_documentation): Use docname field in output.
6179 (emit_init_macros): Take docname argument. Only emit definitions
6180 for hooks matching docname.
6181 (main): Expect additional arguments in all cases. Pass argument
6182 to emit_init_macros.
6183 * target.def: Move initial macro definitions and comments to
6184 target-hooks-macros.h.
6185 (gcc_targetcm): Move to c-family/c-target.def.
6186 * target.h (targetcm): Move declaration to c-family/c-target.h.
6187 * targhooks.c (default_handle_c_option): Move to
6189 * targhooks.h (default_handle_c_option): Move declaration to
6190 c-family/c-common.h.
6191 * target-hooks-macros.h: New file.
6192 * config.gcc (target_has_targetcm): Define and use to add to
6193 c_target_objs and cxx_target_objs.
6194 * config/default-c.c: New file.
6195 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6196 of target.h and target-def.h.
6197 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6198 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6199 darwin_check_cfstring_format_arg): Make static.
6200 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6201 TARGET_STRING_OBJECT_REF_TYPE_P,
6202 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6203 * config/darwin-protos.h (darwin_objc_construct_string,
6204 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6206 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6207 TARGET_STRING_OBJECT_REF_TYPE_P,
6208 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6209 * config/t-darwin (darwin-c.o): Update dependencies.
6210 * system.h (TARGET_HAS_TARGETCM): Poison.
6211 * Makefile.in (TARGET_H): Update.
6212 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6213 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6214 (default-c.o): New target.
6215 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6216 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6217 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6219 (build/genhooks.o): Update dependencies.
6221 2011-04-06 Richard Guenther <rguenther@suse.de>
6223 * ipa-inline.c (enum inlining_mode): Remove.
6224 (cgraph_flatten): Use some other token.
6225 (cgraph_edge_early_inlinable_p): New function, split out from ...
6226 (cgraph_perform_always_inlining): New function, split out from ...
6227 (cgraph_decide_inlining_incrementally): ... here.
6228 (cgraph_mark_inline_edge): Adjust.
6229 (cgraph_early_inlining): Re-structure.
6230 (pass_early_inline): Require SSA form.
6232 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6233 Julian Brown <julian@codesourcery.com>
6234 Mark Shinwell <shinwell@codesourcery.com>
6236 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6237 LO_REGS only for Thumb-1.
6238 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6239 be used in short instructions when optimising for size on Thumb-2.
6241 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6243 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6244 associated with user returns to be preserved.
6246 2011-04-06 Tristan Gingold <gingold@adacore.com>
6248 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6249 symbol_queue_size, DBXOUT_DECR_NESTING,
6250 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6251 if XCOFF_DEBUGGING_INFO.
6253 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6255 * config/i386/i386.md (attribute isa): New.
6256 (attribute enabled): New.
6257 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6258 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6259 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6260 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6261 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6262 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6263 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6264 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6266 * config/i386/sse.md (VF): New mode iterator.
6270 (SSEMODEF4): Remove.
6271 (attribute sse): Handle V8SF and V4DF modes.
6272 (<absneg:code><mode>2): Use VF mode iterator.
6273 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6275 (<plusminus_insn><mode>3): Use VF mode iterator.
6276 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6277 Use VF mode iterator.
6278 (<sse>_vm<plusminus_insn><mode>3): Merge with
6279 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6280 (mul<mode>3): Use VF mode iterator.
6281 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6282 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6284 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6285 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6286 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6287 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6289 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6290 Use VF1 mode iterator.
6291 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6292 (sqrt<VF2:mode>2): New expander.
6293 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6294 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6295 and sqrtv2df2. Use VF mode iterator.
6296 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6298 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6299 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6300 Use VF1 mode iterator.
6301 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6302 (<smaxmin:code><mode>3): Use VF mode iterator.
6303 (*<smaxmin:code><mode>3_finite): Merge with
6304 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6305 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6306 (<sse>_vm<smaxmin:code><mode>2): Merge with
6307 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6308 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6310 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6312 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6313 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6314 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6315 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6316 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6318 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6319 Use VF_128 mode iterator.
6320 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6322 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6323 VF_128 mode iterator.
6324 (vcond<mode>): Use VF mode iterator.
6325 * config/i386/predicates.md (sse_comparison_operator): Merge with
6326 avx_comparison_float_operator. Do not declare as special_predicate.
6327 * config/i386/i386.c (struct builtin_description): Update for renamed
6329 (ix86_expand_args_builtin): Ditto.
6330 (ix86_expand_sse_compare_mask): Ditto.
6332 2011-04-06 Richard Guenther <rguenther@suse.de>
6334 * tree-inline.c (estimate_num_insns): For calls simply account
6335 for all passed arguments and a used return value.
6337 2011-04-06 Richard Guenther <rguenther@suse.de>
6339 PR tree-optimization/47663
6340 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6341 call_stmt_time fields.
6342 (cgraph_edge_inlinable_p): Declare.
6343 (cgraph_edge_recursive_p): New inline function.
6344 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6345 (cgraph_clone_edge): Copy it.
6346 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6347 Account for call stmt time.
6348 (cgraph_estimate_time_after_inlining): Take edge argument.
6349 (cgraph_estimate_edge_growth): Account call stmt size.
6350 (cgraph_estimate_size_after_inlining): Take edge argument.
6351 (cgraph_mark_inline_edge): Adjust.
6352 (cgraph_check_inline_limits): Likewise.
6353 (cgraph_recursive_inlining_p): Remove.
6354 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6355 (cgraph_decide_recursive_inlining): Take edge argument and
6357 (cgraph_decide_inlining_of_small_functions): Do not avoid
6358 diags for recursive inlining here.
6359 (cgraph_flatten): Adjust.
6360 (cgraph_decide_inlining_incrementally): Likewise.
6361 (estimate_function_body_sizes): Remove call cost handling.
6362 (compute_inline_parameters): Initialize caller edge call costs.
6363 (cgraph_estimate_edge_growth): New function.
6364 (cgraph_estimate_growth): Use it.
6365 (cgraph_edge_badness): Likewise.
6366 (cgraph_check_inline_limits): Take an edge argument.
6367 (cgraph_decide_inlining_of_small_functions): Adjust.
6368 (cgraph_decide_inlining): Likewise.
6369 * tree-inline.c (estimate_num_insns): Only account for call
6370 return value if it is used.
6371 (expand_call_inline): Avoid diagnostics on recursive inline
6373 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6374 (input_edge): Input edge call costs.
6376 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6378 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6380 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6382 * doc/invoke.texi (Spec Files): Fix typo.
6384 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6386 * profile.c (branch_prob): Move declaration of local variable. Remove
6387 obsolete ??? comment. Expand the location explicitly instead of using
6388 the LOCATION_FILE and LOCATION_LINE macros.
6390 2011-04-06 Wei Guozhi <carrot@google.com>
6393 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6394 (arm_cond_branch): Likewise.
6395 (arm_cond_branch_reversed): Likewise.
6396 (arm_jump): Likewise.
6397 (push_multi): Likewise.
6398 * config/arm/constraints.md (Py): New constraint.
6400 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6403 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6405 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6406 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6407 #ifdef DBX_DEBUGGING_INFO.
6409 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6412 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6413 if old and new states differ.
6415 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6417 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6418 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6419 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6420 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6421 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6423 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6424 ColdFire options to -mcpu= options.
6426 2011-04-05 Jeff Law <law@redhat.com>
6428 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6429 check if BB is a successor of LOOP->header and return
6430 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6432 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6434 * cprop.c (struct reg_use): Remove.
6435 (reg_use_table): Make an array of RTX.
6436 (find_used_regs, constprop_register, local_cprop_pass,
6437 bypass_block): Simplify users of reg_use_table.
6438 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6439 on one of the uses found by find_used_regs.
6441 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6444 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6447 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6449 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6451 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6453 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6456 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6458 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6460 * combine.c: Include obstack.h.
6461 (struct insn_link): Define.
6462 (uid_log_links): Adjust type.
6463 (FOR_EACH_LOG_LINK): New macro.
6464 (insn_link_obstack): Declare.
6465 (alloc_insn_link): Define.
6466 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6467 type of link variables.
6468 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6469 (try_combine, record_promoted_values, distribute_notes): Likewise.
6470 (distribute_links): Likewise. Tweak prototype.
6471 (clear_log_links): Delete.
6472 (adjust_for_new_dest): Call alloc_insn_link.
6473 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6475 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6477 * gcse.c (modify_mem_list): Convert to an array of VECs.
6478 (canon_modify_mem_list, compute_transp): Tweak formatting.
6479 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6480 (load_killed_in_block_p): Likewise.
6481 (record_last_mem_set_info): Likewise.
6482 (clear_modify_mem_tables): Likewise.
6484 2011-04-05 Tom de Vries <tom@codesourcery.com>
6487 * function.c (emit_use_return_register_into_block): Only define if
6490 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6492 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6494 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6496 * config/rx/rx-opts.h: New.
6497 * config/rx/rx.c (rx_cpu_type): Remove.
6498 (rx_handle_option): Don't assert that global structures are in
6499 use. Access variables via opts pointer. Defer most handling of
6500 OPT_mint_register_. Use error_at.
6501 (rx_option_override): Handle deferred OPT_mint_register_ here.
6502 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6503 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6504 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6505 (rx_cpu_types): New Enum and EnumValue entries.
6506 (mint-register=): Use Defer and use Var accordingly.
6508 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6510 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6511 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6512 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6514 (debug_free_queue, debug_nesting, symbol_queue_index):
6516 * dbxout.c: ...to here. Make static.
6518 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6520 * gcse.c (modify_pair): Define. Define a VEC of it.
6521 (canon_modify_mem_list): Convert to an array of VECs.
6522 (free_insn_expr_list_list): Delete.
6523 (clear_modify_mem_tables): Call VEC_free instead.
6524 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6525 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6526 (canon_list_insert, compute_transp): Likewise.
6528 2011-04-05 Tom de Vries <tom@codesourcery.com>
6531 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6534 2011-04-05 Tom de Vries <tom@codesourcery.com>
6537 * function.c (emit_use_return_register_into_block): New function.
6538 (thread_prologue_and_epilogue_insns): Use
6539 emit_use_return_register_into_block.
6541 2011-04-05 Tom de Vries <tom@codesourcery.com>
6544 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6547 2011-04-05 Tom de Vries <tom@codesourcery.com>
6549 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6551 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6553 * config/arm/arm.md (define_constants for unspec): Replace with
6555 (define_constants for unspecv): Replace with define_c_enum.
6556 * config/arm/neon.md (define_constants for unspec): Replace with
6559 2011-04-04 Richard Henderson <rth@redhat.com>
6562 * dwarf2out.c (output_line_info): Always emit line info from
6563 at least one section.
6564 (dwarf2out_init): Create text_section_line_info here ...
6565 (set_cur_line_info_table): ... not here.
6567 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6570 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6573 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6575 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6577 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6578 (expr_equiv_p): Remove.
6579 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6580 (hash_scan_set): Update call to insert_set_in_table.
6581 (dump_hash_table): Dump <dest, src> pair.
6582 (lookup_set): Simplify. Lookup <dest, src> pair.
6583 (compute_transp): Remove, fold heavily simplified code into...
6584 (compute_local_properties): ...here. Expect COMP and TRANSP
6586 (find_avail_set): Take set directly from struct expr.
6587 (find_bypass-set): Likewise.
6588 (bypass_block): Likewise.
6589 (cprop_insn): Likewise. Remove redundant INSN_P test.
6591 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6592 checks on form of COND from find_implicit_sets to here.
6593 (find_implicit_sets): Cleanup control flow. Split critical edges
6594 if it exposes implicit sets. Allocate/resize implicit_sets as
6596 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6597 changed something. Run df_analyze after find_implicit_sets if any
6598 edges were split. Do not allocate implicit_sets here.
6600 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6601 (gcse_obstack): Renamed to cprop_obstack.
6602 (GNEW, GNEWVEC, GNEWVAR): Remove.
6604 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6605 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6606 (gcse_alloc): Likewise, and rename to cprop_alloc.
6607 (alloc_gcse_men, free_gcse_mem): Remove.
6608 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6609 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6610 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6612 * cprop.c (oprs_not_set_p): Remove.
6613 (mark_set, mark_clobber): Remove.
6614 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6615 (reg_not_set_p): New function.
6616 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6617 (cprop_insn): Likewise.
6618 (cprop_jump): Use FOR_EACH_EDGE.
6620 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6623 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6624 (rank_for_schedule): Use scheduled_insns vector instead of
6625 last_scheduled_insn.
6626 (ok_for_early_queue_removal): Likewise.
6627 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6629 (choose_ready): Likewise.
6630 (commit_schedule): Use VEC_iterate.
6631 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6632 a dbg_cnt, use it and ensure the first insn is in the ready list.
6633 (haifa_sched_init): Allocate scheduled_insns.
6634 (sched_extend_ready_list): Don't allocate it; reserve space.
6635 (haifa_sched_finish): Free it.
6637 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6639 * optc-gen.awk: Always remove type from Variable entry before
6640 recording in var_seen.
6642 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6644 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6645 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6646 call to tidy_fallthru_edges.
6648 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6650 * doc/options.texi (ToLower): Document.
6651 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6652 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6653 * opts.h (cl_option): Add cl_tolower field.
6654 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6655 arguments with lowercase strings.
6656 * config/rx/rx.opt (mcpu=): Add ToLower.
6657 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6660 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6662 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6664 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6666 * config/vax/vax.c: Include reload.h.
6668 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6670 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6671 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6672 (sparc_preferred_reload_class): New function.
6674 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6677 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6678 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6680 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6682 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6683 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6685 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6687 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6688 (ASM_OUTPUT_ALIGNED_BSS): Define.
6690 2011-04-03 Michael Matz <matz@suse.de>
6692 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6693 and next_slot members.
6694 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6695 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6696 (lto_streamer_cache_append): Declare.
6697 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6698 unsigned index, remove offset parameter, ensure that we append
6699 or update existing entries.
6700 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6701 parameter, update next_slot for append.
6702 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6704 (lto_streamer_cache_insert_at): Likewise.
6705 (lto_streamer_cache_append): New function.
6706 (lto_streamer_cache_lookup): Use unsigned index.
6707 (lto_streamer_cache_get): Likewise.
6708 (lto_record_common_node): Don't test tree_node_can_be_shared.
6709 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6710 (lto_streamer_cache_delete): Don't free offsets member.
6711 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6712 (lto_output_string_with_length): Use lto_output_data_stream.
6713 (lto_output_tree_header): Remove ix parameter, don't write it.
6714 (lto_output_builtin_tree): Likewise.
6715 (lto_write_tree): Adjust callers to above, don't track and write
6716 offset, write unsigned index.
6717 (output_unreferenced_globals): Don't emit all global vars.
6718 (write_global_references): Use unsigned indices.
6719 (lto_output_decl_state_refs): Likewise.
6720 (write_symbol): Likewise.
6721 * lto-streamer-in.c (lto_input_chain): Move earlier.
6722 (input_function): Use unsigned index.
6723 (input_alias_pairs): Don't read and then ignore all global vars.
6724 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6725 don't pass it back, use lto_streamer_cache_append.
6726 (lto_register_var_decl_in_symtab): Use unsigned index.
6727 (lto_register_function_decl_in_symtab): Likewise.
6728 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6730 (lto_get_builtin_tree): Don't read index, use
6731 lto_streamer_cache_append.
6732 (lto_read_tree): Adjust call to lto_materialize_tree.
6734 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6735 don't use function calls in arguments to MIN.
6737 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6740 * gimple.c (gimple_type_leader_entry): Mark deletable.
6742 2011-04-03 Alan Modra <amodra@gmail.com>
6744 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6746 2011-04-03 Michael Matz <matz@suse.de>
6748 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6750 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6752 2011-04-03 Michael Matz <matz@suse.de>
6754 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6755 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6756 without function context.
6757 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6758 current_function_decl and cfun.
6760 2011-04-03 Michael Matz <matz@suse.de>
6762 * tree.c (decl_init_priority_insert): Don't create entry for
6764 (decl_fini_priority_insert): Ditto.
6765 (fields_compatible_p, find_compatible_field): Remove.
6766 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6767 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6769 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6771 * combine.c (try_combine): Remove useless local variable.
6773 2011-04-03 Richard Guenther <rguenther@suse.de>
6774 Ira Rosen <ira.rosen@linaro.org>
6776 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6777 non-variable offsets and compare the remaining bases of the two
6778 accesses instead of looking for exact same data-ref.
6780 2011-04-02 Kai Tietz <ktietz@redhat.com>
6783 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6785 * i386.c (ix86_is_msabi_thiscall): New helper function.
6786 (ix86_is_type_thiscall): New helper function.
6787 (ix86_comp_type_attributes): Handle thiscall for method-functions
6789 (init_cumulative_args): Likewise.
6790 (find_drap_reg): Likewise.
6791 (ix86_static_chain): Likewise.
6792 (x86_this_parameter): Likewise.
6793 (x86_output_mi_thunk): Likewise.
6795 2011-04-01 Olivier Hainque <hainque@adacore.com>
6796 Nicolas Setton <setton@adacore.com>
6797 Eric Botcazou <ebotcazou@adacore.com>
6799 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6800 (add_gnat_descriptive_type_attribute): New function.
6801 (gen_array_type_die): Call it.
6802 (gen_enumeration_type_die): Likewise.
6803 (gen_struct_or_union_type_die): Likewise.
6804 (modified_type_die): Likewise.
6805 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6806 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6807 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6809 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6812 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6813 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6816 2011-03-17 Richard Guenther <rguenther@suse.de>
6819 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6820 origin for decls in other ltrans units.
6821 (input_varpool_node): Likewise.
6823 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6826 * expr.c (expand_assignment): Handle all possibilities
6827 if TO_RTX is CONCAT.
6828 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6829 (store_split_bit_field): If SUBREG_REG (op0) or
6830 op0 itself has smaller mode than word, return it
6831 for offset 0 and const0_rtx for out-of-bounds stores.
6832 If word is const0_rtx, skip it.
6834 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6836 * config/h8300/h8300.c (print_operand_address): Rename to...
6837 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6838 Call h8300_print_operand and h8300_print_operand_address instead of
6839 print_operand and print_operand_address. Declare.
6840 (print_operand): Renake to...
6841 (h8300_print_operand): ...this. Make static. Adjust comments.
6842 Call h8300_print_operand instead of print_operand. Declare.
6843 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6844 (h8300_register_move_cost): Likewise.
6845 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6846 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6847 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6848 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6849 * config/h8300/h8300-protos.h (print_operand): Delete.
6850 (print_operand_address): Delete.
6852 2011-04-01 Richard Henderson <rth@redhat.com>
6855 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6856 in strict mode before dwarf4. Re-order tests to early out
6857 before switching sections.
6859 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6861 * config/h8300/constraints.md: New file.
6862 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6863 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6864 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6865 * config/h8300/predicates.md (bit_operand): Likewise.
6866 (incdec_operand): Use satisfies_constraint_M and
6867 satisfies_constraint_O. Don't use C code block.
6868 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6869 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6870 (compute_mov_length): Use satisfies_constraint_G.
6871 (fix_bit_operand): Use satisfies_constraint_U.
6872 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6873 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6874 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6875 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6876 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6877 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6878 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6879 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6880 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6881 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6882 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6883 (EXTRA_MEMORY_CONSTRAINT): Delete.
6885 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6886 Michael Meissner <meissner@linux.vnet.ibm.com>
6889 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6890 operands, as per the specifications.
6892 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6893 (vec_extract_evenv4sf): Ditto.
6894 (vec_extract_evenv8hi): Ditto.
6895 (vec_extract_evenv16qi): Ditto.
6896 (vec_extract_oddv4si): Ditto.
6898 2011-03-31 Mark Wielaard <mjw@redhat.com>
6900 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6901 high_pc attribute if the CU has no associated code. Only output
6902 DW_AT_entry_pc for CU if not generating strict dwarf and
6905 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6907 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6908 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6910 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6911 * final.c (final_start_function): Call the new function rather
6912 than using a NULL argument for dwarf2out_frame_debug.
6914 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6915 that contains the prologue.
6917 * haifa-sched.c (queue_insn): New arg REASON. All callers
6918 changed. Print it in debugging output.
6920 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6922 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6923 Split most of the code into...
6924 (begin_move_insn): ... here. New function.
6925 (ebb_sched_info): Add a pointer to it.
6926 * haifa-sched.c (scheduled_insns): New static variable.
6927 (sched_extend_ready_list): Allocate it.
6928 (schedule_block): Use it to record the order of scheduled insns.
6929 Perform RTL changes to move insns only after all scheduling
6930 decisions have been made.
6931 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6932 begin_move_insn field.
6933 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6934 * sched-int.h (struct haifa_sched_info): Remove second argument
6935 from begin_schedule_ready hook. Add new member begin_move_insn.
6936 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6937 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6939 * haifa-sched.c (prune_ready_list): New function, broken out of
6941 (schedule_block): Use it.
6943 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6945 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6947 2011-04-01 Kai Tietz <ktietz@redhat.com>
6949 * config.gcc (*-*-mingw*): Allow as option the
6950 posix threading model.
6951 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6952 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6954 (CPP_SPEC): Add pthread/no-pthread handling.
6955 (LIB_SPEC): Likewise.
6956 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6957 (LIB_SPEC): Likewise.
6958 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6959 flag to pass -pthread option for shared libgcc build.
6960 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6961 for shared libgcc build.
6962 * config/i386/t-mingw-pthread: New file.
6963 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6964 New define to enable use of library pthread by default.
6965 * config/i386/mingw.opt (pthread): New driver option.
6966 (no-pthread): New driver option.
6967 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6968 * config/i386/mingw-w64.opt: Likewise.
6970 2011-04-01 Gary Funck <gary@intrepid.com>
6972 * c-decl.c (grokdeclarator): Fix formatting.
6974 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6976 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6977 instead of n_operands.
6978 (set_storage_via_setmem): Likewise.
6979 * optabs.c (maybe_gen_insn): Likewise.
6980 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6981 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6982 (mips_expand_builtin_direct): Likewise.
6983 * config/spu/spu.c (expand_builtin_args): Likewise.
6985 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6987 * recog.h (insn_data_d): Add n_generator_args.
6988 * genoutput.c (data): Likewise.
6989 (output_insn_data): Print it.
6990 (max_opno, num_dups): Delete.
6991 (scan_operands): Just fill in "d->operand[...]".
6992 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6994 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6996 * gensupport.h (pattern_stats): New structure.
6997 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6998 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6999 (max_operand_1, max_operand_vec): Delete.
7000 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7002 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7004 * emit-rtl.c (emit_pattern_after_setloc): New function.
7005 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7006 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7007 (emit_pattern_after): New function.
7008 (emit_insn_after, emit_jump_insn_after): Call it.
7009 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7010 (emit_pattern_before_setloc): New function.
7011 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7012 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7014 (emit_pattern_before): New function.
7015 (emit_insn_before, emit_jump_insn_before): Call it.
7016 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7018 2011-03-31 Richard Henderson <rth@redhat.com>
7020 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7021 (dw_separate_line_info_entry): Remove.
7022 (enum dw_line_info_opcode): New.
7023 (dw_line_info_entry): Use it.
7024 (dw_line_info_table, dw_line_info_table_p): New.
7025 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7026 (line_info_table, line_info_label_num): Remove.
7027 (line_info_table_in_use): Remove.
7028 (separate_line_info_table): Remove.
7029 (separate_line_info_table_allocated): Remove.
7030 (separate_line_info_table_in_use): Remove.
7031 (LINE_INFO_TABLE_INCREMENT): Remove.
7032 (line_info_label_num): New.
7033 (cur_line_info_table): New.
7034 (text_section_line_info, cold_text_section_line_info): New.
7035 (separate_line_info): New.
7036 (SEPARATE_LINE_CODE_LABEL): Remove.
7037 (print_dwarf_line_table): Remove.
7038 (debug_dwarf): Don't dump it.
7039 (output_one_line_info_table): New.
7040 (output_line_info): Use it.
7041 (new_line_info_table): New.
7042 (set_cur_line_info_table): New.
7043 (dwarf2out_switch_text_section): Use it.
7044 (dwarf2out_begin_function): Likewise.
7045 (push_dw_line_info_entry): New.
7046 (dwarf2out_source_line): Rewrite for new line info tables.
7047 (dwarf2out_init): Remove dead initailizations.
7049 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7051 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7053 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7054 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7055 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7056 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7057 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7058 * opt-functions.awk (flag_init, switch_bit_fields): New.
7059 (switch_flags): Don't handle flags moved to bit-fields. Don't
7060 generate CL_MISSING_OK or CL_SAVE.
7061 * optc-gen.awk: Update to generate bit-field output as well as
7063 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7064 bit-field instead of CL_REJECT_DRIVER flag.
7065 * opts-common.c (generate_canonical_option,
7066 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7067 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7068 instead of CL_REJECT_NEGATIVE flag.
7069 * toplev.c (print_switch_values): Use cl_report bit-field instead
7072 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7074 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7075 a zero minimum index only if it is redundant.
7077 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7079 PR rtl-optimization/48381
7080 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7081 instead of ira_class_hard_reg_index for calculating conflicting
7084 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7086 * cprop.c: Clean up hash table building.
7087 (reg_avail_info): Remove.
7088 (oprs_available_p): Remove.
7089 (record_last_reg_set_info): Remove.
7090 (record_last_set_info): Remove.
7091 (reg_available_p): New function.
7092 (gcse_constant_p): Do not treat unfolded conditions as constants.
7093 (make_set_regs_unavailable): New function.
7094 (hash_scan_set): Simplify with new reg_available_p.
7095 (compute_hash_table_work): Traverse insns stream only once.
7096 Do not compute reg_avail_info. Traverse insns in reverse order.
7097 Record implicit sets after recording explicit sets from the block.
7099 2011-03-31 Michael Matz <matz@suse.de>
7101 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7103 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7105 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7106 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7107 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7108 (h8300_mode_dependent_address_p): New function.
7109 (h8300_get_index): Make static.
7111 2011-03-31 Jeff Law <law@redhat.com>
7113 * reload1.c (elimination_effects): Fix typo in recent change.
7115 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7116 typo potentially leading to null pointer dereference.
7118 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7119 (setup_save_areas): Corresponding changes to avoid useless
7122 * jump.c (reversed_comparison_code_parts): Avoid successive return
7123 statements when REVERSE_CONDITION is defined.
7125 * expr.c (expand_assignment): Avoid useless assignments.
7126 (expand_expr_real_1): Likewise.
7127 (expand_expr_real_2): Avoid useless statements.
7129 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7131 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7133 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7136 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7138 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7141 * doc/tm.texi.in (TARGET_VERSION): Remove.
7142 * doc/tm.texi: Regenerate.
7143 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7144 * collect2.c (main): Don't use TARGET_VERSION.
7145 * mips-tdump.c (main): Don't use TARGET_VERSION.
7146 * mips-tfile.c (main): Don't use TARGET_VERSION.
7147 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7148 * config/rs6000/vxworksae.h: Remove.
7149 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7150 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7151 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7152 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7153 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7154 * config/arm/arm.h (TARGET_VERSION): Remove.
7155 * config/arm/coff.h (TARGET_VERSION): Remove.
7156 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7157 * config/arm/elf.h (TARGET_VERSION): Remove.
7158 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7159 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7160 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7161 * config/arm/pe.h (TARGET_VERSION): Remove.
7162 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7163 * config/arm/semi.h (TARGET_VERSION): Remove.
7164 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7165 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7166 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7167 * config/avr/avr.h (TARGET_VERSION): Remove.
7168 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7169 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7170 * config/frv/frv.h (TARGET_VERSION): Remove.
7171 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7172 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7173 * config/i386/darwin.h (TARGET_VERSION): Remove.
7174 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7175 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7176 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7177 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7178 * config/i386/gnu.h (TARGET_VERSION): Remove.
7179 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7180 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7181 * config/i386/linux.h (TARGET_VERSION): Remove.
7182 * config/i386/linux64.h (TARGET_VERSION): Remove.
7183 * config/i386/lynx.h (TARGET_VERSION): Remove.
7184 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7185 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7186 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7187 * config/i386/netware.h (TARGET_VERSION): Remove.
7188 * config/i386/nto.h (TARGET_VERSION): Remove.
7189 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7190 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7191 * config/ia64/elf.h (TARGET_VERSION): Remove.
7192 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7193 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7194 * config/ia64/linux.h (TARGET_VERSION): Remove.
7195 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7196 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7197 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7198 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7199 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7200 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7201 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7202 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7203 * config/m68k/linux.h (TARGET_VERSION): Remove.
7204 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7205 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7206 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7207 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7208 * config/mep/mep.h (TARGET_VERSION): Remove.
7209 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7210 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7211 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7212 * config/mips/linux.h (TARGET_VERSION): Remove.
7213 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7214 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7215 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7216 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7217 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7218 * config/pa/pa.h (TARGET_VERSION): Remove.
7219 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7220 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7221 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7222 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7223 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7224 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7225 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7226 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7227 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7228 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7229 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7230 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7231 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7232 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7233 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7234 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7235 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7236 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7237 * config/s390/linux.h (TARGET_VERSION): Remove.
7238 * config/s390/s390.h (TARGET_VERSION): Remove.
7239 * config/s390/tpf.h (TARGET_VERSION): Remove.
7240 * config/score/score.h (TARGET_VERSION): Remove.
7241 * config/sh/linux.h (TARGET_VERSION): Remove.
7242 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7243 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7244 * config/sh/sh.h (TARGET_VERSION): Remove.
7245 * config/sh/sh64.h (TARGET_VERSION): Remove.
7246 * config/sh/superh.h (TARGET_VERSION): Remove.
7247 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7248 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7249 * config/sparc/linux.h (TARGET_VERSION): Remove.
7250 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7251 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7252 TARGET_NAME32, TARGET_NAME): Remove.
7253 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7254 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7255 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7256 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7257 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7258 * config/spu/spu.h (TARGET_VERSION): Remove.
7259 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7260 * config/v850/v850.h (TARGET_VERSION): Remove.
7261 * config/vax/linux.h (TARGET_VERSION): Remove.
7262 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7263 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7264 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7266 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7269 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7270 frame-related from frame-unrelated adjustments to the stack pointer.
7272 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7274 * common.opt (fdebug-types-section): Move earlier.
7275 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7277 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7279 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7282 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7284 * tree.h (CASE_CHAIN): Define.
7285 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7286 (gimple_redirect_edge_and_branch): Likewise.
7288 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7291 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7294 2011-03-30 Jeff Law <law@redhat.com>
7296 * PR bootstrap/48371
7297 * reload1.c (reload): Fix botch in last change.
7299 * reload.h (struct reload): Fix typo introduced in last change.
7301 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7303 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7304 Undocumented. Remove help text.
7305 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7308 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7310 * doc/options.texi (NegativeAlias): Document.
7311 (Alias): Mention NegativeAlias.
7312 * opt-functions.awk: Handle NegativeAlias.
7313 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7314 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7315 * opts.h (CL_NEGATIVE_ALIAS): Define.
7316 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7317 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7319 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7321 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7322 mno-spe and mno-isel instead of mspe=no and -misel=no.
7324 2011-03-29 Mark Wielaard <mjw@redhat.com>
7326 * common.opt (fdebug-types-section): New flag.
7327 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7328 * dwarf2out.c (use_debug_types): New define.
7329 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7330 (print_die): Guard output of type unit signatures using
7332 (build_abbrev_table): Replace assert of dwarf_version >= 4
7333 with assert on use_debug_types.
7334 (size_of_die): Likewise.
7335 (unmark_dies): Likewise.
7336 (value_format): Decide AT_ref_external form on use_debug_types.
7337 (output_die): Replace dwarf_version version check guard with
7338 use_debug_types where appropriate.
7339 (modified_type_die): Likewise.
7340 (gen_reference_type_die): Likewise.
7341 (dwarf2out_start_source_file): Likewise.
7342 (dwarf2out_end_source_file): Likewise.
7343 (prune_unused_types_walk_attribs): Likewise.
7344 (dwarf2out_finish): Likewise.
7346 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7348 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7350 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7352 PR rtl-optimization/48332
7353 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7354 mode of input operand N and modeN to its actual mode.
7356 2011-03-30 Jeff Law <law@redhat.com>
7358 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7359 define accessor macro.
7360 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7361 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7362 (reg_equiv_init): Likewise.
7363 (reg_equivs_size): New variable.
7364 (reg_equiv_init_size): Remove.
7365 (allocate_initial_values): Move prototype to here from....
7366 * integrate.h (allocate_initial_values): Remove prototype.
7367 * integrate.c: Include reload.h.
7368 (allocate_initial_values): Corresponding changes.
7369 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7370 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7371 (update_equiv_regs): Corresponding changes.
7372 (ira): Corresponding changes.
7373 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7374 (push_secondary_reload): Corresponding changes.
7375 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7376 (make_memloc, find_reloads_address): Corresponding changes.
7377 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7378 (find_reloads_address_1): Corresponding changes.
7379 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7380 (refers_to_regno_for_reload_p): Corresponding changes.
7381 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7382 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7383 * reload1.c: Include ggc.h.
7384 (grow_reg_equivs): New function.
7385 (replace_pseudos_in, reload): Corresponding changes.
7386 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7387 (eliminate_regs_1, elimination_effects): Corresponding changes.
7388 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7389 (delete_output_reload): Likewise.
7390 * caller-save.c (mark_referenced_regs): Corresponding changes.
7391 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7392 * frv/predicates.md (frv_load_operand): Corresponding changes.
7393 * microblaze/microblaze.c (double_memory_operand): Corresponding
7395 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7396 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7397 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7398 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7399 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7401 * pa/pa.c (emit_move_sequence): Corresponding changes.
7402 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7404 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7407 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7408 structure modes. Don't check neon_vector_mem_operand for
7409 vector or structure modes.
7411 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7412 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7415 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7416 operand 1 and reshuffle the operands to match.
7417 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7419 2011-03-30 Christian Schüler <cschueler@gmx.de>
7422 * config/c.opt (F): Added 'Driver' to -F option.
7425 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7427 * config/darwin.opt: Added '-arch' option.
7429 2011-03-30 Nick Clifton <nickc@redhat.com>
7431 * config/rx/rx.md: Add peepholes and patterns to combine
7432 extending loads and simple arithmetic instructions.
7433 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7434 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7435 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7436 modes to use pre-decrement and post-increment addressing.
7437 (rx_is_restricted_memory_address): Add range checking of REG+INT
7439 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7440 (rx_memory_move_cost): Adjust cost of stores.
7441 (rx_adjust_insn_length): New function.
7443 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7446 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7447 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7448 matching arg00/arg01 types.
7450 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7452 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7453 last_location to UNKNOWN_LOCATION.
7455 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7458 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7461 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7462 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7465 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7467 (sparc_cpu): Likewise.
7468 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7471 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7475 PR rtl-optimization/48345
7476 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7477 hard regs for given mode from profitable regs when doing secondary
7480 2011-03-29 Jeff Law <law@redhat.com>
7483 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7484 do_not_duplicate field.
7485 (lookup_redirection_data): Corresponding changes.
7486 (create_duplicates): Always create a template block.
7487 (redirect_edges): Remove code which reused the original block
7488 when it was going to become unreachable code.
7489 (thread_block): Don't set do_not_duplicate field.
7491 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7493 * lto-opts.c (register_user_option_p, lto_register_user_option):
7494 Make type argument unsigned.
7495 * lto-streamer.h (lto_register_user_option): Make type argument
7497 * opth-gen.awk: Make CL_* macros unsigned.
7498 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7499 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7500 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7501 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7502 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7503 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7504 (find_opt): Make lang_mask argument unsigned.
7506 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7508 PR rtl-optimization/48331
7509 PR rtl-optimization/48334
7510 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7511 for any used algorithm.
7513 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7515 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7518 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7520 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7521 (alpha_option_override): Don't set alpha_sr_alias_set.
7522 (emit_frame_store_1): Use gen_frame_mem rather than calling
7524 (alpha_expand_epilogue): Ditto.
7526 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7528 PR tree-optimization/48290
7529 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7530 vectorization, check that relevant phis in the basic block after
7531 the inner loop are really inner loop's exit phis.
7533 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7536 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7537 (cached_dw_loc_list_def): New structure.
7538 (cached_dw_loc_list): New typedef.
7539 (cached_dw_loc_list_table): New variable.
7540 (cached_dw_loc_list_table_hash): New function.
7541 (cached_dw_loc_list_table_eq): Likewise.
7542 (add_location_or_const_value_attribute): Take a bool cache_p.
7543 Cache the list when the parameter is true.
7544 (gen_formal_parameter_die): Update caller.
7545 (gen_variable_die): Likewise.
7546 (dwarf2out_finish): Likewise.
7547 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7548 while generating debug info for the decl.
7549 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7550 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7551 (resolve_addr): Cache the result of resolving a chain of
7554 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7556 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7557 conflict object hard regset nodes have intersecting hard reg sets.
7559 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7560 after regstat_init_n_sets_and_refs.
7562 * ira.c: Add more comments at the top.
7563 (setup_stack_reg_pressure_class, setup_pressure_classes):
7564 Add comments how we compute the register pressure classes.
7565 (setup_allocno_and_important_classes): Add more comments.
7566 (setup_class_translate_array, reorder_important_classes)
7567 (setup_reg_class_relations): Add comments.
7569 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7572 * ira-color.c: Add 2011 to the Copyright line.
7573 (assign_hard_reg): Add more comments.
7574 (improve_allocation): Ditto.
7576 * ira-costs.c: Add 2011 to the Copyright line.
7577 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7579 (setup_regno_cost_classes_by_mode): Ditto.
7581 Initial patches from ira-improv branch:
7583 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7585 * ira-build.c (ira_create_object): Remove initialization of
7586 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7587 (ira_create_allocno): Remove initialization of
7588 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7589 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7590 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7591 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7592 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7593 Initialize ALLOCNO_ADD_DATA.
7594 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7595 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7597 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7598 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7600 * ira.c (ira_reallocate): Remove.
7601 (setup_pressure_classes): Call
7602 ira_init_register_move_cost_if_necessary. Use
7603 ira_register_move_cost instead of ira_get_register_move_cost.
7604 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7605 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7607 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7608 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7609 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7610 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7611 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7612 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7614 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7615 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7616 (struct allocno_color_data): New.
7617 (allocno_color_data_t): New typedef.
7618 (allocno_color_data): New definition.
7619 (ALLOCNO_COLOR_DATA): New macro.
7620 (struct object_color_data): New.
7621 (object_color_data_t): New typedef.
7622 (object_color_data): New definition.
7623 (OBJECT_COLOR_DATA): New macro.
7624 (update_copy_costs, calculate_allocno_spill_cost): Call
7625 ira_init_register_move_cost_if_necessary. Use
7626 ira_register_move_cost instead of ira_get_register_move_cost.
7627 (move_spill_restore, update_curr_costs): Ditto.
7628 (allocno_spill_priority): Make it inline.
7629 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7630 (struct coalesce_data, coalesce_data_t): New.
7631 (allocno_coalesce_data): New definition.
7632 (ALLOCNO_COALESCE_DATA): New macro.
7633 (merge_allocnos, coalesced_allocno_conflict_p): Use
7634 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7635 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7636 (coalesce_allocnos): Ditto.
7637 (setup_coalesced_allocno_costs_and_nums): Ditto.
7638 (collect_spilled_coalesced_allocnos): Ditto.
7639 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7640 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7641 (coalesce_spill_slots): Ditto.
7642 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7643 free allocno_coalesce_data.
7645 * ira-conflicts.c: Fix formatting.
7646 (process_regs_for_copy): Call
7647 ira_init_register_move_cost_if_necessary. Use
7648 ira_register_move_cost instead of ira_get_register_move_cost.
7649 (build_object_conflicts): Optimize.
7651 * ira-costs.c (record_reg_classes): Optimize. Call
7652 ira_init_register_move_cost_if_necessary. Use
7653 ira_register_move_cost, ira_may_move_in_cost, and
7654 ira_may_move_out_cost instead of ira_get_register_move_cost and
7655 ira_get_may_move_cost.
7656 (record_address_regs): Ditto.
7657 (scan_one_insn): Optimize.
7658 (find_costs_and_classes): Optimize.
7659 (process_bb_node_for_hard_reg_moves): Call
7660 ira_init_register_move_cost_if_necessary. Use
7661 ira_register_move_cost instead of ira_get_register_move_cost.
7663 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7664 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7665 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7666 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7668 (ira_initiate_emit_data, ira_finish_emit_data)
7669 (create_new_allocno): New functions.
7670 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7671 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7672 Use ira_register_move_cost instead of ira_get_register_move_cost.
7674 * ira-int.h: Fix some comments.
7675 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7676 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7677 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7678 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7680 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7681 bitfield after mode. Make hard_regno a short int. Make
7682 hard_regno short. Remove first_coalesced_allocno and
7683 next_coalesced_allocno. Move mem_optimized_dest_p,
7684 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7685 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7686 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7687 temp, colorable_p. Add new member add_data.
7688 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7689 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7690 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7691 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7692 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7693 (ALLOCNO_ADD_DATA): New macro.
7694 (ira_emit_data_t): New typedef.
7695 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7696 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7697 from struct ira_allocno.
7698 (ALLOCNO_EMIT_DATA): New macro.
7699 (ira_allocno_emit_data, allocno_emit_reg): New.
7700 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7701 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7702 (OBJECT_ADD_DATA): New macro.
7703 (ira_reallocate): Remove.
7704 (ira_initiate_emit_data, ira_finish_emit_data): New.
7705 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7706 (ira_init_register_move_cost_if_necessary): New.
7707 (ira_object_conflict_iter_next): Merge into
7708 ira_object_conflict_iter_cond.
7709 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7711 * ira-live.c (process_single_reg_class_operands): Call
7712 ira_init_register_move_cost_if_necessary. Use
7713 ira_register_move_cost instead of ira_get_register_move_cost.
7715 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7717 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7719 * ira-costs.c: Fix formatting.
7720 (cost_classes, cost_classes_num): Remove.
7721 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7722 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7723 (cost_classes_del, cost_classes_htab): New.
7724 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7725 (initiate_regno_cost_classes, setup_cost_classes): New.
7726 (setup_regno_cost_classes_by_aclass): New.
7727 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7728 (record_reg_classes): Use regno_cost_classes instead of
7729 cost_classes. Move checking opposite operand up.
7730 (record_address_regs): Use regno_cost_classes
7731 instead of cost_classes.
7732 (scan_one_insn): Ditto. Use always general register.
7733 (print_allocno_costs): Use regno_cost_classes instead of
7735 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7736 (find_costs_and_classes): Set up cost classes for each registers.
7737 Use also their mode for this. Use regno_cost_classes instead of
7739 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7741 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7742 (ira_costs, ira_set_pseudo_classes): Call
7743 initiate_regno_cost_classes and finish_regno_cost_classes.
7745 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7747 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7749 * target.def (ira_cover_classes): Remove.
7751 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7753 * doc/tm.texi.in: Ditto.
7755 * ira-conflicts.c: Remove mentioning cover classes from the file.
7756 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7757 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7759 * targhooks.c (default_ira_cover_classes): Remove.
7761 * targhooks.h (default_ira_cover_classes): Ditto.
7763 * haifa-sched.c: Remove mentioning cover classes from the file.
7764 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7765 ira_pressure_classes and ira_pressure_classes_num instead of
7766 ira_reg_class_cover_size and ira_reg_class_cover. Use
7767 sched_regno_pressure_class instead of sched_regno_cover_class.
7768 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7769 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7771 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7772 classes from the file.
7773 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7774 (struct object_hard_regs, struct object_hard_regs_node): New.
7775 (struct ira_object): New members profitable_hard_regs,
7776 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7777 (struct ira_allocno): Rename cover_class to aclass. Rename
7778 cover_class_cost and updated_cover_class_cost to class_cost and
7779 updated_class_cost. Remove splay_removed_p and
7780 left_conflict_size. Add new members colorable_p.
7781 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7782 (ALLOCNO_COLORABLE_P): New macro.
7783 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7784 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7785 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7786 (OBJECT_...): Rename parameter C to O.
7787 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7788 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7789 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7790 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7791 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7792 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7793 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7794 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7795 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7796 x_ira_reg_class_subunion.
7797 (ira_max_memory_move_cost, ira_max_register_move_cost)
7798 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7799 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7800 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7801 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7802 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7803 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7804 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7805 (ira_tune_allocno_costs_and_cover_classes): Rename to
7806 ira_tune_allocno_costs.
7807 (ira_debug_hard_regs_forest): New.
7808 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7809 (ira_object_conflict_iter_next): Fix comments.
7810 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7811 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7812 cover_class to aclass.
7813 (ira_allocate_and_accumulate_costs): Ditto.
7814 (ira_allocate_and_set_or_copy_costs): Ditto.
7816 * opts.c (decode_options): Remove ira_cover_class check.
7818 * ira-color.c: Remove mentioning cover classes from the file. Use
7819 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7820 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7821 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7822 (splay-tree.h): Remove include.
7823 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7824 before copy_freq_compare_func.
7825 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7826 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7828 (hard_regs_roots, hard_regs_node_vec): Ditto.
7829 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7830 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7831 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7832 (create_new_object_hard_regs_node): Ditto.
7833 (add_new_object_hard_regs_node_to_forest): Ditto.
7834 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7835 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7837 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7838 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7839 (remove_unused_object_hard_regs_nodes): Ditto.
7840 (enumerate_object_hard_regs_nodes): Ditto.
7841 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7842 (object_hard_regs_subnode_t): Ditto.
7843 (struct object_hard_regs_subnode): Ditto.
7844 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7845 (setup_object_hard_regs_subnode_index): Ditto.
7846 (get_object_hard_regs_subnodes_num): Ditto.
7847 (form_object_hard_regs_nodes_forest): Ditto.
7848 (finish_object_hard_regs_nodes_tree): Ditto.
7849 (finish_object_hard_regs_nodes_forest): Ditto.
7850 (allocnos_have_intersected_live_ranges_p): Rename to
7851 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7852 (pseudos_have_intersected_live_ranges_p): Rename to
7853 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7854 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7855 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7856 (update_copy_costs): Remove assert. Skip cost update if the hard
7857 reg does not belong the class.
7858 (assign_hard_reg): Process only profitable hard regs.
7859 (uncolorable_allocnos_num): Make it scalar.
7860 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7861 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7862 and ira_reg_class_max_nregs.
7863 (bucket_allocno_compare_func): Check frequency first.
7864 (sort_bucket): Add compare function as a parameter.
7865 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7866 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7867 (push_allocno_to_stack): Rewrite for checking new allocno
7869 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7870 (push_only_colorable): Pass new parameter to sort_bucket.
7871 (push_allocno_to_spill): Remove.
7872 (allocno_spill_priority_compare): Make it inline and rewrite.
7873 (splay_tree_allocate, splay_tree_free): Remove.
7874 (allocno_spill_sort_compare): New function.
7875 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7876 build and use splay tree. Choose first allocno in uncolorable
7877 allocno bucket to spill. Remove setting spill cost.
7878 (all_conflicting_hard_regs): Remove.
7879 (setup_allocno_available_regs_num): Check only profitable hard
7880 regs. Print info about hard regs nodes.
7881 (setup_allocno_left_conflicts_size): Remove.
7882 (put_allocno_into_bucket): Don't call
7883 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7884 (improve_allocation): New.
7885 (color_allocnos): Call setup_profitable_hard_regs,
7886 form_object_hard_regs_nodes_forest, improve_allocation,
7887 finish_object_hard_regs_nodes_forest. Setup spill cost.
7888 (print_loop_title): Use pressure classes.
7889 (color_allocnso): Ditto.
7890 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7891 and allocnos_for_spilling.
7892 (ira_sort_regnos_for_alter_reg): Don't setup members
7893 {first,next}_coalesced_allocno.
7894 (color): Remove allocating and freeing removed_splay_allocno_vec.
7895 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7896 prohibited_class_mode_regs.
7898 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7900 (update_allocno_pressure_excess_length): Use pressure classes.
7901 (inc_register_pressure, dec_register_pressure): Check for pressure
7903 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7904 pressure class. Use ira_reg_class_nregs instead of
7905 ira_reg_class_max_nregs.
7906 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7907 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7908 (single_reg_class): Use ira_reg_class_nregs instead of
7909 ira_reg_class_max_nregs.
7910 (process_bb_node_lives): Use pressure classes.
7912 * ira-emit.c: Remove mentioning cover classes from the file. Use
7913 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7914 (change_loop): Use pressure classes.
7915 (modify_move_list): Call ira_set_allocno_class instead of
7916 ira_set_allocno_cover_class.
7918 * ira-build.c: Remove mentioning cover classes from the file. Use
7919 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7920 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7921 ALLOCNO_UPDATED_CLASS_COST instead of
7922 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7923 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7924 (ira_create_allocno): Remove initialization of
7925 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7926 ALLOCNO_COLORABLE_P.
7927 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7928 Update conflict regs for the objects.
7929 (create_cap_allocno): Remove assert. Don't propagate
7930 ALLOCNO_AVAILABLE_REGS_NUM.
7931 (ira_free_allocno_costs): New function.
7932 (finish_allocno): Change a part of code into call of
7933 ira_free_allocno_costs.
7934 (low_pressure_loop_node_p): Use pressure classes.
7935 (object_range_compare_func): Don't compare classes.
7936 (setup_min_max_conflict_allocno_ids): Ditto.
7938 * loop-invariant.c: Remove mentioning cover classes from the file.
7939 Use ira_pressure_classes and ira_pressure_classes_num instead of
7940 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7941 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7942 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7943 Use reg_allocno_class instead of reg_cover_class.
7944 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7945 STACK_REG_COVER_CLASS.
7946 (get_regno_cover_class): Rename to get_regno_pressure_class.
7947 (move_loop_invariants): Initialize and finalize regstat.
7949 * ira.c: Remove mentioning cover classes from the file. Add
7950 comments about coloring without cover classes. Use ALLOCNO_CLASS
7951 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7952 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7953 setup_class_subset_and_memory_move_costs.
7954 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7955 (setup_cover_and_important_classes): Rename to
7956 setup_allocno_and_important_classes.
7957 (setup_class_translate_array): New.
7958 (setup_class_translate): Call it for allocno and pressure classes.
7959 (cover_class_order): Rename to allocno_class_order.
7960 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7961 of ira_class_translate.
7962 (reorder_important_classes): Set up ira_important_class_nums.
7963 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7964 (print_class_cover): Rename to print_classes. Add parameter.
7965 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7966 Print pressure classes too.
7967 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7968 setup_reg_subclasses.
7969 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7970 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7971 (setup_prohibited_class_mode_regs): Use
7972 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7973 (clarify_prohibited_class_mode_regs): New function.
7974 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7975 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7976 (ira_init_once): Initialize them.
7977 (free_register_move_costs): Process them.
7978 (ira_init): Move calls of find_reg_classes and
7979 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7980 Call clarify_prohibited_class_mode_regs.
7981 (ira_no_alloc_reg): Remove.
7982 (too_high_register_pressure_p): Use pressure classes.
7984 * sched-deps.c: Remove mentioning cover classes from the file.
7985 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7986 ira_pressure_classes and ira_pressure_classes_num instead of
7987 ira_reg_class_cover_size and ira_reg_class_cover.
7988 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7989 sched_regno_pressure_class instead of sched_regno_cover_class.
7990 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7991 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7993 * ira.h: Add 2010 to Copyright.
7994 (ira_no_alloc_reg): Remove external.
7995 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7996 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7997 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7998 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7999 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8000 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8001 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8002 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8003 x_ira_no_alloc_regs.
8004 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8005 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8006 ira_allocno_classes_num and ira_allocno_classes.
8007 (ira_class_translate): Rename to ira_allocno_class_translate.
8008 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8009 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8010 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8011 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8012 (ira_no_alloc_regs): New.
8014 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8015 classes from the file. Use ALLOCNO_CLASS instead of
8016 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8017 ALLOCNO_COVER_CLASS_COST.
8018 (regno_cover_class): Rename to regno_aclass.
8019 (record_reg_classes): Use ira_reg_class_subunion instead of
8020 ira_reg_class_union.
8021 (record_address_regs): Check overflow.
8022 (scan_one_insn): Ditto.
8023 (print_allocno_costs): Print total mem cost fore regional allocation.
8024 (print_pseudo_costs): Use REG_N_REFS.
8025 (find_costs_and_classes): Use classes intersected with them on the
8026 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8027 ira_reg_class_union. Use ira_allocno_class_translate and
8028 regno_aclass instead of ira_class_translate and regno_cover_class.
8029 Modify code for finding regno_aclass. Setup preferred classes for
8031 (setup_allocno_cover_class_and_costs): Rename to
8032 setup_allocno_class_and_costs. Use regno_aclass instead of
8033 regno_cover_class. Use ira_set_allocno_class instead of
8034 ira_set_allocno_cover_class.
8035 (init_costs, finish_costs): Use regno_aclass instead of
8037 (ira_costs): Use setup_allocno_class_and_costs instead of
8038 setup_allocno_cover_class_and_costs.
8039 (ira_tune_allocno_costs_and_cover_classes): Rename to
8040 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8041 by processing objects. Use ira_reg_class_max_nregs instead of
8042 ira_reg_class_nregs.
8044 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8046 * sched-int.h: Remove mentioning cover classes from the file.
8047 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8049 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8050 classes from the file.
8051 (struct reg_pref): Rename coverclass into allocnoclass.
8052 (reg_cover_class): Rename to reg_allocno_class.
8054 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8056 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8058 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8060 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8062 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8064 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8066 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8068 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8070 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8072 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8074 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8075 (i386_ira_cover_classes): Ditto.
8077 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8079 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8081 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8083 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8085 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8087 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8089 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8090 (mips_ira_cover_classes): Ditto.
8092 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8094 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8096 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8098 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8100 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8102 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8103 (IRA_COVER_CLASSES_VSX): Ditto.
8105 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8106 (rs6000_ira_cover_classes): Ditto.
8108 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8110 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8112 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8114 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8116 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8118 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8120 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8122 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8124 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8126 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8128 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8131 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8132 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8133 dw_fde_unlikely_section_end_label, cold_in_std_section,
8134 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8135 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8137 (output_fde): Use dw_fde_second_{begin,end} if second is
8138 true, otherwise dw_fde_{begin,end}.
8139 (output_call_frame_info): Test dw_fde_second_begin != NULL
8140 instead of dw_fde_switched_sections.
8141 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8142 fields, initialize new fields. Initialize in_std_section
8143 unconditionally from the first partition.
8144 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8145 dw_fde_second_begin is non-NULL.
8146 (dwarf2out_switch_text_section): Stop initializing removed
8147 dw_fde_struct fields, initialize new fields, initialize
8148 also dw_fde_end here. Set dw_fde_switch_cfi even when
8149 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8150 (struct var_loc_list_def): Add last_before_switch field.
8151 (arange_table, arange_table_allocated, arange_table_in_use,
8152 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8153 (size_of_aranges): Count !in_std_section and !second_in_std_section
8154 hunks in fdes, instead of looking at arange_table_in_use.
8155 (output_aranges): Add aranges_length argument, don't call
8156 size_of_aranges here. Instead of using aranges_table*
8157 emit ranges for fdes when !in_std_section resp.
8158 !second_in_std_section.
8159 (dw_loc_list): Break ranges crossing section switch.
8160 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8161 use dw_fde_second_end instead of dw_fde_end as end of last range.
8162 (gen_subprogram_die): Don't call add_arange. Use
8163 dw_fde_{begin,end} for first partition and if switched
8164 section dw_fde_second_{begin,end} for the second.
8165 (var_location_switch_text_section_1,
8166 var_location_switch_text_section): New functions.
8167 (dwarf2out_begin_function): Initialize cold_text_section even
8168 when function_section () isn't text_section.
8169 (prune_unused_types): Don't walk arange_table.
8170 (dwarf2out_finish): Don't needlessly test
8171 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8172 If info_section_emitted, call size_of_aranges and if it indicates
8173 non-empty .debug_aranges, call output_aranges with the computed
8174 size. Stop using removed dw_fde_struct fields, use
8175 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8179 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8180 create ENTRY_VALUE if incoming or address of incoming's MEM
8182 * dwarf2out.c (mem_loc_descriptor): Don't emit
8183 DW_OP_GNU_entry_value of DW_OP_fbreg.
8184 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8185 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8186 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8187 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8189 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8190 is a REG_P or MEM_P with REG_P address, compute hash directly
8191 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8192 (preserve_only_constants): Don't clear VALUES forwaring
8193 ENTRY_VALUE to some other VALUE.
8195 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8197 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8200 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8202 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8203 block before expanding the statement.
8204 (expand_gimple_stmt_1): Likewise. Set them here...
8205 (expand_gimple_stmt): ...and not here. Tidy.
8206 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8209 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8211 * Makefile.in: New rule for cprop.o.
8212 * gcse.c: Move constant/copy propagation to cprop.c.
8213 (compute_local_properties): Only handle expression tables.
8214 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8215 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8216 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8217 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8218 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8219 compute_cprop_data, find_used_regs, try_replace_reg,
8220 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8221 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8222 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8223 find_bypass_set, reg_killed_on_edge, bypass_block,
8224 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8225 execute_rtl_cprop, pass_rtl_cprop): Move to...
8226 * cprop.c: ...here. New file, constant/copy propagation for RTL
8227 moved from gcse.c to here with minor cleanups in duplicated code.
8229 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8231 * config/i386/i386.c (flag_opts): Fix a typo in
8232 -mavx256-split-unaligned-store.
8234 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8236 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8237 LIBCALL_VALUE): Remove macros.
8238 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8239 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8240 (h8300_function_value, h8300_libcall_value,
8241 h8300_function_value_regno_p): New functions.
8243 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8245 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8247 2011-03-28 Jeff Law <law@redhat.com>
8249 * tree-ssa-threadupdate.c (redirect_edges): Call
8250 create_edge_and_update_destination_phis as needed.
8251 (create_edge_and_update_destination_phis): Accept new BB argument.
8252 All callers updated.
8253 (thread_block): Do not update the profile when threading around
8254 intermediate blocks.
8255 (thread_single_edge): Likewise.
8256 (determine_bb_domination_status): If BB is not a successor of the
8257 loop header, return NONDOMINATING.
8258 (register_jump_thread): Note when we register a jump thread around
8259 an intermediate block.
8260 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8261 (thread_across_edge): Use it.
8263 2011-03-28 Tristan Gingold <gingold@adacore.com>
8265 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8266 when for_return is 2.
8268 2011-03-28 Jeff Law <law@redhat.com>
8270 * var-tracking.c (canonicalize_values_mark): Delete unused
8272 (canonicalize_values_star, set_variable_part): Likewise.
8273 (clobber_variable_part, delete_variable_part): Likewise.
8275 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8277 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8279 2011-03-28 Martin Jambor <mjambor@suse.cz>
8281 * tree-inline.c (expand_call_inline): Do not check that destination
8283 (optimize_inline_calls): Assert that destination node is analyzed.
8284 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8285 not call tree_lowering_passes.
8286 * cgraph.h (cgraph_analyze_function): Declare.
8287 * cgraphunit.c (cgraph_analyze_function): Make public.
8289 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8291 * config/sparc/sparc-opts.h: New.
8292 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8293 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8294 (sparc_option_override): Store processor_type enumeration rather
8295 than string in cpu_default. Remove name and enumeration from
8296 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8297 without using sparc_select. Use target_flags_explicit instead of
8299 * config/sparc/sparc.h (enum processor_type): Move to
8301 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8302 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8303 HeaderInclude entry.
8304 (mcpu=, mtune=): Use Var and Enum.
8305 (sparc_processor_type): New Enum and EnumValue entries.
8307 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8308 Iain Sandoe <iains@gcc.gnu.org>
8311 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8313 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8315 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8316 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8317 Insert new statements at it in lieu of STMT.
8318 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8319 * tree-vect-stmts.c (vectorizable_store): Likewise.
8320 (vectorizable_load): Likewise.
8322 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8324 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8329 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8331 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8332 unaligned 256bit load/store.
8333 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8334 (*avx_movdqu<avxmodesuffix>): Likewise.
8336 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8339 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8340 * config/pa/pa.md (iordi3): Use new predicate in expander.
8343 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8345 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8346 FUNCTION_VALUE_REGNO_P): Remove macros.
8347 * config/mips/mips-protos.h (mips_function_value): Remove.
8348 * config/mips/mips.c (mips_function_value): Rename to...
8349 (mips_function_value_1): ... this. Make static. Handle receiving
8350 the function type in 'fn_decl_or_type' argument.
8351 (mips_function_value, mips_libcall_value,
8352 mips_function_value_regno_p): New function.
8353 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8354 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8356 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8358 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8359 and -mavx256-split-unaligned-store.
8360 (ix86_option_override_internal): Split 32-byte AVX unaligned
8361 load/store by default.
8362 (ix86_avx256_split_vector_move_misalign): New.
8363 (ix86_expand_vector_move_misalign): Use it.
8365 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8366 -mavx256-split-unaligned-store.
8368 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8369 256bit load/store. Generate unaligned store on misaligned memory
8371 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8373 (*avx_movdqu<avxmodesuffix>): Likewise.
8375 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8376 -mavx256-split-unaligned-store.
8378 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8381 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8384 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8386 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8387 opno arguments with an expand_operand. Use create_input_operand.
8388 (mips_prepare_builtin_target): Delete.
8389 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8391 (mips_expand_builtin_direct): Use create_output_operand and
8392 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8393 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8394 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8396 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8398 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8400 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8402 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8404 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8405 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8406 basic blocks and call commit_edge_insertions directly.
8407 (fixup_abnormal_edges): Move from here to...
8408 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8409 on the edges and return whether some have actually been inserted.
8410 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8413 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8415 PR rtl-optimization/48144
8416 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8417 (merge_expr_data): ... here.
8418 (av_set_intersect): Rename to av_set_code_motion_filter.
8419 Update all callers. Call merge_history_vect when an expression
8420 is found in both sets.
8421 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8423 2011-03-26 Alan Modra <amodra@gmail.com>
8425 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8426 cmodel medium addresses.
8427 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8428 64-bit gpr loads and stores.
8429 (rs6000_secondary_reload_ppc64): New function.
8430 * config/rs6000/rs6000-protos.h: Declare it.
8431 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8433 2011-03-26 Alan Modra <amodra@gmail.com>
8436 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8437 GNU Go in traceback table.
8439 2011-03-25 Richard Henderson <rth@redhat.com>
8441 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8442 if there are exactly 6 operands.
8443 (set_storage_via_setmem): Similarly.
8445 2011-03-25 Kai Tietz <ktietz@redhat.com>
8447 * collect2.c (write_c_file_stat): Handle backslash
8448 as right-hand directory separator.
8449 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8450 checking just for slash.
8451 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8452 instead of checking for trailing slash.
8453 * gcc.c (record_temp_file): Use filename_cmp instead
8455 (do_spec_1): Likewise.
8456 (replace_outfile_spec_function): Likewise.
8457 (is_directory): Use filename_ncmp instead of strncmp.
8458 (print_multilib_info): Likewise.
8459 * gcov.c (find_source): Use filename_cmp instead
8461 (make_gcov_file_name): Fix order of slash/backslash
8463 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8464 (add_standard_paths): Likewise.
8465 * mips-tfile.c (saber_stop): Handle backslash.
8466 * prefix.c (update_path): Use filename_ncmp instead of
8468 * profile.c (output_location): Use filename_cmp instead
8470 * read-md.c (handle_toplevel_file): Handle backslash.
8471 * tlink.c (frob_extension): Likewise.
8472 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8474 * tree-dump.c (dequeue_and_dump): Handle backslash.
8475 * tree.c (get_file_function_name): Likewise.
8476 * gengtype.c (read_input_list): Likewise.
8477 (get_file_realbasename): Likewise.
8478 (get_output_file_with_visibility): Use filename_cmp
8481 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8483 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8486 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8488 * fold-const.c (expr_location_or): New function.
8489 (fold_truth_not_expr): Call it.
8491 2011-03-25 Jeff Law <law@redhat.com>
8493 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8495 * c-family/c-common.c (def_fn_type): Likewise.
8496 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8497 * emit-rtl.c (gen_rtvec): Likewise.
8498 * lto/lto-lang.c (def_fn_type): Likewise.
8500 2011-03-25 Richard Guenther <rguenther@suse.de>
8502 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8503 also generate copies.
8504 (fini_copy_prop): Handle constant values properly.
8506 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8508 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8509 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8510 (hash_loc_operands, compare_loc_operands): Handle
8511 DW_OP_GNU_entry_value.
8513 2011-03-25 Kai Tietz <ktietz@redhat.com>
8515 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8516 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8517 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8518 comment and use macro TARGET_64BIT_MS_ABI instead.
8519 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8520 and change default behavior for 32-bit MS_ABI.
8521 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8522 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8524 (ix86_cfun_abi): Likewise.
8525 (ix86_maybe_switch_abi): Adjust comment.
8526 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8527 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8528 instead of checking for SYSV_ABI.
8529 (ix86_nsaved_sseregs): Likewise.
8530 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8532 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8533 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8534 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8535 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8536 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8538 2011-03-25 Richard Guenther <rguenther@suse.de>
8540 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8541 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8542 (verify_gimple): Remove.
8543 * tree-cfg.c (verify_gimple_call): Merge verification
8545 (verify_gimple_phi): Merge verification from verify_stmts.
8546 (verify_gimple_label): New function.
8547 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8548 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8549 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8550 (verify_stmts): Rename to verify_gimple_in_cfg.
8551 (verify_gimple_in_cfg): New function.
8552 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8553 * tree-ssa.c (verify_ssa): Likewise.
8554 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8556 2011-03-25 Richard Guenther <rguenther@suse.de>
8558 * passes.c (init_optimization_passes): Add FRE pass after
8561 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8562 Andrew Stubbs <ams@codesourcery.com>
8564 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8566 (arm_movdi_vfp_cortexa8): New pattern.
8567 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8568 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8569 instructions when tuning for Cortex-A8. Set attribute "arch".
8570 * config/arm/arm.md: Move include arm-tune.md up a bit.
8571 (define_attr "arch"): Add "onlya8" and "nota8" values.
8572 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8574 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8578 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8580 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8581 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8582 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8583 * passes.c (init_optimization_passes): Move
8584 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8586 2011-03-25 Kai Tietz <ktietz@redhat.com>
8588 * c-typeck.c (comptypes_internal): Replace target
8589 hook call of comp_type_attributes by version in tree.c file.
8590 * gimple.c (gimple_types_compatible_p_1): Likewise.
8591 * tree-ssa.c (useless_type_conversion_p): Likewise.
8592 * tree.c (build_type_attribute_qual_variant): Likewise.
8593 (attribute_value_equal): New static helper function.
8594 (comp_type_attributes): New function.
8595 (merge_attributes): Use attribute_value_equal for comparison.
8596 (attribute_list_contained): Likewise.
8597 * tree.h (comp_type_attributes): New prototype.
8599 2011-03-25 Richard Guenther <rguenther@suse.de>
8601 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8602 of complex types at -O0.
8603 (verify_gimple_assign_binary): Likewise.
8604 (verify_gimple_assign_ternary): Likewise.
8606 2011-03-24 Mark Wielaard <mjw@redhat.com>
8608 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8609 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8611 2011-03-24 Mark Wielaard <mjw@redhat.com>
8614 * dwarf2out.c (output_abbrev_section): Only write table when
8615 abbrev_die_table_in_use > 1.
8617 2011-02-24 Richard Henderson <rth@redhat.com>
8619 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8620 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8621 (alpha_expand_unaligned_load_words): Use extql.
8622 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8623 (emit_insxl): Handle all modes for consistency.
8625 2011-02-24 Richard Henderson <rth@redhat.com>
8627 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8628 (alpha_expand_unaligned_load): Likewise.
8629 (alpha_expand_unaligned_store): Likewise.
8630 (alpha_expand_unaligned_load_words): Likewise.
8631 (alpha_expand_unaligned_store_words): Likewise.
8632 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8633 (alpha_split_lock_test_and_set_12): Likewise.
8634 (print_operand, alpha_fold_builtin_extxx): Likewise.
8635 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8636 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8637 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8638 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8639 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8640 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8641 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8642 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8643 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8644 (extwl, extll, extql): Similarly.
8645 (inswh, inslh, insqh): Similarly.
8646 (mskbl, mskwl, mskll, mskql): Similarly.
8647 (mskwh, msklh, mskqh): Similarly.
8649 2011-02-24 Richard Henderson <rth@redhat.com>
8651 * config/alpha/alpha.md (attribute isa): Add er, ner.
8652 (attribute enabled): Handle them.
8653 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8655 2011-02-24 Richard Henderson <rth@redhat.com>
8657 * config/alpha/alpha.md (attribute isa): Add vms.
8658 (attribute enabled): Handle it.
8659 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8660 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8661 (*movtf): Rename from *movtf_internal for consistency.
8662 (*movsi): Merge with *movsi_nt_vms.
8663 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8664 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8665 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8666 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8668 2011-02-24 Richard Henderson <rth@redhat.com>
8670 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8671 (extendqisi2, extendhisi2): Likewise.
8672 (extendqidi2): Simplify BWX/non-BWX expansions.
8673 (extendhidi2): Similarly.
8675 2011-02-24 Richard Henderson <rth@redhat.com>
8677 * config/alpha/alpha.md (attribute isa): New.
8678 (attribute enabled): New.
8679 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8680 (zero_extendqisi2, zero_extendqidi2): Similarly.
8681 (zero_extendhisi2, zero_extendhidi2): Similarly.
8682 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8684 2011-02-24 Richard Henderson <rth@redhat.com>
8686 * config/alpha/predicates.md (input_operand): Revert last change;
8687 update comment to mention 32-bit VMS rather than Windows.
8689 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8691 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8692 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8693 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8694 * passes.c (init_optimization_passes): Move
8695 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8697 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8699 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8701 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8703 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8706 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8709 * simplify-rtx.c (simplify_const_unary_operation): Call
8710 real_convert when changing mode class with FLOAT_EXTEND.
8712 2011-03-24 Nick Clifton <nickc@redhat.com>
8714 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8715 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8716 * config/rx/rx.c (rx_option_override): Set align_jumps,
8717 align_loops and align_labels if not set by the user.
8718 (rx_align_for_label): New function.
8719 (rx_max_skip_for_label): New function.
8720 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8721 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8722 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8723 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8724 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8726 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8728 PR rtl-optimization/48263
8729 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8730 and original commutative_p handling. Use maybe_gen_insn.
8732 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8734 * reload.c (find_reloads_subreg_address): Add address_reloaded
8735 parameter and return true there if the full address has been
8737 (find_reloads_toplev): Pass address_reloaded flag.
8738 (find_reloads_address_1): Don't use address_reloaded parameter.
8740 2011-03-24 Jeff Law <law@redhat.com>
8742 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8743 unused variable "ann".
8744 (remove_unused_locals): Likewise.
8746 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8749 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8752 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8754 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8755 for invalid symbolic addresses.
8756 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8759 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8761 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8762 the argument in calls to fold_truth_not_expr.
8764 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8766 * tree.c (record_node_allocation_statistics): New function.
8767 (make_node_stat, copy_node_stat, build_string): Call it.
8768 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8769 (build1_stat, build_omp_clause): Likewise.
8771 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8773 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8776 2011-03-24 Richard Guenther <rguenther@suse.de>
8778 PR tree-optimization/48271
8779 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8780 blocks that still exist.
8782 2011-03-24 Richard Guenther <rguenther@suse.de>
8784 PR tree-optimization/48270
8785 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8786 not free datarefs before ddrs.
8788 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8790 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8791 from the address built for a reference with variable offset.
8793 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8796 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8797 alternatives that can be handled with movq or movabsq insn.
8798 (*movdf_internal): Disable for !TARGET_64BIT.
8799 (*movdf_internal_nointeger): Ditto.
8800 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8802 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8804 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8805 (FUNCTION_ARG_ADVANCE): Likewise.
8806 * tm.texi.in: Change references to them to hook references.
8807 * tm.texi: Regenerate.
8808 * targhooks.c (default_function_arg): Eliminate check for target macro.
8809 (default_function_incoming_arg): Likewise.
8810 (default_function_arg_advance): Likewise.
8811 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8812 (function_arg_advance): Likewise.
8813 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8815 2011-03-24 Richard Guenther <rguenther@suse.de>
8818 * tree-object-size.c (addr_object_size): Do not double-account
8819 for MEM_REF offsets.
8821 2011-03-24 Diego Novillo <dnovillo@google.com>
8823 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8824 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8825 (lto_input_data_block): Move from lto-opts.c. Make extern.
8827 (lto_input_string): Rename from input_string. Make extern.
8829 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8830 output_string_with_length.
8831 Output 0 to indicate a non-NULL string. Update all callers to
8833 (lto_output_string): Rename from output_string. Make extern.
8835 (lto_output_decl_state_streams): Make extern.
8836 (lto_output_decl_state_refs): Make extern.
8837 * lto-streamer.h (lto_input_string): Declare.
8838 (lto_input_data_block): Declare.
8839 (lto_output_string): Declare.
8840 (lto_output_string_with_length): Declare.
8841 (lto_output_decl_state_streams): Declare.
8842 (lto_output_decl_state_refs): Declare.
8844 2011-03-24 Richard Guenther <rguenther@suse.de>
8846 PR tree-optimization/46562
8847 * tree.c (build_invariant_address): New function.
8848 * tree.h (build_invariant_address): Declare.
8849 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8850 a renamed function moved ...
8851 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8852 Take valueization callback parameter.
8853 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8854 * gimple-fold.h: New file.
8855 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8856 (ccp_fold, fold_const_aggregate_ref,
8857 fold_ctor_reference, fold_nonarray_ctor_reference,
8858 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8859 get_base_constructor): Move ...
8860 * gimple-fold.c: ... here.
8861 (gimple_fold_stmt_to_constant_1): New function
8862 split out from ccp_fold. Take a valueization callback parameter.
8863 Valueize all operands.
8864 (gimple_fold_stmt_to_constant): New wrapper function.
8865 (fold_const_aggregate_ref_1): New function split out from
8866 fold_const_aggregate_ref. Take a valueization callback parameter.
8867 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8868 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8869 invariant POINTER_PLUS_EXPRs to invariant form.
8870 (vn_valueize): New function.
8871 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8872 * tree-vrp.c (vrp_valueize): New function.
8873 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8874 to fold statements to constants.
8875 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8876 function declarations.
8877 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8878 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8880 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8882 * config/h8300/predicates.md (jump_address_operand): Fix register
8885 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8887 * doc/invoke.texi (max-stores-to-sink): Document.
8888 * params.h (MAX_STORES_TO_SINK): Define.
8889 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8890 if either vectorization or if-conversion is disabled.
8891 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8892 tree-vect-data-refs.c vect_equal_offsets.
8893 (dr_equal_offsets_p): New function.
8894 (find_data_references_in_bb): Remove static.
8895 * tree-data-ref.h (find_data_references_in_bb): Declare.
8896 (dr_equal_offsets_p): Likewise.
8897 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8898 (vect_drs_dependent_in_basic_block): Update calls to
8900 (vect_check_interleaving): Likewise.
8901 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8902 (cond_if_else_store_replacement): Rename to...
8903 (cond_if_else_store_replacement_1): ... this. Change arguments and
8905 (cond_if_else_store_replacement): New function.
8906 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8907 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8909 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8912 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8913 to subtract lower bound instead of GEN_INT().
8915 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8920 * doc/extend.texi (Alignment): Move section to match order in TOC.
8921 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8922 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8924 2011-03-23 Jeff Law <law@redhat.com>
8926 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8927 before removing the edge.
8929 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8930 it may have been freed by redirect_branch_edge or
8931 redirect_edge_succ_nodup.
8933 2011-03-23 Richard Guenther <rguenther@suse.de>
8935 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8936 (check_va_list_escapes): Likewise.
8937 (check_all_va_list_escapes): Likewise.
8939 2011-03-23 Richard Guenther <rguenther@suse.de>
8941 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8942 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8943 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8944 (alias.o): Likewise.
8945 (ipa-type-escape.o): Remove.
8946 (ipa-struct-reorg.o): Likewise.
8947 (GTFILES): Remove ipa-struct-reorg.c.
8948 * alias.c: Do not include ipa-type-escape.h.
8949 * tree-ssa-alias.c: Likewise.
8950 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8951 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8952 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8953 and ipa-type-escape passes.
8954 * tree-pass.h (pass_ipa_type_escape): Remove.
8955 (pass_ipa_struct_reorg): Likewise.
8956 * ipa-struct-reorg.h: Remove.
8957 * ipa-struct-reorg.c: Likewise.
8958 * ipa-type-escape.h: Likewise.
8959 * ipa-type-escape.c: Likewise.
8960 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8961 (--param struct-reorg-cold-struct-ratio): Likewise.
8962 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8963 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8964 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8966 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8968 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8969 cpu attribute value.
8970 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8971 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8972 * config/s390/s390.c (processor_flags_table): New constant array.
8973 (s390_handle_arch_option): Remove.
8974 (s390_handle_option): Remove s390_handle_arch_option invocations
8975 and OPT_mwarn_framesize_ handling.
8976 (s390_option_override): Remove s390_handle_arch_option invocation.
8977 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8979 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8980 * config/s390/s390.opt (s390_tune, s390_arch)
8981 (march=): Replace s390_arch_option enum and values with
8982 processor_type. Set variable name to s390_arch. Set
8983 initialization value.
8984 (mtune=): Replace s390_arch_option with processor_type. Set
8985 variable name to s390_tune. Set initialization value.
8987 2011-03-23 Julian Brown <julian@codesourcery.com>
8989 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8990 accesses which are not naturally aligned.
8992 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8995 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8997 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8999 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9000 parameter from "int" to "enum insn_code".
9001 (expand_operand_type): New enum.
9002 (expand_operand): New structure.
9003 (create_expand_operand): New function.
9004 (create_fixed_operand, create_output_operand): Likewise
9005 (create_input_operand, create_convert_operand_to): Likewise.
9006 (create_convert_operand_from, create_address_operand): Likewise.
9007 (create_integer_operand): Likewise.
9008 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9009 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9010 (expand_insn, expand_jump_insn): Likewise.
9011 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9012 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9013 (expand_movstr, expand_builtin___clear_cache): Likewise.
9014 (expand_builtin_lock_release): Likewise.
9015 * explow.c (allocate_dynamic_stack_space): Likewise.
9016 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9017 and use the default handling in that case.
9018 * expmed.c (check_predicate_volatile_ok): Delete.
9019 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9020 (emit_cstore): Likewise.
9021 * expr.c (emit_block_move_via_movmem): Likewise.
9022 (set_storage_via_setmem, expand_assignment): Likewise.
9023 (emit_storent_insn, try_casesi): Likewise.
9024 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9025 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9026 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9027 (expand_twoval_unop, expand_twoval_binop): Likewise.
9028 (expand_unop_direct, emit_indirect_jump): Likewise.
9029 (emit_conditional_move, vector_compare_rtx): Likewise.
9030 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9031 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9032 (expand_sync_lock_test_and_set): Likewise.
9033 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9034 (emit_unop_insn): Likewise.
9035 (expand_copysign_absneg): Change icode to an insn_code.
9036 (create_convert_operand_from_type): New function.
9037 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9038 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9039 (expand_insn, expand_jump_insn): Likewise.
9040 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9041 than const_int_operand for operand 2.
9043 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9045 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9048 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9050 * emit-rtl.c (emit_pattern_before_noloc): New function.
9051 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9052 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9053 (emit_pattern_after_noloc): New function.
9054 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9055 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9057 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9059 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9060 (__ffsDI2): Likewise.
9062 2011-03-22 Richard Henderson <rth@redhat.com>
9064 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9065 of !TARGET_ABI_OPEN_VMS.
9066 (alpha_trampoline_init, alpha_start_function): Likewise.
9067 (alpha_expand_epilogue, alpha_file_start): Likewise.
9068 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9069 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9070 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9071 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9072 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9076 * config/s390/s390-opts.h: New.
9077 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9078 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9079 s390_stack_guard): Remove.
9080 (s390_handle_arch_option): Return void. Take enum
9081 s390_arch_option value instead of string and searching array.
9082 (s390_handle_option): Don't assert that global structures are in
9083 use. Access variables via opts pointer. Use error_at. Don't use
9084 sscanf for -mstack-guard= or -mstack-size=. Update call to
9085 s390_handle_arch_option.
9086 (s390_option_override): Update call to s390_handle_arch_option.
9087 (s390_emit_prologue): Use %d format for s390_stack_size in
9088 diagnostic. Use %wd for HOST_WIDE_INT.
9089 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9090 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9091 * config/s390/s390.opt (config/s390/s390-opts.h): New
9092 HeaderInclude entry.
9093 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9094 s390_arch_flags, s390_warn_framesize): New Variable entries.
9095 (s390_arch_option): New Enum and EnumValue entries.
9096 (march=): Use Enum instead of Var.
9097 (mstack-guard=, mstack-size=): Use UInteger and Var.
9100 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9102 * config/score/score.c (score_handle_option): Don't assert that
9103 global structures are in use. Access target_flags via opts
9104 pointer. Use value of -march= option to determine target_flags
9106 * config/score/score.opt (march=): Use Enum.
9107 (score_arch): New Enum and EnumValue entries.
9109 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9111 * config/mep/mep.c (option_mtiny_specified): Remove.
9112 (mep_option_override): Move register handling for -mivc2 from
9113 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9114 instead of option_mtiny_specified.
9115 (mep_handle_option): Access target_flags via opts pointer. Don't
9116 assert that global structures are in use. Defer part of -mivc2
9117 handling and move it to mep_option_override.
9118 * config/mep/mep.opt (IVC2): New Mask entry.
9119 (mivc2): Use Var and Defer instead of Mask.
9121 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9123 * config/v850/v850-opts.h: New.
9124 * config/v850/v850.c (small_memory): Replace with
9125 small_memory_physical_max array. Make that array static const.
9126 (v850_handle_memory_option): Take integer value of argument. Take
9127 gcc_options pointer, option text and location. Return void.
9128 Update for changes to small memory structures.
9129 (v850_handle_option): Access target_flags via opts pointer. Don't
9130 assert that global structures are in use. Update calls to
9131 v850_handle_memory_option.
9132 (v850_encode_data_area): Update references to small memory settings.
9133 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9134 (enum small_memory_type): Move to v850-opts.h.
9135 * config/v850/v850.opt (config/v850/v850-opts.h): New
9136 HeaderInclude entry.
9137 (small_memory_max): New Variable entry.
9138 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9139 (mtda, mzda): Likewise.
9141 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9143 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9144 pointer. Don't assert that global structures are in use.
9146 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9148 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9149 via opts pointer. Don't assert that global structures are in use.
9151 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9153 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9154 (munix=93): Use Var.
9155 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9156 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9157 * config/pa/pa-opts.h: New.
9158 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9159 (pa_handle_option): Don't assert that global structures are in
9160 use. Access target_flags via opts pointer. Don't handle
9161 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9163 (pa_option_override): Handle deferred OPT_mfixed_range_.
9165 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9167 * config/mn10300/mn10300-opts.h: New.
9168 * config/mn10300/mn10300.c (mn10300_processor,
9169 mn10300_tune_string): Remove.
9170 (mn10300_handle_option): Don't assert that global structures are
9171 in use. Access mn10300_processor via opts pointer. Don't handle
9173 * config/mn10300/mn10300.h (enum processor_type): Move to
9175 (mn10300_processor): Remove.
9176 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9177 HeaderInclude entry.
9178 (mn10300_processor): New Variable entry.
9181 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9183 * config/microblaze/microblaze.c: Don't include opts.h.
9184 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9185 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9186 (mno-clearbss): Use Var and Warn.
9188 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9190 * config/m32r/m32r-opts.h: New.
9191 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9192 (m32r_handle_option): Don't assert that global structures are in
9193 use. Access target_flags and m32r_cache_flush_func via opts
9194 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9195 OPT_mno_flush_trap here.
9196 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9197 include of m32r-opts.h.
9198 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9199 HeaderInclude entry.
9200 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9201 (mmodel=): Use Enum and Var.
9202 (m32r_model): New Enum and EnumValue entries.
9203 (mno-flush-trap): Use Var.
9204 (msdata=): Use Enum and Var.
9205 (m32r_sdata): New Enum and EnumValue entries.
9207 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9209 * config/m32c/m32c.c: Don't include opts.h.
9210 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9211 m32c_handle_option): Remove.
9212 (m32c_option_override): Check global_options_set.x_target_memregs
9213 instead of target_memregs_set.
9214 * config/m32c/m32c.h (target_memregs): Remove.
9215 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9218 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9220 * config/iq2000/iq2000-opts.h: New.
9221 * config/iq2000/iq2000.c: Don't include opts.h.
9222 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9223 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9224 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9225 HeaderInclude entry.
9226 (iq2000_tune): New Variable entry.
9227 (march=): Add comment. Use Enum.
9228 (iq2000_arch): New Enum and EnumValue entries.
9229 (mcpu=): Use Enum and Var.
9230 (iq2000_tune): New Enum and EnumValue entries.
9232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9234 * config/ia64/ia64-opts.h: New.
9235 * config/ia64/ia64.c (ia64_tune): Remove.
9236 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9238 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9239 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9240 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9241 HeaderInclude entry.
9242 (ia64_tune): New Variable entry.
9243 (mfixed-range=): Use Defer and Var.
9244 (mtune=): Use Enum and Var.
9245 (ia64_tune): New Enum and EnumValue entries.
9247 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9249 * config/frv/frv-opts.h: New.
9250 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9252 (frv_cpu_type): Remove.
9253 * config/frv/frv.c: Don't include opts.h.
9254 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9255 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9256 (frv_cpu_type): New Variable entry.
9257 (frv_cpu): New Enum and EnumValue entries.
9259 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9261 * config/cris/cris.c (cris_handle_option): Access target_flags via
9262 opts pointer. Don't assert that global structures are in use.
9263 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9264 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9266 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9268 * config/bfin/bfin-opts.h: New.
9269 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9270 bfin_si_revision, bfin_workarounds): Remove.
9271 (bfin_cpus): Make static const.
9272 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9273 not bfin_lib_id_given.
9274 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9275 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9276 pointer. Use error_at. Don't assert that global structures are in use.
9277 * config/bfin/bfin.h: Include bfin-opts.h.
9278 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9279 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9280 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9281 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9284 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9286 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9287 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9288 or -msoft-float here.
9289 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9290 -msoft-float and -mhard-float.
9291 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9292 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9294 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9296 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9297 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9299 (LIBGCC_SPEC): Don't handle -msoft-float.
9300 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9302 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9304 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9305 -mfloat-abi=*, not -msoft-float and -mhard-float.
9306 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9308 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9309 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9310 mhard-float and msoft-float.
9311 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9312 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9313 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9314 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9316 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9317 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9319 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9321 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9324 2011-03-22 Richard Henderson <rth@redhat.com>
9326 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9327 TARGET_ABI_WINDOWS_NT.
9328 (alpha_output_function_end_prologue): Likewise.
9329 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9330 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9331 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9332 (trap, *movsi_nt_vms): Likewise.
9333 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9334 (*tablejump_osf_nt_internal): Remove.
9335 * config/alpha/predicates.md (input_operand): Only test Pmode.
9337 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9339 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9340 via opts pointer. Use error_at. Don't assert that global
9341 structures are in use.
9343 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9345 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9346 (ix86_handle_option): Access ix86_isa_flags and
9347 ix86_isa_flags_explicit via opts pointer. Don't assert that
9348 global structures are in use.
9349 (ix86_function_specific_save, ix86_function_specific_restore):
9350 Update ix86_isa_flags_explicit field name.
9351 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9352 (ix86_isa_flags_explicit): Rename TargetSave entry to
9353 x_ix86_isa_flags_explicit.
9355 2011-03-22 Richard Henderson <rth@redhat.com>
9357 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9358 (alpha_option_override, direct_return): Likewise.
9359 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9360 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9361 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9362 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9363 (alpha_expand_epilogue, alpha_end_function): Likewise.
9364 (alpha_init_libfuncs): Likewise.
9365 (struct machine_function): Remove unicosmk members.
9366 (print_operand) ['t']: Remove.
9367 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9368 unicosmk_output_module_name, unicosmk_output_common,
9369 current_section_align, unicosmk_output_text_section_asm_op,
9370 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9371 unicosmk_section_type_flags, unicosmk_unique_section,
9372 unicosmk_asm_named_section, unicosmk_insert_attributes,
9373 unicosmk_output_align, unicosmk_defer_case_vector,
9374 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9375 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9376 unicosmk_output_ssib, unicosmk_add_call_info_word,
9377 unicosmk_extern_head, unicosmk_output_default_externs,
9378 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9379 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9380 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9381 * config/alpha/alpha-protos.h: Update.
9382 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9383 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9384 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9385 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9386 (*mulsi_se, mulvsi3): Likewise.
9387 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9388 (*divmodsi_internal, call, call_value, realign): Likewise.
9389 (moddi3, umoddi3): Likewise; remove duplicate expander.
9390 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9391 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9392 (*movdi_nofix): Remove r/U alternative.
9393 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9394 * config/alpha/constraints.md ("U"): Remove.
9395 * config/alpha/predicates.md (call_operand"): Don't test
9396 TARGET_ABI_UNICOSMK.
9398 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9400 * target.def (handle_option): Take gcc_options and
9401 cl_decoded_option pointers and location_t.
9402 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9403 * doc/tm.texi: Regenerate.
9404 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9405 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9406 * lto-opts.c (lto_reissue_options): Generate option structure for
9407 targetm.handle_option call.
9408 * opts.c (target_handle_option): Update call to
9409 targetm.handle_option. Remove assertions about values now passed
9411 * targhooks.c (default_target_handle_option): New.
9412 * targhooks.h (default_target_handle_option): Declare.
9413 * config/alpha/alpha.c: Include opts.h.
9414 (alpha_handle_option): Update to new hook interface.
9415 * config/arm/arm.c: Include opts.h.
9416 (arm_handle_option): Update to new hook interface.
9417 * config/arm/t-arm (arm.o): Update dependencies.
9418 * config/bfin/bfin.c: Include opts.h.
9419 (bfin_handle_option): Update to new hook interface.
9420 * config/cris/cris.c: Include opts.h.
9421 (cris_handle_option): Update to new hook interface.
9422 * config/frv/frv.c: Include opts.h.
9423 (frv_handle_option): Update to new hook interface.
9424 * config/i386/i386.c: Include opts.h.
9425 (ix86_handle_option): Update to new hook interface.
9426 (ix86_valid_target_attribute_inner_p): Generate option structure
9427 for call to ix86_handle_option.
9428 * config/i386/t-i386 (i386.o): Update dependencies.
9429 * config/ia64/ia64.c: Include opts.h.
9430 (ia64_handle_option): Update to new hook interface.
9431 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9432 * config/iq2000/iq2000.c: Include opts.h.
9433 (iq2000_handle_option): Update to new hook interface.
9434 * config/m32c/m32c.c: Include opts.h.
9435 (m32c_handle_option): Update to new hook interface.
9436 * config/m32r/m32r.c: Include opts.h.
9437 (m32r_handle_option): Update to new hook interface.
9438 * config/m68k/m68k.c: Include opts.h.
9439 (m68k_handle_option): Update to new hook interface.
9440 * config/mep/mep.c: Include opts.h.
9441 (mep_handle_option): Update to new hook interface.
9442 * config/microblaze/microblaze.c: Include opts.h.
9443 (microblaze_handle_option): Update to new hook interface.
9444 * config/mips/mips.c: Include opts.h.
9445 (mips_handle_option): Update to new hook interface.
9446 * config/mn10300/mn10300.c: Include opts.h.
9447 (mn10300_handle_option): Update to new hook interface.
9448 * config/pa/pa.c: Include opts.h.
9449 (pa_handle_option): Update to new hook interface.
9450 * config/pdp11/pdp11.c: Include opts.h.
9451 (pdp11_handle_option): Update to new hook interface.
9452 * config/rs6000/rs6000.c: Include opts.h.
9453 (rs6000_handle_option): Update to new hook interface.
9454 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9455 * config/rx/rx.c: Include opts.h.
9456 (rx_handle_option): Update to new hook interface.
9457 * config/s390/s390.c: Include opts.h.
9458 (s390_handle_option): Update to new hook interface.
9459 * config/score/score.c: Include opts.h.
9460 (score_handle_option): Update to new hook interface.
9461 * config/sh/sh.c: Include opts.h.
9462 (sh_handle_option): Update to new hook interface.
9463 * config/sparc/sparc.c: Include opts.h.
9464 (sparc_handle_option): Update to new hook interface.
9465 * config/v850/v850.c: Include opts.h.
9466 (v850_handle_option): Update to new hook interface.
9468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9470 * gcc.c (driver_unknown_option_callback): Only permit and save
9471 unknown -Wno- options.
9472 (driver_wrong_lang_callback): Save options directly instead of via
9473 driver_unknown_option_callback.
9475 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9477 * combine.c (simplify_set): Try harder to find the best CC mode when
9478 simplifying a nested COMPARE on the RHS.
9480 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9482 * config/alpha/gnu.h: Remove.
9483 * config/arc: Remove directory.
9484 * config/arm/netbsd.h: Remove.
9485 * config/arm/t-pe: Remove.
9486 * config/crx: Remove directory.
9487 * config/i386/netbsd.h: Remove.
9488 * config/m68hc11: Remove directory.
9489 * config/m68k/uclinux-oldabi.h: Remove.
9490 * config/mcore/mcore-pe.h: Remove.
9491 * config/mcore/t-mcore-pe: Remove.
9492 * config/netbsd-aout.h: Remove.
9493 * config/rs6000/gnu.h: Remove.
9494 * config/sh/sh-symbian.h: Remove.
9495 * config/sh/symbian-base.c: Remove.
9496 * config/sh/symbian-c.c: Remove.
9497 * config/sh/symbian-cxx.c: Remove.
9498 * config/sh/symbian-post.h: Remove.
9499 * config/sh/symbian-pre.h: Remove.
9500 * config/sh/t-symbian: Remove.
9501 * config/svr3.h: Remove.
9502 * config/vax/netbsd.h: Remove.
9503 * config.build: Don't handle i[34567]86-*-pe.
9504 * config.gcc: Remove handling of deprecations for most deprecated
9506 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9507 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9508 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9509 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9510 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9511 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9513 * config.host: Don't handle i[34567]86-*-pe.
9514 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9515 (ASM_SPEC32): Don't handle -mcall-gnu.
9516 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9518 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9519 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9520 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9521 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9522 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9523 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9524 conditional on SYMBIAN.
9525 * configure.ac: Don't handle powerpc*-*-gnu*.
9526 * configure: Regenerate.
9527 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9528 * doc/install-old.texi (m6811, m6812): Don't mention.
9529 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9530 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9531 (m68k-uclinuxoldabi): Don't mention.
9532 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9534 (-mcall-gnu): Remove.
9535 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9536 families): Remove constraint documentation.
9538 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9540 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9541 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9542 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9544 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9547 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9548 vector when peeking at the next token for vector, don't expand the
9551 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9553 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9554 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9555 * config/avr/avr.c (init_cumulative_args)
9556 (avr_function_arg_advance): Use it.
9557 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9559 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9560 (avr_function_ok_for_sibcall): ...this new function.
9561 (avr_lookup_function_attribute1): New static Function.
9562 (avr_naked_function_p, interrupt_function_p)
9563 (signal_function_p, avr_OS_task_function_p)
9564 (avr_OS_main_function_p): Use it.
9565 * config/avr/avr.md ("sibcall", "sibcall_value")
9566 ("sibcall_epilogue"): New expander.
9567 ("*call_insn", "*call_value_insn"): New insn.
9568 ("call_insn", "call_value_insn"): Remove
9569 ("call", "call_value", "epilogue"): Change expander to handle
9572 2011-03-21 Nick Clifton <nickc@redhat.com>
9574 * doc/invoke.texi (Overall Options): Move closing brace to end of
9576 (Optimization Options): Add missing @gol.
9577 (Directory Options): Likewise.
9578 (i386 and x86-64 Options): Likewise.
9579 (RS6000 and PowerPC Options): Likewise.
9580 (i386 and x86-64 Windows Options): Likewise.
9581 (V850 Options): Add text missing from descriptions.
9583 2011-03-22 Richard Henderson <rth@redhat.com>
9585 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9586 (avr_incoming_return_addr_rtx): New.
9587 (emit_push_byte): New.
9588 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9589 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9590 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9591 (emit_pop_byte): New.
9592 (expand_epilogue): Use it. Pop frame pointer by bytes.
9593 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9594 (INCOMING_RETURN_ADDR_RTX): New.
9595 (INCOMING_FRAME_SP_OFFSET): New.
9596 (ARG_POINTER_CFA_OFFSET): New.
9597 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9598 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9601 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9603 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9605 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9606 (FUNCTION_ARG_ADVANCE): Likewise.
9607 * tm.texi.in: Change references to them to hook references.
9608 * tm.texi: Regenerate.
9609 * targhooks.c (default_function_arg): Eliminate check for target
9611 (default_function_incoming_arg): Likewise.
9612 (default_function_arg_advance): Likewise.
9613 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9614 (function_arg_advance): Likewise.
9615 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9617 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9619 * tree.c (build_call_1): New function.
9620 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9622 2011-03-22 Richard Guenther <rguenther@suse.de>
9624 PR tree-optimization/48228
9625 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9626 for single-arg PHIs.
9628 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9630 PR rtl-optimization/48143
9631 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9632 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9633 sse2_cvtps2pd): Likewise.
9635 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9637 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9639 2011-03-22 Richard Guenther <rguenther@suse.de>
9641 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9642 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9643 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9644 and REALIGN_LOAD_EXPR.
9645 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9646 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9647 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9648 DOT_PROD_EXPR case ...
9649 (expand_expr_real_2): ... here.
9650 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9651 and REALIGN_LOAD_EXPR.
9652 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9653 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9654 (vect_create_epilog_for_reduction): Likewise.
9655 (vectorizable_reduction): Likewise.
9656 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9657 * tree-vect-stmts.c (vectorizable_load): Likewise.
9659 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9661 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9663 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9665 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9666 handling for PLTOFF/GOTOFF.
9668 2011-03-22 Nick Clifton <nickc@redhat.com>
9670 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9671 trailing backslash from the end of the macro definition.
9673 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9675 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9678 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9680 * expr.h (prepare_operand): Move to...
9681 * optabs.h (prepare_operand): ...here and change the insn code
9682 parameter from "int" to "enum insn_code".
9683 (insn_operand_matches): Declare.
9684 * expr.c (init_expr_target): Use insn_operand_matches.
9685 (compress_float_constant): Likewise.
9686 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9687 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9688 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9689 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9691 (gen_cond_trap): Likewise.
9692 (prepare_operand): Likewise. Change icode to an insn_code.
9693 (insn_operand_matches): New function.
9694 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9695 * reload1.c (gen_reload): Likewise.
9696 * targhooks.c (default_secondary_reload): Likewise.
9698 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9700 * config/alpha/alpha.md (unspec): New define_c_enum.
9703 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9706 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9707 between a call and its CALL_ARG_LOCATION note.
9709 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9711 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9713 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9717 * c-common.c (shorten_compare): If primopN is first sign-extended
9718 to opN and then zero-extended to result type, set primopN to opN.
9720 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9722 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9723 for barrier handlers.
9725 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9727 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9728 UNSPEC constants to be in the unspec enumeration, and redefine
9729 all UNSPECV constants to be in the unspecv enumeration, so that
9730 dumps print which unspec/unspec_volatile this is.
9731 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9732 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9733 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9734 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9735 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9737 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9738 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9739 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9740 * config/rs6000/sync.md (isync, lwsync): Ditto.
9742 2011-03-21 Richard Guenther <rguenther@suse.de>
9744 * params.def (lto-min-partition): Fix typo.
9746 2011-03-21 Richard Guenther <rguenther@suse.de>
9749 * c-decl.c (grokdeclarator): Drop to the main variant only
9750 for array types. Drop flag_gen_aux_info check.
9752 2011-03-21 Richard Guenther <rguenther@suse.de>
9754 PR translation/47911
9755 * params.def (lto-partitions): Fix typo.
9756 (lto-min-partition): Fix wording.
9758 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9760 * config/rs6000/t-freebsd: Remove duplication from file.
9762 2011-03-21 Richard Guenther <rguenther@suse.de>
9765 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9767 2011-03-21 Richard Guenther <rguenther@suse.de>
9770 * params.def (lto-partitions): Require at least 1 partition.
9772 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9774 * gthr-solaris.h: Remove.
9775 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9776 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9777 (LIB_SPEC): Likewise.
9778 * config/sol2.opt (threads): Remove.
9779 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9780 (sparc*-*-solaris2*): Likewise.
9781 * configure.ac (enable_threads): Enable solaris support.
9782 * configure: Regenerate.
9783 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9784 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9787 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9789 * config.gcc: Obsolete *-*-solaris2.8*.
9790 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9792 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9795 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9796 reference. Solaris 8 perl works.
9798 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9801 * doc/install.texi (Prerequisites): Move jar etc. up.
9802 Explain support library version requirements.
9804 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9807 * doc/install.texi (Prerequisites): Move Perl to build
9808 requirements. Always necessary on Solaris 2 with Sun ld.
9810 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9812 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9814 (Specific, i?86-*-solaris2.[89]): Likewise.
9815 (Specific, i?86-*-solaris2.10): Likewise.
9816 (Specific, mips-sgi-irix6): Likewise.
9817 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9818 Update for binutils 2.21.
9820 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9822 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9823 Allow -fuse-linker-plugin for non-default plugin linker.
9824 * configure: Regenerate.
9826 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9829 * gengtype.c (files_rules): Added rule for cp/parser.h.
9831 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9834 * config/s390/s390.c (s390_delegitimize_address): Don't call
9835 lowpart_subreg if orig_x has BLKmode.
9837 2011-03-21 Kai Tietz <ktietz@redhat.com>
9840 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9841 * tree.h (attribute_spec): Add new member affects_type_identity.
9842 * attribs.c (empty_attribute_table): Adjust attribute_spec
9844 * config/alpha/alpha.c: Likewise.
9845 * config/arc/arc.c: Likewise.
9846 * config/arm/arm.c: Likewise.
9847 * config/avr/avr.c: Likewise.
9848 * config/bfin/bfin.c: Likewise.
9849 * config/crx/crx.c: Likewise.
9850 * config/darwin.h: Likewise.
9851 * config/h8300/h8300.c: Likewise.
9852 * config/i386/cygming.h: Likewise.
9853 * config/i386/i386.c: Likewise.
9854 * config/ia64/ia64.c: Likewise.
9855 * config/m32c/m32c.c: Likewise.
9856 * config/m32r/m32r.c: Likewise.
9857 * config/m68hc11/m68hc11.c: Likewise.
9858 * config/m68k/m68k.c: Likewise.
9859 * config/mcore/mcore.c: Likewise.
9860 * config/mep/mep.c: Likewise.
9861 * config/microblaze/microblaze.c: Likewise.
9862 * config/mips/mips.c: Likewise.
9863 * config/rs6000/rs6000.c: Likewise.
9864 * config/rx/rx.c: Likewise.
9865 * config/sh/sh.c: Likewise.
9866 * config/sol2.h: Likewise.
9867 * config/sparc/sparc.c: Likewise.
9868 * config/spu/spu.c: Likewise.
9869 * config/stormy16/stormy16.c: Likewise.
9870 * config/v850/v850.c: Likewise.
9872 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9874 * simplify-rtx.c (simplify_binary_operation_1): Handle
9875 (xor (and A B) C) case when B and C are both constants.
9877 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9879 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9881 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9884 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9886 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9888 PR rtl-optimization/48156
9889 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9890 assume df and df_lr are not NULL.
9892 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9895 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9896 between a call and its CALL_ARG_LOCATION note.
9898 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9901 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9902 between a call and its corresponding CALL_ARG_LOCATION note.
9904 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9906 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9907 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9908 * haifa-sched.c (setup_ref_regs): Ditto.
9909 * caller-save.c (add_used_regs_1): Ditto.
9910 * dse.c (look_for_hardregs): Ditto.
9911 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9912 * sched-rgn.c (check_live_1): Ditto.
9914 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9916 * c-decl.c (diagnose_mismatched_decls): Give an error for
9917 redefining a typedef with variably modified type.
9919 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9921 * c-decl.c (grokfield): Don't allow typedefs for structures or
9922 unions with no tag by default.
9923 * doc/extend.texi (Unnamed Fields): Update.
9925 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9927 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9928 Rewrite using indirect functions.
9929 (lwp_slwpcb): Ditto.
9930 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9931 (avx_vinsertf128<mode>): Ditto.
9933 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9935 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9938 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9940 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9941 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9943 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9945 PR rtl-optimization/48170
9946 * gcse.c (hoist_code): Remove bogus asserts.
9948 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9950 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9951 computation for prologue/epilogue.
9953 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9955 * Makefile.in (check-consistency): Remove.
9957 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9960 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9961 arange_table_in_use is 0, but either text_section_used or
9962 cold_text_section_used is true. Don't call it if
9963 !info_section_emitted.
9965 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9967 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9968 FUNCTION_VALUE_REGNO_P): Remove.
9969 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9971 * config/avr/avr.c (avr_ret_register): Make static inline.
9972 (avr_function_value_regno_p): New function.
9973 (avr_libcall_value): Make static. Add 'func' argument.
9974 (avr_function_value): Make static. Rename 'func' argument to
9975 'fn_decl_or_type', forward it to avr_libcall_value. Call
9976 avr_ret_register function instead of RET_REGISTER macro.
9977 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9979 2011-03-18 Jason Merrill <jason@redhat.com>
9982 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9984 2011-03-18 Richard Guenther <rguenther@suse.de>
9986 * doc/install.texi (--enable-gold): Remove.
9987 (--with-plugin-ld): Document.
9988 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9990 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9993 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9994 again after expansion changes.
9996 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9998 * combine.c (try_combine): Do simplification only call of
9999 subst() on i2 even when i1 is present. Update comments.
10001 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10003 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10004 and UNSPEC_PCREL_SYMOFF.
10006 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10008 * config/s390/s390.md: Use define_c_enum for the unspec constant
10011 2011-03-18 Richard Henderson <rth@redhat.com>
10012 Jakub Jelinek <jakub@redhat.com>
10015 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10016 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10018 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10020 PR middle-end/47725
10021 * combine.c (cant_combine_insn_p): Don't check zero/sign
10022 extended hard registers.
10024 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10026 PR middle-end/47725
10027 * combine.c (cant_combine_insn_p): Check zero/sign extended
10030 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10032 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10033 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10034 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10035 Change return type to bool.
10036 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10038 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10041 * var-tracking.c (prepare_call_arguments): If CALL target
10042 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10043 pc instead of looking it up using cselib_lookup and use
10044 Pmode for it if x has VOIDmode.
10045 * dwarf2out.c (gen_subprogram_die): If also both first and
10046 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10049 * function.c (assign_parms): For data.passed_pointer parms
10050 use MEM of data.entry_parm instead of data.entry_parm itself
10051 as DECL_INCOMING_RTL.
10052 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10053 also when passed and declared mode is the same, DECL_RTL
10054 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10057 2011-03-16 Jeff Law <law@redhat.com>
10059 PR rtl-optimization/37273
10060 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10061 handle them like argument loads from stack slots. Do not double
10062 count memory for memory constants and argument loads from stack slots.
10064 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10067 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10069 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10072 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10074 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10077 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10079 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10080 Clear call_arg_locations and call_arg_loc_last always.
10082 PR middle-end/48152
10083 * var-tracking.c (prepare_call_arguments): If argument needs to be
10084 passed by reference, adjust argtype and mode.
10086 2011-03-17 Richard Guenther <rguenther@suse.de>
10088 PR middle-end/48134
10089 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10090 a value make sure to fold the statement.
10092 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10095 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10096 return condition with !cfun->calls_alloca.
10098 2011-03-17 Richard Guenther <rguenther@suse.de>
10101 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10102 origin for decls in other ltrans units.
10103 (input_varpool_node): Likewise.
10105 2011-03-17 Richard Guenther <rguenther@suse.de>
10107 PR middle-end/48165
10108 * tree-object-size.c (compute_object_offset): Properly return
10109 the offset operand of MEM_REFs as sizetype.
10111 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10113 PR rtl-optimization/48141
10114 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10115 * dse.c: Include params.h.
10116 (active_local_stores_len): New variable.
10117 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10119 (record_store, check_mem_read_rtx): Decrease it when removing
10121 (scan_insn): Likewise. Increase it when adding to chain, if it
10122 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10123 set active_local_stores to NULL before the addition.
10124 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10126 PR rtl-optimization/48141
10127 * dse.c (record_store): If no positions are needed in an insn
10128 that cannot be deleted, at least unchain it from active_local_stores.
10130 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10133 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10134 (lookup_type_die_strip_naming_typedef): ... here.
10135 (get_context_die): Use it.
10136 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10137 the anonymous struct named by the naming typedef.
10139 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10142 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10143 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10145 2011-03-16 Jeff Law <law@redhat.com>
10147 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10148 check for operands of conditional. Allow type to be a pointer.
10150 2011-03-16 Richard Guenther <rguenther@suse.de>
10152 PR tree-optimization/48149
10153 * fold-const.c (fold_binary_loc): Fold
10154 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10156 2011-03-16 Richard Guenther <rguenther@suse.de>
10158 PR tree-optimization/26134
10159 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10160 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10161 (non_rewritable_mem_ref_base): Handle complex type component
10162 accesses, constrain offsets for vector and complex extracts
10165 2011-03-16 Richard Guenther <rguenther@suse.de>
10167 PR tree-optimization/48146
10168 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10169 operands avoiding the need for renaming.
10171 2011-03-16 Richard Guenther <rguenther@suse.de>
10173 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10174 constant folding. Move MEM_REF canonicalization first.
10175 Rely on fold_const_aggregate_ref for initializer folding.
10176 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10178 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10180 PR middle-end/48136
10181 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10182 arg0/arg1 or their arguments are always fold converted to matching
10185 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10188 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10191 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10192 Handle in-tree gold.
10193 (ld_vers): Extract binutils version for gold.
10194 (gcc_cv_ld_hidden): Handle gold here.
10195 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10196 * configure: Regenerate.
10197 * config.in: Regenerate.
10198 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10199 -fuse-linker-plugin otherwise.
10200 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10201 (LINK_COMMAND_SPEC): Use it.
10202 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10204 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10206 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10207 * calls.c: Remove debug.h include.
10208 (emit_call_1): Don't call virtual_call_token debug hook.
10209 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10210 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10211 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10212 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10213 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10214 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10215 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10216 dwarf2out_virtual_call): Remove.
10217 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10218 copy_call_info and virtual_call hooks.
10219 (dwarf2out_init): Don't initialize vcall_insn_table,
10220 debug_dcall_section and debug_vcall_section.
10221 (prune_unused_types): Don't mark nodes from dcall_table.
10222 (dwarf2out_finish): Don't output dcall or vcall tables.
10223 * final.c (final_scan_insn): Don't call direct_call or
10224 virtual_call debug hooks.
10225 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10226 virtual_call_token, copy_call_info and virtual_call hooks.
10227 (debug_nothing_uid): Remove prototype.
10228 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10229 copy_call_info and virtual_call hooks.
10230 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10231 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10232 * debug.c (do_nothing_debug_hooks): Likewise.
10233 (debug_nothing_uid): Remove.
10234 * doc/invoke.texi (-fenable-icf-debug): Remove.
10235 * common.opt (-fenable-icf-debug): Likewise.
10237 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10238 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10239 call's MEM. Handle functions returning aggregate through a hidden
10240 first pointer. For virtual calls add clobbered pc to call arguments
10242 * dwarf2out.c (gen_subprogram_die): Emit
10243 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10247 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10248 * rtl.h (ENTRY_VALUE_EXP): Define.
10249 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10250 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10251 * print-rtl.c (print_rtx): Likewise.
10252 * gengtype.c (adjust_field_rtx_def): Likewise.
10253 * var-tracking.c (vt_add_function_parameter): Adjust
10254 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10255 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10256 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10257 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10258 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10260 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10261 Call var_location debug hook even on CALL_INSNs.
10262 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10263 * rtl.def (ENTRY_VALUE): New.
10264 * dwarf2out.c: Include cfglayout.h.
10265 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10266 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10267 (struct call_arg_loc_node): New type.
10268 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10269 tail_call_site_count): New variables.
10270 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10271 DW_TAG_GNU_call_site_parameter.
10272 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10273 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10274 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10275 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10276 and DW_AT_GNU_all_source_call_sites.
10277 (mem_loc_descriptor): Handle ENTRY_VALUE.
10278 (add_src_coords_attributes): Don't add enything if
10279 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10280 (dwarf2out_abstract_function): Save and clear call_arg_location,
10281 call_site_count and tail_call_site_count around dwarf2out_decl call.
10282 (gen_call_site_die): New function.
10283 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10284 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10285 (dwarf2out_function_decl): Clear call_arg_locations,
10286 call_arg_loc_last, set call_site_count and tail_call_site_count
10287 to -1 and free block_map.
10288 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10289 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10290 followed by any real instructions.
10291 (dwarf2out_begin_function): Set call_site_count and
10292 tail_call_site_count to 0.
10293 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10294 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10295 attempt to force a DIE for it and worst case remove the attribute.
10296 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10297 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10299 * var-tracking.c: Include tm_p.h.
10300 (vt_stack_adjustments): For calls call note_register_arguments.
10301 (argument_reg_set): New variable.
10302 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10303 ensure the VALUE is resolved.
10304 (call_arguments): New variable.
10305 (prepare_call_arguments): New function.
10306 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10307 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10308 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10309 always use the best expression.
10310 (vt_expand_loc): Add ignore_cur_loc argument.
10311 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10312 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10313 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10314 note for all calls.
10315 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10316 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10317 argument. Don't call cselib_preserve_only_values and
10318 cselib_reset_table.
10319 (note_register_arguments): New function.
10320 (vt_initialize): Compute argument_reg_set. Call
10321 vt_add_function_parameters before processing basic blocks instead of
10322 afterwards. For calls call prepare_call_arguments before calling
10323 cselib_process_insn.
10324 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10325 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10326 (var-tracking.o): Depend on $(TM_P_H).
10327 * cfglayout.h (insn_scope): New prototype.
10328 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10329 * cfglayout.c (insn_scope): No longer static.
10330 * insn-notes.def (CALL_ARG_LOCATION): New.
10331 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10332 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10333 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10334 nothing for DECL_EXTERNAL BLOCK_VARS.
10336 2011-03-16 Alan Modra <amodra@gmail.com>
10339 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10340 create invalid offset address for vsx splat insn.
10341 * config/rs6000/predicates.md (splat_input_operand): New.
10342 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10344 2011-03-15 Xinliang David Li <davidxl@google.com>
10347 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10348 (normalize_preds): New function.
10349 (is_use_properly_guarded): Normalize def predicates.
10351 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10354 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10355 in the output template.
10357 2011-03-15 Richard Guenther <rguenther@suse.de>
10359 PR middle-end/47650
10360 * tree-pretty-print.c (dump_function_declaration): Properly
10361 dump unprototyped and varargs function types.
10363 2011-03-15 Richard Guenther <rguenther@suse.de>
10365 PR tree-optimization/13954
10366 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10369 2011-03-15 Richard Guenther <rguenther@suse.de>
10371 PR tree-optimization/48037
10372 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10373 selects into BIT_FIELD_REFs.
10374 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10377 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10379 PR tree-optimization/48129
10380 * builtins.c (fold_builtin_snprintf): Convert to type of
10381 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10382 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10384 2011-03-15 Richard Guenther <rguenther@suse.de>
10386 PR tree-optimization/41490
10387 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10388 value but with VUSE.
10389 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10391 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10392 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10393 * tree-tailcall.c (find_tail_calls): Ignore returns.
10395 2011-03-15 Richard Guenther <rguenther@suse.de>
10397 PR middle-end/48031
10398 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10399 or variable-indexed array accesses when in gimple form.
10401 2011-03-15 Richard Guenther <rguenther@suse.de>
10403 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10405 2011-03-15 Alan Modra <amodra@gmail.com>
10408 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10409 presume symbol_refs without a symbol_ref_decl are suitably
10410 aligned, nor other trees we may see here. Handle anchor symbols.
10411 (legitimate_constant_pool_address_p): Comment. Add mode param.
10412 Check cmodel=medium addresses. Adjust all calls.
10413 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10414 creating cmodel=medium optimized access to locals.
10415 * config/rs6000/constraints.md (R): Pass QImode to
10416 legitimate_constant_pool_address_p.
10417 * config/rs6000/predicates.md (input_operand): Pass mode to
10418 legitimate_constant_pool_address_p.
10419 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10422 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10425 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10426 64-bit constants being loaded into registers other than GPRs such
10427 as loading 0 into a VSX register.
10429 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10431 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10433 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10435 PR middle-end/47917
10436 * builtins.c (fold_builtin_snprintf): New function.
10437 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10438 (fold_builtin_4): Likewise.
10440 PR middle-end/38878
10441 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10442 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10443 and C - X == X also strip nops from +/-/p+ operand.
10444 When optimizing -X == C, fold C to arg0's type.
10447 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10448 emit it as add_AT_int instead of add_AT_unsigned.
10450 2011-03-14 Tom Tromey <tromey@redhat.com>
10452 * unwind-dw2.c: Include sys/sdt.h if it exists.
10453 (_Unwind_DebugHook): Use STAP_PROBE2.
10454 * config.in, configure: Rebuild.
10455 * configure.ac: Check for sys/sdt.h.
10457 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10459 * config/i386/i386.md (ROUND_FLOOR): New constant.
10460 (ROUND_CEIL): Ditto.
10461 (ROUND_TRUNC): Ditto.
10462 (ROUND_MXCSR): Ditto.
10463 (ROUND_NO_EXC): Ditto.
10464 (rint<mode>2): Use new defines instead of numerical constants.
10465 (floor<mode>2): Ditto.
10466 (ceil<mode>2): Ditto.
10467 (btrunc<mode>2): Ditto.
10468 * config/i386/i386-builtin-types.def: Define ROUND function type
10470 * config/i386/i386.c (enum ix86_builtins): Add
10471 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10472 (struct builtin_description): Add
10473 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10474 (ix86_expand_sse_round): New static function.
10475 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10477 (ix86_builtin_vectorized_function): Handle
10478 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10480 2011-03-14 Tom Tromey <tromey@redhat.com>
10482 * c-parser.c (c_parser_asm_string_literal): Clear
10483 warn_overlength_strings.
10485 2011-03-14 Tom Tromey <tromey@redhat.com>
10487 * c-parser.c (disable_extension_diagnostics): Save
10488 warn_overlength_strings.
10489 (restore_extension_diagnostics): Restore warn_overlength_strings.
10491 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10493 * BASE-VER: Change to 4.7.0.
10495 2011-03-14 Richard Guenther <rguenther@suse.de>
10497 PR middle-end/48098
10498 * tree.c (build_vector_from_val): Adjust assert to requirements
10501 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10504 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10506 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10508 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10509 terms of target_flags_explicit. Adjust copyright year.
10511 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10512 * config/rs6000/t-freebsd: New file. Add override for
10515 2011-03-13 Chris Demetriou <cgd@google.com>
10517 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10518 (-fno-diagnostics-show-option): this, to reflect current default.
10519 (-Werror=): Update text about -fno-diagnostics-show-option.
10521 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10524 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10525 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10526 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10527 mode is not V2DImode or V2DFmode.
10528 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10529 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10530 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10532 (movdi_internal64): Likewise.
10534 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10536 PR tree-optimization/47127
10537 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10539 (set_cloog_options): Same.
10540 (scop_to_clast): Same.
10541 (print_clast_stmt): Do not call cloog_state_malloc and
10543 (print_generated_program): Same.
10545 * graphite-clast-to-gimple.h (cloog_state): Declared.
10546 (scop_to_clast): Adjust declaration.
10547 * graphite.c (cloog_state): Defined here.
10548 (graphite_initialize): Call cloog_state_malloc.
10549 (graphite_finalize): Call cloog_state_free.
10551 2011-03-11 Jason Merrill <jason@redhat.com>
10553 * attribs.c (lookup_attribute_spec): Take const_tree.
10556 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10558 * config/sparc/sparc.c (sparc_option_override): Use
10559 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10561 2011-03-11 Richard Guenther <rguenther@suse.de>
10563 PR tree-optimization/48067
10564 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10565 multiplication result will be only used once on the target
10568 2011-03-11 Richard Guenther <rguenther@suse.de>
10570 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10572 2011-03-11 Richard Guenther <rguenther@suse.de>
10575 * tree.c (find_decls_types_r): Do not walk types only reachable
10576 from IDENTIFIER_NODEs.
10578 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10580 PR middle-end/48044
10581 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10582 all vnode->force_output nodes as needed.
10584 2011-03-11 Jason Merrill <jason@redhat.com>
10587 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10588 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10590 2011-03-11 Martin Jambor <mjambor@suse.cz>
10592 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10595 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10597 PR tree-optimization/48063
10598 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10599 inline functions called once if !tree_can_inline_p (node->callers).
10601 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10603 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10605 * config/score/score3.c: Delete.
10606 * config/score/score3.h: Delete.
10607 * config/score/mul-div.S: Delete.
10608 * config/score/sfp-machine.h: Add new file.
10609 * config/score/constraints.md: Add new file.
10610 * config/score/t-score-softfp: Add new file.
10611 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10612 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10613 (score7_extra_constraint): Delete.
10614 (score7_option_override): Remove unused code.
10615 * config/score/score.c: Remove score3 and score5 define and code.
10616 * config/score/score.h: Remove score3 and score5 define and code.
10617 * config/score/score.md: Remove score3 template and unusual insn.
10618 * config/score/score.opt: Remove score3 and score5 options.
10620 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10622 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10623 when _HPUX_SOURCE is defined.
10624 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10626 2011-03-10 Jason Merrill <jason@redhat.com>
10629 * stor-layout.c (layout_type): Don't set structural equality
10630 on arrays of incomplete type.
10631 * tree.c (type_hash_eq): Handle comparing them properly.
10633 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10636 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10637 result mode matches original rtl mode.
10639 2011-03-10 Nick Clifton <nickc@redhat.com>
10641 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10642 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10644 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10646 PR rtl-optimization/47866
10647 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10648 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10649 if target wasn't scalar.
10650 * function.c (assign_stack_temp_for_type): Assert that neither
10651 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10652 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10654 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10656 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10658 * config/s390/s390-protos.h (s390_label_align): New prototype.
10659 * config/s390/s390.c (s390_label_align): New function.
10660 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10662 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10665 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10666 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10667 (output_vec_const_move): Ditto.
10669 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10671 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10672 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10673 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10674 Change 'rclass' argument and result type to reg_class_t.
10675 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10677 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10679 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10680 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10681 (TARGET_MEMORY_MOVE_COST): Define.
10682 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10684 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10687 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10690 PR tree-optimization/48022
10691 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10694 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10697 * var-tracking.c (find_use_val): Return NULL for
10698 cui->sets && cui->store_p BLKmode MEMs.
10700 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10702 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10704 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10705 xstormy16_print_operand_address): Remove.
10706 * config/stormy16/stormy16.c (xstormy16_print_operand,
10707 xstormy16_print_operand_address): Make static.
10708 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10710 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10713 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10714 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10717 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10720 * cfgloopmanip.c (fix_bb_placements): Return immediately
10721 if FROM is BASE_LOOP's header.
10723 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10725 * gimplify.c (gimplify_function_tree): Fix building calls
10726 to __builtin_return_address.
10728 2011-03-07 Alan Modra <amodra@gmail.com>
10730 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10731 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10732 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10733 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10735 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10736 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10737 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10738 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10739 * config/rs6000/rs6000.c
10740 (rs6000_elf_end_indicate_exec_stack): Rename to..
10741 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10742 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10743 (rs6000_file_start): ..here.
10744 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10745 file scope variables.
10746 (call_ABI_of_interest): New function.
10747 (init_cumulative_args): Set above vars when function return value
10748 is a float, vector, or small struct.
10749 (rs6000_function_arg_advance_1): Likewise for function args.
10750 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10751 references float args.
10753 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10755 * doc/cfg.texi: Remove "See" before @ref.
10756 * doc/invoke.texi: Likewise.
10758 2011-03-05 Jason Merrill <jason@redhat.com>
10760 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10762 2011-03-05 Anthony Green <green@moxielogic.com>
10764 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10766 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10768 PR rtl-optimization/47899
10769 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10770 to flow_loop_nested_p when moving the loop upward.
10772 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10775 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10777 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10779 PR tree-optimization/47967
10780 * ipa-cp.c (build_const_val): Return NULL instead of creating
10781 VIEW_CONVERT_EXPR for mismatching sizes.
10782 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10783 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10784 give up on versioning.
10786 2011-03-05 Alan Modra <amodra@gmail.com>
10789 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10790 full cmodel medium/large lo_sum + high addresses.
10792 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10794 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10795 pool references in UNSPEC_LTREL_OFFSET.
10797 2011-03-04 Jan Hubicka <jh@suse.cz>
10800 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10801 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10802 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10804 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10805 cgraph_add_thunk): Add node pointers.
10806 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10807 associated to right node.
10808 (input_node): Update use of cgraph_same_body_alias
10809 and cgraph_add_thunk.
10811 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10813 * config/i386/i386.opt (mprefer-avx128): New flag.
10814 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10815 modes when the flag -mprefer-avx128 is on.
10817 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10819 * dwarf2out.c (compare_loc_operands): Fix address handling.
10821 2011-03-04 Alan Modra <amodra@gmail.com>
10823 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10825 2011-03-04 Richard Guenther <rguenther@suse.de>
10827 PR middle-end/47968
10828 * expmed.c (extract_bit_field_1): Prefer vector modes that
10829 vec_extract patterns can handle.
10831 2011-03-04 Richard Guenther <rguenther@suse.de>
10833 PR middle-end/47975
10834 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10836 2011-03-04 Richard Henderson <rth@redhat.com>
10838 * explow.c (emit_stack_save): Remove 'after' parameter.
10839 (emit_stack_restore): Likewise.
10840 * expr.h: Update to match.
10841 * builtins.c, calls.c, stmt.c: Likewise.
10842 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10843 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10844 * function.c (expand_function_end): Insert the emit_stack_save
10845 sequence before parm_birth_insn instead of after.
10847 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10849 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10850 (ssse3_pmaddubsw128): Ditto.
10851 (ssse3_pmaddubsw): Ditto.
10853 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10855 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10857 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10860 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10861 on TYPE_SIZE_UNIT if it is a DECL.
10864 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10865 first operand is not is_gimple_mem_ref_addr, try to fold it.
10866 If the operand still isn't is_gimple_mem_ref_addr, clear
10869 2011-03-03 Richard Guenther <rguenther@suse.de>
10871 PR middle-end/47283
10872 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10874 (refs_may_alias_p_1): For release branches return true if
10875 we are confused by our input.
10877 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10879 * config/s390/s390.c (s390_function_value): Rename to ...
10880 (s390_function_and_libcall_value): ... this.
10881 (s390_function_value): New function.
10882 (s390_libcall_value): New function.
10883 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10884 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10885 target macro definitions.
10886 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10888 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10890 * config/i386/freebsd64.h (CC1_SPEC): Define.
10891 * config/i386/linux64.h (CC1_SPEC): Define.
10892 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10894 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10896 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10898 * config/stormy16/stormy16.c: Include reload.h.
10899 (xstormy16_memory_move_cost): New function.
10900 (TARGET_MEMORY_MOVE_COST): Define.
10902 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10904 PR rtl-optimization/47925
10905 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10906 with side effects. Remove the more-specific check for volatile asms.
10908 2011-03-02 Alan Modra <amodra@gmail.com>
10911 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10912 toc relative addresses for valid offsets.
10914 2011-03-01 Richard Guenther <rguenther@suse.de>
10916 PR tree-optimization/47890
10917 * tree-vect-loop.c (get_initial_def_for_induction): Set
10918 related stmt properly.
10920 2011-03-01 Richard Guenther <rguenther@suse.de>
10923 * lto-streamer.c (lto_record_common_node): Also register
10924 the canonical type.
10926 2011-03-01 Richard Guenther <rguenther@suse.de>
10929 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10930 Do not stream DECL_ABSTRACT_ORIGIN.
10931 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10932 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10933 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10934 Do not stream DECL_ABSTRACT_ORIGIN.
10935 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10936 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10938 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10940 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10941 FUNCTION_VALUE_REGNO_P): Remove.
10942 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10943 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10944 Add 'outgoing' argument.
10945 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10947 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10948 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10950 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10953 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10954 (lookup_filename): Likewise.
10955 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10957 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10958 Jakub Jelinek <jakub@redhat.com>
10960 PR middle-end/47893
10961 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10962 (assign_stack_local_1): Change last argument type to int.
10963 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10964 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10965 don't record padding space into frame_space_list nor use those areas.
10966 (assign_stack_local): Adjust caller.
10967 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10968 of assign_stack_local, pass 0 as last argument.
10969 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10972 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10975 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10976 Use target address_mode and pointer_mode hooks instead of hardcoded
10977 Pmode and ptr_mode. Handle some simple cases of extending if
10978 POINTERS_EXTEND_UNSIGNED < 0.
10979 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10980 Call convert_debug_memory_address.
10981 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10982 convert_debug_memory_address.
10984 PR middle-end/46790
10985 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10986 * configure: Regenerated.
10987 * config.in: Regenerated.
10988 * varasm.c (default_function_section): Return NULL
10989 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10991 2011-02-28 Martin Jambor <mjambor@suse.cz>
10993 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10994 the description to match the printed values.
10996 2011-02-28 Richard Guenther <rguenther@suse.de>
10998 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10999 of the copied scope tree.
11001 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11003 * doc/extend.texi (Function Attributes): Avoid deeply (and
11004 wrongly) nested tables.
11006 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11008 PR middle-end/47903
11009 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11010 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11011 r isn't op0 nor op1.
11013 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11015 * config/avr/avr.md: Remove magic comment for emacs.
11017 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11020 * config/avr/avr.c (avr_option_override): Use error on bad options.
11021 (avr_help): New function.
11022 (TARGET_HELP): Define.
11024 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11027 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11028 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11030 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11032 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11033 (ARM Options): Ditto.
11034 (i386 and x86-64 Options): Ditto.
11035 (RX Options): Ditto.
11036 (SPARC Options): Ditto.
11038 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11040 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11041 FreeBSD 6 and later. Generally use cpu generic.
11043 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11045 * doc/cpp.texi: Update copyright years.
11047 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11050 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11052 2011-02-25 Jon Beniston <jon@beniston.com>
11055 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11056 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11057 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11058 (lm32_block_move_inline): Add type cast to remove warning.
11059 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11060 (gen_int_relational): Move declarations to start of function.
11062 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11064 PR tree-optimization/45470
11065 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11066 can throw internally only.
11067 * tree-vect-stmts.c (vectorizable_call): Likewise.
11069 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11071 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11072 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11073 * config/stormy16/stormy16-protos.h
11074 (xstormy16_preferred_reload_class): Remove.
11075 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11076 static. Change 'rclass' argument and return type to reg_class_t.
11077 (TARGET_PREFERRED_RELOAD_CLASS,
11078 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11080 2011-02-24 Richard Guenther <rguenther@suse.de>
11082 * lto-streamer-in.c (input_bb): Do not find referenced vars
11083 in debug statements.
11085 2011-02-23 Jason Merrill <jason@redhat.com>
11087 * common.opt (fabi-version): Document v5 and v6.
11089 2011-02-23 Richard Guenther <rguenther@suse.de>
11091 PR tree-optimization/47849
11092 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11094 2011-02-23 Jie Zhang <jie@codesourcery.com>
11096 * opts-common.c (decode_cmdline_option): Print empty string
11097 argument as "" in decoded->orig_option_with_args_text.
11098 * gcc.c (execute): Print empty string argument as ""
11099 in the verbose output.
11100 (do_spec_1): Keep empty string argument.
11102 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11104 * config.gcc: Declare score-* and crx-* obsolete.
11106 2011-02-23 Jie Zhang <jie@codesourcery.com>
11108 PR rtl-optimization/47763
11109 * web.c (web_main): Ignore naked clobber when replacing register.
11111 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11113 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11116 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11119 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11121 2011-02-22 Mike Stump <mikestump@comcast.net>
11123 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11125 * configure: Regenerate.
11127 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11129 PR rtl-optimization/46002
11130 * ira-color.c (update_copy_costs): Change class intersection
11131 test to reg_class_contents[] test of 'hard_regno'.
11133 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11135 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11136 than Driver option.
11137 * config/hpux11.opt (mt): Likewise.
11138 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11139 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11140 * config/vax/elf.opt (mno-asm-pic): Likewise.
11141 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11143 2011-02-21 Mike Stump <mikestump@comcast.net>
11146 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11147 tree so we can get save the type.
11148 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11149 for CFString instead of trying to use past the end of the builtins.
11150 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11151 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11152 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11153 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11154 Rename to darwin_builtin_cfstring.
11155 (darwin_init_cfstring_builtins): Return the built type.
11157 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11160 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11161 (_mm256_insert_epi64): Use _mm_insert_epi64.
11163 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11165 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11166 * config/stormy16/stormy16-protos.h
11167 (xstormy16_mode_dependent_address_p): Remove.
11168 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11169 Make static. Change return type to bool. Change argument type to
11170 const_rtx. Remove dead code.
11171 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11173 2011-02-21 Richard Guenther <rguenther@suse.de>
11176 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11177 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11178 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11180 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11181 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11183 2011-02-20 Richard Guenther <rguenther@suse.de>
11186 * tree.c (free_lang_data_in_decl): Clean builtins from
11187 the TU decl BLOCK_VARS.
11189 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11193 * haifa-sched.c (fix_tick_ready): Skip tick computation
11196 2011-02-19 Richard Guenther <rguenther@suse.de>
11199 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11200 Remove lazy BLOCK_VARS streaming.
11201 (lto_input_ts_block_tree_pointers): Likewise.
11202 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11204 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11206 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11208 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11210 * config/i386/biarch32.h, config/i386/mach.h,
11211 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11213 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11216 * config/i386/i386.md (peephole2 for shift and plus): Use
11217 operands[1] original mode in the first insn.
11219 2011-02-18 Mike Stump <mikestump@comcast.net>
11221 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11223 2011-02-18 Jan Hubicka <jh@suse.cz>
11225 PR middle-end/47788
11226 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11227 to zero when the function is not inlinable at all.
11229 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11231 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11232 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11233 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11234 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11235 * config/pa/t-pa64: Likewise.
11236 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11238 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11241 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11243 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11246 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11248 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11250 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11251 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11252 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11253 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11254 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11255 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11256 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11257 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11258 m32r_legitimate_address_p): New functions.
11259 * config/m32r/constraints.md (constraint "S"): Don't use
11260 STORE_PREINC_PREDEC_P.
11261 (constraint "U"): Don't use LOAD_POSTINC_P.
11263 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11265 PR rtl-optimization/46178
11266 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11267 compute ira_hard_regno_cover_class[].
11269 2011-02-18 Richard Guenther <rguenther@suse.de>
11272 * lto-streamer.h (lto_global_var_decls): Declare.
11273 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11274 statics for global var processing.
11276 2011-02-18 Richard Guenther <rguenther@suse.de>
11278 PR tree-optimization/47737
11279 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11280 edge dominance check.
11282 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11285 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11286 avoid invalid rtx sharing.
11288 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11290 * doc/cpp.texi (Obsolete Features): Add background on the
11291 origin of assertions.
11293 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11295 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11297 * config/darwin.c (output_objc_section_asm_op): Added support for
11299 (is_objc_metadata): New.
11300 (darwin_objc2_section): New.
11301 (darwin_objc1_section): New.
11302 (machopic_select_section): Added support for ABI v1 and v2.
11303 (darwin_emit_objc_zeroed): New.
11304 (darwin_output_aligned_bss): Detect objc metadata and treat it
11306 (darwin_asm_output_aligned_decl_common): Same.
11307 (darwin_asm_output_aligned_decl_local): Same.
11308 * config/darwin-sections.def: Updated for ABI v1 and v2.
11309 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11310 compiling Objective-C code for the NeXT runtime, default to using
11311 ABI version 0 for 32-bit, and version 2 for 64-bit.
11313 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11315 * common.opt (optimize_fast): New Variable.
11316 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11317 instead of local variable ofast.
11319 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11321 * doc/invoke.texi (fobjc-abi-version): Documented.
11322 (fobjc-nilcheck): Documented.
11323 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11326 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11329 * common.opt (export-dynamic): New Driver option.
11330 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11332 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11334 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11336 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11337 Jan Hubicka <jh@suse.cz>
11341 * cfgexpand.c (account_used_vars_for_block): Remove.
11342 (estimated_stack_frame_size): Use referenced vars.
11343 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11344 that were referenced in the original function. Test src_fn
11345 rather than cfun. Drop redundant get_var_ann.
11346 (setup_one_parameter): Drop redundant get_var_ann.
11347 (declare_return_variable): Likewise.
11348 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11349 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11350 * ipa-inline.c (compute_inline_parameters): Do not compute
11351 disregard_inline_limits here.
11352 (compute_inlinable_for_current, pass_inlinable): New.
11353 (pass_inline_parameters): Require PROP_referenced_vars.
11354 * cgraphunit.c (cgraph_process_new_functions): Don't run
11355 compute_inline_parameters explicitly unless function is in SSA form.
11356 (cgraph_analyze_function): Set .disregard_inline_limits.
11357 * tree-sra.c (convert_callers): Compute inliner parameters
11358 only for functions already in SSA form.
11360 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11362 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11363 -mlittle-endian-data.
11365 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11367 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11368 -mno-fpu, not -fpu and -no-fpu.
11369 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11370 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11372 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11375 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11376 input reload with PLUS RTX.
11378 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11380 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11381 of InverseVar(MDMX).
11383 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11385 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11388 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11390 * config/mn10300/mn10300.opt (mno-crt0): New.
11392 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11394 * config/m68k/uclinux.opt (static-libc): New Driver option.
11396 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11398 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11400 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11402 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11403 %{muser-extend-enabled}.
11405 2011-02-16 Richard Guenther <rguenther@suse.de>
11407 PR tree-optimization/47738
11408 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11409 the TODO from tree_predictive_commoning.
11411 2011-02-15 Jeff Law <law@redhat.com>
11414 2011-01-25 Jeff Law <law@redhat.com>
11416 PR rtl-optimization/37273
11417 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11418 handle them like argument loads from stack slots. Do not double
11419 count memory for memory constants and argument loads from stack slots.
11421 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11423 PR middle-end/47725
11424 * combine.c (cant_combine_insn_p): Revert the last change.
11426 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11429 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11430 mode for vector constants. Remove code that checks for TImode.
11432 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11436 * cgraph.h (compute_inline_parameters): Return void.
11437 * ipa-inline.c (compute_inline_parameters): Adjust.
11439 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11443 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11445 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11446 * ipa-inline.c (compute_inline_parameters): Adjust.
11448 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11452 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11453 Adjust all users. Pass FN to...
11454 * tree-flow-inline.h (first_referenced_var): ... this. Add
11456 * ipa-struct-reorg.c: Adjust.
11457 * tree-dfa.c: Adjust.
11458 * tree-into-ssa.c: Adjust.
11459 * tree-sra.c: Adjust.
11460 * tree-ssa-alias.c: Adjust.
11461 * tree-ssa-live.c: Adjust.
11462 * tree-ssa.c: Adjust.
11463 * tree-ssanames.c: Adjust.
11464 * tree-tailcall.c: Adjust.
11466 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11470 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11471 Adjust all callers.
11472 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11473 * tree-flow-inline.h: Adjust.
11474 * gimple-pretty-print.c: Adjust.
11475 * tree-into-ssa.c: Adjust.
11476 * tree-ssa.c: Adjust.
11477 * cfgexpand.c: Adjust.
11479 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11481 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11482 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11483 (EXTRA_CONSTRAINT): Delete.
11484 * config/iq2000/constraints.md: New file.
11485 * config/iq2000/iq2000.md: Include it.
11486 (define_insn ""): Delete.
11487 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11488 unsupported constraint letters from patterns.
11489 (call_value, call_value_internal1): Likewise.
11490 (call_value_multiple_internal1): Likewise.
11492 2011-02-15 Nick Clifton <nickc@redhat.com>
11494 * config/mn10300/mn10300.c: Include tm-constrs.h.
11495 (struct liw_data): New data structure describing an LIW candidate
11497 (extract_bundle): Use struct liw_data. Allow small integer
11498 operands for some instructions.
11499 (check_liw_constraints): Use struct liw_data. Remove swapped
11500 parameter. Add comments describing the checks. Fix bug when
11501 assigning the source of liw1 to the source of liw2.
11502 (liw_candidate): Delete. Code moved into extract_bundle.
11503 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11505 * config/mn10300/predicates.md (liw_operand): New predicate.
11506 Allows registers and small integer constants.
11507 * config/mn10300/constraints.md (O): New constraint. Accetps
11508 integers in the range -8 to +7 inclusive.
11509 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11510 for moving a small integer into a register. Give this alternative
11512 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11513 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11514 using the J,K,L and M constraints,
11515 (liw): Remove SI mode on second operands to allow for HI and QI
11517 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11520 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11522 PR middle-end/47725
11523 * combine.c (cant_combine_insn_p): Check zero/sign extended
11526 2011-02-15 Richard Guenther <rguenther@suse.de>
11528 PR tree-optimization/47743
11529 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11530 for a non-type-compatible VN lookup bail out.
11532 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11534 * config/fr30/constraints.md: New file.
11535 * config/fr30/fr30.md: Include it.
11536 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11537 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11538 (EXTRA_CONSTRAINT): Delete.
11540 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11542 * config/frv/constraints.md: New file.
11543 * config/frv/predicates.md: Include it.
11544 * config/frv/frv.c (reg_class_from_letter): Delete.
11545 (frv_option_override): Don't initialize it.
11546 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11547 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11548 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11549 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11550 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11551 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11552 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11553 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11554 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11555 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11556 (REG_CLASS_FROM_CONSTRAINT): Delete.
11558 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11560 PR middle-end/47581
11561 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11562 if frame size is 0 in a leaf function.
11564 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11567 * config/alpha/host-osf.c: New file.
11568 * config/alpha/x-osf: New file.
11569 * config.host (alpha*-dec-osf*): Use it.
11571 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11573 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11574 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11575 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11576 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11578 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11580 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11582 * config/stormy16/constraints.md: New file.
11583 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11584 Use satisfies_constraint_Q and satisfies_constraint_R.
11585 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11587 (xstormy16_legitiamte_address_p): Declare.
11588 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11589 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11590 (EXTRA_CONSTRAINT): Delete.
11591 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11593 (xstormy16_extra_constraint_p): Delete.
11595 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11597 PR tree-optimization/46494
11598 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11599 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11600 (pass_rtl_loop_done): Add TODO_verify_flow.
11601 * fwprop.c (pass_rtl_fwprop): Likewise.
11602 * modulo-sched.c (pass_sms): Likewise.
11603 * tree-ssa-dom.c (pass_dominator): Likewise.
11604 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11605 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11606 (pass_tree_loop_done): Likewise.
11607 * tree-ssa-pre.c (execute_pre): Likewise.
11608 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11609 * tree-ssa-sink.c (pass_sink_code): Likewise.
11610 * tree-vrp.c (pass_vrp): Likewise.
11612 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11614 * config/v850/constraints.md: New file.
11615 * config/v850/v850.md: Include it.
11616 * config/v850/predicates.md (reg_or_0_operand): Use
11617 satisfies_constraint_G.
11618 (special_symbolref_operand): Use satisfies_constraint_K.
11619 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11620 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11621 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11622 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11623 (EXTRA_CONSTRAINT): Delete.
11624 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11625 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11626 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11628 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11631 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11634 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11636 * config/mcore/constraints.md: New file.
11637 * config/mcore/mcore.md: Include it.
11638 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11639 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11640 (REG_CLASS_FROM_LETTER): Delete.
11641 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11642 insn_const_int_ok_for_constraint.
11643 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11644 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11645 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11646 (EXTRA_CONSTRAINT): Delete.
11648 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11651 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11652 (IS_SIGHANDLER): Define.
11653 (sparc64_is_sighandler): New function, split off from
11654 sparc64_fallback_frame_state.
11655 (sparc_is_sighandler): New function, split off from
11656 sparc_fallback_frame_state.
11657 (sparc64_fallback_frame_state): Merge with ...
11658 (sparc_fallback_frame_state): ... this into ...
11659 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11660 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11661 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11662 stack instead of hardcoded offsets.
11664 2011-02-14 Andriy Gapon <avg@freebsd.org>
11667 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11669 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11671 * configure: Regenerate.
11673 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11676 * gcc.c (asm_options): Correct spec matching --target-help.
11678 2011-02-12 Martin Jambor <mjambor@suse.cz>
11680 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11681 to gimple call error.
11683 2011-02-12 Mike Stump <mikestump@comcast.net>
11685 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11686 comments in backslash regions.
11688 2011-02-12 Mike Stump <mikestump@comcast.net>
11689 Jakub Jelinek <jakub@redhat.com>
11690 Iain Sandoe <iains@gcc.gnu.org>
11693 * dwarf2out.c (output_cfa_loc): When required, apply the
11694 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11695 (output_loc_sequence): Likewise.
11696 (output_loc_operands_raw): Likewise.
11697 (output_loc_sequence_raw): Likewise.
11698 (output_cfa_loc): Likewise.
11699 (output_loc_list): Suppress register number adjustment when
11700 calling output_loc_sequence()
11701 (output_die): Likewise.
11703 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11705 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11707 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11708 xtensa_memory_move_cost): New functions.
11709 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11711 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11714 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11715 in the current directory.
11716 * configure: Rebuilt.
11718 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11720 * config/darwin.c (darwin_override_options): Add a hunk missed
11721 from the commit of r168571. Trim comment line lengths and
11722 correct indents of the preceding block.
11724 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11726 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11729 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11731 * common.opt (nostartfiles): New Driver option.
11733 2011-02-11 Xinliang David Li <davidxl@google.com>
11735 PR tree-optimization/47707
11736 * tree-chrec.c (convert_affine_scev): Keep type precision.
11738 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11740 PR tree-optimization/47420
11741 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11743 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11745 PR rtl-optimization/47614
11746 * rtl.h (check_for_inc_dec): Declare.
11747 * dse.c (check_for_inc_dec): Externalize...
11748 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11749 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11751 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11754 * gcc.c (main): Do not compile inputs if there were errors in
11756 * opts-common.c (read_cmdline_option): Check for wrong language
11757 after other error checks.
11759 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11761 * cgraph.c: Fix comment typos.
11762 * cgraph.h: Likewise.
11763 * cgraphunit.c: Likewise.
11764 * ipa-cp.c: Likewise.
11765 * ipa-inline.c: Likewise.
11766 * ipa-prop.c: Likewise.
11767 * ipa-pure-const.c: Likewise.
11768 * ipa-ref.c: Likewise.
11769 * ipa-reference.c: Likewise.
11771 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11774 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11776 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11779 * doc/sourcebuild.texi (Require Support): Document
11780 dg-require-ascii-locale.
11782 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11784 * doc/lto.texi (Write summary): Fix missing parentheses.
11786 2011-02-10 DJ Delorie <dj@redhat.com>
11788 * config/m32c/m32c.c (m32c_option_override): Disable
11789 -fcombine-stack-adjustments until flag value tracking and compare
11790 optimization can be rewritten.
11792 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11794 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11796 (PROCESSOR_DEFAULT64): Likewise.
11798 2011-02-10 Richard Henderson <rth@redhat.com>
11800 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11801 change from 2011-02-03.
11802 * config/rx/rx.c (flags_from_code): Likewise.
11803 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11804 is valid, n/pz otherwise.
11805 (rx_select_cc_mode): Return CCmode if Y is not zero.
11807 2011-02-10 Richard Guenther <rguenther@suse.de>
11809 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11811 2011-02-10 Richard Guenther <rguenther@suse.de>
11813 PR tree-optimization/47677
11814 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11816 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11819 * combine.c (make_compound_operation): Only change shifts into
11820 multiplication for SCALAR_INT_MODE_P.
11822 2011-02-10 Jie Zhang <jie@codesourcery.com>
11826 2011-02-05 Jie Zhang <jie@codesourcery.com>
11828 * web.c (entry_register): Don't clobber the number of the
11829 first uninitialized reference in used[].
11831 2011-02-09 Richard Guenther <rguenther@suse.de>
11833 PR tree-optimization/47664
11834 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11837 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11841 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11843 (PROCESSOR_DEFAULT64): Same.
11844 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11846 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11848 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11850 2011-02-09 Martin Jambor <mjambor@suse.cz>
11852 PR middle-end/45505
11853 * tree-sra.c (struct access): New flags grp_scalar_read and
11854 grp_scalar_write. Changed description of assignment read and write
11856 (dump_access): Dump new flags, reorder all of them.
11857 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11858 to detect multiple scalar reads.
11859 (analyze_access_subtree): Use the new scalar read write flags instead
11860 of the old flags. Adjusted comments.
11862 2011-02-08 DJ Delorie <dj@redhat.com>
11865 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11868 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11870 * config/m68k/uclinux.opt: New.
11871 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11873 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11875 * config/cris/elf.opt (sim): New Driver option.
11877 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11879 * config/xtensa/elf.opt: New.
11880 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11882 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11884 * config/vax/elf.opt: New.
11885 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11887 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11889 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11891 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11893 * config/gnu-user.opt: New.
11894 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11895 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11896 *-*-uclinux*): Use gnu-user.opt.
11898 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11900 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11901 * config/i386/gnu.h (CPP_SPEC): Likewise.
11903 2011-02-08 Ian Lance Taylor <iant@google.com>
11905 * common.opt (fcx-limited-range): Add SetByCombined flag.
11906 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11907 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11908 (fassociative-math, freciprocal-math): Likewise.
11909 (funsafe-math-optimizations): Likewise.
11910 * opth-gen.awk: Handle SetByCombined.
11911 * optc-gen.awk: Likewise.
11912 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11913 (set_unsafe_math_optimizations_flags): Likewise.
11914 * doc/options.texi (Option properties): Document SetByCombined.
11916 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11918 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11919 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11920 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11921 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11922 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11924 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11926 PR tree-optimization/46834
11927 PR tree-optimization/46994
11928 PR tree-optimization/46995
11929 * graphite-sese-to-poly.c (used_outside_reduction): New.
11930 (detect_commutative_reduction): Call used_outside_reduction.
11931 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11932 translate_scalar_reduction_to_array only when at least one
11933 loop-phi/close-phi tuple has been detected.
11935 2011-02-08 Richard Guenther <rguenther@suse.de>
11937 PR middle-end/47639
11938 * tree-vect-generic.c (expand_vector_operations_1): Update
11940 (expand_vector_operations): ... not here. Cleanup EH info
11941 and the CFG if required.
11943 2011-02-08 Richard Guenther <rguenther@suse.de>
11945 PR tree-optimization/47641
11946 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11947 require type compatibility.
11949 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11951 * gimple-low.c (lower_function_body): Don't remove the location of
11952 the return statement here.
11953 (lower_gimple_return): Do it here instead but only if the return
11954 statement is actually used twice.
11956 2011-02-08 Richard Guenther <rguenther@suse.de>
11958 PR tree-optimization/47632
11959 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11960 unused up_to_stmt parameter, return whether cfg-cleanup is
11961 necessary, remove EH info properly.
11962 (forward_propagate_into_gimple_cond): Adjust caller.
11963 (forward_propagate_into_cond): Likewise.
11964 (forward_propagate_comparison): Likewise.
11965 (tree_ssa_forward_propagate_single_use_vars): Make
11966 forward_propagate_comparison case similar to the two others.
11968 2011-02-08 Nick Clifton <nickc@redhat.com>
11970 * config/mn10300/mn10300.opt (mliw): New command line option.
11971 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11972 (liw_bundling): New automaton.
11973 (liw): New attribute.
11974 (liw_op): New attribute.
11975 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11976 (movsi_internal): Add LIW attributes.
11977 (andsi3): Likewise.
11978 (iorsi3): Likewise.
11979 (xorsi3): Likewise.
11980 (addsi3): Separate register and immediate alternatives.
11981 Add LIW attributes.
11982 (subsi3): Likewise.
11984 (aslsi3): Likewise.
11985 (lshrsi3): Likewise.
11986 (ashrsi3): Likewise.
11987 (liw): New pattern.
11988 * config/mn10300/mn10300.c (liw_op_names): New
11989 (mn10300_print_operand): Handle 'W' operand descriptor.
11990 (extract_bundle): New function.
11991 (check_liw_constraints): New function.
11992 (liw_candidate): New function.
11993 (mn10300_bundle_liw): New function.
11994 (mn10300_reorg): New function.
11995 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11996 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11997 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11998 __LIW__ or __NO_LIW__.
11999 * doc/invoke.texi: Describe the -mliw command line option.
12001 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12003 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12004 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12005 pthread_mutex_unlock): Remove.
12006 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12007 * config/pa/t-pa64: Likewise.
12008 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12009 shared libc if not linking against libpthread.
12010 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12012 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12015 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12016 on 10.6 and later to ensure that we always use the unwinder from
12017 the system. Only add -no_compact_unwind when tarteting darwin
12020 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12023 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12024 (vec_interleave_lowv2sf): Ditto.
12025 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12026 (vec_extract_oddv2sf): Ditto.
12028 2011-02-07 Mike Stump <mikestump@comcast.net>
12031 Add __ieee_divdc3 entry point.
12032 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12034 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12035 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12036 * config/darwin.c (darwin_rename_builtins): Add.
12037 * config/darwin-protos.h (darwin_rename_builtins): Add.
12039 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12042 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12045 2011-02-07 Mike Stump <mikestump@comcast.net>
12047 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12049 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12052 * config/avr/libgcc.S (exit): Move .endfunc
12054 2011-02-07 Richard Guenther <rguenther@suse.de>
12056 PR tree-optimization/47615
12057 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12058 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12059 (run_scc_vn): Initialize it.
12060 (visit_reference_op_load): Use it.
12061 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12063 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12065 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12066 DImode trapping arithmetic libfuncs.
12068 2011-02-07 Richard Guenther <rguenther@suse.de>
12070 PR tree-optimization/47621
12071 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12073 (execute_update_addresses_taken): ... here. Make it more
12074 conservative in what we accept.
12076 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12078 * config/sparc/freebsd.h (ASM_SPEC): Define.
12079 * config/sparc/vxworks.h (ASM_SPEC): Define.
12081 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12083 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12085 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12087 * doc/invoke.texi: Remove reference to compiler internals from
12088 user documentation.
12090 * reg-notes.def: Remove REG_VALUE_PROFILE.
12091 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12093 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12095 PR middle-end/47610
12096 * varasm.c (default_section_type_flags): If decl is NULL,
12097 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12099 2011-02-05 Jie Zhang <jie@codesourcery.com>
12102 * web.c (entry_register): Don't clobber the number of the
12103 first uninitialized reference in used[].
12105 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12107 PR tree-optimization/46194
12108 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12109 (build_classic_dist_vector_1): Do not represent classic distance
12110 vectors when the access functions are variating in different loops.
12112 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12114 * config/mips/iris6.opt: New.
12115 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12117 2011-02-04 Richard Henderson <rth@redhat.com>
12118 Steve Ellcey <sje@cup.hp.com>
12121 * config/ia64/predicates.md (mux1_brcst_element): New.
12122 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12123 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12124 (ia64_unpack_sign): New.
12125 (ia64_expand_unpack): Rewrite using new routines.
12126 (ia64_expand_widen_sum): Ditto.
12127 (ia64_expand_dot_prod_v8qi): Ditto.
12128 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12129 routines, add endian check.
12130 (pmpy2_even): Rename from pmpy2_r, add endian check.
12131 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12132 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12133 (vec_widen_smult_hi_v4hi): Ditto.
12134 (vec_widen_umult_lo_v4hi): Ditto.
12135 (vec_widen_umult_hi_v4hi): Ditto.
12136 (mulv2si3): Change endian checks.
12137 (sdot_prodv4hi): Rewrite with new calls.
12138 (udot_prodv4hi): New.
12139 (vec_pack_ssat_v4hi): Add endian check.
12140 (vec_pack_usat_v4hi): Ditto.
12141 (vec_pack_ssat_v2si): Ditto.
12142 (max1_even): Rename from max1_r, add endian check.
12143 (max1_odd): Rename from max1_l, add endian check.
12144 (*mux1_rev): Format change.
12145 (*mux1_mix): Ditto.
12146 (*mux1_shuf): Ditto.
12147 (*mux1_alt): Ditto.
12148 (*mux1_brcst_v8qi): Use new predicate.
12149 (vec_extract_evenv8qi): Remove endian check.
12150 (vec_extract_oddv8qi): Ditto.
12151 (vec_interleave_lowv4hi): Format change.
12152 (vec_interleave_highv4hi): Ditto.
12153 (mix2_even): Rename from mix2_r, add endian check.
12154 (mix2_odd): Rename from mux2_l, add endian check.
12155 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12156 (vec_extract_evenodd_helper): Format change.
12157 (vec_extract_evenv4hi): Remove endian check.
12158 (vec_extract_oddv4hi): Remove endian check.
12159 (vec_interleave_lowv2si): Format change.
12160 (vec_interleave_highv2si): Format change.
12161 (vec_initv2si): Remove endian check.
12162 (vecinit_v2si): Add endian check.
12163 (reduc_splus_v2sf): Add endian check.
12164 (reduc_smax_v2sf): Ditto.
12165 (reduc_smin_v2sf): Ditto.
12166 (vec_initv2sf): Remove endian check.
12167 (fpack): Add endian check.
12168 (fswap): Add endian check.
12169 (vec_interleave_highv2sf): Add endian check.
12170 (vec_interleave_lowv2sf): Add endian check.
12171 (fmix_lr): Add endian check.
12172 (vec_setv2sf): Format change.
12173 (*vec_extractv2sf_0_be): Use shift to extract operand.
12174 (*vec_extractv2sf_1_be): New.
12175 (vec_pack_trunc_v4hi): Add endian check.
12176 (vec_pack_trunc_v2si): Format change.
12178 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12180 PR inline-asm/23200
12181 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12182 do bb, locus and block comparison and disallow loads if it is not set.
12183 (stmt_is_replaceable_p): New function.
12184 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12186 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12187 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12189 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12191 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12193 * config/rs6000/xilinx.opt: New.
12194 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12196 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12198 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12200 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12202 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12203 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12204 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12205 secondary_reload_info, xtensa_secondary_reload): Remove.
12206 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12207 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12208 (xtensa_preferred_reload_class): Make static. Change return and
12209 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12210 Use CONST_DOUBLE_P predicate.
12211 (xtensa_preferred_output_reload_class): New function.
12212 (xtensa_secondary_reload): Make static.
12214 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12216 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12217 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12218 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12220 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12222 PR middle-end/31490
12223 * output.h (SECTION_RELRO): Define.
12224 (SECTION_MACH_DEP): Adjust.
12225 (get_variable_section): New prototype.
12226 * varpool.c (varpool_finalize_named_section_flags): New function.
12227 (varpool_assemble_pending_decls): Call it.
12228 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12229 * cgraphunit.c (cgraph_output_in_order): Call
12230 varpool_finalize_named_section_flags.
12231 * varasm.c (get_section): Allow section flags conflicts between
12232 relro and read-only sections if the section hasn't been declared yet.
12233 Set SECTION_OVERRIDE after diagnosing section type conflict.
12234 (get_variable_section): No longer static.
12235 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12236 readonly sections that need relocations.
12237 (decl_readonly_section_1): New function.
12238 (decl_readonly_section): Use it.
12241 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12242 Steve Ellcey <sje@cup.hp.com>
12244 PR middle-end/31490
12245 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12246 if section attribute used.
12248 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12250 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12251 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12252 (darwin_init_sections): Remove assertion.
12254 2011-02-03 Nick Clifton <nickc@redhat.com>
12256 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12258 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12259 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12260 instead of "n" and "pz".
12261 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12264 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12267 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12268 fma, expand FMA_EXPR as fma{,f,l} call.
12271 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12272 copy them into a unsigned char variable and pass address of it to
12273 lto_output_data_stream.
12276 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12277 around backend_init_target and lang_dependent_init_target calls.
12278 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12279 (verify_cgraph_node): Don't call set_cfun here. Use
12280 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12281 Set error_found for incorrectly represented calls to thunks.
12283 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12286 PR rtl-optimization/43494
12287 * rtl.h (for_each_inc_dec_fn): New type.
12288 (for_each_inc_dec): Declare.
12289 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12290 (for_each_inc_dec_find_inc_dec): New fn.
12291 (for_each_inc_dec_find_mem): New fn.
12292 (for_each_inc_dec): New fn.
12293 * dse.c (struct insn_size): Remove.
12294 (replace_inc_dec, replace_inc_dec_mem): Remove.
12295 (emit_inc_dec_insn_before): New fn.
12296 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12297 (canon_address): Pass mem modes to cselib_lookup.
12298 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12299 (cselib_lookup_from_insn): Likewise.
12300 (cselib_subst_to_values): Likewise.
12301 * cselib.c (find_slot_memmode): New var.
12302 (cselib_find_slot): New fn. Use it instead of
12303 htab_find_slot_with_hash everywhere.
12304 (entry_and_rtx_equal_p): Use find_slot_memmode.
12305 (autoinc_split): New fn.
12306 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12307 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12308 Deal with autoinc. Special-case recursion into MEMs.
12309 (cselib_hash_rtx): Likewise.
12310 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12311 address and MEM modes.
12312 (cselib_subst_to_values): Add memmode, pass it on.
12314 (cselib_lookup): Add memmode argument, pass it on.
12315 (cselib_lookup_from_insn): Add memmode.
12316 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12317 (struct cselib_record_autoinc_data): New.
12318 (cselib_record_autoinc_cb): New fn.
12319 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12320 mode to cselib_lookup. Reset autoinced REGs here instead of...
12321 (cselib_process_insn): ... here.
12322 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12324 (add_uses): Likewise, also to cselib_subst_to_values.
12325 (add_stores): Likewise.
12326 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12327 cselib_subst_to_values.
12328 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12329 * gcse.c (do_local_cprop): Adjusted.
12330 * postreload.c (reload_cse_simplify_set): Adjusted.
12331 (reload_cse_simplify_operands): Adjusted.
12332 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12334 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12336 PR tree-optimization/45122
12337 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12338 unsafe assumptions when there's more than one loop exit.
12340 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12343 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12344 Document using vector double with the load/store builtins, and
12345 that the load/store builtins always use Altivec instructions.
12347 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12348 to use altivec memory instructions, even on VSX.
12349 (vector_altivec_store_<mode>): Ditto.
12351 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12354 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12355 V2DF, V2DI support to load/store overloaded builtins.
12357 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12358 altivec load/store builtins for V2DF/V2DI types.
12360 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12361 set avoid indexed addresses on power6 if -maltivec.
12362 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12363 vector_altivec_load/vector_altivec_store builtins.
12364 (altivec_expand_st_builtin): Ditto.
12365 (altivec_expand_builtin): Add VSX memory builtins.
12366 (rs6000_init_builtins): Add V2DI types to internal types.
12367 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12368 load/store builtins.
12369 (rs6000_address_for_altivec): Insure memory address is appropriate
12372 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12373 vec_vsx_ld and vec_vsx_st.
12374 (vsx_store_<mode>): Ditto.
12376 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12377 variables to hold long long types for VSX vector memory builtins.
12378 (RS6000_BTI_unsigned_long_long): Ditto.
12379 (long_long_integer_type_internal_node): Ditti.
12380 (long_long_unsigned_type_internal_node): Ditti.
12382 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12383 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12384 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12386 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12388 (vec_vsx_st): Ditto.
12390 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12392 * config/pa/pa-hpux10.opt: New.
12393 * config/hpux11.opt (pthread): New Driver option.
12394 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12395 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12397 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12399 * config/ia64/vms.opt: New.
12400 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12402 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12405 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12406 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12407 generator functions.
12408 (vsx_floatuns<VSi><mode>2): Ditto.
12409 (vsx_fix_trunc<mode><VSi>2): Ditto.
12410 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12412 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12414 * config/i386/djgpp.opt (posix): New Driver option.
12416 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12418 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12419 Move to the unsupported targets list.
12421 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12423 PR rtl-optimization/47525
12424 * df-scan.c: Update copyright years.
12425 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12426 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12428 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12430 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12431 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12432 (ASM_OUTPUT_ASCII): Remove.
12433 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12435 2011-02-02 Jeff Law <law@redhat.com>
12437 PR middle-end/47543
12438 * reload.c (find_reloads_address): Handle reg+d address where both
12439 components are invalid by reloading the entire address.
12441 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12442 Richard Guenther <rguenther@suse.de>
12444 PR tree-optimization/40979
12446 * passes.c (init_optimization_passes): After LIM call copy_prop
12447 and DCE to clean up.
12448 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12450 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12452 PR tree-optimization/47576
12453 PR tree-optimization/47555
12454 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12455 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12456 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12457 * tree-scalar-evolution.c (follow_ssa_edge): Use
12458 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12460 2011-02-02 Richard Guenther <rguenther@suse.de>
12462 PR tree-optimization/47566
12463 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12465 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12469 * tree-inline.c (declare_return_variable): Remove unused caller
12474 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12475 * cfgexpand.c (account_used_vars_for_block): Use them.
12476 * tree-nrv.c (tree_nrv): Likewise.
12477 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12478 (dump_scope_block): Likewise.
12479 (remove_unused_locals): Likewise.
12483 * tree-inline.c (declare_return_variable): Add result decl to
12484 local decls only once.
12485 * gimple-low.c (record_vars_into): Mark newly-created variables
12488 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12494 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12496 (no_real_insns_p, schedule_block, set_priorities): Drop special
12497 treatment of boundary debug insns.
12498 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12499 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12500 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12501 (BOUNDARY_DEBUG_INSN_P): Likewise.
12502 (SCHEDULE_DEBUG_INSN_P): Likewise.
12503 * sched-rgn.c (init_ready_list): Drop special treatment of
12504 boundary debug insns.
12505 * final.c (rest_of_clean_state): Clear notes' BB.
12507 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12509 * config/openbsd.opt (assert=): New Driver option.
12511 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12513 * config/i386/nto.opt: New.
12514 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12516 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12518 * config/i386/netware.opt: New.
12519 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12521 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12523 * config/interix.opt (posix): New Driver option.
12525 2011-02-01 DJ Delorie <dj@redhat.com>
12527 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12529 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12532 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12534 PR tree-optimization/47561
12535 * toplev.c (process_options): Print the Graphite flags. Add
12536 flag_loop_flatten to the list of options requiring Graphite.
12538 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12540 * config/i386/cygming.opt (posix): New Driver option.
12542 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12544 * config/arm/vxworks.opt: New.
12545 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12547 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12549 * config/alpha/elf.opt: New.
12550 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12551 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12553 2011-02-01 Richard Guenther <rguenther@suse.de>
12555 PR tree-optimization/47559
12556 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12557 store-motion on references that can throw.
12559 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12561 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12562 * tree-pass.h (TDF_CSELIB): New macro.
12563 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12564 cselib_lookup): Check for it rather than for TDF_DETAILS.
12566 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12569 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12570 is HOST_BIT_BUCKET.
12572 * opts.c (finish_options): Don't add x_aux_base_name if it is
12575 2011-02-01 Richard Guenther <rguenther@suse.de>
12577 PR tree-optimization/47555
12579 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12581 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12583 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12586 * config/lm32/t-lm32: Add multilib for all CPU options.
12588 2011-02-01 Richard Guenther <rguenther@suse.de>
12590 PR tree-optimization/47541
12591 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12592 sure to have a field at offset zero.
12594 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12596 * config/arc/arc.opt (EB, EL): New Driver options.
12598 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12600 * config/alpha/osf5.opt: New.
12601 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12603 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12605 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12607 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12609 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12610 -floop-interchange.
12611 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12612 is an alias of -floop-interchange and that it requires the
12613 Graphite infrastructure.
12614 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12615 flag_loop_interchange based on the value of flag_tree_loop_linear.
12617 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12618 Richard Guenther <rguenther@suse.de>
12620 PR tree-optimization/47538
12621 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12622 type instead of r1type, except for comparisons. For right
12623 shifts and comparisons punt if there are mismatches in
12624 sizetype vs. non-sizetype types.
12626 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12628 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12631 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12633 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12635 * configure: Regenerate.
12637 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12639 * configure.ac (gcc_cv_ld_static_option): Define.
12640 (gcc_cv_ld_dynamic_option): Define.
12641 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12643 (HAVE_LD_STATIC_DYNAMIC): Update message.
12644 (LD_STATIC_OPTION): Define.
12645 (LD_DYNAMIC_OPTION): Define.
12646 * configure: Regenerate.
12647 * config.in: Regenerate.
12648 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12649 HAVE_LD_STATIC_DYNAMIC]: Use them.
12651 2011-01-31 Nick Clifton <nickc@redhat.com>
12653 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12654 registers inside interrupt handlers if the handler is not a leaf
12657 2011-01-31 Nick Clifton <nickc@redhat.com>
12659 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12660 reg_renumber returning an INVALID_REGNUM.
12662 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12665 * doc/install.texi: Document host options discarded when cross
12666 configuring target libraries.
12668 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12671 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12674 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12676 (no_real_insns_p, schedule_block, set_priorities): Drop special
12677 treatment of boundary debug insns.
12678 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12679 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12680 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12681 (BOUNDARY_DEBUG_INSN_P): Likewise.
12682 (SCHEDULE_DEBUG_INSN_P): Likewise.
12683 * sched-rgn.c (init_ready_list): Drop special treatment of
12684 boundary debug insns.
12685 * final.c (rest_of_clean-state): Clear notes' BB.
12687 2011-01-31 Alan Modra <amodra@gmail.com>
12689 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12690 toc relative expressions as we do in print_operand_address.
12692 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12694 * doc/extend.texi: Follow spelling conventions.
12695 * doc/invoke.texi: Fix a typo.
12697 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12699 * config/hpux11.opt: New.
12700 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12701 ia64*-*-hpux*): Use hpux11.opt.
12703 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12705 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12708 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12710 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12713 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12715 * doc/install.texi (Binaries): Remove outdated reference for
12716 Motorola 68HC11/68HC12 downloads.
12718 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12720 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12723 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12726 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12729 2011-01-28 Ahmad Sharif <asharif@google.com>
12731 * value-prof.c (check_counter): Corrected error message.
12733 2011-01-29 Jie Zhang <jie@codesourcery.com>
12735 * config/arm/arm.c (arm_legitimize_reload_address): New.
12736 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12737 arm_legitimize_reload_address.
12738 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12740 2011-01-28 Ian Lance Taylor <iant@google.com>
12742 * godump.c (go_define): Ignore macros whose definitions include
12743 two adjacent operands.
12745 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12748 * varasm.c (force_const_mem): Store copy of x in desc->constant
12749 instead of x itself.
12750 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12751 itself into REG_EQUAL note.
12753 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12755 * config/freebsd.opt (posix, rdynamic): New Driver options.
12757 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12759 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12760 -Bstatic/-Bdynamic.
12761 * configure: Regenerate.
12763 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12765 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12766 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12768 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12770 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12771 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12772 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12773 (s390_preferred_reload_class): Make static. Change return and
12774 'rclass' argument type to reg_class_t.
12776 2011-01-27 Jan Hubicka <jh@suse.cz>
12778 PR middle-end/46949
12779 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12780 (process_function_and_variable_attributes): Check defined weakrefs.
12782 2011-01-27 Martin Jambor <mjambor@suse.cz>
12784 PR tree-optimization/47228
12785 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12786 build_ref_for_offset.
12788 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12790 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12792 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12794 PR rtl-optimization/46856
12795 * postreload.c (reload_combine_recognize_const_pattern): Do not
12796 separate cc0 setter and user on cc0 targets.
12798 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12801 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12802 passed a VOID_TYPE expression, immediately emit an error and
12803 return error_mark_node.
12805 2011-01-26 Jeff Law <law@redhat.com>
12807 PR rtl-optimization/47464
12808 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12809 rather than may_trap_p as needed.
12811 2011-01-26 DJ Delorie <dj@redhat.com>
12813 PR rtl-optimization/46878
12814 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12815 setter/user dependency as well.
12817 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12819 PR rtl-optimization/44469
12820 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12821 after removing trivially dead basic blocks.
12823 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12825 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12826 * config/frv/frv.h (LINK_SPEC): Likewise.
12827 * config/i386/netware.h (LINK_SPEC): Likewise.
12828 * config/m68k/linux.h (ASM_SPEC): Likewise.
12829 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12830 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12831 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12832 * config/sparc/linux.h (ASM_SPEC): Likewise.
12833 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12834 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12836 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12838 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12839 * config/frv/frv.h (ASM_SPEC): Likewise.
12840 * config/m68k/linux.h (ASM_SPEC): Likewise.
12841 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12842 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12843 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12844 * config/sparc/linux.h (ASM_SPEC): Likewise.
12845 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12846 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12848 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12850 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12851 * config/frv/frv.h (LINK_SPEC): Likewise.
12852 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12854 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12856 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12857 * config/frv/frv.h (ASM_SPEC): Likewise.
12858 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12859 * config/m68k/linux.h (ASM_SPEC): Likewise.
12860 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12861 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12862 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12863 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12864 * config/sparc/linux.h (ASM_SPEC): Likewise.
12865 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12866 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12867 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12869 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12872 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12874 (vec_extract_evenodd_help): Ditto.
12875 (vec_extract_evenv4hi): Ditto.
12876 (vec_extract_oddv4hi): Ditto.
12877 (vec_interleave_lowv2si): Ditto.
12878 (vec_interleave_highv2si): Ditto.
12879 (vec_extract_evenv2si): Ditto.
12880 (vec_extract_oddv2si: Ditto.
12881 (vec_pack_trunc_v2si): Ditto.
12883 2011-01-22 Jan Hubicka <jh@suse.cz>
12886 * cgraph.h (cgraph_local_info): New field can_change_signature.
12887 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12888 signature can change.
12889 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12891 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12892 (cgraph_function_versioning): We can not change signature of functions
12893 that don't allow that.
12894 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12895 (lto_input_node): Likewise.
12896 * ipa-inline.c (compute_inline_parameters): Compute
12897 local.can_change_signature.
12898 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12899 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12900 functions that can not change signature.
12901 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12902 init_cumulative_args): Do not use local calling conventions
12903 for functions that can not change signature.
12905 2011-01-22 Jan Hubicka <jh@suse.cz>
12907 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12909 2011-01-26 Richard Guenther <rguenther@suse.de>
12911 PR tree-optimization/47190
12912 * cgraphunit.c (process_common_attributes): New function.
12913 (process_function_and_variable_attributes): Use it.
12915 2011-01-26 Richard Guenther <rguenther@suse.de>
12918 * cgraphbuild.c (record_eh_tables): Record reference to personality
12921 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12924 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12925 non-debug insns from moving up.
12927 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12930 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12931 t-dlldir{,-x} fragment for build and add it to tmake_file.
12932 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12933 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12934 * config/i386/t-dlldir: New file.
12935 (SHLIB_DLLDIR): Define.
12936 * config/i386/t-dlldir-x: New file.
12937 (SHLIB_DLLDIR): Define.
12938 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12939 (SHLIB_INSTALL): Use it.
12941 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12944 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12945 lower bound of the allowed Thumb-2 coprocessor load/store
12946 index range to -256. Add explaining comment.
12948 2011-01-25 Ian Lance Taylor <iant@google.com>
12950 * godump.c (go_define): Improve lexing of macro expansion to only
12951 accept expressions which match Go spec.
12953 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12956 * tree.c (handle_dll_attribute): Handle it.
12957 * doc/extend.texi (@item dllexport): Mention it.
12958 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12960 2011-01-25 Ian Lance Taylor <iant@google.com>
12962 PR tree-optimization/26854
12963 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12964 (decl_jump_unsafe): Move higher in file, with no other change.
12965 (bind): Set has_jump_unsafe_decl if appropriate.
12966 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12967 (check_earlier_gotos): Likewise.
12968 (c_check_switch_jump_warnings): Likewise.
12970 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12972 * doc/invoke.texi (Warning Options): Add missing hyphen.
12973 (-fprofile-dir): Minor grammatical fixes.
12974 (-fbranch-probabilities): Likewise.
12976 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12980 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12982 (no_real_insns_p, schedule_block, set_priorities): Drop special
12983 treatment of boundary debug insns.
12984 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12985 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12986 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12987 (BOUNDARY_DEBUG_INSN_P): Likewise.
12988 (SCHEDULE_DEBUG_INSN_P): Likewise.
12989 * sched-rgn.c (init_ready_list): Drop special treatment of
12990 boundary debug insns.
12991 * final.c (rest_of_clean-state): Clear notes' BB.
12993 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12995 * Makefile.in (LAMBDA_H): Removed.
12996 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12997 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12998 lambda-trans.o, and tree-loop-linear.o.
12999 (lto-symtab.o): Remove dependence on LAMBDA_H.
13000 (tree-loop-linear.o): Remove rule.
13001 (lambda-mat.o): Same.
13002 (lambda-trans.o): Same.
13003 (lambda-code.o): Same.
13004 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13005 (tree-vect-slp.o): Same.
13006 * hwint.h (gcd): Moved here.
13007 (least_common_multiple): Same.
13008 * lambda-code.c: Removed.
13009 * lambda-mat.c: Removed.
13010 * lambda-trans.c: Removed.
13011 * lambda.h: Removed.
13012 * tree-loop-linear.c: Removed.
13013 * lto-symtab.c: Do not include lambda.h.
13014 * omega.c (gcd): Removed.
13015 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13016 * tree-data-ref.c (print_lambda_vector): Moved here.
13017 (lambda_vector_copy): Same.
13018 (lambda_matrix_copy): Same.
13019 (lambda_matrix_id): Same.
13020 (lambda_vector_first_nz): Same.
13021 (lambda_matrix_row_add): Same.
13022 (lambda_matrix_row_exchange): Same.
13023 (lambda_vector_mult_const): Same.
13024 (lambda_vector_negate): Same.
13025 (lambda_matrix_row_negate): Same.
13026 (lambda_vector_equal): Same.
13027 (lambda_matrix_right_hermite): Same.
13028 * tree-data-ref.h: Do not include lambda.h.
13029 (lambda_vector): Moved here.
13030 (lambda_matrix): Same.
13031 (dependence_level): Same.
13032 (lambda_transform_legal_p): Removed declaration.
13033 (lambda_collect_parameters): Same.
13034 (lambda_compute_access_matrices): Same.
13035 (lambda_vector_gcd): Same.
13036 (lambda_vector_new): Same.
13037 (lambda_vector_clear): Same.
13038 (lambda_vector_lexico_pos): Same.
13039 (lambda_vector_zerop): Same.
13040 (lambda_matrix_new): Same.
13041 * tree-flow.h (least_common_multiple): Removed declaration.
13042 * tree-parloops.c (lambda_trans_matrix): Moved here.
13043 (LTM_MATRIX): Same.
13044 (LTM_ROWSIZE): Same.
13045 (LTM_COLSIZE): Same.
13046 (LTM_DENOMINATOR): Same.
13047 (lambda_trans_matrix_new): Same.
13048 (lambda_matrix_vector_mult): Same.
13049 (lambda_transform_legal_p): Same.
13050 * tree-pass.h (pass_linear_transform): Removed declaration.
13051 * tree-ssa-loop.c (tree_linear_transform): Removed.
13052 (gate_tree_linear_transform): Removed.
13053 (pass_linear_transform): Removed.
13054 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13055 flag_loop_interchange.
13057 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13059 PR tree-optimization/47265
13060 PR tree-optimization/47443
13061 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13062 if name still has some uses.
13064 2011-01-25 Martin Jambor <mjambor@suse.cz>
13066 PR tree-optimization/47382
13067 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13068 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13070 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13072 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13073 sjlj_except_unwind_info.
13075 2011-01-25 Richard Guenther <rguenther@suse.de>
13077 PR tree-optimization/47426
13078 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13079 visible functions results escape.
13081 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13084 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13085 (arm_get_frame_offsets): Use it.
13087 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13088 Jakub Jelinek <jakub@redhat.com>
13090 PR tree-optimization/47271
13091 * tree-if-conv.c (bb_postdominates_preds): New.
13092 (if_convertible_bb_p): Call bb_postdominates_preds.
13093 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13094 (predicate_scalar_phi): Call bb_postdominates_preds.
13096 2011-01-25 Nick Clifton <nickc@redhat.com>
13098 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13099 * config/rx/rx.c (rx_function_value): Likewise.
13100 (rx_promote_function_mode): Likewise.
13101 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13102 in order to make it legitimate.
13103 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13104 make sure that the first operand is the same as the result register.
13105 (addsi3_unspec): Delete.
13106 (subdi3): Do not accept immediate operands.
13107 (subdi3_internal): Likewise.
13109 2011-01-25 Jeff Law <law@redhat.com>
13111 PR rtl-optimization/37273
13112 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13113 handle them like argument loads from stack slots. Do not double
13114 count memory for memory constants and argument loads from stack slots.
13116 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13118 PR tree-optimization/47427
13119 PR tree-optimization/47428
13120 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13121 coalesce if the new root var would be TREE_READONLY.
13123 2011-01-25 Richard Guenther <rguenther@suse.de>
13125 PR middle-end/47414
13126 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13127 correct type for TBAA.
13129 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13131 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13132 (close_phi_written_to_memory): Call for_each_index with
13133 dr_indices_valid_in_loop.
13135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13137 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13138 when it is initialized.
13140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13142 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13143 call to graphite_find_data_references_in_stmt.
13144 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13145 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13146 call to graphite_find_data_references_in_stmt.
13147 (analyze_drs_in_stmts): Same.
13148 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13149 in which the scalar analysis of indices is performed.
13150 (create_data_ref): Same. Update call to dr_analyze_indices.
13151 (find_data_references_in_stmt): Update call to create_data_ref.
13152 (graphite_find_data_references_in_stmt): Same.
13153 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13155 (create_data_ref): Same.
13156 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13157 call to create_data_ref.
13159 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13161 * graphite-sese-to-poly.c (build_poly_scop): Move
13162 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13164 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13166 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13167 VAR_DECL, PARM_DECL, and RESULT_DECL.
13169 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13171 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13172 in a reduction PBB.
13173 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13174 that have already been marked as PBB_IS_REDUCTION.
13176 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13178 * graphite-scop-detection.c (same_close_phi_node): New.
13179 (remove_duplicate_close_phi): New.
13180 (make_close_phi_nodes_unique): New.
13181 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13183 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13185 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13186 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13187 of both data references to be the same.
13189 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13191 * graphite-dependences.c (build_lexicographical_constraint): Remove
13192 the gdim parameter.
13193 (build_lexicographical_constraint): Adjust call to
13194 ppl_powerset_is_empty.
13195 (dependence_polyhedron): Same.
13196 (graphite_legal_transform_dr): Same.
13197 (graphite_carried_dependence_level_k): Same.
13198 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13200 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13202 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13204 * graphite-sese-to-poly.c
13205 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13206 (close_phi_written_to_memory): New.
13207 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13212 * doc/install.texi: Update the expected version number of PPL to 0.11.
13213 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13214 #if PPL_VERSION_MINOR < 11.
13216 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13218 * graphite-dependences.c: Include graphite-cloog-util.h.
13219 (new_poly_ddr): Inlined into dependence_polyhedron.
13220 (free_poly_ddr): Moved close by new_poly_ddr.
13221 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13222 Early return NULL when ppl_powerset_is_empty returns true.
13223 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13224 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13225 (graphite_legal_transform_dr): Call new_poly_ddr.
13226 (graphite_carried_dependence_level_k): Same.
13227 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13228 (dot_transformed_deps_stmt_1): Removed.
13229 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13230 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13231 (dot_deps_1): Call dot_deps_2.
13232 * Makefile.in (graphite-dependences.o): Add missing dependence on
13233 graphite-cloog-util.h.
13235 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13237 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13238 (build_lexicographical_constraint): Same.
13239 (dependence_polyhedron_1): Same.
13240 (graphite_legal_transform_dr): Same.
13241 (graphite_carried_dependence_level_k): Same.
13242 * graphite-ppl.c (ppl_powerset_is_empty): New.
13243 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13244 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13246 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13248 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13249 the "a followed by b" relation and document it.
13251 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13253 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13254 iteration when the bag of constraints is empty.
13256 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13258 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13260 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13262 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13263 nest and two loop depths as parameters.
13264 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13265 lst_perfect_nestify.
13267 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13269 * graphite-dependences.c (print_pddr): Call
13270 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13272 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13274 * graphite-ppl.c (debug_gmp_value): New.
13275 * graphite-ppl.h (debug_gmp_value): Declared.
13277 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13279 * doc/install.texi: Document availability of cloog-0.16.
13281 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13283 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13284 invalid postdominance info.
13286 2011-01-24 Jan Hubicka <jh@suse.cz>
13289 * doc/extend.texi (weak pragma): Drop claim that it must
13290 appear before definition.
13291 * varasm.c (merge_weak, declare_weak): Only sanity check
13292 that DECL is not output at a time it is declared weak.
13294 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13296 * machmode.def: Fixed comments.
13298 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13300 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13302 2011-01-24 Paul Koning <ni1d@arrl.net>
13304 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13307 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13310 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13311 (block_info): Add scanned and prev.
13312 (move_or_delete_vzeroupper_2): Return if the basic block
13313 has been scanned and the upper 128bit state is unchanged
13314 from the last scan.
13315 (move_or_delete_vzeroupper_1): Return true if the exit
13317 (move_or_delete_vzeroupper): Visit basic blocks using the
13318 work-list based algorithm based on vt_find_locations in
13321 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13323 2011-01-24 Nick Clifton <nickc@redhat.com>
13325 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13326 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13327 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13328 then define __v850e1__.
13329 * doc/invoke.texi: Document -mv850es.
13331 2011-01-24 Richard Henderson <rth@redhat.com>
13333 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13334 compound unordered comparisons.
13335 * config/rx/rx.c (rx_split_fp_compare): Remove.
13336 * config/rx/rx-protos.h: Update.
13337 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13338 (cbranchsf4): Don't call rx_split_fp_compare.
13339 (*cbranchsf4): Use rx_split_cbranch.
13340 (*cmpsf): Don't accept "i" constraint.
13341 (*conditional_branch): Only valid after reload.
13342 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13344 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13347 * config/rs6000/altivec.md (vector constant splitters): Add
13348 support for creating vector single precision constants if -mvsx is
13349 used and we would create the constant using Altivec primitives.
13351 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13352 Richard Sandiford <rdsandiford@googlemail.com>
13354 PR rtl-optimization/47166
13355 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13356 mechanism for PRE_MODIFY and POST_MODIFY.
13357 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13360 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13362 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13364 2011-01-22 Jan Hubicka <jh@suse.cz>
13367 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13369 2011-01-22 Jan Hubicka <jh@suse.cz>
13371 PR tree-optimization/43884
13373 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13374 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13376 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13378 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13379 * config/s390/s390.c (s390_register_move_cost,
13380 s390_memory_move_cost): New.
13381 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13383 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13385 PR middle-end/47401
13386 * except.c (sjlj_assign_call_site_values): Move setting the
13387 crtl->uses_eh_lsda flag to ...
13388 (sjlj_mark_call_sites): ... here.
13389 (sjlj_emit_function_enter): Support NULL dispatch label.
13390 (sjlj_build_landing_pads): In a function with no landing pads
13391 that still has must-not-throw regions, generate code to register
13392 a personality function with empty LSDA.
13394 2011-01-21 Richard Henderson <rth@redhat.com>
13396 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13398 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13400 * compare-elim.c: New file.
13401 * Makefile.in (OBJS-common): Add it.
13402 (compare-elim.o): New.
13403 * common.opt (fcompare-elim): New.
13404 * opts.c (default_options_table): Add OPT_fcompare_elim.
13405 * tree-pass.h (pass_compare_elim_after_reload): New.
13406 * passes.c (init_optimization_passes): Add it.
13407 * recog.h: Protect against re-inclusion.
13408 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13409 * doc/invoke.texi (-fcompare-elim): Document it.
13410 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13411 * doc/tm.texi: Rebuild.
13413 2011-01-22 Nick Clifton <nickc@redhat.com>
13415 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13416 rx_split_fp_compare.
13418 2011-01-22 Nick Clifton <nickc@redhat.com>
13420 * config/rx/rx.md (UNSPEC_CONST): New.
13421 (deallocate_and_return): Wrap the amount popped off the stack in
13422 an UNSPEC_CONST in order to stop it being rejected by
13423 -mmax-constant-size.
13424 (pop_and_return): Add a "(return)" rtx.
13425 (call): Drop the immediate operand.
13426 (call_internal): Likewise.
13427 (call_value): Likewise.
13428 (call_value_internal): Likewise.
13429 (sibcall_internal): Likewise.
13430 (sibcall_value_internal): Likewise.
13431 (sibcall): Likewise. Generate an explicit call using
13433 (sibcall_value): Likewise.
13434 (mov<>): FAIL if a constant operand is not legitimate.
13435 (addsi3_unpsec): New pattern.
13437 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13438 (ok_for_max_constant): New function.
13439 (gen_safe_add): New function.
13440 (rx_expand_prologue): Use gen_safe_add.
13441 (rx_expand_epilogue): Likewise.
13442 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13445 2011-01-21 Jeff Law <law@redhat.com>
13447 PR tree-optimization/47053
13448 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13449 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13450 statements are deleted.
13451 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13452 is nonempty, then purge dead edges and cleanup the CFG.
13454 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13457 Temporarily revert:
13458 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13460 * tree-dfa.c (create_var_ann): Mark variable as used.
13462 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13464 PR middle-end/45566
13465 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13466 notes from other section in hot/cold partitioning even if
13467 last_action is -3. Increment call_site_base.
13469 PR rtl-optimization/47366
13470 * fwprop.c (forward_propagate_into): Return bool. If
13471 any changes are made, -fnon-call-exceptions is used and
13472 REG_EH_REGION note is present, call purge_dead_edges
13473 and return true if it purged anything.
13474 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13475 any EH edges were purged.
13477 2011-01-21 Jeff Law <law@redhat.com>
13479 PR rtl-optimization/41619
13480 * caller-save.c (setup_save_areas): Break out code to determine
13481 which hard regs are live across calls by examining the reload chains
13482 so that it is always used.
13483 Eliminate code which checked REG_N_CALLS_CROSSED.
13485 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13487 PR tree-optimization/47355
13488 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13489 NOP has non-debug uses beyond PHIs in new_bb.
13491 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13494 * cfgexpand.c (account_used_vars_for_block): Only account vars
13495 that are annotated as used.
13496 (estimated_stack_frame_size): Don't set TREE_USED.
13497 * tree-dfa.c (create_var_ann): Mark variable as used.
13499 2011-01-21 Richard Guenther <rguenther@suse.de>
13501 PR middle-end/47395
13502 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13504 2011-01-21 Richard Guenther <rguenther@suse.de>
13506 PR tree-optimization/47365
13507 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13508 (vn_reference_lookup_pieces): Adjust.
13509 (vn_reference_lookup): Likewise.
13510 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13511 (vn_reference_lookup_3): Only look through kills if in
13512 VN_WALKREWRITE mode.
13513 (vn_reference_lookup_pieces): Adjust.
13514 (vn_reference_lookup): Likewise.
13515 (visit_reference_op_load): Likewise.
13516 (visit_reference_op_store): Likewise.
13517 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13518 (compute_avail): Likewise.
13519 (eliminate): Likewise.
13521 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13523 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13524 DECL_IGNORED_P non-reg vars if they are used.
13526 PR tree-optimization/47391
13527 * varpool.c (const_value_known_p): Return false if
13530 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13533 * config/i386/i386.c (ix86_local_alignment): Handle
13534 case for va_list_type_node is nil.
13535 (ix86_canonical_va_list_type): Likewise.
13537 2011-01-21 Alan Modra <amodra@gmail.com>
13539 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13540 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13542 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13544 * config/arm/arm.md (define_attr type): Rename f_load
13545 and f_store to f_fpa_load and f_fpa_store. Update.
13546 (write_conflict): Deal with rename fallout.
13547 (*push_fp_multi): Likewise.
13548 * config/arm/fpa.md (f_load): Use f_fpa_load.
13549 (f_store): Use f_fpa_store.
13550 (*movsf_fpa): Likewise.
13551 (*movdf_fpa): Likewise.
13552 (*movxf_fpa): Likewise.
13553 (*thumb2_movsf_fpa): Likewise.
13554 (*thumb2_movdf_fpa): Likewise.
13555 (*thumb2_movxf_fpa): Likewise.
13556 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13557 f_loadd and f_stored.
13558 (*thumb2_movdi_vfp): Likewise.
13559 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13560 (*thumb2_movsi_vfp): Likewise.
13561 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13562 Use f_loads instead of f_load.
13563 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13565 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13567 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13568 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13569 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13570 (xtensa_mode_dependent_address_p): New function.
13571 (constantpool_address_p): Make static. Change return type to bool.
13572 Change argument type to const_rtx. Use CONST_INT_P predicate.
13574 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13577 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13579 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13582 * cfgexpand.c (expand_debug_expr): Instead of generating
13583 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13586 2011-01-20 Richard Guenther <rguenther@suse.de>
13588 PR middle-end/47370
13589 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13590 the pointer operand of MEM_REFs.
13592 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13594 PR tree-optimization/46130
13595 * ipa-split.c (consider_split): If return_bb contains non-virtual
13596 PHIs other than for retval or if split_function would not adjust it,
13599 2011-01-20 Richard Guenther <rguenther@suse.de>
13601 PR tree-optimization/47167
13602 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13603 Revert previous change, only avoid enumeral type changes.
13605 2011-01-19 Mike Stump <mikestump@comcast.net>
13607 * doc/tm.texi.in (BRANCH_COST): Englishify.
13608 * doc/tm.texi (BRANCH_COST): Likewise.
13610 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13613 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13614 (gen_scheduled_generic_parms_dies): New functions.
13615 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13616 generation for the end of CU compilation.
13617 (dwarf2out_finish): Generate template parameters DIEs here.
13619 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13622 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13623 debug bind stmt on merge edges.
13625 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13629 * function.c (instantiate_expr): Instantiate incoming rtl of
13630 implicit arguments, and recurse on VALUE_EXPRs.
13631 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13632 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13634 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13636 * c-parser.c (c_parser_for_statement): Initialize
13637 collection_expression.
13639 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13641 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13643 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13645 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13646 (LINK_SHLIB_SPEC): Don't use %(link_path).
13647 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13649 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13651 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13652 (NO_SHARED_LIB_SUPPORT): Remove.
13653 (LINK_SHLIB_SPEC): Remove one conditional definition.
13655 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13657 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13659 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13660 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13661 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13662 %{call_shared} and conditionals on these options not being passed.
13663 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13666 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13668 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13671 * ipa-split.c: Spelling fixes.
13673 2011-01-19 Richard Henderson <rth@redhat.com>
13675 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13676 (*mulsi3): Likewise.
13678 * longlong.h [__mn10300__] (count_leading_zeros): New.
13679 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13680 [__mn10300__] (add_ssaaaa, subddmmss): New.
13681 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13682 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13684 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13686 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13688 2011-01-19 Richard Henderson <rth@redhat.com>
13690 * config/mn10300/mn10300.md (addsi3_flags): New.
13691 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13692 (subsi3_flags, subc_internal, subdi3): New.
13693 (subdi3_internal, *subdi3_degenerate): New.
13694 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13696 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13697 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13698 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13699 * config/mn10300/mn10300-protos.h: Update.
13700 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13701 (return_ret): Likewise. Rename from return_internal_regs.
13702 (return_internal): Remove.
13704 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13705 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13706 (mn10300_legitimate_constant_p): Likewise.
13707 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13708 (mn10300_frame_size): New.
13709 (mn10300_expand_prologue): Use it.
13710 (mn10300_expand_epilogue): Likewise.
13711 (mn10300_initial_offset): Likewise.
13712 * config/mn10300/mn10300-protos.h: Update.
13713 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13714 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13715 (prologue, epilogue, return_internal): Tidy output code.
13716 (mn10300_store_multiple_operation, return): Likewise.
13717 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13718 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13719 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13720 (load_pic, am33_load_pic): New.
13721 (mn10300_load_pic0, mn10300_load_pic1): New.
13723 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13724 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13725 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13726 (cc_flags_for_mode, cc_flags_for_code): New.
13727 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13728 overflow flag is not valid. Validate that the flags we need
13729 for the comparison are valid.
13730 (mn10300_output_cmp): Remove.
13731 (mn10300_output_add): New.
13732 (mn10300_select_cc_mode): Use cc_flags_for_code.
13733 (mn10300_split_cbranch): New.
13734 (mn10300_match_ccmode): New.
13735 (mn10300_split_and_operand_count): New.
13736 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13738 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13739 (addsi3): ... here. Use mn10300_output_add.
13740 (*addsi3_flags): New.
13741 (*am33_subsi3, *mn10300_subsi3): Merge...
13742 (subsi3): ... here. Use attribute isa.
13743 (*subsi3_flags): New.
13744 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13746 (*am33_andsi3, *mn10300_andsi3): Merge...
13747 (andsi3): ... here.
13748 (*andsi3_flags): New.
13749 (andsi3 splitters): New.
13750 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13751 (iorsi3): ... here.
13752 (*iorsi3_flags): New.
13753 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13754 (xorsi3): ... here.
13755 (*xorsi3_flags): New.
13756 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13757 (one_cmplsi2): ... here.
13758 (*one_cmplsi2_flags): New.
13759 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13760 instead of "dax" in constraints. Use mn10300_split_cbranch.
13761 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13762 use matching constraints to eliminate a self-comparison.
13763 (*integer_conditional_branch): Rename from integer_conditional_branch.
13764 Use int_mode_flags to match CC_REG.
13765 (*cbranchsi4_btst, *btstsi): New.
13766 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13767 mn10300_split_cbranch.
13768 (*am33_cmpsf): Rename from am33_cmpsf.
13769 (*float_conditional_branch): Rename from float_conditional_branch.
13770 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13771 (zero_extendqisi2): ... here.
13772 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13773 (zero_extendhisi2): ... here.
13774 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13775 (extendqisi2): ... here.
13776 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13777 (extendhisi2): ... here.
13778 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13779 (ashlsi3): ... here.
13780 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13781 (lshrsi3): ... here.
13782 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13783 (ashrsi3): ... here.
13784 (consecutive add peephole): Remove.
13785 * config/mn10300/predicates.md (label_ref_operand): New.
13786 (int_mode_flags): New.
13787 (CCZN_comparison_operator): New.
13789 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13790 (throughput_42_latency_43): New reservation.
13791 (mulsidi3, umulsidi3): New expanders.
13792 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13793 the MDR register to allocation; separately allocate the low and
13794 high parts of the DImode result.
13795 (umulsidi3_internal): Similarly.
13796 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13797 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13798 (udivsi3, umodsi3): Remove.
13799 (udivmodsi4, divmodsi4): New expanders.
13800 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13801 (*divmodsi4): Simiarly.
13802 (ext_internal): New.
13804 * config/mn10300/constraints.md ("z"): New constraint.
13805 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13806 (FIXED_REGISTERS): Don't fix MDR.
13807 (CALL_USED_REGSITERS): Reformat nicely.
13808 (REG_ALLOC_ORDER): Add MDR.
13809 (enum regclass): Add MDR_REGS.
13810 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13811 (IRA_COVER_CLASSES): Add MDR_REGS.
13812 (REGNO_REG_CLASS): Handle MDR_REG.
13813 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13814 (mn10300_register_move_cost): Likewise.
13815 * config/mn10300/mn10300.md (MDR_REG): New.
13816 (*movsi_internal): Handle moves to/from MDR_REGS.
13818 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13820 (mn10300_secondary_reload): Tidy combination reload classes.
13821 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13822 addresses for AM33. Allow symbolic offsets for reg+imm.
13823 (mn10300_regno_in_class_p): New.
13824 (mn10300_legitimize_reload_address): New.
13825 * config/mn10300/mn10300.h (enum reg_class): Remove
13826 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13827 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13828 SP_OR_GENERAL_REGS.
13829 (REG_CLASS_NAMES): Update to match.
13830 (REG_CLASS_CONTENTS): Likewise.
13831 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13832 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13833 (REGNO_IN_RANGE_P): Remove.
13834 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13835 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13836 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13837 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13838 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13839 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13840 (REGNO_GENERAL_P): New.
13841 (HAVE_POST_MODIFY_DISP): New.
13842 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13843 (LEGITIMIZE_RELOAD_ADDRESS): New.
13844 * config/mn10300/mn10300-protos.h: Update.
13846 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13847 DATA_REGS for AM33 stack-pointer destination.
13848 (mn10300_preferred_output_reload_class): Likewise.
13849 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13850 into a form appropriate for ...
13851 (TARGET_SECONDARY_RELOAD): New.
13852 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13853 * config/mn10300/mn10300-protos.h: Update.
13854 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13855 reload_insi; use the "A" constraint for the scratch; handle AM33
13856 moves of sp to non-address registers.
13858 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13859 (*movqi_internal): ... here.
13860 (*am33_movhi, *mn10300_movhi): Merge into...
13861 (*movhi_internal): ... here.
13862 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13863 as the source/destination of moves from/to SP.
13864 (movsf): Only allow for AM33-2.
13865 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13866 any integer constant constraint. Only allow for AM33-2. Tidy
13867 all of the alternative outputs.
13868 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13869 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13871 (udivsi3, umodsi3): New patterns for MN103 only.
13873 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13875 * doc/tm.texi.in: Spell out that a lack of register class unions
13877 * doc/tm.texi: Regenerate.
13879 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13881 PR rtl-optimization/47337
13882 * dce.c (check_argument_store): New function.
13883 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13885 PR tree-optimization/47290
13886 * tree-eh.c (infinite_empty_loop_p): New function.
13887 (cleanup_empty_eh): Use it.
13889 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13892 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13893 (a64_expand_widen_sum): Ditto.
13894 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13895 (vec_extract_evenodd_help): Ditto.
13896 (vec_extract_evenv4hi): Ditto.
13897 (vec_extract_oddv4hi): Ditto.
13898 (vec_extract_evenv2si): Ditto.
13899 (vec_extract_oddv2si): Ditto.
13900 (vec_extract_evenv2sf): Ditto.
13901 (vec_extract_oddv2sf): Ditto.
13902 (vec_pack_trunc_v4hi: Ditto.
13903 (vec_pack_trunc_v2si): Ditto.
13904 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13905 (vec_interleave_highv8qi): Ditto.
13907 (vec_extract_oddv8qi): Ditto.
13908 (vec_interleave_lowv4hi): Ditto.
13909 (vec_interleave_highv4hi): Ditto.
13910 (vec_interleave_lowv2si): Ditto.
13911 (vec_interleave_highv2si): Ditto.
13913 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13915 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13916 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13917 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13918 (pa_c_mode_for_suffix): New.
13919 (TARGET_EXPAND_BUILTIN): Define.
13920 (TARGET_C_MODE_FOR_SUFFIX): Define.
13921 (pa_builtins): Define.
13922 (pa_init_builtins): Register __float128 type and init new support
13924 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13925 * config/pa/quadlib.c (_U_Qfcopysign): New.
13927 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13929 PR middle-end/46894
13930 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13931 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13934 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13936 PR tree-optimization/47179
13937 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13938 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13940 2011-01-18 Richard Guenther <rguenther@suse.de>
13942 PR rtl-optimization/47216
13943 * emit-rtl.c: Include tree-flow.h.
13944 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13945 of replicating it with different semantics.
13946 * Makefile.in (emit-rtl.o): Adjust.
13948 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13950 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13951 (cortex_a9_dp): Handle neon types correctly.
13953 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13955 PR rtl-optimization/47299
13956 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13957 subtarget. Use normal multiplication if both operands are constants.
13958 * expmed.c (expand_widening_mult): Don't try to optimize constant
13959 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13962 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13964 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13965 spacing after 'e.g.', typos, comma, hyphenation.
13967 2011-01-17 Richard Henderson <rth@redhat.com>
13969 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13970 (rx_restricted_mem_operand): New.
13971 (rx_shift_operand): Use register_operand.
13972 (rx_source_operand, rx_compare_operand): Likewise.
13973 * config/rx/rx.md (addsi3_flags): New expander.
13974 (adddi3): Rewrite as expander.
13975 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13976 (subsi3_flags): New expander.
13977 (subdi3): Rewrite as expander.
13978 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13980 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13981 (rx_init_builtins): Remove sat builtin.
13982 (rx_expand_builtin): Likewise.
13983 * config/rx/rx.md (ssaddsi3): New.
13984 (*sat): Rename from sat. Represent the CC_REG input.
13986 * config/rx/predicates.md (rshift_operator): New.
13987 * config/rx/rx.c (rx_expand_insv): Remove.
13988 * config/rx/rx-protos.h: Update.
13989 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13990 operand to the canonical position.
13991 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13992 (*bitclr, *bitclr_in_memory): Similarly.
13993 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13994 (insv): Retain the zero_extract in the expansion.
13996 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13997 (bswaphi2, bitinvert, revw): Likewise.
13999 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14000 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14001 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14002 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14003 (bitset, bitset_in_memory): Likewise.
14004 (bitinvert, bitinvert_in_memory): Likewise.
14005 (bitclr, bitclr_in_memory): Likewise.
14006 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14007 (rx_strend, rx_cmpstrn): Likewise.
14008 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14009 (bitop peep2 patterns): Remove.
14011 * config/rx/rx.c (rx_match_ccmode): New.
14012 * config/rx/rx-protos.h: Update.
14013 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14014 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14015 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14016 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14017 (fix_truncsfsi2, floatsisf2): Likewise.
14018 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14019 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14020 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14021 (*subsi3_flags, *xorsi3_flags): New.
14023 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14025 * config/rx/rx.c (rx_print_operand): Remove workaround for
14026 unsplit comparison operations.
14028 * config/rx/rx.md (movsicc): Split after reload.
14029 (*movsicc): Merge *movsieq and *movsine via match_operator.
14030 (*stcc): New pattern.
14032 * config/rx/rx.c (rx_float_compare_mode): Remove.
14033 * config/rx/rx.h (rx_float_compare_mode): Remove.
14034 * config/rx/rx.md (cstoresi4): Split after reload.
14035 (*sccc): New pattern.
14037 * config/rx/predicates.md (label_ref_operand): New.
14038 (rx_z_comparison_operator): New.
14039 (rx_zs_comparison_operator): New.
14040 (rx_fp_comparison_operator): New.
14041 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14042 Validate that the flags are set properly for the comparison.
14043 (rx_gen_cond_branch_template): Remove.
14044 (rx_cc_modes_compatible): Remove.
14045 (mode_from_flags): New.
14046 (flags_from_code): Rename from flags_needed_for_conditional.
14047 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14048 (rx_select_cc_mode): Likewise.
14049 (rx_split_fp_compare): New.
14050 (rx_split_cbranch): New.
14051 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14052 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14053 (*cbranchsf4): Similarly.
14054 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14055 match_operator and rx_split_cbranch.
14056 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14057 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14058 (*cmpsi): Rename from cmpsi.
14059 (*tstsi): Rename from tstsi.
14060 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14061 (*conditional_branch): Rename from conditional_branch.
14062 (*reveresed_conditional_branch): Remove.
14063 (b<code>): Remove expander.
14064 * config/rx/rx-protos.h: Update.
14066 * config/rx/rx.c (rx_compare_redundant): Remove.
14067 * config/rx/rx.md (cmpsi): Don't use it.
14068 * config/rx/rx-protos.h: Update.
14070 * config/rx/rx-modes.def (CC_F): New mode.
14071 * config/rx/rx.c (rx_select_cc_mode): New.
14072 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14073 * config/rx/rx-protos.h: Update.
14075 2011-01-17 Richard Henderson <rth@redhat.com>
14077 * except.c (dump_eh_tree): Fix stray ; after for statement.
14079 2011-01-17 Richard Guenther <rguenther@suse.de>
14081 PR tree-optimization/47313
14082 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14083 handling before copying the body. Properly deal with
14084 by-reference result in SSA form.
14086 2011-01-17 Ian Lance Taylor <iant@google.com>
14089 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14090 (struct_value_alias_set): Don't define.
14091 (sparc_option_override): Don't set sparc_sr_alias_set and
14092 struct_value_alias_set.
14093 (save_or_restore_regs): Use gen_frame_mem rather than calling
14095 (sparc_struct_value_rtx): Likewise.
14097 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14100 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14101 (_mm_maskstore_pd): Likewise.
14102 (_mm_maskload_ps): Likewise.
14103 (_mm_maskstore_ps): Likewise.
14104 (_mm256_maskload_pd): Change mask to __m256i.
14105 (_mm256_maskstore_pd): Likewise.
14106 (_mm256_maskload_ps): Likewise.
14107 (_mm256_maskstore_ps): Likewise.
14109 * config/i386/i386-builtin-types.def: Updated.
14110 (ix86_expand_special_args_builtin): Likewise.
14112 * config/i386/i386.c (bdesc_special_args): Update
14113 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14114 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14115 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14116 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14118 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14119 Use <avxpermvecmode> on mask register.
14120 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14122 2011-01-17 Olivier Hainque <hainque@adacore.com>
14123 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14124 Eric Botcazou <ebotcazou@adacore.com>
14127 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14128 if <= USHRT_MAX in 32-bit mode.
14130 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14132 * doc/install.texi (Configuration, Specific): Wrap long
14133 lines in examples. Allow line wrapping in long options
14134 and URLs where beneficial for PDF output.
14136 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14138 * config/mips/mips.c (mips_classify_symbol): Don't return
14139 SYMBOL_PC_RELATIVE for nonlocal labels.
14141 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14143 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14145 2011-01-15 Jan Hubicka <jh@suse.cz>
14147 PR tree-optimization/47276
14148 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14149 declarations as needed.
14151 2011-01-15 Martin Jambor <mjambor@suse.cz>
14153 * common.opt (fdevirtualize): New flag.
14154 * doc/invoke.texi (Option Summary): Document it.
14155 * opts.c (default_options_table): Add devirtualize flag.
14156 * ipa-prop.c (detect_type_change): Return immediately if
14157 devirtualize flag is not set.
14158 (detect_type_change_ssa): Likewise.
14159 (compute_known_type_jump_func): Likewise.
14160 (ipa_analyze_virtual_call_uses): Likewise.
14162 2011-01-14 Martin Jambor <mjambor@suse.cz>
14164 PR tree-optimization/45934
14165 PR tree-optimization/46302
14166 * ipa-prop.c (type_change_info): New type.
14167 (stmt_may_be_vtbl_ptr_store): New function.
14168 (check_stmt_for_type_change): Likewise.
14169 (detect_type_change): Likewise.
14170 (detect_type_change_ssa): Likewise.
14171 (compute_complex_assign_jump_func): Check for dynamic type change.
14172 (compute_complex_ancestor_jump_func): Likewise.
14173 (compute_known_type_jump_func): Likewise.
14174 (compute_scalar_jump_functions): Likewise.
14175 (ipa_analyze_virtual_call_uses): Likewise.
14176 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14178 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14180 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14181 * config/i386/i386.opt (msse5): New Alias.
14183 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14185 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14186 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14187 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14188 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14190 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14192 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14194 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14195 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14196 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14197 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14199 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14201 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14203 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14205 2011-01-14 Mike Stump <mikestump@comcast.net>
14207 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14208 * config/fr30/fr30.md: Likweise
14209 (movsi_push): Likewise.
14210 (movsi_pop): Likewise.
14211 (enter_func): Likewise.
14212 * config/moxie/moxie.md (movsi_push): Likewise.
14213 (movsi_pop): Likewise.
14215 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14217 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14218 %{no_archive} %{exact_version}.
14219 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14220 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14221 %{no_archive} %{exact_version}.
14222 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14223 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14224 * config/mips/vxworks.h: Likewise.
14226 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14228 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14230 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14232 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14233 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14235 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14237 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14240 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14242 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14244 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14245 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14247 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14248 Don't handle -shlib.
14250 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14252 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14253 (CC1_SPEC): Don't handle -profile.
14255 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14257 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14258 * config/mips/mips.h (CC1_SPEC): Likewise.
14260 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14262 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14263 * config/mips/mips.h (CC1_SPEC): Likewise.
14265 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14267 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14268 * config/m32r/linux.h (LINK_SPEC): Likewise.
14269 * config/mips/linux.h (LINK_SPEC): Likewise.
14270 * config/mips/linux64.h (LINK_SPEC): Likewise.
14271 * config/sparc/linux.h (LINK_SPEC): Likewise.
14272 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14273 LINK_SPEC): Likewise.
14274 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14276 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14278 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14280 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14282 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14284 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14285 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14287 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14289 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14291 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14293 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14294 supports -Bstatic/-Bdynamic.
14295 * configure: Regenerate.
14297 2011-01-14 Jan Hubicka <jh@suse.cz>
14298 Jack Howarth <howarth@bromo.med.uc.edu>
14301 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14302 when checking debug_info_level. Test write_symbols instead of
14303 debug_hooks->var_location when setting flag_var_tracking_uninit.
14305 2011-01-14 Richard Guenther <rguenther@suse.de>
14307 PR tree-optimization/47179
14308 * target.def (ref_may_alias_errno): New target hook.
14309 * targhooks.h (default_ref_may_alias_errno): Declare.
14310 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14311 (default_ref_may_alias_errno): New function.
14312 * target.h (struct ao_ref_s): Declare.
14313 * tree-ssa-alias.c: Include target.h.
14314 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14315 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14316 (targhooks.o): Likewise.
14317 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14318 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14320 2011-01-14 Richard Guenther <rguenther@suse.de>
14322 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14324 2011-01-14 Richard Guenther <rguenther@suse.de>
14326 PR tree-optimization/47280
14327 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14328 return CFG changes.
14329 (tree_ssa_forward_propagate_single_use_vars): Deal with
14330 CFG changes from associate_plusminus.
14332 2011-01-14 Richard Guenther <rguenther@suse.de>
14334 PR middle-end/47281
14336 2011-01-11 Richard Guenther <rguenther@suse.de>
14338 PR tree-optimization/46076
14339 * tree-ssa.c (useless_type_conversion_p): Conversions from
14340 unprototyped to empty argument list function types are useless.
14342 2011-01-14 Richard Guenther <rguenther@suse.de>
14344 PR tree-optimization/47286
14345 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14347 2011-01-14 Martin Jambor <mjambor@suse.cz>
14349 PR middle-end/46823
14350 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14352 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14354 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14355 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14356 * config/xtensa/xtensa.c (xtensa_libcall_value,
14357 xtensa_function_value_regno_p): New functions.
14358 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14360 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14363 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14365 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14366 New function prototype.
14367 * config/i386/winnt.c (i386_pe_assemble_visibility):
14368 Warn only if attribute was specified by user.
14370 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14373 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14375 (floatunsdidf2_fcfidu): Ditto.
14377 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14379 * config/s390/s390.c (print_operand_address): Replace 'error' with
14380 'output_operand_lossage'.
14381 (print_operand): Likewise.
14383 2011-01-13 Jeff Law <law@redhat.com>
14385 PR rtl-optimization/39077
14386 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14387 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14388 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14389 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14390 * gcse.c (prune_insertions_deletions): New function.
14391 (compute_pre_data): Use it.
14393 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14396 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14398 (prune_unused_types_mark): Use it.
14400 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14402 PR rtl-optimization/45352
14403 * sel-sched.c: Update copyright years.
14404 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14405 in the advancing loop when we have issued issue_rate insns.
14407 2011-01-12 Richard Henderson <rth@redhat.com>
14409 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14410 (TARGET_MD_ASM_CLOBBERS): New.
14412 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14413 (TARGET_DELEGITIMIZE_ADDRESS): New.
14415 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14416 (clzsi2, *bsch): New patterns.
14418 * config/mn10300/mn10300.md (INT): New mode iterator.
14419 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14421 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14422 flag_split_wide_types.
14424 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14425 (mn10300_trampoline_init): Rewrite without a template, an immediate
14426 load and a direct branch.
14427 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14429 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14431 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14432 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14433 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14434 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14436 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14439 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14442 2011-01-12 Jan Hubicka <jh@suse.cz>
14445 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14446 (PLUGIN_COND_CLOSE): New macro.
14447 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14449 2011-01-12 Richard Guenther <rguenther@suse.de>
14452 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14453 register variables in a MEM_REF.
14455 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14457 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14458 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14459 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14460 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14461 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14462 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14463 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14464 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14465 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14466 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14467 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14468 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14469 * config/gnu-user.h: New. Copied from linux.h.
14470 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14471 GNU_USER_TARGET_STARTFILE_SPEC.
14472 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14473 GNU_USER_TARGET_ENDFILE_SPEC.
14474 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14475 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14476 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14477 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14478 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14479 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14480 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14481 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14482 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14483 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14484 * config/arm/linux-eabi.h (CC1_SPEC): Use
14485 GNU_USER_TARGET_CC1_SPEC.
14486 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14487 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14488 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14489 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14490 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14491 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14492 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14493 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14495 2011-01-12 Richard Guenther <rguenther@suse.de>
14498 * doc/invoke.texi (ffast-math): Document it is turned on
14501 2011-01-12 Jan Hubicka <jh@suse.cz>
14503 PR tree-optimization/47233
14504 * opts.c (common_handle_option): Disable ipa-reference with profile
14507 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14509 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14512 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14514 * c-parser.c (c_lex_one_token): Updated and reindented some
14515 comments. No changes in code.
14517 2011-01-11 Ian Lance Taylor <iant@google.com>
14519 * godump.c (go_output_var): Don't output the variable if there is
14520 already a type with the same name.
14522 2011-01-11 Ian Lance Taylor <iant@google.com>
14524 * godump.c (go_format_type): Don't generate float80.
14526 2011-01-11 Richard Henderson <rth@redhat.com>
14528 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14529 declaration. Rewrite for both speed and size.
14530 (mn10300_address_cost_1): Remove.
14531 (mn10300_register_move_cost): New.
14532 (mn10300_memory_move_cost): New.
14533 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14534 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14535 extensions, shifts, BSWAP, CLZ.
14536 (mn10300_wide_const_load_uses_clr): Remove.
14537 (TARGET_REGISTER_MOVE_COST): New.
14538 (TARGET_MEMORY_MOVE_COST): New.
14539 * config/mn10300/mn10300-protos.h: Update.
14540 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14542 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14543 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14544 * config/mn10300/mn10300-protos.h: Update.
14545 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14546 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14547 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14548 (*test_int_bitfield, *test_byte_bitfield): Remove.
14549 (*bit_test, *subreg_bit_test): Remove.
14550 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14552 * config/mn10300/constraints.md ("c"): Rename from "A".
14553 ("A", "D"): New constraint letters.
14554 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14555 (fmssf4, fnmasf4, fnmssf4): Likewise.
14557 * config/mn10300/mn10300.md (isa): New attribute.
14558 (enabled): New attribute.
14560 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14561 (abssf2, negsf2): Define only for hardware fp.
14562 (sqrtsf2): Reformat.
14563 (addsf3, subsf3, mulsf3): Merge expander and insn.
14565 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14566 (DEBUGGER_AUTO_OFFSET): Remove.
14567 (DEBUGGER_ARG_OFFSET): Remove.
14569 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14570 Emit register stores with the same offsets as the hardware.
14571 (mn10300_store_multiple_operation): Don't check that the register
14572 save offsets are monotonic.
14573 * config/mn10300/mn10300-protos.h: Update.
14575 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14577 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14578 in terms of the value on the stack, not the MDR register.
14580 2011-01-11 Jan Hubicka <jh@suse.cz>
14584 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14585 (symbol_alias_set_destroy, symbol_alias_set_contains,
14586 propagate_aliases_backward): Declare.
14587 * lto-streamer-out.c (struct sets): New sturcture.
14588 (trivally_defined_alias): New function.
14589 (output_alias_pair_p): Rewrite.
14590 (output_unreferenced_globals): Fix output of alias pairs.
14591 (produce_symtab): Likewise.
14592 * ipa.c (function_and_variable_visibility): Set weak alias destination
14594 * varasm.c (symbol_alias_set_t): Remove.
14595 (symbol_alias_set_destroy): Export.
14596 (propagate_aliases_forward, propagate_aliases_backward): New functions
14598 (compute_visible_aliases): ... this one; remove.
14599 (trivially_visible_alias): New
14600 (trivially_defined_alias): New.
14601 (remove_unreachable_alias_pairs): Rewrite.
14602 (finish_aliases_1): Reorganize code checking if alias is defined.
14603 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14606 2011-01-11 Richard Guenther <rguenther@suse.de>
14608 PR tree-optimization/46076
14609 * tree-ssa.c (useless_type_conversion_p): Conversions from
14610 unprototyped to empty argument list function types are useless.
14612 2011-01-11 Richard Guenther <rguenther@suse.de>
14614 PR middle-end/45235
14615 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14616 volatile MEMs as MEM_READONLY_P.
14618 2011-01-11 Richard Guenther <rguenther@suse.de>
14620 PR tree-optimization/47239
14621 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14623 2011-01-11 Jeff Law <law@redhat.com>
14625 PR tree-optimization/47086
14626 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14627 IVs from statements that might throw.
14629 2011-01-10 Jan Hubicka <jh@suse.cz>
14632 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14634 2011-01-10 Jan Hubicka <jh@suse.cz>
14637 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14638 when correcting profile.
14640 2011-01-10 Jan Hubicka <jh@suse.cz>
14643 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14644 DECL_FINI_PRIORITY.
14645 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14646 Restore DECL_FINI_PRIORITY.
14648 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14650 * doc/gimple.texi: Fix quoting of multi-word return values in
14651 @deftypefn statements. Ensure presence of return value. Wrap
14652 overlong @deftypefn lines.
14653 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14654 descriptions of removed functions.
14655 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14656 of multi-word return value in @deftypefn statement.
14658 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14660 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14661 (Conditional Expressions, Logical Operators)
14662 (Statement and operand traversals): Do not indent smallexample
14663 code. Fix duplicate function argument in example.
14665 2011-01-10 Jeff Law <law@redhat.com>
14667 PR tree-optimization/47141
14668 * ipa-split.c (split_function): Handle case where we are
14669 returning a value and the return block has a virtual operand phi.
14671 2011-01-10 Jan Hubicka <jh@suse.cz>
14673 PR tree-optimization/47234
14674 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14675 (pass_feedback_split_functions): Declare.
14676 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14678 * ipa-split.c (gate_split_functions): Update comments; disable
14679 split-functions for profile_arc_flag and branch_probabilities.
14680 (gate_feedback_split_functions): New function.
14681 (execute_feedback_split_functions): New function.
14682 (pass_feedback_split_functions): New global var.
14684 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14687 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14688 calling gimple_call_set_cannot_inline.
14690 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14692 * config/darwin-sections.def: Remove unused section.
14694 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14697 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14699 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14702 * c-parser.c (c_parser_declaration_or_fndef): Improved
14705 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14707 * config/i386/winnt.c (i386_pe_start_function): Make sure
14708 to switch back to function's section.
14710 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14714 * plugin.c: Move include of dlfcn.h from here...
14715 * system.h: ... to here.
14717 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14719 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14721 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14722 two extra empty pages in PDF output.
14724 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14727 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14728 for error recovery purposes behave as if it was not specified so
14729 that the default type is usd.
14731 2011-01-07 Jan Hubicka <jh@suse.cz>
14733 PR tree-optmization/46469
14734 * ipa.c (function_and_variable_visibility): Clear needed flags on
14735 nodes with external decls; handle weakrefs merging correctly.
14737 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14739 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14742 2011-01-07 Jan Hubicka <jh@suse.cz>
14744 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14745 and no longer claim that gold is required for linker plugin.
14746 * configure: Regenerate.
14747 * gcc.c (PLUGIN_COND): New macro.
14748 (LINK_COMMAND_SPEC): Use it.
14749 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14750 * config.in (HAVE_LTO_PLUGIN): New.
14751 * configure.ac (--with-lto-plugin): New parameter; autodetect
14754 2011-01-07 Jan Hubicka <jh@suse.cz>
14756 PR tree-optimization/46367
14757 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14758 when we can update original.
14759 (cgraph_mark_inline_edge): Sanity check.
14760 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14762 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14764 * config/spu/spu.h (ASM_COMMENT_START): Define.
14766 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14769 * gcc.c (%>S): New.
14770 (SWITCH_KEEP_FOR_GCC): Likewise.
14771 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14772 (do_spec_1): Handle "%>".
14774 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14776 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14779 * config/i386/i386.c (ix86_delegitimize_address): If
14780 simplify_gen_subreg fails, return orig_x.
14783 * value-prof.c (gimple_stringop_fixed_value): Handle
14784 lhs of the call properly.
14786 2011-01-07 Jan Hubicka <jh@suse.cz>
14789 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14791 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14793 * target.def (function_switched_text_sections): New hook.
14794 * doc/tm.texi: Regenerated.
14795 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14796 * final.c (default_function_switched_text_sections): New.
14797 (final_scan_insn): Call function_switched_text_sections when a
14798 mid-function section change occurs.
14799 * output.h (default_function_switched_text_sections): Declare.
14800 * config/darwin-protos.h (darwin_function_switched_text_sections):
14802 * config/darwin.c (darwin_function_switched_text_sections): New.
14803 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14805 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14807 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14808 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14809 the secondary code fragment when outputting for DWARF == 2.
14811 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14813 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14814 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14816 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14817 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14819 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14822 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14823 when it is not empty.
14825 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14828 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14829 (case ${target}): Add btver1.
14830 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14831 -march=native recognize btver1 processors.
14832 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14833 btver1 def_and_undef
14834 * config/i386/i386.c (struct processor_costs btver1_cost): New
14836 (m_BTVER1): New definition.
14837 (m_AMD_MULTIPLE): Includes m_BTVER1.
14838 (initial_ix86_tune_features): Add btver1 tune.
14839 (processor_target_table): Add btver1 entry.
14840 (static const char *const cpu_names): Add btver1 entry.
14841 (software_prefetching_beneficial_p): Add btver1.
14842 (ix86_option_override_internal): Add btver1 instruction sets.
14843 (ix86_issue_rate): Add btver1.
14844 (ix86_adjust_cost): Add btver1.
14845 * config/i386/i386.h (TARGET_BTVER1): New definition.
14846 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14847 (enum processor_type): Add PROCESSOR_BTVER1.
14848 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14850 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14853 * config/i386/i386.c (legitimize_tls_address)
14854 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14855 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14856 (tls_initial_exec_64_sun): New pattern.
14858 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14860 * doc/invoke.texi (Overall Options): Improve wording and markup
14861 of the description of -wrapper.
14863 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14865 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14866 rdynamic, threads): New Driver options.
14868 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14871 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14872 if coming from .tdata.
14873 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14875 2011-01-06 Jan Hubicka <jh@suse.cz>
14878 * collect2.c (main): Do not enable LTOmode when plugin is active.
14880 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14883 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14884 --version output if supported.
14885 * configure: Regenerate.
14887 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14889 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14892 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14895 * c-convert.c (convert): When converting a complex expression
14896 other than COMPLEX_EXPR to a different complex type, ensure
14897 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14898 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14899 when converting COMPLEX_TYPE.
14901 2011-01-06 Ira Rosen <irar@il.ibm.com>
14903 PR tree-optimization/47139
14904 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14905 only the last reduction value is used outside the loop. Update
14908 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14910 * config/rtems.opt: New.
14911 * config.gcc (*-*-rtems*): Use rtems.opt.
14913 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14915 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14916 processors do not support 3DNow instructions.
14918 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14920 * config/spu/spu.c (spu_option_override): Set parameter
14921 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14923 2011-01-05 Jan Hubicka <jh@suse.cz>
14925 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14926 at the command line.
14928 2011-01-05 Martin Jambor <mjambor@suse.cz>
14931 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14932 deltas on streamed outgoing edges.
14933 (output_node_opt_summary): Output info for outgoing edges only when
14934 the node is in new parameter set.
14935 (output_cgraph_opt_summary): New parameter set, passed to the two
14936 aforementioned functions. Update its forward declaration and its
14939 2011-01-05 Tom Tromey <tromey@redhat.com>
14941 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14942 operator to c_finish_omp_atomic.
14943 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14944 (build_unary_op): Update.
14945 (build_modify_expr): Update.
14946 (build_asm_expr): Update.
14948 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14950 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14951 newly inserted insns.
14952 (pad_bb): Likewise.
14953 (spu_emit_branch_hint): Likewise.
14954 (insert_hbrp_for_ilb_runout): Likewise.
14955 (spu_machine_dependent_reorg): Call df_finish_pass after
14956 schedule_insns returns.
14958 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14960 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14962 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14964 PR tree-optimization/47005
14965 * tree-sra.c (struct access): Add 'non_addressable' bit.
14966 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14967 (decide_one_param_reduction): Return 0 if the parameter is passed by
14968 reference and one of the accesses in the group is non_addressable.
14970 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14972 PR tree-optimization/47056
14973 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14974 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14975 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14977 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14979 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14980 initializer. Skip view conversions from aggregate types.
14982 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14985 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14987 2011-01-04 Philipp Thomas <pth@suse.de>
14989 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14992 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14994 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14995 on empty epilogue sequences.
14997 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14999 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15000 non-static): New Driver options.
15002 2011-01-04 Jie Zhang <jie@codesourcery.com>
15005 * gcc.c (default_compilers[]): Set combinable field to 0
15006 for all assembly languages.
15008 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15010 * config/mips/loongson3a.md: New file.
15011 * config/mips/mips.md: Include loongson3a.md.
15012 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15015 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15017 PR middle-end/47017
15018 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15019 instead of convert_memory_address_addr_space on the base expression.
15021 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15023 * config/spu/spu.c (spu_option_override): Update error text
15024 for bad -march= / -mtune= values.
15026 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15028 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15029 if branch-hint optimization will be performed.
15031 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15033 PR tree-optimization/47148
15034 * ipa-split.c (split_function): Convert arguments to
15035 DECL_ARG_TYPE if possible.
15037 PR tree-optimization/47155
15038 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15039 when computing uns.
15041 PR rtl-optimization/47157
15042 * combine.c (try_combine): If undobuf.other_insn becomes
15043 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15044 and set *new_direct_jump_p too.
15046 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15048 PR tree-optimization/47021
15049 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15051 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15053 * gcc.c (process_command): Update copyright notice dates.
15054 * gcov.c (print_version): Likewise.
15055 * gcov-dump.c (print_version): Likewise.
15056 * mips-tfile.c (main): Likewise.
15057 * mips-tdump.c (main): Likewise.
15059 2011-01-03 Martin Jambor <mjambor@suse.cz>
15061 PR tree-optimization/46801
15062 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15063 aggregate fields start at byte boundary instead of the bit-field flag.
15065 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15068 * gcc.c (main): Revert revision 168407.
15070 2011-01-03 Martin Jambor <mjambor@suse.cz>
15072 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15074 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15076 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15077 vector optab to expand vector/scalar shift, update gimple to vector.
15079 2011-01-03 Martin Jambor <mjambor@suse.cz>
15081 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15084 2011-01-03 Martin Jambor <mjambor@suse.cz>
15086 PR tree-optimization/46984
15087 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15089 (cgraph_create_indirect_edge): Fixed line length.
15090 (cgraph_indirect_call_info): Declare.
15091 (cgraph_make_edge_direct) Update declaration.
15092 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15093 (cgraph_create_indirect_edge): Use it.
15094 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15096 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15097 the new thunk_delta representation.
15098 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15100 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15101 (ipa_read_indirect_edge_info): Likewise.
15102 * lto-cgraph.c (output_edge_opt_summary): New function.
15103 (output_node_opt_summary): Call it on all outgoing edges.
15104 (input_edge_opt_summary): New function.
15105 (input_node_opt_summary): Call it on all outgoing edges.
15107 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15110 * gcc.c (main): Don't check have_o when settting combine_inputs.
15112 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15114 * regrename.c: Add general comment describing the pass.
15115 (struct du_head): Remove 'length' field.
15116 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15117 (regrename_optimize): Do not sort chains. Rework comments, add others.
15118 Force renaming to the preferred class (if any) in the first pass and do
15119 not consider registers that belong to it in the second pass.
15120 (create_new_chain): Do not set 'length' field.
15121 (scan_rtx_reg): Likewise.
15123 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15125 PR tree-optimization/47140
15126 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15127 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15128 to bit_value_binop.
15130 PR rtl-optimization/47028
15131 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15132 parm_birth_insn instead of at the beginning of first bb.
15134 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15136 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15137 Remove the word "see" before "@pxref".
15138 * doc/rtl.texi: Remove the word "see" before "@pxref".
15140 2011-01-01 Jan Hubicka <jh@suse.cz>
15142 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15145 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15148 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15151 Copyright (C) 2011 Free Software Foundation, Inc.
15153 Copying and distribution of this file, with or without modification,
15154 are permitted in any medium without royalty provided the copyright
15155 notice and this notice are preserved.