1 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
6 2011-05-21 Joseph Myers <joseph@codesourcery.com>
8 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
9 * optc-gen.awk: Move common code to opt-read.awk.
10 * opth-gen.awk: Likewise.
11 * Makefile.in (options.c, s-options-h): Update to use
14 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
16 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
18 2011-05-20 Tom de Vries <tom@codesourcery.com>
21 * tree-ssa-loop-ivopts.c: Include expmed.h.
22 (get_shiftadd_cost): New function.
23 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
25 2011-05-20 Jakub Jelinek <jakub@redhat.com>
28 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
29 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
31 2011-05-20 Joseph Myers <joseph@codesourcery.com>
33 * Makefile.in: Update comment referring to $(OBJS-common).
35 2011-05-20 Ian Lance Taylor <iant@google.com>
37 * godump.c (go_output_typedef): Put enum constants in the macro
38 hash table to avoid duplicate Go const definitions.
40 2011-05-20 Joseph Myers <joseph@codesourcery.com>
42 * Makefile.in (LIBDEPS): Add libcommon.a.
44 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
45 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
46 pretty-print.o and version.o.
47 (OBJS-libcommon): New.
48 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
49 (BACKEND): Add libcommon.a.
50 (MOSTLYCLEANFILES): Likewise.
52 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
53 (cpp$(exeext)): Likewise.
54 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
55 pretty-print.o and input.o.
56 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
57 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
59 (mips-tfile): Don't explicitly use version.o.
60 (mips-tdump): Likewise.
61 (gcov.o): Depend on $(DIAGNOSTIC_H).
62 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
63 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
64 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
65 * gcov-dump.c: Include intl.h and diagnostic.h.
66 (main): Initialize diagnostics.
67 * gcov.c: Include diagnostic.h.
69 (main): Initialize diagnostics.
70 * lto-wrapper.c: Include diagnostic.h.
71 (main): Initialize diagnostics.
73 2011-05-20 Michael Matz <matz@suse.de>
75 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
77 2011-05-20 Michael Matz <matz@suse.de>
78 Richard Guenther <rguenther@suse.de>
80 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
81 use lto_streamer_cache_append directly instead of returning a VEC.
82 (preload_common_node): Remove.
83 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
85 (lto_streamer_cache_create): Call lto_preload_common_nodes.
87 2011-05-20 Richard Guenther <rguenther@suse.de>
89 PR tree-optimization/49079
90 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
91 MEM_REFs correctly for the trailing array access detection.
92 Special case constants the same way as decls for overall size
95 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
97 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
100 2011-05-20 Jakub Jelinek <jakub@redhat.com>
102 PR tree-optimization/49073
103 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
104 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
105 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
107 2011-05-20 Richard Guenther <rguenther@suse.de>
110 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
111 of pointer types the same way the middle-end does.
113 2011-05-20 Richard Guenther <rguenther@suse.de>
115 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
116 or pointer-to chains. Delay all fixup to uniquify_nodes.
118 2011-05-19 Quentin Neill <quentin.neill@amd.com>
120 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
121 (fma4_fmaddsub): Likewise
123 2011-05-19 Jan Hubicka <jh@suse.cz>
125 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
126 (GIMPLE_TYPE_PAIR_SIZE): New macro.
127 (type_pair_cache): New static var.
128 (lookup_type_pair): Use fixed sized custom hash; make inline.
129 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
130 calls of lookup_type_pair.
131 (print_gimple_types_stats): Remove cache stats.
132 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
135 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
137 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
138 when TARGET_RDRND is active.
139 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
140 Generate dummy SImode target register when target is NULL.
142 2011-05-19 Joseph Myers <joseph@codesourcery.com>
144 * config/arm/arm-fpus.def: New.
145 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
147 * config/arm/arm-tables.opt: Regenerate.
148 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
149 (arm_option_override): Don't decode FPU name to string here.
150 * config/arm/arm.opt (mfpu=): Use Enum.
151 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
154 2011-05-19 Joseph Myers <joseph@codesourcery.com>
156 * collect2.c: Include diagnostic.h.
157 (fatal_perror, fatal, error, fancy_abort): Remove.
158 (main): Set progname. Call xmalloc_set_program_name and
159 diagnostic_initialize.
160 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
161 scan_libraries, resolve_lib_name): Call fatal_error instead of
162 fatal and fatal_perror.
163 * collect2.h (error, fatal, fatal_perror): Don't declare.
164 * tlink.c: Include diagnostic-core.h.
165 (recompile_files): Call fatal_error instead of fatal_perror.
166 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
167 pretty-print.o and input.o.
168 (collect2.o, tlink.o): Update dependencies.
170 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
172 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
174 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
177 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
178 COMDAT group syntax, both SPARC and x86 variants.
179 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
180 * configure: Regenerate.
181 * config/sol2.h (TARGET_SOLARIS): Define.
182 (PUSHSECTION_FORMAT): Remove.
183 (SECTION_NAME_FORMAT): Define.
184 * config/sol2.c: Include hashtab.h.
185 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
186 expansion, using SECTION_NAME_FORMAT.
187 (solaris_comdat_htab): New variable.
188 (struct comdat_entry): Define.
189 (comdat_hash): New function.
190 (comdat_eq): New function.
191 (solaris_elf_asm_comdat_section): New function.
192 (solaris_define_comdat_signature): New function.
193 (solaris_code_end): New function.
194 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
195 (solaris_code_end): Declare.
196 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
197 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
199 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
200 Remove ATTRIBUTE_UNUSED.
201 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
202 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
203 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
204 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
205 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
206 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
207 (PUSHSECTION_FORMAT): Remove.
208 (SECTION_NAME_FORMAT): Redefine.
210 2011-05-19 Kai Tietz <ktietz@redhat.com>
212 * tree-cfg.c (verify_gimple_assign_binary): Barf on
213 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
214 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
216 2011-05-19 Anatoly Sokolov <aesok@post.ru>
217 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
221 2011-05-19 Richard Guenther <rguenther@suse.de>
224 * tree-object-size.c (addr_object_size): If the pointed-to
225 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
227 2011-05-19 Richard Guenther <rguenther@suse.de>
229 * gimple.c (gimple_types_compatible_p_1): Compare names of
230 the types themselves.
231 (iterative_hash_gimple_type): And hash them that way.
232 (gimple_register_type_1): If we register a main variant properly
233 initialize the leader to ourselves.
235 2011-05-19 Tom de Vries <tom@codesourcery.com>
238 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
239 get_loop_invariant_expr_id.
240 (get_loop_invariant_expr_id): Use get_expr_id.
241 (parm_decl_cost): New function.
242 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
243 Improve bound cost estimation. Use different inv_expr_id for elim and
246 2011-05-19 Tom de Vries <tom@codesourcery.com>
249 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
252 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
255 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
256 Properly handle load cast.
258 2011-05-18 Jakub Jelinek <jakub@redhat.com>
260 PR tree-optimization/49039
261 * tree-vrp.c (extract_range_from_binary_expr): For
262 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
263 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
265 2011-05-18 Tom de Vries <tom@codesourcery.com>
268 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
270 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
272 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
273 (*tls_global_dynamic_64): Ditto.
274 (*tls_local_dynamic_base_32_gnu): Ditto.
275 (*tls_local_dynamic_base_64): Ditto.
276 (tls_initial_exec_64_sun): Ditto.
278 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
280 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
281 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
283 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
284 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
285 * config/bfin/bfin.c (bfin_cpus): Add bf592.
286 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
287 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
288 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
289 * config/bfin/elf.h (LIB_SPEC): Add bf592.
291 2011-05-18 Joseph Myers <joseph@codesourcery.com>
293 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
294 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
295 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
296 target_thread_pointer, arm_structure_size_boundary, struct
297 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
298 struct abi_name, arm_all_abis): Remove.
299 (arm_option_override) Don't process most enumerated option values here.
300 Don't process target_fpe_name here. Work with integer not string for
301 structure size boundary; use separate diagnostics for each case.
302 * config/arm/arm.h (enum float_abi_type, enum
303 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
305 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
306 arm_structure_size_boundary): Remove.
307 * config/arm/arm.opt (mabi=): Use Enum and Init.
308 (arm_abi_type): New Enum and EnumValue entries.
309 (mfloat-abi=): Use Enum and Init.
310 (float_abi_type): New Enum and EnumValue entries.
311 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
312 (mfp16-format=): Use Enum and Init.
313 (arm_fp16_format_type): New Enum and EnumValue entries.
314 (mstructure-size-boundary=): Use UInteger and Init.
315 (mtp=): Use Enum and Init.
316 (arm_tp_type): New Enum and EnumValue entries.
318 2011-05-18 Richard Guenther <rguenther@suse.de>
320 PR tree-optimization/49018
321 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
322 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
323 gimple_has_side_effects.
325 2011-05-18 Richard Guenther <rguenther@suse.de>
327 * gimple.c (gimple_register_type_1): New function, split out from ...
328 (gimple_register_type): ... here. Avoid infinite recursion.
330 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
332 PR tree-optimization/41881
333 * tree-vectorizer.h (struct _loop_vec_info): Add new field
334 reduction_chains along with a macro for its access.
335 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
336 (destroy_loop_vec_info): Free reduction chains.
337 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
338 (vect_is_slp_reduction): New function.
339 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
340 (vect_create_epilog_for_reduction): Support SLP reduction chains.
341 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
342 definition types for reduction chains.
343 (vect_supported_load_permutation_p): Don't allow permutations for
345 (vect_analyze_slp_instance): Support reduction chains.
346 (vect_analyze_slp): Try to build SLP instance from reduction chains.
347 (vect_get_constant_vectors): Handle reduction chains.
348 (vect_schedule_slp_instance): Mark the first statement of the
349 reduction chain as reduction.
351 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
353 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
354 names for group elements access.
355 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
356 reduction chains as well. Remove data reference and interleaving
357 related words from the fields names.
358 * tree-vect-loop.c (vect_transform_loop): Use new names for group
360 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
361 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
362 vect_update_interleaving_chain, vect_same_range_drs,
363 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
364 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
365 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
366 vect_analyze_group_access, vect_analyze_data_ref_access,
367 vect_create_data_ref_ptr, vect_transform_strided_load,
368 vect_record_strided_load_vectors): Likewise.
369 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
370 vect_model_load_cost, vectorizable_store, vectorizable_load,
371 vect_remove_stores, new_stmt_vec_info): Likewise.
372 * tree-vect-slp.c (vect_build_slp_tree,
373 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
375 2011-05-18 Richard Guenther <rguenther@suse.de>
378 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
379 operand verification.
380 (verify_gimple_assign_binary): Likewise.
381 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
382 to non-1-precision BOOLEAN_TYPEs.
384 2011-05-18 Tom de Vries <tom@codesourcery.com>
387 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
389 2011-05-18 Jakub Jelinek <jakub@redhat.com>
391 PR tree-optimization/49000
392 * tree-ssa.c (execute_update_addresses_taken): Call
393 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
394 be rewritten and decl has been marked for renaming, reset
397 2011-05-17 Joseph Myers <joseph@codesourcery.com>
399 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
400 enum_opts_set when testing if attributes have set -mfpmath=.
402 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
404 * config/mips/mips.c (mips_handle_option): Remove unused variable.
406 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
408 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
410 * tree-inline.c (maybe_inline_call_in_expr): Initialize
411 id.transform_lang_insert_block with NULL.
413 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
415 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
416 (output_fp_compare): Change args 3 and 4 to bool.
417 (ix86_expand_call): Change arg 6 to bool.
418 (ix86_attr_length_immediate_default): Change arg 2 to bool.
419 (ix86_attr_length_vex_default): Change arg 3 to bool.
420 * config/i386/i386.md: Update all uses.
421 * config/i386/i386.c: Ditto.
422 (ix86_flags_dependent): Change return type to bool.
424 2011-05-17 Richard Guenther <rguenther@suse.de>
426 * gimple.c (type_hash_pair_compare): Fix comparison.
428 2011-05-17 Richard Guenther <rguenther@suse.de>
430 * gimple.c (iterative_hash_gimple_type): Simplify singleton
431 case some more, fix final hash value of the non-singleton case.
433 2011-05-17 Richard Guenther <rguenther@suse.de>
437 2011-05-16 Richard Guenther <rguenther@suse.de>
439 * gimple.c (gimple_types_compatible_p_1): Use names of the
440 type itself, not its main variant.
441 (iterative_hash_gimple_type): Likewise.
443 2011-05-17 Richard Guenther <rguenther@suse.de>
445 * gimple.c (gimple_register_canonical_type): Use the main-variant
446 leader for computing the canonical type.
448 2011-05-17 Nick Clifton <nickc@redhat.com>
450 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
453 * config/rx/rx.md: Add peephole to remove redundant extensions
455 (bitset_in_memory): Use rx_restricted_mem_operand.
456 (bitinvert_in_memory): Likewise.
457 (bitclr_in_memory): Likewise.
459 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
460 Nick Clifton <nickc@redhat.com>
462 * config/rx/rx.md: Add peepholes to match a register move followed
463 by a comparison of the moved register. Replace these with an
464 addition of zero that does both actions in one instruction.
466 2011-05-17 Jakub Jelinek <jakub@redhat.com>
469 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
470 predicate to allow CONST_INT.
471 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
473 2011-05-16 Joseph Myers <joseph@codesourcery.com>
475 * opts-common.c (opt_enum_arg_to_value): New.
476 * opts.h (opt_enum_arg_to_value): Declare.
477 * config/i386/i386.opt (fpmath): Remove.
478 (mfpmath=): Use Enum, Init and Save.
479 (fpmath_unit): New Enum and EnumValue entries.
480 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
481 name for function fpmath state.
482 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
483 * config/i386/i386.c: Include diagnostic.h.
484 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
485 (ix86_target_string): Take enum fpmath_unit value instead of string.
486 (ix86_debug_options): Update call to ix86_target_string.
487 (ix86_option_override_internal): Don't process fpmath strings here.
488 (x86_function_specific_save, ix86_function_specific_restore):
489 Don't handle fpmath state specially.
490 (ix86_function_specific_print): Pass fpmath state to
491 ix86_target_string instead of printing in this function.
492 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
493 Handle enum attributes.
494 (IX86_ATTR_ENUM, ix86_opt_enum): New.
495 (ix86_valid_target_attribute_tree): Update option_strings
496 handling. Handle fpmath as enum option.
497 (ix86_can_inline_p): Update field names for function fpmath state.
498 (ix86_expand_builtin): Update call to ix86_target_string.
499 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
500 (ix86_fpmath): Remove.
501 * config/i386/t-i386 (i386.o): Update dependencies.
503 2011-05-16 Joseph Myers <joseph@codesourcery.com>
505 PR preprocessor/48677
506 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
507 from decoded_options[0], not from itself.
509 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
511 * config/i386/constraints.md (z): New constraint.
512 * config/i386/i386.c (c): New mode attribute.
513 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
514 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
515 constraint for operand 0.
516 (*call_vzeroupper): Ditto.
517 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
518 (*call_rex64_ms_sysv_vzeroupper): Ditto.
519 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
520 Use "lzm" constraint for operand 0.
521 (*call_pop_vzeroupper): Ditto.
522 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
523 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
524 constraint for operand 0.
525 (*sibcall_vzeroupper): Ditto.
526 (*sibcall_rex64_ms_sysv): Ditto.
527 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
528 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
529 *sibcall_pop_1. Use "Uz" constraint for operand 0.
530 (*sibcall_pop_vzeroupper): Ditto.
531 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
532 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
533 mode iterator. Use "<c>zm" constraint for operand 1.
534 (*call_value_vzeroupper): Ditto.
535 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
537 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
538 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
539 *call_value_pop_1. Use "lzm" constraint for operand 1.
540 (*call_value_pop_vzeroupper): Ditto.
541 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
542 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
543 mode iterator. Use "Uz" constraint for operand 1.
544 (*sibcall_value_vzeroupper): Ditto.
545 (*sibcall_value_rex64_ms_sysv): Ditto.
546 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
547 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
548 constraint for operand 1.
549 (*sibcall_value_pop_vzeroupper): Ditto.
550 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
551 and "z" constraint for operand 2.
552 (*tls_global_dynamic_32_gnu): Ditto.
553 (*tls_local_dynamic_base_32_gnu): Ditto.
554 (*tls_local_dynamic_base_64): Ditto.
555 (*tls_local_dynamic_32_once): Ditto.
556 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
558 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
560 2011-05-16 Richard Guenther <rguenther@suse.de>
562 * gimple.c (gimple_types_compatible_p_1): Use names of the
563 type itself, not its main variant.
564 (iterative_hash_gimple_type): Likewise.
566 2011-05-16 Richard Guenther <rguenther@suse.de>
568 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
569 always visit pointer target and function result and argument types.
571 2011-05-16 Jason Merrill <jason@redhat.com>
574 * tree-inline.c (copy_statement_list): Put back recursion.
576 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
580 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
581 * config/avr/avr.md ("*ior<mode>qi.byte0",
582 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
584 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
587 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
588 register is needed for a function argument.
590 2011-05-16 Richard Guenther <rguenther@suse.de>
592 * gimple.c (struct type_hash_pair): New type.
593 (type_hash_pair_compare): New function.
594 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
596 2011-05-16 Revital Eres <revital.eres@linaro.org>
598 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
600 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
602 * config/i386/i386.md (floating point move splitters): Fix
603 usage of standard_80387_constant_p.
604 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
606 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
608 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
610 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
612 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
613 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
614 (tree_ssa_lim_finalize): Likewise.
616 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
618 * config/i386/constraint.md (Yd, Yx): New register constraints.
619 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
620 Yd conditional register constraint.
621 (*movtf_internal): Use standard_sse_constant_opcode.
622 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
623 Yx conditional register constraint.
624 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
625 Yd conditional register constraint. Use standard_sse_constant_p to
626 check for valid SSE constants and call standard_sse_constant_opcode to
628 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
629 constants and call standard_sse_constant_opcode to output SSE insn.
630 * config/i386/i386.c (ix86_option_ovverride_internal): Set
631 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
632 optimize_size is set.
633 (standard_sse_constant_opcode): Output conditional AVX insn templates.
635 2011-05-14 Tobias Burnus <burnus@net-b.de>
637 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
639 2011-05-13 Martin Jambor <mjambor@suse.cz>
641 * ipa-prop.c (ipa_cst_from_jfunc): New function.
642 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
643 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
644 (evaluate_conditions_for_ipcp_clone): Removed.
645 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
646 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
647 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
649 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
651 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
652 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
653 lieu of MAY_HAVE_DEBUG_STMTS.
654 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
655 debug statements if !MAY_HAVE_DEBUG_STMTS.
657 2011-05-13 Martin Thuresson <martint@google.com>
659 PR gcov-profile/47793
660 * libgcov.c (gcov_exit): Support relative profile paths.
661 * doc/invoke.texi (-fprofile-dir): Update for above change.
663 2011-05-13 Richard Guenther <rguenther@suse.de>
665 * gimple.c (gimple_canonical_types_compatible_p): Do not use
666 type-pair caching, do not compare hashes.
668 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
671 * tree-cfg.c (edge_to_cases_cleanup): Return true.
672 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
674 2011-05-13 Kai Tietz <ktietz@redhat.com>
676 * gimplify.c (gimplify_expr): Make sure operand is boolified.
677 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
678 compatible type for TRUTH_NOT_EXPR.
680 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
682 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
683 (ix86_hard_regno_mode_ok): Change return value to bool. Use
684 can_create_pseudo_p ().
686 2011-05-13 Richard Guenther <rguenther@suse.de>
689 * gimple.c (iterative_hash_gimple_type): Revert change in
690 pointer target and function result and argument hashing.
692 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
694 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
695 (*movxf_internal_nointeger): Ditto.
696 (*movdf_internal_rex64): Ditto.
697 (*movdf_internal): Ditto.
698 (*movdf_internal_nointeger): Ditto.
699 (*movsf_internal): Ditto.
700 (sincos splitters): Use can_create_pseudo ().
702 2011-05-13 Joseph Myers <joseph@codesourcery.com>
704 * config/i386/i386-opts.h: New.
705 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
706 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
707 ix86_section_threshold): Remove.
708 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
709 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
711 (ix86_option_override_internal): Don't decode strings for options
712 other than -march=, -mtune= and -mfpmath=. Don't allow for
713 __attribute__ uses in remaining diagnostics for options with
714 string arguments. Don't check for integer arguments being negative.
715 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
716 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
717 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
718 ix86_branch_cost, ix86_section_threshold): Remove.
719 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
721 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
723 (masm=): Use Enum and Init.
724 (asm_dialect): New Enum and EnumValue entries.
725 (mbranch-cost=): Use UInteger.
726 (mlarge-data-threshold=): Use UInteger and Init.
727 (mcmodel=): Use Enum and Init.
728 (cmodel): New Enum and EnumValue entries.
729 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
730 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
731 mregparm=): Use UInteger.
732 (mstringop-strategy=): Use Enum and Init.
733 (stringop_alg): New Enum and EnumValue entries.
734 (mtls-dialect=): Use Enum and Init.
735 (tls_dialect): New Enum and EnumValue entries.
736 (mabi=): Use Enum and Init.
737 (calling_abi): New Enum and EnumValue entries.
738 (mveclibabi=): Use Enum and Init.
739 (ix86_veclibabi): New Enum and EnumValue entries.
741 2011-05-13 Nick Clifton <nickc@redhat.com>
743 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
744 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
746 2011-05-13 Kai Tietz <ktietz@redhat.com>
749 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
750 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
751 (gimple_boolify): Check for cast for boolean_type_node instead for
754 2011-05-13 Richard Guenther <rguenther@suse.de>
756 PR tree-optimization/48172
757 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
758 multiplying by number of iterations for equal step.
759 (vect_create_cond_for_alias_checks): Likewise.
761 2011-05-13 Andreas Schwab <schwab@redhat.com>
763 * configure.ac: Use AS_HELP_STRING throughout.
764 * configure: Regenerate.
766 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
768 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
769 (ix86_emit_restore_regs_using_mov): Likewise.
770 (ix86_emit_restore_sse_regs_using_mov): Likewise.
772 2011-05-12 Anatoly Sokolov <aesok@post.ru>
774 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
775 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
776 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
777 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
778 RTX_OK_FOR_OLO10_P): ...here.
779 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
782 2011-05-12 Kai Tietz <ktietz@redhat.com>
784 * gimplify.c (gimple_boolify): Re-boolify expression
785 arguments even if expression type is of kind BOOLEAN_TYPE.
786 (gimplify_boolean_expr): Removed.
787 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
788 and XOR. Additional take care that we keep expression's type.
789 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
790 of TRUTH_AND|OR|XOR_EXPR.
792 2011-05-12 Jakub Jelinek <jakub@redhat.com>
794 PR tree-optimization/48975
795 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
796 on all bbs here and free and clear ifc_bbs at the end.
798 2011-05-12 Richard Guenther <rguenther@suse.de>
800 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
801 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
802 until after simple checks.
803 (gimple_types_compatible_p): Likewise.
804 (iterative_hash_gimple_type): Always hash pointer targets
805 and function return and argument types.
806 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
807 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
808 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
809 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
810 completely in the simple compare section.
811 (gimple_register_canonical_type): Query the cache again after
814 2011-05-12 Richard Guenther <rguenther@suse.de>
816 PR tree-optimization/48172
817 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
818 the number of iterations from the segment size calculation.
819 (vect_create_cond_for_alias_checks): Adjust.
821 2011-05-12 Jakub Jelinek <jakub@redhat.com>
824 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
825 if validate_subreg fails.
827 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
829 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
830 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
833 2011-05-12 DJ Delorie <dj@redhat.com>
835 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
836 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
837 created builtin into rx_builtins array.
838 (rx_builtin_decl): New function.
839 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
841 2011-05-12 DJ Delorie <dj@redhat.com>
842 Nick Clifton <nickc@redhat.com>
844 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
845 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
846 (rx_is_legitimate_address): Add pre-decrement and post-increment
847 addressing in HImode and QImode. Fix test for out of range
849 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
850 (rx_align_for_label): Test label before extracting its usage count.
851 (rx_adjust_insn_lengths): Fix selection of insn codes.
852 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
854 2011-05-11 Jason Merrill <jason@redhat.com>
856 * tree.c (type_hash_canon): Use struct tree_type_non_common.
858 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
860 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
861 reindent the subsequent block.
863 2011-05-11 Satoru Takabayashi <satorux@google.com>
864 Paul Pluzhnikov <ppluzhnikov@google.com>
866 * doc/install.texi (Configuration): Document --with-linker-hash-style.
867 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
868 * config.in: Add LINKER_HASH_STYLE.
869 * configure.ac: Add --with-linker-hash-style.
870 * configure: Regenerate.
872 2011-05-11 Richard Guenther <rguenther@suse.de>
875 * gimple.c (iterative_hash_canonical_type): Fix typo.
877 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
879 * config/i386/i386.c (legitimize_tls_address)
880 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
881 expanders directly for TARGET_GNU2_TLS. Determine pic and
882 __tls_get_addr symbol reference here. Update call to
883 gen_tls_global_dynamic_{32,64} for added arguments.
884 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
885 expanders directly for TARGET_GNU2_TLS. Determine
886 __tls_get_addr symbol reference here. Update call to
887 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
888 unique UNSPEC REG_EQUIV to libcall block.
889 (ix86_tls_get_addr): Declare static.
890 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
891 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
892 Do not determine pic and __tls_get_addr symbol reference here. Do not
893 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
894 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
895 (tls_global_dynamic_64): Add operand 2. Do not determine
896 __tls_get_addr symbol reference here. Do not call
897 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
898 (tls_local_dynamic_base64): Ditto for operand 1.
900 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
902 * function.c (expand_function_start): Initialize stack_check_probe_note
903 only if the generic stack checking mechanism is used.
905 2011-05-11 Richard Guenther <rguenther@suse.de>
907 PR tree-optimization/15256
908 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
909 (A & B) | C, combine (A op CST1) op CST2.
910 (tree_ssa_forward_propagate_single_use_vars): Only bother to
911 visit assigns that have uses.
913 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
915 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
916 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
917 (unpack_ts_type_common_value_fields): ...this. Update comment.
918 (unpack_value_fields): Adjust for renaming.
919 (lto_input_ts_type_tree_pointers): Split into...
920 (lto_input_ts_type_common_tree_pointer): ...this and...
921 (lto_input_ts_type_non_common_tree_pointers): ...this.
922 (lto_input_tree_pointers): Adjust for above split.
923 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
924 (pack_ts_type_common_value_fields): ...this. Update comment.
925 (lto_output_ts_type_tree_pointers): Split into...
926 (lto_output_ts_type_common_tree_pointers): ...this and...
927 (lto_output_ts_type_non_common_tree_pointers): ...this.
928 (lto_output_tree_pointers): Adjust for above split.
929 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
930 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
931 * stor-layout.c (vector_type_mode): Adjust location of mode field.
932 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
934 (struct tree_type): Split into...
935 (struct tree_type_common: ...this and...
936 (struct tree_type_with_lang_specific): ...this and...
937 (struct tree_type_non_common): ...this. Adjust accessor macros
939 (TYPE_VALUES_RAW): Define.
940 (union tree_node): Update for above changes.
941 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
943 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
944 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
945 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
946 * treestructu.def (TS_TYPE): Remove.
947 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
950 2011-05-11 Jakub Jelinek <jakub@redhat.com>
953 * tree-ssa.c (reset_debug_uses): New function.
954 * tree-flow.h (reset_debug_uses): New prototype.
955 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
956 * tree-loop-distribution.c (generate_loops_for_partition): Call
957 reset_debug_uses on the stmts that will be removed. Keep around
958 all debug stmts, don't count them as bits in partition bitmap.
959 (generate_builtin): Don't count debug stmts or labels as bits in
962 2011-05-11 Richard Guenther <rguenther@suse.de>
964 * gimple.c (gimple_type_hash_1): Merge with ...
965 (gimple_type_hash): ... this.
966 (gtc_visit): Remove mode parameter and simplify accordingly.
967 (gimple_types_compatible_p_1): Likewise.
968 (gimple_types_compatible_p): Likewise.
969 (iterative_hash_gimple_type): Likewise.
971 (gimple_type_eq): Adjust.
973 2011-05-11 Revital Eres <revital.eres@linaro.org>
975 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
976 enters the branch create an anti edge in the opposite direction
977 to prevent the creation of reg-moves.
978 * modulo-sched.c: Adjust comment to reflect the fact we are
979 scheduling closing branch.
980 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
981 (stage_count): New field in struct partial_schedule.
982 (calculate_stage_count): New function.
983 (normalize_sched_times): Rename to reset_sched_times and handle
984 incrementing the sched time of the nodes by a constant value
986 (duplicate_insns_of_cycles): Skip closing branch.
987 (sms_schedule_by_order): Schedule closing branch.
988 (ps_insn_find_column): Handle closing branch.
989 (sms_schedule): Call reset_sched_times and adjust the code to
990 support scheduling of the closing branch.
991 (ps_insert_empty_row): Update calls to normalize_sched_times
992 and rotate_partial_schedule functions.
994 2011-05-11 Richard Guenther <rguenther@suse.de>
997 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
999 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1001 * opts.c (finish_options): Move warning settings from process_options.
1002 * toplev.c (process_options): Move warning settings to finish_options.
1004 2011-05-11 Richard Guenther <rguenther@suse.de>
1006 PR tree-optimization/18041
1007 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1008 (simplify_bitwise_binary): ... this. Handle operand conversions
1009 by applying them to the result instead.
1010 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1012 2011-05-11 Richard Guenther <rguenther@suse.de>
1014 * gimple.c (gimple_canonical_types_compatible_p): Split out
1015 from gimple_types_compatible_p and friends. Do not recurse
1016 to pointed-to types.
1017 (gimple_canonical_type_eq): Use it.
1018 (iterative_hash_canonical_type): Split out from
1019 iterative_hash_gimple_type and friends. Do not recurse
1020 to pointed-to types.
1021 (gimple_canonical_type_hash): Use it, allocate the hash here.
1023 2011-05-11 Revital Eres <revital.eres@linaro.org>
1025 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1028 2011-05-11 Revital Eres <revital.eres@linaro.org>
1030 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1031 instead of PREV_INSN.
1033 2011-05-11 Revital Eres <revital.eres@linaro.org>
1035 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1036 * loop-doloop.c (doloop_condition_get): Likewise.
1037 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1039 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1041 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1043 * tree.def (CASE_LABEL_EXPR): Add an operand.
1044 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1046 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1048 * c-decl.c (c_override_global_bindings_to_false): Remove.
1049 (global_bindings_p): Don't check
1050 c_override_global_bindings_to_false.
1051 * c-tree.h (c_override_global_bindings_to_false): Remove.
1052 * c-typeck.c (composite_type): Don't set
1053 c_override_global_bindings_to_false.
1055 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1057 PR target/48857, 48495
1058 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1060 (VSX_MOVE_MODE): Ditto.
1061 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1062 VSX vector types. Add V2DImode.
1063 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1064 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1065 (MODES_TIEABLE_P): Ditto.
1067 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1068 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1070 (init_cumulative_args): Ditto.
1071 (rs6000_function_arg_boundary): Ditto.
1072 (rs6000_function_arg_advance_1): Ditto.
1073 (rs6000_function_arg): Ditto.
1074 (rs6000_function_ok_for_sibcall): Ditto.
1075 (emit_frame_save): Ditto.
1076 (rs6000_function_value): Ditto.
1077 (rs6000_libcall_value): Ditto.
1079 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1081 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1082 i386/darwin-lib.h to $libgcc_tm_file.
1083 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1085 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1087 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1089 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1091 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1092 * config/rs6000/rs6000-tables.opt: New file (generated).
1093 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1094 rs6000/rs6000-tables.opt to extra_options.
1095 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1096 * config/rs6000/rs6000.c (rs6000_select): Remove.
1097 (processor_target_table): Move contents to rs6000-cpus.def.
1098 (darwin_rs6000_override_options): Check
1099 global_options_set.x_rs6000_cpu_index instead of
1100 rs6000_select[1].string.
1101 (rs6000_option_override_internal): Likewise.
1102 (rs6000_handle_option): Don't assert that global structures are in
1103 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1104 (rs6000_default_cpu): New variable.
1105 (rs6000_file_start): Set it instead of local default_cpu. Check
1106 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1107 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1108 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1109 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1110 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1111 rs6000_select): Remove.
1112 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1114 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1115 * config/rs6000/t-rs6000
1116 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1117 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1118 global_options_set.x_rs6000_cpu_index instead of
1119 rs6000_select[1].string.
1120 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1121 global_options_set.x_rs6000_cpu_index instead of
1122 rs6000_select[1].string.
1124 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1126 * config.gcc (libgcc_tm_file): Define instead of including files
1127 from ../../libgcc/config/ in tm_file.
1128 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1129 * configure: Regenerate.
1130 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1131 libgcc_tm.h, cs-libgcc_tm.h): New.
1132 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1133 (clean): Remove libgcc_tm.h.
1134 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1135 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1136 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1138 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1141 * config/avr/avr.c (avr_ret_register): Return unsigned int
1143 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1144 it to avr_libcall_value.
1145 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1147 (avr_expand_binop_builtin): Ditto.
1148 (avr_expand_unop_builtin): Ditto.
1150 2011-05-10 DJ Delorie <dj@redhat.com>
1152 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1153 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1154 * config/rx/rx.c (rx_align_for_label): Add label and
1155 uses_threshold parameters. Do not align when the label is not
1157 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1159 2011-05-10 Richard Guenther <rguenther@suse.de>
1161 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1162 a series of conversions and apply foldings similar to what
1164 (tree_ssa_forward_propagate_single_use_vars): Call it.
1166 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1168 PR tree-optimization/48611
1169 PR tree-optimization/48794
1170 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1171 referenced from RESX or EH_DISPATCH arguments.
1174 * dfp.c (decimal_to_decnumber): Handle conversion from
1175 dconst{1,2,m1,half}.
1177 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1179 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1180 for !flag_prefer_avx128.
1181 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1183 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1185 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1186 (fold_ternary_loc): Use expr_location_or.
1188 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1191 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1192 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1193 Pmode and mem_mode is not VOIDmode.
1195 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1197 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1198 TYPE_QUAL_RESTRICT): Convert to enum.
1200 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1202 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1203 (const_pow2_1_to_8_operand): Ditto.
1204 (const_pow2_1_to_128_operand): Ditto.
1205 (const_pow2_1_to_32768_operand): Ditto.
1206 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1207 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1208 in insn constraint to check integer value of operand 3.
1209 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1211 (PINSR_MODE): New mode iterator.
1212 (sse2p4_1): New mode attribute.
1213 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1214 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1215 iterator. Use const_int_operand instead of
1216 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1217 exact_log2 in insn constraint to check integer value of operand 3.
1219 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1221 * config/i386/sse.md (blendbits): Remove mode attribute.
1222 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1223 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1224 Check integer value of operand 3 in insn constraint.
1226 2011-05-09 Richard Guenther <rguenther@suse.de>
1228 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1230 (lto_symtab_merge): Likewise. Do not register types here.
1231 (lto_symtab_merge_decls_2): Likewise.
1232 (lto_symtab_merge_decls_1): Likewise.
1233 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1234 * gimple.c (enum gtc_mode): Declare.
1235 (gimple_types_compatible_p): Make static.
1237 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1239 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1240 temporary register to match Pmode.
1242 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1244 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1245 and *vec_concatv4si_1_avx.
1247 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1249 PR rtl-optimization/48927
1250 * ira-conflicts.c (commutative_constraint_p): Use
1251 recog_data.alternative_enabled_p to disable alternatives where
1252 "enabled" attribute is false.
1253 (get_dup_num): Ditto.
1254 * ira-lives.c (single_reg_class): Ditto.
1255 (ira_implicitly_set_insn_hard_regs): Ditto.
1257 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1259 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1260 (dataflow_set_preserve_mem_locs): Likewise.
1262 2011-05-09 Philipp Thomas <pth@suse.de>
1264 * config/mep/mep.c (mep_validate_vliw): Syntax description
1265 should not be translated.
1267 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1269 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1270 * config/mips/mips-tables.opt: New file (generated).
1271 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1272 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1273 MIPS_ARCH_OPTION_NATIVE): Define.
1274 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1276 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1277 mips_parse_cpu): Remove.
1278 (mips_cpu_info_from_opt, mips_default_arch): New.
1279 (mips_handle_option): Don't assert that global structures are in
1280 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1281 (mips_option_override): Use new variables and functions to set
1282 state of these options. Use strcmp to check for individual CPU names.
1283 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1285 * config/mips/mips.opt (march=): Use ToLower and Enum.
1286 (mips): Use ToLower, Enum and Var.
1287 (mtune=): Use ToLower and Enum.
1288 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1290 2011-05-08 Jan Hubicka <jh@suse.cz>
1292 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1293 Arrange type pairs to be UID ordered.
1294 (gimple_lookup_type_leader): Make inline.
1296 2011-05-09 Nick Clifton <nickc@redhat.com>
1299 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1303 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1306 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1308 * combine.c (simplify_comparison): Abstract out parts into...
1309 (simplify_compare_const): ... new function.
1310 (try_combine): Generalize parallel arithmetic/compare combining
1311 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1313 2011-05-08 Jan Hubicka <jh@suse.cz>
1315 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1316 (cgraph_create_virtual_clone): Call hooks once virtual clone
1318 * cgraph.h (cgraph_clone_node): Update prototype.
1319 * ipa-cp.c (ipcp_estimate_growth): Use
1320 estimate_ipcp_clone_size_and_time.
1321 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1322 * lto-cgraph.c (input_node): Update.
1323 * ipa-inline.c (recursive_inlining): Update.
1324 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1325 (evaluate_conditions_for_known_args): Break out from ...
1326 (evaluate_conditions_for_edge): ... here.
1327 (evaluate_conditions_for_ipcp_clone): New function.
1328 (inline_node_duplication_hook): Update clone summary based
1330 (estimate_callee_size_and_time): Rename to ...
1331 (estimate_node_size_and_time): take NODE instead of EDGE;
1332 take POSSIBLE_TRUTHS as argument.
1333 (estimate_callee_size_and_time): Update.
1334 (estimate_ipcp_clone_size_and_time): New function.
1335 (do_estimate_edge_time): Update.
1337 2011-05-08 Richard Guenther <rguenther@suse.de>
1341 * expmed.c (expand_shift_1): Compute adjusted constant shift
1344 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1346 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1348 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1350 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1352 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1354 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1356 2011-05-07 Jan Hubicka <jh@suse.cz>
1358 * ipa-inline-transform.c (inline_call): Account when program size
1360 * ipa-inline.c (relative_time_benefit): New function.
1361 (edge_badness): Reorganize to be power 2 based; fix thinko when
1362 computing badness for negative growth; update comments to match
1363 reality; better dumps.
1365 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1367 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1368 type to bool and adjust comment.
1369 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1370 (fold_mathfn_compare): Remove calls to global_bindings_p.
1371 (fold_inf_compare): Likewise.
1372 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1373 * c-tree.h (global_bindings_p): Adjust prototype.
1374 * c-decl.c (global_bindings_p): Return bool and simplify.
1376 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1378 PR tree-optimization/48837
1379 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1380 when accumulator transformation is performed.
1382 2011-05-06 Jan Hubicka <jh@suse.cz>
1384 * i386.h (ix86_tune_indices): Add
1385 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1386 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1387 * i386.c (initial_ix86_tune_features): Add
1388 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1389 (software_prefetching_beneficial_p): Remove predicate.
1390 (ix86_option_override_internal): Use new macro.
1392 2011-05-06 Jan Hubicka <jh@suse.cz>
1394 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1396 2011-05-06 Jan Hubicka <jh@suse.cz>
1398 * cgraph.c (cgraph_add_thunk): Create real function node instead
1399 of alias node; finalize it and mark needed/reachale; arrange visibility
1400 to be right and add it into the corresponding same comdat group list.
1401 (dump_cgraph_node): Dump thunks.
1402 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1403 cgraph_function_with_gimple_body_p,
1404 cgraph_first_function_with_gimple_body,
1405 cgraph_next_function_with_gimple_body): New functions.
1406 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1408 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1409 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1410 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1411 devirtualization when optimizing.
1412 (verify_cgraph_node): Verify thunks.
1413 (cgraph_analyze_function): Analyze thunks.
1414 (cgraph_mark_functions_to_output): Output thunks only in combination
1415 with function they are assigned to.
1416 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1417 alias into normal node.
1418 (assemble_thunks): New functoin.
1419 (cgraph_expand_function): Use it.
1420 * lto-cgraph.c (lto_output_node): Stream thunks.
1421 (input_overwrite_node): Stream in thunks.
1422 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1423 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1424 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1425 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1426 (inline_analyze_function): Do not care about thunk jump functions.
1427 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1428 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1429 cgraph_function_with_gimple_body_p.
1430 * passes.c (do_per_function_toporder): Use
1431 cgraph_function_with_gimple_body_p.
1432 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1433 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1434 (function_called_by_processed_nodes_p): Likewise.
1436 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1438 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1439 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1441 (mabi=): Replace with separate entries for mabi=altivec,
1442 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1443 mabi=ieeelongdouble and mabi=ibmlongdouble.
1444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1445 check for -mabi=spe without SPE ABI support here.
1446 (rs6000_handle_option): Replace OPT_mabi_ handling with
1447 OPT_mabi_altivec and OPT_mabi_spe handling.
1449 2011-05-06 Cary Coutant <ccoutant@google.com>
1451 * dwarf2out.c (contains_subprogram_definition): New function.
1452 (should_move_die_to_comdat): Call it.
1454 2011-05-06 Jeff Law <law@redhat.com>
1456 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1457 remove_ctrl_stmt_and_useless_edges.
1458 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1459 (fixup_template_block, thread_single_edge): Likewise.
1460 (mark_threaded_blocks): Use THREAD_TARGET.
1462 2011-05-06 Alan Modra <amodra@gmail.com>
1465 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1466 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1468 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1470 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1471 constraint modifier to "r".
1473 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1475 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1476 fall through for OPT_mcmodel_.
1478 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1480 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1482 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1484 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1487 * config/arm/arm.opt (marm): Document it.
1488 (mthumb): Reject negative variant.
1490 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1493 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1494 Fix typo in "ccvt" variable name.
1496 2011-05-06 Tristan Gingold <gingold@adacore.com>
1499 * config/vms/vms-ar.c (main): Remove cwd variable.
1501 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1504 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1506 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1508 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1509 * gimplify.c (gimplify_switch_expr): Likewise.
1510 * omp-low.c (expand_omp_sections): Likewise.
1511 * tree-eh.c (lower_try_finally_switch): Likewise.
1512 (lower_eh_dispatch): Likewise.
1513 * tree.h (build_case_label): Declare.
1514 * tree.c (build_case_label): Define.
1516 2011-05-05 Jason Merrill <jason@redhat.com>
1519 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1520 (copy_statement_list): Don't recurse.
1521 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1524 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1526 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1527 through from -mfpu= handling.
1528 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1530 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1532 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1535 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1537 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1539 (hppa[12]*-*-hpux11*): Ditto.
1540 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1541 * config/ia64/hpux-unix2003.h: New.
1542 * config/pa/pa-hpux1131.opt: New.
1543 * config/pa/pa-hpux1131.h: New.
1544 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1545 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1546 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1548 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1551 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1552 instead of mode as 3rd argument to recursive call.
1553 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1554 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1556 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1557 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1558 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1559 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1561 2011-05-05 Julian Brown <julian@codesourcery.com>
1563 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1564 parenthesis in D-register case.
1566 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1568 * opt-functions.awk (var_type_struct): Handle Enum options.
1569 * optc-gen.awk: Don't check range of variables of character type.
1570 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1571 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1572 rs6000_sdata_name, rs6000_explicit_options): Remove.
1573 (rs6000_option_override_internal): Check for -malign-power here.
1574 Use global_options_set instead of rs6000_explicit_options.
1575 (rs6000_parse_fpu_option): Remove.
1576 (rs6000_handle_option): Access variables via opts and opts_set
1577 pointers. Use error_at and warning_at. Add fall-through
1578 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1579 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1580 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1581 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1582 here. Don't use rs6000_parse_fpu_option.
1583 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1584 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1585 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1587 (mspe): Use Var and Save.
1588 (mtraceback=): Use Enum and Var.
1589 (rs6000_traceback_type): New Enum and EnumValue entries.
1590 (mfloat-gprs=): Use Enum, Var and Save.
1591 (rs6000_float_gprs): New Enum and EnumValue entries.
1592 (mlong-double-): use Var and Save.
1593 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1594 (malign-): Use Enum and Var.
1595 (rs6000_alignment_flags): New Enum and EnumValue entries.
1597 (fpu_type_t): New Enum and EnumValue entries.
1598 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1599 global_options_set instead of rs6000_explicit_options.
1600 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1601 global_options_set instead of rs6000_explicit_options.
1602 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1603 global_options_set instead of rs6000_explicit_options.
1604 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1605 global_options_set instead of rs6000_explicit_options.
1606 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1607 global_options_set instead of rs6000_explicit_options.
1608 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1609 global_options_set instead of rs6000_explicit_options.
1610 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1612 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1613 global_options_set instead of rs6000_explicit_options.
1614 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1615 (rs6000_cmodel): New Enum and EnumValue entries.
1616 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1617 global_options_set instead of rs6000_explicit_options.
1618 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1619 (mtls-size=): Use Enum and Var.
1620 (rs6000_tls_size): New Enum and EnumValue entries.
1622 2011-05-05 Michael Matz <matz@suse.de>
1624 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1625 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1626 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1627 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1628 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1629 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1630 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1631 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1632 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1633 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1634 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1635 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1636 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1637 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1638 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1639 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1641 2011-05-05 Richard Guenther <rguenther@suse.de>
1643 * expmed.c (expand_variable_shift): Rename to ...
1644 (expand_shift_1): ... this. Take an expanded shift amount.
1645 For rotates recurse directly not building trees for the shift amount.
1646 (expand_variable_shift): Wrap around expand_shift_1.
1647 (expand_shift): Adjust.
1649 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1651 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1653 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1655 * tree.h (get_pending_sizes): Remove prototype.
1656 (put_pending_size): Likewise.
1657 (put_pending_sizes): Likewise.
1658 * stor-layout.c (pending_sizes): Delete.
1659 (get_pending_sizes): Likewise.
1660 (put_pending_size): Likewise.
1661 (put_pending_sizes): Likewise.
1662 (variable_size): Do not call put_pending_size and tidy up.
1663 * function.h (struct function): Remove dont_save_pending_sizes_p.
1664 * lto-streamer-in.c (input_function): Do not stream it.
1665 * lto-streamer-out.c (output_function): Likewise.
1666 * tree-inline.c (initialize_cfun): Do not copy it.
1667 * c-decl.c (store_parm_decls): Do not set it.
1668 * omp-low.c (create_task_copyfn): Likewise.
1669 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1671 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1673 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1675 (*movdf_internal): Ditto.
1676 (*movdf_internal_nointeger): Ditto.
1677 (*movsf_internal): Ditto.
1679 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1681 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1682 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1683 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1684 (c_variable_size): Remove.
1685 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1686 call put_pending_sizes.
1687 (get_parm_info): Add parameter expr. Use it to set
1688 arg_info->pending_sizes.
1689 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1691 * c-parser.c (c_parser_parms_declarator): Update call to
1692 c_parser_parms_list_declarator.
1693 (c_parser_parms_list_declarator): Take parameter expr. Update
1694 call to push_parm_decl. Update recursive call. Don't call
1695 get_pending_sizes. Update calls to get_parm_info.
1696 (c_parser_objc_method_definition): Update calls to
1697 c_parser_objc_method_decl and objc_start_method_definition.
1698 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1699 (c_parser_objc_method_decl): Add parameter expr. Update call to
1701 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1702 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1703 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1705 2011-05-05 Michael Hope <michael.hope@linaro.org>
1708 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1711 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1713 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1714 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1715 (spu_output_mi_thunk): New function.
1717 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1720 targetm.asm_out.print_operand.
1721 * config/sol2.c: Include target.h.
1723 2011-05-04 Jan Hubicka <jh@suse.cz>
1725 * ipa-inline.c (reset_edge_caches): New function.
1726 (update_caller_keys): Add check_inlinablity_for; do not
1727 reset edge caches; remove now unnecesary loop.
1728 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1729 (update_all_callee_keys): Likewise.
1730 (inline_small_functions): Sanity check cache; update code
1733 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1735 PR rtl-optimization/47612
1736 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1737 as the last insn of the sequence to be moved.
1739 2011-05-04 Tobias Burnus <burnus@net-b.de>
1742 * doc/invoke.texi (Ofast): Document that it
1743 enables Fortran's -fno-protect-parens.
1745 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1747 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1749 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1751 * stor-layout.c (variable_size): Do not issue errors.
1753 2011-05-04 Richard Guenther <rguenther@suse.de>
1755 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1756 for array-ref indices.
1757 (tree_coverage_counter_addr): Likewise.
1758 (build_fn_info_type): Use size_int for index types.
1759 (build_gcov_info): Likewise.
1761 2011-05-04 Richard Guenther <rguenther@suse.de>
1763 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1765 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1766 for constructor indices.
1767 (push_init_level): Likewise.
1769 2011-05-04 Richard Guenther <rguenther@suse.de>
1771 * explow.c (promote_mode): Move variable declarations before code.
1773 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1775 * tree.h (build_function_type_array): Declare.
1776 (build_varargs_function_type_array): Declare.
1777 (build_function_type_vec, build_varargs_function_type_vec): Define.
1778 * tree.c (build_function_type_array_1): New function.
1779 (build_function_type_array): New function.
1780 (build_varargs_function_type_array): New function.
1782 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1784 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1785 before setting STMT_VINFO_TYPE.
1787 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1789 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1790 instead of spu_pass_by_reference.
1792 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1794 * calls.c (emit_library_call_value_1): Invoke
1795 promote_function_mode hook on libcall arguments.
1796 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1797 argument being NULL.
1798 * targhooks.c (default_promote_function_mode): Lisewise.
1799 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1800 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1802 * doc/tm.texi: Document that TYPE argument might be NULL.
1804 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1806 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1808 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1811 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1813 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1816 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1818 * mips-tfile.c: ... here.
1819 Don't include coretypes.h, tm.h, filenames.h.
1820 (saber_stop): Remove definition and all calls.
1821 [__SABER__]: Remove.
1822 (__LINE__): Remove default.
1823 (Size_t, Ptrdiff_t): Remove definitions.
1824 Replace by size_t, ptrdiff_t.
1825 [!MIPS_DEBUGGING_INFO]: Remove.
1826 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1827 (progname): Add const.
1829 Replace all uses by static.
1830 (ALIGN_SYMTABLE_OFFSET): Remove default.
1831 * mips-tdump.c: Don't include coretypes.h, tm.h.
1832 Remove !MIPS_IS_STAB guard.
1833 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1834 $(TM_H), filenames.h dependencies.
1835 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1837 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1840 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1841 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1843 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1846 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1847 account and save/restore RETS.
1848 (PROFILE_BEFORE_PROLOGUE): Define.
1849 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1850 the push insn to use predecrement.
1852 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1855 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1857 2011-05-04 Nick Clifton <nickc@redhat.com>
1859 * config/mn10300/mn10300.c: Include cfgloop.h.
1861 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1862 Lcc or a FLcc insn into the instruction stream.
1863 (mn10300_block_contains_call): New function. Returns true if the
1864 given basic block contains a CALL insn.
1865 (mn10300_loop_contains_call_insn): New function. Returns true if
1866 the given loop contains a CALL insn.
1867 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1868 to use the SETLB and Lcc or FLcc insns.
1869 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1870 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1871 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1872 disable the SETLB optimization.
1873 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1874 __SETLB__ or __NO_SETLB__.
1875 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1876 (movsf_internal): Handle MDR register.
1877 (cmpsi): Make visible.
1878 (setlb): New pattern.
1880 (FLcc): New pattern.
1882 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1885 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1886 for reg<->xmm moves.
1887 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1888 (vec_concatv2di_rex64_sse): Ditto.
1889 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1890 (*vec_extractv2di_1_rex64): Ditto.
1893 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1895 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1897 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1899 2011-05-04 Richard Guenther <rguenther@suse.de>
1901 * tree.h (int_const_binop): Remove notrunc argument.
1902 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1903 create integer constants that are properly truncated.
1904 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1905 (const_binop): Remove zero notrunc argument to int_const_binop.
1906 (size_binop_loc): Likewise.
1907 (fold_div_compare): Likewise.
1908 (maybe_canonicalize_comparison_1): Likewise.
1909 (fold_comparison): Likewise.
1910 (fold_binary_loc): Likewise.
1911 (multiple_of_p): Likewise.
1912 * expr.c (store_constructor): Likewise.
1913 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1914 (maybe_fold_stmt_addition): Likewise.
1915 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1916 * stor-layout.c (layout_type): Likewise.
1917 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1918 * tree-sra.c (build_ref_for_offset): Likewise.
1919 (build_user_friendly_ref_for_offset): Likewise.
1920 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1921 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1922 * tree-ssa-loop-niter.c (inverse): Likewise.
1923 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1924 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1925 * tree-switch-conversion.c (check_range): Likewise.
1926 (build_constructors): Likewise.
1927 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1928 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1929 (extract_range_from_assert): Likewise.
1930 (vrp_int_const_binop): Likewise.
1931 (extract_range_from_binary_expr): Likewise.
1932 (extract_range_from_unary_expr): Likewise.
1933 (check_array_ref): Likewise.
1934 (find_case_label_range): Likewise.
1935 (simplify_div_or_mod_using_ranges): Likewise.
1936 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1937 comparing case labels for merging.
1939 2011-05-03 Mark Wielaard <mjw@redhat.com>
1941 * dwarf2out.c (debug_str_hash_forced): Removed.
1942 (gen_label_for_indirect_string): Removed.
1943 (get_debug_string_label): Removed.
1944 (AT_string_form): Generate label directly.
1945 (output_indirect_string): Test indirect_string_node for
1946 DW_FORM_strp instead of checking label and refcount.
1947 (prune_indirect_string): Removed.
1948 (prune_unused_types): Don't check debug_str_hash_forced or
1949 call prune_indirect_string.
1951 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1954 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1956 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1960 * combine.c (try_combine): Skip debug insns at m_split tests.
1962 2011-04-26 Mark Wielaard <mjw@redhat.com>
1965 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1966 when info_section_emitted.
1968 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1970 * config/mips/mips-opts.h: New.
1971 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1973 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1974 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1975 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1977 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1979 (mips_abi, mips_code_readable): Don't declare.
1980 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1981 (mabi=): Use Enum and Var.
1982 (mips_abi): New Enum and EnumValue entries.
1983 (mcode-readable=): Use Enum and Var.
1984 (mips_code_readable_setting): New Enum and EnumValue entries.
1985 (mr10k-cache-barrier=): Use Enum and Var.
1986 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1988 2011-05-03 Jan Hubicka <jh@suse.cz>
1990 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1991 replace hash by pointer map.
1992 (cgraph_node_set_element_def, cgraph_node_set_element,
1993 const_cgraph_node_set_element, varpool_node_set_element_def,
1994 varpool_node_set_element, const_varpool_node_set_element): Remove.
1995 (free_cgraph_node_set, free_varpool_node_set): New function.
1996 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1997 * tree-emutls.c: Free varpool node set.
1998 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1999 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2000 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2001 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2002 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2003 Move here from ipa.c; implement using pointer_map
2004 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2005 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2006 debug_cgraph_node_set, varpool_node_set_new,
2007 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2008 dump_varpool_node_set, debug_varpool_node_set):
2009 Move to ipa-uitls.c.
2010 * passes.c (ipa_write_summaries): Update.
2012 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2014 From Mike Frysinger:
2015 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2016 bf542/bf544/bf547/bf548/bf549.
2018 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2020 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2022 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2025 * config/bfin/bfin.md (MOVCC): New mode_macro.
2026 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2027 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2028 comments from generated assembly.
2030 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2033 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2034 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2035 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2036 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2037 * config/bfin/lib1funcs.asm (___muldi3): New function.
2039 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2041 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2042 build_function_type_list instead of build_function_type.
2043 Rearrange initialization of `args' to do so.
2045 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2047 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2048 instead of build_function_type.
2050 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2052 * config/rs6000/rs6000.c (spe_init_builtins): Call
2053 build_function_type_list instead of build_function_type.
2054 (paired_init_builtins, altivec_init_builtins): Likewise.
2055 (builtin_function_type): Likewise.
2057 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2059 * config/sh/sh.c (sh_media_init_builtins): Call
2060 build_function_type_list instead of build_function_type.
2062 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2064 * config/sparc/sparc.c (sparc_file_end): Call
2065 build_function_type_list instead of build_function_type.
2067 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2069 * config/alpha/alpha.c (alpha_init_builtins): Call
2070 build_function_type_list instead of build_function_type.
2072 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2074 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2075 build_function_type_list instead of build_function_type.
2077 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2079 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2080 build_function_type_list instead of build_function_type.
2081 Delete `endlink' variable.
2083 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2085 * config/avr/avr.c (avr_init_builtins): Call
2086 build_function_type_list instead of build_function_type.
2088 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2090 * config/picochip/picochip.c (picochip_init_builtins): Call
2091 build_function_type_list instead of build_function_type.
2092 Delete `endlink' variable.
2094 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2096 * config/bfin/bfin.c (bfin_init_builtins): Call
2097 build_function_type_list instead of build_function_type.
2099 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2102 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2103 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2105 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2108 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2109 libbffastfp overrides libgcc when -mfast-fp.
2111 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2113 Originally from Bernd Schmidt
2114 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2115 * config/bfin/bfin.c (override_options): Test it and error if
2118 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2120 Originally From Bernd Schmidt
2121 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2124 2011-05-03 Jeff Law <law@redhat.com>
2126 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2127 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2128 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2129 than accessing AUX field directly. Free the AUX field before
2131 (thread_block, thread_through_loop_header): Likewise.
2132 (thread_single_edge, mark_threaded_blocks): Likewise.
2133 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2134 (register_jump_thread): Do not attempt to thread to a NULL edge.
2136 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2138 * function.c (init_function_start): Call decide_function_section.
2139 * varasm.c (decide_function_section): New function.
2140 (assemble_start_function): When not using
2141 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2142 or first_function_block_is_cold.
2143 * rtl.h (decide_function_section): Declare.
2145 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2146 Jakub Jelinek <jakub@redhat.com>
2149 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2150 only succeed if req_mode is the same as set_mode.
2152 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2154 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2155 * genemit.c (gen_exp): Handle RETURN.
2156 * emit-rtl.c (verify_rtx_sharing): Likewise.
2157 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2158 * rtl.c (copy_rtx): RETURN is shared.
2159 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2161 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2162 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2163 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2164 * config/cris/cris.c (cris_expand_return): Likewise.
2165 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2166 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2167 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2168 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2169 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2171 * config/v850/v850.c (expand_epilogue): Likewise.
2172 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2173 * config/arm/arm.md (epilogue): Likewise.
2174 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2175 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2176 variable to ret_reg.
2178 2011-05-03 Richard Guenther <rguenther@suse.de>
2181 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2182 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2183 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2185 2011-05-03 Richard Guenther <rguenther@suse.de>
2187 * c-decl.c (grokdeclarator): Instead of looking at
2188 TREE_OVERFLOW check if the constant fits in the index type.
2190 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2192 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2193 (vec_store_lanes<mode><mode>): Likewise.
2195 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2197 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2198 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2199 convert_optab_index values.
2200 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2201 * genopinit.c (optabs): Initialize the new optabs.
2202 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2203 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2204 (expand_STORE_LANES): New functions.
2205 * tree.h (build_array_type_nelts): Declare.
2206 * tree.c (build_array_type_nelts): New function.
2207 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2208 (vect_model_load_cost): Likewise.
2209 (vect_store_lanes_supported, vect_load_lanes_supported)
2210 (vect_record_strided_load_vectors): Declare.
2211 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2212 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2213 (vect_transform_strided_load): Split out statement recording into...
2214 (vect_record_strided_load_vectors): ...this new function.
2215 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2216 (write_vector_array, create_array_ref): New functions.
2217 (vect_model_store_cost): Add store_lanes_p argument.
2218 (vect_model_load_cost): Add load_lanes_p argument.
2219 (vectorizable_store): Try to use store-lanes functions for
2221 (vectorizable_load): Likewise load-lanes and loads.
2222 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2223 to vect_model_store_cost.
2224 (vect_build_slp_tree): Likewise vect_model_load_cost.
2226 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2228 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2229 * hooks.c (hook_bool_mode_uhwi_false): New function.
2230 * target.def (array_mode_supported_p): New hook.
2231 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2232 * doc/tm.texi: Regenerate.
2233 * stor-layout.c (mode_for_array): New function.
2234 (layout_type): Use it.
2235 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2236 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2238 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2241 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2242 for -fstack-check if the size to allocate is negative.
2244 2011-05-02 Lawrence Crowl <crowl@google.com>
2246 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2247 (timevar_cond_start): New for starting a timer only when it is not
2249 (timevar_cond_stop): New for stopping a timer when it was not already
2252 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2253 (timevar_cond_start): New as above.
2254 (timevar_cond_stop): New as above.
2256 * timevar.def: Add start/stop timers for compiler phases,
2257 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2258 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2259 and TV_PHASE_FINALIZE.
2260 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2261 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2262 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2263 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2264 Make unused TV_OVERLOAD into a start/stop timer.
2266 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2267 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2268 to indicate that they are start/stop timers.
2270 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2271 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2272 Move initialization to do_compile.
2273 (do_compile): Add initialization from above.
2274 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2276 * c-decl.c (c_write_global_declarations): Add start/stop of
2277 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2279 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2280 or TV_PARSE_INLINE, as appropriate.
2281 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2282 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2284 2011-05-02 Jason Merrill <jason@redhat.com>
2287 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2289 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2292 * c-decl.c (finish_decl): Only create a composite if the types are
2295 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2297 * config/fr30/fr30-protos.h (Mmode): Don't define.
2298 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2299 definition where used.
2300 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2301 define. Expand definitions where used.
2302 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2303 Expand definitions where used.
2304 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2305 rx_function_arg, rx_function_arg_advance,
2306 rx_function_arg_boundary): Expand definitions of those macros.
2307 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2308 definition where used.
2310 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2312 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2314 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2315 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2316 with *movv2sf_internal_rex64_avx.
2317 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2318 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2319 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2320 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2321 "vex" in "prefix" attribute calculation.
2322 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2324 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2327 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2328 inputs match the output.
2330 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2333 * config/m68k/m68k.c (m68k_expand_prologue): Set
2334 current_function_static_stack_size.
2336 2011-05-02 Jan Hubicka <jh@suse.cz>
2338 * lto-streamer.c (lto_streamer_cache_insert_1,
2339 lto_streamer_cache_lookup, lto_streamer_cache_create,
2340 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2341 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2343 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2345 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2346 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2347 config/m68k/t-opts: New files.
2348 * config/m68k/m68k-tables.opt: New file (generated).
2349 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2350 extra_options and m68k/t-opts to tmake_file.
2351 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2352 (all_isas): Initialize using m68k-isas.def.
2353 (all_microarchs): Initialize using m68k-microarchs.def.
2354 (m68k_find_selection): Remove.
2355 (m68k_handle_option): Don't assert that global structures are in
2356 use. Use error_at. Access variables via opts pointer. Don't
2357 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2358 directly for -m68020-40 and -m68020-60.
2359 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2360 m68k_tune_entry here.
2361 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2363 (m68k_library_id_string): Remove declaration.
2364 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2365 (m68k_library_id_string): New Variable.
2366 (march=, mcpu=, mtune=): Use Enum and Var.
2368 2011-05-02 Richard Guenther <rguenther@suse.de>
2370 * varasm.c (output_constructor_regular_field): Compute zero-based
2371 index with double-ints. Make sure to ICE instead of producing
2373 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2374 in asserts. Properly use a signed type.
2376 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2378 * config/i386/sse.md (V): New mode iterator.
2379 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2381 (V_256): Rename from AVX256MODE.
2382 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2383 condition to all users.
2385 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2386 condition to all users.
2387 (VF_128): Make V4SF mode unconditional.
2388 (VF_256): Rename from AVX256MODEF2P.
2389 (VI4F_128): Rename from SSEMODE4S.
2390 (VI8F_128): Rename from SSEMODE2D.
2391 (VI4F_256): Rename from AVX256MODE8P.
2392 (VI8F_256): Rename from AVX256MODE4P.
2393 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2394 (ssescalarmodesuffix): Remove SF and DF modes.
2395 (SSEMODE124): Remove.
2396 (SSEMODE1248): Ditto.
2397 (SSEMODEF2P): Ditto.
2398 (AVXMODEF2P): Ditto.
2399 (AVXMODEFDP): Ditto.
2400 (AVXMODEFSP): Ditto.
2401 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2403 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2405 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2406 xop_pcmov_<mode>256. Use V mode iterator.
2408 Adjust RTX patterns globally for renamed mode attributes.
2410 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2412 * haifa-sched.c (sched_emit_insn): Emit insn before first
2413 non-scheduled insn. Inform back-end about new insn. Add
2414 new insn to scheduled_insns list.
2416 2011-05-02 Richard Guenther <rguenther@suse.de>
2418 PR tree-optimization/48822
2419 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2420 (process_scc): Indicate which iteration we start.
2422 2011-05-02 Jan Hubicka <jh@suse.cz>
2424 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2425 (lto_section_overrun): New.
2426 * lto-section-out.c (append_block): Rename to ...
2427 (lto_append_block): ... this one; export.
2428 (lto_output_1_stream): Move lto lto-streamer.h
2429 (lto_output_data_stream): Update.
2430 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2431 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2434 2011-05-02 Richard Guenther <rguenther@suse.de>
2436 * tree.c (tree_code_counts): New global array.
2437 (record_node_allocation_statistics): Count individual tree codes.
2438 (dump_tree_statistics): Dump individual code stats.
2440 2011-05-01 Jan Hubicka <jh@suse.cz>
2442 * ipa-inline.c (caller_growth_limits): Fix thinko when
2443 looking for largest stack frame.
2444 * ipa-inline.h (dump_inline_summary): Declare.
2445 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2447 (dump_inline_summary): Export.
2448 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2450 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2452 * reginfo.c (memory_move_cost): Change rclass argument type form
2453 'enum reg_class' to reg_class_t.
2454 * reload.h (memory_move_cost): Update prototype.
2455 * postreload.c reload_cse_simplify_set): Change type dclass var to
2457 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2459 (ira_allocate_and_set_costs): Change aclass argument type form
2460 'enum reg_class' to reg_class_t.
2461 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2462 Change aclass argument type to reg_class_t.
2463 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2465 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2466 memory_move_cost call.
2468 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2469 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2470 Change type tmp var to reg_class_t.
2472 2011-04-30 Jan Hubicka <jh@suse.cz>
2474 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2475 inlining into function with flatten attribute.
2476 (want_inline_small_function_p): Be more realistic about inlining
2477 cold calls where callee size grows.
2479 2011-04-30 Jan Hubicka <jh@suse.cz>
2481 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2484 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2486 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2487 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2488 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2489 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2490 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2491 (print_operand): Rename to...
2492 (sparc_print_operand): ...this. Make static. Adjust
2493 sparc_print_operand function call.
2494 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2497 2011-04-30 Jan Hubicka <jh@suse.cz>
2500 * ipa-inline.c (early_inliner): Disable when doing late
2501 addition of function.
2503 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2505 * dwarf2out.c (get_address_mode): New inline.
2506 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2507 if not dwarf_strict emit
2508 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2509 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2510 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2511 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2512 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2513 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2514 mem_loc_descriptor callers.
2515 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2516 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2517 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2518 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2519 (base_types): New variable.
2520 (get_base_type_offset, calc_base_type_die_sizes,
2521 base_type_for_mode, mark_base_types, base_type_cmp,
2522 move_marked_base_types): New functions.
2523 (calc_die_sizes): Assert that die_offset is 0 or equal to
2525 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2526 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2527 callers. If not dwarf_strict, call mem_loc_descriptor even for
2528 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2529 (gen_subprogram_die): Don't give up on call site parameters
2530 with non-integral or large integral modes. Adjust
2531 mem_loc_descriptor callers.
2532 (prune_unused_types): Call prune_unused_types_mark on base_types
2534 (resolve_addr): Call mark_base_types.
2535 (dwarf2out_finish): Call move_marked_base_types.
2537 PR tree-optimization/48809
2538 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2540 (gen_inbound_check): Don't compute index_expr - range_min in utype
2541 again, instead reuse SSA_NAME initialized in build_arrays.
2542 Remove two useless gsi_for_stmt calls.
2544 2011-04-29 Jeff Law <law@redhat.com>
2546 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2548 2011-04-29 Martin Jambor <mjambor@suse.cz>
2550 * cgraph.h (cgraph_postorder): Remove declaration.
2551 * ipa-utils.h (ipa_free_postorder_info): Declare.
2552 (ipa_reverse_postorder): Likewise.
2553 * cgraphunit.c: Include ipa-utils.h.
2554 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2555 * ipa-inline.c: Include ipa-utils.h.
2556 (ipa_inline): Update call to ipa_reverse_postorder.
2557 * ipa-pure-const.c (propagate_pure_const): Update call to
2558 ipa_reduced_postorder and ipa_print_order. Call
2559 ipa_free_postorder_info to clean up.
2560 (propagate_nothrow): Likewise.
2561 * ipa-reference.c (propagate): Removed a useless call to
2562 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2563 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2564 * ipa.c: Include ipa-utils.h.
2565 (ipa_profile): Update call to ipa_reverse_postorder.
2566 (cgraph_postorder): Moved to...
2567 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2568 (ipa_utils_print_order): Renamed to ipa_print_order.
2569 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2571 (ipa_free_postorder_info): New function.
2572 * passes.c: Include ipa-utils.h.
2573 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2574 (ipa_write_summaries): Likewise.
2575 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2576 (cgraphunit.o): Likewise.
2578 (ipa-inline.o): Likewise.
2580 2011-04-29 Jan Hubicka <jh@suse.cz>
2582 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2583 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2584 * ipa-inline.h (clause_t): Turn into unsigned int.
2585 * ipa-inline-analysis.c (add_clause): Do more simplification.
2586 (and_predicates): Shortcut more cases.
2587 (predicates_equal_p): Move forward; check that clauses are properly
2589 (or_predicates): Shortcut more cases.
2590 (edge_execution_predicate): Rewrite as...
2591 (set_cond_stmt_execution_predicate): ... this function; handle
2592 __builtin_constant_p.
2593 (set_switch_stmt_execution_predicate): New .
2594 (compute_bb_predicates): New.
2595 (will_be_nonconstant_predicate): Update TODO.
2596 (estimate_function_body_sizes): Use compute_bb_predicates
2597 and free them later, always try to estimate if stmt is constant.
2598 (estimate_time_after_inlining, estimate_size_after_inlining):
2599 Gracefully handle optimized out edges.
2600 (read_predicate): Fix off by one error.
2602 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2604 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2606 2011-04-27 Xinliang David Li <davidxl@google.com>
2608 * tree-profile.c (init_ic_make_global_vars): Set
2609 tls attribute on ic vars.
2610 * coverage.c (coverage_end_function): Initialize
2611 function_list with zero.
2613 2011-04-29 Richard Guenther <rguenther@suse.de>
2615 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2616 for the type of the result.
2617 (fold_builtin_isascii): Likewise.
2618 (fold_builtin_toascii): Use integer_type_node where appropriate.
2619 (fold_builtin_logb): Likewise.
2620 (fold_builtin_frexp): Likewise.
2621 (fold_builtin_strstr): Likewise.
2622 (fold_builtin_strpbrk): Likewise.
2623 (fold_builtin_fputs): Likewise.
2624 (fold_builtin_sprintf): Likewise.
2625 (fold_builtin_snprintf): Likewise.
2626 (fold_builtin_printf): Likewise.
2627 (do_mpfr_remquo): Use a proper type for the assigned constant.
2628 (do_mpfr_lgamma_r): Likewise.
2629 * dwarf2out.c (resolve_one_addr): Use size_int.
2630 * except.c (init_eh): Likewise.
2631 (assign_filter_values): Use integer_type_node for filter values.
2632 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2634 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2635 for EH region numbers.
2636 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2637 for the shift amount.
2639 2011-04-29 Richard Guenther <rguenther@suse.de>
2641 * expr.h (expand_shift): Rename to ...
2642 (expand_variable_shift): ... this.
2643 (expand_shift): Take a constant shift amount.
2644 * expmed.c (expand_shift): Rename to ...
2645 (expand_variable_shift): ... this.
2646 (expand_shift): New wrapper around expand_variable_shift.
2647 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2648 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2649 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2650 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2651 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2652 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2653 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2654 emit_store_flag_1, emit_store_flag): Likewise.
2655 * builtins.c (expand_builtin_signbit): Likewise.
2656 * calls.c (load_register_parameters): Likewise.
2657 * function.c (assign_parm_setup_block): Likewise.
2658 * lower-subreg.c (resolve_shift_zext): Likewise.
2659 * optabs.c (widen_bswap, expand_abs_nojump,
2660 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2661 * spu/spu.c (spu_expand_extv): Likewise.
2662 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2664 2011-04-29 Richard Guenther <rguenther@suse.de>
2666 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2667 for the remapped region number.
2668 * predict.c (build_predict_expr): Use integer_type_node for the
2670 * fold-const.c (fold_binary_loc): Use integer_type_node for
2671 the shift amount. Use a proper type for the PLUS_EXPR operand.
2673 2011-04-29 Michael Matz <matz@suse.de>
2675 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2676 other trees that just builtins.
2677 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2679 2011-04-29 Richard Guenther <rguenther@suse.de>
2681 * tree-nested.c (get_trampoline_type): Use size_int.
2682 (get_nl_goto_field): Likewise.
2683 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2685 (lower_eh_constructs_2): Likewise.
2686 (lower_resx): Likewise.
2687 (lower_eh_dispatch): Likewise.
2688 * tree-mudflap.c (mf_build_string): Use size_int.
2689 (mudflap_register_call): Use integer_type_node for the flag.
2690 (mudflap_enqueue_constant): Use size_int.
2691 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2692 instead of rebuilding it.
2694 2011-04-29 Richard Guenther <rguenther@suse.de>
2696 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2697 Handle OBJ_TYPE_REF.
2698 (find_func_aliases_for_call): Use it more consistently.
2700 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2702 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2703 (rank_for_schedule): Use it.
2704 (schedule_block): Set it.
2706 2011-04-28 David Li <davidxl@google.com>
2708 * tree.c (crc32_string): Use crc32_byte.
2709 (crc32_byte): New function.
2710 * tree.h (crc32_byte): New function.
2711 * gcov.c (read_graph_file): Handle new cfg_cksum.
2712 (read_count_file): Ditto.
2713 * profile.c (instrument_values): Ditto.
2714 (get_exec_counts): Ditto.
2715 (read_profile_edge_counts): Ditto.
2716 (compute_branch_probabilities): Ditto.
2717 (compute_value_histograms): Ditto.
2718 (branch_prob): Ditto.
2719 (end_branch_prob): Ditto.
2720 * coverage.c (read_counts_file): Ditto.
2721 (get_coverage_counts): Ditto.
2722 (tree_coverage_counter_addr): Ditto.
2723 (coverage_checksum_string): Ditto.
2724 (coverage_begin_output): Ditto.
2725 (coverage_end_function): Ditto.
2726 (build_fn_info_type): Ditto.
2727 (build_fn_info_value): Ditto.
2728 * libgcov.c (gcov_exit): Ditto.
2729 * gcov-dump.c (tag_function): Ditto.
2730 (compute_checksum): Remove.
2732 2011-04-29 Alan Modra <amodra@gmail.com>
2734 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2735 unspec plus offset. Tidy macho code.
2737 2011-04-29 Martin Jambor <mjambor@suse.cz>
2739 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2740 node instead of a decl. Update all callers.
2741 * cgraph.h: Update declaration.
2743 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2745 PR tree-optimization/48765
2746 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2747 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2748 to indicate if loop aware SLP is being used. Scan the statements
2749 and update the vectorization factor according to the type of
2750 vectorization before statement analysis.
2751 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2752 pass it to vect_analyze_loop_operations.
2753 (vectorizable_reduction): Set number of copies to 1 in case of pure
2755 * tree-vect-stmts.c (vectorizable_conversion,
2756 vectorizable_assignment, vectorizable_shift,
2757 vectorizable_operation, vectorizable_type_demotion,
2758 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2760 (vectorizable_condition): Move the check that it is not SLP
2761 vectorization before the number of copies check.
2762 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2763 to vectorize the loop using SLP.
2765 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2768 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2771 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2773 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2774 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2775 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2776 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2777 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2779 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2780 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2781 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2782 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2783 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2784 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2786 * config/i386/linux.h (REG_NAME): Don't define.
2787 * config/i386/linux64.h (REG_NAME): Don't define.
2788 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2789 Undefine before defining.
2791 2011-04-28 Jan Hubicka <jh@suse.cz>
2793 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2794 nonconstant_names array.
2795 (estimate_function_body_sizes): Build nonconstant_names array; handle
2796 BUILT_IN_CONSTANT_P.
2798 2011-04-28 Richard Guenther <rguenther@suse.de>
2802 2011-04-28 Richard Guenther <rguenther@suse.de>
2804 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2805 as late as possible.
2807 2011-04-28 Richard Guenther <rguenther@suse.de>
2809 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2810 (debug_constraint): Do it here.
2811 (dump_constraints): And here.
2812 (rewrite_constraints): And here.
2813 (dump_constraint_edge): Remove.
2814 (dump_constraint_graph): Rewrite to produce DOT output.
2815 (solve_constraints): Build succ graph as late as possible.
2816 Dump constraint graphs before and after solving.
2818 2011-04-28 Richard Guenther <rguenther@suse.de>
2820 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2821 New function split out from ...
2822 (find_func_aliases): ... here. Call it.
2823 (find_func_aliases_for_call): Likewise.
2825 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2827 * internal-fn.h (internal_fn_name_array): Declare.
2828 (internal_fn_flags_array): Likewise.
2830 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2832 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2833 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2835 (ssemodefsuffix): Remove.
2836 (ssevecmodesuffix): New mode attribute.
2837 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2838 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2839 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2840 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2841 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2842 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2843 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2844 ssemodesuffix mode attribute.
2845 (float splitters): Use ssevecmodesuffix mode attribute.
2846 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2847 (sseinsmode): Rename from avxvecmode.
2848 (avxsizesuffix): Rename from avxmodesuffix.
2849 (sseintvecmode): Rename from avxpermvecmode.
2850 (ssedoublevecmode): Rename from ssedoublesizemode.
2851 (ssehalfvecmode): Rename from avxhalfvecmode.
2852 (ssescalarmode): Rename from avxscalarmode.
2853 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2854 templates for ssemodesuffix mode attribute.
2855 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2858 Adjust RTX patterns globally for renamed mode attributes.
2860 2011-04-27 Jan Hubcika <jh@suse.cz>
2862 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2863 * ipa-inline-analysis.c: Include alloc-pool.h.
2864 (edge_predicate_pool): New.
2865 (trye_predicate_p): New function
2866 (false_predicate_p): New function.
2867 (add_clause): Sanity check that false clauses are "optimized";
2868 never add clauses to predicate that is already known to be false.
2869 (and_predicate): Use flase_predicate_p.
2870 (evaulate_predicate): Rename to ...
2871 (evaluate_predicate): ... this one; update all callers; assert
2872 that false is not listed among possible truths.
2873 (dump_predicate): Use true_predicate_p.
2874 (account_size_time): Use false_predicate_p.
2875 (evaulate_conditions_for_edge): Rename to ...
2876 (evaluate_conditions_for_edge) ... this one.
2877 (edge_set_predicate): New function.
2878 (inline_edge_duplication_hook): Duplicate edge predicates.
2879 (inline_edge_removal_hook): Free edge predicates.
2880 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2881 (dump_inline_summary): Update.
2882 (estimate_function_body_sizes): Set edge predicates.
2883 (estimate_calls_size_and_time): Handle predicates.
2884 (estimate_callee_size_and_time): Update.
2885 (remap_predicate): Add toplev_predicate; update comment.
2886 (remap_edge_predicates): New function.
2887 (inline_merge_summary): Compute toplev predicate; update.
2888 (read_predicate): New function.
2889 (read_inline_edge_summary): Use it.
2890 (inline_read_section): Likewise.
2891 (write_predicate): New function.
2892 (write_inline_edge_summary): Use it.
2893 (inline_write_summary): Likewise.
2894 (inline_free_summary): Free alloc pool and edge summary vec.
2896 2011-04-27 Richard Guenther <rguenther@suse.de>
2898 * tree-ssa-structalias.c (changed_count): Remove.
2899 (changed): Use a bitmap.
2900 (unify_nodes): Adjust.
2901 (do_sd_constraint): Likewise.
2902 (do_ds_constraint): Likewise.
2903 (do_complex_constraint): Likewise.
2904 (solve_graph): Likewise.
2906 2011-04-27 Jan Hubicka <jh@suse.cz>
2908 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2910 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2912 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2913 (avx_vperm2f128_*_operand): Ditto.
2914 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2915 Use avx_vpermilp_parallel in insn condition.
2916 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2917 Use avx_vperm2f128_parallel in insn condition.
2919 2011-04-27 Richard Guenther <rguenther@suse.de>
2921 * Makefile.in (tree-ssa-structalias.o): Remove
2922 gt-tree-ssa-structalias.h dependency.
2923 (GTFILES): Remove tree-ssa-structalias.c.
2924 * tree.c (allocate_decl_uid): New function.
2925 (make_node_stat): Use it.
2926 (copy_node_stat): Likewise.
2927 * tree.h (allocate_decl_uid): Declare.
2928 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2929 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2930 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2931 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2932 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2933 (struct heapvar_map): Likewise.
2934 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2935 heapvar_insert): Likewise.
2936 (make_heapvar_for): Rename to ...
2937 (make_heapvar): ... this. Simplify.
2938 (fake_var_decl_obstack): New global var.
2939 (build_fake_var_decl): New function.
2940 (make_constraint_from_heapvar): Adjust.
2941 (handle_lhs_call): Likewise.
2942 (create_function_info_for): Likewise.
2943 (intra_create_variable_infos): Likewise.
2944 (init_alias_vars): Allocate fake_var_decl_obstack.
2945 (init_alias_heapvars, delete_alias_heapvars): Remove.
2946 (compute_points_to_sets): Do not call init_alias_heapvars.
2947 (ipa_pta_execute): Likewise.
2948 (delete_points_to_sets): Free fake_var_decl_obstack.
2950 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2952 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2953 (si_from_UTItype, si_to_UTItype): New functions.
2954 (__udivmodti4): Use them to implement type-punning.
2955 * config/spu/multi3.c (union qword_TItype): New data type.
2956 (si_from_TItype, si_to_TItype): New functions.
2957 (__multi3): Use them to implement type-punning.
2959 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2961 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2963 2011-04-27 Jan Hubicka <jh@suse.cz>
2965 * ipa-prop.c (function_insertion_hook_holder): New holder.
2966 (ipa_add_new_function): New function.
2967 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2968 Register/deregister holder.
2970 2011-04-27 Richard Guenther <rguenther@suse.de>
2972 PR tree-optimization/48772
2973 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2975 2011-04-27 Richard Guenther <rguenther@suse.de>
2977 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2978 TARGET_MEM_REF handling.
2980 2011-04-27 Nick Clifton <nickc@redhat.com>
2982 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2983 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2984 (REG_CLASS_NAMES): Likewise.
2985 (REG_CLASS_CONTENTS): Likewise.
2986 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2987 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2988 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2989 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2990 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2991 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2992 duplicate register classes.
2993 (frv_class_likely_spilled_p): Likewise.
2994 (frv_register_move_cost): Likewise.
2996 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2997 end of the regno_reg_class array.
2999 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3002 * c-typeck.c (build_binary_op): Don't wrap arguments if
3003 int_operands is true.
3005 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3008 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3009 targetm.calls.must_pass_in_stack for void type.
3011 2011-04-26 Jan Hubicka <jh@suse.cz>
3013 * cgraphbuild.c (build_cgraph_edges): Update call
3014 of cgraph_create_edge and cgraph_create_indirect_edge.
3015 * cgraph.c (cgraph_create_edge_including_clones,
3016 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3017 cgraph_update_edges_for_call_stmt_node): Do not take nest
3018 argument; do not initialize call_stmt_size/time.
3019 (dump_cgraph_node): Do not dump nest.
3020 (cgraph_clone_edge): Do not take loop_nest argument;
3021 do not propagate it; do not clone call_stmt_size/time.
3022 (cgraph_clone_node): Likewise.
3023 (cgraph_create_virtual_clone): Update.
3024 * cgraph.h (struct cgraph_edge): Remove
3025 call_stmt_size/call_stmt_time/loop_nest.
3026 (cgraph_create_edge, cgraph_create_indirect_edge,
3027 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3029 * tree-emutls.c (gen_emutls_addr): Update.
3030 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3031 loop_nest; handle indirect calls, too.
3032 (clone_inlined_nodes): Do not care about updating inline summaries.
3033 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3034 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3035 stream call_stmt_size/call_stmt_time/loop_nest.
3036 * ipa-inline.c (edge_badness): Update.
3037 (ipa_inline): dump summaries after inlining.
3038 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3040 (inline_edge_summary): New function.
3041 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3042 (inline_edge_removal_hook): Handle edge summaries.
3043 (inline_edge_duplication_hook): New hook.
3044 (inline_summary_alloc): Alloc hooks.
3045 (initialize_growth_caches): Do not register removal hooks.
3046 (free_growth_caches); Do not free removal hook.
3047 (dump_inline_edge_summary): New function.
3048 (dump_inline_summary): Use it.
3049 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3050 (inline_update_callee_summaries): New function.
3051 (inline_merge_summary): Use it.
3052 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3053 (read_inline_edge_summary): New function.
3054 (inline_read_section): Use it.
3055 (write_inline_edge_summary): New function.
3056 (inline_write_summary): Use it.
3057 (inline_free_summary): Free edge new holders.
3058 * tree-inline.c (copy_bb): Update.
3060 2011-04-26 Jason Merrill <jason@redhat.com>
3062 * tree-eh.c (lower_try_finally_switch): Create the label along with
3063 the CASE_LABEL_EXPR.
3065 2011-04-26 David S. Miller <davem@davemloft.net>
3066 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3068 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3069 * configure: Regenerate.
3071 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3074 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3076 (VEC_reduc): New code iterator and splitters for vector reduction.
3077 (VEC_reduc_name): Ditto.
3078 (VEC_reduc_rtx): Ditto.
3079 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3080 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3082 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3083 support for extracting SF on VSX.
3085 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3086 generating xscvspdp.
3087 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3088 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3089 double add, minimum, maximum vector reduction.
3090 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3091 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3092 optimize double vector reduction.
3093 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3095 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3097 * config/fr30/fr30.h (inhibit_libc): Don't define.
3098 * config/m32r/m32r-protos.h: Correct comment.
3099 * config/v850/v850.h (GHS_default_section_names,
3100 GHS_current_section_names): Use tree, not union tree_node *.
3102 2011-04-26 Xinliang David Li <davidxl@google.com>
3104 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3105 * c-family/c-opts.c (c_common_handle_option): Set
3106 warn_maybe_uninitialized.
3107 * opts.c (common_handle_option): Ditto.
3108 * common.opt: New option.
3109 * tree-ssa.c (warn_uninit): Add one more parameter.
3110 (warn_uninitialized_var): Pass warning code.
3111 * tree-flow.h: Interface change.
3114 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3116 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3117 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3118 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3120 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3122 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3123 * config/mips/mips.opt (mmips-tfile): Remove.
3125 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3126 mips-tdump reference to ...
3127 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3128 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3129 reference by Tru64 UNIX.
3131 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3134 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3135 is error_mark_node, set value to NULL.
3137 PR tree-optimization/48734
3138 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3139 if return value from maybe_fold_*_comparsions isn't something
3140 the code is prepared to handle.
3142 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3144 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3146 (ext_QIreg_nomode_operands): Remove.
3147 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3151 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3153 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3155 2011-04-26 Richard Guenther <rguenther@suse.de>
3157 * c-typeck.c (build_unary_op): Do not expand array-refs via
3158 pointer arithmetic. Only adjust qualifiers for function types.
3160 2011-04-26 Richard Guenther <rguenther@suse.de>
3163 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3164 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3165 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3166 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3168 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3170 * doc/extend.texi: Document __underlying_type.
3172 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3174 * config/rs6000/titan.md (automata_option "progress"): Remove.
3176 2011-04-25 Jeff Law <law@redhat.com>
3178 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3180 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3182 * system.h (ENUM_BITFIELD): Remove.
3184 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3185 Eric Botcazou <ebotcazou@adacore.com>
3187 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3188 for STORE_FLAG_VALUE==-1 case.
3190 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3193 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3194 LEGITIMATE_PIC_OPERAND_P.
3196 2011-04-24 Jan Hubicka <jh@suse.cz>
3198 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3200 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3201 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3202 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3203 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3204 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3205 Sanity check predicate length.
3206 (remap_predicate): Likewise; sanity check jump functions.
3207 (inline_read_section, inline_write_summary): Sanity check
3210 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3213 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3214 __is_literal_type, and __is_trivial; update throughout about
3215 possibly cv-qualified void types.
3217 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3219 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3220 testsuite and make it version agnostic.
3222 2011-04-22 Jan Hubicka <jh@suse.cz>
3224 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3226 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3229 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3230 to VOID_TYPE even around MODIFY_EXPR.
3232 2011-04-22 Mike Stump <mikestump@comcast.net>
3234 * gensupport.c (read_md_rtx): Fix typo in comment.
3235 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3238 2011-04-22 Jan Hubicka <jh@suse.cz>
3240 * gengtype.c (open_base_files): Add ipa-inline.h include.
3241 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3242 ipa-prop.c; update all uses.
3243 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3244 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3245 merge summary of inlined function into former caller.
3246 * ipa-inline.c (max_benefit): Remove.
3247 (edge_badness): Compensate for removal of benefits.
3248 (update_caller_keys): Use
3249 reset_node_growth_cache/reset_edge_growth_cache.
3250 (update_callee_keys): Likewise.
3251 (update_all_callee_keys): Likewise.
3252 (inline_small_functions): Do not collect max_benefit; do not reset
3253 estimated_growth; call free_growth_caches and initialize_growth_caches.
3254 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3255 struct size_time_entry): New structures.
3256 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3257 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3258 and estimated_growth.
3259 (edge_growth_cache_entry): New structure.
3260 (node_growth_cache, edge_growth_cache): New global vars.
3261 (estimate_growth): Turn into inline.
3262 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3263 initialize_growth_caches, free_growth_caches): Declare.
3264 (estimate_edge_growth): Rewrite.
3265 (estimate_edge_time): Implement as inline cache lookup.
3266 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3268 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3269 (NUM_CONDITIONS): New constant.
3270 (predicate_conditions): New enum.
3271 (IS_NOT_CONSTANT): New constant.
3272 (edge_removal_hook_holder): New var.
3273 (node_growth_cache, edge_growth_cache): New global vars.
3274 (true_predicate, single_cond_predicate, false_predicate,
3275 not_inlined_predicate, add_condition, add_clause, and_predicates,
3276 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3277 dump_clause, dump_predicate, account_size_time,
3278 evaulate_conditions_for_edge): New functions.
3279 (inline_summary_alloc): Move to heap.
3280 (inline_node_removal_hook): Clear condition and entry vectors.
3281 (inline_edge_removal_hook): New function.
3282 (initialize_growth_caches, free_growth_caches): New function.
3283 (dump_inline_summary): Update.
3284 (edge_execution_predicate): New function.
3285 (will_be_nonconstant_predicate): New function.
3286 (estimate_function_body_sizes): Compute BB and constantness predicates.
3287 (compute_inline_parameters): Do not clear estimated_growth.
3288 (estimate_edge_size_and_time): New function.
3289 (estimate_calls_size_and_time): New function.
3290 (estimate_callee_size_and_time): New function.
3291 (remap_predicate): New function.
3292 (inline_merge_summary): New function.
3293 (do_estimate_edge_time): New function based on...
3294 (estimate_edge_time): ... this one.
3295 (do_estimate_edge_growth): New function.
3296 (do_estimate_growth): New function based on....
3297 (estimate_growth): ... this one.
3298 (inline_analyze_function): Analyze after deciding on jump functions.
3299 (inline_read_section): New function.
3300 (inline_read_summary): Use it.
3301 (inline_write_summary): Write all the new data.
3302 * ipa-prop.c (ipa_get_param_decl_index): Export.
3303 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3304 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3306 (ipa_get_lattice): Move here from ipa-cp.c
3307 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3308 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3309 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3310 cgraph_edge_inlinable_p): Remove.
3311 * cgraphunit.c: Include ipainline.h
3312 (cgraph_process_new_functions): Update call of
3313 compute_inline_parameters.
3315 2011-04-22 Richard Guenther <rguenther@suse.de>
3317 * tree.c (build_int_cst): Properly create canonicalized integer
3319 (build_int_cst_type): Remove scary comments.
3321 2011-04-22 Xinliang David Li <davidxl@google.com>
3323 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3324 by default when -Wno-error is not specified.
3325 * opts-global.c (decode_options): Remove call to
3326 control_warning_options.
3328 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3330 PR tree-optimization/48717
3331 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3332 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3334 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3336 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3337 definition where used.
3339 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3342 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3343 TREE_STATIC variables declared inside of some OpenMP construct.
3345 2011-04-22 Martin Jambor <mjambor@suse.cz>
3348 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3350 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3353 * c-typeck.c (pop_init_level): Do not warn about initializing
3356 2011-04-22 Alan Modra <amodra@gmail.com>
3358 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3359 when returning call_cookie.
3360 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3361 pointers, to functions with no more vector args than the current
3362 function, and some non-local calls for ABI_V4.
3363 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3364 sibcall_nonlocal_aix64): Combine to ..
3365 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3366 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3367 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3368 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3369 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3371 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3372 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3373 sibcall_value_symbolic_64): Delete.
3375 2011-04-21 Xinliang David Li <davidxl@google.com>
3377 * cgraph.h: Remove pid.
3378 * cgraph.c: Remove pid.
3379 * value-prof.c (init_node_map): New function.
3380 (del_node_map): New function.
3381 (find_func_by_funcdef_no): New function.
3382 (gimple_ic_transform): Call new function.
3383 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3384 * function.c (get_last_funcdef_no): New function.
3385 * function.h (get_last_funcdef_no): New function.
3386 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3387 to libgcov function.
3388 (tree-profiling): Call node map init and delete function.
3390 2011-04-21 Ian Lance Taylor <iant@google.com>
3392 * godump.c (go_format_type): Use exported Go name for anonymous
3395 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3397 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3398 Call builtin_function_type_list instead of builtin_function_type.
3399 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3401 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3403 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3404 build_function_type_list instead of build_function_type.
3405 Delete variable `endlink'.
3407 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3409 * config/s390/s390.c (s390_init_builtins): Call
3410 build_function_type_list instead of build_function_type.
3412 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3414 * config/ia64/ia64.c (ia64_init_builtins): Call
3415 build_function_type_list instead of builtin_function_type.
3417 2011-04-21 Easwaran Raman <eraman@google.com>
3419 * cfgexpand.c (stack_var): Remove OFFSET...
3420 (add_stack_var): ...and its reference here...
3421 (expand_stack_vars): ...and here.
3422 (stack_var_cmp): Sort by descending order of size.
3423 (partition_stack_vars): Change heuristic.
3424 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3425 (dump_stack_var_partition): Add newline after each partition.
3427 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3428 Jeff Law <law@redhat.com>
3430 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3431 * gengtype.c (matching_file_name_substitute): Likewise.
3433 2011-04-21 Richard Guenther <rguenther@suse.de>
3436 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3438 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3440 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3442 2011-04-21 Richard Guenther <rguenther@suse.de>
3444 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3447 2011-04-21 Richard Guenther <rguenther@suse.de>
3449 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3450 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3451 Use DECL_P, not SSA_VAR_P.
3452 (ptr_derefs_may_alias_p): Likewise.
3453 (ptr_deref_may_alias_ref_p_1): Likewise.
3454 (decl_refs_may_alias_p): Likewise.
3455 (refs_may_alias_p_1): Likewise.
3456 (ref_maybe_used_by_call_p_1): Likewise.
3457 (call_may_clobber_ref_p_1): Likewise.
3458 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3459 are either MEM_REF or TARGET_MEM_REF.
3460 (indirect_refs_may_alias_p): Likewise.
3461 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3462 for MEM_EXPR of indirect calls.
3464 2011-04-21 Tristan Gingold <gingold@adacore.com>
3466 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3467 (dst_file_info_struct): Remove flen field.
3468 (lookup_filename): Remove code that set flen field.
3470 2011-04-21 Tristan Gingold <gingold@adacore.com>
3472 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3474 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3477 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3478 vec_extract and vec_concat for non-SSE4_1 targets.
3480 2011-04-21 Richard Guenther <rguenther@suse.de>
3482 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3485 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3487 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3489 (FILE): Don't undefine.
3491 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3493 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3495 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3497 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3498 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3499 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3501 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3502 definitions where used.
3503 * config/microblaze/microblaze.h (struct microblaze_args): Use
3504 rtx, not struct rtx_def *.
3505 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3507 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3508 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3509 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3510 not struct rtx_def *.
3511 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3513 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3515 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3517 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3519 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3520 operand_equal_p to compare DR_BASE_ADDRESSes.
3521 (vect_check_interleaving): Likewise.
3523 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3526 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3527 for all Neon struct constants.
3529 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3531 * target.def (legitimate_constant_p): New hook.
3532 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3533 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3534 * doc/tm.texi: Regenerate.
3535 * hooks.h (hook_bool_mode_rtx_true): Declare.
3536 * hooks.c (hook_bool_mode_rtx_true): Define.
3537 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3538 * calls.c (precompute_register_parameters): Replace uses of
3539 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3540 (emit_library_call_value_1): Likewise.
3541 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3542 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3543 * ira-costs.c (scan_one_insn): Likewise.
3544 * recog.c (general_operand, immediate_operand): Likewise.
3545 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3546 * reload1.c (init_eliminable_invariants): Likewise.
3548 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3550 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3551 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3553 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3554 * config/alpha/predicates.md (input_operand): Update call to
3555 alpha_legitimate_constant_p.
3557 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3558 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3559 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3560 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3561 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3562 (arm_legitimate_constant_p): New functions.
3563 (arm_cannot_force_const_mem): Make static.
3565 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3567 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3568 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3569 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3570 instead of bfin_legitimate_constant_p.
3571 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3572 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3574 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3576 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3578 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3579 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3580 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3581 (frv_legitimate_constant_p): Make static. Add a mode argument.
3583 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3584 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3585 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3587 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3588 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3589 * config/i386/i386.c (legitimate_constant_p): Rename to...
3590 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3592 (ix86_cannot_force_const_mem): Update accordingly.
3593 (ix86_legitimate_address_p): Likewise.
3594 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3595 * config/i386/i386.md: Update commentary.
3597 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3598 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3599 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3600 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3602 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3604 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3605 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3606 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3607 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3609 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3610 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3611 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3613 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3614 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3615 (m32r_legitimate_constant_p): New function.
3617 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3618 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3619 LEGITIMATE_CONSTANT_P.
3620 (LEGITIMATE_CONSTANT_P): Delete.
3621 * config/m68k/m68k.c (m68k_expand_prologue): Call
3622 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3623 (m68k_legitimate_constant_p): New function.
3624 * config/m68k/m68k.md: Update comments.
3626 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3627 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3628 (mcore_legitimate_constant_p): New function.
3630 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3631 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3632 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3633 Add a mode argument.
3634 (mep_legitimate_address): Update accordingly.
3635 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3637 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3639 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3640 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3641 static. Check OP's mode for VOIDmode.
3642 (microblaze_legitimate_constant_p): New function.
3643 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3645 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3646 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3647 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3648 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3649 * config/mips/predicates.md: Update comments.
3651 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3652 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3653 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3654 (mmix_legitimate_constant_p): Make static, return a bool, and take
3656 (mmix_print_operand_address): Update accordingly.
3658 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3660 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3661 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3662 static. Add a mode argument.
3663 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3665 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3667 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3668 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3669 (pa_legitimate_constant_p): New function.
3671 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3673 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3674 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3675 (pdp11_legitimate_constant_p): New function.
3677 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3678 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3679 (rs6000_legitimate_constant_p): New function.
3681 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3682 (rx_legitimate_constant_p): ...this.
3683 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3684 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3685 (rx_legitimate_constant_p): ...this.
3686 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3687 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3689 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3690 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3691 * config/s390/s390.c (legitimate_constant_p): Rename to...
3692 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3693 and add a mode argument.
3694 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3696 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3698 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3699 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3700 (sh_legitimate_constant_p): New function.
3702 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3703 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3704 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3705 (legitimate_constant_p): Rename to...
3706 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3708 (constant_address_p): Update accordingly.
3710 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3711 argument and return a bool.
3712 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3713 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3714 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3715 (spu_rtx_costs): Update accordingly.
3716 * config/spu/predicates.md (vec_imm_operand): Likewise.
3718 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3720 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3721 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3722 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3724 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3725 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3726 * config/vax/vax.c (legitimate_constant_p): Likewise.
3728 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3729 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3730 (xtensa_legitimate_constant_p): New function.
3732 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3734 * target.def (cannot_force_const_mem): Add a mode argument.
3735 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3736 * doc/tm.texi: Regenerate.
3737 * hooks.h (hook_bool_mode_rtx_false): Declare.
3738 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3739 (hook_bool_mode_const_rtx_true): Likewise.
3740 (hook_bool_mode_rtx_false): New function.
3741 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3742 to be non-VOID. Update call to cannot_force_const_mem.
3743 (find_reloads): Update accordingly.
3744 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3745 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3747 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3748 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3749 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3750 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3751 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3752 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3753 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3754 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3755 (m68k_cannot_force_const_mem): ...this new function.
3756 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3758 (mips_const_insns, mips_legitimize_const_move): Update calls.
3759 (mips_secondary_reload_class): Likewise.
3760 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3761 (pa_cannot_force_const_mem): ...this new function.
3762 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3763 (rs6000_cannot_force_const_mem): ...this new function.
3764 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3766 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3767 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3769 (xtensa_cannot_force_const_mem): ...this new function.
3771 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3773 * config/mips/mips.c (mips16_build_function_stub): Call
3774 build_function_type_list instead of build_function_type.
3775 (mips16_build_call_stub): Likewise.
3777 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3779 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3780 instead of build_function_type.
3782 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3784 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3785 instead of build_function_type.
3787 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3790 * config/i386/i386.md (insv): Change operand 0 constraint to
3791 "register_operand". Change operand 1 and 2 constraint to
3792 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3793 * config/i386/sse.md (sse4_1_pinsrb): Export.
3794 (sse2_pinsrw): Ditto.
3795 (sse4_1_pinsrd): Ditto.
3796 (sse4_1_pinsrq): Ditto.
3797 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3798 * config/i386/i386.c (ix86_expand_pinsr): New.
3800 2011-04-20 Easwaran Raman <eraman@google.com>
3802 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3803 containing union type only with -fstrict-aliasing.
3805 2011-04-20 Jim Meyering <meyering@redhat.com>
3807 Remove useless if-before-free tests.
3808 * calls.c (expand_call, save_area): Likewise.
3809 * cfgcleanup.c (try_forward_edges): Likewise.
3810 * collect2.c (collect_execute): Likewise.
3811 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3812 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3813 * coverage.c (coverage_checksum_string): Likewise.
3814 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3815 * cselib.c (cselib_init): Likewise.
3816 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3817 (df_set_clean_cfg): Likewise.
3818 * function.c (free_after_compilation): Likewise.
3819 * gcc.c (do_spec_1, main): Likewise.
3820 * gcov.c (create_file_names): Likewise.
3821 * gensupport.c (identify_predicable_attribute): Likewise.
3822 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3823 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3824 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3825 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3826 * ipa-pure-const.c (local_pure_const): Likewise.
3827 * ipa-reference.c (propagate): Likewise.
3828 * ira-costs.c (free_ira_costs): Likewise.
3829 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3830 * matrix-reorg.c (mat_free): Likewise.
3831 * prefix.c (get_key_value): Likewise.
3832 * profile.c (compute_value_histograms): Likewise.
3833 * reload1.c (free_reg_equiv): Likewise.
3834 * sched-deps.c (free_deps): Likewise.
3835 * sel-sched-ir.c (fence_clear): Likewise.
3836 * sese.c (set_rename, if_region_set_false_region): Likewise.
3837 * tree-data-ref.c (free_rdg): Likewise.
3838 * tree-eh.c (lower_try_finally): Likewise.
3839 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3840 * tree-ssa-live.c (delete_var_map): Likewise.
3841 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3842 * tree-ssa-pre.c (phi_trans_add): Likewise.
3844 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3846 PR tree-optimization/48611
3847 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3848 beyond ERT_MUST_NOT_THROW region.
3850 2011-04-20 Catherine Moore <clm@codesourcery.com>
3852 * config/mips/mips.opt (mfix-24k): New.
3853 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3854 * config/mips/mips.md (length): Increase by 4 for stores if
3856 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3857 all noreorder if fixing 24K errata.
3858 * doc/invoke.texi: Document mfix-24k.
3860 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3862 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3863 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3865 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3867 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3868 (const_ok_for_op): ... to here.
3870 2011-04-20 Kai Tietz <ktietz@redhat.com>
3872 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3873 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3875 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3877 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3879 2011-04-20 Richard Guenther <rguenther@suse.de>
3881 PR tree-optimization/47892
3882 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3885 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3887 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3889 2011-04-20 Tristan Gingold <gingold@adacore.com>
3891 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3893 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3897 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3898 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3899 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3900 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3901 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3903 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3906 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3907 (avr_asm_named_section, avr_asm_output_aligned_common,
3908 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3909 New functions to update...
3910 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3911 (avr_asm_init_sections): Overwrite section callbacks for
3912 data_section, bss_section.
3913 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3915 (avr_file_end): ...here.
3917 2011-04-20 Richard Guenther <rguenther@suse.de>
3920 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3921 objects and types here. Adjust for their offset before comparing.
3923 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3925 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3928 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3930 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3931 (GIMPLE_H): Include $(INTERNAL_FN_H).
3932 (OBJS-common): Add internal-fn.o.
3933 (internal-fn.o): New rule.
3934 * internal-fn.def: New file.
3935 * internal-fn.h: Likewise.
3936 * internal-fn.c: Likewise.
3937 * gimple.h: Include internal-fn.h.
3938 (GF_CALL_INTERNAL): New gf_mask.
3939 (gimple_statement_call): Put fntype into a union with a new
3941 (gimple_build_call_internal): Declare.
3942 (gimple_build_call_internal_vec): Likewise.
3943 (gimple_call_same_target_p): Likewise.
3944 (gimple_call_internal_p): New function.
3945 (gimple_call_internal_fn): Likewise.
3946 (gimple_call_fntype): Return null for internal calls.
3947 (gimple_call_set_fntype): Assert that the function is not internal.
3948 (gimple_call_set_fn): Likewise.
3949 (gimple_call_set_fndecl): Likewise.
3950 (gimple_call_set_internal_fn): New function.
3951 (gimple_call_addr_fndecl): Handle null functions.
3952 (gimple_call_return_type): Likewise null types.
3953 * gimple.c (gimple_build_call_internal_1): New function.
3954 (gimple_build_call_internal): Likewise.
3955 (gimple_build_call_internal_vec): Likewise.
3956 (gimple_call_same_target_p): Likewise.
3957 (gimple_call_flags): Handle calls to internal functions.
3958 (gimple_call_fnspec): New function.
3959 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3960 (gimple_has_side_effects): Handle null functions.
3961 (gimple_rhs_has_side_effects): Likewise.
3962 (gimple_call_copy_skip_args): Handle calls to internal functions.
3963 * cfgexpand.c (expand_call_stmt): Likewise.
3964 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3965 * gimple-fold.c (gimple_fold_call): Handle null functions.
3966 (gimple_fold_stmt_to_constant_1): Don't fold
3967 calls to internal functions.
3968 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3970 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3971 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3972 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3973 (do_warn_unused_result): Likewise.
3974 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3975 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3976 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3977 the target of a call.
3978 (initialize_hash_element): Update accordingly.
3979 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3980 (iterative_hash_hashable_expr): Handle calls to internal functions.
3981 (print_expr_hash_elt): Likewise.
3982 * tree-ssa-pre.c (can_value_number_call): Likewise.
3983 (eliminate): Handle null functions.
3984 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3985 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3986 (find_func_aliases): Likewise.
3987 * value-prof.c (gimple_ic_transform): Likewise.
3988 (gimple_indirect_call_to_profile): Likewise.
3989 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3990 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3992 2011-04-19 Jan Hubicka <jh@suse.cz>
3994 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3995 * ipa-inline.c (inline_small_functions): Compute summaries first,
3996 populate heap later.
3998 2011-04-19 Jan Hubicka <jh@suse.cz>
4000 * cgraph.h (save_inline_function_body): Remove.
4001 * ipa-inline-transform.c: New file, broke out of...
4002 * ipa-inline.c: ... this one; Update toplevel comment.
4003 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4005 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4006 (cgraph_mark_inline_edge): Rename to inline_call; move to
4007 ipa-inline-transform.c.
4008 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4009 move to ipa-inline-transform.c
4010 (recursive_inlining, inline_small_functions, flatten_function,
4011 ipa_inline, inline_always_inline_functions,
4012 early_inline_small_functions): Update.
4013 (inline_transform): Move to ipa-inline-transform.c.
4014 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4016 * Makefile.in (ipa-inline-transform.o): New file.
4017 * cgraphunit.c (save_inline_function_body): Move to
4018 ipa-inline-transform.c
4020 2011-04-19 DJ Delorie <dj@redhat.com>
4022 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4023 registers if we already know there aren't any.
4024 (m32c_emit_epilogue): Don't emit a barrier here.
4025 (m32c_emit_eh_epilogue): Likewise.
4026 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4027 operands at expand time.
4028 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4030 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4031 duplicates. Provide aliases instead.
4032 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4033 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4036 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4038 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4039 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4040 (general_or_i64_p, sparc_register_move_cost): New function.
4042 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4044 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4045 Add lynx, mipssde. Sort table.
4047 2011-04-19 Xinliang David Li <davidxl@google.com>
4049 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4052 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4055 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4056 is a SUBREG with non-MODE_INT mode inside of it.
4058 2011-04-19 Martin Jambor <mjambor@suse.cz>
4060 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4061 also according to actual contants.
4062 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4063 (gimple_fold_call): Use it.
4064 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4066 2011-04-19 Martin Jambor <mjambor@suse.cz>
4068 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4069 non-pointer assignments.
4071 2011-04-19 Martin Jambor <mjambor@suse.cz>
4073 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4074 account anc_offset and otr_type from the indirect edge info.
4075 * ipa-prop.c (get_ancestor_addr_info): New function.
4076 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4077 get_ancestor_addr_info, call it.
4078 (ipa_note_param_call): Do not initialize information about polymorphic
4079 calls, return the indirect call graph edge. Remove the last
4080 parameter, adjust all callers.
4081 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4082 parameters. Initialize polymorphic information in the indirect edge.
4084 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4087 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4088 the types if they have different enumeration identifiers.
4090 2011-04-19 Jan Hubicka <jh@suse.cz>
4092 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4093 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4094 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4095 (optimize_function_for_size_p) ... here.
4097 2011-04-19 Richard Guenther <rguenther@suse.de>
4100 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4103 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4105 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4106 if DECL_NO_INLINE_WARNING_P is set on the function.
4108 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4111 * reload1.c (inc_for_reload): Return void. All callers changed.
4112 (emit_input_reload_insns): Don't try to delete previous output
4113 reloads to a register, or record spill_reg_store for autoincs.
4115 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4117 * gengtype.h: Updated copyright year.
4118 (struct input_file_st): Add inpisplugin field.
4119 (type_fileloc): New function.
4121 (write_typed_struct_alloc_def): Add gcc_assert.
4122 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4123 (write_typed_alloc_defns): Don't output for plugin files.
4124 (input_file_by_name): Clear inpisplugin field.
4125 (main): Set inpisplugin field for plugin files.
4127 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4129 * gengtype-state.c (string_eq): New.
4130 (read_state): Use string_eq instead of strcmp when creating the
4133 2011-04-19 Wei Guozhi <carrot@google.com>
4136 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4137 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4139 * config/arm/constraints.md (Uu): New constraint.
4140 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4142 2011-04-19 Tristan Gingold <gingold@adacore.com>
4144 * config.gcc (-*-*-*vms): Added.
4145 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4147 * config/vms/vms-ld.c: New file.
4148 * config/vms/vms-ar.c: New file.
4149 * config/vms/t-vmsnative: New file.
4151 2011-04-18 Xinliang David Li <davidxl@google.com>
4153 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4155 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4158 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4159 if TREE_TYPE (v) is non-NULL.
4161 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4162 gimple_get_virt_mehtod_for_binfo.
4163 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4164 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4166 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4168 2011-04-18 Michael Matz <matz@suse.de>
4169 Steve Ellcey <sje@cup.hp.com>
4171 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4172 use its mode as source mode if it isn't VOIDmode.
4174 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4176 * doc/passes.texi: Fill crossref nodes.
4178 2011-04-18 Jim Meyering <meyering@redhat.com>
4180 Fix doubled-word typos in comments and strings
4181 * config/alpha/vms-unwind.h: s/for for/for/
4182 * config/arm/unwind-arm.h: Likewise.
4183 * config/microblaze/microblaze.c: Likewise.
4184 * config/sh/constraints.md: s/in in/in/
4185 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4187 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4189 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4190 (AVX_FLOAT_MODE_P): Ditto.
4191 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4192 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4193 (AVX_VEC_FLOAT_MODE_P): Ditto.
4194 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4195 (UNSPEC_MASKSTORE): Ditto.
4196 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4197 Merge from <sse>_movmsk<ssemodesuffix> and
4198 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4199 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4201 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4202 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4203 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4205 2011-04-18 Jan Hubicka <jh@suse.cz>
4207 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4209 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4210 (want_inline_function_called_once_p): Break out the logic from
4212 (edge_badness): Ensure that profile is not misupdated.
4213 (lookup_recursive_calls): Prioritize by call frequencies.
4214 (inline_small_functions): Move program size estimates here;
4215 actually process whole queue even when unit growth has been
4216 met. (to properly compute inline_failed reasons and for the
4217 case unit size decrease.) Revisit comments on recursive inlining.
4218 (ipa_inline): Remove unit summary code; first inline hot calls
4219 of functions called once, cold calls next.
4220 (order, nnodes): Remove unused variables.
4221 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4222 (GTFILES): Remove ipa-inline.c
4223 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4225 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4227 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4229 2011-04-18 Jie Zhang <jie@codesourcery.com>
4230 Richard Earnshaw <rearnsha@arm.com>
4232 * arm.c (neon_builtin_type_bits): Remove.
4233 (typedef enum neon_builtin_mode): New.
4234 (T_MAX): Don't define.
4235 (typedef enum neon_builtin_datum): Remove bits, codes[],
4236 num_vars and base_fcode. Add mode, code and fcode.
4237 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4238 VAR10): Change accordingly.
4239 (neon_builtin_data[]): Change accordingly
4240 (arm_init_neon_builtins): Change accordingly.
4241 (neon_builtin_compare): Remove.
4242 (locate_neon_builtin_icode): Remove.
4243 (arm_expand_neon_builtin): Change accordingly.
4245 * arm.h (enum arm_builtins): Move to ...
4246 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4248 * arm.c (arm_builtin_decl): Declare.
4249 (TARGET_BUILTIN_DECL): Define.
4250 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4251 (arm_builtin_decls[]): New.
4252 (arm_init_neon_builtins): Store builtin declarations in
4253 arm_builtin_decls[].
4254 (arm_init_tls_builtins): Likewise.
4255 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4256 (arm_builtin_decl): New.
4258 2011-04-18 Richard Guenther <rguenther@suse.de>
4260 * tree.c (upper_bound_in_type): Build properly canonicalized
4262 (lower_bound_in_type): Likewise.
4264 2011-04-18 Richard Guenther <rguenther@suse.de>
4266 * gimple.h (gimple_call_addr_fndecl): New function.
4267 (gimple_call_fndecl): Use it.
4268 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4270 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4271 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4273 2011-04-18 Richard Guenther <rguenther@suse.de>
4276 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4278 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4281 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4282 DECL_IN_CONSTANT_POOL without RTL.
4284 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4285 Ira Rosen <ira.rosen@linaro.org>
4288 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4289 to match neon_vzip/vuzp/vtrn_internal.
4290 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4291 outputs explicitly dependent on both inputs.
4292 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4294 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4296 PR tree-optimization/48616
4297 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4298 whether the shift is by scalar or vector based on whether all SLP
4299 scalar stmts have the same rhs.
4301 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4303 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4306 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4308 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4311 2011-04-17 Jan Hubicka <jh@suse.cz>
4313 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4314 * cgrpahunit.c (cgraph_finalize_function): Do not set
4315 finalized_by_frontend.
4316 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4317 finalized_by_frontend.
4319 2011-04-17 Jan Hubicka <jh@suse.cz>
4321 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4322 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4323 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4324 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4326 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4328 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4330 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4333 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4334 is non-null before accessing it.
4335 (input_cgraph): Remove trailing spaces.
4337 2011-04-17 Revital Eres <revital.eres@linaro.org>
4339 * params.def (sms-min-sc): New param flag.
4340 * modulo-sched.c (sms_schedule): Use it.
4341 * doc/invoke.texi (sms-min-sc): Document it.
4343 2011-04-17 Jan Hubicka <jh@suse.cz>
4345 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4346 present, also set gimple_call_set_cannot_inline.
4347 * ipa-inline.c: Update toplevel comment.
4349 (cgraph_clone_inlined_nodes): Fix linebreaks.
4350 (cgraph_check_inline_limits): Restructure to ...
4351 (caller_growth_limits): ... this one; be more tolerant
4352 on growth in nested inline chains; add explanatory comment;
4353 fix stack accounting thinko introduced by previous patch.
4354 (cgraph_default_inline_p): Remove.
4355 (report_inline_failed_reason): New function.
4356 (can_inline_edge_p): New function.
4357 (can_early_inline_edge_p): New function.
4358 (leaf_node_p): Move upwards in file.
4359 (want_early_inline_function_p): New function.
4360 (want_inline_small_function_p): New function.
4361 (want_inline_self_recursive_call_p): New function.
4362 (cgraph_edge_badness): Rename to ...
4363 (edge_badness) ... this one; fix linebreaks.
4364 (update_edge_key): Update call of edge_baddness; add
4365 detailed dump about queue updates.
4366 (update_caller_keys): Use can_inline_edge_p and
4367 want_inline_small_function_p.
4368 (cgraph_decide_recursive_inlining): Rename to...
4369 (recursive_inlining): Use can_inline_edge_p and
4370 want_inline_self_recursive_call_p; simplify and remove no longer
4372 (cgraph_set_inline_failed): Remove.
4373 (add_new_edges_to_heap): Use can_inline_edge_p and
4374 want_inline_small_function_p.
4375 (cgraph_decide_inlining_of_small_functions): Rename to ...
4376 (inline_small_functions): ... this one; cleanup; use
4377 can/want predicates; cleanup debug ouput; work edges till fibheap
4378 is exhausted and do not stop once unit growth is reached; remove
4379 later loop processing remaining edges.
4380 (cgraph_flatten): Rename to ...
4381 (flatten_function): ... this one; use can_inline_edge_p
4382 and can_early_inline_edge_p predicates.
4383 (cgraph_decide_inlining): Rename to ...
4384 (ipa_inline): ... this one; remove unreachable nodes before
4385 inlining functions called once; simplify the pass.
4386 (cgraph_perform_always_inlining): Rename to ...
4387 (inline_always_inline_functions): ... this one; use
4388 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4389 (cgraph_decide_inlining_incrementally): Rename to ...
4390 (early_inline_small_functions): ... this one; simplify
4391 using new predicates; cleanup; make dumps prettier.
4392 (cgraph_early_inlining): Rename to ...
4393 (early_inliner): newer inline regular functions into always-inlines;
4394 fix updating of call stmt summaries.
4395 (pass_early_inline): Update for new names.
4396 (inline_transform): Fix formating.
4397 (gate_cgraph_decide_inlining): Rename to ...
4398 (pass_ipa_inline): ... this one.
4399 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4400 * ipa-inline-analysis.c (dump_inline_summary): Update.
4401 (compute_inline_parameters): Do not compute disregard_inline_limits;
4402 look for mismatching arguments.
4403 (estimate_growth): Fix handlig of non-trivial self recursion.
4404 (inline_read_summary): Do not read info->disregard_inline_limits.
4405 (inline_write_summary): Do not write info->disregard_inline_limits.
4406 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4407 and move all checks into can_inline_edge_p predicate; re-enable code
4408 comparing optimization levels.
4409 (expand_call_inline): Do not test inline_forbidden_into_p.
4410 * Makefile.in (ipa-inline.o): Update arguments.
4412 2011-04-17 Revital Eres <revital.eres@linaro.org>
4414 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4416 2011-04-17 Revital Eres <revital.eres@linaro.org>
4418 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4420 2011-04-17 Michael Matz <matz@suse.de>
4422 PR tree-optimization/48622
4424 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4425 in same order as they're written.
4427 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4429 * config/pa/predicates.md: Reorganize and simplify predicates.
4430 Eliminate duplicate code checks.
4431 (arith_operand): Rename to arith14_operand
4432 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4433 * config/pa/pa.md: Use renamed operands.
4434 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4435 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4436 arith11_operand, adddi3_operand, indexed_memory_operand,
4437 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4438 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4439 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4440 move_dest_operand, move_src_operand, prefetch_cc_operand,
4441 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4442 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4443 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4444 div_operand, int5_operand, movb_comparison_operator,
4445 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4446 arith_double_operand, ireg_operand, lhs_lshift_operand,
4447 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4448 integer_store_memory_operand): Likewise.
4449 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4450 (integer_store_memory_operand, read_only_operand,
4451 function_label_operand, borx_reg_operand,
4452 non_hard_reg_operand): Likewise.
4453 (eq_neq_comparison_operator): Delete unused operator.
4454 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4455 function_label_operand.
4456 (emit_move_sequence): Likewise.
4458 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4460 * config/i386/sse.md (sseunpackmode): New mode attribute.
4461 (ssepackmode): Ditto.
4462 (vec_pack_trunc_<mode>): Macroize expander from
4463 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4464 (vec_unpacks_lo_<mode>): Macroize expander from
4465 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4466 (vec_unpacks_hi_<mode>): Macroize expander from
4467 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4468 (vec_unpacku_lo_<mode>): Macroize expander from
4469 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4470 (vec_unpacku_hi_<mode>): Macroize expander from
4471 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4472 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4473 ix86_expand_sse4_unpack.
4474 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4476 2011-04-16 Jan Hubicka <jh@suse.cz>
4478 * cgraphbuild.c: Include ipa-inline.h.
4479 (reset_inline_failed): Use initialize_inline_failed.
4480 * cgraph.c: Include ipa-inline.h.
4481 (cgraph_create_node_1): Do not initialize estimated_growth.
4482 (initialize_inline_failed): More to ipa-inline-analysis.c
4483 (dump_cgraph_node): Do not dump inline flags.
4484 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4485 and disregard_inline_limits flags.
4486 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4487 time, size, estimated_growth.
4488 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4490 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4491 DECL_DISREGARD_INLINE_LIMITS.
4492 (cgraph_analyze_function): Do not initialize
4493 node->local.disregard_inline_limits.
4494 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4495 inlinable, versionable and disregard_inline_limits.
4496 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4497 cgraph_check_inline_limits, cgraph_default_inline_p,
4498 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4499 add_new_edges_to_heap): Update.
4500 (cgraph_decide_inlining_of_small_function): Update; set
4501 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4502 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4503 cgraph_decide_inlining_incrementally): Update.
4504 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4505 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4506 time, size and estimated_growth parameters.
4507 (estimate_edge_growth): Update.
4508 (initialize_inline_failed): Declare.
4509 * ipa-split.c: Include ipa-inline.h
4510 (execute_split_functions): Update.
4511 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4512 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4513 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4514 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4515 estimated_growth to INT_MIN.
4516 (inline_node_duplication_hook): Likewise.
4517 (dump_inline_summary): Dump new fields.
4518 (compute_inline_parameters): Update.
4519 (estimate_edge_time, estimate_time_after_inlining,
4520 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4521 inline_write_summary):
4522 (initialize_inline_failed): Move here from cgraph.c.
4523 * tree-sra.c: Include ipa-inline.h.
4524 (ipa_sra_preliminary_function_checks): Update.
4525 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4528 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4530 * config/i386/sse.md (V16): New mode iterator.
4532 (AVXMODEQI, AVXMODEDI): Remove.
4533 (sse2, sse3): New mode attribute.
4534 (mov<mode>): Use V16 mode iterator.
4535 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4536 (push<mode>1): Use V16 mode iterator.
4537 (movmisalign<mode>): Ditto.
4538 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4539 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4540 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4541 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4542 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4543 avx_movdqu<avxmodesuffix>.
4544 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4545 *avx_movdqu<avxmodesuffix>.
4546 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4547 avx_lddqu<avxmodesuffix>.
4548 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4549 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4550 avx_movnt<AVXMODEDI:mode>.
4551 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4552 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4554 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4557 * haifa-sched.c (prune_ready_list, schedule_block): Use
4558 sched_pressure_p rather than flag_sched_pressure.
4560 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4562 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4563 cgraph_get_node instead of cgraph_get_create_node.
4565 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4567 * cfgexpand.c (expand_debug_expr): Use
4568 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4570 2011-04-15 Michael Matz <matz@suse.de>
4572 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4573 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4574 * function.c (gimplify_parameters): Ditto.
4575 * gimplify.c (gimplify_vla_decl): Ditto.
4577 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4578 (gimple_call_set_alloca_for_var): New inline function.
4579 (gimple_call_alloca_for_var_p): Ditto.
4580 * gimple.c (gimple_build_call_from_tree): Remember
4581 CALL_ALLOCA_FOR_VAR_P state.
4582 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4584 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4585 calls if they were for VLA objects.
4587 2011-04-15 Martin Jambor <mjambor@suse.cz>
4589 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4592 2011-04-15 Martin Jambor <mjambor@suse.cz>
4595 * tree-emutls.c (lower_emutls_function_body): Call
4596 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4599 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4601 * c-decl.c (detect_field_duplicates): Call
4602 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4604 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4606 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4607 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4608 * ipa-pure-const.c (check_stmt): Call it.
4609 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4611 2011-04-15 Richard Guenther <rguenther@suse.de>
4613 PR tree-optimization/48290
4614 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4615 Properly decide inhibiting propagation based on the valueized
4616 operand. Do loop-closed SSA form preserving here ...
4617 (init_copy_prop): ... not here.
4619 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4622 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4623 (*ieee_smax<mode>3): Likewise.
4625 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4627 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4628 Replace match_operand with match_dup for the third operand in
4631 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4633 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4634 to track processing of conditionals. Update all callers.
4635 (try_combine, simplify_if_then_else): Update.
4637 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4639 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4642 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4644 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4645 instead of match_operand for operand 3.
4647 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4649 * recog.h (insn_operand_data): Add an "allows_mem" field.
4650 * genoutput.c (output_operand_data): Initialize it.
4651 * optabs.c (maybe_legitimize_operand_same_code): New function.
4652 (maybe_legitimize_operand): Use it when matching the original
4655 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4657 * gimplify.c: Fix issues in comments throughout.
4658 (voidify_wrapper_expr): Fix long line.
4659 (build_stack_save_restore): Likewise.
4660 (gimplify_loop_expr): Likewise.
4661 (gimplify_compound_lval): Likewise.
4662 (gimplify_init_ctor_eval): Likewise.
4663 (gimplify_modify_expr_rhs): Likewise.
4664 (omp_notice_threadprivate_variable): Likewise.
4666 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4668 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4669 original one if this is not a builtin function.
4671 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4674 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4675 offset it as needed based on top 2 bits in operands[3], change
4676 MEM mode to SFmode and mask those 2 bits away from operands[3].
4678 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4680 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4681 change from objc_declare_protocols() to objc_declare_protocol().
4683 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4685 * config/i386/sse.md (sse4_1): New mode attribute.
4686 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4687 avx_blend<ssemodesuffix><avxmodesuffix> and
4688 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4689 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4690 avx_blendv<ssemodesuffix><avxmodesuffix> and
4691 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4692 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4693 avx_dp<ssemodesuffix><avxmodesuffix> and
4694 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4695 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4696 (sse4_1_packusdw): Merge with *avx_packusdw.
4697 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4698 (sse4_1_pblendw): Merge with *avx_pblendw.
4699 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4700 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4701 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4703 (sse4_1_round<ssescalarmodesuffix>): Merge with
4704 *avx_round<ssescalarmodesuffix>.
4705 (aesenc): Merge with *avx_aesenc.
4706 (aesenclast): Merge with *avx_aesenclast.
4707 (aesdec): Merge with *avx_aesdec.
4708 (aesdeclast): Merge with *avx_aesdeclast.
4709 (pclmulqdq): Merge with *pclmulqdq.
4710 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4712 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4714 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4717 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4718 (align_local_variable): This. Update DECL_ALIGN.
4719 (add_stack_var): Updated.
4720 (expand_one_stack_var): Likewise.
4722 2011-04-14 Richard Guenther <rguenther@suse.de>
4724 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4726 (dse_initialize_block_local_data, dse_leave_block,
4727 record_voperand_set, get_stmt_uid): Likewise.
4728 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4729 (dse_optimize_stmt): Remove voperand set handling code.
4730 Simplify and improve to handle any kind of killing stmt.
4731 (dse_record_phi): Remove.
4732 (dse_enter_block): Simplify.
4733 (tree_ssa_dse): Likewise.
4734 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4736 2011-04-14 Jan Hubicka <jh@suse.cz>
4738 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4739 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4740 (cgraph_local_info): Remove inline_summary.
4741 * ipa-cp.c: Include ipa-inline.h.
4742 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4743 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4745 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4746 (input_overwrite_node): Do not set inline summary.
4747 (input_node): Do not stream inline summary.
4748 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4749 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4750 growth; we do not have inline parameters computed for that anyway.
4751 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4752 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4753 (inline_summary_t): New type and VECtor.
4754 (debug_inline_summary, dump_inline_summaries): Declare.
4755 (inline_summary): Use VOCtor.
4756 (estimate_edge_growth): Kill hack computing call stmt size directly.
4757 * lto-section-in.c (lto_section_name): Add inline section.
4758 * ipa-inline-analysis.c: Include lto-streamer.h
4759 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4760 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4761 (inline_summary_vec): Define.
4762 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4763 dump_inline_summaries): New functions.
4764 (estimate_function_body_sizes): Properly compute size/time of outgoing
4766 (compute_inline_parameters): Alloc inline_summary; do not compute
4767 size/time of incomming calls.
4768 (estimate_edge_time): Avoid missing time summary hack.
4769 (inline_read_summary): Read inline summary info.
4770 (inline_write_summary): Write inline summary info.
4771 (inline_free_summary): Free all hooks and inline summary vector.
4772 * lto-streamer.h: Add LTO_section_inline_summary section.
4773 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4774 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4776 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4778 * tree-vectorizer.h (vect_strided_store_supported): Add a
4779 HOST_WIDE_INT argument.
4780 (vect_strided_load_supported): Likewise.
4781 (vect_permute_store_chain): Return void.
4782 (vect_transform_strided_load): Likewise.
4783 (vect_permute_load_chain): Delete.
4784 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4785 count argument. Check that the count is a power of two.
4786 (vect_strided_load_supported): Likewise.
4787 (vect_permute_store_chain): Return void. Update after above changes.
4788 Assert that the access is supported.
4789 (vect_permute_load_chain): Likewise.
4790 (vect_transform_strided_load): Return void.
4791 * tree-vect-stmts.c (vectorizable_store): Update calls after
4792 above interface changes.
4793 (vectorizable_load): Likewise.
4794 (vect_analyze_stmt): Don't check for strided powers of two here.
4796 2011-04-14 Richard Guenther <rguenther@suse.de>
4798 PR tree-optimization/48590
4799 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4800 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4801 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4802 BUILT_IN_STACK_SAVE.
4803 * tree-ssa-dce.c (propagate_necessity): Handle
4804 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4806 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4808 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4811 2011-04-14 Richard Guenther <rguenther@suse.de>
4813 * tree.h (get_object_alignment_1): Declare.
4814 * builtins.c (get_object_alignment_1): Split out worker from ...
4815 (get_object_alignment): ... here.
4816 * fold-const.c (get_pointer_modulus_and_residue): Use
4817 get_object_alignment_1.
4819 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4821 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4823 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4824 parameter. Generalise code to handle arrays as well as vectors.
4825 (vect_setup_realignment): Update accordingly.
4826 * tree-vect-stmts.c (vectorizable_store): Likewise.
4827 (vectorizable_load): Likewise.
4829 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4831 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4832 within the per-copy loop.
4834 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4836 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4839 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4841 * doc/options.texi (Negative): Explicitly mention that the
4842 Negative chain must be circular.
4844 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4846 * function.h (block_chainon): Declare.
4847 * function.c (block_chainon): Define.
4849 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4850 Eric Weddington <eric.weddington@atmel.com>
4851 Georg-Johann Lay <avr@gjlay.de>
4853 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4855 (avr_init_builtins, avr_expand_builtin,
4856 avr_expand_delay_cycles, avr_expand_unop_builtin,
4857 avr_expand_binop_builtin ): New functions.
4858 (avr_builtin_id): New enum
4859 (struct avr_builtin_description): New struct
4860 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4861 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4863 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4864 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4865 UNSPECV_DELAY_CYCLES): new enumeration values
4866 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4867 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4868 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4869 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4870 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4871 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4872 "fmulsu"): New insns
4874 * config/avr/avr-c.c: fix line endings
4875 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4876 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4877 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4878 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4879 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4881 * doc/extend.texi (AVR Built-in Functions): New node
4882 (Target Builtins): Add documentation of AVR
4885 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4888 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4889 alone. Error if non-const data has attribute progmem.
4891 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4893 * tree.h (struct tree_constructor): Include tree_typed instead of
4895 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4896 TS_TYPED instead of TS_COMMON.
4898 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4900 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4901 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4902 (sse2_psadbw): Merge with *avx_psadbw.
4903 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4904 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4905 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4906 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4907 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4908 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4909 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4910 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4911 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4912 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4913 (ssse3_palignrti): Merge with *avx_palignrti.
4915 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4917 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4918 * tree-ssanames.c (fini_ssanames): VEC_free it.
4919 (make_ssa_name_fn): Update for VECness of free_ssanames.
4920 (release_ssa_name, release_dead_ssa_names): Likewise.
4921 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4923 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4924 TS_TYPED instead of TS_COMMON.
4926 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4928 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4929 statistics_counter_event.
4930 * tree-ssa-copyrename.c (stats): Define.
4931 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4932 statistics_counter_event.
4933 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4934 (bswap_stats, widen_mul_stats): Define.
4935 (insert_reciprocals): Increment rdivs_inserted.
4936 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4937 rfuncs_inserted. Add calls to statistics_counter_event.
4938 (execute_cse_sincos_1): Increment inserted.
4939 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4940 statistics_counter_event.
4941 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4942 of bswap_stats. Add calls to statistics_counter_event.
4943 (convert_mult_to_widen): Increment widen_mults_inserted.
4944 (convert_plusminus_to_widen): Increment maccs_inserted.
4945 (convert_mult_to_fma): Increment fmas_inserted.
4946 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4947 calls to statistics_counter_event.
4949 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4951 PR rtl-optimization/48455
4952 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4953 `temp_costs->mem_cost'.
4955 2011-04-13 Jan Hubicka <jh@suse.cz>
4957 * ipa-inline.h: New file.
4958 * ipa-inline-analysis.c: New file. Broken out of ...
4959 * ipa-inline.c: ... this file; update toplevel comment;
4960 include ipa-inline.h
4961 (inline_summary): Move to ipa-inline.h
4962 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4963 ipa-inline-analysis.c.
4964 (cgraph_estimate_time_after_inlining): Rename to
4965 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4966 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4967 to estimate_edge_growth.
4968 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4969 rename to estimate_size_after_inlining.
4970 (cgraph_mark_inline_edge): Update for new naming convention.
4971 (cgraph_check_inline_limits): Likewise.
4972 (cgraph_edge_badness): Likewise.
4973 (cgraph_decide_recursive_inlining): Likewise.
4974 (cgraph_decide_inlining_of_small_functions): Likewise.
4975 (cgraph_decide_inlining_incrementally): Likewise.
4976 (cgraph_estimate_growth): Rename to estimate_growth; move to
4977 ipa-inline-analysis.c.
4978 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4979 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4980 (compute_inline_parameters): Likewise.
4981 (compute_inline_parameters_for_current): Likewise.
4982 (pass_inline_parameters): Likewise.
4983 (inline_indirect_intraprocedural_analysis): Likewise.
4984 (analyze_function): Rename to inline_analyze_function; likewise.
4985 (add_new_function): Move to ipa-inline-analysis.c.
4986 (inline_generate_summary): Likewise.
4987 (inline_read_summary): Likewise.
4988 (inline_write_summary): Likewise.
4989 * Makefile.in (ipa-inline-analysis.c): New file.
4991 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4993 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4994 * configure: Regenerate.
4996 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4998 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4999 instead of tree_common.
5000 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5002 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5003 TS_TYPED rather than TS_COMMON.
5004 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5006 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5009 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5010 r20 around calls of __tablejump_elpm__
5012 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5015 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5017 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5019 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5021 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5022 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5023 (cfi_vec): New typedef.
5024 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5025 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5026 (cie_cfi_vec): New static variable.
5027 (cie_cfi_head): Delete.
5028 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5029 declaration changed. Use vector rather than list operations.
5030 (new_cfi): Don't initialize the dw_cfi_next field.
5031 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5032 rather than list operations.
5033 (lookup_cfa): Use vector rather than list operations.
5034 (output_cfis): New argument upto. Accept a cfi_vec rather than
5035 a dw_cfi_ref list head as argument. All callers changed.
5036 Iterate over the vector using upto as a maximum index.
5037 (output_all_cfis): New static function.
5038 (output_fde): Use vector rather than list operations. Use the
5039 new upto argument for output_cfis rather than manipulating a
5041 (dwarf2out_begin_prologue): Change initializations to match
5043 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5044 from the vector length rather than searching for the end of a list.
5045 Use output_all_cfis.
5046 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5048 2011-04-13 Nick Clifton <nickc@redhat.com>
5050 * config/rx/rx.md (movmemsi): Do not use this pattern when
5051 volatile pointers are involved.
5053 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5055 * config/i386/sse.md (pinsrbits): Remove.
5056 (sse2_packsswb): Merge with *avx_packsswb.
5057 (sse2_packssdw): Merge with *avx_packssdw.
5058 (sse2_packuswb): Merge with *avx_packuswb.
5059 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5060 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5061 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5062 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5063 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5064 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5065 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5066 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5067 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5068 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5069 (sse2_loadld): Merge with *avx_loadld.
5070 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5071 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5072 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5073 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5074 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5076 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5078 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5080 * print-tree.c (print_node): Likewise.
5081 * tree-inline.c (copy_tree_r): Likewise.
5082 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5083 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5084 instead of TS_COMMON.
5085 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5086 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5087 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5088 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5089 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5091 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5093 (TREE_CHAIN): Check for a TS_COMMON structure.
5094 (TREE_TYPE): Check for a TS_TYPED structure.
5096 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5098 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5099 cgraph_get_create_node instead of cgraph_node.
5101 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5103 * c-parser.c (c_parser_initelt): Updated call to
5104 objc_build_message_expr.
5105 (c_parser_postfix_expression): Likewise.
5107 2011-04-12 Kai Tietz <ktietz@redhat.com>
5109 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5110 MASK_MS_BITFIELD_LAYOUT bit.
5112 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5114 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5115 assert it is always true.
5116 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5119 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5121 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5122 compiling Objective-C to be more efficient.
5124 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5126 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5129 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5131 * recog.h, genoutput.c, optabs.c: Revert last patch.
5133 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5136 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5138 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5140 * recog.h (insn_operand_data): Add an "allows_mem" field.
5141 * genoutput.c (output_operand_data): Initialize it.
5142 * optabs.c (maybe_legitimize_operand_same_code): New function.
5143 (maybe_legitimize_operand): Use it when matching the original
5146 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5148 * genpreds.c (process_define_predicate): Move most processing
5149 to gensupport.c. Continue to validate the expression.
5150 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5151 (process_define_predicate): Move processing to gensupport.c.
5152 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5153 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5154 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5156 (valid_predicate_name_p): New function, split out from old
5157 genpreds.c:process_define_predicate.
5158 (process_define_predicate): New function, combining code from
5159 old genpreds.c and genrecog.c functions.
5160 (process_rtx): Call it for DEFINE_PREDICATE and
5161 DEFINE_SPECIAL_PREDICATE.
5163 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5165 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5166 size of a '%A' memory reference.
5167 (T_DREG, T_QREG): New neon_builtin_type_bits.
5168 (arm_init_neon_builtins): Assert that the load and store operands
5169 are neon_struct_operands.
5170 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5171 (NEON_ARG_MEMORY): New builtin_arg.
5172 (neon_dereference_pointer): New function.
5173 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5174 Handle NEON_ARG_MEMORY.
5175 (arm_expand_neon_builtin): Update after above interface changes.
5176 Use NEON_ARG_MEMORY for loads and stores.
5177 * config/arm/predicates.md (neon_struct_operand): New predicate.
5178 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5179 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5180 (V_four_elem): Tweak formatting.
5181 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5182 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5183 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5184 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5185 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5186 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5187 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5188 Use %A in the output template.
5189 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5190 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5191 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5192 the width of the memory access. Remove post-increment.
5193 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5195 2011-04-12 Nick Clifton <nickc@redhat.com>
5197 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5198 instruction for interrupt handlers if the target is the basic V850
5200 (expand_epilogue): Likewise.
5202 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5204 PR rtl-optimization/48549
5205 * combine.c (propagate_for_debug): Also stop after BB_END of
5206 this_basic_block. Process LAST and just stop processing after it.
5207 (combine_instructions): If last_combined_insn has been deleted,
5208 set last_combined_insn to its PREV_INSN.
5210 2011-04-12 Richard Guenther <rguenther@suse.de>
5212 PR tree-optimization/46076
5213 * gimple.h (struct gimple_statement_call): Add fntype field.
5214 (gimple_call_fntype): Adjust.
5215 (gimple_call_set_fntype): New function.
5216 * gimple.c (gimple_build_call_1): Set the call function type.
5217 * gimplify.c (gimplify_call_expr): Preserve the function
5218 type the frontend used for the call.
5219 (gimplify_modify_expr): Likewise.
5220 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5222 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5224 * tree-ssa.c (useless_type_conversion_p): Function pointer
5225 conversions are useless.
5227 2011-04-12 Martin Jambor <mjambor@suse.cz>
5229 * cgraph.h (cgraph_node): Remove function declaration.
5230 (cgraph_create_node): Declare.
5231 (cgraph_get_create_node): Likewise.
5232 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5233 Updated all callers.
5234 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5235 the decl does not already exist. Call cgraph_get_create_node instead
5237 (cgraph_get_create_node): New function.
5238 (cgraph_same_body_alias): Update comment.
5239 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5240 assert it does not return NULL.
5241 (cgraph_update_edges_for_call_stmt): Likewise.
5242 (cgraph_clone_edge): Likewise.
5243 (cgraph_create_virtual_clone): Likewise.
5244 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5245 instead of cgraph_node.
5246 (cgraph_add_new_function): Call cgraph_create_node or
5247 cgraph_get_create_node instead of cgraph_node.
5248 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5249 instead of cgraph_node.
5250 (record_eh_tables): Likewise.
5251 (mark_address): Likewise.
5252 (mark_load): Likewise.
5253 (build_cgraph_edges): Call cgraph_get_create_node instead
5255 (rebuild_cgraph_edges): Likewise.
5256 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5257 instead of cgraph_node.
5258 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5260 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5261 cgraph_create_node instead of cgraph_node.
5262 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5264 * lto-cgraph.c (input_node): Likewise.
5265 * lto-streamer-in.c (input_function): Likewise.
5266 * varasm.c (mark_decl_referenced): Likewise.
5267 (assemble_alias): Likewise.
5269 2011-04-12 Martin Jambor <mjambor@suse.cz>
5271 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5272 instead of cgraph_node and assert it does not return NULL.
5273 * lto-streamer-in.c (lto_read_body): Likewise.
5274 * omp-low.c (new_omp_context): Likewise.
5275 (create_task_copyfn): Likewise.
5276 * tree-emutls.c (lower_emutls_function_body): Likewise.
5277 * matrix-reorg.c (transform_allocation_sites): Likewise.
5279 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5282 * c-typeck.c (build_asm_expr): Error out on attempts to use
5283 void type outputs or inputs for constraints that allow reg or
5286 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5287 Richard Earnshaw <rearnsha@arm.com>
5290 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5291 to use sign-magnitude offsets. Reject unsupported unaligned
5292 cases. Add detailed description in comments.
5293 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5294 condition from TARGET_32BIT to TARGET_ARM.
5296 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5298 * tree.h (struct typed_tree): New.
5299 (struct tree_common): Include it instead of tree_base.
5300 (TREE_TYPE): Update for new location of type field.
5301 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5302 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5303 (union tree_node): Add typed field.
5304 * treestruct.def (TS_TYPED): New.
5305 * lto-streamer.c (check_handled_ts_structures): Handle it.
5306 * tree.c (MARK_TS_TYPED): New macro.
5307 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5309 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5311 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5312 (force_nonfallthru): Do not alter the loop nest if no basic block
5315 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5317 * config/i386/sse.md (VI): New mode iterator.
5319 (AVX256MODEI): Ditto.
5320 (AVXMODEF4P): Ditto.
5321 (avxvecpsmode): Ditto.
5322 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5323 (sse2_andnot<mode>3): New expander.
5324 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5325 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5326 (<any_logic:code><mode>3): Use VI mode iterator.
5327 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5328 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5329 (*andnottf3): Handle AVX three-operand constraints.
5330 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5332 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5333 Robert Millan <rmh@gnu.org>
5335 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5336 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5337 GNU_USER_DYNAMIC_LINKER64): Define.
5338 (REG_NAME): Don't undefine.
5339 (MD_UNWIND_SUPPORT): Undefine.
5340 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5341 (REG_NAME): Don't undefine.
5342 (MD_UNWIND_SUPPORT): Undefine.
5343 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5345 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5347 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5348 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5350 2011-04-11 Xinliang David Li <davidxl@google.com>
5352 * value-profile.c (check_ic_target): New function.
5353 (gimple_ic_transform): Sanity check indirect call target.
5354 * gimple-low.c (gimple_check_call_args): Interface change.
5355 (gimple_check_call_matching_types): New function.
5356 * tree-inline.c (tree_can_inline_p): Call new function.
5358 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5360 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5361 tree-pretty-print.h & realmpfr.h.
5363 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5366 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5367 (setup_allocno_and_important_classes): Ditto.
5369 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5371 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5372 GNU_USER_DYNAMIC_LINKER.
5373 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5374 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5375 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5376 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5377 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5378 GNU_USER_TARGET_OS_CPP_BUILTINS.
5379 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5381 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5383 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5384 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5385 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5386 GNU_USER_TARGET_OS_CPP_BUILTINS.
5387 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5388 GNU_USER_DYNAMIC_LINKER.
5389 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5390 GNU_USER_TARGET_OS_CPP_BUILTINS.
5391 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5392 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5393 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5394 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5395 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5396 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5397 GNU_USER_DYNAMIC_LINKER64): Remove.
5398 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5400 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5401 GNU_USER_DYNAMIC_LINKER.
5402 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5403 GNU_USER_TARGET_OS_CPP_BUILTINS.
5404 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5405 GNU_USER_TARGET_OS_CPP_BUILTINS.
5406 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5407 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5408 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5409 GNU_USER_TARGET_OS_CPP_BUILTINS.
5410 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5411 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5412 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5413 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5414 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5415 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5416 GNU_USER_DYNAMIC_LINKER.
5417 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5418 GNU_USER_TARGET_OS_CPP_BUILTINS.
5419 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5420 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5421 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5422 GNU_USER_DYNAMIC_LINKER.
5423 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5425 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5426 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5427 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5428 GNU_USER_DYNAMIC_LINKER.
5429 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5430 GNU_USER_DYNAMIC_LINKERN32.
5431 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5432 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5433 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5434 GNU_USER_DYNAMIC_LINKER32.
5435 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5436 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5437 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5438 GNU_USER_DYNAMIC_LINKER.
5439 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5441 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5442 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5443 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5444 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5445 GNU_USER_DYNAMIC_LINKER32.
5446 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5447 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5448 GNU_USER_DYNAMIC_LINKER.
5449 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5450 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5451 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5452 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5453 GNU_USER_DYNAMIC_LINKER64.
5454 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5455 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5456 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5457 GNU_USER_DYNAMIC_LINKER.
5458 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5459 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5460 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5461 GNU_USER_DYNAMIC_LINKER.
5462 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5463 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5464 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5465 GNU_USER_DYNAMIC_LINKER32.
5466 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5467 GNU_USER_DYNAMIC_LINKER64.
5468 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5469 GNU_USER_DYNAMIC_LINKER64.
5470 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5471 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5472 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5473 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5474 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5476 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5478 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5479 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5480 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5481 GNU_USER_DYNAMIC_LINKER.
5482 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5483 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5484 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5485 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5486 GNU_USER_DYNAMIC_LINKER64.
5487 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5488 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5489 GNU_USER_LINK_EMULATION.
5490 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5491 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5492 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5493 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5494 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5495 CPP_SPEC, CC1_SPEC): Remove.
5496 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5497 (GNU_USER_DYNAMIC_LINKER): Define.
5498 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5499 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5500 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5501 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5502 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5503 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5504 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5505 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5506 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5507 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5508 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5509 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5510 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5511 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5512 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5513 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5514 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5515 GNU_USER_DYNAMIC_LINKER.
5516 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5517 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5518 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5519 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5520 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5521 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5522 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5523 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5524 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5525 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5527 2011-04-11 Kai Tietz <ktietz@redhat.com>
5531 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5532 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5534 (ix86_is_msabi_thiscall): Removed.
5535 (ix86_is_type_thiscall): Likewise.
5536 (ix86_get_callcvt): New function.
5537 (ix86_comp_type_attributes): Simplify check.
5538 (ix86_function_regparm): Use ix86_get_callcvt for calling
5539 convention attribute checks.
5540 (ix86_return_pops_args): Likewise.
5541 (ix86_static_chain): Likewise.
5542 (x86_this_parameter): Likewise.
5543 (x86_output_mi_thunk): Likewise.
5544 (ix86_function_type_abi): Optimize check for types without attributes.
5545 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5546 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5547 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5549 (IX86_BASE_CALLCVT): Helper macro.
5550 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5551 Use ix86_get_callcvt for calling convention attribute checks and avoid
5552 symbol-decoration for stdcall in TARGET_RTD case.
5553 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5555 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5558 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5560 * config/i386/sse.md (VI_128): New mode iterator.
5561 (VI12_128): Rename from SSEMODE12.
5562 (VI14_128): Rename from SSEMODE14.
5563 (VI124_128): New mode iterator.
5564 (VI24_128): Rename from SSEMODE248.
5565 (VI248_128): Rename from SSEMODE248.
5566 (SSEMODE124C8): Remove.
5567 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5568 (*sse2_<plusminus_insn><mode>3): Merge with
5569 *avx_<plusminus_insn><mode>3.
5570 (*mulv8hi3): Merge with *avx_mulv8hi3.
5571 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5572 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5573 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5574 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5575 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5576 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5577 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5578 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5579 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5580 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5581 (*<smaxmin:code>v8hi3): Ditto.
5582 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5583 (*<smaxmin:code>v16qi3): Ditto.
5584 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5585 (*sse2_eq<mode>3): Ditto.
5586 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5587 (*sse2_gt<mode>3): Ditto.
5588 (vcondv2di): Split out of vcond<mode>.
5589 (vconduv2di): Split out of vcondu<mode>.
5591 2011-04-11 Richard Guenther <rguenther@suse.de>
5593 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5594 before calling tree_low_cst.
5596 2011-04-11 Richard Guenther <rguenther@suse.de>
5598 * stor-layout.c (layout_type): Compute all array index size operations
5599 in the original type.
5600 (initialize_sizetypes): Add comment.
5601 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5603 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5605 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5607 2011-04-11 Martin Jambor <mjambor@suse.cz>
5609 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5610 of cgraph_node, handle NULL return value.
5611 (cgraph_global_info): Likewise.
5612 (cgraph_rtl_info): Likewise.
5613 * tree-inline.c (estimate_num_insns): Likewise.
5614 * gimplify.c (unshare_body): Likewise.
5615 (unvisit_body): Likewise.
5616 (gimplify_body): Likewise.
5617 * predict.c (optimize_function_for_size_p): Likewise.
5618 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5619 (call_may_clobber_ref_p_1): Likewise.
5620 * varasm.c (function_section_1): Likewise.
5621 (assemble_start_function): Likewise.
5623 2011-04-11 Martin Jambor <mjambor@suse.cz>
5625 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5627 * final.c (rest_of_clean_state): Likewise.
5628 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5629 * passes.c (pass_init_dump_file): Likewise.
5630 (execute_all_ipa_transforms): Likewise.
5631 (function_called_by_processed_nodes_p): Likewise.
5632 * predict.c (maybe_hot_frequency_p): Likewise.
5633 (probably_never_executed_bb_p): Likewise.
5634 (compute_function_frequency): Likewise.
5635 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5636 (unnest_nesting_tree_1): Likewise.
5637 (lower_nested_functions): Likewise.
5638 * tree-optimize.c (execute_fixup_cfg): Likewise.
5639 (tree_rest_of_compilation): Likewise.
5640 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5641 * tree-sra.c (ipa_early_sra): Likewise.
5642 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5643 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5644 * ipa.c (record_cdtor_fn): Likewise.
5645 * ipa-inline.c (cgraph_early_inlining): Likewise.
5646 (compute_inline_parameters_for_current): Likewise.
5647 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5648 * ipa-pure-const.c (local_pure_const): Likewise.
5649 * ipa-split.c (split_function): Likewise.
5650 (execute_split_functions): Likewise.
5651 * cgraphbuild.c (build_cgraph_edges): Likewise.
5652 (rebuild_cgraph_edges): Likewise.
5653 (cgraph_rebuild_references): Likewise.
5654 (remove_cgraph_callee_edges): Likewise.
5655 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5656 (verify_cgraph_node): Likewise.
5657 (cgraph_analyze_functions): Likewise.
5658 (cgraph_preserve_function_body_p): Likewise.
5659 (save_inline_function_body): Likewise.
5660 (save_inline_function_body): Likewise.
5661 * tree-inline.c (copy_bb): Likewise.
5662 (optimize_inline_calls): Likewise.
5664 2011-04-11 Martin Jambor <mjambor@suse.cz>
5666 PR tree-optimization/48195
5667 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5668 ipa_check_create_edge_args.
5669 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5670 ipa_check_create_edge_args.
5671 * ipa-inline.c (inline_generate_summary): Do not call
5672 ipa_check_create_node_params and ipa_check_create_edge_args.
5673 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5674 ipa_check_create_edge_args.
5676 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5678 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5680 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5681 * function.c (record_hard_reg_sets): Likewise.
5682 * ira.c (compute_regs_asm_clobbered): Likewise.
5683 * sched-deps.c (sched_analyze_1): Likewise.
5684 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5686 2011-04-09 Xinliang David Li <davidxl@google.com>
5688 PR tree-optimization/PR48484
5689 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5690 has_valid_pred lazily
5692 2011-04-09 Duncan Sands <baldrick@free.fr>
5694 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5696 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5698 * combine.c (combine_validate_cost): Adjust comments. Set registered
5699 cost of I0 to zero at the end, if any.
5701 2011-04-08 Xinliang David Li <davidxl@google.com>
5703 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5704 to insane profile data.
5706 2011-04-08 Xinliang David Li <davidxl@google.com>
5708 * ipa-cp.c (ipcp_update_profiling): Correct
5709 negative scale factor due to insane profile data.
5711 2011-04-08 Xinliang David Li <davidxl@google.com>
5713 * final.c (dump_basic_block_info): New function.
5714 (final): Dump basic block.
5715 (final_scan_insn): Remove old dump.
5717 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5720 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5723 2011-04-08 Michael Matz <matz@suse.de>
5726 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5728 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5729 * rtl.h (rebuild_jump_labels_chain): Declare.
5730 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5731 insns inserted on edges.
5733 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5735 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5736 * config/arm/arm-arches.def: New.
5737 * config/arm/arm-opts.h: New.
5738 * config/arm/genopt.sh: New.
5739 * config/arm/arm-tables.opt: New (generated).
5740 * config/arm/arm.c (arm_handle_option, arm_target_help,
5741 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5742 (all_architectures): Get most table contents from arm-arches.def.
5743 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5744 arm_selected_tune here.
5745 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5746 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5747 (march=, mcpu=, mtune=): Use Enum and Var.
5748 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5749 (arm.o): Update dependencies.
5751 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5753 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5755 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5756 (write_typed_alloc_defns): Likewise.
5757 (main): Calls write_typed_alloc_defns with output_header.
5759 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5762 * ira-color.c (setup_profitable_hard_regs): Add comments.
5763 Don't take prohibited hard regs into account.
5764 (setup_conflict_profitable_regs): Rename to
5765 get_conflict_profitable_regs.
5766 (check_hard_reg_p): Check prohibited hard regs.
5768 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5770 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5771 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5772 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5774 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5777 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5778 move from floating point to shift amount register.
5779 (emit_move_sequence): Remove secondary reload support for floating
5780 point to shift amount amount register copies.
5781 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5782 amount register copies.
5783 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5784 register, return false if mode isn't a scalar integer mode.
5785 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5787 2011-04-08 Richard Guenther <rguenther@suse.de>
5789 * gimple.c (gimple_call_flags): Remove kludge.
5791 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5793 * sel-sched.c (sel_region_init): Move call to
5794 sel_setup_region_sched_flags after setup_current_loop_nest.
5796 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5798 PR rtl-optimization/48272
5799 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5800 init_insn_reg_pressure_info. Adjust a caller.
5801 * sched-int.h (init_insn_reg_pressure_info): Declare.
5802 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5803 when sched-pressure is enabled.
5805 2011-04-08 Richard Guenther <rguenther@suse.de>
5807 * gimple.c (gimple_set_modified): Do not queue calls to
5808 MODIFIED_NORETURN_CALLS here ...
5809 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5811 2011-04-08 Richard Guenther <rguenther@suse.de>
5814 * toplev.c (lang_dependent_init): Do not open asm_out_file
5815 in WPA mode, nor perform debug machinery initialization.
5816 (finalize): Do not unlink asm_out_file in WPA mode.
5818 2011-04-08 Richard Guenther <rguenther@suse.de>
5820 * gimple.h (gimple_call_fntype): New function.
5821 (gimple_call_return_type): Use it.
5822 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5823 * gimple-low.c (gimple_check_call_args): Likewise.
5824 * gimple.c (gimple_call_flags): Likewise.
5825 (gimple_call_arg_flags): Likewise.
5826 (gimple_call_return_flags): Likewise.
5827 * tree-cfg.c (verify_gimple_call): Likewise.
5828 (do_warn_unused_result): Likewise.
5829 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5830 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5832 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5834 PR rtl-optimization/48235
5835 * sel-sched.c (code_motion_process_successors): Recompute the last
5836 insn in basic block if control flow changed.
5837 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5838 Update condition for ilist_remove.
5840 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5842 PR rtl-optimization/48302
5843 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5844 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5845 it to record added preheader blocks.
5846 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5847 on to sel_add_loop_preheaders.
5848 (sel_region_init): Move call to setup_current_loop_nest after
5851 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5854 * cfgloop.h (loop_has_exit_edges): New helper.
5855 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5857 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5858 that have no exit edges.
5860 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5862 PR rtl-optimization/48442
5863 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5864 all callers. Adjust assert.
5866 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5868 PR tree-optimization/48377
5869 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5870 is_packed to true even for types with smaller TYPE_ALIGN than
5873 2011-04-08 Richard Guenther <rguenther@suse.de>
5876 * doc/tm.texi: Re-generate.
5878 2011-04-08 Wei Guozhi <carrot@google.com>
5881 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5882 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5883 * config/arm/arm.md (*push_multi): Change the length computation to
5886 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5888 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5889 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5890 * doc/tm.texi: Regenerate.
5891 * system.h (ASM_OUTPUT_BSS): Poison.
5892 * varasm.c (asm_output_bss): Remove function.
5893 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5895 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5896 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5897 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5898 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5900 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5902 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5904 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5906 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5908 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5911 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5913 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5914 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5915 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5917 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5918 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5919 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5920 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5921 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5922 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5923 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5924 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5925 options. Don't map other m68k options manually. Don't handle
5926 old-style options as canonical.
5927 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5928 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5930 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5932 * basic-block.h (force_nonfallthru): Move to...
5933 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5934 (force_nonfallthru): ...here.
5935 * cfghooks.c (force_nonfallthru): New function.
5936 * cfgrtl.c (force_nonfallthru): Rename into...
5937 (rtl_force_nonfallthru): ...this.
5938 (commit_one_edge_insertion): Do not set AUX field.
5939 (commit_edge_insertions): Do not discover new basic blocks.
5940 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5941 (cfg_layout_rtl_cfg_hooks): Likewise.
5942 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5943 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5944 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5946 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5948 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5951 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5953 * config/i386/sse.md: Update copyright year.
5954 (avxcvtvecmode): Remove.
5955 (sse_movhlps): Merge with *avx_movhlps.
5956 (sse_movlhps): Merge with *avx_movlhps.
5957 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5958 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5959 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5960 (sse_loadhps): Merge with *avx_loadhps.
5961 (sse_storelps): Merge with *avx_storelps.
5962 (sse_loadlps): Merge with *avx_loadlps.
5963 (sse_movss): Merge with *avx_movss.
5964 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5965 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5966 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5967 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5968 (vec_set<mode>_0): Ditto.
5969 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5970 (sse4_1_insertps): Merge with *avx_insertps.
5971 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5972 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5973 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5974 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5975 (sse2_storehpd): Merge with *avx_storehpd.
5976 (sse2_loadhpd): Merge with *avx_loadhpd.
5977 (sse2_loadlpd): Merge with *avx_loadlpd.
5978 (sse2_movsd): Merge with *avx_movsd.
5979 (*vec_concatv2df): Merge with *vec_concatv2df.
5981 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5984 * combine.c (combine_instructions): Add last_combined_insn,
5985 update it if insn is after it, pass it to all try_combine calls.
5986 (try_combine): Add last_combined_insn parameter, pass it instead of
5987 i3 to propagate_for_debug.
5989 2011-04-07 Nick Clifton <nickc@redhat.com>
5991 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5992 to handle MDR <-> data register transfers.
5993 (movhi_internal): Likewise.
5995 2011-04-07 Alan Modra <amodra@gmail.com>
5997 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5998 previous stack info.
6000 2011-04-07 Tom de Vries <tom@codesourcery.com>
6003 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6004 flow_find_cross_jump. Swap variables to implement backward replacement.
6005 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6007 2011-04-07 Tom de Vries <tom@codesourcery.com>
6010 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6011 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6013 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6014 src1 or src2. Redirect edges to the last basic block. Update
6015 frequency and count on multiple basic blocks in case of fallthru.
6017 2011-04-07 Tom de Vries <tom@codesourcery.com>
6020 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6022 (old_insns_match_p): Change return type. Replace return false/true
6023 with return dir_none/dir_both. Use can_replace_by.
6024 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6025 direction from dir_p. Register replacement direction in dir, last_dir
6026 and afterlast_dir. Handle new return type of old_insns_match_p using
6027 merge_dir. Return replacement direction in dir_p.
6028 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6029 return type of old_insns_match_p.
6030 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6031 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6032 flow_find_cross_jump.
6033 * basic-block.h (enum replace_direction): New type.
6034 (flow_find_cross_jump): Add parameter to declaration.
6036 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6038 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6039 (AVXMODEDCVTPS2DQ): Ditto.
6040 (VEC_FLOAT_MODE): Ditto.
6041 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6042 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6043 (<any_logic:code><mode>3): Use VF mode iterator.
6044 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6045 Use VF mode iterator.
6046 (copysign<mode>3): Use VF mode iterator.
6047 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6048 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6049 (*<any_logic:code><MODEF:mode>3): Merge with
6050 *avx_<any_logic:code><MODEF:mode>3.
6051 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6052 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6053 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6054 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6055 (sse2_cvtdq2ps): Use %v modifier.
6056 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6057 (avx_cvtps2dq<avxmodesuffix>): Remove.
6058 (sse2_cvtps2dq): Use %v modifier.
6059 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6060 (avx_cvttps2dq<avxmodesuffix>): Remove.
6061 (sse2_cvttps2dq): Use %v modifier.
6062 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6063 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6064 (sse2_cvtsd2siq): Fix insn template.
6065 (sse2_cvtsd2siq_2): Ditto.
6066 (sse2_cvttsd2siq): Ditto.
6067 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6068 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6070 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6072 * gcov-io.c: Use GCC Runtime Library Exception.
6074 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6077 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6078 as base_reg whatever register reg has been eliminated to, instead
6079 of hardcoding STACK_POINTER_REGNUM.
6081 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6083 * doc/tm.texi.in: Document C target hooks as separate from general
6085 * doc/tm.texi: Regenerate.
6086 * genhooks.c (struct hook_desc): Add docname field.
6087 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6089 (hook_array): Include c-target.def.
6090 (emit_documentation): Use docname field in output.
6091 (emit_init_macros): Take docname argument. Only emit definitions
6092 for hooks matching docname.
6093 (main): Expect additional arguments in all cases. Pass argument
6094 to emit_init_macros.
6095 * target.def: Move initial macro definitions and comments to
6096 target-hooks-macros.h.
6097 (gcc_targetcm): Move to c-family/c-target.def.
6098 * target.h (targetcm): Move declaration to c-family/c-target.h.
6099 * targhooks.c (default_handle_c_option): Move to
6101 * targhooks.h (default_handle_c_option): Move declaration to
6102 c-family/c-common.h.
6103 * target-hooks-macros.h: New file.
6104 * config.gcc (target_has_targetcm): Define and use to add to
6105 c_target_objs and cxx_target_objs.
6106 * config/default-c.c: New file.
6107 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6108 of target.h and target-def.h.
6109 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6110 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6111 darwin_check_cfstring_format_arg): Make static.
6112 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6113 TARGET_STRING_OBJECT_REF_TYPE_P,
6114 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6115 * config/darwin-protos.h (darwin_objc_construct_string,
6116 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6118 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6119 TARGET_STRING_OBJECT_REF_TYPE_P,
6120 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6121 * config/t-darwin (darwin-c.o): Update dependencies.
6122 * system.h (TARGET_HAS_TARGETCM): Poison.
6123 * Makefile.in (TARGET_H): Update.
6124 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6125 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6126 (default-c.o): New target.
6127 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6128 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6129 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6131 (build/genhooks.o): Update dependencies.
6133 2011-04-06 Richard Guenther <rguenther@suse.de>
6135 * ipa-inline.c (enum inlining_mode): Remove.
6136 (cgraph_flatten): Use some other token.
6137 (cgraph_edge_early_inlinable_p): New function, split out from ...
6138 (cgraph_perform_always_inlining): New function, split out from ...
6139 (cgraph_decide_inlining_incrementally): ... here.
6140 (cgraph_mark_inline_edge): Adjust.
6141 (cgraph_early_inlining): Re-structure.
6142 (pass_early_inline): Require SSA form.
6144 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6145 Julian Brown <julian@codesourcery.com>
6146 Mark Shinwell <shinwell@codesourcery.com>
6148 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6149 LO_REGS only for Thumb-1.
6150 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6151 be used in short instructions when optimising for size on Thumb-2.
6153 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6155 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6156 associated with user returns to be preserved.
6158 2011-04-06 Tristan Gingold <gingold@adacore.com>
6160 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6161 symbol_queue_size, DBXOUT_DECR_NESTING,
6162 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6163 if XCOFF_DEBUGGING_INFO.
6165 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6167 * config/i386/i386.md (attribute isa): New.
6168 (attribute enabled): New.
6169 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6170 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6171 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6172 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6173 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6174 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6175 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6176 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6178 * config/i386/sse.md (VF): New mode iterator.
6182 (SSEMODEF4): Remove.
6183 (attribute sse): Handle V8SF and V4DF modes.
6184 (<absneg:code><mode>2): Use VF mode iterator.
6185 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6187 (<plusminus_insn><mode>3): Use VF mode iterator.
6188 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6189 Use VF mode iterator.
6190 (<sse>_vm<plusminus_insn><mode>3): Merge with
6191 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6192 (mul<mode>3): Use VF mode iterator.
6193 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6194 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6196 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6197 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6198 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6199 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6201 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6202 Use VF1 mode iterator.
6203 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6204 (sqrt<VF2:mode>2): New expander.
6205 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6206 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6207 and sqrtv2df2. Use VF mode iterator.
6208 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6210 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6211 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6212 Use VF1 mode iterator.
6213 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6214 (<smaxmin:code><mode>3): Use VF mode iterator.
6215 (*<smaxmin:code><mode>3_finite): Merge with
6216 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6217 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6218 (<sse>_vm<smaxmin:code><mode>2): Merge with
6219 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6220 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6222 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6224 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6225 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6226 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6227 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6228 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6230 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6231 Use VF_128 mode iterator.
6232 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6234 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6235 VF_128 mode iterator.
6236 (vcond<mode>): Use VF mode iterator.
6237 * config/i386/predicates.md (sse_comparison_operator): Merge with
6238 avx_comparison_float_operator. Do not declare as special_predicate.
6239 * config/i386/i386.c (struct builtin_description): Update for renamed
6241 (ix86_expand_args_builtin): Ditto.
6242 (ix86_expand_sse_compare_mask): Ditto.
6244 2011-04-06 Richard Guenther <rguenther@suse.de>
6246 * tree-inline.c (estimate_num_insns): For calls simply account
6247 for all passed arguments and a used return value.
6249 2011-04-06 Richard Guenther <rguenther@suse.de>
6251 PR tree-optimization/47663
6252 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6253 call_stmt_time fields.
6254 (cgraph_edge_inlinable_p): Declare.
6255 (cgraph_edge_recursive_p): New inline function.
6256 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6257 (cgraph_clone_edge): Copy it.
6258 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6259 Account for call stmt time.
6260 (cgraph_estimate_time_after_inlining): Take edge argument.
6261 (cgraph_estimate_edge_growth): Account call stmt size.
6262 (cgraph_estimate_size_after_inlining): Take edge argument.
6263 (cgraph_mark_inline_edge): Adjust.
6264 (cgraph_check_inline_limits): Likewise.
6265 (cgraph_recursive_inlining_p): Remove.
6266 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6267 (cgraph_decide_recursive_inlining): Take edge argument and
6269 (cgraph_decide_inlining_of_small_functions): Do not avoid
6270 diags for recursive inlining here.
6271 (cgraph_flatten): Adjust.
6272 (cgraph_decide_inlining_incrementally): Likewise.
6273 (estimate_function_body_sizes): Remove call cost handling.
6274 (compute_inline_parameters): Initialize caller edge call costs.
6275 (cgraph_estimate_edge_growth): New function.
6276 (cgraph_estimate_growth): Use it.
6277 (cgraph_edge_badness): Likewise.
6278 (cgraph_check_inline_limits): Take an edge argument.
6279 (cgraph_decide_inlining_of_small_functions): Adjust.
6280 (cgraph_decide_inlining): Likewise.
6281 * tree-inline.c (estimate_num_insns): Only account for call
6282 return value if it is used.
6283 (expand_call_inline): Avoid diagnostics on recursive inline
6285 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6286 (input_edge): Input edge call costs.
6288 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6290 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6292 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6294 * doc/invoke.texi (Spec Files): Fix typo.
6296 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6298 * profile.c (branch_prob): Move declaration of local variable. Remove
6299 obsolete ??? comment. Expand the location explicitly instead of using
6300 the LOCATION_FILE and LOCATION_LINE macros.
6302 2011-04-06 Wei Guozhi <carrot@google.com>
6305 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6306 (arm_cond_branch): Likewise.
6307 (arm_cond_branch_reversed): Likewise.
6308 (arm_jump): Likewise.
6309 (push_multi): Likewise.
6310 * config/arm/constraints.md (Py): New constraint.
6312 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6315 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6317 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6318 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6319 #ifdef DBX_DEBUGGING_INFO.
6321 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6324 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6325 if old and new states differ.
6327 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6329 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6330 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6331 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6332 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6333 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6335 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6336 ColdFire options to -mcpu= options.
6338 2011-04-05 Jeff Law <law@redhat.com>
6340 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6341 check if BB is a successor of LOOP->header and return
6342 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6344 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6346 * cprop.c (struct reg_use): Remove.
6347 (reg_use_table): Make an array of RTX.
6348 (find_used_regs, constprop_register, local_cprop_pass,
6349 bypass_block): Simplify users of reg_use_table.
6350 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6351 on one of the uses found by find_used_regs.
6353 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6356 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6359 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6361 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6363 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6365 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6368 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6370 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6372 * combine.c: Include obstack.h.
6373 (struct insn_link): Define.
6374 (uid_log_links): Adjust type.
6375 (FOR_EACH_LOG_LINK): New macro.
6376 (insn_link_obstack): Declare.
6377 (alloc_insn_link): Define.
6378 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6379 type of link variables.
6380 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6381 (try_combine, record_promoted_values, distribute_notes): Likewise.
6382 (distribute_links): Likewise. Tweak prototype.
6383 (clear_log_links): Delete.
6384 (adjust_for_new_dest): Call alloc_insn_link.
6385 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6387 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6389 * gcse.c (modify_mem_list): Convert to an array of VECs.
6390 (canon_modify_mem_list, compute_transp): Tweak formatting.
6391 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6392 (load_killed_in_block_p): Likewise.
6393 (record_last_mem_set_info): Likewise.
6394 (clear_modify_mem_tables): Likewise.
6396 2011-04-05 Tom de Vries <tom@codesourcery.com>
6399 * function.c (emit_use_return_register_into_block): Only define if
6402 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6404 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6406 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6408 * config/rx/rx-opts.h: New.
6409 * config/rx/rx.c (rx_cpu_type): Remove.
6410 (rx_handle_option): Don't assert that global structures are in
6411 use. Access variables via opts pointer. Defer most handling of
6412 OPT_mint_register_. Use error_at.
6413 (rx_option_override): Handle deferred OPT_mint_register_ here.
6414 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6415 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6416 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6417 (rx_cpu_types): New Enum and EnumValue entries.
6418 (mint-register=): Use Defer and use Var accordingly.
6420 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6422 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6423 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6424 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6426 (debug_free_queue, debug_nesting, symbol_queue_index):
6428 * dbxout.c: ...to here. Make static.
6430 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6432 * gcse.c (modify_pair): Define. Define a VEC of it.
6433 (canon_modify_mem_list): Convert to an array of VECs.
6434 (free_insn_expr_list_list): Delete.
6435 (clear_modify_mem_tables): Call VEC_free instead.
6436 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6437 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6438 (canon_list_insert, compute_transp): Likewise.
6440 2011-04-05 Tom de Vries <tom@codesourcery.com>
6443 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6446 2011-04-05 Tom de Vries <tom@codesourcery.com>
6449 * function.c (emit_use_return_register_into_block): New function.
6450 (thread_prologue_and_epilogue_insns): Use
6451 emit_use_return_register_into_block.
6453 2011-04-05 Tom de Vries <tom@codesourcery.com>
6456 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6459 2011-04-05 Tom de Vries <tom@codesourcery.com>
6461 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6463 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6465 * config/arm/arm.md (define_constants for unspec): Replace with
6467 (define_constants for unspecv): Replace with define_c_enum.
6468 * config/arm/neon.md (define_constants for unspec): Replace with
6471 2011-04-04 Richard Henderson <rth@redhat.com>
6474 * dwarf2out.c (output_line_info): Always emit line info from
6475 at least one section.
6476 (dwarf2out_init): Create text_section_line_info here ...
6477 (set_cur_line_info_table): ... not here.
6479 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6482 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6485 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6487 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6489 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6490 (expr_equiv_p): Remove.
6491 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6492 (hash_scan_set): Update call to insert_set_in_table.
6493 (dump_hash_table): Dump <dest, src> pair.
6494 (lookup_set): Simplify. Lookup <dest, src> pair.
6495 (compute_transp): Remove, fold heavily simplified code into...
6496 (compute_local_properties): ...here. Expect COMP and TRANSP
6498 (find_avail_set): Take set directly from struct expr.
6499 (find_bypass-set): Likewise.
6500 (bypass_block): Likewise.
6501 (cprop_insn): Likewise. Remove redundant INSN_P test.
6503 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6504 checks on form of COND from find_implicit_sets to here.
6505 (find_implicit_sets): Cleanup control flow. Split critical edges
6506 if it exposes implicit sets. Allocate/resize implicit_sets as
6508 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6509 changed something. Run df_analyze after find_implicit_sets if any
6510 edges were split. Do not allocate implicit_sets here.
6512 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6513 (gcse_obstack): Renamed to cprop_obstack.
6514 (GNEW, GNEWVEC, GNEWVAR): Remove.
6516 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6517 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6518 (gcse_alloc): Likewise, and rename to cprop_alloc.
6519 (alloc_gcse_men, free_gcse_mem): Remove.
6520 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6521 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6522 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6524 * cprop.c (oprs_not_set_p): Remove.
6525 (mark_set, mark_clobber): Remove.
6526 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6527 (reg_not_set_p): New function.
6528 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6529 (cprop_insn): Likewise.
6530 (cprop_jump): Use FOR_EACH_EDGE.
6532 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6535 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6536 (rank_for_schedule): Use scheduled_insns vector instead of
6537 last_scheduled_insn.
6538 (ok_for_early_queue_removal): Likewise.
6539 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6541 (choose_ready): Likewise.
6542 (commit_schedule): Use VEC_iterate.
6543 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6544 a dbg_cnt, use it and ensure the first insn is in the ready list.
6545 (haifa_sched_init): Allocate scheduled_insns.
6546 (sched_extend_ready_list): Don't allocate it; reserve space.
6547 (haifa_sched_finish): Free it.
6549 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6551 * optc-gen.awk: Always remove type from Variable entry before
6552 recording in var_seen.
6554 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6556 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6557 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6558 call to tidy_fallthru_edges.
6560 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6562 * doc/options.texi (ToLower): Document.
6563 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6564 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6565 * opts.h (cl_option): Add cl_tolower field.
6566 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6567 arguments with lowercase strings.
6568 * config/rx/rx.opt (mcpu=): Add ToLower.
6569 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6572 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6574 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6576 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6578 * config/vax/vax.c: Include reload.h.
6580 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6582 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6583 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6584 (sparc_preferred_reload_class): New function.
6586 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6589 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6590 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6592 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6594 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6595 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6597 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6599 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6600 (ASM_OUTPUT_ALIGNED_BSS): Define.
6602 2011-04-03 Michael Matz <matz@suse.de>
6604 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6605 and next_slot members.
6606 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6607 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6608 (lto_streamer_cache_append): Declare.
6609 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6610 unsigned index, remove offset parameter, ensure that we append
6611 or update existing entries.
6612 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6613 parameter, update next_slot for append.
6614 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6616 (lto_streamer_cache_insert_at): Likewise.
6617 (lto_streamer_cache_append): New function.
6618 (lto_streamer_cache_lookup): Use unsigned index.
6619 (lto_streamer_cache_get): Likewise.
6620 (lto_record_common_node): Don't test tree_node_can_be_shared.
6621 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6622 (lto_streamer_cache_delete): Don't free offsets member.
6623 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6624 (lto_output_string_with_length): Use lto_output_data_stream.
6625 (lto_output_tree_header): Remove ix parameter, don't write it.
6626 (lto_output_builtin_tree): Likewise.
6627 (lto_write_tree): Adjust callers to above, don't track and write
6628 offset, write unsigned index.
6629 (output_unreferenced_globals): Don't emit all global vars.
6630 (write_global_references): Use unsigned indices.
6631 (lto_output_decl_state_refs): Likewise.
6632 (write_symbol): Likewise.
6633 * lto-streamer-in.c (lto_input_chain): Move earlier.
6634 (input_function): Use unsigned index.
6635 (input_alias_pairs): Don't read and then ignore all global vars.
6636 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6637 don't pass it back, use lto_streamer_cache_append.
6638 (lto_register_var_decl_in_symtab): Use unsigned index.
6639 (lto_register_function_decl_in_symtab): Likewise.
6640 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6642 (lto_get_builtin_tree): Don't read index, use
6643 lto_streamer_cache_append.
6644 (lto_read_tree): Adjust call to lto_materialize_tree.
6646 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6647 don't use function calls in arguments to MIN.
6649 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6652 * gimple.c (gimple_type_leader_entry): Mark deletable.
6654 2011-04-03 Alan Modra <amodra@gmail.com>
6656 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6658 2011-04-03 Michael Matz <matz@suse.de>
6660 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6662 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6664 2011-04-03 Michael Matz <matz@suse.de>
6666 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6667 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6668 without function context.
6669 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6670 current_function_decl and cfun.
6672 2011-04-03 Michael Matz <matz@suse.de>
6674 * tree.c (decl_init_priority_insert): Don't create entry for
6676 (decl_fini_priority_insert): Ditto.
6677 (fields_compatible_p, find_compatible_field): Remove.
6678 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6679 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6681 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6683 * combine.c (try_combine): Remove useless local variable.
6685 2011-04-03 Richard Guenther <rguenther@suse.de>
6686 Ira Rosen <ira.rosen@linaro.org>
6688 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6689 non-variable offsets and compare the remaining bases of the two
6690 accesses instead of looking for exact same data-ref.
6692 2011-04-02 Kai Tietz <ktietz@redhat.com>
6695 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6697 * i386.c (ix86_is_msabi_thiscall): New helper function.
6698 (ix86_is_type_thiscall): New helper function.
6699 (ix86_comp_type_attributes): Handle thiscall for method-functions
6701 (init_cumulative_args): Likewise.
6702 (find_drap_reg): Likewise.
6703 (ix86_static_chain): Likewise.
6704 (x86_this_parameter): Likewise.
6705 (x86_output_mi_thunk): Likewise.
6707 2011-04-01 Olivier Hainque <hainque@adacore.com>
6708 Nicolas Setton <setton@adacore.com>
6709 Eric Botcazou <ebotcazou@adacore.com>
6711 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6712 (add_gnat_descriptive_type_attribute): New function.
6713 (gen_array_type_die): Call it.
6714 (gen_enumeration_type_die): Likewise.
6715 (gen_struct_or_union_type_die): Likewise.
6716 (modified_type_die): Likewise.
6717 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6718 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6719 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6721 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6724 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6725 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6728 2011-03-17 Richard Guenther <rguenther@suse.de>
6731 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6732 origin for decls in other ltrans units.
6733 (input_varpool_node): Likewise.
6735 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6738 * expr.c (expand_assignment): Handle all possibilities
6739 if TO_RTX is CONCAT.
6740 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6741 (store_split_bit_field): If SUBREG_REG (op0) or
6742 op0 itself has smaller mode than word, return it
6743 for offset 0 and const0_rtx for out-of-bounds stores.
6744 If word is const0_rtx, skip it.
6746 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6748 * config/h8300/h8300.c (print_operand_address): Rename to...
6749 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6750 Call h8300_print_operand and h8300_print_operand_address instead of
6751 print_operand and print_operand_address. Declare.
6752 (print_operand): Renake to...
6753 (h8300_print_operand): ...this. Make static. Adjust comments.
6754 Call h8300_print_operand instead of print_operand. Declare.
6755 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6756 (h8300_register_move_cost): Likewise.
6757 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6758 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6759 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6760 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6761 * config/h8300/h8300-protos.h (print_operand): Delete.
6762 (print_operand_address): Delete.
6764 2011-04-01 Richard Henderson <rth@redhat.com>
6767 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6768 in strict mode before dwarf4. Re-order tests to early out
6769 before switching sections.
6771 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6773 * config/h8300/constraints.md: New file.
6774 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6775 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6776 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6777 * config/h8300/predicates.md (bit_operand): Likewise.
6778 (incdec_operand): Use satisfies_constraint_M and
6779 satisfies_constraint_O. Don't use C code block.
6780 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6781 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6782 (compute_mov_length): Use satisfies_constraint_G.
6783 (fix_bit_operand): Use satisfies_constraint_U.
6784 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6785 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6786 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6787 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6788 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6789 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6790 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6791 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6792 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6793 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6794 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6795 (EXTRA_MEMORY_CONSTRAINT): Delete.
6797 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6798 Michael Meissner <meissner@linux.vnet.ibm.com>
6801 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6802 operands, as per the specifications.
6804 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6805 (vec_extract_evenv4sf): Ditto.
6806 (vec_extract_evenv8hi): Ditto.
6807 (vec_extract_evenv16qi): Ditto.
6808 (vec_extract_oddv4si): Ditto.
6810 2011-03-31 Mark Wielaard <mjw@redhat.com>
6812 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6813 high_pc attribute if the CU has no associated code. Only output
6814 DW_AT_entry_pc for CU if not generating strict dwarf and
6817 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6819 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6820 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6822 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6823 * final.c (final_start_function): Call the new function rather
6824 than using a NULL argument for dwarf2out_frame_debug.
6826 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6827 that contains the prologue.
6829 * haifa-sched.c (queue_insn): New arg REASON. All callers
6830 changed. Print it in debugging output.
6832 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6834 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6835 Split most of the code into...
6836 (begin_move_insn): ... here. New function.
6837 (ebb_sched_info): Add a pointer to it.
6838 * haifa-sched.c (scheduled_insns): New static variable.
6839 (sched_extend_ready_list): Allocate it.
6840 (schedule_block): Use it to record the order of scheduled insns.
6841 Perform RTL changes to move insns only after all scheduling
6842 decisions have been made.
6843 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6844 begin_move_insn field.
6845 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6846 * sched-int.h (struct haifa_sched_info): Remove second argument
6847 from begin_schedule_ready hook. Add new member begin_move_insn.
6848 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6849 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6851 * haifa-sched.c (prune_ready_list): New function, broken out of
6853 (schedule_block): Use it.
6855 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6857 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6859 2011-04-01 Kai Tietz <ktietz@redhat.com>
6861 * config.gcc (*-*-mingw*): Allow as option the
6862 posix threading model.
6863 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6864 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6866 (CPP_SPEC): Add pthread/no-pthread handling.
6867 (LIB_SPEC): Likewise.
6868 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6869 (LIB_SPEC): Likewise.
6870 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6871 flag to pass -pthread option for shared libgcc build.
6872 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6873 for shared libgcc build.
6874 * config/i386/t-mingw-pthread: New file.
6875 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6876 New define to enable use of library pthread by default.
6877 * config/i386/mingw.opt (pthread): New driver option.
6878 (no-pthread): New driver option.
6879 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6880 * config/i386/mingw-w64.opt: Likewise.
6882 2011-04-01 Gary Funck <gary@intrepid.com>
6884 * c-decl.c (grokdeclarator): Fix formatting.
6886 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6888 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6889 instead of n_operands.
6890 (set_storage_via_setmem): Likewise.
6891 * optabs.c (maybe_gen_insn): Likewise.
6892 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6893 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6894 (mips_expand_builtin_direct): Likewise.
6895 * config/spu/spu.c (expand_builtin_args): Likewise.
6897 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6899 * recog.h (insn_data_d): Add n_generator_args.
6900 * genoutput.c (data): Likewise.
6901 (output_insn_data): Print it.
6902 (max_opno, num_dups): Delete.
6903 (scan_operands): Just fill in "d->operand[...]".
6904 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6906 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6908 * gensupport.h (pattern_stats): New structure.
6909 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6910 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6911 (max_operand_1, max_operand_vec): Delete.
6912 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6914 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6916 * emit-rtl.c (emit_pattern_after_setloc): New function.
6917 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6918 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6919 (emit_pattern_after): New function.
6920 (emit_insn_after, emit_jump_insn_after): Call it.
6921 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6922 (emit_pattern_before_setloc): New function.
6923 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6924 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6926 (emit_pattern_before): New function.
6927 (emit_insn_before, emit_jump_insn_before): Call it.
6928 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6930 2011-03-31 Richard Henderson <rth@redhat.com>
6932 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6933 (dw_separate_line_info_entry): Remove.
6934 (enum dw_line_info_opcode): New.
6935 (dw_line_info_entry): Use it.
6936 (dw_line_info_table, dw_line_info_table_p): New.
6937 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6938 (line_info_table, line_info_label_num): Remove.
6939 (line_info_table_in_use): Remove.
6940 (separate_line_info_table): Remove.
6941 (separate_line_info_table_allocated): Remove.
6942 (separate_line_info_table_in_use): Remove.
6943 (LINE_INFO_TABLE_INCREMENT): Remove.
6944 (line_info_label_num): New.
6945 (cur_line_info_table): New.
6946 (text_section_line_info, cold_text_section_line_info): New.
6947 (separate_line_info): New.
6948 (SEPARATE_LINE_CODE_LABEL): Remove.
6949 (print_dwarf_line_table): Remove.
6950 (debug_dwarf): Don't dump it.
6951 (output_one_line_info_table): New.
6952 (output_line_info): Use it.
6953 (new_line_info_table): New.
6954 (set_cur_line_info_table): New.
6955 (dwarf2out_switch_text_section): Use it.
6956 (dwarf2out_begin_function): Likewise.
6957 (push_dw_line_info_entry): New.
6958 (dwarf2out_source_line): Rewrite for new line info tables.
6959 (dwarf2out_init): Remove dead initailizations.
6961 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6963 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6965 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6966 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6967 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6968 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6969 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6970 * opt-functions.awk (flag_init, switch_bit_fields): New.
6971 (switch_flags): Don't handle flags moved to bit-fields. Don't
6972 generate CL_MISSING_OK or CL_SAVE.
6973 * optc-gen.awk: Update to generate bit-field output as well as
6975 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6976 bit-field instead of CL_REJECT_DRIVER flag.
6977 * opts-common.c (generate_canonical_option,
6978 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6979 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6980 instead of CL_REJECT_NEGATIVE flag.
6981 * toplev.c (print_switch_values): Use cl_report bit-field instead
6984 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6986 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6987 a zero minimum index only if it is redundant.
6989 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6991 PR rtl-optimization/48381
6992 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6993 instead of ira_class_hard_reg_index for calculating conflicting
6996 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6998 * cprop.c: Clean up hash table building.
6999 (reg_avail_info): Remove.
7000 (oprs_available_p): Remove.
7001 (record_last_reg_set_info): Remove.
7002 (record_last_set_info): Remove.
7003 (reg_available_p): New function.
7004 (gcse_constant_p): Do not treat unfolded conditions as constants.
7005 (make_set_regs_unavailable): New function.
7006 (hash_scan_set): Simplify with new reg_available_p.
7007 (compute_hash_table_work): Traverse insns stream only once.
7008 Do not compute reg_avail_info. Traverse insns in reverse order.
7009 Record implicit sets after recording explicit sets from the block.
7011 2011-03-31 Michael Matz <matz@suse.de>
7013 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7015 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7017 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7018 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7019 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7020 (h8300_mode_dependent_address_p): New function.
7021 (h8300_get_index): Make static.
7023 2011-03-31 Jeff Law <law@redhat.com>
7025 * reload1.c (elimination_effects): Fix typo in recent change.
7027 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7028 typo potentially leading to null pointer dereference.
7030 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7031 (setup_save_areas): Corresponding changes to avoid useless
7034 * jump.c (reversed_comparison_code_parts): Avoid successive return
7035 statements when REVERSE_CONDITION is defined.
7037 * expr.c (expand_assignment): Avoid useless assignments.
7038 (expand_expr_real_1): Likewise.
7039 (expand_expr_real_2): Avoid useless statements.
7041 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7043 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7045 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7048 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7050 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7053 * doc/tm.texi.in (TARGET_VERSION): Remove.
7054 * doc/tm.texi: Regenerate.
7055 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7056 * collect2.c (main): Don't use TARGET_VERSION.
7057 * mips-tdump.c (main): Don't use TARGET_VERSION.
7058 * mips-tfile.c (main): Don't use TARGET_VERSION.
7059 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7060 * config/rs6000/vxworksae.h: Remove.
7061 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7062 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7063 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7064 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7065 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7066 * config/arm/arm.h (TARGET_VERSION): Remove.
7067 * config/arm/coff.h (TARGET_VERSION): Remove.
7068 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7069 * config/arm/elf.h (TARGET_VERSION): Remove.
7070 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7071 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7072 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7073 * config/arm/pe.h (TARGET_VERSION): Remove.
7074 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7075 * config/arm/semi.h (TARGET_VERSION): Remove.
7076 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7077 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7078 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7079 * config/avr/avr.h (TARGET_VERSION): Remove.
7080 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7081 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7082 * config/frv/frv.h (TARGET_VERSION): Remove.
7083 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7084 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7085 * config/i386/darwin.h (TARGET_VERSION): Remove.
7086 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7087 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7088 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7089 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7090 * config/i386/gnu.h (TARGET_VERSION): Remove.
7091 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7092 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7093 * config/i386/linux.h (TARGET_VERSION): Remove.
7094 * config/i386/linux64.h (TARGET_VERSION): Remove.
7095 * config/i386/lynx.h (TARGET_VERSION): Remove.
7096 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7097 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7098 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7099 * config/i386/netware.h (TARGET_VERSION): Remove.
7100 * config/i386/nto.h (TARGET_VERSION): Remove.
7101 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7102 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7103 * config/ia64/elf.h (TARGET_VERSION): Remove.
7104 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7105 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7106 * config/ia64/linux.h (TARGET_VERSION): Remove.
7107 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7108 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7109 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7110 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7111 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7112 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7113 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7114 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7115 * config/m68k/linux.h (TARGET_VERSION): Remove.
7116 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7117 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7118 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7119 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7120 * config/mep/mep.h (TARGET_VERSION): Remove.
7121 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7122 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7123 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7124 * config/mips/linux.h (TARGET_VERSION): Remove.
7125 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7126 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7127 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7128 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7129 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7130 * config/pa/pa.h (TARGET_VERSION): Remove.
7131 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7132 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7133 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7134 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7135 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7136 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7137 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7138 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7139 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7140 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7141 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7142 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7143 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7144 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7145 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7146 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7147 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7148 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7149 * config/s390/linux.h (TARGET_VERSION): Remove.
7150 * config/s390/s390.h (TARGET_VERSION): Remove.
7151 * config/s390/tpf.h (TARGET_VERSION): Remove.
7152 * config/score/score.h (TARGET_VERSION): Remove.
7153 * config/sh/linux.h (TARGET_VERSION): Remove.
7154 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7155 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7156 * config/sh/sh.h (TARGET_VERSION): Remove.
7157 * config/sh/sh64.h (TARGET_VERSION): Remove.
7158 * config/sh/superh.h (TARGET_VERSION): Remove.
7159 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7160 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7161 * config/sparc/linux.h (TARGET_VERSION): Remove.
7162 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7163 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7164 TARGET_NAME32, TARGET_NAME): Remove.
7165 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7166 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7167 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7168 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7169 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7170 * config/spu/spu.h (TARGET_VERSION): Remove.
7171 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7172 * config/v850/v850.h (TARGET_VERSION): Remove.
7173 * config/vax/linux.h (TARGET_VERSION): Remove.
7174 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7175 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7176 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7178 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7181 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7182 frame-related from frame-unrelated adjustments to the stack pointer.
7184 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7186 * common.opt (fdebug-types-section): Move earlier.
7187 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7189 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7191 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7194 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7196 * tree.h (CASE_CHAIN): Define.
7197 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7198 (gimple_redirect_edge_and_branch): Likewise.
7200 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7203 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7206 2011-03-30 Jeff Law <law@redhat.com>
7208 * PR bootstrap/48371
7209 * reload1.c (reload): Fix botch in last change.
7211 * reload.h (struct reload): Fix typo introduced in last change.
7213 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7215 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7216 Undocumented. Remove help text.
7217 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7220 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7222 * doc/options.texi (NegativeAlias): Document.
7223 (Alias): Mention NegativeAlias.
7224 * opt-functions.awk: Handle NegativeAlias.
7225 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7226 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7227 * opts.h (CL_NEGATIVE_ALIAS): Define.
7228 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7229 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7231 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7233 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7234 mno-spe and mno-isel instead of mspe=no and -misel=no.
7236 2011-03-29 Mark Wielaard <mjw@redhat.com>
7238 * common.opt (fdebug-types-section): New flag.
7239 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7240 * dwarf2out.c (use_debug_types): New define.
7241 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7242 (print_die): Guard output of type unit signatures using
7244 (build_abbrev_table): Replace assert of dwarf_version >= 4
7245 with assert on use_debug_types.
7246 (size_of_die): Likewise.
7247 (unmark_dies): Likewise.
7248 (value_format): Decide AT_ref_external form on use_debug_types.
7249 (output_die): Replace dwarf_version version check guard with
7250 use_debug_types where appropriate.
7251 (modified_type_die): Likewise.
7252 (gen_reference_type_die): Likewise.
7253 (dwarf2out_start_source_file): Likewise.
7254 (dwarf2out_end_source_file): Likewise.
7255 (prune_unused_types_walk_attribs): Likewise.
7256 (dwarf2out_finish): Likewise.
7258 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7260 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7262 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7264 PR rtl-optimization/48332
7265 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7266 mode of input operand N and modeN to its actual mode.
7268 2011-03-30 Jeff Law <law@redhat.com>
7270 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7271 define accessor macro.
7272 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7273 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7274 (reg_equiv_init): Likewise.
7275 (reg_equivs_size): New variable.
7276 (reg_equiv_init_size): Remove.
7277 (allocate_initial_values): Move prototype to here from....
7278 * integrate.h (allocate_initial_values): Remove prototype.
7279 * integrate.c: Include reload.h.
7280 (allocate_initial_values): Corresponding changes.
7281 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7282 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7283 (update_equiv_regs): Corresponding changes.
7284 (ira): Corresponding changes.
7285 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7286 (push_secondary_reload): Corresponding changes.
7287 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7288 (make_memloc, find_reloads_address): Corresponding changes.
7289 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7290 (find_reloads_address_1): Corresponding changes.
7291 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7292 (refers_to_regno_for_reload_p): Corresponding changes.
7293 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7294 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7295 * reload1.c: Include ggc.h.
7296 (grow_reg_equivs): New function.
7297 (replace_pseudos_in, reload): Corresponding changes.
7298 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7299 (eliminate_regs_1, elimination_effects): Corresponding changes.
7300 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7301 (delete_output_reload): Likewise.
7302 * caller-save.c (mark_referenced_regs): Corresponding changes.
7303 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7304 * frv/predicates.md (frv_load_operand): Corresponding changes.
7305 * microblaze/microblaze.c (double_memory_operand): Corresponding
7307 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7308 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7309 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7310 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7311 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7313 * pa/pa.c (emit_move_sequence): Corresponding changes.
7314 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7316 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7319 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7320 structure modes. Don't check neon_vector_mem_operand for
7321 vector or structure modes.
7323 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7324 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7327 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7328 operand 1 and reshuffle the operands to match.
7329 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7331 2011-03-30 Christian Schüler <cschueler@gmx.de>
7334 * config/c.opt (F): Added 'Driver' to -F option.
7337 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7339 * config/darwin.opt: Added '-arch' option.
7341 2011-03-30 Nick Clifton <nickc@redhat.com>
7343 * config/rx/rx.md: Add peepholes and patterns to combine
7344 extending loads and simple arithmetic instructions.
7345 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7346 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7347 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7348 modes to use pre-decrement and post-increment addressing.
7349 (rx_is_restricted_memory_address): Add range checking of REG+INT
7351 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7352 (rx_memory_move_cost): Adjust cost of stores.
7353 (rx_adjust_insn_length): New function.
7355 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7358 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7359 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7360 matching arg00/arg01 types.
7362 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7364 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7365 last_location to UNKNOWN_LOCATION.
7367 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7370 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7373 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7374 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7377 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7379 (sparc_cpu): Likewise.
7380 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7383 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7387 PR rtl-optimization/48345
7388 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7389 hard regs for given mode from profitable regs when doing secondary
7392 2011-03-29 Jeff Law <law@redhat.com>
7395 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7396 do_not_duplicate field.
7397 (lookup_redirection_data): Corresponding changes.
7398 (create_duplicates): Always create a template block.
7399 (redirect_edges): Remove code which reused the original block
7400 when it was going to become unreachable code.
7401 (thread_block): Don't set do_not_duplicate field.
7403 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7405 * lto-opts.c (register_user_option_p, lto_register_user_option):
7406 Make type argument unsigned.
7407 * lto-streamer.h (lto_register_user_option): Make type argument
7409 * opth-gen.awk: Make CL_* macros unsigned.
7410 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7411 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7412 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7413 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7414 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7415 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7416 (find_opt): Make lang_mask argument unsigned.
7418 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7420 PR rtl-optimization/48331
7421 PR rtl-optimization/48334
7422 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7423 for any used algorithm.
7425 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7427 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7430 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7432 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7433 (alpha_option_override): Don't set alpha_sr_alias_set.
7434 (emit_frame_store_1): Use gen_frame_mem rather than calling
7436 (alpha_expand_epilogue): Ditto.
7438 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7440 PR tree-optimization/48290
7441 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7442 vectorization, check that relevant phis in the basic block after
7443 the inner loop are really inner loop's exit phis.
7445 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7448 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7449 (cached_dw_loc_list_def): New structure.
7450 (cached_dw_loc_list): New typedef.
7451 (cached_dw_loc_list_table): New variable.
7452 (cached_dw_loc_list_table_hash): New function.
7453 (cached_dw_loc_list_table_eq): Likewise.
7454 (add_location_or_const_value_attribute): Take a bool cache_p.
7455 Cache the list when the parameter is true.
7456 (gen_formal_parameter_die): Update caller.
7457 (gen_variable_die): Likewise.
7458 (dwarf2out_finish): Likewise.
7459 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7460 while generating debug info for the decl.
7461 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7462 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7463 (resolve_addr): Cache the result of resolving a chain of
7466 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7468 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7469 conflict object hard regset nodes have intersecting hard reg sets.
7471 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7472 after regstat_init_n_sets_and_refs.
7474 * ira.c: Add more comments at the top.
7475 (setup_stack_reg_pressure_class, setup_pressure_classes):
7476 Add comments how we compute the register pressure classes.
7477 (setup_allocno_and_important_classes): Add more comments.
7478 (setup_class_translate_array, reorder_important_classes)
7479 (setup_reg_class_relations): Add comments.
7481 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7484 * ira-color.c: Add 2011 to the Copyright line.
7485 (assign_hard_reg): Add more comments.
7486 (improve_allocation): Ditto.
7488 * ira-costs.c: Add 2011 to the Copyright line.
7489 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7491 (setup_regno_cost_classes_by_mode): Ditto.
7493 Initial patches from ira-improv branch:
7495 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7497 * ira-build.c (ira_create_object): Remove initialization of
7498 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7499 (ira_create_allocno): Remove initialization of
7500 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7501 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7502 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7503 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7504 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7505 Initialize ALLOCNO_ADD_DATA.
7506 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7507 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7509 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7510 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7512 * ira.c (ira_reallocate): Remove.
7513 (setup_pressure_classes): Call
7514 ira_init_register_move_cost_if_necessary. Use
7515 ira_register_move_cost instead of ira_get_register_move_cost.
7516 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7517 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7519 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7520 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7521 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7522 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7523 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7524 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7526 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7527 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7528 (struct allocno_color_data): New.
7529 (allocno_color_data_t): New typedef.
7530 (allocno_color_data): New definition.
7531 (ALLOCNO_COLOR_DATA): New macro.
7532 (struct object_color_data): New.
7533 (object_color_data_t): New typedef.
7534 (object_color_data): New definition.
7535 (OBJECT_COLOR_DATA): New macro.
7536 (update_copy_costs, calculate_allocno_spill_cost): Call
7537 ira_init_register_move_cost_if_necessary. Use
7538 ira_register_move_cost instead of ira_get_register_move_cost.
7539 (move_spill_restore, update_curr_costs): Ditto.
7540 (allocno_spill_priority): Make it inline.
7541 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7542 (struct coalesce_data, coalesce_data_t): New.
7543 (allocno_coalesce_data): New definition.
7544 (ALLOCNO_COALESCE_DATA): New macro.
7545 (merge_allocnos, coalesced_allocno_conflict_p): Use
7546 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7547 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7548 (coalesce_allocnos): Ditto.
7549 (setup_coalesced_allocno_costs_and_nums): Ditto.
7550 (collect_spilled_coalesced_allocnos): Ditto.
7551 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7552 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7553 (coalesce_spill_slots): Ditto.
7554 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7555 free allocno_coalesce_data.
7557 * ira-conflicts.c: Fix formatting.
7558 (process_regs_for_copy): Call
7559 ira_init_register_move_cost_if_necessary. Use
7560 ira_register_move_cost instead of ira_get_register_move_cost.
7561 (build_object_conflicts): Optimize.
7563 * ira-costs.c (record_reg_classes): Optimize. Call
7564 ira_init_register_move_cost_if_necessary. Use
7565 ira_register_move_cost, ira_may_move_in_cost, and
7566 ira_may_move_out_cost instead of ira_get_register_move_cost and
7567 ira_get_may_move_cost.
7568 (record_address_regs): Ditto.
7569 (scan_one_insn): Optimize.
7570 (find_costs_and_classes): Optimize.
7571 (process_bb_node_for_hard_reg_moves): Call
7572 ira_init_register_move_cost_if_necessary. Use
7573 ira_register_move_cost instead of ira_get_register_move_cost.
7575 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7576 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7577 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7578 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7580 (ira_initiate_emit_data, ira_finish_emit_data)
7581 (create_new_allocno): New functions.
7582 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7583 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7584 Use ira_register_move_cost instead of ira_get_register_move_cost.
7586 * ira-int.h: Fix some comments.
7587 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7588 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7589 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7590 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7592 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7593 bitfield after mode. Make hard_regno a short int. Make
7594 hard_regno short. Remove first_coalesced_allocno and
7595 next_coalesced_allocno. Move mem_optimized_dest_p,
7596 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7597 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7598 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7599 temp, colorable_p. Add new member add_data.
7600 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7601 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7602 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7603 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7604 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7605 (ALLOCNO_ADD_DATA): New macro.
7606 (ira_emit_data_t): New typedef.
7607 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7608 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7609 from struct ira_allocno.
7610 (ALLOCNO_EMIT_DATA): New macro.
7611 (ira_allocno_emit_data, allocno_emit_reg): New.
7612 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7613 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7614 (OBJECT_ADD_DATA): New macro.
7615 (ira_reallocate): Remove.
7616 (ira_initiate_emit_data, ira_finish_emit_data): New.
7617 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7618 (ira_init_register_move_cost_if_necessary): New.
7619 (ira_object_conflict_iter_next): Merge into
7620 ira_object_conflict_iter_cond.
7621 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7623 * ira-live.c (process_single_reg_class_operands): Call
7624 ira_init_register_move_cost_if_necessary. Use
7625 ira_register_move_cost instead of ira_get_register_move_cost.
7627 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7629 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7631 * ira-costs.c: Fix formatting.
7632 (cost_classes, cost_classes_num): Remove.
7633 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7634 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7635 (cost_classes_del, cost_classes_htab): New.
7636 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7637 (initiate_regno_cost_classes, setup_cost_classes): New.
7638 (setup_regno_cost_classes_by_aclass): New.
7639 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7640 (record_reg_classes): Use regno_cost_classes instead of
7641 cost_classes. Move checking opposite operand up.
7642 (record_address_regs): Use regno_cost_classes
7643 instead of cost_classes.
7644 (scan_one_insn): Ditto. Use always general register.
7645 (print_allocno_costs): Use regno_cost_classes instead of
7647 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7648 (find_costs_and_classes): Set up cost classes for each registers.
7649 Use also their mode for this. Use regno_cost_classes instead of
7651 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7653 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7654 (ira_costs, ira_set_pseudo_classes): Call
7655 initiate_regno_cost_classes and finish_regno_cost_classes.
7657 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7659 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7661 * target.def (ira_cover_classes): Remove.
7663 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7665 * doc/tm.texi.in: Ditto.
7667 * ira-conflicts.c: Remove mentioning cover classes from the file.
7668 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7669 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7671 * targhooks.c (default_ira_cover_classes): Remove.
7673 * targhooks.h (default_ira_cover_classes): Ditto.
7675 * haifa-sched.c: Remove mentioning cover classes from the file.
7676 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7677 ira_pressure_classes and ira_pressure_classes_num instead of
7678 ira_reg_class_cover_size and ira_reg_class_cover. Use
7679 sched_regno_pressure_class instead of sched_regno_cover_class.
7680 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7681 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7683 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7684 classes from the file.
7685 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7686 (struct object_hard_regs, struct object_hard_regs_node): New.
7687 (struct ira_object): New members profitable_hard_regs,
7688 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7689 (struct ira_allocno): Rename cover_class to aclass. Rename
7690 cover_class_cost and updated_cover_class_cost to class_cost and
7691 updated_class_cost. Remove splay_removed_p and
7692 left_conflict_size. Add new members colorable_p.
7693 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7694 (ALLOCNO_COLORABLE_P): New macro.
7695 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7696 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7697 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7698 (OBJECT_...): Rename parameter C to O.
7699 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7700 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7701 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7702 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7703 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7704 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7705 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7706 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7707 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7708 x_ira_reg_class_subunion.
7709 (ira_max_memory_move_cost, ira_max_register_move_cost)
7710 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7711 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7712 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7713 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7714 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7715 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7716 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7717 (ira_tune_allocno_costs_and_cover_classes): Rename to
7718 ira_tune_allocno_costs.
7719 (ira_debug_hard_regs_forest): New.
7720 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7721 (ira_object_conflict_iter_next): Fix comments.
7722 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7723 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7724 cover_class to aclass.
7725 (ira_allocate_and_accumulate_costs): Ditto.
7726 (ira_allocate_and_set_or_copy_costs): Ditto.
7728 * opts.c (decode_options): Remove ira_cover_class check.
7730 * ira-color.c: Remove mentioning cover classes from the file. Use
7731 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7732 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7733 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7734 (splay-tree.h): Remove include.
7735 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7736 before copy_freq_compare_func.
7737 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7738 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7740 (hard_regs_roots, hard_regs_node_vec): Ditto.
7741 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7742 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7743 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7744 (create_new_object_hard_regs_node): Ditto.
7745 (add_new_object_hard_regs_node_to_forest): Ditto.
7746 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7747 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7749 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7750 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7751 (remove_unused_object_hard_regs_nodes): Ditto.
7752 (enumerate_object_hard_regs_nodes): Ditto.
7753 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7754 (object_hard_regs_subnode_t): Ditto.
7755 (struct object_hard_regs_subnode): Ditto.
7756 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7757 (setup_object_hard_regs_subnode_index): Ditto.
7758 (get_object_hard_regs_subnodes_num): Ditto.
7759 (form_object_hard_regs_nodes_forest): Ditto.
7760 (finish_object_hard_regs_nodes_tree): Ditto.
7761 (finish_object_hard_regs_nodes_forest): Ditto.
7762 (allocnos_have_intersected_live_ranges_p): Rename to
7763 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7764 (pseudos_have_intersected_live_ranges_p): Rename to
7765 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7766 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7767 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7768 (update_copy_costs): Remove assert. Skip cost update if the hard
7769 reg does not belong the class.
7770 (assign_hard_reg): Process only profitable hard regs.
7771 (uncolorable_allocnos_num): Make it scalar.
7772 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7773 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7774 and ira_reg_class_max_nregs.
7775 (bucket_allocno_compare_func): Check frequency first.
7776 (sort_bucket): Add compare function as a parameter.
7777 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7778 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7779 (push_allocno_to_stack): Rewrite for checking new allocno
7781 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7782 (push_only_colorable): Pass new parameter to sort_bucket.
7783 (push_allocno_to_spill): Remove.
7784 (allocno_spill_priority_compare): Make it inline and rewrite.
7785 (splay_tree_allocate, splay_tree_free): Remove.
7786 (allocno_spill_sort_compare): New function.
7787 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7788 build and use splay tree. Choose first allocno in uncolorable
7789 allocno bucket to spill. Remove setting spill cost.
7790 (all_conflicting_hard_regs): Remove.
7791 (setup_allocno_available_regs_num): Check only profitable hard
7792 regs. Print info about hard regs nodes.
7793 (setup_allocno_left_conflicts_size): Remove.
7794 (put_allocno_into_bucket): Don't call
7795 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7796 (improve_allocation): New.
7797 (color_allocnos): Call setup_profitable_hard_regs,
7798 form_object_hard_regs_nodes_forest, improve_allocation,
7799 finish_object_hard_regs_nodes_forest. Setup spill cost.
7800 (print_loop_title): Use pressure classes.
7801 (color_allocnso): Ditto.
7802 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7803 and allocnos_for_spilling.
7804 (ira_sort_regnos_for_alter_reg): Don't setup members
7805 {first,next}_coalesced_allocno.
7806 (color): Remove allocating and freeing removed_splay_allocno_vec.
7807 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7808 prohibited_class_mode_regs.
7810 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7812 (update_allocno_pressure_excess_length): Use pressure classes.
7813 (inc_register_pressure, dec_register_pressure): Check for pressure
7815 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7816 pressure class. Use ira_reg_class_nregs instead of
7817 ira_reg_class_max_nregs.
7818 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7819 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7820 (single_reg_class): Use ira_reg_class_nregs instead of
7821 ira_reg_class_max_nregs.
7822 (process_bb_node_lives): Use pressure classes.
7824 * ira-emit.c: Remove mentioning cover classes from the file. Use
7825 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7826 (change_loop): Use pressure classes.
7827 (modify_move_list): Call ira_set_allocno_class instead of
7828 ira_set_allocno_cover_class.
7830 * ira-build.c: Remove mentioning cover classes from the file. Use
7831 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7832 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7833 ALLOCNO_UPDATED_CLASS_COST instead of
7834 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7835 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7836 (ira_create_allocno): Remove initialization of
7837 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7838 ALLOCNO_COLORABLE_P.
7839 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7840 Update conflict regs for the objects.
7841 (create_cap_allocno): Remove assert. Don't propagate
7842 ALLOCNO_AVAILABLE_REGS_NUM.
7843 (ira_free_allocno_costs): New function.
7844 (finish_allocno): Change a part of code into call of
7845 ira_free_allocno_costs.
7846 (low_pressure_loop_node_p): Use pressure classes.
7847 (object_range_compare_func): Don't compare classes.
7848 (setup_min_max_conflict_allocno_ids): Ditto.
7850 * loop-invariant.c: Remove mentioning cover classes from the file.
7851 Use ira_pressure_classes and ira_pressure_classes_num instead of
7852 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7853 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7854 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7855 Use reg_allocno_class instead of reg_cover_class.
7856 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7857 STACK_REG_COVER_CLASS.
7858 (get_regno_cover_class): Rename to get_regno_pressure_class.
7859 (move_loop_invariants): Initialize and finalize regstat.
7861 * ira.c: Remove mentioning cover classes from the file. Add
7862 comments about coloring without cover classes. Use ALLOCNO_CLASS
7863 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7864 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7865 setup_class_subset_and_memory_move_costs.
7866 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7867 (setup_cover_and_important_classes): Rename to
7868 setup_allocno_and_important_classes.
7869 (setup_class_translate_array): New.
7870 (setup_class_translate): Call it for allocno and pressure classes.
7871 (cover_class_order): Rename to allocno_class_order.
7872 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7873 of ira_class_translate.
7874 (reorder_important_classes): Set up ira_important_class_nums.
7875 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7876 (print_class_cover): Rename to print_classes. Add parameter.
7877 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7878 Print pressure classes too.
7879 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7880 setup_reg_subclasses.
7881 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7882 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7883 (setup_prohibited_class_mode_regs): Use
7884 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7885 (clarify_prohibited_class_mode_regs): New function.
7886 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7887 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7888 (ira_init_once): Initialize them.
7889 (free_register_move_costs): Process them.
7890 (ira_init): Move calls of find_reg_classes and
7891 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7892 Call clarify_prohibited_class_mode_regs.
7893 (ira_no_alloc_reg): Remove.
7894 (too_high_register_pressure_p): Use pressure classes.
7896 * sched-deps.c: Remove mentioning cover classes from the file.
7897 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7898 ira_pressure_classes and ira_pressure_classes_num instead of
7899 ira_reg_class_cover_size and ira_reg_class_cover.
7900 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7901 sched_regno_pressure_class instead of sched_regno_cover_class.
7902 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7903 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7905 * ira.h: Add 2010 to Copyright.
7906 (ira_no_alloc_reg): Remove external.
7907 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7908 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7909 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7910 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7911 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7912 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7913 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7914 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7915 x_ira_no_alloc_regs.
7916 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7917 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7918 ira_allocno_classes_num and ira_allocno_classes.
7919 (ira_class_translate): Rename to ira_allocno_class_translate.
7920 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7921 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7922 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7923 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7924 (ira_no_alloc_regs): New.
7926 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7927 classes from the file. Use ALLOCNO_CLASS instead of
7928 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7929 ALLOCNO_COVER_CLASS_COST.
7930 (regno_cover_class): Rename to regno_aclass.
7931 (record_reg_classes): Use ira_reg_class_subunion instead of
7932 ira_reg_class_union.
7933 (record_address_regs): Check overflow.
7934 (scan_one_insn): Ditto.
7935 (print_allocno_costs): Print total mem cost fore regional allocation.
7936 (print_pseudo_costs): Use REG_N_REFS.
7937 (find_costs_and_classes): Use classes intersected with them on the
7938 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7939 ira_reg_class_union. Use ira_allocno_class_translate and
7940 regno_aclass instead of ira_class_translate and regno_cover_class.
7941 Modify code for finding regno_aclass. Setup preferred classes for
7943 (setup_allocno_cover_class_and_costs): Rename to
7944 setup_allocno_class_and_costs. Use regno_aclass instead of
7945 regno_cover_class. Use ira_set_allocno_class instead of
7946 ira_set_allocno_cover_class.
7947 (init_costs, finish_costs): Use regno_aclass instead of
7949 (ira_costs): Use setup_allocno_class_and_costs instead of
7950 setup_allocno_cover_class_and_costs.
7951 (ira_tune_allocno_costs_and_cover_classes): Rename to
7952 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7953 by processing objects. Use ira_reg_class_max_nregs instead of
7954 ira_reg_class_nregs.
7956 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7958 * sched-int.h: Remove mentioning cover classes from the file.
7959 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7961 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7962 classes from the file.
7963 (struct reg_pref): Rename coverclass into allocnoclass.
7964 (reg_cover_class): Rename to reg_allocno_class.
7966 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7968 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7970 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7972 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7974 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7976 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7978 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7980 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7982 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7984 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7986 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7987 (i386_ira_cover_classes): Ditto.
7989 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7991 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7993 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7995 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7997 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7999 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8001 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8002 (mips_ira_cover_classes): Ditto.
8004 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8006 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8008 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8010 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8012 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8014 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8015 (IRA_COVER_CLASSES_VSX): Ditto.
8017 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8018 (rs6000_ira_cover_classes): Ditto.
8020 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8022 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8024 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8026 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8028 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8030 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8032 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8034 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8036 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8038 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8040 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8043 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8044 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8045 dw_fde_unlikely_section_end_label, cold_in_std_section,
8046 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8047 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8049 (output_fde): Use dw_fde_second_{begin,end} if second is
8050 true, otherwise dw_fde_{begin,end}.
8051 (output_call_frame_info): Test dw_fde_second_begin != NULL
8052 instead of dw_fde_switched_sections.
8053 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8054 fields, initialize new fields. Initialize in_std_section
8055 unconditionally from the first partition.
8056 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8057 dw_fde_second_begin is non-NULL.
8058 (dwarf2out_switch_text_section): Stop initializing removed
8059 dw_fde_struct fields, initialize new fields, initialize
8060 also dw_fde_end here. Set dw_fde_switch_cfi even when
8061 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8062 (struct var_loc_list_def): Add last_before_switch field.
8063 (arange_table, arange_table_allocated, arange_table_in_use,
8064 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8065 (size_of_aranges): Count !in_std_section and !second_in_std_section
8066 hunks in fdes, instead of looking at arange_table_in_use.
8067 (output_aranges): Add aranges_length argument, don't call
8068 size_of_aranges here. Instead of using aranges_table*
8069 emit ranges for fdes when !in_std_section resp.
8070 !second_in_std_section.
8071 (dw_loc_list): Break ranges crossing section switch.
8072 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8073 use dw_fde_second_end instead of dw_fde_end as end of last range.
8074 (gen_subprogram_die): Don't call add_arange. Use
8075 dw_fde_{begin,end} for first partition and if switched
8076 section dw_fde_second_{begin,end} for the second.
8077 (var_location_switch_text_section_1,
8078 var_location_switch_text_section): New functions.
8079 (dwarf2out_begin_function): Initialize cold_text_section even
8080 when function_section () isn't text_section.
8081 (prune_unused_types): Don't walk arange_table.
8082 (dwarf2out_finish): Don't needlessly test
8083 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8084 If info_section_emitted, call size_of_aranges and if it indicates
8085 non-empty .debug_aranges, call output_aranges with the computed
8086 size. Stop using removed dw_fde_struct fields, use
8087 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8091 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8092 create ENTRY_VALUE if incoming or address of incoming's MEM
8094 * dwarf2out.c (mem_loc_descriptor): Don't emit
8095 DW_OP_GNU_entry_value of DW_OP_fbreg.
8096 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8097 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8098 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8099 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8101 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8102 is a REG_P or MEM_P with REG_P address, compute hash directly
8103 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8104 (preserve_only_constants): Don't clear VALUES forwaring
8105 ENTRY_VALUE to some other VALUE.
8107 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8109 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8112 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8114 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8115 block before expanding the statement.
8116 (expand_gimple_stmt_1): Likewise. Set them here...
8117 (expand_gimple_stmt): ...and not here. Tidy.
8118 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8121 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8123 * Makefile.in: New rule for cprop.o.
8124 * gcse.c: Move constant/copy propagation to cprop.c.
8125 (compute_local_properties): Only handle expression tables.
8126 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8127 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8128 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8129 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8130 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8131 compute_cprop_data, find_used_regs, try_replace_reg,
8132 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8133 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8134 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8135 find_bypass_set, reg_killed_on_edge, bypass_block,
8136 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8137 execute_rtl_cprop, pass_rtl_cprop): Move to...
8138 * cprop.c: ...here. New file, constant/copy propagation for RTL
8139 moved from gcse.c to here with minor cleanups in duplicated code.
8141 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8143 * config/i386/i386.c (flag_opts): Fix a typo in
8144 -mavx256-split-unaligned-store.
8146 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8148 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8149 LIBCALL_VALUE): Remove macros.
8150 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8151 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8152 (h8300_function_value, h8300_libcall_value,
8153 h8300_function_value_regno_p): New functions.
8155 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8157 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8159 2011-03-28 Jeff Law <law@redhat.com>
8161 * tree-ssa-threadupdate.c (redirect_edges): Call
8162 create_edge_and_update_destination_phis as needed.
8163 (create_edge_and_update_destination_phis): Accept new BB argument.
8164 All callers updated.
8165 (thread_block): Do not update the profile when threading around
8166 intermediate blocks.
8167 (thread_single_edge): Likewise.
8168 (determine_bb_domination_status): If BB is not a successor of the
8169 loop header, return NONDOMINATING.
8170 (register_jump_thread): Note when we register a jump thread around
8171 an intermediate block.
8172 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8173 (thread_across_edge): Use it.
8175 2011-03-28 Tristan Gingold <gingold@adacore.com>
8177 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8178 when for_return is 2.
8180 2011-03-28 Jeff Law <law@redhat.com>
8182 * var-tracking.c (canonicalize_values_mark): Delete unused
8184 (canonicalize_values_star, set_variable_part): Likewise.
8185 (clobber_variable_part, delete_variable_part): Likewise.
8187 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8189 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8191 2011-03-28 Martin Jambor <mjambor@suse.cz>
8193 * tree-inline.c (expand_call_inline): Do not check that destination
8195 (optimize_inline_calls): Assert that destination node is analyzed.
8196 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8197 not call tree_lowering_passes.
8198 * cgraph.h (cgraph_analyze_function): Declare.
8199 * cgraphunit.c (cgraph_analyze_function): Make public.
8201 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8203 * config/sparc/sparc-opts.h: New.
8204 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8205 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8206 (sparc_option_override): Store processor_type enumeration rather
8207 than string in cpu_default. Remove name and enumeration from
8208 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8209 without using sparc_select. Use target_flags_explicit instead of
8211 * config/sparc/sparc.h (enum processor_type): Move to
8213 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8214 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8215 HeaderInclude entry.
8216 (mcpu=, mtune=): Use Var and Enum.
8217 (sparc_processor_type): New Enum and EnumValue entries.
8219 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8220 Iain Sandoe <iains@gcc.gnu.org>
8223 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8225 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8227 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8228 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8229 Insert new statements at it in lieu of STMT.
8230 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8231 * tree-vect-stmts.c (vectorizable_store): Likewise.
8232 (vectorizable_load): Likewise.
8234 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8236 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8241 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8243 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8244 unaligned 256bit load/store.
8245 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8246 (*avx_movdqu<avxmodesuffix>): Likewise.
8248 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8251 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8252 * config/pa/pa.md (iordi3): Use new predicate in expander.
8255 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8257 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8258 FUNCTION_VALUE_REGNO_P): Remove macros.
8259 * config/mips/mips-protos.h (mips_function_value): Remove.
8260 * config/mips/mips.c (mips_function_value): Rename to...
8261 (mips_function_value_1): ... this. Make static. Handle receiving
8262 the function type in 'fn_decl_or_type' argument.
8263 (mips_function_value, mips_libcall_value,
8264 mips_function_value_regno_p): New function.
8265 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8266 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8268 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8270 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8271 and -mavx256-split-unaligned-store.
8272 (ix86_option_override_internal): Split 32-byte AVX unaligned
8273 load/store by default.
8274 (ix86_avx256_split_vector_move_misalign): New.
8275 (ix86_expand_vector_move_misalign): Use it.
8277 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8278 -mavx256-split-unaligned-store.
8280 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8281 256bit load/store. Generate unaligned store on misaligned memory
8283 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8285 (*avx_movdqu<avxmodesuffix>): Likewise.
8287 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8288 -mavx256-split-unaligned-store.
8290 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8293 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8296 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8298 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8299 opno arguments with an expand_operand. Use create_input_operand.
8300 (mips_prepare_builtin_target): Delete.
8301 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8303 (mips_expand_builtin_direct): Use create_output_operand and
8304 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8305 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8306 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8308 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8310 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8312 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8314 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8316 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8317 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8318 basic blocks and call commit_edge_insertions directly.
8319 (fixup_abnormal_edges): Move from here to...
8320 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8321 on the edges and return whether some have actually been inserted.
8322 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8325 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8327 PR rtl-optimization/48144
8328 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8329 (merge_expr_data): ... here.
8330 (av_set_intersect): Rename to av_set_code_motion_filter.
8331 Update all callers. Call merge_history_vect when an expression
8332 is found in both sets.
8333 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8335 2011-03-26 Alan Modra <amodra@gmail.com>
8337 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8338 cmodel medium addresses.
8339 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8340 64-bit gpr loads and stores.
8341 (rs6000_secondary_reload_ppc64): New function.
8342 * config/rs6000/rs6000-protos.h: Declare it.
8343 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8345 2011-03-26 Alan Modra <amodra@gmail.com>
8348 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8349 GNU Go in traceback table.
8351 2011-03-25 Richard Henderson <rth@redhat.com>
8353 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8354 if there are exactly 6 operands.
8355 (set_storage_via_setmem): Similarly.
8357 2011-03-25 Kai Tietz <ktietz@redhat.com>
8359 * collect2.c (write_c_file_stat): Handle backslash
8360 as right-hand directory separator.
8361 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8362 checking just for slash.
8363 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8364 instead of checking for trailing slash.
8365 * gcc.c (record_temp_file): Use filename_cmp instead
8367 (do_spec_1): Likewise.
8368 (replace_outfile_spec_function): Likewise.
8369 (is_directory): Use filename_ncmp instead of strncmp.
8370 (print_multilib_info): Likewise.
8371 * gcov.c (find_source): Use filename_cmp instead
8373 (make_gcov_file_name): Fix order of slash/backslash
8375 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8376 (add_standard_paths): Likewise.
8377 * mips-tfile.c (saber_stop): Handle backslash.
8378 * prefix.c (update_path): Use filename_ncmp instead of
8380 * profile.c (output_location): Use filename_cmp instead
8382 * read-md.c (handle_toplevel_file): Handle backslash.
8383 * tlink.c (frob_extension): Likewise.
8384 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8386 * tree-dump.c (dequeue_and_dump): Handle backslash.
8387 * tree.c (get_file_function_name): Likewise.
8388 * gengtype.c (read_input_list): Likewise.
8389 (get_file_realbasename): Likewise.
8390 (get_output_file_with_visibility): Use filename_cmp
8393 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8395 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8398 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8400 * fold-const.c (expr_location_or): New function.
8401 (fold_truth_not_expr): Call it.
8403 2011-03-25 Jeff Law <law@redhat.com>
8405 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8407 * c-family/c-common.c (def_fn_type): Likewise.
8408 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8409 * emit-rtl.c (gen_rtvec): Likewise.
8410 * lto/lto-lang.c (def_fn_type): Likewise.
8412 2011-03-25 Richard Guenther <rguenther@suse.de>
8414 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8415 also generate copies.
8416 (fini_copy_prop): Handle constant values properly.
8418 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8420 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8421 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8422 (hash_loc_operands, compare_loc_operands): Handle
8423 DW_OP_GNU_entry_value.
8425 2011-03-25 Kai Tietz <ktietz@redhat.com>
8427 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8428 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8429 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8430 comment and use macro TARGET_64BIT_MS_ABI instead.
8431 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8432 and change default behavior for 32-bit MS_ABI.
8433 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8434 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8436 (ix86_cfun_abi): Likewise.
8437 (ix86_maybe_switch_abi): Adjust comment.
8438 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8439 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8440 instead of checking for SYSV_ABI.
8441 (ix86_nsaved_sseregs): Likewise.
8442 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8444 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8445 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8446 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8447 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8448 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8450 2011-03-25 Richard Guenther <rguenther@suse.de>
8452 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8453 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8454 (verify_gimple): Remove.
8455 * tree-cfg.c (verify_gimple_call): Merge verification
8457 (verify_gimple_phi): Merge verification from verify_stmts.
8458 (verify_gimple_label): New function.
8459 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8460 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8461 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8462 (verify_stmts): Rename to verify_gimple_in_cfg.
8463 (verify_gimple_in_cfg): New function.
8464 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8465 * tree-ssa.c (verify_ssa): Likewise.
8466 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8468 2011-03-25 Richard Guenther <rguenther@suse.de>
8470 * passes.c (init_optimization_passes): Add FRE pass after
8473 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8474 Andrew Stubbs <ams@codesourcery.com>
8476 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8478 (arm_movdi_vfp_cortexa8): New pattern.
8479 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8480 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8481 instructions when tuning for Cortex-A8. Set attribute "arch".
8482 * config/arm/arm.md: Move include arm-tune.md up a bit.
8483 (define_attr "arch"): Add "onlya8" and "nota8" values.
8484 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8486 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8490 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8492 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8493 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8494 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8495 * passes.c (init_optimization_passes): Move
8496 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8498 2011-03-25 Kai Tietz <ktietz@redhat.com>
8500 * c-typeck.c (comptypes_internal): Replace target
8501 hook call of comp_type_attributes by version in tree.c file.
8502 * gimple.c (gimple_types_compatible_p_1): Likewise.
8503 * tree-ssa.c (useless_type_conversion_p): Likewise.
8504 * tree.c (build_type_attribute_qual_variant): Likewise.
8505 (attribute_value_equal): New static helper function.
8506 (comp_type_attributes): New function.
8507 (merge_attributes): Use attribute_value_equal for comparison.
8508 (attribute_list_contained): Likewise.
8509 * tree.h (comp_type_attributes): New prototype.
8511 2011-03-25 Richard Guenther <rguenther@suse.de>
8513 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8514 of complex types at -O0.
8515 (verify_gimple_assign_binary): Likewise.
8516 (verify_gimple_assign_ternary): Likewise.
8518 2011-03-24 Mark Wielaard <mjw@redhat.com>
8520 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8521 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8523 2011-03-24 Mark Wielaard <mjw@redhat.com>
8526 * dwarf2out.c (output_abbrev_section): Only write table when
8527 abbrev_die_table_in_use > 1.
8529 2011-02-24 Richard Henderson <rth@redhat.com>
8531 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8532 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8533 (alpha_expand_unaligned_load_words): Use extql.
8534 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8535 (emit_insxl): Handle all modes for consistency.
8537 2011-02-24 Richard Henderson <rth@redhat.com>
8539 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8540 (alpha_expand_unaligned_load): Likewise.
8541 (alpha_expand_unaligned_store): Likewise.
8542 (alpha_expand_unaligned_load_words): Likewise.
8543 (alpha_expand_unaligned_store_words): Likewise.
8544 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8545 (alpha_split_lock_test_and_set_12): Likewise.
8546 (print_operand, alpha_fold_builtin_extxx): Likewise.
8547 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8548 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8549 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8550 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8551 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8552 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8553 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8554 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8555 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8556 (extwl, extll, extql): Similarly.
8557 (inswh, inslh, insqh): Similarly.
8558 (mskbl, mskwl, mskll, mskql): Similarly.
8559 (mskwh, msklh, mskqh): Similarly.
8561 2011-02-24 Richard Henderson <rth@redhat.com>
8563 * config/alpha/alpha.md (attribute isa): Add er, ner.
8564 (attribute enabled): Handle them.
8565 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8567 2011-02-24 Richard Henderson <rth@redhat.com>
8569 * config/alpha/alpha.md (attribute isa): Add vms.
8570 (attribute enabled): Handle it.
8571 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8572 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8573 (*movtf): Rename from *movtf_internal for consistency.
8574 (*movsi): Merge with *movsi_nt_vms.
8575 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8576 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8577 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8578 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8580 2011-02-24 Richard Henderson <rth@redhat.com>
8582 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8583 (extendqisi2, extendhisi2): Likewise.
8584 (extendqidi2): Simplify BWX/non-BWX expansions.
8585 (extendhidi2): Similarly.
8587 2011-02-24 Richard Henderson <rth@redhat.com>
8589 * config/alpha/alpha.md (attribute isa): New.
8590 (attribute enabled): New.
8591 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8592 (zero_extendqisi2, zero_extendqidi2): Similarly.
8593 (zero_extendhisi2, zero_extendhidi2): Similarly.
8594 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8596 2011-02-24 Richard Henderson <rth@redhat.com>
8598 * config/alpha/predicates.md (input_operand): Revert last change;
8599 update comment to mention 32-bit VMS rather than Windows.
8601 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8603 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8604 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8605 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8606 * passes.c (init_optimization_passes): Move
8607 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8609 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8611 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8613 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8615 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8618 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8621 * simplify-rtx.c (simplify_const_unary_operation): Call
8622 real_convert when changing mode class with FLOAT_EXTEND.
8624 2011-03-24 Nick Clifton <nickc@redhat.com>
8626 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8627 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8628 * config/rx/rx.c (rx_option_override): Set align_jumps,
8629 align_loops and align_labels if not set by the user.
8630 (rx_align_for_label): New function.
8631 (rx_max_skip_for_label): New function.
8632 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8633 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8634 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8635 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8636 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8638 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8640 PR rtl-optimization/48263
8641 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8642 and original commutative_p handling. Use maybe_gen_insn.
8644 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8646 * reload.c (find_reloads_subreg_address): Add address_reloaded
8647 parameter and return true there if the full address has been
8649 (find_reloads_toplev): Pass address_reloaded flag.
8650 (find_reloads_address_1): Don't use address_reloaded parameter.
8652 2011-03-24 Jeff Law <law@redhat.com>
8654 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8655 unused variable "ann".
8656 (remove_unused_locals): Likewise.
8658 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8661 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8664 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8666 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8667 for invalid symbolic addresses.
8668 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8671 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8673 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8674 the argument in calls to fold_truth_not_expr.
8676 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8678 * tree.c (record_node_allocation_statistics): New function.
8679 (make_node_stat, copy_node_stat, build_string): Call it.
8680 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8681 (build1_stat, build_omp_clause): Likewise.
8683 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8685 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8688 2011-03-24 Richard Guenther <rguenther@suse.de>
8690 PR tree-optimization/48271
8691 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8692 blocks that still exist.
8694 2011-03-24 Richard Guenther <rguenther@suse.de>
8696 PR tree-optimization/48270
8697 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8698 not free datarefs before ddrs.
8700 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8702 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8703 from the address built for a reference with variable offset.
8705 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8708 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8709 alternatives that can be handled with movq or movabsq insn.
8710 (*movdf_internal): Disable for !TARGET_64BIT.
8711 (*movdf_internal_nointeger): Ditto.
8712 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8714 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8716 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8717 (FUNCTION_ARG_ADVANCE): Likewise.
8718 * tm.texi.in: Change references to them to hook references.
8719 * tm.texi: Regenerate.
8720 * targhooks.c (default_function_arg): Eliminate check for target macro.
8721 (default_function_incoming_arg): Likewise.
8722 (default_function_arg_advance): Likewise.
8723 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8724 (function_arg_advance): Likewise.
8725 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8727 2011-03-24 Richard Guenther <rguenther@suse.de>
8730 * tree-object-size.c (addr_object_size): Do not double-account
8731 for MEM_REF offsets.
8733 2011-03-24 Diego Novillo <dnovillo@google.com>
8735 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8736 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8737 (lto_input_data_block): Move from lto-opts.c. Make extern.
8739 (lto_input_string): Rename from input_string. Make extern.
8741 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8742 output_string_with_length.
8743 Output 0 to indicate a non-NULL string. Update all callers to
8745 (lto_output_string): Rename from output_string. Make extern.
8747 (lto_output_decl_state_streams): Make extern.
8748 (lto_output_decl_state_refs): Make extern.
8749 * lto-streamer.h (lto_input_string): Declare.
8750 (lto_input_data_block): Declare.
8751 (lto_output_string): Declare.
8752 (lto_output_string_with_length): Declare.
8753 (lto_output_decl_state_streams): Declare.
8754 (lto_output_decl_state_refs): Declare.
8756 2011-03-24 Richard Guenther <rguenther@suse.de>
8758 PR tree-optimization/46562
8759 * tree.c (build_invariant_address): New function.
8760 * tree.h (build_invariant_address): Declare.
8761 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8762 a renamed function moved ...
8763 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8764 Take valueization callback parameter.
8765 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8766 * gimple-fold.h: New file.
8767 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8768 (ccp_fold, fold_const_aggregate_ref,
8769 fold_ctor_reference, fold_nonarray_ctor_reference,
8770 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8771 get_base_constructor): Move ...
8772 * gimple-fold.c: ... here.
8773 (gimple_fold_stmt_to_constant_1): New function
8774 split out from ccp_fold. Take a valueization callback parameter.
8775 Valueize all operands.
8776 (gimple_fold_stmt_to_constant): New wrapper function.
8777 (fold_const_aggregate_ref_1): New function split out from
8778 fold_const_aggregate_ref. Take a valueization callback parameter.
8779 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8780 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8781 invariant POINTER_PLUS_EXPRs to invariant form.
8782 (vn_valueize): New function.
8783 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8784 * tree-vrp.c (vrp_valueize): New function.
8785 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8786 to fold statements to constants.
8787 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8788 function declarations.
8789 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8790 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8792 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8794 * config/h8300/predicates.md (jump_address_operand): Fix register
8797 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8799 * doc/invoke.texi (max-stores-to-sink): Document.
8800 * params.h (MAX_STORES_TO_SINK): Define.
8801 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8802 if either vectorization or if-conversion is disabled.
8803 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8804 tree-vect-data-refs.c vect_equal_offsets.
8805 (dr_equal_offsets_p): New function.
8806 (find_data_references_in_bb): Remove static.
8807 * tree-data-ref.h (find_data_references_in_bb): Declare.
8808 (dr_equal_offsets_p): Likewise.
8809 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8810 (vect_drs_dependent_in_basic_block): Update calls to
8812 (vect_check_interleaving): Likewise.
8813 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8814 (cond_if_else_store_replacement): Rename to...
8815 (cond_if_else_store_replacement_1): ... this. Change arguments and
8817 (cond_if_else_store_replacement): New function.
8818 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8819 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8821 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8824 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8825 to subtract lower bound instead of GEN_INT().
8827 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8832 * doc/extend.texi (Alignment): Move section to match order in TOC.
8833 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8834 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8836 2011-03-23 Jeff Law <law@redhat.com>
8838 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8839 before removing the edge.
8841 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8842 it may have been freed by redirect_branch_edge or
8843 redirect_edge_succ_nodup.
8845 2011-03-23 Richard Guenther <rguenther@suse.de>
8847 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8848 (check_va_list_escapes): Likewise.
8849 (check_all_va_list_escapes): Likewise.
8851 2011-03-23 Richard Guenther <rguenther@suse.de>
8853 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8854 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8855 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8856 (alias.o): Likewise.
8857 (ipa-type-escape.o): Remove.
8858 (ipa-struct-reorg.o): Likewise.
8859 (GTFILES): Remove ipa-struct-reorg.c.
8860 * alias.c: Do not include ipa-type-escape.h.
8861 * tree-ssa-alias.c: Likewise.
8862 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8863 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8864 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8865 and ipa-type-escape passes.
8866 * tree-pass.h (pass_ipa_type_escape): Remove.
8867 (pass_ipa_struct_reorg): Likewise.
8868 * ipa-struct-reorg.h: Remove.
8869 * ipa-struct-reorg.c: Likewise.
8870 * ipa-type-escape.h: Likewise.
8871 * ipa-type-escape.c: Likewise.
8872 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8873 (--param struct-reorg-cold-struct-ratio): Likewise.
8874 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8875 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8876 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8878 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8880 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8881 cpu attribute value.
8882 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8883 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8884 * config/s390/s390.c (processor_flags_table): New constant array.
8885 (s390_handle_arch_option): Remove.
8886 (s390_handle_option): Remove s390_handle_arch_option invocations
8887 and OPT_mwarn_framesize_ handling.
8888 (s390_option_override): Remove s390_handle_arch_option invocation.
8889 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8891 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8892 * config/s390/s390.opt (s390_tune, s390_arch)
8893 (march=): Replace s390_arch_option enum and values with
8894 processor_type. Set variable name to s390_arch. Set
8895 initialization value.
8896 (mtune=): Replace s390_arch_option with processor_type. Set
8897 variable name to s390_tune. Set initialization value.
8899 2011-03-23 Julian Brown <julian@codesourcery.com>
8901 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8902 accesses which are not naturally aligned.
8904 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8907 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8909 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8911 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8912 parameter from "int" to "enum insn_code".
8913 (expand_operand_type): New enum.
8914 (expand_operand): New structure.
8915 (create_expand_operand): New function.
8916 (create_fixed_operand, create_output_operand): Likewise
8917 (create_input_operand, create_convert_operand_to): Likewise.
8918 (create_convert_operand_from, create_address_operand): Likewise.
8919 (create_integer_operand): Likewise.
8920 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8921 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8922 (expand_insn, expand_jump_insn): Likewise.
8923 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8924 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8925 (expand_movstr, expand_builtin___clear_cache): Likewise.
8926 (expand_builtin_lock_release): Likewise.
8927 * explow.c (allocate_dynamic_stack_space): Likewise.
8928 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8929 and use the default handling in that case.
8930 * expmed.c (check_predicate_volatile_ok): Delete.
8931 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8932 (emit_cstore): Likewise.
8933 * expr.c (emit_block_move_via_movmem): Likewise.
8934 (set_storage_via_setmem, expand_assignment): Likewise.
8935 (emit_storent_insn, try_casesi): Likewise.
8936 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8937 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8938 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8939 (expand_twoval_unop, expand_twoval_binop): Likewise.
8940 (expand_unop_direct, emit_indirect_jump): Likewise.
8941 (emit_conditional_move, vector_compare_rtx): Likewise.
8942 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8943 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8944 (expand_sync_lock_test_and_set): Likewise.
8945 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8946 (emit_unop_insn): Likewise.
8947 (expand_copysign_absneg): Change icode to an insn_code.
8948 (create_convert_operand_from_type): New function.
8949 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8950 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8951 (expand_insn, expand_jump_insn): Likewise.
8952 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8953 than const_int_operand for operand 2.
8955 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8957 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8960 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8962 * emit-rtl.c (emit_pattern_before_noloc): New function.
8963 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8964 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8965 (emit_pattern_after_noloc): New function.
8966 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8967 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8969 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8971 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8972 (__ffsDI2): Likewise.
8974 2011-03-22 Richard Henderson <rth@redhat.com>
8976 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8977 of !TARGET_ABI_OPEN_VMS.
8978 (alpha_trampoline_init, alpha_start_function): Likewise.
8979 (alpha_expand_epilogue, alpha_file_start): Likewise.
8980 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8981 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8982 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8983 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8984 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8988 * config/s390/s390-opts.h: New.
8989 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8990 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8991 s390_stack_guard): Remove.
8992 (s390_handle_arch_option): Return void. Take enum
8993 s390_arch_option value instead of string and searching array.
8994 (s390_handle_option): Don't assert that global structures are in
8995 use. Access variables via opts pointer. Use error_at. Don't use
8996 sscanf for -mstack-guard= or -mstack-size=. Update call to
8997 s390_handle_arch_option.
8998 (s390_option_override): Update call to s390_handle_arch_option.
8999 (s390_emit_prologue): Use %d format for s390_stack_size in
9000 diagnostic. Use %wd for HOST_WIDE_INT.
9001 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9002 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9003 * config/s390/s390.opt (config/s390/s390-opts.h): New
9004 HeaderInclude entry.
9005 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9006 s390_arch_flags, s390_warn_framesize): New Variable entries.
9007 (s390_arch_option): New Enum and EnumValue entries.
9008 (march=): Use Enum instead of Var.
9009 (mstack-guard=, mstack-size=): Use UInteger and Var.
9012 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9014 * config/score/score.c (score_handle_option): Don't assert that
9015 global structures are in use. Access target_flags via opts
9016 pointer. Use value of -march= option to determine target_flags
9018 * config/score/score.opt (march=): Use Enum.
9019 (score_arch): New Enum and EnumValue entries.
9021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9023 * config/mep/mep.c (option_mtiny_specified): Remove.
9024 (mep_option_override): Move register handling for -mivc2 from
9025 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9026 instead of option_mtiny_specified.
9027 (mep_handle_option): Access target_flags via opts pointer. Don't
9028 assert that global structures are in use. Defer part of -mivc2
9029 handling and move it to mep_option_override.
9030 * config/mep/mep.opt (IVC2): New Mask entry.
9031 (mivc2): Use Var and Defer instead of Mask.
9033 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9035 * config/v850/v850-opts.h: New.
9036 * config/v850/v850.c (small_memory): Replace with
9037 small_memory_physical_max array. Make that array static const.
9038 (v850_handle_memory_option): Take integer value of argument. Take
9039 gcc_options pointer, option text and location. Return void.
9040 Update for changes to small memory structures.
9041 (v850_handle_option): Access target_flags via opts pointer. Don't
9042 assert that global structures are in use. Update calls to
9043 v850_handle_memory_option.
9044 (v850_encode_data_area): Update references to small memory settings.
9045 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9046 (enum small_memory_type): Move to v850-opts.h.
9047 * config/v850/v850.opt (config/v850/v850-opts.h): New
9048 HeaderInclude entry.
9049 (small_memory_max): New Variable entry.
9050 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9051 (mtda, mzda): Likewise.
9053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9055 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9056 pointer. Don't assert that global structures are in use.
9058 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9060 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9061 via opts pointer. Don't assert that global structures are in use.
9063 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9065 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9066 (munix=93): Use Var.
9067 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9068 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9069 * config/pa/pa-opts.h: New.
9070 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9071 (pa_handle_option): Don't assert that global structures are in
9072 use. Access target_flags via opts pointer. Don't handle
9073 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9075 (pa_option_override): Handle deferred OPT_mfixed_range_.
9077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9079 * config/mn10300/mn10300-opts.h: New.
9080 * config/mn10300/mn10300.c (mn10300_processor,
9081 mn10300_tune_string): Remove.
9082 (mn10300_handle_option): Don't assert that global structures are
9083 in use. Access mn10300_processor via opts pointer. Don't handle
9085 * config/mn10300/mn10300.h (enum processor_type): Move to
9087 (mn10300_processor): Remove.
9088 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9089 HeaderInclude entry.
9090 (mn10300_processor): New Variable entry.
9093 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9095 * config/microblaze/microblaze.c: Don't include opts.h.
9096 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9097 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9098 (mno-clearbss): Use Var and Warn.
9100 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9102 * config/m32r/m32r-opts.h: New.
9103 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9104 (m32r_handle_option): Don't assert that global structures are in
9105 use. Access target_flags and m32r_cache_flush_func via opts
9106 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9107 OPT_mno_flush_trap here.
9108 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9109 include of m32r-opts.h.
9110 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9111 HeaderInclude entry.
9112 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9113 (mmodel=): Use Enum and Var.
9114 (m32r_model): New Enum and EnumValue entries.
9115 (mno-flush-trap): Use Var.
9116 (msdata=): Use Enum and Var.
9117 (m32r_sdata): New Enum and EnumValue entries.
9119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9121 * config/m32c/m32c.c: Don't include opts.h.
9122 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9123 m32c_handle_option): Remove.
9124 (m32c_option_override): Check global_options_set.x_target_memregs
9125 instead of target_memregs_set.
9126 * config/m32c/m32c.h (target_memregs): Remove.
9127 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9130 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9132 * config/iq2000/iq2000-opts.h: New.
9133 * config/iq2000/iq2000.c: Don't include opts.h.
9134 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9135 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9136 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9137 HeaderInclude entry.
9138 (iq2000_tune): New Variable entry.
9139 (march=): Add comment. Use Enum.
9140 (iq2000_arch): New Enum and EnumValue entries.
9141 (mcpu=): Use Enum and Var.
9142 (iq2000_tune): New Enum and EnumValue entries.
9144 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9146 * config/ia64/ia64-opts.h: New.
9147 * config/ia64/ia64.c (ia64_tune): Remove.
9148 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9150 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9151 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9152 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9153 HeaderInclude entry.
9154 (ia64_tune): New Variable entry.
9155 (mfixed-range=): Use Defer and Var.
9156 (mtune=): Use Enum and Var.
9157 (ia64_tune): New Enum and EnumValue entries.
9159 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9161 * config/frv/frv-opts.h: New.
9162 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9164 (frv_cpu_type): Remove.
9165 * config/frv/frv.c: Don't include opts.h.
9166 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9167 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9168 (frv_cpu_type): New Variable entry.
9169 (frv_cpu): New Enum and EnumValue entries.
9171 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9173 * config/cris/cris.c (cris_handle_option): Access target_flags via
9174 opts pointer. Don't assert that global structures are in use.
9175 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9176 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9178 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9180 * config/bfin/bfin-opts.h: New.
9181 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9182 bfin_si_revision, bfin_workarounds): Remove.
9183 (bfin_cpus): Make static const.
9184 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9185 not bfin_lib_id_given.
9186 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9187 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9188 pointer. Use error_at. Don't assert that global structures are in use.
9189 * config/bfin/bfin.h: Include bfin-opts.h.
9190 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9191 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9192 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9193 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9196 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9198 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9199 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9200 or -msoft-float here.
9201 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9202 -msoft-float and -mhard-float.
9203 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9204 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9206 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9208 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9209 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9211 (LIBGCC_SPEC): Don't handle -msoft-float.
9212 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9214 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9216 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9217 -mfloat-abi=*, not -msoft-float and -mhard-float.
9218 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9220 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9221 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9222 mhard-float and msoft-float.
9223 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9224 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9225 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9226 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9228 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9229 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9231 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9233 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9236 2011-03-22 Richard Henderson <rth@redhat.com>
9238 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9239 TARGET_ABI_WINDOWS_NT.
9240 (alpha_output_function_end_prologue): Likewise.
9241 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9242 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9243 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9244 (trap, *movsi_nt_vms): Likewise.
9245 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9246 (*tablejump_osf_nt_internal): Remove.
9247 * config/alpha/predicates.md (input_operand): Only test Pmode.
9249 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9251 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9252 via opts pointer. Use error_at. Don't assert that global
9253 structures are in use.
9255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9257 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9258 (ix86_handle_option): Access ix86_isa_flags and
9259 ix86_isa_flags_explicit via opts pointer. Don't assert that
9260 global structures are in use.
9261 (ix86_function_specific_save, ix86_function_specific_restore):
9262 Update ix86_isa_flags_explicit field name.
9263 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9264 (ix86_isa_flags_explicit): Rename TargetSave entry to
9265 x_ix86_isa_flags_explicit.
9267 2011-03-22 Richard Henderson <rth@redhat.com>
9269 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9270 (alpha_option_override, direct_return): Likewise.
9271 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9272 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9273 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9274 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9275 (alpha_expand_epilogue, alpha_end_function): Likewise.
9276 (alpha_init_libfuncs): Likewise.
9277 (struct machine_function): Remove unicosmk members.
9278 (print_operand) ['t']: Remove.
9279 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9280 unicosmk_output_module_name, unicosmk_output_common,
9281 current_section_align, unicosmk_output_text_section_asm_op,
9282 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9283 unicosmk_section_type_flags, unicosmk_unique_section,
9284 unicosmk_asm_named_section, unicosmk_insert_attributes,
9285 unicosmk_output_align, unicosmk_defer_case_vector,
9286 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9287 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9288 unicosmk_output_ssib, unicosmk_add_call_info_word,
9289 unicosmk_extern_head, unicosmk_output_default_externs,
9290 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9291 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9292 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9293 * config/alpha/alpha-protos.h: Update.
9294 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9295 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9296 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9297 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9298 (*mulsi_se, mulvsi3): Likewise.
9299 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9300 (*divmodsi_internal, call, call_value, realign): Likewise.
9301 (moddi3, umoddi3): Likewise; remove duplicate expander.
9302 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9303 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9304 (*movdi_nofix): Remove r/U alternative.
9305 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9306 * config/alpha/constraints.md ("U"): Remove.
9307 * config/alpha/predicates.md (call_operand"): Don't test
9308 TARGET_ABI_UNICOSMK.
9310 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9312 * target.def (handle_option): Take gcc_options and
9313 cl_decoded_option pointers and location_t.
9314 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9315 * doc/tm.texi: Regenerate.
9316 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9317 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9318 * lto-opts.c (lto_reissue_options): Generate option structure for
9319 targetm.handle_option call.
9320 * opts.c (target_handle_option): Update call to
9321 targetm.handle_option. Remove assertions about values now passed
9323 * targhooks.c (default_target_handle_option): New.
9324 * targhooks.h (default_target_handle_option): Declare.
9325 * config/alpha/alpha.c: Include opts.h.
9326 (alpha_handle_option): Update to new hook interface.
9327 * config/arm/arm.c: Include opts.h.
9328 (arm_handle_option): Update to new hook interface.
9329 * config/arm/t-arm (arm.o): Update dependencies.
9330 * config/bfin/bfin.c: Include opts.h.
9331 (bfin_handle_option): Update to new hook interface.
9332 * config/cris/cris.c: Include opts.h.
9333 (cris_handle_option): Update to new hook interface.
9334 * config/frv/frv.c: Include opts.h.
9335 (frv_handle_option): Update to new hook interface.
9336 * config/i386/i386.c: Include opts.h.
9337 (ix86_handle_option): Update to new hook interface.
9338 (ix86_valid_target_attribute_inner_p): Generate option structure
9339 for call to ix86_handle_option.
9340 * config/i386/t-i386 (i386.o): Update dependencies.
9341 * config/ia64/ia64.c: Include opts.h.
9342 (ia64_handle_option): Update to new hook interface.
9343 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9344 * config/iq2000/iq2000.c: Include opts.h.
9345 (iq2000_handle_option): Update to new hook interface.
9346 * config/m32c/m32c.c: Include opts.h.
9347 (m32c_handle_option): Update to new hook interface.
9348 * config/m32r/m32r.c: Include opts.h.
9349 (m32r_handle_option): Update to new hook interface.
9350 * config/m68k/m68k.c: Include opts.h.
9351 (m68k_handle_option): Update to new hook interface.
9352 * config/mep/mep.c: Include opts.h.
9353 (mep_handle_option): Update to new hook interface.
9354 * config/microblaze/microblaze.c: Include opts.h.
9355 (microblaze_handle_option): Update to new hook interface.
9356 * config/mips/mips.c: Include opts.h.
9357 (mips_handle_option): Update to new hook interface.
9358 * config/mn10300/mn10300.c: Include opts.h.
9359 (mn10300_handle_option): Update to new hook interface.
9360 * config/pa/pa.c: Include opts.h.
9361 (pa_handle_option): Update to new hook interface.
9362 * config/pdp11/pdp11.c: Include opts.h.
9363 (pdp11_handle_option): Update to new hook interface.
9364 * config/rs6000/rs6000.c: Include opts.h.
9365 (rs6000_handle_option): Update to new hook interface.
9366 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9367 * config/rx/rx.c: Include opts.h.
9368 (rx_handle_option): Update to new hook interface.
9369 * config/s390/s390.c: Include opts.h.
9370 (s390_handle_option): Update to new hook interface.
9371 * config/score/score.c: Include opts.h.
9372 (score_handle_option): Update to new hook interface.
9373 * config/sh/sh.c: Include opts.h.
9374 (sh_handle_option): Update to new hook interface.
9375 * config/sparc/sparc.c: Include opts.h.
9376 (sparc_handle_option): Update to new hook interface.
9377 * config/v850/v850.c: Include opts.h.
9378 (v850_handle_option): Update to new hook interface.
9380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9382 * gcc.c (driver_unknown_option_callback): Only permit and save
9383 unknown -Wno- options.
9384 (driver_wrong_lang_callback): Save options directly instead of via
9385 driver_unknown_option_callback.
9387 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9389 * combine.c (simplify_set): Try harder to find the best CC mode when
9390 simplifying a nested COMPARE on the RHS.
9392 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9394 * config/alpha/gnu.h: Remove.
9395 * config/arc: Remove directory.
9396 * config/arm/netbsd.h: Remove.
9397 * config/arm/t-pe: Remove.
9398 * config/crx: Remove directory.
9399 * config/i386/netbsd.h: Remove.
9400 * config/m68hc11: Remove directory.
9401 * config/m68k/uclinux-oldabi.h: Remove.
9402 * config/mcore/mcore-pe.h: Remove.
9403 * config/mcore/t-mcore-pe: Remove.
9404 * config/netbsd-aout.h: Remove.
9405 * config/rs6000/gnu.h: Remove.
9406 * config/sh/sh-symbian.h: Remove.
9407 * config/sh/symbian-base.c: Remove.
9408 * config/sh/symbian-c.c: Remove.
9409 * config/sh/symbian-cxx.c: Remove.
9410 * config/sh/symbian-post.h: Remove.
9411 * config/sh/symbian-pre.h: Remove.
9412 * config/sh/t-symbian: Remove.
9413 * config/svr3.h: Remove.
9414 * config/vax/netbsd.h: Remove.
9415 * config.build: Don't handle i[34567]86-*-pe.
9416 * config.gcc: Remove handling of deprecations for most deprecated
9418 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9419 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9420 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9421 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9422 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9423 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9425 * config.host: Don't handle i[34567]86-*-pe.
9426 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9427 (ASM_SPEC32): Don't handle -mcall-gnu.
9428 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9430 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9431 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9432 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9433 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9434 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9435 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9436 conditional on SYMBIAN.
9437 * configure.ac: Don't handle powerpc*-*-gnu*.
9438 * configure: Regenerate.
9439 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9440 * doc/install-old.texi (m6811, m6812): Don't mention.
9441 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9442 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9443 (m68k-uclinuxoldabi): Don't mention.
9444 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9446 (-mcall-gnu): Remove.
9447 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9448 families): Remove constraint documentation.
9450 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9452 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9453 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9454 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9456 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9459 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9460 vector when peeking at the next token for vector, don't expand the
9463 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9465 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9466 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9467 * config/avr/avr.c (init_cumulative_args)
9468 (avr_function_arg_advance): Use it.
9469 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9471 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9472 (avr_function_ok_for_sibcall): ...this new function.
9473 (avr_lookup_function_attribute1): New static Function.
9474 (avr_naked_function_p, interrupt_function_p)
9475 (signal_function_p, avr_OS_task_function_p)
9476 (avr_OS_main_function_p): Use it.
9477 * config/avr/avr.md ("sibcall", "sibcall_value")
9478 ("sibcall_epilogue"): New expander.
9479 ("*call_insn", "*call_value_insn"): New insn.
9480 ("call_insn", "call_value_insn"): Remove
9481 ("call", "call_value", "epilogue"): Change expander to handle
9484 2011-03-21 Nick Clifton <nickc@redhat.com>
9486 * doc/invoke.texi (Overall Options): Move closing brace to end of
9488 (Optimization Options): Add missing @gol.
9489 (Directory Options): Likewise.
9490 (i386 and x86-64 Options): Likewise.
9491 (RS6000 and PowerPC Options): Likewise.
9492 (i386 and x86-64 Windows Options): Likewise.
9493 (V850 Options): Add text missing from descriptions.
9495 2011-03-22 Richard Henderson <rth@redhat.com>
9497 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9498 (avr_incoming_return_addr_rtx): New.
9499 (emit_push_byte): New.
9500 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9501 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9502 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9503 (emit_pop_byte): New.
9504 (expand_epilogue): Use it. Pop frame pointer by bytes.
9505 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9506 (INCOMING_RETURN_ADDR_RTX): New.
9507 (INCOMING_FRAME_SP_OFFSET): New.
9508 (ARG_POINTER_CFA_OFFSET): New.
9509 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9510 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9513 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9515 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9517 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9518 (FUNCTION_ARG_ADVANCE): Likewise.
9519 * tm.texi.in: Change references to them to hook references.
9520 * tm.texi: Regenerate.
9521 * targhooks.c (default_function_arg): Eliminate check for target
9523 (default_function_incoming_arg): Likewise.
9524 (default_function_arg_advance): Likewise.
9525 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9526 (function_arg_advance): Likewise.
9527 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9529 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9531 * tree.c (build_call_1): New function.
9532 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9534 2011-03-22 Richard Guenther <rguenther@suse.de>
9536 PR tree-optimization/48228
9537 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9538 for single-arg PHIs.
9540 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9542 PR rtl-optimization/48143
9543 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9544 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9545 sse2_cvtps2pd): Likewise.
9547 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9549 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9551 2011-03-22 Richard Guenther <rguenther@suse.de>
9553 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9554 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9555 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9556 and REALIGN_LOAD_EXPR.
9557 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9558 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9559 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9560 DOT_PROD_EXPR case ...
9561 (expand_expr_real_2): ... here.
9562 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9563 and REALIGN_LOAD_EXPR.
9564 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9565 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9566 (vect_create_epilog_for_reduction): Likewise.
9567 (vectorizable_reduction): Likewise.
9568 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9569 * tree-vect-stmts.c (vectorizable_load): Likewise.
9571 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9573 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9575 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9577 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9578 handling for PLTOFF/GOTOFF.
9580 2011-03-22 Nick Clifton <nickc@redhat.com>
9582 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9583 trailing backslash from the end of the macro definition.
9585 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9587 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9590 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9592 * expr.h (prepare_operand): Move to...
9593 * optabs.h (prepare_operand): ...here and change the insn code
9594 parameter from "int" to "enum insn_code".
9595 (insn_operand_matches): Declare.
9596 * expr.c (init_expr_target): Use insn_operand_matches.
9597 (compress_float_constant): Likewise.
9598 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9599 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9600 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9601 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9603 (gen_cond_trap): Likewise.
9604 (prepare_operand): Likewise. Change icode to an insn_code.
9605 (insn_operand_matches): New function.
9606 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9607 * reload1.c (gen_reload): Likewise.
9608 * targhooks.c (default_secondary_reload): Likewise.
9610 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9612 * config/alpha/alpha.md (unspec): New define_c_enum.
9615 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9618 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9619 between a call and its CALL_ARG_LOCATION note.
9621 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9623 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9625 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9629 * c-common.c (shorten_compare): If primopN is first sign-extended
9630 to opN and then zero-extended to result type, set primopN to opN.
9632 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9634 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9635 for barrier handlers.
9637 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9639 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9640 UNSPEC constants to be in the unspec enumeration, and redefine
9641 all UNSPECV constants to be in the unspecv enumeration, so that
9642 dumps print which unspec/unspec_volatile this is.
9643 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9644 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9645 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9646 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9647 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9649 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9650 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9651 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9652 * config/rs6000/sync.md (isync, lwsync): Ditto.
9654 2011-03-21 Richard Guenther <rguenther@suse.de>
9656 * params.def (lto-min-partition): Fix typo.
9658 2011-03-21 Richard Guenther <rguenther@suse.de>
9661 * c-decl.c (grokdeclarator): Drop to the main variant only
9662 for array types. Drop flag_gen_aux_info check.
9664 2011-03-21 Richard Guenther <rguenther@suse.de>
9666 PR translation/47911
9667 * params.def (lto-partitions): Fix typo.
9668 (lto-min-partition): Fix wording.
9670 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9672 * config/rs6000/t-freebsd: Remove duplication from file.
9674 2011-03-21 Richard Guenther <rguenther@suse.de>
9677 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9679 2011-03-21 Richard Guenther <rguenther@suse.de>
9682 * params.def (lto-partitions): Require at least 1 partition.
9684 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9686 * gthr-solaris.h: Remove.
9687 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9688 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9689 (LIB_SPEC): Likewise.
9690 * config/sol2.opt (threads): Remove.
9691 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9692 (sparc*-*-solaris2*): Likewise.
9693 * configure.ac (enable_threads): Enable solaris support.
9694 * configure: Regenerate.
9695 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9696 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9699 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9701 * config.gcc: Obsolete *-*-solaris2.8*.
9702 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9704 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9707 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9708 reference. Solaris 8 perl works.
9710 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9713 * doc/install.texi (Prerequisites): Move jar etc. up.
9714 Explain support library version requirements.
9716 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9719 * doc/install.texi (Prerequisites): Move Perl to build
9720 requirements. Always necessary on Solaris 2 with Sun ld.
9722 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9724 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9726 (Specific, i?86-*-solaris2.[89]): Likewise.
9727 (Specific, i?86-*-solaris2.10): Likewise.
9728 (Specific, mips-sgi-irix6): Likewise.
9729 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9730 Update for binutils 2.21.
9732 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9734 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9735 Allow -fuse-linker-plugin for non-default plugin linker.
9736 * configure: Regenerate.
9738 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9741 * gengtype.c (files_rules): Added rule for cp/parser.h.
9743 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9746 * config/s390/s390.c (s390_delegitimize_address): Don't call
9747 lowpart_subreg if orig_x has BLKmode.
9749 2011-03-21 Kai Tietz <ktietz@redhat.com>
9752 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9753 * tree.h (attribute_spec): Add new member affects_type_identity.
9754 * attribs.c (empty_attribute_table): Adjust attribute_spec
9756 * config/alpha/alpha.c: Likewise.
9757 * config/arc/arc.c: Likewise.
9758 * config/arm/arm.c: Likewise.
9759 * config/avr/avr.c: Likewise.
9760 * config/bfin/bfin.c: Likewise.
9761 * config/crx/crx.c: Likewise.
9762 * config/darwin.h: Likewise.
9763 * config/h8300/h8300.c: Likewise.
9764 * config/i386/cygming.h: Likewise.
9765 * config/i386/i386.c: Likewise.
9766 * config/ia64/ia64.c: Likewise.
9767 * config/m32c/m32c.c: Likewise.
9768 * config/m32r/m32r.c: Likewise.
9769 * config/m68hc11/m68hc11.c: Likewise.
9770 * config/m68k/m68k.c: Likewise.
9771 * config/mcore/mcore.c: Likewise.
9772 * config/mep/mep.c: Likewise.
9773 * config/microblaze/microblaze.c: Likewise.
9774 * config/mips/mips.c: Likewise.
9775 * config/rs6000/rs6000.c: Likewise.
9776 * config/rx/rx.c: Likewise.
9777 * config/sh/sh.c: Likewise.
9778 * config/sol2.h: Likewise.
9779 * config/sparc/sparc.c: Likewise.
9780 * config/spu/spu.c: Likewise.
9781 * config/stormy16/stormy16.c: Likewise.
9782 * config/v850/v850.c: Likewise.
9784 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9786 * simplify-rtx.c (simplify_binary_operation_1): Handle
9787 (xor (and A B) C) case when B and C are both constants.
9789 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9791 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9793 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9796 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9798 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9800 PR rtl-optimization/48156
9801 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9802 assume df and df_lr are not NULL.
9804 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9807 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9808 between a call and its CALL_ARG_LOCATION note.
9810 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9813 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9814 between a call and its corresponding CALL_ARG_LOCATION note.
9816 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9818 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9819 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9820 * haifa-sched.c (setup_ref_regs): Ditto.
9821 * caller-save.c (add_used_regs_1): Ditto.
9822 * dse.c (look_for_hardregs): Ditto.
9823 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9824 * sched-rgn.c (check_live_1): Ditto.
9826 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9828 * c-decl.c (diagnose_mismatched_decls): Give an error for
9829 redefining a typedef with variably modified type.
9831 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9833 * c-decl.c (grokfield): Don't allow typedefs for structures or
9834 unions with no tag by default.
9835 * doc/extend.texi (Unnamed Fields): Update.
9837 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9839 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9840 Rewrite using indirect functions.
9841 (lwp_slwpcb): Ditto.
9842 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9843 (avx_vinsertf128<mode>): Ditto.
9845 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9847 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9850 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9852 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9853 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9855 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9857 PR rtl-optimization/48170
9858 * gcse.c (hoist_code): Remove bogus asserts.
9860 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9862 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9863 computation for prologue/epilogue.
9865 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9867 * Makefile.in (check-consistency): Remove.
9869 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9872 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9873 arange_table_in_use is 0, but either text_section_used or
9874 cold_text_section_used is true. Don't call it if
9875 !info_section_emitted.
9877 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9879 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9880 FUNCTION_VALUE_REGNO_P): Remove.
9881 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9883 * config/avr/avr.c (avr_ret_register): Make static inline.
9884 (avr_function_value_regno_p): New function.
9885 (avr_libcall_value): Make static. Add 'func' argument.
9886 (avr_function_value): Make static. Rename 'func' argument to
9887 'fn_decl_or_type', forward it to avr_libcall_value. Call
9888 avr_ret_register function instead of RET_REGISTER macro.
9889 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9891 2011-03-18 Jason Merrill <jason@redhat.com>
9894 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9896 2011-03-18 Richard Guenther <rguenther@suse.de>
9898 * doc/install.texi (--enable-gold): Remove.
9899 (--with-plugin-ld): Document.
9900 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9902 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9905 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9906 again after expansion changes.
9908 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9910 * combine.c (try_combine): Do simplification only call of
9911 subst() on i2 even when i1 is present. Update comments.
9913 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9915 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9916 and UNSPEC_PCREL_SYMOFF.
9918 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9920 * config/s390/s390.md: Use define_c_enum for the unspec constant
9923 2011-03-18 Richard Henderson <rth@redhat.com>
9924 Jakub Jelinek <jakub@redhat.com>
9927 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9928 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9930 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9933 * combine.c (cant_combine_insn_p): Don't check zero/sign
9934 extended hard registers.
9936 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9939 * combine.c (cant_combine_insn_p): Check zero/sign extended
9942 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9944 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9945 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9946 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9947 Change return type to bool.
9948 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9950 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9953 * var-tracking.c (prepare_call_arguments): If CALL target
9954 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9955 pc instead of looking it up using cselib_lookup and use
9956 Pmode for it if x has VOIDmode.
9957 * dwarf2out.c (gen_subprogram_die): If also both first and
9958 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9961 * function.c (assign_parms): For data.passed_pointer parms
9962 use MEM of data.entry_parm instead of data.entry_parm itself
9963 as DECL_INCOMING_RTL.
9964 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9965 also when passed and declared mode is the same, DECL_RTL
9966 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9969 2011-03-16 Jeff Law <law@redhat.com>
9971 PR rtl-optimization/37273
9972 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9973 handle them like argument loads from stack slots. Do not double
9974 count memory for memory constants and argument loads from stack slots.
9976 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9979 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9981 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9984 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9986 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9989 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9991 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9992 Clear call_arg_locations and call_arg_loc_last always.
9995 * var-tracking.c (prepare_call_arguments): If argument needs to be
9996 passed by reference, adjust argtype and mode.
9998 2011-03-17 Richard Guenther <rguenther@suse.de>
10000 PR middle-end/48134
10001 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10002 a value make sure to fold the statement.
10004 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10007 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10008 return condition with !cfun->calls_alloca.
10010 2011-03-17 Richard Guenther <rguenther@suse.de>
10013 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10014 origin for decls in other ltrans units.
10015 (input_varpool_node): Likewise.
10017 2011-03-17 Richard Guenther <rguenther@suse.de>
10019 PR middle-end/48165
10020 * tree-object-size.c (compute_object_offset): Properly return
10021 the offset operand of MEM_REFs as sizetype.
10023 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10025 PR rtl-optimization/48141
10026 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10027 * dse.c: Include params.h.
10028 (active_local_stores_len): New variable.
10029 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10031 (record_store, check_mem_read_rtx): Decrease it when removing
10033 (scan_insn): Likewise. Increase it when adding to chain, if it
10034 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10035 set active_local_stores to NULL before the addition.
10036 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10038 PR rtl-optimization/48141
10039 * dse.c (record_store): If no positions are needed in an insn
10040 that cannot be deleted, at least unchain it from active_local_stores.
10042 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10045 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10046 (lookup_type_die_strip_naming_typedef): ... here.
10047 (get_context_die): Use it.
10048 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10049 the anonymous struct named by the naming typedef.
10051 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10054 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10055 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10057 2011-03-16 Jeff Law <law@redhat.com>
10059 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10060 check for operands of conditional. Allow type to be a pointer.
10062 2011-03-16 Richard Guenther <rguenther@suse.de>
10064 PR tree-optimization/48149
10065 * fold-const.c (fold_binary_loc): Fold
10066 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10068 2011-03-16 Richard Guenther <rguenther@suse.de>
10070 PR tree-optimization/26134
10071 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10072 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10073 (non_rewritable_mem_ref_base): Handle complex type component
10074 accesses, constrain offsets for vector and complex extracts
10077 2011-03-16 Richard Guenther <rguenther@suse.de>
10079 PR tree-optimization/48146
10080 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10081 operands avoiding the need for renaming.
10083 2011-03-16 Richard Guenther <rguenther@suse.de>
10085 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10086 constant folding. Move MEM_REF canonicalization first.
10087 Rely on fold_const_aggregate_ref for initializer folding.
10088 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10090 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10092 PR middle-end/48136
10093 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10094 arg0/arg1 or their arguments are always fold converted to matching
10097 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10100 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10103 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10104 Handle in-tree gold.
10105 (ld_vers): Extract binutils version for gold.
10106 (gcc_cv_ld_hidden): Handle gold here.
10107 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10108 * configure: Regenerate.
10109 * config.in: Regenerate.
10110 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10111 -fuse-linker-plugin otherwise.
10112 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10113 (LINK_COMMAND_SPEC): Use it.
10114 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10116 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10118 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10119 * calls.c: Remove debug.h include.
10120 (emit_call_1): Don't call virtual_call_token debug hook.
10121 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10122 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10123 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10124 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10125 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10126 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10127 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10128 dwarf2out_virtual_call): Remove.
10129 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10130 copy_call_info and virtual_call hooks.
10131 (dwarf2out_init): Don't initialize vcall_insn_table,
10132 debug_dcall_section and debug_vcall_section.
10133 (prune_unused_types): Don't mark nodes from dcall_table.
10134 (dwarf2out_finish): Don't output dcall or vcall tables.
10135 * final.c (final_scan_insn): Don't call direct_call or
10136 virtual_call debug hooks.
10137 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10138 virtual_call_token, copy_call_info and virtual_call hooks.
10139 (debug_nothing_uid): Remove prototype.
10140 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10141 copy_call_info and virtual_call hooks.
10142 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10143 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10144 * debug.c (do_nothing_debug_hooks): Likewise.
10145 (debug_nothing_uid): Remove.
10146 * doc/invoke.texi (-fenable-icf-debug): Remove.
10147 * common.opt (-fenable-icf-debug): Likewise.
10149 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10150 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10151 call's MEM. Handle functions returning aggregate through a hidden
10152 first pointer. For virtual calls add clobbered pc to call arguments
10154 * dwarf2out.c (gen_subprogram_die): Emit
10155 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10159 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10160 * rtl.h (ENTRY_VALUE_EXP): Define.
10161 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10162 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10163 * print-rtl.c (print_rtx): Likewise.
10164 * gengtype.c (adjust_field_rtx_def): Likewise.
10165 * var-tracking.c (vt_add_function_parameter): Adjust
10166 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10167 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10168 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10169 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10170 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10172 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10173 Call var_location debug hook even on CALL_INSNs.
10174 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10175 * rtl.def (ENTRY_VALUE): New.
10176 * dwarf2out.c: Include cfglayout.h.
10177 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10178 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10179 (struct call_arg_loc_node): New type.
10180 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10181 tail_call_site_count): New variables.
10182 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10183 DW_TAG_GNU_call_site_parameter.
10184 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10185 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10186 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10187 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10188 and DW_AT_GNU_all_source_call_sites.
10189 (mem_loc_descriptor): Handle ENTRY_VALUE.
10190 (add_src_coords_attributes): Don't add enything if
10191 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10192 (dwarf2out_abstract_function): Save and clear call_arg_location,
10193 call_site_count and tail_call_site_count around dwarf2out_decl call.
10194 (gen_call_site_die): New function.
10195 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10196 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10197 (dwarf2out_function_decl): Clear call_arg_locations,
10198 call_arg_loc_last, set call_site_count and tail_call_site_count
10199 to -1 and free block_map.
10200 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10201 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10202 followed by any real instructions.
10203 (dwarf2out_begin_function): Set call_site_count and
10204 tail_call_site_count to 0.
10205 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10206 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10207 attempt to force a DIE for it and worst case remove the attribute.
10208 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10209 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10211 * var-tracking.c: Include tm_p.h.
10212 (vt_stack_adjustments): For calls call note_register_arguments.
10213 (argument_reg_set): New variable.
10214 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10215 ensure the VALUE is resolved.
10216 (call_arguments): New variable.
10217 (prepare_call_arguments): New function.
10218 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10219 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10220 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10221 always use the best expression.
10222 (vt_expand_loc): Add ignore_cur_loc argument.
10223 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10224 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10225 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10226 note for all calls.
10227 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10228 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10229 argument. Don't call cselib_preserve_only_values and
10230 cselib_reset_table.
10231 (note_register_arguments): New function.
10232 (vt_initialize): Compute argument_reg_set. Call
10233 vt_add_function_parameters before processing basic blocks instead of
10234 afterwards. For calls call prepare_call_arguments before calling
10235 cselib_process_insn.
10236 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10237 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10238 (var-tracking.o): Depend on $(TM_P_H).
10239 * cfglayout.h (insn_scope): New prototype.
10240 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10241 * cfglayout.c (insn_scope): No longer static.
10242 * insn-notes.def (CALL_ARG_LOCATION): New.
10243 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10244 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10245 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10246 nothing for DECL_EXTERNAL BLOCK_VARS.
10248 2011-03-16 Alan Modra <amodra@gmail.com>
10251 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10252 create invalid offset address for vsx splat insn.
10253 * config/rs6000/predicates.md (splat_input_operand): New.
10254 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10256 2011-03-15 Xinliang David Li <davidxl@google.com>
10259 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10260 (normalize_preds): New function.
10261 (is_use_properly_guarded): Normalize def predicates.
10263 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10266 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10267 in the output template.
10269 2011-03-15 Richard Guenther <rguenther@suse.de>
10271 PR middle-end/47650
10272 * tree-pretty-print.c (dump_function_declaration): Properly
10273 dump unprototyped and varargs function types.
10275 2011-03-15 Richard Guenther <rguenther@suse.de>
10277 PR tree-optimization/13954
10278 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10281 2011-03-15 Richard Guenther <rguenther@suse.de>
10283 PR tree-optimization/48037
10284 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10285 selects into BIT_FIELD_REFs.
10286 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10289 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10291 PR tree-optimization/48129
10292 * builtins.c (fold_builtin_snprintf): Convert to type of
10293 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10294 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10296 2011-03-15 Richard Guenther <rguenther@suse.de>
10298 PR tree-optimization/41490
10299 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10300 value but with VUSE.
10301 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10303 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10304 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10305 * tree-tailcall.c (find_tail_calls): Ignore returns.
10307 2011-03-15 Richard Guenther <rguenther@suse.de>
10309 PR middle-end/48031
10310 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10311 or variable-indexed array accesses when in gimple form.
10313 2011-03-15 Richard Guenther <rguenther@suse.de>
10315 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10317 2011-03-15 Alan Modra <amodra@gmail.com>
10320 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10321 presume symbol_refs without a symbol_ref_decl are suitably
10322 aligned, nor other trees we may see here. Handle anchor symbols.
10323 (legitimate_constant_pool_address_p): Comment. Add mode param.
10324 Check cmodel=medium addresses. Adjust all calls.
10325 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10326 creating cmodel=medium optimized access to locals.
10327 * config/rs6000/constraints.md (R): Pass QImode to
10328 legitimate_constant_pool_address_p.
10329 * config/rs6000/predicates.md (input_operand): Pass mode to
10330 legitimate_constant_pool_address_p.
10331 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10334 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10337 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10338 64-bit constants being loaded into registers other than GPRs such
10339 as loading 0 into a VSX register.
10341 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10343 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10345 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10347 PR middle-end/47917
10348 * builtins.c (fold_builtin_snprintf): New function.
10349 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10350 (fold_builtin_4): Likewise.
10352 PR middle-end/38878
10353 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10354 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10355 and C - X == X also strip nops from +/-/p+ operand.
10356 When optimizing -X == C, fold C to arg0's type.
10359 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10360 emit it as add_AT_int instead of add_AT_unsigned.
10362 2011-03-14 Tom Tromey <tromey@redhat.com>
10364 * unwind-dw2.c: Include sys/sdt.h if it exists.
10365 (_Unwind_DebugHook): Use STAP_PROBE2.
10366 * config.in, configure: Rebuild.
10367 * configure.ac: Check for sys/sdt.h.
10369 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10371 * config/i386/i386.md (ROUND_FLOOR): New constant.
10372 (ROUND_CEIL): Ditto.
10373 (ROUND_TRUNC): Ditto.
10374 (ROUND_MXCSR): Ditto.
10375 (ROUND_NO_EXC): Ditto.
10376 (rint<mode>2): Use new defines instead of numerical constants.
10377 (floor<mode>2): Ditto.
10378 (ceil<mode>2): Ditto.
10379 (btrunc<mode>2): Ditto.
10380 * config/i386/i386-builtin-types.def: Define ROUND function type
10382 * config/i386/i386.c (enum ix86_builtins): Add
10383 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10384 (struct builtin_description): Add
10385 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10386 (ix86_expand_sse_round): New static function.
10387 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10389 (ix86_builtin_vectorized_function): Handle
10390 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10392 2011-03-14 Tom Tromey <tromey@redhat.com>
10394 * c-parser.c (c_parser_asm_string_literal): Clear
10395 warn_overlength_strings.
10397 2011-03-14 Tom Tromey <tromey@redhat.com>
10399 * c-parser.c (disable_extension_diagnostics): Save
10400 warn_overlength_strings.
10401 (restore_extension_diagnostics): Restore warn_overlength_strings.
10403 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10405 * BASE-VER: Change to 4.7.0.
10407 2011-03-14 Richard Guenther <rguenther@suse.de>
10409 PR middle-end/48098
10410 * tree.c (build_vector_from_val): Adjust assert to requirements
10413 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10416 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10418 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10420 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10421 terms of target_flags_explicit. Adjust copyright year.
10423 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10424 * config/rs6000/t-freebsd: New file. Add override for
10427 2011-03-13 Chris Demetriou <cgd@google.com>
10429 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10430 (-fno-diagnostics-show-option): this, to reflect current default.
10431 (-Werror=): Update text about -fno-diagnostics-show-option.
10433 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10436 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10437 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10438 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10439 mode is not V2DImode or V2DFmode.
10440 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10441 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10442 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10444 (movdi_internal64): Likewise.
10446 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10448 PR tree-optimization/47127
10449 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10451 (set_cloog_options): Same.
10452 (scop_to_clast): Same.
10453 (print_clast_stmt): Do not call cloog_state_malloc and
10455 (print_generated_program): Same.
10457 * graphite-clast-to-gimple.h (cloog_state): Declared.
10458 (scop_to_clast): Adjust declaration.
10459 * graphite.c (cloog_state): Defined here.
10460 (graphite_initialize): Call cloog_state_malloc.
10461 (graphite_finalize): Call cloog_state_free.
10463 2011-03-11 Jason Merrill <jason@redhat.com>
10465 * attribs.c (lookup_attribute_spec): Take const_tree.
10468 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10470 * config/sparc/sparc.c (sparc_option_override): Use
10471 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10473 2011-03-11 Richard Guenther <rguenther@suse.de>
10475 PR tree-optimization/48067
10476 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10477 multiplication result will be only used once on the target
10480 2011-03-11 Richard Guenther <rguenther@suse.de>
10482 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10484 2011-03-11 Richard Guenther <rguenther@suse.de>
10487 * tree.c (find_decls_types_r): Do not walk types only reachable
10488 from IDENTIFIER_NODEs.
10490 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10492 PR middle-end/48044
10493 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10494 all vnode->force_output nodes as needed.
10496 2011-03-11 Jason Merrill <jason@redhat.com>
10499 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10500 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10502 2011-03-11 Martin Jambor <mjambor@suse.cz>
10504 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10507 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10509 PR tree-optimization/48063
10510 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10511 inline functions called once if !tree_can_inline_p (node->callers).
10513 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10515 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10517 * config/score/score3.c: Delete.
10518 * config/score/score3.h: Delete.
10519 * config/score/mul-div.S: Delete.
10520 * config/score/sfp-machine.h: Add new file.
10521 * config/score/constraints.md: Add new file.
10522 * config/score/t-score-softfp: Add new file.
10523 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10524 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10525 (score7_extra_constraint): Delete.
10526 (score7_option_override): Remove unused code.
10527 * config/score/score.c: Remove score3 and score5 define and code.
10528 * config/score/score.h: Remove score3 and score5 define and code.
10529 * config/score/score.md: Remove score3 template and unusual insn.
10530 * config/score/score.opt: Remove score3 and score5 options.
10532 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10534 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10535 when _HPUX_SOURCE is defined.
10536 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10538 2011-03-10 Jason Merrill <jason@redhat.com>
10541 * stor-layout.c (layout_type): Don't set structural equality
10542 on arrays of incomplete type.
10543 * tree.c (type_hash_eq): Handle comparing them properly.
10545 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10548 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10549 result mode matches original rtl mode.
10551 2011-03-10 Nick Clifton <nickc@redhat.com>
10553 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10554 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10556 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10558 PR rtl-optimization/47866
10559 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10560 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10561 if target wasn't scalar.
10562 * function.c (assign_stack_temp_for_type): Assert that neither
10563 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10564 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10566 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10568 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10570 * config/s390/s390-protos.h (s390_label_align): New prototype.
10571 * config/s390/s390.c (s390_label_align): New function.
10572 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10574 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10577 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10578 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10579 (output_vec_const_move): Ditto.
10581 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10583 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10584 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10585 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10586 Change 'rclass' argument and result type to reg_class_t.
10587 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10589 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10591 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10592 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10593 (TARGET_MEMORY_MOVE_COST): Define.
10594 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10596 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10599 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10602 PR tree-optimization/48022
10603 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10606 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10609 * var-tracking.c (find_use_val): Return NULL for
10610 cui->sets && cui->store_p BLKmode MEMs.
10612 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10614 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10616 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10617 xstormy16_print_operand_address): Remove.
10618 * config/stormy16/stormy16.c (xstormy16_print_operand,
10619 xstormy16_print_operand_address): Make static.
10620 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10622 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10625 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10626 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10629 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10632 * cfgloopmanip.c (fix_bb_placements): Return immediately
10633 if FROM is BASE_LOOP's header.
10635 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10637 * gimplify.c (gimplify_function_tree): Fix building calls
10638 to __builtin_return_address.
10640 2011-03-07 Alan Modra <amodra@gmail.com>
10642 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10643 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10644 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10645 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10647 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10648 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10649 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10650 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10651 * config/rs6000/rs6000.c
10652 (rs6000_elf_end_indicate_exec_stack): Rename to..
10653 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10654 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10655 (rs6000_file_start): ..here.
10656 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10657 file scope variables.
10658 (call_ABI_of_interest): New function.
10659 (init_cumulative_args): Set above vars when function return value
10660 is a float, vector, or small struct.
10661 (rs6000_function_arg_advance_1): Likewise for function args.
10662 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10663 references float args.
10665 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10667 * doc/cfg.texi: Remove "See" before @ref.
10668 * doc/invoke.texi: Likewise.
10670 2011-03-05 Jason Merrill <jason@redhat.com>
10672 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10674 2011-03-05 Anthony Green <green@moxielogic.com>
10676 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10678 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10680 PR rtl-optimization/47899
10681 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10682 to flow_loop_nested_p when moving the loop upward.
10684 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10687 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10689 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10691 PR tree-optimization/47967
10692 * ipa-cp.c (build_const_val): Return NULL instead of creating
10693 VIEW_CONVERT_EXPR for mismatching sizes.
10694 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10695 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10696 give up on versioning.
10698 2011-03-05 Alan Modra <amodra@gmail.com>
10701 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10702 full cmodel medium/large lo_sum + high addresses.
10704 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10706 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10707 pool references in UNSPEC_LTREL_OFFSET.
10709 2011-03-04 Jan Hubicka <jh@suse.cz>
10712 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10713 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10714 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10716 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10717 cgraph_add_thunk): Add node pointers.
10718 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10719 associated to right node.
10720 (input_node): Update use of cgraph_same_body_alias
10721 and cgraph_add_thunk.
10723 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10725 * config/i386/i386.opt (mprefer-avx128): New flag.
10726 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10727 modes when the flag -mprefer-avx128 is on.
10729 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10731 * dwarf2out.c (compare_loc_operands): Fix address handling.
10733 2011-03-04 Alan Modra <amodra@gmail.com>
10735 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10737 2011-03-04 Richard Guenther <rguenther@suse.de>
10739 PR middle-end/47968
10740 * expmed.c (extract_bit_field_1): Prefer vector modes that
10741 vec_extract patterns can handle.
10743 2011-03-04 Richard Guenther <rguenther@suse.de>
10745 PR middle-end/47975
10746 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10748 2011-03-04 Richard Henderson <rth@redhat.com>
10750 * explow.c (emit_stack_save): Remove 'after' parameter.
10751 (emit_stack_restore): Likewise.
10752 * expr.h: Update to match.
10753 * builtins.c, calls.c, stmt.c: Likewise.
10754 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10755 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10756 * function.c (expand_function_end): Insert the emit_stack_save
10757 sequence before parm_birth_insn instead of after.
10759 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10761 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10762 (ssse3_pmaddubsw128): Ditto.
10763 (ssse3_pmaddubsw): Ditto.
10765 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10767 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10769 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10772 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10773 on TYPE_SIZE_UNIT if it is a DECL.
10776 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10777 first operand is not is_gimple_mem_ref_addr, try to fold it.
10778 If the operand still isn't is_gimple_mem_ref_addr, clear
10781 2011-03-03 Richard Guenther <rguenther@suse.de>
10783 PR middle-end/47283
10784 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10786 (refs_may_alias_p_1): For release branches return true if
10787 we are confused by our input.
10789 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10791 * config/s390/s390.c (s390_function_value): Rename to ...
10792 (s390_function_and_libcall_value): ... this.
10793 (s390_function_value): New function.
10794 (s390_libcall_value): New function.
10795 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10796 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10797 target macro definitions.
10798 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10800 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10802 * config/i386/freebsd64.h (CC1_SPEC): Define.
10803 * config/i386/linux64.h (CC1_SPEC): Define.
10804 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10806 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10808 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10810 * config/stormy16/stormy16.c: Include reload.h.
10811 (xstormy16_memory_move_cost): New function.
10812 (TARGET_MEMORY_MOVE_COST): Define.
10814 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10816 PR rtl-optimization/47925
10817 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10818 with side effects. Remove the more-specific check for volatile asms.
10820 2011-03-02 Alan Modra <amodra@gmail.com>
10823 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10824 toc relative addresses for valid offsets.
10826 2011-03-01 Richard Guenther <rguenther@suse.de>
10828 PR tree-optimization/47890
10829 * tree-vect-loop.c (get_initial_def_for_induction): Set
10830 related stmt properly.
10832 2011-03-01 Richard Guenther <rguenther@suse.de>
10835 * lto-streamer.c (lto_record_common_node): Also register
10836 the canonical type.
10838 2011-03-01 Richard Guenther <rguenther@suse.de>
10841 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10842 Do not stream DECL_ABSTRACT_ORIGIN.
10843 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10844 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10845 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10846 Do not stream DECL_ABSTRACT_ORIGIN.
10847 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10848 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10850 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10852 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10853 FUNCTION_VALUE_REGNO_P): Remove.
10854 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10855 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10856 Add 'outgoing' argument.
10857 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10859 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10860 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10862 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10865 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10866 (lookup_filename): Likewise.
10867 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10869 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10870 Jakub Jelinek <jakub@redhat.com>
10872 PR middle-end/47893
10873 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10874 (assign_stack_local_1): Change last argument type to int.
10875 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10876 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10877 don't record padding space into frame_space_list nor use those areas.
10878 (assign_stack_local): Adjust caller.
10879 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10880 of assign_stack_local, pass 0 as last argument.
10881 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10884 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10887 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10888 Use target address_mode and pointer_mode hooks instead of hardcoded
10889 Pmode and ptr_mode. Handle some simple cases of extending if
10890 POINTERS_EXTEND_UNSIGNED < 0.
10891 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10892 Call convert_debug_memory_address.
10893 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10894 convert_debug_memory_address.
10896 PR middle-end/46790
10897 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10898 * configure: Regenerated.
10899 * config.in: Regenerated.
10900 * varasm.c (default_function_section): Return NULL
10901 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10903 2011-02-28 Martin Jambor <mjambor@suse.cz>
10905 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10906 the description to match the printed values.
10908 2011-02-28 Richard Guenther <rguenther@suse.de>
10910 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10911 of the copied scope tree.
10913 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10915 * doc/extend.texi (Function Attributes): Avoid deeply (and
10916 wrongly) nested tables.
10918 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10920 PR middle-end/47903
10921 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10922 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10923 r isn't op0 nor op1.
10925 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10927 * config/avr/avr.md: Remove magic comment for emacs.
10929 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10932 * config/avr/avr.c (avr_option_override): Use error on bad options.
10933 (avr_help): New function.
10934 (TARGET_HELP): Define.
10936 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10939 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10940 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10942 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10944 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10945 (ARM Options): Ditto.
10946 (i386 and x86-64 Options): Ditto.
10947 (RX Options): Ditto.
10948 (SPARC Options): Ditto.
10950 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10952 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10953 FreeBSD 6 and later. Generally use cpu generic.
10955 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10957 * doc/cpp.texi: Update copyright years.
10959 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10962 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10964 2011-02-25 Jon Beniston <jon@beniston.com>
10967 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10968 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10969 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10970 (lm32_block_move_inline): Add type cast to remove warning.
10971 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10972 (gen_int_relational): Move declarations to start of function.
10974 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10976 PR tree-optimization/45470
10977 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10978 can throw internally only.
10979 * tree-vect-stmts.c (vectorizable_call): Likewise.
10981 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10983 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10984 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10985 * config/stormy16/stormy16-protos.h
10986 (xstormy16_preferred_reload_class): Remove.
10987 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10988 static. Change 'rclass' argument and return type to reg_class_t.
10989 (TARGET_PREFERRED_RELOAD_CLASS,
10990 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10992 2011-02-24 Richard Guenther <rguenther@suse.de>
10994 * lto-streamer-in.c (input_bb): Do not find referenced vars
10995 in debug statements.
10997 2011-02-23 Jason Merrill <jason@redhat.com>
10999 * common.opt (fabi-version): Document v5 and v6.
11001 2011-02-23 Richard Guenther <rguenther@suse.de>
11003 PR tree-optimization/47849
11004 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11006 2011-02-23 Jie Zhang <jie@codesourcery.com>
11008 * opts-common.c (decode_cmdline_option): Print empty string
11009 argument as "" in decoded->orig_option_with_args_text.
11010 * gcc.c (execute): Print empty string argument as ""
11011 in the verbose output.
11012 (do_spec_1): Keep empty string argument.
11014 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11016 * config.gcc: Declare score-* and crx-* obsolete.
11018 2011-02-23 Jie Zhang <jie@codesourcery.com>
11020 PR rtl-optimization/47763
11021 * web.c (web_main): Ignore naked clobber when replacing register.
11023 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11025 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11028 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11031 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11033 2011-02-22 Mike Stump <mikestump@comcast.net>
11035 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11037 * configure: Regenerate.
11039 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11041 PR rtl-optimization/46002
11042 * ira-color.c (update_copy_costs): Change class intersection
11043 test to reg_class_contents[] test of 'hard_regno'.
11045 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11047 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11048 than Driver option.
11049 * config/hpux11.opt (mt): Likewise.
11050 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11051 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11052 * config/vax/elf.opt (mno-asm-pic): Likewise.
11053 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11055 2011-02-21 Mike Stump <mikestump@comcast.net>
11058 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11059 tree so we can get save the type.
11060 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11061 for CFString instead of trying to use past the end of the builtins.
11062 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11063 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11064 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11065 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11066 Rename to darwin_builtin_cfstring.
11067 (darwin_init_cfstring_builtins): Return the built type.
11069 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11072 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11073 (_mm256_insert_epi64): Use _mm_insert_epi64.
11075 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11077 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11078 * config/stormy16/stormy16-protos.h
11079 (xstormy16_mode_dependent_address_p): Remove.
11080 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11081 Make static. Change return type to bool. Change argument type to
11082 const_rtx. Remove dead code.
11083 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11085 2011-02-21 Richard Guenther <rguenther@suse.de>
11088 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11089 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11090 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11092 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11093 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11095 2011-02-20 Richard Guenther <rguenther@suse.de>
11098 * tree.c (free_lang_data_in_decl): Clean builtins from
11099 the TU decl BLOCK_VARS.
11101 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11105 * haifa-sched.c (fix_tick_ready): Skip tick computation
11108 2011-02-19 Richard Guenther <rguenther@suse.de>
11111 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11112 Remove lazy BLOCK_VARS streaming.
11113 (lto_input_ts_block_tree_pointers): Likewise.
11114 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11116 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11118 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11120 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11122 * config/i386/biarch32.h, config/i386/mach.h,
11123 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11125 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11128 * config/i386/i386.md (peephole2 for shift and plus): Use
11129 operands[1] original mode in the first insn.
11131 2011-02-18 Mike Stump <mikestump@comcast.net>
11133 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11135 2011-02-18 Jan Hubicka <jh@suse.cz>
11137 PR middle-end/47788
11138 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11139 to zero when the function is not inlinable at all.
11141 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11143 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11144 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11145 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11146 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11147 * config/pa/t-pa64: Likewise.
11148 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11150 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11153 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11155 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11158 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11160 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11162 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11163 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11164 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11165 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11166 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11167 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11168 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11169 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11170 m32r_legitimate_address_p): New functions.
11171 * config/m32r/constraints.md (constraint "S"): Don't use
11172 STORE_PREINC_PREDEC_P.
11173 (constraint "U"): Don't use LOAD_POSTINC_P.
11175 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11177 PR rtl-optimization/46178
11178 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11179 compute ira_hard_regno_cover_class[].
11181 2011-02-18 Richard Guenther <rguenther@suse.de>
11184 * lto-streamer.h (lto_global_var_decls): Declare.
11185 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11186 statics for global var processing.
11188 2011-02-18 Richard Guenther <rguenther@suse.de>
11190 PR tree-optimization/47737
11191 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11192 edge dominance check.
11194 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11197 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11198 avoid invalid rtx sharing.
11200 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11202 * doc/cpp.texi (Obsolete Features): Add background on the
11203 origin of assertions.
11205 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11207 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11209 * config/darwin.c (output_objc_section_asm_op): Added support for
11211 (is_objc_metadata): New.
11212 (darwin_objc2_section): New.
11213 (darwin_objc1_section): New.
11214 (machopic_select_section): Added support for ABI v1 and v2.
11215 (darwin_emit_objc_zeroed): New.
11216 (darwin_output_aligned_bss): Detect objc metadata and treat it
11218 (darwin_asm_output_aligned_decl_common): Same.
11219 (darwin_asm_output_aligned_decl_local): Same.
11220 * config/darwin-sections.def: Updated for ABI v1 and v2.
11221 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11222 compiling Objective-C code for the NeXT runtime, default to using
11223 ABI version 0 for 32-bit, and version 2 for 64-bit.
11225 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11227 * common.opt (optimize_fast): New Variable.
11228 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11229 instead of local variable ofast.
11231 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11233 * doc/invoke.texi (fobjc-abi-version): Documented.
11234 (fobjc-nilcheck): Documented.
11235 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11238 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11241 * common.opt (export-dynamic): New Driver option.
11242 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11244 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11246 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11248 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11249 Jan Hubicka <jh@suse.cz>
11253 * cfgexpand.c (account_used_vars_for_block): Remove.
11254 (estimated_stack_frame_size): Use referenced vars.
11255 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11256 that were referenced in the original function. Test src_fn
11257 rather than cfun. Drop redundant get_var_ann.
11258 (setup_one_parameter): Drop redundant get_var_ann.
11259 (declare_return_variable): Likewise.
11260 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11261 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11262 * ipa-inline.c (compute_inline_parameters): Do not compute
11263 disregard_inline_limits here.
11264 (compute_inlinable_for_current, pass_inlinable): New.
11265 (pass_inline_parameters): Require PROP_referenced_vars.
11266 * cgraphunit.c (cgraph_process_new_functions): Don't run
11267 compute_inline_parameters explicitly unless function is in SSA form.
11268 (cgraph_analyze_function): Set .disregard_inline_limits.
11269 * tree-sra.c (convert_callers): Compute inliner parameters
11270 only for functions already in SSA form.
11272 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11274 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11275 -mlittle-endian-data.
11277 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11279 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11280 -mno-fpu, not -fpu and -no-fpu.
11281 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11282 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11284 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11287 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11288 input reload with PLUS RTX.
11290 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11292 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11293 of InverseVar(MDMX).
11295 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11297 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11300 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11302 * config/mn10300/mn10300.opt (mno-crt0): New.
11304 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11306 * config/m68k/uclinux.opt (static-libc): New Driver option.
11308 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11310 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11312 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11314 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11315 %{muser-extend-enabled}.
11317 2011-02-16 Richard Guenther <rguenther@suse.de>
11319 PR tree-optimization/47738
11320 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11321 the TODO from tree_predictive_commoning.
11323 2011-02-15 Jeff Law <law@redhat.com>
11326 2011-01-25 Jeff Law <law@redhat.com>
11328 PR rtl-optimization/37273
11329 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11330 handle them like argument loads from stack slots. Do not double
11331 count memory for memory constants and argument loads from stack slots.
11333 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11335 PR middle-end/47725
11336 * combine.c (cant_combine_insn_p): Revert the last change.
11338 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11341 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11342 mode for vector constants. Remove code that checks for TImode.
11344 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11348 * cgraph.h (compute_inline_parameters): Return void.
11349 * ipa-inline.c (compute_inline_parameters): Adjust.
11351 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11355 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11357 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11358 * ipa-inline.c (compute_inline_parameters): Adjust.
11360 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11364 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11365 Adjust all users. Pass FN to...
11366 * tree-flow-inline.h (first_referenced_var): ... this. Add
11368 * ipa-struct-reorg.c: Adjust.
11369 * tree-dfa.c: Adjust.
11370 * tree-into-ssa.c: Adjust.
11371 * tree-sra.c: Adjust.
11372 * tree-ssa-alias.c: Adjust.
11373 * tree-ssa-live.c: Adjust.
11374 * tree-ssa.c: Adjust.
11375 * tree-ssanames.c: Adjust.
11376 * tree-tailcall.c: Adjust.
11378 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11382 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11383 Adjust all callers.
11384 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11385 * tree-flow-inline.h: Adjust.
11386 * gimple-pretty-print.c: Adjust.
11387 * tree-into-ssa.c: Adjust.
11388 * tree-ssa.c: Adjust.
11389 * cfgexpand.c: Adjust.
11391 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11393 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11394 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11395 (EXTRA_CONSTRAINT): Delete.
11396 * config/iq2000/constraints.md: New file.
11397 * config/iq2000/iq2000.md: Include it.
11398 (define_insn ""): Delete.
11399 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11400 unsupported constraint letters from patterns.
11401 (call_value, call_value_internal1): Likewise.
11402 (call_value_multiple_internal1): Likewise.
11404 2011-02-15 Nick Clifton <nickc@redhat.com>
11406 * config/mn10300/mn10300.c: Include tm-constrs.h.
11407 (struct liw_data): New data structure describing an LIW candidate
11409 (extract_bundle): Use struct liw_data. Allow small integer
11410 operands for some instructions.
11411 (check_liw_constraints): Use struct liw_data. Remove swapped
11412 parameter. Add comments describing the checks. Fix bug when
11413 assigning the source of liw1 to the source of liw2.
11414 (liw_candidate): Delete. Code moved into extract_bundle.
11415 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11417 * config/mn10300/predicates.md (liw_operand): New predicate.
11418 Allows registers and small integer constants.
11419 * config/mn10300/constraints.md (O): New constraint. Accetps
11420 integers in the range -8 to +7 inclusive.
11421 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11422 for moving a small integer into a register. Give this alternative
11424 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11425 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11426 using the J,K,L and M constraints,
11427 (liw): Remove SI mode on second operands to allow for HI and QI
11429 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11432 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11434 PR middle-end/47725
11435 * combine.c (cant_combine_insn_p): Check zero/sign extended
11438 2011-02-15 Richard Guenther <rguenther@suse.de>
11440 PR tree-optimization/47743
11441 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11442 for a non-type-compatible VN lookup bail out.
11444 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11446 * config/fr30/constraints.md: New file.
11447 * config/fr30/fr30.md: Include it.
11448 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11449 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11450 (EXTRA_CONSTRAINT): Delete.
11452 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11454 * config/frv/constraints.md: New file.
11455 * config/frv/predicates.md: Include it.
11456 * config/frv/frv.c (reg_class_from_letter): Delete.
11457 (frv_option_override): Don't initialize it.
11458 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11459 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11460 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11461 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11462 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11463 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11464 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11465 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11466 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11467 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11468 (REG_CLASS_FROM_CONSTRAINT): Delete.
11470 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11472 PR middle-end/47581
11473 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11474 if frame size is 0 in a leaf function.
11476 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11479 * config/alpha/host-osf.c: New file.
11480 * config/alpha/x-osf: New file.
11481 * config.host (alpha*-dec-osf*): Use it.
11483 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11485 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11486 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11487 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11488 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11490 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11492 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11494 * config/stormy16/constraints.md: New file.
11495 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11496 Use satisfies_constraint_Q and satisfies_constraint_R.
11497 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11499 (xstormy16_legitiamte_address_p): Declare.
11500 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11501 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11502 (EXTRA_CONSTRAINT): Delete.
11503 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11505 (xstormy16_extra_constraint_p): Delete.
11507 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11509 PR tree-optimization/46494
11510 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11511 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11512 (pass_rtl_loop_done): Add TODO_verify_flow.
11513 * fwprop.c (pass_rtl_fwprop): Likewise.
11514 * modulo-sched.c (pass_sms): Likewise.
11515 * tree-ssa-dom.c (pass_dominator): Likewise.
11516 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11517 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11518 (pass_tree_loop_done): Likewise.
11519 * tree-ssa-pre.c (execute_pre): Likewise.
11520 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11521 * tree-ssa-sink.c (pass_sink_code): Likewise.
11522 * tree-vrp.c (pass_vrp): Likewise.
11524 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11526 * config/v850/constraints.md: New file.
11527 * config/v850/v850.md: Include it.
11528 * config/v850/predicates.md (reg_or_0_operand): Use
11529 satisfies_constraint_G.
11530 (special_symbolref_operand): Use satisfies_constraint_K.
11531 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11532 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11533 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11534 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11535 (EXTRA_CONSTRAINT): Delete.
11536 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11537 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11538 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11540 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11543 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11546 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11548 * config/mcore/constraints.md: New file.
11549 * config/mcore/mcore.md: Include it.
11550 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11551 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11552 (REG_CLASS_FROM_LETTER): Delete.
11553 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11554 insn_const_int_ok_for_constraint.
11555 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11556 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11557 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11558 (EXTRA_CONSTRAINT): Delete.
11560 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11563 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11564 (IS_SIGHANDLER): Define.
11565 (sparc64_is_sighandler): New function, split off from
11566 sparc64_fallback_frame_state.
11567 (sparc_is_sighandler): New function, split off from
11568 sparc_fallback_frame_state.
11569 (sparc64_fallback_frame_state): Merge with ...
11570 (sparc_fallback_frame_state): ... this into ...
11571 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11572 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11573 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11574 stack instead of hardcoded offsets.
11576 2011-02-14 Andriy Gapon <avg@freebsd.org>
11579 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11581 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11583 * configure: Regenerate.
11585 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11588 * gcc.c (asm_options): Correct spec matching --target-help.
11590 2011-02-12 Martin Jambor <mjambor@suse.cz>
11592 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11593 to gimple call error.
11595 2011-02-12 Mike Stump <mikestump@comcast.net>
11597 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11598 comments in backslash regions.
11600 2011-02-12 Mike Stump <mikestump@comcast.net>
11601 Jakub Jelinek <jakub@redhat.com>
11602 Iain Sandoe <iains@gcc.gnu.org>
11605 * dwarf2out.c (output_cfa_loc): When required, apply the
11606 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11607 (output_loc_sequence): Likewise.
11608 (output_loc_operands_raw): Likewise.
11609 (output_loc_sequence_raw): Likewise.
11610 (output_cfa_loc): Likewise.
11611 (output_loc_list): Suppress register number adjustment when
11612 calling output_loc_sequence()
11613 (output_die): Likewise.
11615 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11617 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11619 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11620 xtensa_memory_move_cost): New functions.
11621 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11623 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11626 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11627 in the current directory.
11628 * configure: Rebuilt.
11630 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11632 * config/darwin.c (darwin_override_options): Add a hunk missed
11633 from the commit of r168571. Trim comment line lengths and
11634 correct indents of the preceding block.
11636 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11638 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11641 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11643 * common.opt (nostartfiles): New Driver option.
11645 2011-02-11 Xinliang David Li <davidxl@google.com>
11647 PR tree-optimization/47707
11648 * tree-chrec.c (convert_affine_scev): Keep type precision.
11650 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11652 PR tree-optimization/47420
11653 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11655 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11657 PR rtl-optimization/47614
11658 * rtl.h (check_for_inc_dec): Declare.
11659 * dse.c (check_for_inc_dec): Externalize...
11660 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11661 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11663 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11666 * gcc.c (main): Do not compile inputs if there were errors in
11668 * opts-common.c (read_cmdline_option): Check for wrong language
11669 after other error checks.
11671 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11673 * cgraph.c: Fix comment typos.
11674 * cgraph.h: Likewise.
11675 * cgraphunit.c: Likewise.
11676 * ipa-cp.c: Likewise.
11677 * ipa-inline.c: Likewise.
11678 * ipa-prop.c: Likewise.
11679 * ipa-pure-const.c: Likewise.
11680 * ipa-ref.c: Likewise.
11681 * ipa-reference.c: Likewise.
11683 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11686 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11688 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11691 * doc/sourcebuild.texi (Require Support): Document
11692 dg-require-ascii-locale.
11694 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11696 * doc/lto.texi (Write summary): Fix missing parentheses.
11698 2011-02-10 DJ Delorie <dj@redhat.com>
11700 * config/m32c/m32c.c (m32c_option_override): Disable
11701 -fcombine-stack-adjustments until flag value tracking and compare
11702 optimization can be rewritten.
11704 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11706 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11708 (PROCESSOR_DEFAULT64): Likewise.
11710 2011-02-10 Richard Henderson <rth@redhat.com>
11712 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11713 change from 2011-02-03.
11714 * config/rx/rx.c (flags_from_code): Likewise.
11715 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11716 is valid, n/pz otherwise.
11717 (rx_select_cc_mode): Return CCmode if Y is not zero.
11719 2011-02-10 Richard Guenther <rguenther@suse.de>
11721 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11723 2011-02-10 Richard Guenther <rguenther@suse.de>
11725 PR tree-optimization/47677
11726 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11728 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11731 * combine.c (make_compound_operation): Only change shifts into
11732 multiplication for SCALAR_INT_MODE_P.
11734 2011-02-10 Jie Zhang <jie@codesourcery.com>
11738 2011-02-05 Jie Zhang <jie@codesourcery.com>
11740 * web.c (entry_register): Don't clobber the number of the
11741 first uninitialized reference in used[].
11743 2011-02-09 Richard Guenther <rguenther@suse.de>
11745 PR tree-optimization/47664
11746 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11749 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11753 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11755 (PROCESSOR_DEFAULT64): Same.
11756 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11758 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11760 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11762 2011-02-09 Martin Jambor <mjambor@suse.cz>
11764 PR middle-end/45505
11765 * tree-sra.c (struct access): New flags grp_scalar_read and
11766 grp_scalar_write. Changed description of assignment read and write
11768 (dump_access): Dump new flags, reorder all of them.
11769 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11770 to detect multiple scalar reads.
11771 (analyze_access_subtree): Use the new scalar read write flags instead
11772 of the old flags. Adjusted comments.
11774 2011-02-08 DJ Delorie <dj@redhat.com>
11777 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11780 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11782 * config/m68k/uclinux.opt: New.
11783 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11785 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11787 * config/cris/elf.opt (sim): New Driver option.
11789 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11791 * config/xtensa/elf.opt: New.
11792 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11794 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11796 * config/vax/elf.opt: New.
11797 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11799 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11801 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11803 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11805 * config/gnu-user.opt: New.
11806 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11807 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11808 *-*-uclinux*): Use gnu-user.opt.
11810 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11812 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11813 * config/i386/gnu.h (CPP_SPEC): Likewise.
11815 2011-02-08 Ian Lance Taylor <iant@google.com>
11817 * common.opt (fcx-limited-range): Add SetByCombined flag.
11818 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11819 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11820 (fassociative-math, freciprocal-math): Likewise.
11821 (funsafe-math-optimizations): Likewise.
11822 * opth-gen.awk: Handle SetByCombined.
11823 * optc-gen.awk: Likewise.
11824 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11825 (set_unsafe_math_optimizations_flags): Likewise.
11826 * doc/options.texi (Option properties): Document SetByCombined.
11828 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11830 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11831 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11832 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11833 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11834 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11836 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11838 PR tree-optimization/46834
11839 PR tree-optimization/46994
11840 PR tree-optimization/46995
11841 * graphite-sese-to-poly.c (used_outside_reduction): New.
11842 (detect_commutative_reduction): Call used_outside_reduction.
11843 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11844 translate_scalar_reduction_to_array only when at least one
11845 loop-phi/close-phi tuple has been detected.
11847 2011-02-08 Richard Guenther <rguenther@suse.de>
11849 PR middle-end/47639
11850 * tree-vect-generic.c (expand_vector_operations_1): Update
11852 (expand_vector_operations): ... not here. Cleanup EH info
11853 and the CFG if required.
11855 2011-02-08 Richard Guenther <rguenther@suse.de>
11857 PR tree-optimization/47641
11858 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11859 require type compatibility.
11861 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11863 * gimple-low.c (lower_function_body): Don't remove the location of
11864 the return statement here.
11865 (lower_gimple_return): Do it here instead but only if the return
11866 statement is actually used twice.
11868 2011-02-08 Richard Guenther <rguenther@suse.de>
11870 PR tree-optimization/47632
11871 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11872 unused up_to_stmt parameter, return whether cfg-cleanup is
11873 necessary, remove EH info properly.
11874 (forward_propagate_into_gimple_cond): Adjust caller.
11875 (forward_propagate_into_cond): Likewise.
11876 (forward_propagate_comparison): Likewise.
11877 (tree_ssa_forward_propagate_single_use_vars): Make
11878 forward_propagate_comparison case similar to the two others.
11880 2011-02-08 Nick Clifton <nickc@redhat.com>
11882 * config/mn10300/mn10300.opt (mliw): New command line option.
11883 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11884 (liw_bundling): New automaton.
11885 (liw): New attribute.
11886 (liw_op): New attribute.
11887 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11888 (movsi_internal): Add LIW attributes.
11889 (andsi3): Likewise.
11890 (iorsi3): Likewise.
11891 (xorsi3): Likewise.
11892 (addsi3): Separate register and immediate alternatives.
11893 Add LIW attributes.
11894 (subsi3): Likewise.
11896 (aslsi3): Likewise.
11897 (lshrsi3): Likewise.
11898 (ashrsi3): Likewise.
11899 (liw): New pattern.
11900 * config/mn10300/mn10300.c (liw_op_names): New
11901 (mn10300_print_operand): Handle 'W' operand descriptor.
11902 (extract_bundle): New function.
11903 (check_liw_constraints): New function.
11904 (liw_candidate): New function.
11905 (mn10300_bundle_liw): New function.
11906 (mn10300_reorg): New function.
11907 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11908 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11909 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11910 __LIW__ or __NO_LIW__.
11911 * doc/invoke.texi: Describe the -mliw command line option.
11913 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11915 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11916 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11917 pthread_mutex_unlock): Remove.
11918 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11919 * config/pa/t-pa64: Likewise.
11920 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11921 shared libc if not linking against libpthread.
11922 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11924 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11927 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11928 on 10.6 and later to ensure that we always use the unwinder from
11929 the system. Only add -no_compact_unwind when tarteting darwin
11932 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11935 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11936 (vec_interleave_lowv2sf): Ditto.
11937 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11938 (vec_extract_oddv2sf): Ditto.
11940 2011-02-07 Mike Stump <mikestump@comcast.net>
11943 Add __ieee_divdc3 entry point.
11944 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11946 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11947 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11948 * config/darwin.c (darwin_rename_builtins): Add.
11949 * config/darwin-protos.h (darwin_rename_builtins): Add.
11951 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11954 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11957 2011-02-07 Mike Stump <mikestump@comcast.net>
11959 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11961 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11964 * config/avr/libgcc.S (exit): Move .endfunc
11966 2011-02-07 Richard Guenther <rguenther@suse.de>
11968 PR tree-optimization/47615
11969 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11970 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11971 (run_scc_vn): Initialize it.
11972 (visit_reference_op_load): Use it.
11973 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11975 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11977 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11978 DImode trapping arithmetic libfuncs.
11980 2011-02-07 Richard Guenther <rguenther@suse.de>
11982 PR tree-optimization/47621
11983 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11985 (execute_update_addresses_taken): ... here. Make it more
11986 conservative in what we accept.
11988 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11990 * config/sparc/freebsd.h (ASM_SPEC): Define.
11991 * config/sparc/vxworks.h (ASM_SPEC): Define.
11993 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11995 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11997 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11999 * doc/invoke.texi: Remove reference to compiler internals from
12000 user documentation.
12002 * reg-notes.def: Remove REG_VALUE_PROFILE.
12003 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12005 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12007 PR middle-end/47610
12008 * varasm.c (default_section_type_flags): If decl is NULL,
12009 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12011 2011-02-05 Jie Zhang <jie@codesourcery.com>
12014 * web.c (entry_register): Don't clobber the number of the
12015 first uninitialized reference in used[].
12017 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12019 PR tree-optimization/46194
12020 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12021 (build_classic_dist_vector_1): Do not represent classic distance
12022 vectors when the access functions are variating in different loops.
12024 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12026 * config/mips/iris6.opt: New.
12027 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12029 2011-02-04 Richard Henderson <rth@redhat.com>
12030 Steve Ellcey <sje@cup.hp.com>
12033 * config/ia64/predicates.md (mux1_brcst_element): New.
12034 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12035 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12036 (ia64_unpack_sign): New.
12037 (ia64_expand_unpack): Rewrite using new routines.
12038 (ia64_expand_widen_sum): Ditto.
12039 (ia64_expand_dot_prod_v8qi): Ditto.
12040 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12041 routines, add endian check.
12042 (pmpy2_even): Rename from pmpy2_r, add endian check.
12043 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12044 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12045 (vec_widen_smult_hi_v4hi): Ditto.
12046 (vec_widen_umult_lo_v4hi): Ditto.
12047 (vec_widen_umult_hi_v4hi): Ditto.
12048 (mulv2si3): Change endian checks.
12049 (sdot_prodv4hi): Rewrite with new calls.
12050 (udot_prodv4hi): New.
12051 (vec_pack_ssat_v4hi): Add endian check.
12052 (vec_pack_usat_v4hi): Ditto.
12053 (vec_pack_ssat_v2si): Ditto.
12054 (max1_even): Rename from max1_r, add endian check.
12055 (max1_odd): Rename from max1_l, add endian check.
12056 (*mux1_rev): Format change.
12057 (*mux1_mix): Ditto.
12058 (*mux1_shuf): Ditto.
12059 (*mux1_alt): Ditto.
12060 (*mux1_brcst_v8qi): Use new predicate.
12061 (vec_extract_evenv8qi): Remove endian check.
12062 (vec_extract_oddv8qi): Ditto.
12063 (vec_interleave_lowv4hi): Format change.
12064 (vec_interleave_highv4hi): Ditto.
12065 (mix2_even): Rename from mix2_r, add endian check.
12066 (mix2_odd): Rename from mux2_l, add endian check.
12067 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12068 (vec_extract_evenodd_helper): Format change.
12069 (vec_extract_evenv4hi): Remove endian check.
12070 (vec_extract_oddv4hi): Remove endian check.
12071 (vec_interleave_lowv2si): Format change.
12072 (vec_interleave_highv2si): Format change.
12073 (vec_initv2si): Remove endian check.
12074 (vecinit_v2si): Add endian check.
12075 (reduc_splus_v2sf): Add endian check.
12076 (reduc_smax_v2sf): Ditto.
12077 (reduc_smin_v2sf): Ditto.
12078 (vec_initv2sf): Remove endian check.
12079 (fpack): Add endian check.
12080 (fswap): Add endian check.
12081 (vec_interleave_highv2sf): Add endian check.
12082 (vec_interleave_lowv2sf): Add endian check.
12083 (fmix_lr): Add endian check.
12084 (vec_setv2sf): Format change.
12085 (*vec_extractv2sf_0_be): Use shift to extract operand.
12086 (*vec_extractv2sf_1_be): New.
12087 (vec_pack_trunc_v4hi): Add endian check.
12088 (vec_pack_trunc_v2si): Format change.
12090 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12092 PR inline-asm/23200
12093 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12094 do bb, locus and block comparison and disallow loads if it is not set.
12095 (stmt_is_replaceable_p): New function.
12096 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12098 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12099 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12101 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12103 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12105 * config/rs6000/xilinx.opt: New.
12106 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12108 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12110 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12112 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12114 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12115 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12116 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12117 secondary_reload_info, xtensa_secondary_reload): Remove.
12118 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12119 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12120 (xtensa_preferred_reload_class): Make static. Change return and
12121 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12122 Use CONST_DOUBLE_P predicate.
12123 (xtensa_preferred_output_reload_class): New function.
12124 (xtensa_secondary_reload): Make static.
12126 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12128 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12129 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12130 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12132 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12134 PR middle-end/31490
12135 * output.h (SECTION_RELRO): Define.
12136 (SECTION_MACH_DEP): Adjust.
12137 (get_variable_section): New prototype.
12138 * varpool.c (varpool_finalize_named_section_flags): New function.
12139 (varpool_assemble_pending_decls): Call it.
12140 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12141 * cgraphunit.c (cgraph_output_in_order): Call
12142 varpool_finalize_named_section_flags.
12143 * varasm.c (get_section): Allow section flags conflicts between
12144 relro and read-only sections if the section hasn't been declared yet.
12145 Set SECTION_OVERRIDE after diagnosing section type conflict.
12146 (get_variable_section): No longer static.
12147 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12148 readonly sections that need relocations.
12149 (decl_readonly_section_1): New function.
12150 (decl_readonly_section): Use it.
12153 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12154 Steve Ellcey <sje@cup.hp.com>
12156 PR middle-end/31490
12157 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12158 if section attribute used.
12160 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12162 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12163 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12164 (darwin_init_sections): Remove assertion.
12166 2011-02-03 Nick Clifton <nickc@redhat.com>
12168 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12170 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12171 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12172 instead of "n" and "pz".
12173 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12176 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12179 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12180 fma, expand FMA_EXPR as fma{,f,l} call.
12183 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12184 copy them into a unsigned char variable and pass address of it to
12185 lto_output_data_stream.
12188 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12189 around backend_init_target and lang_dependent_init_target calls.
12190 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12191 (verify_cgraph_node): Don't call set_cfun here. Use
12192 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12193 Set error_found for incorrectly represented calls to thunks.
12195 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12198 PR rtl-optimization/43494
12199 * rtl.h (for_each_inc_dec_fn): New type.
12200 (for_each_inc_dec): Declare.
12201 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12202 (for_each_inc_dec_find_inc_dec): New fn.
12203 (for_each_inc_dec_find_mem): New fn.
12204 (for_each_inc_dec): New fn.
12205 * dse.c (struct insn_size): Remove.
12206 (replace_inc_dec, replace_inc_dec_mem): Remove.
12207 (emit_inc_dec_insn_before): New fn.
12208 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12209 (canon_address): Pass mem modes to cselib_lookup.
12210 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12211 (cselib_lookup_from_insn): Likewise.
12212 (cselib_subst_to_values): Likewise.
12213 * cselib.c (find_slot_memmode): New var.
12214 (cselib_find_slot): New fn. Use it instead of
12215 htab_find_slot_with_hash everywhere.
12216 (entry_and_rtx_equal_p): Use find_slot_memmode.
12217 (autoinc_split): New fn.
12218 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12219 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12220 Deal with autoinc. Special-case recursion into MEMs.
12221 (cselib_hash_rtx): Likewise.
12222 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12223 address and MEM modes.
12224 (cselib_subst_to_values): Add memmode, pass it on.
12226 (cselib_lookup): Add memmode argument, pass it on.
12227 (cselib_lookup_from_insn): Add memmode.
12228 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12229 (struct cselib_record_autoinc_data): New.
12230 (cselib_record_autoinc_cb): New fn.
12231 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12232 mode to cselib_lookup. Reset autoinced REGs here instead of...
12233 (cselib_process_insn): ... here.
12234 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12236 (add_uses): Likewise, also to cselib_subst_to_values.
12237 (add_stores): Likewise.
12238 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12239 cselib_subst_to_values.
12240 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12241 * gcse.c (do_local_cprop): Adjusted.
12242 * postreload.c (reload_cse_simplify_set): Adjusted.
12243 (reload_cse_simplify_operands): Adjusted.
12244 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12246 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12248 PR tree-optimization/45122
12249 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12250 unsafe assumptions when there's more than one loop exit.
12252 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12255 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12256 Document using vector double with the load/store builtins, and
12257 that the load/store builtins always use Altivec instructions.
12259 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12260 to use altivec memory instructions, even on VSX.
12261 (vector_altivec_store_<mode>): Ditto.
12263 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12266 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12267 V2DF, V2DI support to load/store overloaded builtins.
12269 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12270 altivec load/store builtins for V2DF/V2DI types.
12272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12273 set avoid indexed addresses on power6 if -maltivec.
12274 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12275 vector_altivec_load/vector_altivec_store builtins.
12276 (altivec_expand_st_builtin): Ditto.
12277 (altivec_expand_builtin): Add VSX memory builtins.
12278 (rs6000_init_builtins): Add V2DI types to internal types.
12279 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12280 load/store builtins.
12281 (rs6000_address_for_altivec): Insure memory address is appropriate
12284 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12285 vec_vsx_ld and vec_vsx_st.
12286 (vsx_store_<mode>): Ditto.
12288 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12289 variables to hold long long types for VSX vector memory builtins.
12290 (RS6000_BTI_unsigned_long_long): Ditto.
12291 (long_long_integer_type_internal_node): Ditti.
12292 (long_long_unsigned_type_internal_node): Ditti.
12294 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12295 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12296 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12298 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12300 (vec_vsx_st): Ditto.
12302 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12304 * config/pa/pa-hpux10.opt: New.
12305 * config/hpux11.opt (pthread): New Driver option.
12306 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12307 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12309 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12311 * config/ia64/vms.opt: New.
12312 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12314 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12317 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12318 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12319 generator functions.
12320 (vsx_floatuns<VSi><mode>2): Ditto.
12321 (vsx_fix_trunc<mode><VSi>2): Ditto.
12322 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12324 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12326 * config/i386/djgpp.opt (posix): New Driver option.
12328 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12330 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12331 Move to the unsupported targets list.
12333 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12335 PR rtl-optimization/47525
12336 * df-scan.c: Update copyright years.
12337 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12338 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12340 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12342 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12343 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12344 (ASM_OUTPUT_ASCII): Remove.
12345 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12347 2011-02-02 Jeff Law <law@redhat.com>
12349 PR middle-end/47543
12350 * reload.c (find_reloads_address): Handle reg+d address where both
12351 components are invalid by reloading the entire address.
12353 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12354 Richard Guenther <rguenther@suse.de>
12356 PR tree-optimization/40979
12358 * passes.c (init_optimization_passes): After LIM call copy_prop
12359 and DCE to clean up.
12360 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12362 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12364 PR tree-optimization/47576
12365 PR tree-optimization/47555
12366 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12367 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12368 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12369 * tree-scalar-evolution.c (follow_ssa_edge): Use
12370 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12372 2011-02-02 Richard Guenther <rguenther@suse.de>
12374 PR tree-optimization/47566
12375 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12377 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12381 * tree-inline.c (declare_return_variable): Remove unused caller
12386 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12387 * cfgexpand.c (account_used_vars_for_block): Use them.
12388 * tree-nrv.c (tree_nrv): Likewise.
12389 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12390 (dump_scope_block): Likewise.
12391 (remove_unused_locals): Likewise.
12395 * tree-inline.c (declare_return_variable): Add result decl to
12396 local decls only once.
12397 * gimple-low.c (record_vars_into): Mark newly-created variables
12400 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12406 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12408 (no_real_insns_p, schedule_block, set_priorities): Drop special
12409 treatment of boundary debug insns.
12410 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12411 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12412 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12413 (BOUNDARY_DEBUG_INSN_P): Likewise.
12414 (SCHEDULE_DEBUG_INSN_P): Likewise.
12415 * sched-rgn.c (init_ready_list): Drop special treatment of
12416 boundary debug insns.
12417 * final.c (rest_of_clean_state): Clear notes' BB.
12419 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12421 * config/openbsd.opt (assert=): New Driver option.
12423 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12425 * config/i386/nto.opt: New.
12426 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12428 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12430 * config/i386/netware.opt: New.
12431 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12433 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12435 * config/interix.opt (posix): New Driver option.
12437 2011-02-01 DJ Delorie <dj@redhat.com>
12439 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12441 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12444 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12446 PR tree-optimization/47561
12447 * toplev.c (process_options): Print the Graphite flags. Add
12448 flag_loop_flatten to the list of options requiring Graphite.
12450 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12452 * config/i386/cygming.opt (posix): New Driver option.
12454 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12456 * config/arm/vxworks.opt: New.
12457 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12459 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12461 * config/alpha/elf.opt: New.
12462 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12463 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12465 2011-02-01 Richard Guenther <rguenther@suse.de>
12467 PR tree-optimization/47559
12468 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12469 store-motion on references that can throw.
12471 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12473 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12474 * tree-pass.h (TDF_CSELIB): New macro.
12475 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12476 cselib_lookup): Check for it rather than for TDF_DETAILS.
12478 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12481 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12482 is HOST_BIT_BUCKET.
12484 * opts.c (finish_options): Don't add x_aux_base_name if it is
12487 2011-02-01 Richard Guenther <rguenther@suse.de>
12489 PR tree-optimization/47555
12491 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12493 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12495 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12498 * config/lm32/t-lm32: Add multilib for all CPU options.
12500 2011-02-01 Richard Guenther <rguenther@suse.de>
12502 PR tree-optimization/47541
12503 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12504 sure to have a field at offset zero.
12506 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12508 * config/arc/arc.opt (EB, EL): New Driver options.
12510 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12512 * config/alpha/osf5.opt: New.
12513 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12515 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12517 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12519 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12521 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12522 -floop-interchange.
12523 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12524 is an alias of -floop-interchange and that it requires the
12525 Graphite infrastructure.
12526 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12527 flag_loop_interchange based on the value of flag_tree_loop_linear.
12529 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12530 Richard Guenther <rguenther@suse.de>
12532 PR tree-optimization/47538
12533 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12534 type instead of r1type, except for comparisons. For right
12535 shifts and comparisons punt if there are mismatches in
12536 sizetype vs. non-sizetype types.
12538 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12540 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12543 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12545 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12547 * configure: Regenerate.
12549 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12551 * configure.ac (gcc_cv_ld_static_option): Define.
12552 (gcc_cv_ld_dynamic_option): Define.
12553 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12555 (HAVE_LD_STATIC_DYNAMIC): Update message.
12556 (LD_STATIC_OPTION): Define.
12557 (LD_DYNAMIC_OPTION): Define.
12558 * configure: Regenerate.
12559 * config.in: Regenerate.
12560 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12561 HAVE_LD_STATIC_DYNAMIC]: Use them.
12563 2011-01-31 Nick Clifton <nickc@redhat.com>
12565 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12566 registers inside interrupt handlers if the handler is not a leaf
12569 2011-01-31 Nick Clifton <nickc@redhat.com>
12571 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12572 reg_renumber returning an INVALID_REGNUM.
12574 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12577 * doc/install.texi: Document host options discarded when cross
12578 configuring target libraries.
12580 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12583 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12586 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12588 (no_real_insns_p, schedule_block, set_priorities): Drop special
12589 treatment of boundary debug insns.
12590 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12591 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12592 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12593 (BOUNDARY_DEBUG_INSN_P): Likewise.
12594 (SCHEDULE_DEBUG_INSN_P): Likewise.
12595 * sched-rgn.c (init_ready_list): Drop special treatment of
12596 boundary debug insns.
12597 * final.c (rest_of_clean-state): Clear notes' BB.
12599 2011-01-31 Alan Modra <amodra@gmail.com>
12601 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12602 toc relative expressions as we do in print_operand_address.
12604 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12606 * doc/extend.texi: Follow spelling conventions.
12607 * doc/invoke.texi: Fix a typo.
12609 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12611 * config/hpux11.opt: New.
12612 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12613 ia64*-*-hpux*): Use hpux11.opt.
12615 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12617 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12620 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12622 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12625 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12627 * doc/install.texi (Binaries): Remove outdated reference for
12628 Motorola 68HC11/68HC12 downloads.
12630 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12632 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12635 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12638 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12641 2011-01-28 Ahmad Sharif <asharif@google.com>
12643 * value-prof.c (check_counter): Corrected error message.
12645 2011-01-29 Jie Zhang <jie@codesourcery.com>
12647 * config/arm/arm.c (arm_legitimize_reload_address): New.
12648 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12649 arm_legitimize_reload_address.
12650 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12652 2011-01-28 Ian Lance Taylor <iant@google.com>
12654 * godump.c (go_define): Ignore macros whose definitions include
12655 two adjacent operands.
12657 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12660 * varasm.c (force_const_mem): Store copy of x in desc->constant
12661 instead of x itself.
12662 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12663 itself into REG_EQUAL note.
12665 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12667 * config/freebsd.opt (posix, rdynamic): New Driver options.
12669 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12671 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12672 -Bstatic/-Bdynamic.
12673 * configure: Regenerate.
12675 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12677 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12678 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12680 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12682 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12683 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12684 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12685 (s390_preferred_reload_class): Make static. Change return and
12686 'rclass' argument type to reg_class_t.
12688 2011-01-27 Jan Hubicka <jh@suse.cz>
12690 PR middle-end/46949
12691 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12692 (process_function_and_variable_attributes): Check defined weakrefs.
12694 2011-01-27 Martin Jambor <mjambor@suse.cz>
12696 PR tree-optimization/47228
12697 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12698 build_ref_for_offset.
12700 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12702 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12704 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12706 PR rtl-optimization/46856
12707 * postreload.c (reload_combine_recognize_const_pattern): Do not
12708 separate cc0 setter and user on cc0 targets.
12710 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12713 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12714 passed a VOID_TYPE expression, immediately emit an error and
12715 return error_mark_node.
12717 2011-01-26 Jeff Law <law@redhat.com>
12719 PR rtl-optimization/47464
12720 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12721 rather than may_trap_p as needed.
12723 2011-01-26 DJ Delorie <dj@redhat.com>
12725 PR rtl-optimization/46878
12726 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12727 setter/user dependency as well.
12729 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12731 PR rtl-optimization/44469
12732 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12733 after removing trivially dead basic blocks.
12735 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12737 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12738 * config/frv/frv.h (LINK_SPEC): Likewise.
12739 * config/i386/netware.h (LINK_SPEC): Likewise.
12740 * config/m68k/linux.h (ASM_SPEC): Likewise.
12741 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12742 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12743 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12744 * config/sparc/linux.h (ASM_SPEC): Likewise.
12745 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12746 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12748 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12750 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12751 * config/frv/frv.h (ASM_SPEC): Likewise.
12752 * config/m68k/linux.h (ASM_SPEC): Likewise.
12753 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12754 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12755 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12756 * config/sparc/linux.h (ASM_SPEC): Likewise.
12757 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12758 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12760 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12762 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12763 * config/frv/frv.h (LINK_SPEC): Likewise.
12764 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12766 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12768 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12769 * config/frv/frv.h (ASM_SPEC): Likewise.
12770 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12771 * config/m68k/linux.h (ASM_SPEC): Likewise.
12772 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12773 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12774 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12775 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12776 * config/sparc/linux.h (ASM_SPEC): Likewise.
12777 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12778 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12779 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12781 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12784 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12786 (vec_extract_evenodd_help): Ditto.
12787 (vec_extract_evenv4hi): Ditto.
12788 (vec_extract_oddv4hi): Ditto.
12789 (vec_interleave_lowv2si): Ditto.
12790 (vec_interleave_highv2si): Ditto.
12791 (vec_extract_evenv2si): Ditto.
12792 (vec_extract_oddv2si: Ditto.
12793 (vec_pack_trunc_v2si): Ditto.
12795 2011-01-22 Jan Hubicka <jh@suse.cz>
12798 * cgraph.h (cgraph_local_info): New field can_change_signature.
12799 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12800 signature can change.
12801 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12803 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12804 (cgraph_function_versioning): We can not change signature of functions
12805 that don't allow that.
12806 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12807 (lto_input_node): Likewise.
12808 * ipa-inline.c (compute_inline_parameters): Compute
12809 local.can_change_signature.
12810 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12811 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12812 functions that can not change signature.
12813 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12814 init_cumulative_args): Do not use local calling conventions
12815 for functions that can not change signature.
12817 2011-01-22 Jan Hubicka <jh@suse.cz>
12819 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12821 2011-01-26 Richard Guenther <rguenther@suse.de>
12823 PR tree-optimization/47190
12824 * cgraphunit.c (process_common_attributes): New function.
12825 (process_function_and_variable_attributes): Use it.
12827 2011-01-26 Richard Guenther <rguenther@suse.de>
12830 * cgraphbuild.c (record_eh_tables): Record reference to personality
12833 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12836 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12837 non-debug insns from moving up.
12839 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12842 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12843 t-dlldir{,-x} fragment for build and add it to tmake_file.
12844 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12845 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12846 * config/i386/t-dlldir: New file.
12847 (SHLIB_DLLDIR): Define.
12848 * config/i386/t-dlldir-x: New file.
12849 (SHLIB_DLLDIR): Define.
12850 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12851 (SHLIB_INSTALL): Use it.
12853 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12856 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12857 lower bound of the allowed Thumb-2 coprocessor load/store
12858 index range to -256. Add explaining comment.
12860 2011-01-25 Ian Lance Taylor <iant@google.com>
12862 * godump.c (go_define): Improve lexing of macro expansion to only
12863 accept expressions which match Go spec.
12865 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12868 * tree.c (handle_dll_attribute): Handle it.
12869 * doc/extend.texi (@item dllexport): Mention it.
12870 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12872 2011-01-25 Ian Lance Taylor <iant@google.com>
12874 PR tree-optimization/26854
12875 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12876 (decl_jump_unsafe): Move higher in file, with no other change.
12877 (bind): Set has_jump_unsafe_decl if appropriate.
12878 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12879 (check_earlier_gotos): Likewise.
12880 (c_check_switch_jump_warnings): Likewise.
12882 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12884 * doc/invoke.texi (Warning Options): Add missing hyphen.
12885 (-fprofile-dir): Minor grammatical fixes.
12886 (-fbranch-probabilities): Likewise.
12888 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12892 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12894 (no_real_insns_p, schedule_block, set_priorities): Drop special
12895 treatment of boundary debug insns.
12896 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12897 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12898 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12899 (BOUNDARY_DEBUG_INSN_P): Likewise.
12900 (SCHEDULE_DEBUG_INSN_P): Likewise.
12901 * sched-rgn.c (init_ready_list): Drop special treatment of
12902 boundary debug insns.
12903 * final.c (rest_of_clean-state): Clear notes' BB.
12905 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12907 * Makefile.in (LAMBDA_H): Removed.
12908 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12909 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12910 lambda-trans.o, and tree-loop-linear.o.
12911 (lto-symtab.o): Remove dependence on LAMBDA_H.
12912 (tree-loop-linear.o): Remove rule.
12913 (lambda-mat.o): Same.
12914 (lambda-trans.o): Same.
12915 (lambda-code.o): Same.
12916 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12917 (tree-vect-slp.o): Same.
12918 * hwint.h (gcd): Moved here.
12919 (least_common_multiple): Same.
12920 * lambda-code.c: Removed.
12921 * lambda-mat.c: Removed.
12922 * lambda-trans.c: Removed.
12923 * lambda.h: Removed.
12924 * tree-loop-linear.c: Removed.
12925 * lto-symtab.c: Do not include lambda.h.
12926 * omega.c (gcd): Removed.
12927 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12928 * tree-data-ref.c (print_lambda_vector): Moved here.
12929 (lambda_vector_copy): Same.
12930 (lambda_matrix_copy): Same.
12931 (lambda_matrix_id): Same.
12932 (lambda_vector_first_nz): Same.
12933 (lambda_matrix_row_add): Same.
12934 (lambda_matrix_row_exchange): Same.
12935 (lambda_vector_mult_const): Same.
12936 (lambda_vector_negate): Same.
12937 (lambda_matrix_row_negate): Same.
12938 (lambda_vector_equal): Same.
12939 (lambda_matrix_right_hermite): Same.
12940 * tree-data-ref.h: Do not include lambda.h.
12941 (lambda_vector): Moved here.
12942 (lambda_matrix): Same.
12943 (dependence_level): Same.
12944 (lambda_transform_legal_p): Removed declaration.
12945 (lambda_collect_parameters): Same.
12946 (lambda_compute_access_matrices): Same.
12947 (lambda_vector_gcd): Same.
12948 (lambda_vector_new): Same.
12949 (lambda_vector_clear): Same.
12950 (lambda_vector_lexico_pos): Same.
12951 (lambda_vector_zerop): Same.
12952 (lambda_matrix_new): Same.
12953 * tree-flow.h (least_common_multiple): Removed declaration.
12954 * tree-parloops.c (lambda_trans_matrix): Moved here.
12955 (LTM_MATRIX): Same.
12956 (LTM_ROWSIZE): Same.
12957 (LTM_COLSIZE): Same.
12958 (LTM_DENOMINATOR): Same.
12959 (lambda_trans_matrix_new): Same.
12960 (lambda_matrix_vector_mult): Same.
12961 (lambda_transform_legal_p): Same.
12962 * tree-pass.h (pass_linear_transform): Removed declaration.
12963 * tree-ssa-loop.c (tree_linear_transform): Removed.
12964 (gate_tree_linear_transform): Removed.
12965 (pass_linear_transform): Removed.
12966 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12967 flag_loop_interchange.
12969 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12971 PR tree-optimization/47265
12972 PR tree-optimization/47443
12973 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12974 if name still has some uses.
12976 2011-01-25 Martin Jambor <mjambor@suse.cz>
12978 PR tree-optimization/47382
12979 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12980 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12982 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12984 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12985 sjlj_except_unwind_info.
12987 2011-01-25 Richard Guenther <rguenther@suse.de>
12989 PR tree-optimization/47426
12990 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12991 visible functions results escape.
12993 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12996 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12997 (arm_get_frame_offsets): Use it.
12999 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13000 Jakub Jelinek <jakub@redhat.com>
13002 PR tree-optimization/47271
13003 * tree-if-conv.c (bb_postdominates_preds): New.
13004 (if_convertible_bb_p): Call bb_postdominates_preds.
13005 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13006 (predicate_scalar_phi): Call bb_postdominates_preds.
13008 2011-01-25 Nick Clifton <nickc@redhat.com>
13010 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13011 * config/rx/rx.c (rx_function_value): Likewise.
13012 (rx_promote_function_mode): Likewise.
13013 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13014 in order to make it legitimate.
13015 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13016 make sure that the first operand is the same as the result register.
13017 (addsi3_unspec): Delete.
13018 (subdi3): Do not accept immediate operands.
13019 (subdi3_internal): Likewise.
13021 2011-01-25 Jeff Law <law@redhat.com>
13023 PR rtl-optimization/37273
13024 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13025 handle them like argument loads from stack slots. Do not double
13026 count memory for memory constants and argument loads from stack slots.
13028 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13030 PR tree-optimization/47427
13031 PR tree-optimization/47428
13032 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13033 coalesce if the new root var would be TREE_READONLY.
13035 2011-01-25 Richard Guenther <rguenther@suse.de>
13037 PR middle-end/47414
13038 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13039 correct type for TBAA.
13041 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13043 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13044 (close_phi_written_to_memory): Call for_each_index with
13045 dr_indices_valid_in_loop.
13047 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13049 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13050 when it is initialized.
13052 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13054 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13055 call to graphite_find_data_references_in_stmt.
13056 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13057 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13058 call to graphite_find_data_references_in_stmt.
13059 (analyze_drs_in_stmts): Same.
13060 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13061 in which the scalar analysis of indices is performed.
13062 (create_data_ref): Same. Update call to dr_analyze_indices.
13063 (find_data_references_in_stmt): Update call to create_data_ref.
13064 (graphite_find_data_references_in_stmt): Same.
13065 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13067 (create_data_ref): Same.
13068 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13069 call to create_data_ref.
13071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13073 * graphite-sese-to-poly.c (build_poly_scop): Move
13074 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13076 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13078 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13079 VAR_DECL, PARM_DECL, and RESULT_DECL.
13081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13083 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13084 in a reduction PBB.
13085 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13086 that have already been marked as PBB_IS_REDUCTION.
13088 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13090 * graphite-scop-detection.c (same_close_phi_node): New.
13091 (remove_duplicate_close_phi): New.
13092 (make_close_phi_nodes_unique): New.
13093 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13097 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13098 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13099 of both data references to be the same.
13101 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13103 * graphite-dependences.c (build_lexicographical_constraint): Remove
13104 the gdim parameter.
13105 (build_lexicographical_constraint): Adjust call to
13106 ppl_powerset_is_empty.
13107 (dependence_polyhedron): Same.
13108 (graphite_legal_transform_dr): Same.
13109 (graphite_carried_dependence_level_k): Same.
13110 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13112 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13114 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13116 * graphite-sese-to-poly.c
13117 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13118 (close_phi_written_to_memory): New.
13119 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13124 * doc/install.texi: Update the expected version number of PPL to 0.11.
13125 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13126 #if PPL_VERSION_MINOR < 11.
13128 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13130 * graphite-dependences.c: Include graphite-cloog-util.h.
13131 (new_poly_ddr): Inlined into dependence_polyhedron.
13132 (free_poly_ddr): Moved close by new_poly_ddr.
13133 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13134 Early return NULL when ppl_powerset_is_empty returns true.
13135 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13136 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13137 (graphite_legal_transform_dr): Call new_poly_ddr.
13138 (graphite_carried_dependence_level_k): Same.
13139 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13140 (dot_transformed_deps_stmt_1): Removed.
13141 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13142 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13143 (dot_deps_1): Call dot_deps_2.
13144 * Makefile.in (graphite-dependences.o): Add missing dependence on
13145 graphite-cloog-util.h.
13147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13149 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13150 (build_lexicographical_constraint): Same.
13151 (dependence_polyhedron_1): Same.
13152 (graphite_legal_transform_dr): Same.
13153 (graphite_carried_dependence_level_k): Same.
13154 * graphite-ppl.c (ppl_powerset_is_empty): New.
13155 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13156 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13158 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13160 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13161 the "a followed by b" relation and document it.
13163 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13165 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13166 iteration when the bag of constraints is empty.
13168 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13170 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13172 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13174 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13175 nest and two loop depths as parameters.
13176 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13177 lst_perfect_nestify.
13179 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13181 * graphite-dependences.c (print_pddr): Call
13182 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13184 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13186 * graphite-ppl.c (debug_gmp_value): New.
13187 * graphite-ppl.h (debug_gmp_value): Declared.
13189 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13191 * doc/install.texi: Document availability of cloog-0.16.
13193 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13195 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13196 invalid postdominance info.
13198 2011-01-24 Jan Hubicka <jh@suse.cz>
13201 * doc/extend.texi (weak pragma): Drop claim that it must
13202 appear before definition.
13203 * varasm.c (merge_weak, declare_weak): Only sanity check
13204 that DECL is not output at a time it is declared weak.
13206 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13208 * machmode.def: Fixed comments.
13210 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13212 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13214 2011-01-24 Paul Koning <ni1d@arrl.net>
13216 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13219 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13222 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13223 (block_info): Add scanned and prev.
13224 (move_or_delete_vzeroupper_2): Return if the basic block
13225 has been scanned and the upper 128bit state is unchanged
13226 from the last scan.
13227 (move_or_delete_vzeroupper_1): Return true if the exit
13229 (move_or_delete_vzeroupper): Visit basic blocks using the
13230 work-list based algorithm based on vt_find_locations in
13233 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13235 2011-01-24 Nick Clifton <nickc@redhat.com>
13237 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13238 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13239 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13240 then define __v850e1__.
13241 * doc/invoke.texi: Document -mv850es.
13243 2011-01-24 Richard Henderson <rth@redhat.com>
13245 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13246 compound unordered comparisons.
13247 * config/rx/rx.c (rx_split_fp_compare): Remove.
13248 * config/rx/rx-protos.h: Update.
13249 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13250 (cbranchsf4): Don't call rx_split_fp_compare.
13251 (*cbranchsf4): Use rx_split_cbranch.
13252 (*cmpsf): Don't accept "i" constraint.
13253 (*conditional_branch): Only valid after reload.
13254 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13256 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13259 * config/rs6000/altivec.md (vector constant splitters): Add
13260 support for creating vector single precision constants if -mvsx is
13261 used and we would create the constant using Altivec primitives.
13263 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13264 Richard Sandiford <rdsandiford@googlemail.com>
13266 PR rtl-optimization/47166
13267 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13268 mechanism for PRE_MODIFY and POST_MODIFY.
13269 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13272 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13274 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13276 2011-01-22 Jan Hubicka <jh@suse.cz>
13279 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13281 2011-01-22 Jan Hubicka <jh@suse.cz>
13283 PR tree-optimization/43884
13285 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13286 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13288 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13290 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13291 * config/s390/s390.c (s390_register_move_cost,
13292 s390_memory_move_cost): New.
13293 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13295 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13297 PR middle-end/47401
13298 * except.c (sjlj_assign_call_site_values): Move setting the
13299 crtl->uses_eh_lsda flag to ...
13300 (sjlj_mark_call_sites): ... here.
13301 (sjlj_emit_function_enter): Support NULL dispatch label.
13302 (sjlj_build_landing_pads): In a function with no landing pads
13303 that still has must-not-throw regions, generate code to register
13304 a personality function with empty LSDA.
13306 2011-01-21 Richard Henderson <rth@redhat.com>
13308 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13310 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13312 * compare-elim.c: New file.
13313 * Makefile.in (OBJS-common): Add it.
13314 (compare-elim.o): New.
13315 * common.opt (fcompare-elim): New.
13316 * opts.c (default_options_table): Add OPT_fcompare_elim.
13317 * tree-pass.h (pass_compare_elim_after_reload): New.
13318 * passes.c (init_optimization_passes): Add it.
13319 * recog.h: Protect against re-inclusion.
13320 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13321 * doc/invoke.texi (-fcompare-elim): Document it.
13322 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13323 * doc/tm.texi: Rebuild.
13325 2011-01-22 Nick Clifton <nickc@redhat.com>
13327 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13328 rx_split_fp_compare.
13330 2011-01-22 Nick Clifton <nickc@redhat.com>
13332 * config/rx/rx.md (UNSPEC_CONST): New.
13333 (deallocate_and_return): Wrap the amount popped off the stack in
13334 an UNSPEC_CONST in order to stop it being rejected by
13335 -mmax-constant-size.
13336 (pop_and_return): Add a "(return)" rtx.
13337 (call): Drop the immediate operand.
13338 (call_internal): Likewise.
13339 (call_value): Likewise.
13340 (call_value_internal): Likewise.
13341 (sibcall_internal): Likewise.
13342 (sibcall_value_internal): Likewise.
13343 (sibcall): Likewise. Generate an explicit call using
13345 (sibcall_value): Likewise.
13346 (mov<>): FAIL if a constant operand is not legitimate.
13347 (addsi3_unpsec): New pattern.
13349 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13350 (ok_for_max_constant): New function.
13351 (gen_safe_add): New function.
13352 (rx_expand_prologue): Use gen_safe_add.
13353 (rx_expand_epilogue): Likewise.
13354 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13357 2011-01-21 Jeff Law <law@redhat.com>
13359 PR tree-optimization/47053
13360 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13361 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13362 statements are deleted.
13363 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13364 is nonempty, then purge dead edges and cleanup the CFG.
13366 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13369 Temporarily revert:
13370 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13372 * tree-dfa.c (create_var_ann): Mark variable as used.
13374 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13376 PR middle-end/45566
13377 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13378 notes from other section in hot/cold partitioning even if
13379 last_action is -3. Increment call_site_base.
13381 PR rtl-optimization/47366
13382 * fwprop.c (forward_propagate_into): Return bool. If
13383 any changes are made, -fnon-call-exceptions is used and
13384 REG_EH_REGION note is present, call purge_dead_edges
13385 and return true if it purged anything.
13386 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13387 any EH edges were purged.
13389 2011-01-21 Jeff Law <law@redhat.com>
13391 PR rtl-optimization/41619
13392 * caller-save.c (setup_save_areas): Break out code to determine
13393 which hard regs are live across calls by examining the reload chains
13394 so that it is always used.
13395 Eliminate code which checked REG_N_CALLS_CROSSED.
13397 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13399 PR tree-optimization/47355
13400 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13401 NOP has non-debug uses beyond PHIs in new_bb.
13403 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13406 * cfgexpand.c (account_used_vars_for_block): Only account vars
13407 that are annotated as used.
13408 (estimated_stack_frame_size): Don't set TREE_USED.
13409 * tree-dfa.c (create_var_ann): Mark variable as used.
13411 2011-01-21 Richard Guenther <rguenther@suse.de>
13413 PR middle-end/47395
13414 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13416 2011-01-21 Richard Guenther <rguenther@suse.de>
13418 PR tree-optimization/47365
13419 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13420 (vn_reference_lookup_pieces): Adjust.
13421 (vn_reference_lookup): Likewise.
13422 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13423 (vn_reference_lookup_3): Only look through kills if in
13424 VN_WALKREWRITE mode.
13425 (vn_reference_lookup_pieces): Adjust.
13426 (vn_reference_lookup): Likewise.
13427 (visit_reference_op_load): Likewise.
13428 (visit_reference_op_store): Likewise.
13429 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13430 (compute_avail): Likewise.
13431 (eliminate): Likewise.
13433 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13435 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13436 DECL_IGNORED_P non-reg vars if they are used.
13438 PR tree-optimization/47391
13439 * varpool.c (const_value_known_p): Return false if
13442 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13445 * config/i386/i386.c (ix86_local_alignment): Handle
13446 case for va_list_type_node is nil.
13447 (ix86_canonical_va_list_type): Likewise.
13449 2011-01-21 Alan Modra <amodra@gmail.com>
13451 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13452 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13454 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13456 * config/arm/arm.md (define_attr type): Rename f_load
13457 and f_store to f_fpa_load and f_fpa_store. Update.
13458 (write_conflict): Deal with rename fallout.
13459 (*push_fp_multi): Likewise.
13460 * config/arm/fpa.md (f_load): Use f_fpa_load.
13461 (f_store): Use f_fpa_store.
13462 (*movsf_fpa): Likewise.
13463 (*movdf_fpa): Likewise.
13464 (*movxf_fpa): Likewise.
13465 (*thumb2_movsf_fpa): Likewise.
13466 (*thumb2_movdf_fpa): Likewise.
13467 (*thumb2_movxf_fpa): Likewise.
13468 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13469 f_loadd and f_stored.
13470 (*thumb2_movdi_vfp): Likewise.
13471 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13472 (*thumb2_movsi_vfp): Likewise.
13473 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13474 Use f_loads instead of f_load.
13475 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13477 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13479 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13480 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13481 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13482 (xtensa_mode_dependent_address_p): New function.
13483 (constantpool_address_p): Make static. Change return type to bool.
13484 Change argument type to const_rtx. Use CONST_INT_P predicate.
13486 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13489 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13491 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13494 * cfgexpand.c (expand_debug_expr): Instead of generating
13495 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13498 2011-01-20 Richard Guenther <rguenther@suse.de>
13500 PR middle-end/47370
13501 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13502 the pointer operand of MEM_REFs.
13504 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13506 PR tree-optimization/46130
13507 * ipa-split.c (consider_split): If return_bb contains non-virtual
13508 PHIs other than for retval or if split_function would not adjust it,
13511 2011-01-20 Richard Guenther <rguenther@suse.de>
13513 PR tree-optimization/47167
13514 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13515 Revert previous change, only avoid enumeral type changes.
13517 2011-01-19 Mike Stump <mikestump@comcast.net>
13519 * doc/tm.texi.in (BRANCH_COST): Englishify.
13520 * doc/tm.texi (BRANCH_COST): Likewise.
13522 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13525 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13526 (gen_scheduled_generic_parms_dies): New functions.
13527 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13528 generation for the end of CU compilation.
13529 (dwarf2out_finish): Generate template parameters DIEs here.
13531 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13534 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13535 debug bind stmt on merge edges.
13537 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13541 * function.c (instantiate_expr): Instantiate incoming rtl of
13542 implicit arguments, and recurse on VALUE_EXPRs.
13543 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13544 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13546 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13548 * c-parser.c (c_parser_for_statement): Initialize
13549 collection_expression.
13551 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13553 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13555 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13557 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13558 (LINK_SHLIB_SPEC): Don't use %(link_path).
13559 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13561 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13563 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13564 (NO_SHARED_LIB_SUPPORT): Remove.
13565 (LINK_SHLIB_SPEC): Remove one conditional definition.
13567 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13569 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13571 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13572 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13573 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13574 %{call_shared} and conditionals on these options not being passed.
13575 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13578 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13580 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13583 * ipa-split.c: Spelling fixes.
13585 2011-01-19 Richard Henderson <rth@redhat.com>
13587 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13588 (*mulsi3): Likewise.
13590 * longlong.h [__mn10300__] (count_leading_zeros): New.
13591 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13592 [__mn10300__] (add_ssaaaa, subddmmss): New.
13593 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13594 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13596 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13598 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13600 2011-01-19 Richard Henderson <rth@redhat.com>
13602 * config/mn10300/mn10300.md (addsi3_flags): New.
13603 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13604 (subsi3_flags, subc_internal, subdi3): New.
13605 (subdi3_internal, *subdi3_degenerate): New.
13606 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13608 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13609 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13610 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13611 * config/mn10300/mn10300-protos.h: Update.
13612 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13613 (return_ret): Likewise. Rename from return_internal_regs.
13614 (return_internal): Remove.
13616 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13617 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13618 (mn10300_legitimate_constant_p): Likewise.
13619 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13620 (mn10300_frame_size): New.
13621 (mn10300_expand_prologue): Use it.
13622 (mn10300_expand_epilogue): Likewise.
13623 (mn10300_initial_offset): Likewise.
13624 * config/mn10300/mn10300-protos.h: Update.
13625 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13626 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13627 (prologue, epilogue, return_internal): Tidy output code.
13628 (mn10300_store_multiple_operation, return): Likewise.
13629 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13630 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13631 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13632 (load_pic, am33_load_pic): New.
13633 (mn10300_load_pic0, mn10300_load_pic1): New.
13635 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13636 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13637 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13638 (cc_flags_for_mode, cc_flags_for_code): New.
13639 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13640 overflow flag is not valid. Validate that the flags we need
13641 for the comparison are valid.
13642 (mn10300_output_cmp): Remove.
13643 (mn10300_output_add): New.
13644 (mn10300_select_cc_mode): Use cc_flags_for_code.
13645 (mn10300_split_cbranch): New.
13646 (mn10300_match_ccmode): New.
13647 (mn10300_split_and_operand_count): New.
13648 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13650 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13651 (addsi3): ... here. Use mn10300_output_add.
13652 (*addsi3_flags): New.
13653 (*am33_subsi3, *mn10300_subsi3): Merge...
13654 (subsi3): ... here. Use attribute isa.
13655 (*subsi3_flags): New.
13656 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13658 (*am33_andsi3, *mn10300_andsi3): Merge...
13659 (andsi3): ... here.
13660 (*andsi3_flags): New.
13661 (andsi3 splitters): New.
13662 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13663 (iorsi3): ... here.
13664 (*iorsi3_flags): New.
13665 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13666 (xorsi3): ... here.
13667 (*xorsi3_flags): New.
13668 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13669 (one_cmplsi2): ... here.
13670 (*one_cmplsi2_flags): New.
13671 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13672 instead of "dax" in constraints. Use mn10300_split_cbranch.
13673 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13674 use matching constraints to eliminate a self-comparison.
13675 (*integer_conditional_branch): Rename from integer_conditional_branch.
13676 Use int_mode_flags to match CC_REG.
13677 (*cbranchsi4_btst, *btstsi): New.
13678 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13679 mn10300_split_cbranch.
13680 (*am33_cmpsf): Rename from am33_cmpsf.
13681 (*float_conditional_branch): Rename from float_conditional_branch.
13682 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13683 (zero_extendqisi2): ... here.
13684 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13685 (zero_extendhisi2): ... here.
13686 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13687 (extendqisi2): ... here.
13688 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13689 (extendhisi2): ... here.
13690 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13691 (ashlsi3): ... here.
13692 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13693 (lshrsi3): ... here.
13694 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13695 (ashrsi3): ... here.
13696 (consecutive add peephole): Remove.
13697 * config/mn10300/predicates.md (label_ref_operand): New.
13698 (int_mode_flags): New.
13699 (CCZN_comparison_operator): New.
13701 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13702 (throughput_42_latency_43): New reservation.
13703 (mulsidi3, umulsidi3): New expanders.
13704 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13705 the MDR register to allocation; separately allocate the low and
13706 high parts of the DImode result.
13707 (umulsidi3_internal): Similarly.
13708 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13709 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13710 (udivsi3, umodsi3): Remove.
13711 (udivmodsi4, divmodsi4): New expanders.
13712 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13713 (*divmodsi4): Simiarly.
13714 (ext_internal): New.
13716 * config/mn10300/constraints.md ("z"): New constraint.
13717 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13718 (FIXED_REGISTERS): Don't fix MDR.
13719 (CALL_USED_REGSITERS): Reformat nicely.
13720 (REG_ALLOC_ORDER): Add MDR.
13721 (enum regclass): Add MDR_REGS.
13722 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13723 (IRA_COVER_CLASSES): Add MDR_REGS.
13724 (REGNO_REG_CLASS): Handle MDR_REG.
13725 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13726 (mn10300_register_move_cost): Likewise.
13727 * config/mn10300/mn10300.md (MDR_REG): New.
13728 (*movsi_internal): Handle moves to/from MDR_REGS.
13730 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13732 (mn10300_secondary_reload): Tidy combination reload classes.
13733 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13734 addresses for AM33. Allow symbolic offsets for reg+imm.
13735 (mn10300_regno_in_class_p): New.
13736 (mn10300_legitimize_reload_address): New.
13737 * config/mn10300/mn10300.h (enum reg_class): Remove
13738 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13739 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13740 SP_OR_GENERAL_REGS.
13741 (REG_CLASS_NAMES): Update to match.
13742 (REG_CLASS_CONTENTS): Likewise.
13743 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13744 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13745 (REGNO_IN_RANGE_P): Remove.
13746 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13747 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13748 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13749 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13750 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13751 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13752 (REGNO_GENERAL_P): New.
13753 (HAVE_POST_MODIFY_DISP): New.
13754 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13755 (LEGITIMIZE_RELOAD_ADDRESS): New.
13756 * config/mn10300/mn10300-protos.h: Update.
13758 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13759 DATA_REGS for AM33 stack-pointer destination.
13760 (mn10300_preferred_output_reload_class): Likewise.
13761 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13762 into a form appropriate for ...
13763 (TARGET_SECONDARY_RELOAD): New.
13764 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13765 * config/mn10300/mn10300-protos.h: Update.
13766 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13767 reload_insi; use the "A" constraint for the scratch; handle AM33
13768 moves of sp to non-address registers.
13770 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13771 (*movqi_internal): ... here.
13772 (*am33_movhi, *mn10300_movhi): Merge into...
13773 (*movhi_internal): ... here.
13774 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13775 as the source/destination of moves from/to SP.
13776 (movsf): Only allow for AM33-2.
13777 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13778 any integer constant constraint. Only allow for AM33-2. Tidy
13779 all of the alternative outputs.
13780 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13781 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13783 (udivsi3, umodsi3): New patterns for MN103 only.
13785 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13787 * doc/tm.texi.in: Spell out that a lack of register class unions
13789 * doc/tm.texi: Regenerate.
13791 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13793 PR rtl-optimization/47337
13794 * dce.c (check_argument_store): New function.
13795 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13797 PR tree-optimization/47290
13798 * tree-eh.c (infinite_empty_loop_p): New function.
13799 (cleanup_empty_eh): Use it.
13801 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13804 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13805 (a64_expand_widen_sum): Ditto.
13806 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13807 (vec_extract_evenodd_help): Ditto.
13808 (vec_extract_evenv4hi): Ditto.
13809 (vec_extract_oddv4hi): Ditto.
13810 (vec_extract_evenv2si): Ditto.
13811 (vec_extract_oddv2si): Ditto.
13812 (vec_extract_evenv2sf): Ditto.
13813 (vec_extract_oddv2sf): Ditto.
13814 (vec_pack_trunc_v4hi: Ditto.
13815 (vec_pack_trunc_v2si): Ditto.
13816 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13817 (vec_interleave_highv8qi): Ditto.
13819 (vec_extract_oddv8qi): Ditto.
13820 (vec_interleave_lowv4hi): Ditto.
13821 (vec_interleave_highv4hi): Ditto.
13822 (vec_interleave_lowv2si): Ditto.
13823 (vec_interleave_highv2si): Ditto.
13825 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13827 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13828 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13829 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13830 (pa_c_mode_for_suffix): New.
13831 (TARGET_EXPAND_BUILTIN): Define.
13832 (TARGET_C_MODE_FOR_SUFFIX): Define.
13833 (pa_builtins): Define.
13834 (pa_init_builtins): Register __float128 type and init new support
13836 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13837 * config/pa/quadlib.c (_U_Qfcopysign): New.
13839 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13841 PR middle-end/46894
13842 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13843 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13846 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13848 PR tree-optimization/47179
13849 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13850 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13852 2011-01-18 Richard Guenther <rguenther@suse.de>
13854 PR rtl-optimization/47216
13855 * emit-rtl.c: Include tree-flow.h.
13856 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13857 of replicating it with different semantics.
13858 * Makefile.in (emit-rtl.o): Adjust.
13860 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13862 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13863 (cortex_a9_dp): Handle neon types correctly.
13865 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13867 PR rtl-optimization/47299
13868 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13869 subtarget. Use normal multiplication if both operands are constants.
13870 * expmed.c (expand_widening_mult): Don't try to optimize constant
13871 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13874 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13876 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13877 spacing after 'e.g.', typos, comma, hyphenation.
13879 2011-01-17 Richard Henderson <rth@redhat.com>
13881 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13882 (rx_restricted_mem_operand): New.
13883 (rx_shift_operand): Use register_operand.
13884 (rx_source_operand, rx_compare_operand): Likewise.
13885 * config/rx/rx.md (addsi3_flags): New expander.
13886 (adddi3): Rewrite as expander.
13887 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13888 (subsi3_flags): New expander.
13889 (subdi3): Rewrite as expander.
13890 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13892 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13893 (rx_init_builtins): Remove sat builtin.
13894 (rx_expand_builtin): Likewise.
13895 * config/rx/rx.md (ssaddsi3): New.
13896 (*sat): Rename from sat. Represent the CC_REG input.
13898 * config/rx/predicates.md (rshift_operator): New.
13899 * config/rx/rx.c (rx_expand_insv): Remove.
13900 * config/rx/rx-protos.h: Update.
13901 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13902 operand to the canonical position.
13903 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13904 (*bitclr, *bitclr_in_memory): Similarly.
13905 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13906 (insv): Retain the zero_extract in the expansion.
13908 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13909 (bswaphi2, bitinvert, revw): Likewise.
13911 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13912 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13913 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13914 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13915 (bitset, bitset_in_memory): Likewise.
13916 (bitinvert, bitinvert_in_memory): Likewise.
13917 (bitclr, bitclr_in_memory): Likewise.
13918 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13919 (rx_strend, rx_cmpstrn): Likewise.
13920 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13921 (bitop peep2 patterns): Remove.
13923 * config/rx/rx.c (rx_match_ccmode): New.
13924 * config/rx/rx-protos.h: Update.
13925 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13926 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13927 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13928 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13929 (fix_truncsfsi2, floatsisf2): Likewise.
13930 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13931 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13932 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13933 (*subsi3_flags, *xorsi3_flags): New.
13935 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13937 * config/rx/rx.c (rx_print_operand): Remove workaround for
13938 unsplit comparison operations.
13940 * config/rx/rx.md (movsicc): Split after reload.
13941 (*movsicc): Merge *movsieq and *movsine via match_operator.
13942 (*stcc): New pattern.
13944 * config/rx/rx.c (rx_float_compare_mode): Remove.
13945 * config/rx/rx.h (rx_float_compare_mode): Remove.
13946 * config/rx/rx.md (cstoresi4): Split after reload.
13947 (*sccc): New pattern.
13949 * config/rx/predicates.md (label_ref_operand): New.
13950 (rx_z_comparison_operator): New.
13951 (rx_zs_comparison_operator): New.
13952 (rx_fp_comparison_operator): New.
13953 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13954 Validate that the flags are set properly for the comparison.
13955 (rx_gen_cond_branch_template): Remove.
13956 (rx_cc_modes_compatible): Remove.
13957 (mode_from_flags): New.
13958 (flags_from_code): Rename from flags_needed_for_conditional.
13959 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13960 (rx_select_cc_mode): Likewise.
13961 (rx_split_fp_compare): New.
13962 (rx_split_cbranch): New.
13963 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13964 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13965 (*cbranchsf4): Similarly.
13966 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13967 match_operator and rx_split_cbranch.
13968 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13969 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13970 (*cmpsi): Rename from cmpsi.
13971 (*tstsi): Rename from tstsi.
13972 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13973 (*conditional_branch): Rename from conditional_branch.
13974 (*reveresed_conditional_branch): Remove.
13975 (b<code>): Remove expander.
13976 * config/rx/rx-protos.h: Update.
13978 * config/rx/rx.c (rx_compare_redundant): Remove.
13979 * config/rx/rx.md (cmpsi): Don't use it.
13980 * config/rx/rx-protos.h: Update.
13982 * config/rx/rx-modes.def (CC_F): New mode.
13983 * config/rx/rx.c (rx_select_cc_mode): New.
13984 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13985 * config/rx/rx-protos.h: Update.
13987 2011-01-17 Richard Henderson <rth@redhat.com>
13989 * except.c (dump_eh_tree): Fix stray ; after for statement.
13991 2011-01-17 Richard Guenther <rguenther@suse.de>
13993 PR tree-optimization/47313
13994 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13995 handling before copying the body. Properly deal with
13996 by-reference result in SSA form.
13998 2011-01-17 Ian Lance Taylor <iant@google.com>
14001 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14002 (struct_value_alias_set): Don't define.
14003 (sparc_option_override): Don't set sparc_sr_alias_set and
14004 struct_value_alias_set.
14005 (save_or_restore_regs): Use gen_frame_mem rather than calling
14007 (sparc_struct_value_rtx): Likewise.
14009 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14012 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14013 (_mm_maskstore_pd): Likewise.
14014 (_mm_maskload_ps): Likewise.
14015 (_mm_maskstore_ps): Likewise.
14016 (_mm256_maskload_pd): Change mask to __m256i.
14017 (_mm256_maskstore_pd): Likewise.
14018 (_mm256_maskload_ps): Likewise.
14019 (_mm256_maskstore_ps): Likewise.
14021 * config/i386/i386-builtin-types.def: Updated.
14022 (ix86_expand_special_args_builtin): Likewise.
14024 * config/i386/i386.c (bdesc_special_args): Update
14025 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14026 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14027 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14028 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14030 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14031 Use <avxpermvecmode> on mask register.
14032 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14034 2011-01-17 Olivier Hainque <hainque@adacore.com>
14035 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14036 Eric Botcazou <ebotcazou@adacore.com>
14039 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14040 if <= USHRT_MAX in 32-bit mode.
14042 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14044 * doc/install.texi (Configuration, Specific): Wrap long
14045 lines in examples. Allow line wrapping in long options
14046 and URLs where beneficial for PDF output.
14048 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14050 * config/mips/mips.c (mips_classify_symbol): Don't return
14051 SYMBOL_PC_RELATIVE for nonlocal labels.
14053 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14055 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14057 2011-01-15 Jan Hubicka <jh@suse.cz>
14059 PR tree-optimization/47276
14060 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14061 declarations as needed.
14063 2011-01-15 Martin Jambor <mjambor@suse.cz>
14065 * common.opt (fdevirtualize): New flag.
14066 * doc/invoke.texi (Option Summary): Document it.
14067 * opts.c (default_options_table): Add devirtualize flag.
14068 * ipa-prop.c (detect_type_change): Return immediately if
14069 devirtualize flag is not set.
14070 (detect_type_change_ssa): Likewise.
14071 (compute_known_type_jump_func): Likewise.
14072 (ipa_analyze_virtual_call_uses): Likewise.
14074 2011-01-14 Martin Jambor <mjambor@suse.cz>
14076 PR tree-optimization/45934
14077 PR tree-optimization/46302
14078 * ipa-prop.c (type_change_info): New type.
14079 (stmt_may_be_vtbl_ptr_store): New function.
14080 (check_stmt_for_type_change): Likewise.
14081 (detect_type_change): Likewise.
14082 (detect_type_change_ssa): Likewise.
14083 (compute_complex_assign_jump_func): Check for dynamic type change.
14084 (compute_complex_ancestor_jump_func): Likewise.
14085 (compute_known_type_jump_func): Likewise.
14086 (compute_scalar_jump_functions): Likewise.
14087 (ipa_analyze_virtual_call_uses): Likewise.
14088 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14092 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14093 * config/i386/i386.opt (msse5): New Alias.
14095 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14097 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14098 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14099 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14100 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14102 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14104 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14106 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14107 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14108 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14109 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14111 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14113 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14115 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14117 2011-01-14 Mike Stump <mikestump@comcast.net>
14119 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14120 * config/fr30/fr30.md: Likweise
14121 (movsi_push): Likewise.
14122 (movsi_pop): Likewise.
14123 (enter_func): Likewise.
14124 * config/moxie/moxie.md (movsi_push): Likewise.
14125 (movsi_pop): Likewise.
14127 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14129 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14130 %{no_archive} %{exact_version}.
14131 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14132 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14133 %{no_archive} %{exact_version}.
14134 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14135 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14136 * config/mips/vxworks.h: Likewise.
14138 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14140 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14142 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14144 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14145 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14147 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14149 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14152 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14154 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14156 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14157 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14159 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14160 Don't handle -shlib.
14162 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14164 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14165 (CC1_SPEC): Don't handle -profile.
14167 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14169 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14170 * config/mips/mips.h (CC1_SPEC): Likewise.
14172 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14174 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14175 * config/mips/mips.h (CC1_SPEC): Likewise.
14177 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14179 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14180 * config/m32r/linux.h (LINK_SPEC): Likewise.
14181 * config/mips/linux.h (LINK_SPEC): Likewise.
14182 * config/mips/linux64.h (LINK_SPEC): Likewise.
14183 * config/sparc/linux.h (LINK_SPEC): Likewise.
14184 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14185 LINK_SPEC): Likewise.
14186 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14188 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14190 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14192 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14194 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14196 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14197 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14199 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14201 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14203 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14205 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14206 supports -Bstatic/-Bdynamic.
14207 * configure: Regenerate.
14209 2011-01-14 Jan Hubicka <jh@suse.cz>
14210 Jack Howarth <howarth@bromo.med.uc.edu>
14213 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14214 when checking debug_info_level. Test write_symbols instead of
14215 debug_hooks->var_location when setting flag_var_tracking_uninit.
14217 2011-01-14 Richard Guenther <rguenther@suse.de>
14219 PR tree-optimization/47179
14220 * target.def (ref_may_alias_errno): New target hook.
14221 * targhooks.h (default_ref_may_alias_errno): Declare.
14222 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14223 (default_ref_may_alias_errno): New function.
14224 * target.h (struct ao_ref_s): Declare.
14225 * tree-ssa-alias.c: Include target.h.
14226 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14227 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14228 (targhooks.o): Likewise.
14229 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14230 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14232 2011-01-14 Richard Guenther <rguenther@suse.de>
14234 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14236 2011-01-14 Richard Guenther <rguenther@suse.de>
14238 PR tree-optimization/47280
14239 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14240 return CFG changes.
14241 (tree_ssa_forward_propagate_single_use_vars): Deal with
14242 CFG changes from associate_plusminus.
14244 2011-01-14 Richard Guenther <rguenther@suse.de>
14246 PR middle-end/47281
14248 2011-01-11 Richard Guenther <rguenther@suse.de>
14250 PR tree-optimization/46076
14251 * tree-ssa.c (useless_type_conversion_p): Conversions from
14252 unprototyped to empty argument list function types are useless.
14254 2011-01-14 Richard Guenther <rguenther@suse.de>
14256 PR tree-optimization/47286
14257 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14259 2011-01-14 Martin Jambor <mjambor@suse.cz>
14261 PR middle-end/46823
14262 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14264 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14266 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14267 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14268 * config/xtensa/xtensa.c (xtensa_libcall_value,
14269 xtensa_function_value_regno_p): New functions.
14270 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14272 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14275 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14277 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14278 New function prototype.
14279 * config/i386/winnt.c (i386_pe_assemble_visibility):
14280 Warn only if attribute was specified by user.
14282 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14285 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14287 (floatunsdidf2_fcfidu): Ditto.
14289 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14291 * config/s390/s390.c (print_operand_address): Replace 'error' with
14292 'output_operand_lossage'.
14293 (print_operand): Likewise.
14295 2011-01-13 Jeff Law <law@redhat.com>
14297 PR rtl-optimization/39077
14298 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14299 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14300 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14301 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14302 * gcse.c (prune_insertions_deletions): New function.
14303 (compute_pre_data): Use it.
14305 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14308 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14310 (prune_unused_types_mark): Use it.
14312 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14314 PR rtl-optimization/45352
14315 * sel-sched.c: Update copyright years.
14316 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14317 in the advancing loop when we have issued issue_rate insns.
14319 2011-01-12 Richard Henderson <rth@redhat.com>
14321 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14322 (TARGET_MD_ASM_CLOBBERS): New.
14324 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14325 (TARGET_DELEGITIMIZE_ADDRESS): New.
14327 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14328 (clzsi2, *bsch): New patterns.
14330 * config/mn10300/mn10300.md (INT): New mode iterator.
14331 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14333 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14334 flag_split_wide_types.
14336 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14337 (mn10300_trampoline_init): Rewrite without a template, an immediate
14338 load and a direct branch.
14339 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14341 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14343 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14344 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14345 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14346 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14348 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14351 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14354 2011-01-12 Jan Hubicka <jh@suse.cz>
14357 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14358 (PLUGIN_COND_CLOSE): New macro.
14359 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14361 2011-01-12 Richard Guenther <rguenther@suse.de>
14364 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14365 register variables in a MEM_REF.
14367 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14369 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14370 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14371 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14372 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14373 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14374 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14375 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14376 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14377 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14378 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14379 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14380 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14381 * config/gnu-user.h: New. Copied from linux.h.
14382 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14383 GNU_USER_TARGET_STARTFILE_SPEC.
14384 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14385 GNU_USER_TARGET_ENDFILE_SPEC.
14386 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14387 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14388 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14389 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14390 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14391 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14392 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14393 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14394 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14395 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14396 * config/arm/linux-eabi.h (CC1_SPEC): Use
14397 GNU_USER_TARGET_CC1_SPEC.
14398 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14399 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14400 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14401 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14402 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14403 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14404 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14405 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14407 2011-01-12 Richard Guenther <rguenther@suse.de>
14410 * doc/invoke.texi (ffast-math): Document it is turned on
14413 2011-01-12 Jan Hubicka <jh@suse.cz>
14415 PR tree-optimization/47233
14416 * opts.c (common_handle_option): Disable ipa-reference with profile
14419 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14421 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14424 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14426 * c-parser.c (c_lex_one_token): Updated and reindented some
14427 comments. No changes in code.
14429 2011-01-11 Ian Lance Taylor <iant@google.com>
14431 * godump.c (go_output_var): Don't output the variable if there is
14432 already a type with the same name.
14434 2011-01-11 Ian Lance Taylor <iant@google.com>
14436 * godump.c (go_format_type): Don't generate float80.
14438 2011-01-11 Richard Henderson <rth@redhat.com>
14440 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14441 declaration. Rewrite for both speed and size.
14442 (mn10300_address_cost_1): Remove.
14443 (mn10300_register_move_cost): New.
14444 (mn10300_memory_move_cost): New.
14445 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14446 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14447 extensions, shifts, BSWAP, CLZ.
14448 (mn10300_wide_const_load_uses_clr): Remove.
14449 (TARGET_REGISTER_MOVE_COST): New.
14450 (TARGET_MEMORY_MOVE_COST): New.
14451 * config/mn10300/mn10300-protos.h: Update.
14452 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14454 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14455 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14456 * config/mn10300/mn10300-protos.h: Update.
14457 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14458 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14459 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14460 (*test_int_bitfield, *test_byte_bitfield): Remove.
14461 (*bit_test, *subreg_bit_test): Remove.
14462 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14464 * config/mn10300/constraints.md ("c"): Rename from "A".
14465 ("A", "D"): New constraint letters.
14466 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14467 (fmssf4, fnmasf4, fnmssf4): Likewise.
14469 * config/mn10300/mn10300.md (isa): New attribute.
14470 (enabled): New attribute.
14472 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14473 (abssf2, negsf2): Define only for hardware fp.
14474 (sqrtsf2): Reformat.
14475 (addsf3, subsf3, mulsf3): Merge expander and insn.
14477 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14478 (DEBUGGER_AUTO_OFFSET): Remove.
14479 (DEBUGGER_ARG_OFFSET): Remove.
14481 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14482 Emit register stores with the same offsets as the hardware.
14483 (mn10300_store_multiple_operation): Don't check that the register
14484 save offsets are monotonic.
14485 * config/mn10300/mn10300-protos.h: Update.
14487 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14489 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14490 in terms of the value on the stack, not the MDR register.
14492 2011-01-11 Jan Hubicka <jh@suse.cz>
14496 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14497 (symbol_alias_set_destroy, symbol_alias_set_contains,
14498 propagate_aliases_backward): Declare.
14499 * lto-streamer-out.c (struct sets): New sturcture.
14500 (trivally_defined_alias): New function.
14501 (output_alias_pair_p): Rewrite.
14502 (output_unreferenced_globals): Fix output of alias pairs.
14503 (produce_symtab): Likewise.
14504 * ipa.c (function_and_variable_visibility): Set weak alias destination
14506 * varasm.c (symbol_alias_set_t): Remove.
14507 (symbol_alias_set_destroy): Export.
14508 (propagate_aliases_forward, propagate_aliases_backward): New functions
14510 (compute_visible_aliases): ... this one; remove.
14511 (trivially_visible_alias): New
14512 (trivially_defined_alias): New.
14513 (remove_unreachable_alias_pairs): Rewrite.
14514 (finish_aliases_1): Reorganize code checking if alias is defined.
14515 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14518 2011-01-11 Richard Guenther <rguenther@suse.de>
14520 PR tree-optimization/46076
14521 * tree-ssa.c (useless_type_conversion_p): Conversions from
14522 unprototyped to empty argument list function types are useless.
14524 2011-01-11 Richard Guenther <rguenther@suse.de>
14526 PR middle-end/45235
14527 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14528 volatile MEMs as MEM_READONLY_P.
14530 2011-01-11 Richard Guenther <rguenther@suse.de>
14532 PR tree-optimization/47239
14533 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14535 2011-01-11 Jeff Law <law@redhat.com>
14537 PR tree-optimization/47086
14538 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14539 IVs from statements that might throw.
14541 2011-01-10 Jan Hubicka <jh@suse.cz>
14544 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14546 2011-01-10 Jan Hubicka <jh@suse.cz>
14549 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14550 when correcting profile.
14552 2011-01-10 Jan Hubicka <jh@suse.cz>
14555 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14556 DECL_FINI_PRIORITY.
14557 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14558 Restore DECL_FINI_PRIORITY.
14560 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14562 * doc/gimple.texi: Fix quoting of multi-word return values in
14563 @deftypefn statements. Ensure presence of return value. Wrap
14564 overlong @deftypefn lines.
14565 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14566 descriptions of removed functions.
14567 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14568 of multi-word return value in @deftypefn statement.
14570 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14572 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14573 (Conditional Expressions, Logical Operators)
14574 (Statement and operand traversals): Do not indent smallexample
14575 code. Fix duplicate function argument in example.
14577 2011-01-10 Jeff Law <law@redhat.com>
14579 PR tree-optimization/47141
14580 * ipa-split.c (split_function): Handle case where we are
14581 returning a value and the return block has a virtual operand phi.
14583 2011-01-10 Jan Hubicka <jh@suse.cz>
14585 PR tree-optimization/47234
14586 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14587 (pass_feedback_split_functions): Declare.
14588 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14590 * ipa-split.c (gate_split_functions): Update comments; disable
14591 split-functions for profile_arc_flag and branch_probabilities.
14592 (gate_feedback_split_functions): New function.
14593 (execute_feedback_split_functions): New function.
14594 (pass_feedback_split_functions): New global var.
14596 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14599 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14600 calling gimple_call_set_cannot_inline.
14602 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14604 * config/darwin-sections.def: Remove unused section.
14606 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14609 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14611 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14614 * c-parser.c (c_parser_declaration_or_fndef): Improved
14617 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14619 * config/i386/winnt.c (i386_pe_start_function): Make sure
14620 to switch back to function's section.
14622 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14626 * plugin.c: Move include of dlfcn.h from here...
14627 * system.h: ... to here.
14629 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14631 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14633 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14634 two extra empty pages in PDF output.
14636 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14639 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14640 for error recovery purposes behave as if it was not specified so
14641 that the default type is usd.
14643 2011-01-07 Jan Hubicka <jh@suse.cz>
14645 PR tree-optmization/46469
14646 * ipa.c (function_and_variable_visibility): Clear needed flags on
14647 nodes with external decls; handle weakrefs merging correctly.
14649 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14651 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14654 2011-01-07 Jan Hubicka <jh@suse.cz>
14656 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14657 and no longer claim that gold is required for linker plugin.
14658 * configure: Regenerate.
14659 * gcc.c (PLUGIN_COND): New macro.
14660 (LINK_COMMAND_SPEC): Use it.
14661 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14662 * config.in (HAVE_LTO_PLUGIN): New.
14663 * configure.ac (--with-lto-plugin): New parameter; autodetect
14666 2011-01-07 Jan Hubicka <jh@suse.cz>
14668 PR tree-optimization/46367
14669 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14670 when we can update original.
14671 (cgraph_mark_inline_edge): Sanity check.
14672 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14674 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14676 * config/spu/spu.h (ASM_COMMENT_START): Define.
14678 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14681 * gcc.c (%>S): New.
14682 (SWITCH_KEEP_FOR_GCC): Likewise.
14683 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14684 (do_spec_1): Handle "%>".
14686 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14688 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14691 * config/i386/i386.c (ix86_delegitimize_address): If
14692 simplify_gen_subreg fails, return orig_x.
14695 * value-prof.c (gimple_stringop_fixed_value): Handle
14696 lhs of the call properly.
14698 2011-01-07 Jan Hubicka <jh@suse.cz>
14701 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14703 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14705 * target.def (function_switched_text_sections): New hook.
14706 * doc/tm.texi: Regenerated.
14707 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14708 * final.c (default_function_switched_text_sections): New.
14709 (final_scan_insn): Call function_switched_text_sections when a
14710 mid-function section change occurs.
14711 * output.h (default_function_switched_text_sections): Declare.
14712 * config/darwin-protos.h (darwin_function_switched_text_sections):
14714 * config/darwin.c (darwin_function_switched_text_sections): New.
14715 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14717 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14719 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14720 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14721 the secondary code fragment when outputting for DWARF == 2.
14723 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14725 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14726 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14728 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14729 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14731 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14734 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14735 when it is not empty.
14737 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14740 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14741 (case ${target}): Add btver1.
14742 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14743 -march=native recognize btver1 processors.
14744 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14745 btver1 def_and_undef
14746 * config/i386/i386.c (struct processor_costs btver1_cost): New
14748 (m_BTVER1): New definition.
14749 (m_AMD_MULTIPLE): Includes m_BTVER1.
14750 (initial_ix86_tune_features): Add btver1 tune.
14751 (processor_target_table): Add btver1 entry.
14752 (static const char *const cpu_names): Add btver1 entry.
14753 (software_prefetching_beneficial_p): Add btver1.
14754 (ix86_option_override_internal): Add btver1 instruction sets.
14755 (ix86_issue_rate): Add btver1.
14756 (ix86_adjust_cost): Add btver1.
14757 * config/i386/i386.h (TARGET_BTVER1): New definition.
14758 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14759 (enum processor_type): Add PROCESSOR_BTVER1.
14760 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14762 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14765 * config/i386/i386.c (legitimize_tls_address)
14766 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14767 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14768 (tls_initial_exec_64_sun): New pattern.
14770 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14772 * doc/invoke.texi (Overall Options): Improve wording and markup
14773 of the description of -wrapper.
14775 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14777 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14778 rdynamic, threads): New Driver options.
14780 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14783 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14784 if coming from .tdata.
14785 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14787 2011-01-06 Jan Hubicka <jh@suse.cz>
14790 * collect2.c (main): Do not enable LTOmode when plugin is active.
14792 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14795 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14796 --version output if supported.
14797 * configure: Regenerate.
14799 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14801 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14804 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14807 * c-convert.c (convert): When converting a complex expression
14808 other than COMPLEX_EXPR to a different complex type, ensure
14809 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14810 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14811 when converting COMPLEX_TYPE.
14813 2011-01-06 Ira Rosen <irar@il.ibm.com>
14815 PR tree-optimization/47139
14816 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14817 only the last reduction value is used outside the loop. Update
14820 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14822 * config/rtems.opt: New.
14823 * config.gcc (*-*-rtems*): Use rtems.opt.
14825 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14827 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14828 processors do not support 3DNow instructions.
14830 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14832 * config/spu/spu.c (spu_option_override): Set parameter
14833 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14835 2011-01-05 Jan Hubicka <jh@suse.cz>
14837 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14838 at the command line.
14840 2011-01-05 Martin Jambor <mjambor@suse.cz>
14843 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14844 deltas on streamed outgoing edges.
14845 (output_node_opt_summary): Output info for outgoing edges only when
14846 the node is in new parameter set.
14847 (output_cgraph_opt_summary): New parameter set, passed to the two
14848 aforementioned functions. Update its forward declaration and its
14851 2011-01-05 Tom Tromey <tromey@redhat.com>
14853 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14854 operator to c_finish_omp_atomic.
14855 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14856 (build_unary_op): Update.
14857 (build_modify_expr): Update.
14858 (build_asm_expr): Update.
14860 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14862 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14863 newly inserted insns.
14864 (pad_bb): Likewise.
14865 (spu_emit_branch_hint): Likewise.
14866 (insert_hbrp_for_ilb_runout): Likewise.
14867 (spu_machine_dependent_reorg): Call df_finish_pass after
14868 schedule_insns returns.
14870 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14872 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14874 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14876 PR tree-optimization/47005
14877 * tree-sra.c (struct access): Add 'non_addressable' bit.
14878 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14879 (decide_one_param_reduction): Return 0 if the parameter is passed by
14880 reference and one of the accesses in the group is non_addressable.
14882 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14884 PR tree-optimization/47056
14885 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14886 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14887 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14889 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14891 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14892 initializer. Skip view conversions from aggregate types.
14894 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14897 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14899 2011-01-04 Philipp Thomas <pth@suse.de>
14901 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14904 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14906 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14907 on empty epilogue sequences.
14909 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14911 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14912 non-static): New Driver options.
14914 2011-01-04 Jie Zhang <jie@codesourcery.com>
14917 * gcc.c (default_compilers[]): Set combinable field to 0
14918 for all assembly languages.
14920 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14922 * config/mips/loongson3a.md: New file.
14923 * config/mips/mips.md: Include loongson3a.md.
14924 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14927 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14929 PR middle-end/47017
14930 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14931 instead of convert_memory_address_addr_space on the base expression.
14933 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14935 * config/spu/spu.c (spu_option_override): Update error text
14936 for bad -march= / -mtune= values.
14938 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14940 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14941 if branch-hint optimization will be performed.
14943 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14945 PR tree-optimization/47148
14946 * ipa-split.c (split_function): Convert arguments to
14947 DECL_ARG_TYPE if possible.
14949 PR tree-optimization/47155
14950 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14951 when computing uns.
14953 PR rtl-optimization/47157
14954 * combine.c (try_combine): If undobuf.other_insn becomes
14955 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14956 and set *new_direct_jump_p too.
14958 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14960 PR tree-optimization/47021
14961 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14963 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14965 * gcc.c (process_command): Update copyright notice dates.
14966 * gcov.c (print_version): Likewise.
14967 * gcov-dump.c (print_version): Likewise.
14968 * mips-tfile.c (main): Likewise.
14969 * mips-tdump.c (main): Likewise.
14971 2011-01-03 Martin Jambor <mjambor@suse.cz>
14973 PR tree-optimization/46801
14974 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14975 aggregate fields start at byte boundary instead of the bit-field flag.
14977 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14980 * gcc.c (main): Revert revision 168407.
14982 2011-01-03 Martin Jambor <mjambor@suse.cz>
14984 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14986 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14988 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14989 vector optab to expand vector/scalar shift, update gimple to vector.
14991 2011-01-03 Martin Jambor <mjambor@suse.cz>
14993 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14996 2011-01-03 Martin Jambor <mjambor@suse.cz>
14998 PR tree-optimization/46984
14999 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15001 (cgraph_create_indirect_edge): Fixed line length.
15002 (cgraph_indirect_call_info): Declare.
15003 (cgraph_make_edge_direct) Update declaration.
15004 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15005 (cgraph_create_indirect_edge): Use it.
15006 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15008 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15009 the new thunk_delta representation.
15010 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15012 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15013 (ipa_read_indirect_edge_info): Likewise.
15014 * lto-cgraph.c (output_edge_opt_summary): New function.
15015 (output_node_opt_summary): Call it on all outgoing edges.
15016 (input_edge_opt_summary): New function.
15017 (input_node_opt_summary): Call it on all outgoing edges.
15019 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15022 * gcc.c (main): Don't check have_o when settting combine_inputs.
15024 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15026 * regrename.c: Add general comment describing the pass.
15027 (struct du_head): Remove 'length' field.
15028 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15029 (regrename_optimize): Do not sort chains. Rework comments, add others.
15030 Force renaming to the preferred class (if any) in the first pass and do
15031 not consider registers that belong to it in the second pass.
15032 (create_new_chain): Do not set 'length' field.
15033 (scan_rtx_reg): Likewise.
15035 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15037 PR tree-optimization/47140
15038 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15039 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15040 to bit_value_binop.
15042 PR rtl-optimization/47028
15043 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15044 parm_birth_insn instead of at the beginning of first bb.
15046 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15048 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15049 Remove the word "see" before "@pxref".
15050 * doc/rtl.texi: Remove the word "see" before "@pxref".
15052 2011-01-01 Jan Hubicka <jh@suse.cz>
15054 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15057 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15060 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15063 Copyright (C) 2011 Free Software Foundation, Inc.
15065 Copying and distribution of this file, with or without modification,
15066 are permitted in any medium without royalty provided the copyright
15067 notice and this notice are preserved.