1 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3 * Makefile.in (LIBDEPS): Add libcommon.a.
5 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
6 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7 pretty-print.o and version.o.
9 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
10 (BACKEND): Add libcommon.a.
11 (MOSTLYCLEANFILES): Likewise.
13 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14 (cpp$(exeext)): Likewise.
15 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
16 pretty-print.o and input.o.
17 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
18 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
20 (mips-tfile): Don't explicitly use version.o.
21 (mips-tdump): Likewise.
22 (gcov.o): Depend on $(DIAGNOSTIC_H).
23 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
24 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
25 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
26 * gcov-dump.c: Include intl.h and diagnostic.h.
27 (main): Initialize diagnostics.
28 * gcov.c: Include diagnostic.h.
30 (main): Initialize diagnostics.
31 * lto-wrapper.c: Include diagnostic.h.
32 (main): Initialize diagnostics.
34 2011-05-20 Michael Matz <matz@suse.de>
36 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
38 2011-05-20 Michael Matz <matz@suse.de>
39 Richard Guenther <rguenther@suse.de>
41 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
42 use lto_streamer_cache_append directly instead of returning a VEC.
43 (preload_common_node): Remove.
44 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
46 (lto_streamer_cache_create): Call lto_preload_common_nodes.
48 2011-05-20 Richard Guenther <rguenther@suse.de>
50 PR tree-optimization/49079
51 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
52 MEM_REFs correctly for the trailing array access detection.
53 Special case constants the same way as decls for overall size
56 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
58 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
61 2011-05-20 Jakub Jelinek <jakub@redhat.com>
63 PR tree-optimization/49073
64 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
65 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
66 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
68 2011-05-20 Richard Guenther <rguenther@suse.de>
71 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
72 of pointer types the same way the middle-end does.
74 2011-05-20 Richard Guenther <rguenther@suse.de>
76 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
77 or pointer-to chains. Delay all fixup to uniquify_nodes.
79 2011-05-19 Quentin Neill <quentin.neill@amd.com>
81 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
82 (fma4_fmaddsub): Likewise
84 2011-05-19 Jan Hubicka <jh@suse.cz>
86 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
87 (GIMPLE_TYPE_PAIR_SIZE): New macro.
88 (type_pair_cache): New static var.
89 (lookup_type_pair): Use fixed sized custom hash; make inline.
90 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
91 calls of lookup_type_pair.
92 (print_gimple_types_stats): Remove cache stats.
93 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
96 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
98 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
99 when TARGET_RDRND is active.
100 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
101 Generate dummy SImode target register when target is NULL.
103 2011-05-19 Joseph Myers <joseph@codesourcery.com>
105 * config/arm/arm-fpus.def: New.
106 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
108 * config/arm/arm-tables.opt: Regenerate.
109 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
110 (arm_option_override): Don't decode FPU name to string here.
111 * config/arm/arm.opt (mfpu=): Use Enum.
112 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
115 2011-05-19 Joseph Myers <joseph@codesourcery.com>
117 * collect2.c: Include diagnostic.h.
118 (fatal_perror, fatal, error, fancy_abort): Remove.
119 (main): Set progname. Call xmalloc_set_program_name and
120 diagnostic_initialize.
121 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
122 scan_libraries, resolve_lib_name): Call fatal_error instead of
123 fatal and fatal_perror.
124 * collect2.h (error, fatal, fatal_perror): Don't declare.
125 * tlink.c: Include diagnostic-core.h.
126 (recompile_files): Call fatal_error instead of fatal_perror.
127 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
128 pretty-print.o and input.o.
129 (collect2.o, tlink.o): Update dependencies.
131 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
135 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
138 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
139 COMDAT group syntax, both SPARC and x86 variants.
140 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
141 * configure: Regenerate.
142 * config/sol2.h (TARGET_SOLARIS): Define.
143 (PUSHSECTION_FORMAT): Remove.
144 (SECTION_NAME_FORMAT): Define.
145 * config/sol2.c: Include hashtab.h.
146 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
147 expansion, using SECTION_NAME_FORMAT.
148 (solaris_comdat_htab): New variable.
149 (struct comdat_entry): Define.
150 (comdat_hash): New function.
151 (comdat_eq): New function.
152 (solaris_elf_asm_comdat_section): New function.
153 (solaris_define_comdat_signature): New function.
154 (solaris_code_end): New function.
155 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
156 (solaris_code_end): Declare.
157 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
158 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
160 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
161 Remove ATTRIBUTE_UNUSED.
162 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
163 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
164 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
165 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
166 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
167 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
168 (PUSHSECTION_FORMAT): Remove.
169 (SECTION_NAME_FORMAT): Redefine.
171 2011-05-19 Kai Tietz <ktietz@redhat.com>
173 * tree-cfg.c (verify_gimple_assign_binary): Barf on
174 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
175 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
177 2011-05-19 Anatoly Sokolov <aesok@post.ru>
178 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
182 2011-05-19 Richard Guenther <rguenther@suse.de>
185 * tree-object-size.c (addr_object_size): If the pointed-to
186 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
188 2011-05-19 Richard Guenther <rguenther@suse.de>
190 * gimple.c (gimple_types_compatible_p_1): Compare names of
191 the types themselves.
192 (iterative_hash_gimple_type): And hash them that way.
193 (gimple_register_type_1): If we register a main variant properly
194 initialize the leader to ourselves.
196 2011-05-19 Tom de Vries <tom@codesourcery.com>
199 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
200 get_loop_invariant_expr_id.
201 (get_loop_invariant_expr_id): Use get_expr_id.
202 (parm_decl_cost): New function.
203 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
204 Improve bound cost estimation. Use different inv_expr_id for elim and
207 2011-05-19 Tom de Vries <tom@codesourcery.com>
210 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
213 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
216 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
217 Properly handle load cast.
219 2011-05-18 Jakub Jelinek <jakub@redhat.com>
221 PR tree-optimization/49039
222 * tree-vrp.c (extract_range_from_binary_expr): For
223 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
224 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
226 2011-05-18 Tom de Vries <tom@codesourcery.com>
229 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
231 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
233 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
234 (*tls_global_dynamic_64): Ditto.
235 (*tls_local_dynamic_base_32_gnu): Ditto.
236 (*tls_local_dynamic_base_64): Ditto.
237 (tls_initial_exec_64_sun): Ditto.
239 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
241 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
242 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
244 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
245 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
246 * config/bfin/bfin.c (bfin_cpus): Add bf592.
247 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
248 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
249 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
250 * config/bfin/elf.h (LIB_SPEC): Add bf592.
252 2011-05-18 Joseph Myers <joseph@codesourcery.com>
254 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
255 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
256 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
257 target_thread_pointer, arm_structure_size_boundary, struct
258 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
259 struct abi_name, arm_all_abis): Remove.
260 (arm_option_override) Don't process most enumerated option values here.
261 Don't process target_fpe_name here. Work with integer not string for
262 structure size boundary; use separate diagnostics for each case.
263 * config/arm/arm.h (enum float_abi_type, enum
264 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
266 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
267 arm_structure_size_boundary): Remove.
268 * config/arm/arm.opt (mabi=): Use Enum and Init.
269 (arm_abi_type): New Enum and EnumValue entries.
270 (mfloat-abi=): Use Enum and Init.
271 (float_abi_type): New Enum and EnumValue entries.
272 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
273 (mfp16-format=): Use Enum and Init.
274 (arm_fp16_format_type): New Enum and EnumValue entries.
275 (mstructure-size-boundary=): Use UInteger and Init.
276 (mtp=): Use Enum and Init.
277 (arm_tp_type): New Enum and EnumValue entries.
279 2011-05-18 Richard Guenther <rguenther@suse.de>
281 PR tree-optimization/49018
282 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
283 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
284 gimple_has_side_effects.
286 2011-05-18 Richard Guenther <rguenther@suse.de>
288 * gimple.c (gimple_register_type_1): New function, split out from ...
289 (gimple_register_type): ... here. Avoid infinite recursion.
291 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
293 PR tree-optimization/41881
294 * tree-vectorizer.h (struct _loop_vec_info): Add new field
295 reduction_chains along with a macro for its access.
296 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
297 (destroy_loop_vec_info): Free reduction chains.
298 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
299 (vect_is_slp_reduction): New function.
300 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
301 (vect_create_epilog_for_reduction): Support SLP reduction chains.
302 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
303 definition types for reduction chains.
304 (vect_supported_load_permutation_p): Don't allow permutations for
306 (vect_analyze_slp_instance): Support reduction chains.
307 (vect_analyze_slp): Try to build SLP instance from reduction chains.
308 (vect_get_constant_vectors): Handle reduction chains.
309 (vect_schedule_slp_instance): Mark the first statement of the
310 reduction chain as reduction.
312 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
314 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
315 names for group elements access.
316 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
317 reduction chains as well. Remove data reference and interleaving
318 related words from the fields names.
319 * tree-vect-loop.c (vect_transform_loop): Use new names for group
321 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
322 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
323 vect_update_interleaving_chain, vect_same_range_drs,
324 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
325 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
326 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
327 vect_analyze_group_access, vect_analyze_data_ref_access,
328 vect_create_data_ref_ptr, vect_transform_strided_load,
329 vect_record_strided_load_vectors): Likewise.
330 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
331 vect_model_load_cost, vectorizable_store, vectorizable_load,
332 vect_remove_stores, new_stmt_vec_info): Likewise.
333 * tree-vect-slp.c (vect_build_slp_tree,
334 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
336 2011-05-18 Richard Guenther <rguenther@suse.de>
339 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
340 operand verification.
341 (verify_gimple_assign_binary): Likewise.
342 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
343 to non-1-precision BOOLEAN_TYPEs.
345 2011-05-18 Tom de Vries <tom@codesourcery.com>
348 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
350 2011-05-18 Jakub Jelinek <jakub@redhat.com>
352 PR tree-optimization/49000
353 * tree-ssa.c (execute_update_addresses_taken): Call
354 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
355 be rewritten and decl has been marked for renaming, reset
358 2011-05-17 Joseph Myers <joseph@codesourcery.com>
360 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
361 enum_opts_set when testing if attributes have set -mfpmath=.
363 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
365 * config/mips/mips.c (mips_handle_option): Remove unused variable.
367 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
369 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
371 * tree-inline.c (maybe_inline_call_in_expr): Initialize
372 id.transform_lang_insert_block with NULL.
374 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
376 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
377 (output_fp_compare): Change args 3 and 4 to bool.
378 (ix86_expand_call): Change arg 6 to bool.
379 (ix86_attr_length_immediate_default): Change arg 2 to bool.
380 (ix86_attr_length_vex_default): Change arg 3 to bool.
381 * config/i386/i386.md: Update all uses.
382 * config/i386/i386.c: Ditto.
383 (ix86_flags_dependent): Change return type to bool.
385 2011-05-17 Richard Guenther <rguenther@suse.de>
387 * gimple.c (type_hash_pair_compare): Fix comparison.
389 2011-05-17 Richard Guenther <rguenther@suse.de>
391 * gimple.c (iterative_hash_gimple_type): Simplify singleton
392 case some more, fix final hash value of the non-singleton case.
394 2011-05-17 Richard Guenther <rguenther@suse.de>
398 2011-05-16 Richard Guenther <rguenther@suse.de>
400 * gimple.c (gimple_types_compatible_p_1): Use names of the
401 type itself, not its main variant.
402 (iterative_hash_gimple_type): Likewise.
404 2011-05-17 Richard Guenther <rguenther@suse.de>
406 * gimple.c (gimple_register_canonical_type): Use the main-variant
407 leader for computing the canonical type.
409 2011-05-17 Nick Clifton <nickc@redhat.com>
411 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
414 * config/rx/rx.md: Add peephole to remove redundant extensions
416 (bitset_in_memory): Use rx_restricted_mem_operand.
417 (bitinvert_in_memory): Likewise.
418 (bitclr_in_memory): Likewise.
420 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
421 Nick Clifton <nickc@redhat.com>
423 * config/rx/rx.md: Add peepholes to match a register move followed
424 by a comparison of the moved register. Replace these with an
425 addition of zero that does both actions in one instruction.
427 2011-05-17 Jakub Jelinek <jakub@redhat.com>
430 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
431 predicate to allow CONST_INT.
432 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
434 2011-05-16 Joseph Myers <joseph@codesourcery.com>
436 * opts-common.c (opt_enum_arg_to_value): New.
437 * opts.h (opt_enum_arg_to_value): Declare.
438 * config/i386/i386.opt (fpmath): Remove.
439 (mfpmath=): Use Enum, Init and Save.
440 (fpmath_unit): New Enum and EnumValue entries.
441 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
442 name for function fpmath state.
443 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
444 * config/i386/i386.c: Include diagnostic.h.
445 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
446 (ix86_target_string): Take enum fpmath_unit value instead of string.
447 (ix86_debug_options): Update call to ix86_target_string.
448 (ix86_option_override_internal): Don't process fpmath strings here.
449 (x86_function_specific_save, ix86_function_specific_restore):
450 Don't handle fpmath state specially.
451 (ix86_function_specific_print): Pass fpmath state to
452 ix86_target_string instead of printing in this function.
453 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
454 Handle enum attributes.
455 (IX86_ATTR_ENUM, ix86_opt_enum): New.
456 (ix86_valid_target_attribute_tree): Update option_strings
457 handling. Handle fpmath as enum option.
458 (ix86_can_inline_p): Update field names for function fpmath state.
459 (ix86_expand_builtin): Update call to ix86_target_string.
460 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
461 (ix86_fpmath): Remove.
462 * config/i386/t-i386 (i386.o): Update dependencies.
464 2011-05-16 Joseph Myers <joseph@codesourcery.com>
466 PR preprocessor/48677
467 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
468 from decoded_options[0], not from itself.
470 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
472 * config/i386/constraints.md (z): New constraint.
473 * config/i386/i386.c (c): New mode attribute.
474 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
475 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
476 constraint for operand 0.
477 (*call_vzeroupper): Ditto.
478 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
479 (*call_rex64_ms_sysv_vzeroupper): Ditto.
480 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
481 Use "lzm" constraint for operand 0.
482 (*call_pop_vzeroupper): Ditto.
483 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
484 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
485 constraint for operand 0.
486 (*sibcall_vzeroupper): Ditto.
487 (*sibcall_rex64_ms_sysv): Ditto.
488 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
489 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
490 *sibcall_pop_1. Use "Uz" constraint for operand 0.
491 (*sibcall_pop_vzeroupper): Ditto.
492 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
493 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
494 mode iterator. Use "<c>zm" constraint for operand 1.
495 (*call_value_vzeroupper): Ditto.
496 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
498 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
499 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
500 *call_value_pop_1. Use "lzm" constraint for operand 1.
501 (*call_value_pop_vzeroupper): Ditto.
502 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
503 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
504 mode iterator. Use "Uz" constraint for operand 1.
505 (*sibcall_value_vzeroupper): Ditto.
506 (*sibcall_value_rex64_ms_sysv): Ditto.
507 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
508 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
509 constraint for operand 1.
510 (*sibcall_value_pop_vzeroupper): Ditto.
511 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
512 and "z" constraint for operand 2.
513 (*tls_global_dynamic_32_gnu): Ditto.
514 (*tls_local_dynamic_base_32_gnu): Ditto.
515 (*tls_local_dynamic_base_64): Ditto.
516 (*tls_local_dynamic_32_once): Ditto.
517 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
519 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
521 2011-05-16 Richard Guenther <rguenther@suse.de>
523 * gimple.c (gimple_types_compatible_p_1): Use names of the
524 type itself, not its main variant.
525 (iterative_hash_gimple_type): Likewise.
527 2011-05-16 Richard Guenther <rguenther@suse.de>
529 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
530 always visit pointer target and function result and argument types.
532 2011-05-16 Jason Merrill <jason@redhat.com>
535 * tree-inline.c (copy_statement_list): Put back recursion.
537 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
541 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
542 * config/avr/avr.md ("*ior<mode>qi.byte0",
543 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
545 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
548 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
549 register is needed for a function argument.
551 2011-05-16 Richard Guenther <rguenther@suse.de>
553 * gimple.c (struct type_hash_pair): New type.
554 (type_hash_pair_compare): New function.
555 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
557 2011-05-16 Revital Eres <revital.eres@linaro.org>
559 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
561 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
563 * config/i386/i386.md (floating point move splitters): Fix
564 usage of standard_80387_constant_p.
565 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
567 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
569 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
571 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
573 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
574 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
575 (tree_ssa_lim_finalize): Likewise.
577 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
579 * config/i386/constraint.md (Yd, Yx): New register constraints.
580 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
581 Yd conditional register constraint.
582 (*movtf_internal): Use standard_sse_constant_opcode.
583 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
584 Yx conditional register constraint.
585 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
586 Yd conditional register constraint. Use standard_sse_constant_p to
587 check for valid SSE constants and call standard_sse_constant_opcode to
589 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
590 constants and call standard_sse_constant_opcode to output SSE insn.
591 * config/i386/i386.c (ix86_option_ovverride_internal): Set
592 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
593 optimize_size is set.
594 (standard_sse_constant_opcode): Output conditional AVX insn templates.
596 2011-05-14 Tobias Burnus <burnus@net-b.de>
598 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
600 2011-05-13 Martin Jambor <mjambor@suse.cz>
602 * ipa-prop.c (ipa_cst_from_jfunc): New function.
603 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
604 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
605 (evaluate_conditions_for_ipcp_clone): Removed.
606 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
607 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
608 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
610 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
612 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
613 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
614 lieu of MAY_HAVE_DEBUG_STMTS.
615 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
616 debug statements if !MAY_HAVE_DEBUG_STMTS.
618 2011-05-13 Martin Thuresson <martint@google.com>
620 PR gcov-profile/47793
621 * libgcov.c (gcov_exit): Support relative profile paths.
622 * doc/invoke.texi (-fprofile-dir): Update for above change.
624 2011-05-13 Richard Guenther <rguenther@suse.de>
626 * gimple.c (gimple_canonical_types_compatible_p): Do not use
627 type-pair caching, do not compare hashes.
629 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
632 * tree-cfg.c (edge_to_cases_cleanup): Return true.
633 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
635 2011-05-13 Kai Tietz <ktietz@redhat.com>
637 * gimplify.c (gimplify_expr): Make sure operand is boolified.
638 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
639 compatible type for TRUTH_NOT_EXPR.
641 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
643 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
644 (ix86_hard_regno_mode_ok): Change return value to bool. Use
645 can_create_pseudo_p ().
647 2011-05-13 Richard Guenther <rguenther@suse.de>
650 * gimple.c (iterative_hash_gimple_type): Revert change in
651 pointer target and function result and argument hashing.
653 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
655 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
656 (*movxf_internal_nointeger): Ditto.
657 (*movdf_internal_rex64): Ditto.
658 (*movdf_internal): Ditto.
659 (*movdf_internal_nointeger): Ditto.
660 (*movsf_internal): Ditto.
661 (sincos splitters): Use can_create_pseudo ().
663 2011-05-13 Joseph Myers <joseph@codesourcery.com>
665 * config/i386/i386-opts.h: New.
666 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
667 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
668 ix86_section_threshold): Remove.
669 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
670 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
672 (ix86_option_override_internal): Don't decode strings for options
673 other than -march=, -mtune= and -mfpmath=. Don't allow for
674 __attribute__ uses in remaining diagnostics for options with
675 string arguments. Don't check for integer arguments being negative.
676 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
677 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
678 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
679 ix86_branch_cost, ix86_section_threshold): Remove.
680 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
682 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
684 (masm=): Use Enum and Init.
685 (asm_dialect): New Enum and EnumValue entries.
686 (mbranch-cost=): Use UInteger.
687 (mlarge-data-threshold=): Use UInteger and Init.
688 (mcmodel=): Use Enum and Init.
689 (cmodel): New Enum and EnumValue entries.
690 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
691 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
692 mregparm=): Use UInteger.
693 (mstringop-strategy=): Use Enum and Init.
694 (stringop_alg): New Enum and EnumValue entries.
695 (mtls-dialect=): Use Enum and Init.
696 (tls_dialect): New Enum and EnumValue entries.
697 (mabi=): Use Enum and Init.
698 (calling_abi): New Enum and EnumValue entries.
699 (mveclibabi=): Use Enum and Init.
700 (ix86_veclibabi): New Enum and EnumValue entries.
702 2011-05-13 Nick Clifton <nickc@redhat.com>
704 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
705 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
707 2011-05-13 Kai Tietz <ktietz@redhat.com>
710 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
711 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
712 (gimple_boolify): Check for cast for boolean_type_node instead for
715 2011-05-13 Richard Guenther <rguenther@suse.de>
717 PR tree-optimization/48172
718 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
719 multiplying by number of iterations for equal step.
720 (vect_create_cond_for_alias_checks): Likewise.
722 2011-05-13 Andreas Schwab <schwab@redhat.com>
724 * configure.ac: Use AS_HELP_STRING throughout.
725 * configure: Regenerate.
727 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
729 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
730 (ix86_emit_restore_regs_using_mov): Likewise.
731 (ix86_emit_restore_sse_regs_using_mov): Likewise.
733 2011-05-12 Anatoly Sokolov <aesok@post.ru>
735 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
736 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
737 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
738 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
739 RTX_OK_FOR_OLO10_P): ...here.
740 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
743 2011-05-12 Kai Tietz <ktietz@redhat.com>
745 * gimplify.c (gimple_boolify): Re-boolify expression
746 arguments even if expression type is of kind BOOLEAN_TYPE.
747 (gimplify_boolean_expr): Removed.
748 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
749 and XOR. Additional take care that we keep expression's type.
750 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
751 of TRUTH_AND|OR|XOR_EXPR.
753 2011-05-12 Jakub Jelinek <jakub@redhat.com>
755 PR tree-optimization/48975
756 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
757 on all bbs here and free and clear ifc_bbs at the end.
759 2011-05-12 Richard Guenther <rguenther@suse.de>
761 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
762 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
763 until after simple checks.
764 (gimple_types_compatible_p): Likewise.
765 (iterative_hash_gimple_type): Always hash pointer targets
766 and function return and argument types.
767 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
768 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
769 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
770 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
771 completely in the simple compare section.
772 (gimple_register_canonical_type): Query the cache again after
775 2011-05-12 Richard Guenther <rguenther@suse.de>
777 PR tree-optimization/48172
778 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
779 the number of iterations from the segment size calculation.
780 (vect_create_cond_for_alias_checks): Adjust.
782 2011-05-12 Jakub Jelinek <jakub@redhat.com>
785 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
786 if validate_subreg fails.
788 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
790 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
791 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
794 2011-05-12 DJ Delorie <dj@redhat.com>
796 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
797 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
798 created builtin into rx_builtins array.
799 (rx_builtin_decl): New function.
800 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
802 2011-05-12 DJ Delorie <dj@redhat.com>
803 Nick Clifton <nickc@redhat.com>
805 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
806 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
807 (rx_is_legitimate_address): Add pre-decrement and post-increment
808 addressing in HImode and QImode. Fix test for out of range
810 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
811 (rx_align_for_label): Test label before extracting its usage count.
812 (rx_adjust_insn_lengths): Fix selection of insn codes.
813 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
815 2011-05-11 Jason Merrill <jason@redhat.com>
817 * tree.c (type_hash_canon): Use struct tree_type_non_common.
819 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
821 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
822 reindent the subsequent block.
824 2011-05-11 Satoru Takabayashi <satorux@google.com>
825 Paul Pluzhnikov <ppluzhnikov@google.com>
827 * doc/install.texi (Configuration): Document --with-linker-hash-style.
828 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
829 * config.in: Add LINKER_HASH_STYLE.
830 * configure.ac: Add --with-linker-hash-style.
831 * configure: Regenerate.
833 2011-05-11 Richard Guenther <rguenther@suse.de>
836 * gimple.c (iterative_hash_canonical_type): Fix typo.
838 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
840 * config/i386/i386.c (legitimize_tls_address)
841 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
842 expanders directly for TARGET_GNU2_TLS. Determine pic and
843 __tls_get_addr symbol reference here. Update call to
844 gen_tls_global_dynamic_{32,64} for added arguments.
845 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
846 expanders directly for TARGET_GNU2_TLS. Determine
847 __tls_get_addr symbol reference here. Update call to
848 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
849 unique UNSPEC REG_EQUIV to libcall block.
850 (ix86_tls_get_addr): Declare static.
851 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
852 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
853 Do not determine pic and __tls_get_addr symbol reference here. Do not
854 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
855 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
856 (tls_global_dynamic_64): Add operand 2. Do not determine
857 __tls_get_addr symbol reference here. Do not call
858 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
859 (tls_local_dynamic_base64): Ditto for operand 1.
861 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
863 * function.c (expand_function_start): Initialize stack_check_probe_note
864 only if the generic stack checking mechanism is used.
866 2011-05-11 Richard Guenther <rguenther@suse.de>
868 PR tree-optimization/15256
869 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
870 (A & B) | C, combine (A op CST1) op CST2.
871 (tree_ssa_forward_propagate_single_use_vars): Only bother to
872 visit assigns that have uses.
874 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
876 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
877 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
878 (unpack_ts_type_common_value_fields): ...this. Update comment.
879 (unpack_value_fields): Adjust for renaming.
880 (lto_input_ts_type_tree_pointers): Split into...
881 (lto_input_ts_type_common_tree_pointer): ...this and...
882 (lto_input_ts_type_non_common_tree_pointers): ...this.
883 (lto_input_tree_pointers): Adjust for above split.
884 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
885 (pack_ts_type_common_value_fields): ...this. Update comment.
886 (lto_output_ts_type_tree_pointers): Split into...
887 (lto_output_ts_type_common_tree_pointers): ...this and...
888 (lto_output_ts_type_non_common_tree_pointers): ...this.
889 (lto_output_tree_pointers): Adjust for above split.
890 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
891 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
892 * stor-layout.c (vector_type_mode): Adjust location of mode field.
893 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
895 (struct tree_type): Split into...
896 (struct tree_type_common: ...this and...
897 (struct tree_type_with_lang_specific): ...this and...
898 (struct tree_type_non_common): ...this. Adjust accessor macros
900 (TYPE_VALUES_RAW): Define.
901 (union tree_node): Update for above changes.
902 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
904 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
905 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
906 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
907 * treestructu.def (TS_TYPE): Remove.
908 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
911 2011-05-11 Jakub Jelinek <jakub@redhat.com>
914 * tree-ssa.c (reset_debug_uses): New function.
915 * tree-flow.h (reset_debug_uses): New prototype.
916 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
917 * tree-loop-distribution.c (generate_loops_for_partition): Call
918 reset_debug_uses on the stmts that will be removed. Keep around
919 all debug stmts, don't count them as bits in partition bitmap.
920 (generate_builtin): Don't count debug stmts or labels as bits in
923 2011-05-11 Richard Guenther <rguenther@suse.de>
925 * gimple.c (gimple_type_hash_1): Merge with ...
926 (gimple_type_hash): ... this.
927 (gtc_visit): Remove mode parameter and simplify accordingly.
928 (gimple_types_compatible_p_1): Likewise.
929 (gimple_types_compatible_p): Likewise.
930 (iterative_hash_gimple_type): Likewise.
932 (gimple_type_eq): Adjust.
934 2011-05-11 Revital Eres <revital.eres@linaro.org>
936 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
937 enters the branch create an anti edge in the opposite direction
938 to prevent the creation of reg-moves.
939 * modulo-sched.c: Adjust comment to reflect the fact we are
940 scheduling closing branch.
941 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
942 (stage_count): New field in struct partial_schedule.
943 (calculate_stage_count): New function.
944 (normalize_sched_times): Rename to reset_sched_times and handle
945 incrementing the sched time of the nodes by a constant value
947 (duplicate_insns_of_cycles): Skip closing branch.
948 (sms_schedule_by_order): Schedule closing branch.
949 (ps_insn_find_column): Handle closing branch.
950 (sms_schedule): Call reset_sched_times and adjust the code to
951 support scheduling of the closing branch.
952 (ps_insert_empty_row): Update calls to normalize_sched_times
953 and rotate_partial_schedule functions.
955 2011-05-11 Richard Guenther <rguenther@suse.de>
958 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
960 2011-05-11 Joseph Myers <joseph@codesourcery.com>
962 * opts.c (finish_options): Move warning settings from process_options.
963 * toplev.c (process_options): Move warning settings to finish_options.
965 2011-05-11 Richard Guenther <rguenther@suse.de>
967 PR tree-optimization/18041
968 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
969 (simplify_bitwise_binary): ... this. Handle operand conversions
970 by applying them to the result instead.
971 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
973 2011-05-11 Richard Guenther <rguenther@suse.de>
975 * gimple.c (gimple_canonical_types_compatible_p): Split out
976 from gimple_types_compatible_p and friends. Do not recurse
978 (gimple_canonical_type_eq): Use it.
979 (iterative_hash_canonical_type): Split out from
980 iterative_hash_gimple_type and friends. Do not recurse
982 (gimple_canonical_type_hash): Use it, allocate the hash here.
984 2011-05-11 Revital Eres <revital.eres@linaro.org>
986 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
989 2011-05-11 Revital Eres <revital.eres@linaro.org>
991 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
992 instead of PREV_INSN.
994 2011-05-11 Revital Eres <revital.eres@linaro.org>
996 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
997 * loop-doloop.c (doloop_condition_get): Likewise.
998 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1000 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1002 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1004 * tree.def (CASE_LABEL_EXPR): Add an operand.
1005 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1007 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1009 * c-decl.c (c_override_global_bindings_to_false): Remove.
1010 (global_bindings_p): Don't check
1011 c_override_global_bindings_to_false.
1012 * c-tree.h (c_override_global_bindings_to_false): Remove.
1013 * c-typeck.c (composite_type): Don't set
1014 c_override_global_bindings_to_false.
1016 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1018 PR target/48857, 48495
1019 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1021 (VSX_MOVE_MODE): Ditto.
1022 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1023 VSX vector types. Add V2DImode.
1024 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1025 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1026 (MODES_TIEABLE_P): Ditto.
1028 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1029 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1031 (init_cumulative_args): Ditto.
1032 (rs6000_function_arg_boundary): Ditto.
1033 (rs6000_function_arg_advance_1): Ditto.
1034 (rs6000_function_arg): Ditto.
1035 (rs6000_function_ok_for_sibcall): Ditto.
1036 (emit_frame_save): Ditto.
1037 (rs6000_function_value): Ditto.
1038 (rs6000_libcall_value): Ditto.
1040 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1042 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1043 i386/darwin-lib.h to $libgcc_tm_file.
1044 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1046 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1048 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1050 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1052 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1053 * config/rs6000/rs6000-tables.opt: New file (generated).
1054 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1055 rs6000/rs6000-tables.opt to extra_options.
1056 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1057 * config/rs6000/rs6000.c (rs6000_select): Remove.
1058 (processor_target_table): Move contents to rs6000-cpus.def.
1059 (darwin_rs6000_override_options): Check
1060 global_options_set.x_rs6000_cpu_index instead of
1061 rs6000_select[1].string.
1062 (rs6000_option_override_internal): Likewise.
1063 (rs6000_handle_option): Don't assert that global structures are in
1064 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1065 (rs6000_default_cpu): New variable.
1066 (rs6000_file_start): Set it instead of local default_cpu. Check
1067 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1068 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1069 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1070 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1071 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1072 rs6000_select): Remove.
1073 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1075 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1076 * config/rs6000/t-rs6000
1077 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1078 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1079 global_options_set.x_rs6000_cpu_index instead of
1080 rs6000_select[1].string.
1081 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1082 global_options_set.x_rs6000_cpu_index instead of
1083 rs6000_select[1].string.
1085 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1087 * config.gcc (libgcc_tm_file): Define instead of including files
1088 from ../../libgcc/config/ in tm_file.
1089 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1090 * configure: Regenerate.
1091 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1092 libgcc_tm.h, cs-libgcc_tm.h): New.
1093 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1094 (clean): Remove libgcc_tm.h.
1095 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1096 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1097 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1099 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1102 * config/avr/avr.c (avr_ret_register): Return unsigned int
1104 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1105 it to avr_libcall_value.
1106 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1108 (avr_expand_binop_builtin): Ditto.
1109 (avr_expand_unop_builtin): Ditto.
1111 2011-05-10 DJ Delorie <dj@redhat.com>
1113 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1114 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1115 * config/rx/rx.c (rx_align_for_label): Add label and
1116 uses_threshold parameters. Do not align when the label is not
1118 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1120 2011-05-10 Richard Guenther <rguenther@suse.de>
1122 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1123 a series of conversions and apply foldings similar to what
1125 (tree_ssa_forward_propagate_single_use_vars): Call it.
1127 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1129 PR tree-optimization/48611
1130 PR tree-optimization/48794
1131 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1132 referenced from RESX or EH_DISPATCH arguments.
1135 * dfp.c (decimal_to_decnumber): Handle conversion from
1136 dconst{1,2,m1,half}.
1138 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1140 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1141 for !flag_prefer_avx128.
1142 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1144 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1146 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1147 (fold_ternary_loc): Use expr_location_or.
1149 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1152 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1153 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1154 Pmode and mem_mode is not VOIDmode.
1156 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1158 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1159 TYPE_QUAL_RESTRICT): Convert to enum.
1161 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1163 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1164 (const_pow2_1_to_8_operand): Ditto.
1165 (const_pow2_1_to_128_operand): Ditto.
1166 (const_pow2_1_to_32768_operand): Ditto.
1167 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1168 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1169 in insn constraint to check integer value of operand 3.
1170 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1172 (PINSR_MODE): New mode iterator.
1173 (sse2p4_1): New mode attribute.
1174 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1175 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1176 iterator. Use const_int_operand instead of
1177 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1178 exact_log2 in insn constraint to check integer value of operand 3.
1180 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1182 * config/i386/sse.md (blendbits): Remove mode attribute.
1183 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1184 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1185 Check integer value of operand 3 in insn constraint.
1187 2011-05-09 Richard Guenther <rguenther@suse.de>
1189 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1191 (lto_symtab_merge): Likewise. Do not register types here.
1192 (lto_symtab_merge_decls_2): Likewise.
1193 (lto_symtab_merge_decls_1): Likewise.
1194 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1195 * gimple.c (enum gtc_mode): Declare.
1196 (gimple_types_compatible_p): Make static.
1198 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1200 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1201 temporary register to match Pmode.
1203 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1205 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1206 and *vec_concatv4si_1_avx.
1208 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1210 PR rtl-optimization/48927
1211 * ira-conflicts.c (commutative_constraint_p): Use
1212 recog_data.alternative_enabled_p to disable alternatives where
1213 "enabled" attribute is false.
1214 (get_dup_num): Ditto.
1215 * ira-lives.c (single_reg_class): Ditto.
1216 (ira_implicitly_set_insn_hard_regs): Ditto.
1218 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1220 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1221 (dataflow_set_preserve_mem_locs): Likewise.
1223 2011-05-09 Philipp Thomas <pth@suse.de>
1225 * config/mep/mep.c (mep_validate_vliw): Syntax description
1226 should not be translated.
1228 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1230 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1231 * config/mips/mips-tables.opt: New file (generated).
1232 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1233 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1234 MIPS_ARCH_OPTION_NATIVE): Define.
1235 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1237 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1238 mips_parse_cpu): Remove.
1239 (mips_cpu_info_from_opt, mips_default_arch): New.
1240 (mips_handle_option): Don't assert that global structures are in
1241 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1242 (mips_option_override): Use new variables and functions to set
1243 state of these options. Use strcmp to check for individual CPU names.
1244 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1246 * config/mips/mips.opt (march=): Use ToLower and Enum.
1247 (mips): Use ToLower, Enum and Var.
1248 (mtune=): Use ToLower and Enum.
1249 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1251 2011-05-08 Jan Hubicka <jh@suse.cz>
1253 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1254 Arrange type pairs to be UID ordered.
1255 (gimple_lookup_type_leader): Make inline.
1257 2011-05-09 Nick Clifton <nickc@redhat.com>
1260 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1264 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1267 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1269 * combine.c (simplify_comparison): Abstract out parts into...
1270 (simplify_compare_const): ... new function.
1271 (try_combine): Generalize parallel arithmetic/compare combining
1272 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1274 2011-05-08 Jan Hubicka <jh@suse.cz>
1276 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1277 (cgraph_create_virtual_clone): Call hooks once virtual clone
1279 * cgraph.h (cgraph_clone_node): Update prototype.
1280 * ipa-cp.c (ipcp_estimate_growth): Use
1281 estimate_ipcp_clone_size_and_time.
1282 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1283 * lto-cgraph.c (input_node): Update.
1284 * ipa-inline.c (recursive_inlining): Update.
1285 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1286 (evaluate_conditions_for_known_args): Break out from ...
1287 (evaluate_conditions_for_edge): ... here.
1288 (evaluate_conditions_for_ipcp_clone): New function.
1289 (inline_node_duplication_hook): Update clone summary based
1291 (estimate_callee_size_and_time): Rename to ...
1292 (estimate_node_size_and_time): take NODE instead of EDGE;
1293 take POSSIBLE_TRUTHS as argument.
1294 (estimate_callee_size_and_time): Update.
1295 (estimate_ipcp_clone_size_and_time): New function.
1296 (do_estimate_edge_time): Update.
1298 2011-05-08 Richard Guenther <rguenther@suse.de>
1302 * expmed.c (expand_shift_1): Compute adjusted constant shift
1305 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1307 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1309 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1311 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1313 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1315 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1317 2011-05-07 Jan Hubicka <jh@suse.cz>
1319 * ipa-inline-transform.c (inline_call): Account when program size
1321 * ipa-inline.c (relative_time_benefit): New function.
1322 (edge_badness): Reorganize to be power 2 based; fix thinko when
1323 computing badness for negative growth; update comments to match
1324 reality; better dumps.
1326 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1328 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1329 type to bool and adjust comment.
1330 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1331 (fold_mathfn_compare): Remove calls to global_bindings_p.
1332 (fold_inf_compare): Likewise.
1333 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1334 * c-tree.h (global_bindings_p): Adjust prototype.
1335 * c-decl.c (global_bindings_p): Return bool and simplify.
1337 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1339 PR tree-optimization/48837
1340 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1341 when accumulator transformation is performed.
1343 2011-05-06 Jan Hubicka <jh@suse.cz>
1345 * i386.h (ix86_tune_indices): Add
1346 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1347 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1348 * i386.c (initial_ix86_tune_features): Add
1349 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1350 (software_prefetching_beneficial_p): Remove predicate.
1351 (ix86_option_override_internal): Use new macro.
1353 2011-05-06 Jan Hubicka <jh@suse.cz>
1355 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1357 2011-05-06 Jan Hubicka <jh@suse.cz>
1359 * cgraph.c (cgraph_add_thunk): Create real function node instead
1360 of alias node; finalize it and mark needed/reachale; arrange visibility
1361 to be right and add it into the corresponding same comdat group list.
1362 (dump_cgraph_node): Dump thunks.
1363 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1364 cgraph_function_with_gimple_body_p,
1365 cgraph_first_function_with_gimple_body,
1366 cgraph_next_function_with_gimple_body): New functions.
1367 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1369 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1370 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1371 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1372 devirtualization when optimizing.
1373 (verify_cgraph_node): Verify thunks.
1374 (cgraph_analyze_function): Analyze thunks.
1375 (cgraph_mark_functions_to_output): Output thunks only in combination
1376 with function they are assigned to.
1377 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1378 alias into normal node.
1379 (assemble_thunks): New functoin.
1380 (cgraph_expand_function): Use it.
1381 * lto-cgraph.c (lto_output_node): Stream thunks.
1382 (input_overwrite_node): Stream in thunks.
1383 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1384 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1385 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1386 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1387 (inline_analyze_function): Do not care about thunk jump functions.
1388 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1389 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1390 cgraph_function_with_gimple_body_p.
1391 * passes.c (do_per_function_toporder): Use
1392 cgraph_function_with_gimple_body_p.
1393 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1394 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1395 (function_called_by_processed_nodes_p): Likewise.
1397 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1399 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1400 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1402 (mabi=): Replace with separate entries for mabi=altivec,
1403 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1404 mabi=ieeelongdouble and mabi=ibmlongdouble.
1405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1406 check for -mabi=spe without SPE ABI support here.
1407 (rs6000_handle_option): Replace OPT_mabi_ handling with
1408 OPT_mabi_altivec and OPT_mabi_spe handling.
1410 2011-05-06 Cary Coutant <ccoutant@google.com>
1412 * dwarf2out.c (contains_subprogram_definition): New function.
1413 (should_move_die_to_comdat): Call it.
1415 2011-05-06 Jeff Law <law@redhat.com>
1417 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1418 remove_ctrl_stmt_and_useless_edges.
1419 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1420 (fixup_template_block, thread_single_edge): Likewise.
1421 (mark_threaded_blocks): Use THREAD_TARGET.
1423 2011-05-06 Alan Modra <amodra@gmail.com>
1426 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1427 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1429 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1431 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1432 constraint modifier to "r".
1434 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1436 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1437 fall through for OPT_mcmodel_.
1439 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1441 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1443 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1445 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1448 * config/arm/arm.opt (marm): Document it.
1449 (mthumb): Reject negative variant.
1451 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1454 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1455 Fix typo in "ccvt" variable name.
1457 2011-05-06 Tristan Gingold <gingold@adacore.com>
1460 * config/vms/vms-ar.c (main): Remove cwd variable.
1462 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1465 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1467 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1469 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1470 * gimplify.c (gimplify_switch_expr): Likewise.
1471 * omp-low.c (expand_omp_sections): Likewise.
1472 * tree-eh.c (lower_try_finally_switch): Likewise.
1473 (lower_eh_dispatch): Likewise.
1474 * tree.h (build_case_label): Declare.
1475 * tree.c (build_case_label): Define.
1477 2011-05-05 Jason Merrill <jason@redhat.com>
1480 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1481 (copy_statement_list): Don't recurse.
1482 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1485 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1487 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1488 through from -mfpu= handling.
1489 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1491 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1493 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1496 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1498 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1500 (hppa[12]*-*-hpux11*): Ditto.
1501 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1502 * config/ia64/hpux-unix2003.h: New.
1503 * config/pa/pa-hpux1131.opt: New.
1504 * config/pa/pa-hpux1131.h: New.
1505 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1506 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1507 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1509 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1512 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1513 instead of mode as 3rd argument to recursive call.
1514 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1515 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1517 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1518 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1519 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1520 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1522 2011-05-05 Julian Brown <julian@codesourcery.com>
1524 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1525 parenthesis in D-register case.
1527 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1529 * opt-functions.awk (var_type_struct): Handle Enum options.
1530 * optc-gen.awk: Don't check range of variables of character type.
1531 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1532 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1533 rs6000_sdata_name, rs6000_explicit_options): Remove.
1534 (rs6000_option_override_internal): Check for -malign-power here.
1535 Use global_options_set instead of rs6000_explicit_options.
1536 (rs6000_parse_fpu_option): Remove.
1537 (rs6000_handle_option): Access variables via opts and opts_set
1538 pointers. Use error_at and warning_at. Add fall-through
1539 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1540 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1541 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1542 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1543 here. Don't use rs6000_parse_fpu_option.
1544 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1545 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1546 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1548 (mspe): Use Var and Save.
1549 (mtraceback=): Use Enum and Var.
1550 (rs6000_traceback_type): New Enum and EnumValue entries.
1551 (mfloat-gprs=): Use Enum, Var and Save.
1552 (rs6000_float_gprs): New Enum and EnumValue entries.
1553 (mlong-double-): use Var and Save.
1554 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1555 (malign-): Use Enum and Var.
1556 (rs6000_alignment_flags): New Enum and EnumValue entries.
1558 (fpu_type_t): New Enum and EnumValue entries.
1559 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1560 global_options_set instead of rs6000_explicit_options.
1561 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1562 global_options_set instead of rs6000_explicit_options.
1563 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1564 global_options_set instead of rs6000_explicit_options.
1565 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1566 global_options_set instead of rs6000_explicit_options.
1567 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1568 global_options_set instead of rs6000_explicit_options.
1569 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1570 global_options_set instead of rs6000_explicit_options.
1571 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1573 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1574 global_options_set instead of rs6000_explicit_options.
1575 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1576 (rs6000_cmodel): New Enum and EnumValue entries.
1577 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1578 global_options_set instead of rs6000_explicit_options.
1579 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1580 (mtls-size=): Use Enum and Var.
1581 (rs6000_tls_size): New Enum and EnumValue entries.
1583 2011-05-05 Michael Matz <matz@suse.de>
1585 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1586 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1587 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1588 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1589 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1590 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1591 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1592 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1593 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1594 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1595 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1596 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1597 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1598 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1599 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1600 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1602 2011-05-05 Richard Guenther <rguenther@suse.de>
1604 * expmed.c (expand_variable_shift): Rename to ...
1605 (expand_shift_1): ... this. Take an expanded shift amount.
1606 For rotates recurse directly not building trees for the shift amount.
1607 (expand_variable_shift): Wrap around expand_shift_1.
1608 (expand_shift): Adjust.
1610 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1612 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1614 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1616 * tree.h (get_pending_sizes): Remove prototype.
1617 (put_pending_size): Likewise.
1618 (put_pending_sizes): Likewise.
1619 * stor-layout.c (pending_sizes): Delete.
1620 (get_pending_sizes): Likewise.
1621 (put_pending_size): Likewise.
1622 (put_pending_sizes): Likewise.
1623 (variable_size): Do not call put_pending_size and tidy up.
1624 * function.h (struct function): Remove dont_save_pending_sizes_p.
1625 * lto-streamer-in.c (input_function): Do not stream it.
1626 * lto-streamer-out.c (output_function): Likewise.
1627 * tree-inline.c (initialize_cfun): Do not copy it.
1628 * c-decl.c (store_parm_decls): Do not set it.
1629 * omp-low.c (create_task_copyfn): Likewise.
1630 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1632 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1634 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1636 (*movdf_internal): Ditto.
1637 (*movdf_internal_nointeger): Ditto.
1638 (*movsf_internal): Ditto.
1640 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1642 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1643 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1644 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1645 (c_variable_size): Remove.
1646 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1647 call put_pending_sizes.
1648 (get_parm_info): Add parameter expr. Use it to set
1649 arg_info->pending_sizes.
1650 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1652 * c-parser.c (c_parser_parms_declarator): Update call to
1653 c_parser_parms_list_declarator.
1654 (c_parser_parms_list_declarator): Take parameter expr. Update
1655 call to push_parm_decl. Update recursive call. Don't call
1656 get_pending_sizes. Update calls to get_parm_info.
1657 (c_parser_objc_method_definition): Update calls to
1658 c_parser_objc_method_decl and objc_start_method_definition.
1659 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1660 (c_parser_objc_method_decl): Add parameter expr. Update call to
1662 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1663 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1664 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1666 2011-05-05 Michael Hope <michael.hope@linaro.org>
1669 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1672 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1674 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1675 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1676 (spu_output_mi_thunk): New function.
1678 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1680 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1681 targetm.asm_out.print_operand.
1682 * config/sol2.c: Include target.h.
1684 2011-05-04 Jan Hubicka <jh@suse.cz>
1686 * ipa-inline.c (reset_edge_caches): New function.
1687 (update_caller_keys): Add check_inlinablity_for; do not
1688 reset edge caches; remove now unnecesary loop.
1689 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1690 (update_all_callee_keys): Likewise.
1691 (inline_small_functions): Sanity check cache; update code
1694 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1696 PR rtl-optimization/47612
1697 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1698 as the last insn of the sequence to be moved.
1700 2011-05-04 Tobias Burnus <burnus@net-b.de>
1703 * doc/invoke.texi (Ofast): Document that it
1704 enables Fortran's -fno-protect-parens.
1706 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1708 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1710 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1712 * stor-layout.c (variable_size): Do not issue errors.
1714 2011-05-04 Richard Guenther <rguenther@suse.de>
1716 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1717 for array-ref indices.
1718 (tree_coverage_counter_addr): Likewise.
1719 (build_fn_info_type): Use size_int for index types.
1720 (build_gcov_info): Likewise.
1722 2011-05-04 Richard Guenther <rguenther@suse.de>
1724 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1726 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1727 for constructor indices.
1728 (push_init_level): Likewise.
1730 2011-05-04 Richard Guenther <rguenther@suse.de>
1732 * explow.c (promote_mode): Move variable declarations before code.
1734 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1736 * tree.h (build_function_type_array): Declare.
1737 (build_varargs_function_type_array): Declare.
1738 (build_function_type_vec, build_varargs_function_type_vec): Define.
1739 * tree.c (build_function_type_array_1): New function.
1740 (build_function_type_array): New function.
1741 (build_varargs_function_type_array): New function.
1743 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1745 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1746 before setting STMT_VINFO_TYPE.
1748 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1750 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1751 instead of spu_pass_by_reference.
1753 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1755 * calls.c (emit_library_call_value_1): Invoke
1756 promote_function_mode hook on libcall arguments.
1757 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1758 argument being NULL.
1759 * targhooks.c (default_promote_function_mode): Lisewise.
1760 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1761 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1763 * doc/tm.texi: Document that TYPE argument might be NULL.
1765 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1767 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1769 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1772 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1774 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1776 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1777 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1779 * mips-tfile.c: ... here.
1780 Don't include coretypes.h, tm.h, filenames.h.
1781 (saber_stop): Remove definition and all calls.
1782 [__SABER__]: Remove.
1783 (__LINE__): Remove default.
1784 (Size_t, Ptrdiff_t): Remove definitions.
1785 Replace by size_t, ptrdiff_t.
1786 [!MIPS_DEBUGGING_INFO]: Remove.
1787 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1788 (progname): Add const.
1790 Replace all uses by static.
1791 (ALIGN_SYMTABLE_OFFSET): Remove default.
1792 * mips-tdump.c: Don't include coretypes.h, tm.h.
1793 Remove !MIPS_IS_STAB guard.
1794 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1795 $(TM_H), filenames.h dependencies.
1796 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1798 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1801 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1802 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1804 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1807 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1808 account and save/restore RETS.
1809 (PROFILE_BEFORE_PROLOGUE): Define.
1810 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1811 the push insn to use predecrement.
1813 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1816 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1818 2011-05-04 Nick Clifton <nickc@redhat.com>
1820 * config/mn10300/mn10300.c: Include cfgloop.h.
1822 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1823 Lcc or a FLcc insn into the instruction stream.
1824 (mn10300_block_contains_call): New function. Returns true if the
1825 given basic block contains a CALL insn.
1826 (mn10300_loop_contains_call_insn): New function. Returns true if
1827 the given loop contains a CALL insn.
1828 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1829 to use the SETLB and Lcc or FLcc insns.
1830 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1831 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1832 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1833 disable the SETLB optimization.
1834 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1835 __SETLB__ or __NO_SETLB__.
1836 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1837 (movsf_internal): Handle MDR register.
1838 (cmpsi): Make visible.
1839 (setlb): New pattern.
1841 (FLcc): New pattern.
1843 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1846 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1847 for reg<->xmm moves.
1848 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1849 (vec_concatv2di_rex64_sse): Ditto.
1850 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1851 (*vec_extractv2di_1_rex64): Ditto.
1854 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1856 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1858 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1860 2011-05-04 Richard Guenther <rguenther@suse.de>
1862 * tree.h (int_const_binop): Remove notrunc argument.
1863 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1864 create integer constants that are properly truncated.
1865 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1866 (const_binop): Remove zero notrunc argument to int_const_binop.
1867 (size_binop_loc): Likewise.
1868 (fold_div_compare): Likewise.
1869 (maybe_canonicalize_comparison_1): Likewise.
1870 (fold_comparison): Likewise.
1871 (fold_binary_loc): Likewise.
1872 (multiple_of_p): Likewise.
1873 * expr.c (store_constructor): Likewise.
1874 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1875 (maybe_fold_stmt_addition): Likewise.
1876 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1877 * stor-layout.c (layout_type): Likewise.
1878 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1879 * tree-sra.c (build_ref_for_offset): Likewise.
1880 (build_user_friendly_ref_for_offset): Likewise.
1881 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1882 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1883 * tree-ssa-loop-niter.c (inverse): Likewise.
1884 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1885 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1886 * tree-switch-conversion.c (check_range): Likewise.
1887 (build_constructors): Likewise.
1888 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1889 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1890 (extract_range_from_assert): Likewise.
1891 (vrp_int_const_binop): Likewise.
1892 (extract_range_from_binary_expr): Likewise.
1893 (extract_range_from_unary_expr): Likewise.
1894 (check_array_ref): Likewise.
1895 (find_case_label_range): Likewise.
1896 (simplify_div_or_mod_using_ranges): Likewise.
1897 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1898 comparing case labels for merging.
1900 2011-05-03 Mark Wielaard <mjw@redhat.com>
1902 * dwarf2out.c (debug_str_hash_forced): Removed.
1903 (gen_label_for_indirect_string): Removed.
1904 (get_debug_string_label): Removed.
1905 (AT_string_form): Generate label directly.
1906 (output_indirect_string): Test indirect_string_node for
1907 DW_FORM_strp instead of checking label and refcount.
1908 (prune_indirect_string): Removed.
1909 (prune_unused_types): Don't check debug_str_hash_forced or
1910 call prune_indirect_string.
1912 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1915 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1917 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1921 * combine.c (try_combine): Skip debug insns at m_split tests.
1923 2011-04-26 Mark Wielaard <mjw@redhat.com>
1926 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1927 when info_section_emitted.
1929 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1931 * config/mips/mips-opts.h: New.
1932 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1934 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1935 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1936 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1938 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1940 (mips_abi, mips_code_readable): Don't declare.
1941 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1942 (mabi=): Use Enum and Var.
1943 (mips_abi): New Enum and EnumValue entries.
1944 (mcode-readable=): Use Enum and Var.
1945 (mips_code_readable_setting): New Enum and EnumValue entries.
1946 (mr10k-cache-barrier=): Use Enum and Var.
1947 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1949 2011-05-03 Jan Hubicka <jh@suse.cz>
1951 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1952 replace hash by pointer map.
1953 (cgraph_node_set_element_def, cgraph_node_set_element,
1954 const_cgraph_node_set_element, varpool_node_set_element_def,
1955 varpool_node_set_element, const_varpool_node_set_element): Remove.
1956 (free_cgraph_node_set, free_varpool_node_set): New function.
1957 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1958 * tree-emutls.c: Free varpool node set.
1959 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1960 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1961 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1962 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1963 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1964 Move here from ipa.c; implement using pointer_map
1965 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1966 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1967 debug_cgraph_node_set, varpool_node_set_new,
1968 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1969 dump_varpool_node_set, debug_varpool_node_set):
1970 Move to ipa-uitls.c.
1971 * passes.c (ipa_write_summaries): Update.
1973 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1975 From Mike Frysinger:
1976 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1977 bf542/bf544/bf547/bf548/bf549.
1979 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1981 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1983 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1986 * config/bfin/bfin.md (MOVCC): New mode_macro.
1987 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1988 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1989 comments from generated assembly.
1991 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1994 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1995 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1996 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1997 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1998 * config/bfin/lib1funcs.asm (___muldi3): New function.
2000 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2002 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2003 build_function_type_list instead of build_function_type.
2004 Rearrange initialization of `args' to do so.
2006 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2008 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2009 instead of build_function_type.
2011 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2013 * config/rs6000/rs6000.c (spe_init_builtins): Call
2014 build_function_type_list instead of build_function_type.
2015 (paired_init_builtins, altivec_init_builtins): Likewise.
2016 (builtin_function_type): Likewise.
2018 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2020 * config/sh/sh.c (sh_media_init_builtins): Call
2021 build_function_type_list instead of build_function_type.
2023 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2025 * config/sparc/sparc.c (sparc_file_end): Call
2026 build_function_type_list instead of build_function_type.
2028 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2030 * config/alpha/alpha.c (alpha_init_builtins): Call
2031 build_function_type_list instead of build_function_type.
2033 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2035 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2036 build_function_type_list instead of build_function_type.
2038 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2040 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2041 build_function_type_list instead of build_function_type.
2042 Delete `endlink' variable.
2044 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2046 * config/avr/avr.c (avr_init_builtins): Call
2047 build_function_type_list instead of build_function_type.
2049 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2051 * config/picochip/picochip.c (picochip_init_builtins): Call
2052 build_function_type_list instead of build_function_type.
2053 Delete `endlink' variable.
2055 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2057 * config/bfin/bfin.c (bfin_init_builtins): Call
2058 build_function_type_list instead of build_function_type.
2060 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2063 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2064 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2066 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2069 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2070 libbffastfp overrides libgcc when -mfast-fp.
2072 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2074 Originally from Bernd Schmidt
2075 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2076 * config/bfin/bfin.c (override_options): Test it and error if
2079 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2081 Originally From Bernd Schmidt
2082 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2085 2011-05-03 Jeff Law <law@redhat.com>
2087 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2088 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2089 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2090 than accessing AUX field directly. Free the AUX field before
2092 (thread_block, thread_through_loop_header): Likewise.
2093 (thread_single_edge, mark_threaded_blocks): Likewise.
2094 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2095 (register_jump_thread): Do not attempt to thread to a NULL edge.
2097 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2099 * function.c (init_function_start): Call decide_function_section.
2100 * varasm.c (decide_function_section): New function.
2101 (assemble_start_function): When not using
2102 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2103 or first_function_block_is_cold.
2104 * rtl.h (decide_function_section): Declare.
2106 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2107 Jakub Jelinek <jakub@redhat.com>
2110 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2111 only succeed if req_mode is the same as set_mode.
2113 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2115 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2116 * genemit.c (gen_exp): Handle RETURN.
2117 * emit-rtl.c (verify_rtx_sharing): Likewise.
2118 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2119 * rtl.c (copy_rtx): RETURN is shared.
2120 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2122 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2123 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2124 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2125 * config/cris/cris.c (cris_expand_return): Likewise.
2126 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2127 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2128 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2129 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2130 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2132 * config/v850/v850.c (expand_epilogue): Likewise.
2133 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2134 * config/arm/arm.md (epilogue): Likewise.
2135 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2136 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2137 variable to ret_reg.
2139 2011-05-03 Richard Guenther <rguenther@suse.de>
2142 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2143 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2144 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2146 2011-05-03 Richard Guenther <rguenther@suse.de>
2148 * c-decl.c (grokdeclarator): Instead of looking at
2149 TREE_OVERFLOW check if the constant fits in the index type.
2151 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2153 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2154 (vec_store_lanes<mode><mode>): Likewise.
2156 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2158 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2159 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2160 convert_optab_index values.
2161 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2162 * genopinit.c (optabs): Initialize the new optabs.
2163 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2164 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2165 (expand_STORE_LANES): New functions.
2166 * tree.h (build_array_type_nelts): Declare.
2167 * tree.c (build_array_type_nelts): New function.
2168 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2169 (vect_model_load_cost): Likewise.
2170 (vect_store_lanes_supported, vect_load_lanes_supported)
2171 (vect_record_strided_load_vectors): Declare.
2172 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2173 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2174 (vect_transform_strided_load): Split out statement recording into...
2175 (vect_record_strided_load_vectors): ...this new function.
2176 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2177 (write_vector_array, create_array_ref): New functions.
2178 (vect_model_store_cost): Add store_lanes_p argument.
2179 (vect_model_load_cost): Add load_lanes_p argument.
2180 (vectorizable_store): Try to use store-lanes functions for
2182 (vectorizable_load): Likewise load-lanes and loads.
2183 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2184 to vect_model_store_cost.
2185 (vect_build_slp_tree): Likewise vect_model_load_cost.
2187 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2189 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2190 * hooks.c (hook_bool_mode_uhwi_false): New function.
2191 * target.def (array_mode_supported_p): New hook.
2192 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2193 * doc/tm.texi: Regenerate.
2194 * stor-layout.c (mode_for_array): New function.
2195 (layout_type): Use it.
2196 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2197 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2199 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2202 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2203 for -fstack-check if the size to allocate is negative.
2205 2011-05-02 Lawrence Crowl <crowl@google.com>
2207 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2208 (timevar_cond_start): New for starting a timer only when it is not
2210 (timevar_cond_stop): New for stopping a timer when it was not already
2213 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2214 (timevar_cond_start): New as above.
2215 (timevar_cond_stop): New as above.
2217 * timevar.def: Add start/stop timers for compiler phases,
2218 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2219 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2220 and TV_PHASE_FINALIZE.
2221 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2222 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2223 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2224 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2225 Make unused TV_OVERLOAD into a start/stop timer.
2227 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2228 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2229 to indicate that they are start/stop timers.
2231 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2232 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2233 Move initialization to do_compile.
2234 (do_compile): Add initialization from above.
2235 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2237 * c-decl.c (c_write_global_declarations): Add start/stop of
2238 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2240 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2241 or TV_PARSE_INLINE, as appropriate.
2242 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2243 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2245 2011-05-02 Jason Merrill <jason@redhat.com>
2248 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2250 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2253 * c-decl.c (finish_decl): Only create a composite if the types are
2256 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2258 * config/fr30/fr30-protos.h (Mmode): Don't define.
2259 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2260 definition where used.
2261 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2262 define. Expand definitions where used.
2263 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2264 Expand definitions where used.
2265 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2266 rx_function_arg, rx_function_arg_advance,
2267 rx_function_arg_boundary): Expand definitions of those macros.
2268 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2269 definition where used.
2271 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2273 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2275 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2276 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2277 with *movv2sf_internal_rex64_avx.
2278 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2279 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2280 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2281 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2282 "vex" in "prefix" attribute calculation.
2283 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2285 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2288 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2289 inputs match the output.
2291 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2294 * config/m68k/m68k.c (m68k_expand_prologue): Set
2295 current_function_static_stack_size.
2297 2011-05-02 Jan Hubicka <jh@suse.cz>
2299 * lto-streamer.c (lto_streamer_cache_insert_1,
2300 lto_streamer_cache_lookup, lto_streamer_cache_create,
2301 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2302 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2304 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2306 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2307 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2308 config/m68k/t-opts: New files.
2309 * config/m68k/m68k-tables.opt: New file (generated).
2310 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2311 extra_options and m68k/t-opts to tmake_file.
2312 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2313 (all_isas): Initialize using m68k-isas.def.
2314 (all_microarchs): Initialize using m68k-microarchs.def.
2315 (m68k_find_selection): Remove.
2316 (m68k_handle_option): Don't assert that global structures are in
2317 use. Use error_at. Access variables via opts pointer. Don't
2318 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2319 directly for -m68020-40 and -m68020-60.
2320 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2321 m68k_tune_entry here.
2322 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2324 (m68k_library_id_string): Remove declaration.
2325 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2326 (m68k_library_id_string): New Variable.
2327 (march=, mcpu=, mtune=): Use Enum and Var.
2329 2011-05-02 Richard Guenther <rguenther@suse.de>
2331 * varasm.c (output_constructor_regular_field): Compute zero-based
2332 index with double-ints. Make sure to ICE instead of producing
2334 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2335 in asserts. Properly use a signed type.
2337 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2339 * config/i386/sse.md (V): New mode iterator.
2340 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2342 (V_256): Rename from AVX256MODE.
2343 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2344 condition to all users.
2346 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2347 condition to all users.
2348 (VF_128): Make V4SF mode unconditional.
2349 (VF_256): Rename from AVX256MODEF2P.
2350 (VI4F_128): Rename from SSEMODE4S.
2351 (VI8F_128): Rename from SSEMODE2D.
2352 (VI4F_256): Rename from AVX256MODE8P.
2353 (VI8F_256): Rename from AVX256MODE4P.
2354 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2355 (ssescalarmodesuffix): Remove SF and DF modes.
2356 (SSEMODE124): Remove.
2357 (SSEMODE1248): Ditto.
2358 (SSEMODEF2P): Ditto.
2359 (AVXMODEF2P): Ditto.
2360 (AVXMODEFDP): Ditto.
2361 (AVXMODEFSP): Ditto.
2362 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2364 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2366 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2367 xop_pcmov_<mode>256. Use V mode iterator.
2369 Adjust RTX patterns globally for renamed mode attributes.
2371 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2373 * haifa-sched.c (sched_emit_insn): Emit insn before first
2374 non-scheduled insn. Inform back-end about new insn. Add
2375 new insn to scheduled_insns list.
2377 2011-05-02 Richard Guenther <rguenther@suse.de>
2379 PR tree-optimization/48822
2380 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2381 (process_scc): Indicate which iteration we start.
2383 2011-05-02 Jan Hubicka <jh@suse.cz>
2385 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2386 (lto_section_overrun): New.
2387 * lto-section-out.c (append_block): Rename to ...
2388 (lto_append_block): ... this one; export.
2389 (lto_output_1_stream): Move lto lto-streamer.h
2390 (lto_output_data_stream): Update.
2391 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2392 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2395 2011-05-02 Richard Guenther <rguenther@suse.de>
2397 * tree.c (tree_code_counts): New global array.
2398 (record_node_allocation_statistics): Count individual tree codes.
2399 (dump_tree_statistics): Dump individual code stats.
2401 2011-05-01 Jan Hubicka <jh@suse.cz>
2403 * ipa-inline.c (caller_growth_limits): Fix thinko when
2404 looking for largest stack frame.
2405 * ipa-inline.h (dump_inline_summary): Declare.
2406 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2408 (dump_inline_summary): Export.
2409 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2411 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2413 * reginfo.c (memory_move_cost): Change rclass argument type form
2414 'enum reg_class' to reg_class_t.
2415 * reload.h (memory_move_cost): Update prototype.
2416 * postreload.c reload_cse_simplify_set): Change type dclass var to
2418 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2420 (ira_allocate_and_set_costs): Change aclass argument type form
2421 'enum reg_class' to reg_class_t.
2422 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2423 Change aclass argument type to reg_class_t.
2424 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2426 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2427 memory_move_cost call.
2429 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2430 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2431 Change type tmp var to reg_class_t.
2433 2011-04-30 Jan Hubicka <jh@suse.cz>
2435 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2436 inlining into function with flatten attribute.
2437 (want_inline_small_function_p): Be more realistic about inlining
2438 cold calls where callee size grows.
2440 2011-04-30 Jan Hubicka <jh@suse.cz>
2442 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2445 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2447 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2448 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2449 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2450 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2451 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2452 (print_operand): Rename to...
2453 (sparc_print_operand): ...this. Make static. Adjust
2454 sparc_print_operand function call.
2455 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2458 2011-04-30 Jan Hubicka <jh@suse.cz>
2461 * ipa-inline.c (early_inliner): Disable when doing late
2462 addition of function.
2464 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2466 * dwarf2out.c (get_address_mode): New inline.
2467 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2468 if not dwarf_strict emit
2469 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2470 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2471 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2472 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2473 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2474 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2475 mem_loc_descriptor callers.
2476 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2477 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2478 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2479 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2480 (base_types): New variable.
2481 (get_base_type_offset, calc_base_type_die_sizes,
2482 base_type_for_mode, mark_base_types, base_type_cmp,
2483 move_marked_base_types): New functions.
2484 (calc_die_sizes): Assert that die_offset is 0 or equal to
2486 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2487 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2488 callers. If not dwarf_strict, call mem_loc_descriptor even for
2489 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2490 (gen_subprogram_die): Don't give up on call site parameters
2491 with non-integral or large integral modes. Adjust
2492 mem_loc_descriptor callers.
2493 (prune_unused_types): Call prune_unused_types_mark on base_types
2495 (resolve_addr): Call mark_base_types.
2496 (dwarf2out_finish): Call move_marked_base_types.
2498 PR tree-optimization/48809
2499 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2501 (gen_inbound_check): Don't compute index_expr - range_min in utype
2502 again, instead reuse SSA_NAME initialized in build_arrays.
2503 Remove two useless gsi_for_stmt calls.
2505 2011-04-29 Jeff Law <law@redhat.com>
2507 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2509 2011-04-29 Martin Jambor <mjambor@suse.cz>
2511 * cgraph.h (cgraph_postorder): Remove declaration.
2512 * ipa-utils.h (ipa_free_postorder_info): Declare.
2513 (ipa_reverse_postorder): Likewise.
2514 * cgraphunit.c: Include ipa-utils.h.
2515 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2516 * ipa-inline.c: Include ipa-utils.h.
2517 (ipa_inline): Update call to ipa_reverse_postorder.
2518 * ipa-pure-const.c (propagate_pure_const): Update call to
2519 ipa_reduced_postorder and ipa_print_order. Call
2520 ipa_free_postorder_info to clean up.
2521 (propagate_nothrow): Likewise.
2522 * ipa-reference.c (propagate): Removed a useless call to
2523 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2524 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2525 * ipa.c: Include ipa-utils.h.
2526 (ipa_profile): Update call to ipa_reverse_postorder.
2527 (cgraph_postorder): Moved to...
2528 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2529 (ipa_utils_print_order): Renamed to ipa_print_order.
2530 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2532 (ipa_free_postorder_info): New function.
2533 * passes.c: Include ipa-utils.h.
2534 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2535 (ipa_write_summaries): Likewise.
2536 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2537 (cgraphunit.o): Likewise.
2539 (ipa-inline.o): Likewise.
2541 2011-04-29 Jan Hubicka <jh@suse.cz>
2543 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2544 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2545 * ipa-inline.h (clause_t): Turn into unsigned int.
2546 * ipa-inline-analysis.c (add_clause): Do more simplification.
2547 (and_predicates): Shortcut more cases.
2548 (predicates_equal_p): Move forward; check that clauses are properly
2550 (or_predicates): Shortcut more cases.
2551 (edge_execution_predicate): Rewrite as...
2552 (set_cond_stmt_execution_predicate): ... this function; handle
2553 __builtin_constant_p.
2554 (set_switch_stmt_execution_predicate): New .
2555 (compute_bb_predicates): New.
2556 (will_be_nonconstant_predicate): Update TODO.
2557 (estimate_function_body_sizes): Use compute_bb_predicates
2558 and free them later, always try to estimate if stmt is constant.
2559 (estimate_time_after_inlining, estimate_size_after_inlining):
2560 Gracefully handle optimized out edges.
2561 (read_predicate): Fix off by one error.
2563 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2565 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2567 2011-04-27 Xinliang David Li <davidxl@google.com>
2569 * tree-profile.c (init_ic_make_global_vars): Set
2570 tls attribute on ic vars.
2571 * coverage.c (coverage_end_function): Initialize
2572 function_list with zero.
2574 2011-04-29 Richard Guenther <rguenther@suse.de>
2576 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2577 for the type of the result.
2578 (fold_builtin_isascii): Likewise.
2579 (fold_builtin_toascii): Use integer_type_node where appropriate.
2580 (fold_builtin_logb): Likewise.
2581 (fold_builtin_frexp): Likewise.
2582 (fold_builtin_strstr): Likewise.
2583 (fold_builtin_strpbrk): Likewise.
2584 (fold_builtin_fputs): Likewise.
2585 (fold_builtin_sprintf): Likewise.
2586 (fold_builtin_snprintf): Likewise.
2587 (fold_builtin_printf): Likewise.
2588 (do_mpfr_remquo): Use a proper type for the assigned constant.
2589 (do_mpfr_lgamma_r): Likewise.
2590 * dwarf2out.c (resolve_one_addr): Use size_int.
2591 * except.c (init_eh): Likewise.
2592 (assign_filter_values): Use integer_type_node for filter values.
2593 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2595 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2596 for EH region numbers.
2597 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2598 for the shift amount.
2600 2011-04-29 Richard Guenther <rguenther@suse.de>
2602 * expr.h (expand_shift): Rename to ...
2603 (expand_variable_shift): ... this.
2604 (expand_shift): Take a constant shift amount.
2605 * expmed.c (expand_shift): Rename to ...
2606 (expand_variable_shift): ... this.
2607 (expand_shift): New wrapper around expand_variable_shift.
2608 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2609 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2610 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2611 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2612 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2613 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2614 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2615 emit_store_flag_1, emit_store_flag): Likewise.
2616 * builtins.c (expand_builtin_signbit): Likewise.
2617 * calls.c (load_register_parameters): Likewise.
2618 * function.c (assign_parm_setup_block): Likewise.
2619 * lower-subreg.c (resolve_shift_zext): Likewise.
2620 * optabs.c (widen_bswap, expand_abs_nojump,
2621 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2622 * spu/spu.c (spu_expand_extv): Likewise.
2623 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2625 2011-04-29 Richard Guenther <rguenther@suse.de>
2627 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2628 for the remapped region number.
2629 * predict.c (build_predict_expr): Use integer_type_node for the
2631 * fold-const.c (fold_binary_loc): Use integer_type_node for
2632 the shift amount. Use a proper type for the PLUS_EXPR operand.
2634 2011-04-29 Michael Matz <matz@suse.de>
2636 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2637 other trees that just builtins.
2638 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2640 2011-04-29 Richard Guenther <rguenther@suse.de>
2642 * tree-nested.c (get_trampoline_type): Use size_int.
2643 (get_nl_goto_field): Likewise.
2644 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2646 (lower_eh_constructs_2): Likewise.
2647 (lower_resx): Likewise.
2648 (lower_eh_dispatch): Likewise.
2649 * tree-mudflap.c (mf_build_string): Use size_int.
2650 (mudflap_register_call): Use integer_type_node for the flag.
2651 (mudflap_enqueue_constant): Use size_int.
2652 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2653 instead of rebuilding it.
2655 2011-04-29 Richard Guenther <rguenther@suse.de>
2657 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2658 Handle OBJ_TYPE_REF.
2659 (find_func_aliases_for_call): Use it more consistently.
2661 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2663 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2664 (rank_for_schedule): Use it.
2665 (schedule_block): Set it.
2667 2011-04-28 David Li <davidxl@google.com>
2669 * tree.c (crc32_string): Use crc32_byte.
2670 (crc32_byte): New function.
2671 * tree.h (crc32_byte): New function.
2672 * gcov.c (read_graph_file): Handle new cfg_cksum.
2673 (read_count_file): Ditto.
2674 * profile.c (instrument_values): Ditto.
2675 (get_exec_counts): Ditto.
2676 (read_profile_edge_counts): Ditto.
2677 (compute_branch_probabilities): Ditto.
2678 (compute_value_histograms): Ditto.
2679 (branch_prob): Ditto.
2680 (end_branch_prob): Ditto.
2681 * coverage.c (read_counts_file): Ditto.
2682 (get_coverage_counts): Ditto.
2683 (tree_coverage_counter_addr): Ditto.
2684 (coverage_checksum_string): Ditto.
2685 (coverage_begin_output): Ditto.
2686 (coverage_end_function): Ditto.
2687 (build_fn_info_type): Ditto.
2688 (build_fn_info_value): Ditto.
2689 * libgcov.c (gcov_exit): Ditto.
2690 * gcov-dump.c (tag_function): Ditto.
2691 (compute_checksum): Remove.
2693 2011-04-29 Alan Modra <amodra@gmail.com>
2695 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2696 unspec plus offset. Tidy macho code.
2698 2011-04-29 Martin Jambor <mjambor@suse.cz>
2700 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2701 node instead of a decl. Update all callers.
2702 * cgraph.h: Update declaration.
2704 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2706 PR tree-optimization/48765
2707 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2708 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2709 to indicate if loop aware SLP is being used. Scan the statements
2710 and update the vectorization factor according to the type of
2711 vectorization before statement analysis.
2712 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2713 pass it to vect_analyze_loop_operations.
2714 (vectorizable_reduction): Set number of copies to 1 in case of pure
2716 * tree-vect-stmts.c (vectorizable_conversion,
2717 vectorizable_assignment, vectorizable_shift,
2718 vectorizable_operation, vectorizable_type_demotion,
2719 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2721 (vectorizable_condition): Move the check that it is not SLP
2722 vectorization before the number of copies check.
2723 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2724 to vectorize the loop using SLP.
2726 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2729 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2732 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2734 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2735 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2736 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2737 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2738 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2740 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2741 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2742 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2743 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2744 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2745 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2747 * config/i386/linux.h (REG_NAME): Don't define.
2748 * config/i386/linux64.h (REG_NAME): Don't define.
2749 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2750 Undefine before defining.
2752 2011-04-28 Jan Hubicka <jh@suse.cz>
2754 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2755 nonconstant_names array.
2756 (estimate_function_body_sizes): Build nonconstant_names array; handle
2757 BUILT_IN_CONSTANT_P.
2759 2011-04-28 Richard Guenther <rguenther@suse.de>
2763 2011-04-28 Richard Guenther <rguenther@suse.de>
2765 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2766 as late as possible.
2768 2011-04-28 Richard Guenther <rguenther@suse.de>
2770 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2771 (debug_constraint): Do it here.
2772 (dump_constraints): And here.
2773 (rewrite_constraints): And here.
2774 (dump_constraint_edge): Remove.
2775 (dump_constraint_graph): Rewrite to produce DOT output.
2776 (solve_constraints): Build succ graph as late as possible.
2777 Dump constraint graphs before and after solving.
2779 2011-04-28 Richard Guenther <rguenther@suse.de>
2781 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2782 New function split out from ...
2783 (find_func_aliases): ... here. Call it.
2784 (find_func_aliases_for_call): Likewise.
2786 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2788 * internal-fn.h (internal_fn_name_array): Declare.
2789 (internal_fn_flags_array): Likewise.
2791 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2793 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2794 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2796 (ssemodefsuffix): Remove.
2797 (ssevecmodesuffix): New mode attribute.
2798 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2799 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2800 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2801 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2802 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2803 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2804 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2805 ssemodesuffix mode attribute.
2806 (float splitters): Use ssevecmodesuffix mode attribute.
2807 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2808 (sseinsmode): Rename from avxvecmode.
2809 (avxsizesuffix): Rename from avxmodesuffix.
2810 (sseintvecmode): Rename from avxpermvecmode.
2811 (ssedoublevecmode): Rename from ssedoublesizemode.
2812 (ssehalfvecmode): Rename from avxhalfvecmode.
2813 (ssescalarmode): Rename from avxscalarmode.
2814 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2815 templates for ssemodesuffix mode attribute.
2816 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2819 Adjust RTX patterns globally for renamed mode attributes.
2821 2011-04-27 Jan Hubcika <jh@suse.cz>
2823 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2824 * ipa-inline-analysis.c: Include alloc-pool.h.
2825 (edge_predicate_pool): New.
2826 (trye_predicate_p): New function
2827 (false_predicate_p): New function.
2828 (add_clause): Sanity check that false clauses are "optimized";
2829 never add clauses to predicate that is already known to be false.
2830 (and_predicate): Use flase_predicate_p.
2831 (evaulate_predicate): Rename to ...
2832 (evaluate_predicate): ... this one; update all callers; assert
2833 that false is not listed among possible truths.
2834 (dump_predicate): Use true_predicate_p.
2835 (account_size_time): Use false_predicate_p.
2836 (evaulate_conditions_for_edge): Rename to ...
2837 (evaluate_conditions_for_edge) ... this one.
2838 (edge_set_predicate): New function.
2839 (inline_edge_duplication_hook): Duplicate edge predicates.
2840 (inline_edge_removal_hook): Free edge predicates.
2841 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2842 (dump_inline_summary): Update.
2843 (estimate_function_body_sizes): Set edge predicates.
2844 (estimate_calls_size_and_time): Handle predicates.
2845 (estimate_callee_size_and_time): Update.
2846 (remap_predicate): Add toplev_predicate; update comment.
2847 (remap_edge_predicates): New function.
2848 (inline_merge_summary): Compute toplev predicate; update.
2849 (read_predicate): New function.
2850 (read_inline_edge_summary): Use it.
2851 (inline_read_section): Likewise.
2852 (write_predicate): New function.
2853 (write_inline_edge_summary): Use it.
2854 (inline_write_summary): Likewise.
2855 (inline_free_summary): Free alloc pool and edge summary vec.
2857 2011-04-27 Richard Guenther <rguenther@suse.de>
2859 * tree-ssa-structalias.c (changed_count): Remove.
2860 (changed): Use a bitmap.
2861 (unify_nodes): Adjust.
2862 (do_sd_constraint): Likewise.
2863 (do_ds_constraint): Likewise.
2864 (do_complex_constraint): Likewise.
2865 (solve_graph): Likewise.
2867 2011-04-27 Jan Hubicka <jh@suse.cz>
2869 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2871 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2873 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2874 (avx_vperm2f128_*_operand): Ditto.
2875 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2876 Use avx_vpermilp_parallel in insn condition.
2877 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2878 Use avx_vperm2f128_parallel in insn condition.
2880 2011-04-27 Richard Guenther <rguenther@suse.de>
2882 * Makefile.in (tree-ssa-structalias.o): Remove
2883 gt-tree-ssa-structalias.h dependency.
2884 (GTFILES): Remove tree-ssa-structalias.c.
2885 * tree.c (allocate_decl_uid): New function.
2886 (make_node_stat): Use it.
2887 (copy_node_stat): Likewise.
2888 * tree.h (allocate_decl_uid): Declare.
2889 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2890 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2891 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2892 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2893 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2894 (struct heapvar_map): Likewise.
2895 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2896 heapvar_insert): Likewise.
2897 (make_heapvar_for): Rename to ...
2898 (make_heapvar): ... this. Simplify.
2899 (fake_var_decl_obstack): New global var.
2900 (build_fake_var_decl): New function.
2901 (make_constraint_from_heapvar): Adjust.
2902 (handle_lhs_call): Likewise.
2903 (create_function_info_for): Likewise.
2904 (intra_create_variable_infos): Likewise.
2905 (init_alias_vars): Allocate fake_var_decl_obstack.
2906 (init_alias_heapvars, delete_alias_heapvars): Remove.
2907 (compute_points_to_sets): Do not call init_alias_heapvars.
2908 (ipa_pta_execute): Likewise.
2909 (delete_points_to_sets): Free fake_var_decl_obstack.
2911 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2913 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2914 (si_from_UTItype, si_to_UTItype): New functions.
2915 (__udivmodti4): Use them to implement type-punning.
2916 * config/spu/multi3.c (union qword_TItype): New data type.
2917 (si_from_TItype, si_to_TItype): New functions.
2918 (__multi3): Use them to implement type-punning.
2920 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2922 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2924 2011-04-27 Jan Hubicka <jh@suse.cz>
2926 * ipa-prop.c (function_insertion_hook_holder): New holder.
2927 (ipa_add_new_function): New function.
2928 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2929 Register/deregister holder.
2931 2011-04-27 Richard Guenther <rguenther@suse.de>
2933 PR tree-optimization/48772
2934 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2936 2011-04-27 Richard Guenther <rguenther@suse.de>
2938 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2939 TARGET_MEM_REF handling.
2941 2011-04-27 Nick Clifton <nickc@redhat.com>
2943 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2944 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2945 (REG_CLASS_NAMES): Likewise.
2946 (REG_CLASS_CONTENTS): Likewise.
2947 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2948 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2949 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2950 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2951 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2952 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2953 duplicate register classes.
2954 (frv_class_likely_spilled_p): Likewise.
2955 (frv_register_move_cost): Likewise.
2957 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2958 end of the regno_reg_class array.
2960 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2963 * c-typeck.c (build_binary_op): Don't wrap arguments if
2964 int_operands is true.
2966 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2969 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2970 targetm.calls.must_pass_in_stack for void type.
2972 2011-04-26 Jan Hubicka <jh@suse.cz>
2974 * cgraphbuild.c (build_cgraph_edges): Update call
2975 of cgraph_create_edge and cgraph_create_indirect_edge.
2976 * cgraph.c (cgraph_create_edge_including_clones,
2977 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2978 cgraph_update_edges_for_call_stmt_node): Do not take nest
2979 argument; do not initialize call_stmt_size/time.
2980 (dump_cgraph_node): Do not dump nest.
2981 (cgraph_clone_edge): Do not take loop_nest argument;
2982 do not propagate it; do not clone call_stmt_size/time.
2983 (cgraph_clone_node): Likewise.
2984 (cgraph_create_virtual_clone): Update.
2985 * cgraph.h (struct cgraph_edge): Remove
2986 call_stmt_size/call_stmt_time/loop_nest.
2987 (cgraph_create_edge, cgraph_create_indirect_edge,
2988 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2990 * tree-emutls.c (gen_emutls_addr): Update.
2991 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2992 loop_nest; handle indirect calls, too.
2993 (clone_inlined_nodes): Do not care about updating inline summaries.
2994 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2995 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2996 stream call_stmt_size/call_stmt_time/loop_nest.
2997 * ipa-inline.c (edge_badness): Update.
2998 (ipa_inline): dump summaries after inlining.
2999 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3001 (inline_edge_summary): New function.
3002 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3003 (inline_edge_removal_hook): Handle edge summaries.
3004 (inline_edge_duplication_hook): New hook.
3005 (inline_summary_alloc): Alloc hooks.
3006 (initialize_growth_caches): Do not register removal hooks.
3007 (free_growth_caches); Do not free removal hook.
3008 (dump_inline_edge_summary): New function.
3009 (dump_inline_summary): Use it.
3010 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3011 (inline_update_callee_summaries): New function.
3012 (inline_merge_summary): Use it.
3013 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3014 (read_inline_edge_summary): New function.
3015 (inline_read_section): Use it.
3016 (write_inline_edge_summary): New function.
3017 (inline_write_summary): Use it.
3018 (inline_free_summary): Free edge new holders.
3019 * tree-inline.c (copy_bb): Update.
3021 2011-04-26 Jason Merrill <jason@redhat.com>
3023 * tree-eh.c (lower_try_finally_switch): Create the label along with
3024 the CASE_LABEL_EXPR.
3026 2011-04-26 David S. Miller <davem@davemloft.net>
3027 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3029 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3030 * configure: Regenerate.
3032 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3035 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3037 (VEC_reduc): New code iterator and splitters for vector reduction.
3038 (VEC_reduc_name): Ditto.
3039 (VEC_reduc_rtx): Ditto.
3040 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3041 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3043 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3044 support for extracting SF on VSX.
3046 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3047 generating xscvspdp.
3048 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3049 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3050 double add, minimum, maximum vector reduction.
3051 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3052 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3053 optimize double vector reduction.
3054 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3056 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3058 * config/fr30/fr30.h (inhibit_libc): Don't define.
3059 * config/m32r/m32r-protos.h: Correct comment.
3060 * config/v850/v850.h (GHS_default_section_names,
3061 GHS_current_section_names): Use tree, not union tree_node *.
3063 2011-04-26 Xinliang David Li <davidxl@google.com>
3065 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3066 * c-family/c-opts.c (c_common_handle_option): Set
3067 warn_maybe_uninitialized.
3068 * opts.c (common_handle_option): Ditto.
3069 * common.opt: New option.
3070 * tree-ssa.c (warn_uninit): Add one more parameter.
3071 (warn_uninitialized_var): Pass warning code.
3072 * tree-flow.h: Interface change.
3075 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3077 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3078 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3079 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3081 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3083 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3084 * config/mips/mips.opt (mmips-tfile): Remove.
3086 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3087 mips-tdump reference to ...
3088 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3089 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3090 reference by Tru64 UNIX.
3092 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3095 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3096 is error_mark_node, set value to NULL.
3098 PR tree-optimization/48734
3099 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3100 if return value from maybe_fold_*_comparsions isn't something
3101 the code is prepared to handle.
3103 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3105 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3107 (ext_QIreg_nomode_operands): Remove.
3108 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3112 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3114 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3116 2011-04-26 Richard Guenther <rguenther@suse.de>
3118 * c-typeck.c (build_unary_op): Do not expand array-refs via
3119 pointer arithmetic. Only adjust qualifiers for function types.
3121 2011-04-26 Richard Guenther <rguenther@suse.de>
3124 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3125 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3126 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3127 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3129 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3131 * doc/extend.texi: Document __underlying_type.
3133 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3135 * config/rs6000/titan.md (automata_option "progress"): Remove.
3137 2011-04-25 Jeff Law <law@redhat.com>
3139 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3141 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3143 * system.h (ENUM_BITFIELD): Remove.
3145 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3146 Eric Botcazou <ebotcazou@adacore.com>
3148 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3149 for STORE_FLAG_VALUE==-1 case.
3151 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3154 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3155 LEGITIMATE_PIC_OPERAND_P.
3157 2011-04-24 Jan Hubicka <jh@suse.cz>
3159 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3161 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3162 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3163 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3164 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3165 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3166 Sanity check predicate length.
3167 (remap_predicate): Likewise; sanity check jump functions.
3168 (inline_read_section, inline_write_summary): Sanity check
3171 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3174 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3175 __is_literal_type, and __is_trivial; update throughout about
3176 possibly cv-qualified void types.
3178 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3180 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3181 testsuite and make it version agnostic.
3183 2011-04-22 Jan Hubicka <jh@suse.cz>
3185 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3187 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3190 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3191 to VOID_TYPE even around MODIFY_EXPR.
3193 2011-04-22 Mike Stump <mikestump@comcast.net>
3195 * gensupport.c (read_md_rtx): Fix typo in comment.
3196 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3199 2011-04-22 Jan Hubicka <jh@suse.cz>
3201 * gengtype.c (open_base_files): Add ipa-inline.h include.
3202 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3203 ipa-prop.c; update all uses.
3204 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3205 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3206 merge summary of inlined function into former caller.
3207 * ipa-inline.c (max_benefit): Remove.
3208 (edge_badness): Compensate for removal of benefits.
3209 (update_caller_keys): Use
3210 reset_node_growth_cache/reset_edge_growth_cache.
3211 (update_callee_keys): Likewise.
3212 (update_all_callee_keys): Likewise.
3213 (inline_small_functions): Do not collect max_benefit; do not reset
3214 estimated_growth; call free_growth_caches and initialize_growth_caches.
3215 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3216 struct size_time_entry): New structures.
3217 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3218 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3219 and estimated_growth.
3220 (edge_growth_cache_entry): New structure.
3221 (node_growth_cache, edge_growth_cache): New global vars.
3222 (estimate_growth): Turn into inline.
3223 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3224 initialize_growth_caches, free_growth_caches): Declare.
3225 (estimate_edge_growth): Rewrite.
3226 (estimate_edge_time): Implement as inline cache lookup.
3227 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3229 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3230 (NUM_CONDITIONS): New constant.
3231 (predicate_conditions): New enum.
3232 (IS_NOT_CONSTANT): New constant.
3233 (edge_removal_hook_holder): New var.
3234 (node_growth_cache, edge_growth_cache): New global vars.
3235 (true_predicate, single_cond_predicate, false_predicate,
3236 not_inlined_predicate, add_condition, add_clause, and_predicates,
3237 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3238 dump_clause, dump_predicate, account_size_time,
3239 evaulate_conditions_for_edge): New functions.
3240 (inline_summary_alloc): Move to heap.
3241 (inline_node_removal_hook): Clear condition and entry vectors.
3242 (inline_edge_removal_hook): New function.
3243 (initialize_growth_caches, free_growth_caches): New function.
3244 (dump_inline_summary): Update.
3245 (edge_execution_predicate): New function.
3246 (will_be_nonconstant_predicate): New function.
3247 (estimate_function_body_sizes): Compute BB and constantness predicates.
3248 (compute_inline_parameters): Do not clear estimated_growth.
3249 (estimate_edge_size_and_time): New function.
3250 (estimate_calls_size_and_time): New function.
3251 (estimate_callee_size_and_time): New function.
3252 (remap_predicate): New function.
3253 (inline_merge_summary): New function.
3254 (do_estimate_edge_time): New function based on...
3255 (estimate_edge_time): ... this one.
3256 (do_estimate_edge_growth): New function.
3257 (do_estimate_growth): New function based on....
3258 (estimate_growth): ... this one.
3259 (inline_analyze_function): Analyze after deciding on jump functions.
3260 (inline_read_section): New function.
3261 (inline_read_summary): Use it.
3262 (inline_write_summary): Write all the new data.
3263 * ipa-prop.c (ipa_get_param_decl_index): Export.
3264 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3265 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3267 (ipa_get_lattice): Move here from ipa-cp.c
3268 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3269 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3270 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3271 cgraph_edge_inlinable_p): Remove.
3272 * cgraphunit.c: Include ipainline.h
3273 (cgraph_process_new_functions): Update call of
3274 compute_inline_parameters.
3276 2011-04-22 Richard Guenther <rguenther@suse.de>
3278 * tree.c (build_int_cst): Properly create canonicalized integer
3280 (build_int_cst_type): Remove scary comments.
3282 2011-04-22 Xinliang David Li <davidxl@google.com>
3284 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3285 by default when -Wno-error is not specified.
3286 * opts-global.c (decode_options): Remove call to
3287 control_warning_options.
3289 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3291 PR tree-optimization/48717
3292 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3293 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3295 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3297 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3298 definition where used.
3300 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3303 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3304 TREE_STATIC variables declared inside of some OpenMP construct.
3306 2011-04-22 Martin Jambor <mjambor@suse.cz>
3309 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3311 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3314 * c-typeck.c (pop_init_level): Do not warn about initializing
3317 2011-04-22 Alan Modra <amodra@gmail.com>
3319 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3320 when returning call_cookie.
3321 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3322 pointers, to functions with no more vector args than the current
3323 function, and some non-local calls for ABI_V4.
3324 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3325 sibcall_nonlocal_aix64): Combine to ..
3326 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3327 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3328 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3329 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3330 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3332 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3333 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3334 sibcall_value_symbolic_64): Delete.
3336 2011-04-21 Xinliang David Li <davidxl@google.com>
3338 * cgraph.h: Remove pid.
3339 * cgraph.c: Remove pid.
3340 * value-prof.c (init_node_map): New function.
3341 (del_node_map): New function.
3342 (find_func_by_funcdef_no): New function.
3343 (gimple_ic_transform): Call new function.
3344 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3345 * function.c (get_last_funcdef_no): New function.
3346 * function.h (get_last_funcdef_no): New function.
3347 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3348 to libgcov function.
3349 (tree-profiling): Call node map init and delete function.
3351 2011-04-21 Ian Lance Taylor <iant@google.com>
3353 * godump.c (go_format_type): Use exported Go name for anonymous
3356 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3358 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3359 Call builtin_function_type_list instead of builtin_function_type.
3360 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3362 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3364 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3365 build_function_type_list instead of build_function_type.
3366 Delete variable `endlink'.
3368 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3370 * config/s390/s390.c (s390_init_builtins): Call
3371 build_function_type_list instead of build_function_type.
3373 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3375 * config/ia64/ia64.c (ia64_init_builtins): Call
3376 build_function_type_list instead of builtin_function_type.
3378 2011-04-21 Easwaran Raman <eraman@google.com>
3380 * cfgexpand.c (stack_var): Remove OFFSET...
3381 (add_stack_var): ...and its reference here...
3382 (expand_stack_vars): ...and here.
3383 (stack_var_cmp): Sort by descending order of size.
3384 (partition_stack_vars): Change heuristic.
3385 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3386 (dump_stack_var_partition): Add newline after each partition.
3388 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3389 Jeff Law <law@redhat.com>
3391 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3392 * gengtype.c (matching_file_name_substitute): Likewise.
3394 2011-04-21 Richard Guenther <rguenther@suse.de>
3397 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3399 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3401 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3403 2011-04-21 Richard Guenther <rguenther@suse.de>
3405 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3408 2011-04-21 Richard Guenther <rguenther@suse.de>
3410 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3411 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3412 Use DECL_P, not SSA_VAR_P.
3413 (ptr_derefs_may_alias_p): Likewise.
3414 (ptr_deref_may_alias_ref_p_1): Likewise.
3415 (decl_refs_may_alias_p): Likewise.
3416 (refs_may_alias_p_1): Likewise.
3417 (ref_maybe_used_by_call_p_1): Likewise.
3418 (call_may_clobber_ref_p_1): Likewise.
3419 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3420 are either MEM_REF or TARGET_MEM_REF.
3421 (indirect_refs_may_alias_p): Likewise.
3422 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3423 for MEM_EXPR of indirect calls.
3425 2011-04-21 Tristan Gingold <gingold@adacore.com>
3427 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3428 (dst_file_info_struct): Remove flen field.
3429 (lookup_filename): Remove code that set flen field.
3431 2011-04-21 Tristan Gingold <gingold@adacore.com>
3433 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3435 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3438 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3439 vec_extract and vec_concat for non-SSE4_1 targets.
3441 2011-04-21 Richard Guenther <rguenther@suse.de>
3443 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3446 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3448 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3450 (FILE): Don't undefine.
3452 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3454 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3456 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3458 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3459 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3460 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3462 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3463 definitions where used.
3464 * config/microblaze/microblaze.h (struct microblaze_args): Use
3465 rtx, not struct rtx_def *.
3466 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3468 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3469 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3470 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3471 not struct rtx_def *.
3472 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3474 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3476 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3478 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3480 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3481 operand_equal_p to compare DR_BASE_ADDRESSes.
3482 (vect_check_interleaving): Likewise.
3484 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3487 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3488 for all Neon struct constants.
3490 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3492 * target.def (legitimate_constant_p): New hook.
3493 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3494 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3495 * doc/tm.texi: Regenerate.
3496 * hooks.h (hook_bool_mode_rtx_true): Declare.
3497 * hooks.c (hook_bool_mode_rtx_true): Define.
3498 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3499 * calls.c (precompute_register_parameters): Replace uses of
3500 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3501 (emit_library_call_value_1): Likewise.
3502 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3503 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3504 * ira-costs.c (scan_one_insn): Likewise.
3505 * recog.c (general_operand, immediate_operand): Likewise.
3506 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3507 * reload1.c (init_eliminable_invariants): Likewise.
3509 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3511 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3512 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3514 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3515 * config/alpha/predicates.md (input_operand): Update call to
3516 alpha_legitimate_constant_p.
3518 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3519 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3520 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3521 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3522 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3523 (arm_legitimate_constant_p): New functions.
3524 (arm_cannot_force_const_mem): Make static.
3526 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3528 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3529 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3530 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3531 instead of bfin_legitimate_constant_p.
3532 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3533 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3535 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3537 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3539 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3540 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3541 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3542 (frv_legitimate_constant_p): Make static. Add a mode argument.
3544 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3545 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3546 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3548 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3549 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3550 * config/i386/i386.c (legitimate_constant_p): Rename to...
3551 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3553 (ix86_cannot_force_const_mem): Update accordingly.
3554 (ix86_legitimate_address_p): Likewise.
3555 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3556 * config/i386/i386.md: Update commentary.
3558 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3559 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3560 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3561 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3563 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3565 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3566 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3567 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3568 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3570 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3571 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3572 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3574 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3575 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3576 (m32r_legitimate_constant_p): New function.
3578 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3579 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3580 LEGITIMATE_CONSTANT_P.
3581 (LEGITIMATE_CONSTANT_P): Delete.
3582 * config/m68k/m68k.c (m68k_expand_prologue): Call
3583 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3584 (m68k_legitimate_constant_p): New function.
3585 * config/m68k/m68k.md: Update comments.
3587 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3588 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3589 (mcore_legitimate_constant_p): New function.
3591 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3592 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3593 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3594 Add a mode argument.
3595 (mep_legitimate_address): Update accordingly.
3596 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3598 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3600 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3601 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3602 static. Check OP's mode for VOIDmode.
3603 (microblaze_legitimate_constant_p): New function.
3604 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3606 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3607 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3608 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3609 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3610 * config/mips/predicates.md: Update comments.
3612 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3613 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3614 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3615 (mmix_legitimate_constant_p): Make static, return a bool, and take
3617 (mmix_print_operand_address): Update accordingly.
3619 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3621 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3622 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3623 static. Add a mode argument.
3624 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3626 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3628 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3629 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3630 (pa_legitimate_constant_p): New function.
3632 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3634 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3635 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3636 (pdp11_legitimate_constant_p): New function.
3638 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3639 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3640 (rs6000_legitimate_constant_p): New function.
3642 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3643 (rx_legitimate_constant_p): ...this.
3644 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3645 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3646 (rx_legitimate_constant_p): ...this.
3647 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3648 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3650 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3651 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3652 * config/s390/s390.c (legitimate_constant_p): Rename to...
3653 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3654 and add a mode argument.
3655 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3657 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3659 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3660 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3661 (sh_legitimate_constant_p): New function.
3663 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3664 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3665 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3666 (legitimate_constant_p): Rename to...
3667 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3669 (constant_address_p): Update accordingly.
3671 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3672 argument and return a bool.
3673 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3674 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3675 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3676 (spu_rtx_costs): Update accordingly.
3677 * config/spu/predicates.md (vec_imm_operand): Likewise.
3679 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3681 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3682 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3683 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3685 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3686 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3687 * config/vax/vax.c (legitimate_constant_p): Likewise.
3689 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3690 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3691 (xtensa_legitimate_constant_p): New function.
3693 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3695 * target.def (cannot_force_const_mem): Add a mode argument.
3696 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3697 * doc/tm.texi: Regenerate.
3698 * hooks.h (hook_bool_mode_rtx_false): Declare.
3699 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3700 (hook_bool_mode_const_rtx_true): Likewise.
3701 (hook_bool_mode_rtx_false): New function.
3702 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3703 to be non-VOID. Update call to cannot_force_const_mem.
3704 (find_reloads): Update accordingly.
3705 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3706 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3708 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3709 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3710 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3711 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3712 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3713 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3714 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3715 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3716 (m68k_cannot_force_const_mem): ...this new function.
3717 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3719 (mips_const_insns, mips_legitimize_const_move): Update calls.
3720 (mips_secondary_reload_class): Likewise.
3721 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3722 (pa_cannot_force_const_mem): ...this new function.
3723 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3724 (rs6000_cannot_force_const_mem): ...this new function.
3725 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3727 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3728 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3730 (xtensa_cannot_force_const_mem): ...this new function.
3732 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3734 * config/mips/mips.c (mips16_build_function_stub): Call
3735 build_function_type_list instead of build_function_type.
3736 (mips16_build_call_stub): Likewise.
3738 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3740 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3741 instead of build_function_type.
3743 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3745 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3746 instead of build_function_type.
3748 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3751 * config/i386/i386.md (insv): Change operand 0 constraint to
3752 "register_operand". Change operand 1 and 2 constraint to
3753 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3754 * config/i386/sse.md (sse4_1_pinsrb): Export.
3755 (sse2_pinsrw): Ditto.
3756 (sse4_1_pinsrd): Ditto.
3757 (sse4_1_pinsrq): Ditto.
3758 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3759 * config/i386/i386.c (ix86_expand_pinsr): New.
3761 2011-04-20 Easwaran Raman <eraman@google.com>
3763 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3764 containing union type only with -fstrict-aliasing.
3766 2011-04-20 Jim Meyering <meyering@redhat.com>
3768 Remove useless if-before-free tests.
3769 * calls.c (expand_call, save_area): Likewise.
3770 * cfgcleanup.c (try_forward_edges): Likewise.
3771 * collect2.c (collect_execute): Likewise.
3772 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3773 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3774 * coverage.c (coverage_checksum_string): Likewise.
3775 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3776 * cselib.c (cselib_init): Likewise.
3777 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3778 (df_set_clean_cfg): Likewise.
3779 * function.c (free_after_compilation): Likewise.
3780 * gcc.c (do_spec_1, main): Likewise.
3781 * gcov.c (create_file_names): Likewise.
3782 * gensupport.c (identify_predicable_attribute): Likewise.
3783 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3784 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3785 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3786 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3787 * ipa-pure-const.c (local_pure_const): Likewise.
3788 * ipa-reference.c (propagate): Likewise.
3789 * ira-costs.c (free_ira_costs): Likewise.
3790 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3791 * matrix-reorg.c (mat_free): Likewise.
3792 * prefix.c (get_key_value): Likewise.
3793 * profile.c (compute_value_histograms): Likewise.
3794 * reload1.c (free_reg_equiv): Likewise.
3795 * sched-deps.c (free_deps): Likewise.
3796 * sel-sched-ir.c (fence_clear): Likewise.
3797 * sese.c (set_rename, if_region_set_false_region): Likewise.
3798 * tree-data-ref.c (free_rdg): Likewise.
3799 * tree-eh.c (lower_try_finally): Likewise.
3800 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3801 * tree-ssa-live.c (delete_var_map): Likewise.
3802 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3803 * tree-ssa-pre.c (phi_trans_add): Likewise.
3805 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3807 PR tree-optimization/48611
3808 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3809 beyond ERT_MUST_NOT_THROW region.
3811 2011-04-20 Catherine Moore <clm@codesourcery.com>
3813 * config/mips/mips.opt (mfix-24k): New.
3814 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3815 * config/mips/mips.md (length): Increase by 4 for stores if
3817 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3818 all noreorder if fixing 24K errata.
3819 * doc/invoke.texi: Document mfix-24k.
3821 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3823 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3824 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3826 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3828 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3829 (const_ok_for_op): ... to here.
3831 2011-04-20 Kai Tietz <ktietz@redhat.com>
3833 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3834 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3836 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3838 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3840 2011-04-20 Richard Guenther <rguenther@suse.de>
3842 PR tree-optimization/47892
3843 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3846 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3848 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3850 2011-04-20 Tristan Gingold <gingold@adacore.com>
3852 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3854 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3858 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3859 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3860 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3861 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3862 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3864 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3867 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3868 (avr_asm_named_section, avr_asm_output_aligned_common,
3869 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3870 New functions to update...
3871 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3872 (avr_asm_init_sections): Overwrite section callbacks for
3873 data_section, bss_section.
3874 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3876 (avr_file_end): ...here.
3878 2011-04-20 Richard Guenther <rguenther@suse.de>
3881 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3882 objects and types here. Adjust for their offset before comparing.
3884 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3886 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3889 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3891 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3892 (GIMPLE_H): Include $(INTERNAL_FN_H).
3893 (OBJS-common): Add internal-fn.o.
3894 (internal-fn.o): New rule.
3895 * internal-fn.def: New file.
3896 * internal-fn.h: Likewise.
3897 * internal-fn.c: Likewise.
3898 * gimple.h: Include internal-fn.h.
3899 (GF_CALL_INTERNAL): New gf_mask.
3900 (gimple_statement_call): Put fntype into a union with a new
3902 (gimple_build_call_internal): Declare.
3903 (gimple_build_call_internal_vec): Likewise.
3904 (gimple_call_same_target_p): Likewise.
3905 (gimple_call_internal_p): New function.
3906 (gimple_call_internal_fn): Likewise.
3907 (gimple_call_fntype): Return null for internal calls.
3908 (gimple_call_set_fntype): Assert that the function is not internal.
3909 (gimple_call_set_fn): Likewise.
3910 (gimple_call_set_fndecl): Likewise.
3911 (gimple_call_set_internal_fn): New function.
3912 (gimple_call_addr_fndecl): Handle null functions.
3913 (gimple_call_return_type): Likewise null types.
3914 * gimple.c (gimple_build_call_internal_1): New function.
3915 (gimple_build_call_internal): Likewise.
3916 (gimple_build_call_internal_vec): Likewise.
3917 (gimple_call_same_target_p): Likewise.
3918 (gimple_call_flags): Handle calls to internal functions.
3919 (gimple_call_fnspec): New function.
3920 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3921 (gimple_has_side_effects): Handle null functions.
3922 (gimple_rhs_has_side_effects): Likewise.
3923 (gimple_call_copy_skip_args): Handle calls to internal functions.
3924 * cfgexpand.c (expand_call_stmt): Likewise.
3925 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3926 * gimple-fold.c (gimple_fold_call): Handle null functions.
3927 (gimple_fold_stmt_to_constant_1): Don't fold
3928 calls to internal functions.
3929 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3931 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3932 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3933 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3934 (do_warn_unused_result): Likewise.
3935 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3936 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3937 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3938 the target of a call.
3939 (initialize_hash_element): Update accordingly.
3940 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3941 (iterative_hash_hashable_expr): Handle calls to internal functions.
3942 (print_expr_hash_elt): Likewise.
3943 * tree-ssa-pre.c (can_value_number_call): Likewise.
3944 (eliminate): Handle null functions.
3945 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3946 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3947 (find_func_aliases): Likewise.
3948 * value-prof.c (gimple_ic_transform): Likewise.
3949 (gimple_indirect_call_to_profile): Likewise.
3950 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3951 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3953 2011-04-19 Jan Hubicka <jh@suse.cz>
3955 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3956 * ipa-inline.c (inline_small_functions): Compute summaries first,
3957 populate heap later.
3959 2011-04-19 Jan Hubicka <jh@suse.cz>
3961 * cgraph.h (save_inline_function_body): Remove.
3962 * ipa-inline-transform.c: New file, broke out of...
3963 * ipa-inline.c: ... this one; Update toplevel comment.
3964 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3966 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3967 (cgraph_mark_inline_edge): Rename to inline_call; move to
3968 ipa-inline-transform.c.
3969 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3970 move to ipa-inline-transform.c
3971 (recursive_inlining, inline_small_functions, flatten_function,
3972 ipa_inline, inline_always_inline_functions,
3973 early_inline_small_functions): Update.
3974 (inline_transform): Move to ipa-inline-transform.c.
3975 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3977 * Makefile.in (ipa-inline-transform.o): New file.
3978 * cgraphunit.c (save_inline_function_body): Move to
3979 ipa-inline-transform.c
3981 2011-04-19 DJ Delorie <dj@redhat.com>
3983 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3984 registers if we already know there aren't any.
3985 (m32c_emit_epilogue): Don't emit a barrier here.
3986 (m32c_emit_eh_epilogue): Likewise.
3987 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3988 operands at expand time.
3989 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3991 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3992 duplicates. Provide aliases instead.
3993 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3994 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3997 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3999 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4000 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4001 (general_or_i64_p, sparc_register_move_cost): New function.
4003 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4005 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4006 Add lynx, mipssde. Sort table.
4008 2011-04-19 Xinliang David Li <davidxl@google.com>
4010 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4013 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4016 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4017 is a SUBREG with non-MODE_INT mode inside of it.
4019 2011-04-19 Martin Jambor <mjambor@suse.cz>
4021 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4022 also according to actual contants.
4023 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4024 (gimple_fold_call): Use it.
4025 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4027 2011-04-19 Martin Jambor <mjambor@suse.cz>
4029 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4030 non-pointer assignments.
4032 2011-04-19 Martin Jambor <mjambor@suse.cz>
4034 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4035 account anc_offset and otr_type from the indirect edge info.
4036 * ipa-prop.c (get_ancestor_addr_info): New function.
4037 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4038 get_ancestor_addr_info, call it.
4039 (ipa_note_param_call): Do not initialize information about polymorphic
4040 calls, return the indirect call graph edge. Remove the last
4041 parameter, adjust all callers.
4042 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4043 parameters. Initialize polymorphic information in the indirect edge.
4045 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4048 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4049 the types if they have different enumeration identifiers.
4051 2011-04-19 Jan Hubicka <jh@suse.cz>
4053 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4054 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4055 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4056 (optimize_function_for_size_p) ... here.
4058 2011-04-19 Richard Guenther <rguenther@suse.de>
4061 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4064 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4066 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4067 if DECL_NO_INLINE_WARNING_P is set on the function.
4069 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4072 * reload1.c (inc_for_reload): Return void. All callers changed.
4073 (emit_input_reload_insns): Don't try to delete previous output
4074 reloads to a register, or record spill_reg_store for autoincs.
4076 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4078 * gengtype.h: Updated copyright year.
4079 (struct input_file_st): Add inpisplugin field.
4080 (type_fileloc): New function.
4082 (write_typed_struct_alloc_def): Add gcc_assert.
4083 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4084 (write_typed_alloc_defns): Don't output for plugin files.
4085 (input_file_by_name): Clear inpisplugin field.
4086 (main): Set inpisplugin field for plugin files.
4088 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4090 * gengtype-state.c (string_eq): New.
4091 (read_state): Use string_eq instead of strcmp when creating the
4094 2011-04-19 Wei Guozhi <carrot@google.com>
4097 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4098 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4100 * config/arm/constraints.md (Uu): New constraint.
4101 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4103 2011-04-19 Tristan Gingold <gingold@adacore.com>
4105 * config.gcc (-*-*-*vms): Added.
4106 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4108 * config/vms/vms-ld.c: New file.
4109 * config/vms/vms-ar.c: New file.
4110 * config/vms/t-vmsnative: New file.
4112 2011-04-18 Xinliang David Li <davidxl@google.com>
4114 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4116 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4119 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4120 if TREE_TYPE (v) is non-NULL.
4122 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4123 gimple_get_virt_mehtod_for_binfo.
4124 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4125 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4127 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4129 2011-04-18 Michael Matz <matz@suse.de>
4130 Steve Ellcey <sje@cup.hp.com>
4132 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4133 use its mode as source mode if it isn't VOIDmode.
4135 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4137 * doc/passes.texi: Fill crossref nodes.
4139 2011-04-18 Jim Meyering <meyering@redhat.com>
4141 Fix doubled-word typos in comments and strings
4142 * config/alpha/vms-unwind.h: s/for for/for/
4143 * config/arm/unwind-arm.h: Likewise.
4144 * config/microblaze/microblaze.c: Likewise.
4145 * config/sh/constraints.md: s/in in/in/
4146 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4148 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4150 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4151 (AVX_FLOAT_MODE_P): Ditto.
4152 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4153 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4154 (AVX_VEC_FLOAT_MODE_P): Ditto.
4155 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4156 (UNSPEC_MASKSTORE): Ditto.
4157 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4158 Merge from <sse>_movmsk<ssemodesuffix> and
4159 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4160 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4162 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4163 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4164 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4166 2011-04-18 Jan Hubicka <jh@suse.cz>
4168 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4170 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4171 (want_inline_function_called_once_p): Break out the logic from
4173 (edge_badness): Ensure that profile is not misupdated.
4174 (lookup_recursive_calls): Prioritize by call frequencies.
4175 (inline_small_functions): Move program size estimates here;
4176 actually process whole queue even when unit growth has been
4177 met. (to properly compute inline_failed reasons and for the
4178 case unit size decrease.) Revisit comments on recursive inlining.
4179 (ipa_inline): Remove unit summary code; first inline hot calls
4180 of functions called once, cold calls next.
4181 (order, nnodes): Remove unused variables.
4182 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4183 (GTFILES): Remove ipa-inline.c
4184 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4186 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4188 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4190 2011-04-18 Jie Zhang <jie@codesourcery.com>
4191 Richard Earnshaw <rearnsha@arm.com>
4193 * arm.c (neon_builtin_type_bits): Remove.
4194 (typedef enum neon_builtin_mode): New.
4195 (T_MAX): Don't define.
4196 (typedef enum neon_builtin_datum): Remove bits, codes[],
4197 num_vars and base_fcode. Add mode, code and fcode.
4198 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4199 VAR10): Change accordingly.
4200 (neon_builtin_data[]): Change accordingly
4201 (arm_init_neon_builtins): Change accordingly.
4202 (neon_builtin_compare): Remove.
4203 (locate_neon_builtin_icode): Remove.
4204 (arm_expand_neon_builtin): Change accordingly.
4206 * arm.h (enum arm_builtins): Move to ...
4207 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4209 * arm.c (arm_builtin_decl): Declare.
4210 (TARGET_BUILTIN_DECL): Define.
4211 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4212 (arm_builtin_decls[]): New.
4213 (arm_init_neon_builtins): Store builtin declarations in
4214 arm_builtin_decls[].
4215 (arm_init_tls_builtins): Likewise.
4216 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4217 (arm_builtin_decl): New.
4219 2011-04-18 Richard Guenther <rguenther@suse.de>
4221 * tree.c (upper_bound_in_type): Build properly canonicalized
4223 (lower_bound_in_type): Likewise.
4225 2011-04-18 Richard Guenther <rguenther@suse.de>
4227 * gimple.h (gimple_call_addr_fndecl): New function.
4228 (gimple_call_fndecl): Use it.
4229 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4231 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4232 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4234 2011-04-18 Richard Guenther <rguenther@suse.de>
4237 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4239 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4242 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4243 DECL_IN_CONSTANT_POOL without RTL.
4245 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4246 Ira Rosen <ira.rosen@linaro.org>
4249 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4250 to match neon_vzip/vuzp/vtrn_internal.
4251 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4252 outputs explicitly dependent on both inputs.
4253 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4255 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4257 PR tree-optimization/48616
4258 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4259 whether the shift is by scalar or vector based on whether all SLP
4260 scalar stmts have the same rhs.
4262 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4264 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4267 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4269 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4272 2011-04-17 Jan Hubicka <jh@suse.cz>
4274 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4275 * cgrpahunit.c (cgraph_finalize_function): Do not set
4276 finalized_by_frontend.
4277 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4278 finalized_by_frontend.
4280 2011-04-17 Jan Hubicka <jh@suse.cz>
4282 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4283 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4284 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4285 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4287 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4289 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4291 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4294 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4295 is non-null before accessing it.
4296 (input_cgraph): Remove trailing spaces.
4298 2011-04-17 Revital Eres <revital.eres@linaro.org>
4300 * params.def (sms-min-sc): New param flag.
4301 * modulo-sched.c (sms_schedule): Use it.
4302 * doc/invoke.texi (sms-min-sc): Document it.
4304 2011-04-17 Jan Hubicka <jh@suse.cz>
4306 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4307 present, also set gimple_call_set_cannot_inline.
4308 * ipa-inline.c: Update toplevel comment.
4310 (cgraph_clone_inlined_nodes): Fix linebreaks.
4311 (cgraph_check_inline_limits): Restructure to ...
4312 (caller_growth_limits): ... this one; be more tolerant
4313 on growth in nested inline chains; add explanatory comment;
4314 fix stack accounting thinko introduced by previous patch.
4315 (cgraph_default_inline_p): Remove.
4316 (report_inline_failed_reason): New function.
4317 (can_inline_edge_p): New function.
4318 (can_early_inline_edge_p): New function.
4319 (leaf_node_p): Move upwards in file.
4320 (want_early_inline_function_p): New function.
4321 (want_inline_small_function_p): New function.
4322 (want_inline_self_recursive_call_p): New function.
4323 (cgraph_edge_badness): Rename to ...
4324 (edge_badness) ... this one; fix linebreaks.
4325 (update_edge_key): Update call of edge_baddness; add
4326 detailed dump about queue updates.
4327 (update_caller_keys): Use can_inline_edge_p and
4328 want_inline_small_function_p.
4329 (cgraph_decide_recursive_inlining): Rename to...
4330 (recursive_inlining): Use can_inline_edge_p and
4331 want_inline_self_recursive_call_p; simplify and remove no longer
4333 (cgraph_set_inline_failed): Remove.
4334 (add_new_edges_to_heap): Use can_inline_edge_p and
4335 want_inline_small_function_p.
4336 (cgraph_decide_inlining_of_small_functions): Rename to ...
4337 (inline_small_functions): ... this one; cleanup; use
4338 can/want predicates; cleanup debug ouput; work edges till fibheap
4339 is exhausted and do not stop once unit growth is reached; remove
4340 later loop processing remaining edges.
4341 (cgraph_flatten): Rename to ...
4342 (flatten_function): ... this one; use can_inline_edge_p
4343 and can_early_inline_edge_p predicates.
4344 (cgraph_decide_inlining): Rename to ...
4345 (ipa_inline): ... this one; remove unreachable nodes before
4346 inlining functions called once; simplify the pass.
4347 (cgraph_perform_always_inlining): Rename to ...
4348 (inline_always_inline_functions): ... this one; use
4349 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4350 (cgraph_decide_inlining_incrementally): Rename to ...
4351 (early_inline_small_functions): ... this one; simplify
4352 using new predicates; cleanup; make dumps prettier.
4353 (cgraph_early_inlining): Rename to ...
4354 (early_inliner): newer inline regular functions into always-inlines;
4355 fix updating of call stmt summaries.
4356 (pass_early_inline): Update for new names.
4357 (inline_transform): Fix formating.
4358 (gate_cgraph_decide_inlining): Rename to ...
4359 (pass_ipa_inline): ... this one.
4360 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4361 * ipa-inline-analysis.c (dump_inline_summary): Update.
4362 (compute_inline_parameters): Do not compute disregard_inline_limits;
4363 look for mismatching arguments.
4364 (estimate_growth): Fix handlig of non-trivial self recursion.
4365 (inline_read_summary): Do not read info->disregard_inline_limits.
4366 (inline_write_summary): Do not write info->disregard_inline_limits.
4367 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4368 and move all checks into can_inline_edge_p predicate; re-enable code
4369 comparing optimization levels.
4370 (expand_call_inline): Do not test inline_forbidden_into_p.
4371 * Makefile.in (ipa-inline.o): Update arguments.
4373 2011-04-17 Revital Eres <revital.eres@linaro.org>
4375 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4377 2011-04-17 Revital Eres <revital.eres@linaro.org>
4379 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4381 2011-04-17 Michael Matz <matz@suse.de>
4383 PR tree-optimization/48622
4385 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4386 in same order as they're written.
4388 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4390 * config/pa/predicates.md: Reorganize and simplify predicates.
4391 Eliminate duplicate code checks.
4392 (arith_operand): Rename to arith14_operand
4393 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4394 * config/pa/pa.md: Use renamed operands.
4395 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4396 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4397 arith11_operand, adddi3_operand, indexed_memory_operand,
4398 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4399 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4400 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4401 move_dest_operand, move_src_operand, prefetch_cc_operand,
4402 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4403 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4404 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4405 div_operand, int5_operand, movb_comparison_operator,
4406 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4407 arith_double_operand, ireg_operand, lhs_lshift_operand,
4408 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4409 integer_store_memory_operand): Likewise.
4410 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4411 (integer_store_memory_operand, read_only_operand,
4412 function_label_operand, borx_reg_operand,
4413 non_hard_reg_operand): Likewise.
4414 (eq_neq_comparison_operator): Delete unused operator.
4415 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4416 function_label_operand.
4417 (emit_move_sequence): Likewise.
4419 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4421 * config/i386/sse.md (sseunpackmode): New mode attribute.
4422 (ssepackmode): Ditto.
4423 (vec_pack_trunc_<mode>): Macroize expander from
4424 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4425 (vec_unpacks_lo_<mode>): Macroize expander from
4426 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4427 (vec_unpacks_hi_<mode>): Macroize expander from
4428 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4429 (vec_unpacku_lo_<mode>): Macroize expander from
4430 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4431 (vec_unpacku_hi_<mode>): Macroize expander from
4432 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4433 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4434 ix86_expand_sse4_unpack.
4435 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4437 2011-04-16 Jan Hubicka <jh@suse.cz>
4439 * cgraphbuild.c: Include ipa-inline.h.
4440 (reset_inline_failed): Use initialize_inline_failed.
4441 * cgraph.c: Include ipa-inline.h.
4442 (cgraph_create_node_1): Do not initialize estimated_growth.
4443 (initialize_inline_failed): More to ipa-inline-analysis.c
4444 (dump_cgraph_node): Do not dump inline flags.
4445 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4446 and disregard_inline_limits flags.
4447 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4448 time, size, estimated_growth.
4449 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4451 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4452 DECL_DISREGARD_INLINE_LIMITS.
4453 (cgraph_analyze_function): Do not initialize
4454 node->local.disregard_inline_limits.
4455 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4456 inlinable, versionable and disregard_inline_limits.
4457 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4458 cgraph_check_inline_limits, cgraph_default_inline_p,
4459 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4460 add_new_edges_to_heap): Update.
4461 (cgraph_decide_inlining_of_small_function): Update; set
4462 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4463 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4464 cgraph_decide_inlining_incrementally): Update.
4465 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4466 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4467 time, size and estimated_growth parameters.
4468 (estimate_edge_growth): Update.
4469 (initialize_inline_failed): Declare.
4470 * ipa-split.c: Include ipa-inline.h
4471 (execute_split_functions): Update.
4472 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4473 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4474 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4475 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4476 estimated_growth to INT_MIN.
4477 (inline_node_duplication_hook): Likewise.
4478 (dump_inline_summary): Dump new fields.
4479 (compute_inline_parameters): Update.
4480 (estimate_edge_time, estimate_time_after_inlining,
4481 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4482 inline_write_summary):
4483 (initialize_inline_failed): Move here from cgraph.c.
4484 * tree-sra.c: Include ipa-inline.h.
4485 (ipa_sra_preliminary_function_checks): Update.
4486 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4489 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4491 * config/i386/sse.md (V16): New mode iterator.
4493 (AVXMODEQI, AVXMODEDI): Remove.
4494 (sse2, sse3): New mode attribute.
4495 (mov<mode>): Use V16 mode iterator.
4496 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4497 (push<mode>1): Use V16 mode iterator.
4498 (movmisalign<mode>): Ditto.
4499 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4500 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4501 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4502 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4503 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4504 avx_movdqu<avxmodesuffix>.
4505 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4506 *avx_movdqu<avxmodesuffix>.
4507 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4508 avx_lddqu<avxmodesuffix>.
4509 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4510 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4511 avx_movnt<AVXMODEDI:mode>.
4512 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4513 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4515 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4518 * haifa-sched.c (prune_ready_list, schedule_block): Use
4519 sched_pressure_p rather than flag_sched_pressure.
4521 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4523 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4524 cgraph_get_node instead of cgraph_get_create_node.
4526 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4528 * cfgexpand.c (expand_debug_expr): Use
4529 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4531 2011-04-15 Michael Matz <matz@suse.de>
4533 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4534 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4535 * function.c (gimplify_parameters): Ditto.
4536 * gimplify.c (gimplify_vla_decl): Ditto.
4538 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4539 (gimple_call_set_alloca_for_var): New inline function.
4540 (gimple_call_alloca_for_var_p): Ditto.
4541 * gimple.c (gimple_build_call_from_tree): Remember
4542 CALL_ALLOCA_FOR_VAR_P state.
4543 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4545 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4546 calls if they were for VLA objects.
4548 2011-04-15 Martin Jambor <mjambor@suse.cz>
4550 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4553 2011-04-15 Martin Jambor <mjambor@suse.cz>
4556 * tree-emutls.c (lower_emutls_function_body): Call
4557 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4560 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4562 * c-decl.c (detect_field_duplicates): Call
4563 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4565 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4567 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4568 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4569 * ipa-pure-const.c (check_stmt): Call it.
4570 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4572 2011-04-15 Richard Guenther <rguenther@suse.de>
4574 PR tree-optimization/48290
4575 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4576 Properly decide inhibiting propagation based on the valueized
4577 operand. Do loop-closed SSA form preserving here ...
4578 (init_copy_prop): ... not here.
4580 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4583 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4584 (*ieee_smax<mode>3): Likewise.
4586 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4588 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4589 Replace match_operand with match_dup for the third operand in
4592 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4594 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4595 to track processing of conditionals. Update all callers.
4596 (try_combine, simplify_if_then_else): Update.
4598 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4600 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4603 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4605 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4606 instead of match_operand for operand 3.
4608 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4610 * recog.h (insn_operand_data): Add an "allows_mem" field.
4611 * genoutput.c (output_operand_data): Initialize it.
4612 * optabs.c (maybe_legitimize_operand_same_code): New function.
4613 (maybe_legitimize_operand): Use it when matching the original
4616 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4618 * gimplify.c: Fix issues in comments throughout.
4619 (voidify_wrapper_expr): Fix long line.
4620 (build_stack_save_restore): Likewise.
4621 (gimplify_loop_expr): Likewise.
4622 (gimplify_compound_lval): Likewise.
4623 (gimplify_init_ctor_eval): Likewise.
4624 (gimplify_modify_expr_rhs): Likewise.
4625 (omp_notice_threadprivate_variable): Likewise.
4627 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4629 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4630 original one if this is not a builtin function.
4632 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4635 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4636 offset it as needed based on top 2 bits in operands[3], change
4637 MEM mode to SFmode and mask those 2 bits away from operands[3].
4639 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4641 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4642 change from objc_declare_protocols() to objc_declare_protocol().
4644 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4646 * config/i386/sse.md (sse4_1): New mode attribute.
4647 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4648 avx_blend<ssemodesuffix><avxmodesuffix> and
4649 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4650 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4651 avx_blendv<ssemodesuffix><avxmodesuffix> and
4652 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4653 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4654 avx_dp<ssemodesuffix><avxmodesuffix> and
4655 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4656 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4657 (sse4_1_packusdw): Merge with *avx_packusdw.
4658 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4659 (sse4_1_pblendw): Merge with *avx_pblendw.
4660 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4661 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4662 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4664 (sse4_1_round<ssescalarmodesuffix>): Merge with
4665 *avx_round<ssescalarmodesuffix>.
4666 (aesenc): Merge with *avx_aesenc.
4667 (aesenclast): Merge with *avx_aesenclast.
4668 (aesdec): Merge with *avx_aesdec.
4669 (aesdeclast): Merge with *avx_aesdeclast.
4670 (pclmulqdq): Merge with *pclmulqdq.
4671 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4673 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4675 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4678 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4679 (align_local_variable): This. Update DECL_ALIGN.
4680 (add_stack_var): Updated.
4681 (expand_one_stack_var): Likewise.
4683 2011-04-14 Richard Guenther <rguenther@suse.de>
4685 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4687 (dse_initialize_block_local_data, dse_leave_block,
4688 record_voperand_set, get_stmt_uid): Likewise.
4689 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4690 (dse_optimize_stmt): Remove voperand set handling code.
4691 Simplify and improve to handle any kind of killing stmt.
4692 (dse_record_phi): Remove.
4693 (dse_enter_block): Simplify.
4694 (tree_ssa_dse): Likewise.
4695 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4697 2011-04-14 Jan Hubicka <jh@suse.cz>
4699 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4700 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4701 (cgraph_local_info): Remove inline_summary.
4702 * ipa-cp.c: Include ipa-inline.h.
4703 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4704 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4706 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4707 (input_overwrite_node): Do not set inline summary.
4708 (input_node): Do not stream inline summary.
4709 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4710 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4711 growth; we do not have inline parameters computed for that anyway.
4712 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4713 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4714 (inline_summary_t): New type and VECtor.
4715 (debug_inline_summary, dump_inline_summaries): Declare.
4716 (inline_summary): Use VOCtor.
4717 (estimate_edge_growth): Kill hack computing call stmt size directly.
4718 * lto-section-in.c (lto_section_name): Add inline section.
4719 * ipa-inline-analysis.c: Include lto-streamer.h
4720 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4721 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4722 (inline_summary_vec): Define.
4723 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4724 dump_inline_summaries): New functions.
4725 (estimate_function_body_sizes): Properly compute size/time of outgoing
4727 (compute_inline_parameters): Alloc inline_summary; do not compute
4728 size/time of incomming calls.
4729 (estimate_edge_time): Avoid missing time summary hack.
4730 (inline_read_summary): Read inline summary info.
4731 (inline_write_summary): Write inline summary info.
4732 (inline_free_summary): Free all hooks and inline summary vector.
4733 * lto-streamer.h: Add LTO_section_inline_summary section.
4734 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4735 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4737 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4739 * tree-vectorizer.h (vect_strided_store_supported): Add a
4740 HOST_WIDE_INT argument.
4741 (vect_strided_load_supported): Likewise.
4742 (vect_permute_store_chain): Return void.
4743 (vect_transform_strided_load): Likewise.
4744 (vect_permute_load_chain): Delete.
4745 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4746 count argument. Check that the count is a power of two.
4747 (vect_strided_load_supported): Likewise.
4748 (vect_permute_store_chain): Return void. Update after above changes.
4749 Assert that the access is supported.
4750 (vect_permute_load_chain): Likewise.
4751 (vect_transform_strided_load): Return void.
4752 * tree-vect-stmts.c (vectorizable_store): Update calls after
4753 above interface changes.
4754 (vectorizable_load): Likewise.
4755 (vect_analyze_stmt): Don't check for strided powers of two here.
4757 2011-04-14 Richard Guenther <rguenther@suse.de>
4759 PR tree-optimization/48590
4760 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4761 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4762 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4763 BUILT_IN_STACK_SAVE.
4764 * tree-ssa-dce.c (propagate_necessity): Handle
4765 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4767 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4769 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4772 2011-04-14 Richard Guenther <rguenther@suse.de>
4774 * tree.h (get_object_alignment_1): Declare.
4775 * builtins.c (get_object_alignment_1): Split out worker from ...
4776 (get_object_alignment): ... here.
4777 * fold-const.c (get_pointer_modulus_and_residue): Use
4778 get_object_alignment_1.
4780 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4782 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4784 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4785 parameter. Generalise code to handle arrays as well as vectors.
4786 (vect_setup_realignment): Update accordingly.
4787 * tree-vect-stmts.c (vectorizable_store): Likewise.
4788 (vectorizable_load): Likewise.
4790 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4792 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4793 within the per-copy loop.
4795 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4797 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4800 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4802 * doc/options.texi (Negative): Explicitly mention that the
4803 Negative chain must be circular.
4805 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4807 * function.h (block_chainon): Declare.
4808 * function.c (block_chainon): Define.
4810 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4811 Eric Weddington <eric.weddington@atmel.com>
4812 Georg-Johann Lay <avr@gjlay.de>
4814 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4816 (avr_init_builtins, avr_expand_builtin,
4817 avr_expand_delay_cycles, avr_expand_unop_builtin,
4818 avr_expand_binop_builtin ): New functions.
4819 (avr_builtin_id): New enum
4820 (struct avr_builtin_description): New struct
4821 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4822 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4824 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4825 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4826 UNSPECV_DELAY_CYCLES): new enumeration values
4827 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4828 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4829 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4830 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4831 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4832 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4833 "fmulsu"): New insns
4835 * config/avr/avr-c.c: fix line endings
4836 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4837 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4838 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4839 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4840 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4842 * doc/extend.texi (AVR Built-in Functions): New node
4843 (Target Builtins): Add documentation of AVR
4846 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4849 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4850 alone. Error if non-const data has attribute progmem.
4852 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4854 * tree.h (struct tree_constructor): Include tree_typed instead of
4856 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4857 TS_TYPED instead of TS_COMMON.
4859 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4861 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4862 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4863 (sse2_psadbw): Merge with *avx_psadbw.
4864 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4865 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4866 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4867 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4868 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4869 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4870 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4871 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4872 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4873 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4874 (ssse3_palignrti): Merge with *avx_palignrti.
4876 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4878 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4879 * tree-ssanames.c (fini_ssanames): VEC_free it.
4880 (make_ssa_name_fn): Update for VECness of free_ssanames.
4881 (release_ssa_name, release_dead_ssa_names): Likewise.
4882 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4884 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4885 TS_TYPED instead of TS_COMMON.
4887 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4889 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4890 statistics_counter_event.
4891 * tree-ssa-copyrename.c (stats): Define.
4892 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4893 statistics_counter_event.
4894 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4895 (bswap_stats, widen_mul_stats): Define.
4896 (insert_reciprocals): Increment rdivs_inserted.
4897 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4898 rfuncs_inserted. Add calls to statistics_counter_event.
4899 (execute_cse_sincos_1): Increment inserted.
4900 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4901 statistics_counter_event.
4902 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4903 of bswap_stats. Add calls to statistics_counter_event.
4904 (convert_mult_to_widen): Increment widen_mults_inserted.
4905 (convert_plusminus_to_widen): Increment maccs_inserted.
4906 (convert_mult_to_fma): Increment fmas_inserted.
4907 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4908 calls to statistics_counter_event.
4910 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4912 PR rtl-optimization/48455
4913 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4914 `temp_costs->mem_cost'.
4916 2011-04-13 Jan Hubicka <jh@suse.cz>
4918 * ipa-inline.h: New file.
4919 * ipa-inline-analysis.c: New file. Broken out of ...
4920 * ipa-inline.c: ... this file; update toplevel comment;
4921 include ipa-inline.h
4922 (inline_summary): Move to ipa-inline.h
4923 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4924 ipa-inline-analysis.c.
4925 (cgraph_estimate_time_after_inlining): Rename to
4926 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4927 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4928 to estimate_edge_growth.
4929 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4930 rename to estimate_size_after_inlining.
4931 (cgraph_mark_inline_edge): Update for new naming convention.
4932 (cgraph_check_inline_limits): Likewise.
4933 (cgraph_edge_badness): Likewise.
4934 (cgraph_decide_recursive_inlining): Likewise.
4935 (cgraph_decide_inlining_of_small_functions): Likewise.
4936 (cgraph_decide_inlining_incrementally): Likewise.
4937 (cgraph_estimate_growth): Rename to estimate_growth; move to
4938 ipa-inline-analysis.c.
4939 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4940 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4941 (compute_inline_parameters): Likewise.
4942 (compute_inline_parameters_for_current): Likewise.
4943 (pass_inline_parameters): Likewise.
4944 (inline_indirect_intraprocedural_analysis): Likewise.
4945 (analyze_function): Rename to inline_analyze_function; likewise.
4946 (add_new_function): Move to ipa-inline-analysis.c.
4947 (inline_generate_summary): Likewise.
4948 (inline_read_summary): Likewise.
4949 (inline_write_summary): Likewise.
4950 * Makefile.in (ipa-inline-analysis.c): New file.
4952 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4954 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4955 * configure: Regenerate.
4957 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4959 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4960 instead of tree_common.
4961 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4963 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4964 TS_TYPED rather than TS_COMMON.
4965 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4967 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4970 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4971 r20 around calls of __tablejump_elpm__
4973 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4976 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4978 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4980 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4982 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4983 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4984 (cfi_vec): New typedef.
4985 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4986 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4987 (cie_cfi_vec): New static variable.
4988 (cie_cfi_head): Delete.
4989 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4990 declaration changed. Use vector rather than list operations.
4991 (new_cfi): Don't initialize the dw_cfi_next field.
4992 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4993 rather than list operations.
4994 (lookup_cfa): Use vector rather than list operations.
4995 (output_cfis): New argument upto. Accept a cfi_vec rather than
4996 a dw_cfi_ref list head as argument. All callers changed.
4997 Iterate over the vector using upto as a maximum index.
4998 (output_all_cfis): New static function.
4999 (output_fde): Use vector rather than list operations. Use the
5000 new upto argument for output_cfis rather than manipulating a
5002 (dwarf2out_begin_prologue): Change initializations to match
5004 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5005 from the vector length rather than searching for the end of a list.
5006 Use output_all_cfis.
5007 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5009 2011-04-13 Nick Clifton <nickc@redhat.com>
5011 * config/rx/rx.md (movmemsi): Do not use this pattern when
5012 volatile pointers are involved.
5014 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5016 * config/i386/sse.md (pinsrbits): Remove.
5017 (sse2_packsswb): Merge with *avx_packsswb.
5018 (sse2_packssdw): Merge with *avx_packssdw.
5019 (sse2_packuswb): Merge with *avx_packuswb.
5020 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5021 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5022 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5023 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5024 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5025 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5026 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5027 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5028 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5029 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5030 (sse2_loadld): Merge with *avx_loadld.
5031 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5032 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5033 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5034 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5035 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5037 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5039 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5041 * print-tree.c (print_node): Likewise.
5042 * tree-inline.c (copy_tree_r): Likewise.
5043 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5044 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5045 instead of TS_COMMON.
5046 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5047 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5048 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5049 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5050 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5052 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5054 (TREE_CHAIN): Check for a TS_COMMON structure.
5055 (TREE_TYPE): Check for a TS_TYPED structure.
5057 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5059 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5060 cgraph_get_create_node instead of cgraph_node.
5062 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5064 * c-parser.c (c_parser_initelt): Updated call to
5065 objc_build_message_expr.
5066 (c_parser_postfix_expression): Likewise.
5068 2011-04-12 Kai Tietz <ktietz@redhat.com>
5070 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5071 MASK_MS_BITFIELD_LAYOUT bit.
5073 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5075 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5076 assert it is always true.
5077 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5080 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5082 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5083 compiling Objective-C to be more efficient.
5085 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5087 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5090 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5092 * recog.h, genoutput.c, optabs.c: Revert last patch.
5094 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5097 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5099 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5101 * recog.h (insn_operand_data): Add an "allows_mem" field.
5102 * genoutput.c (output_operand_data): Initialize it.
5103 * optabs.c (maybe_legitimize_operand_same_code): New function.
5104 (maybe_legitimize_operand): Use it when matching the original
5107 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5109 * genpreds.c (process_define_predicate): Move most processing
5110 to gensupport.c. Continue to validate the expression.
5111 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5112 (process_define_predicate): Move processing to gensupport.c.
5113 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5114 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5115 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5117 (valid_predicate_name_p): New function, split out from old
5118 genpreds.c:process_define_predicate.
5119 (process_define_predicate): New function, combining code from
5120 old genpreds.c and genrecog.c functions.
5121 (process_rtx): Call it for DEFINE_PREDICATE and
5122 DEFINE_SPECIAL_PREDICATE.
5124 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5126 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5127 size of a '%A' memory reference.
5128 (T_DREG, T_QREG): New neon_builtin_type_bits.
5129 (arm_init_neon_builtins): Assert that the load and store operands
5130 are neon_struct_operands.
5131 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5132 (NEON_ARG_MEMORY): New builtin_arg.
5133 (neon_dereference_pointer): New function.
5134 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5135 Handle NEON_ARG_MEMORY.
5136 (arm_expand_neon_builtin): Update after above interface changes.
5137 Use NEON_ARG_MEMORY for loads and stores.
5138 * config/arm/predicates.md (neon_struct_operand): New predicate.
5139 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5140 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5141 (V_four_elem): Tweak formatting.
5142 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5143 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5144 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5145 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5146 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5147 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5148 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5149 Use %A in the output template.
5150 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5151 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5152 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5153 the width of the memory access. Remove post-increment.
5154 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5156 2011-04-12 Nick Clifton <nickc@redhat.com>
5158 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5159 instruction for interrupt handlers if the target is the basic V850
5161 (expand_epilogue): Likewise.
5163 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5165 PR rtl-optimization/48549
5166 * combine.c (propagate_for_debug): Also stop after BB_END of
5167 this_basic_block. Process LAST and just stop processing after it.
5168 (combine_instructions): If last_combined_insn has been deleted,
5169 set last_combined_insn to its PREV_INSN.
5171 2011-04-12 Richard Guenther <rguenther@suse.de>
5173 PR tree-optimization/46076
5174 * gimple.h (struct gimple_statement_call): Add fntype field.
5175 (gimple_call_fntype): Adjust.
5176 (gimple_call_set_fntype): New function.
5177 * gimple.c (gimple_build_call_1): Set the call function type.
5178 * gimplify.c (gimplify_call_expr): Preserve the function
5179 type the frontend used for the call.
5180 (gimplify_modify_expr): Likewise.
5181 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5183 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5185 * tree-ssa.c (useless_type_conversion_p): Function pointer
5186 conversions are useless.
5188 2011-04-12 Martin Jambor <mjambor@suse.cz>
5190 * cgraph.h (cgraph_node): Remove function declaration.
5191 (cgraph_create_node): Declare.
5192 (cgraph_get_create_node): Likewise.
5193 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5194 Updated all callers.
5195 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5196 the decl does not already exist. Call cgraph_get_create_node instead
5198 (cgraph_get_create_node): New function.
5199 (cgraph_same_body_alias): Update comment.
5200 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5201 assert it does not return NULL.
5202 (cgraph_update_edges_for_call_stmt): Likewise.
5203 (cgraph_clone_edge): Likewise.
5204 (cgraph_create_virtual_clone): Likewise.
5205 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5206 instead of cgraph_node.
5207 (cgraph_add_new_function): Call cgraph_create_node or
5208 cgraph_get_create_node instead of cgraph_node.
5209 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5210 instead of cgraph_node.
5211 (record_eh_tables): Likewise.
5212 (mark_address): Likewise.
5213 (mark_load): Likewise.
5214 (build_cgraph_edges): Call cgraph_get_create_node instead
5216 (rebuild_cgraph_edges): Likewise.
5217 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5218 instead of cgraph_node.
5219 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5221 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5222 cgraph_create_node instead of cgraph_node.
5223 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5225 * lto-cgraph.c (input_node): Likewise.
5226 * lto-streamer-in.c (input_function): Likewise.
5227 * varasm.c (mark_decl_referenced): Likewise.
5228 (assemble_alias): Likewise.
5230 2011-04-12 Martin Jambor <mjambor@suse.cz>
5232 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5233 instead of cgraph_node and assert it does not return NULL.
5234 * lto-streamer-in.c (lto_read_body): Likewise.
5235 * omp-low.c (new_omp_context): Likewise.
5236 (create_task_copyfn): Likewise.
5237 * tree-emutls.c (lower_emutls_function_body): Likewise.
5238 * matrix-reorg.c (transform_allocation_sites): Likewise.
5240 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5243 * c-typeck.c (build_asm_expr): Error out on attempts to use
5244 void type outputs or inputs for constraints that allow reg or
5247 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5248 Richard Earnshaw <rearnsha@arm.com>
5251 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5252 to use sign-magnitude offsets. Reject unsupported unaligned
5253 cases. Add detailed description in comments.
5254 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5255 condition from TARGET_32BIT to TARGET_ARM.
5257 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5259 * tree.h (struct typed_tree): New.
5260 (struct tree_common): Include it instead of tree_base.
5261 (TREE_TYPE): Update for new location of type field.
5262 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5263 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5264 (union tree_node): Add typed field.
5265 * treestruct.def (TS_TYPED): New.
5266 * lto-streamer.c (check_handled_ts_structures): Handle it.
5267 * tree.c (MARK_TS_TYPED): New macro.
5268 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5270 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5272 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5273 (force_nonfallthru): Do not alter the loop nest if no basic block
5276 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5278 * config/i386/sse.md (VI): New mode iterator.
5280 (AVX256MODEI): Ditto.
5281 (AVXMODEF4P): Ditto.
5282 (avxvecpsmode): Ditto.
5283 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5284 (sse2_andnot<mode>3): New expander.
5285 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5286 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5287 (<any_logic:code><mode>3): Use VI mode iterator.
5288 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5289 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5290 (*andnottf3): Handle AVX three-operand constraints.
5291 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5293 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5294 Robert Millan <rmh@gnu.org>
5296 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5297 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5298 GNU_USER_DYNAMIC_LINKER64): Define.
5299 (REG_NAME): Don't undefine.
5300 (MD_UNWIND_SUPPORT): Undefine.
5301 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5302 (REG_NAME): Don't undefine.
5303 (MD_UNWIND_SUPPORT): Undefine.
5304 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5306 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5308 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5309 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5311 2011-04-11 Xinliang David Li <davidxl@google.com>
5313 * value-profile.c (check_ic_target): New function.
5314 (gimple_ic_transform): Sanity check indirect call target.
5315 * gimple-low.c (gimple_check_call_args): Interface change.
5316 (gimple_check_call_matching_types): New function.
5317 * tree-inline.c (tree_can_inline_p): Call new function.
5319 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5321 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5322 tree-pretty-print.h & realmpfr.h.
5324 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5327 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5328 (setup_allocno_and_important_classes): Ditto.
5330 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5332 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5333 GNU_USER_DYNAMIC_LINKER.
5334 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5335 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5336 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5337 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5338 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5339 GNU_USER_TARGET_OS_CPP_BUILTINS.
5340 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5342 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5344 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5345 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5346 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5347 GNU_USER_TARGET_OS_CPP_BUILTINS.
5348 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5349 GNU_USER_DYNAMIC_LINKER.
5350 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5351 GNU_USER_TARGET_OS_CPP_BUILTINS.
5352 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5353 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5354 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5355 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5356 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5357 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5358 GNU_USER_DYNAMIC_LINKER64): Remove.
5359 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5360 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5361 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5362 GNU_USER_DYNAMIC_LINKER.
5363 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5364 GNU_USER_TARGET_OS_CPP_BUILTINS.
5365 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5366 GNU_USER_TARGET_OS_CPP_BUILTINS.
5367 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5368 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5369 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5370 GNU_USER_TARGET_OS_CPP_BUILTINS.
5371 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5372 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5373 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5374 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5376 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5377 GNU_USER_DYNAMIC_LINKER.
5378 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5379 GNU_USER_TARGET_OS_CPP_BUILTINS.
5380 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5381 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5382 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5383 GNU_USER_DYNAMIC_LINKER.
5384 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5386 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5387 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5388 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5389 GNU_USER_DYNAMIC_LINKER.
5390 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5391 GNU_USER_DYNAMIC_LINKERN32.
5392 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5393 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5394 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5395 GNU_USER_DYNAMIC_LINKER32.
5396 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5397 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5398 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5399 GNU_USER_DYNAMIC_LINKER.
5400 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5402 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5404 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5405 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5406 GNU_USER_DYNAMIC_LINKER32.
5407 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5408 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5409 GNU_USER_DYNAMIC_LINKER.
5410 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5412 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5413 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5414 GNU_USER_DYNAMIC_LINKER64.
5415 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5416 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5417 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5418 GNU_USER_DYNAMIC_LINKER.
5419 * config/sparc/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/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5425 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5426 GNU_USER_DYNAMIC_LINKER32.
5427 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5428 GNU_USER_DYNAMIC_LINKER64.
5429 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5430 GNU_USER_DYNAMIC_LINKER64.
5431 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5433 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5434 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5435 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5437 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5439 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5440 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5441 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5442 GNU_USER_DYNAMIC_LINKER.
5443 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5444 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5445 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5446 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5447 GNU_USER_DYNAMIC_LINKER64.
5448 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5449 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5450 GNU_USER_LINK_EMULATION.
5451 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5452 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5453 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5454 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5455 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5456 CPP_SPEC, CC1_SPEC): Remove.
5457 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5458 (GNU_USER_DYNAMIC_LINKER): Define.
5459 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5460 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5461 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5462 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5463 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5464 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5465 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5466 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5467 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5468 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5469 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5470 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5471 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5472 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5473 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5474 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5475 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5476 GNU_USER_DYNAMIC_LINKER.
5477 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5478 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5479 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5480 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5481 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5482 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5483 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5484 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5485 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5486 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5488 2011-04-11 Kai Tietz <ktietz@redhat.com>
5492 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5493 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5495 (ix86_is_msabi_thiscall): Removed.
5496 (ix86_is_type_thiscall): Likewise.
5497 (ix86_get_callcvt): New function.
5498 (ix86_comp_type_attributes): Simplify check.
5499 (ix86_function_regparm): Use ix86_get_callcvt for calling
5500 convention attribute checks.
5501 (ix86_return_pops_args): Likewise.
5502 (ix86_static_chain): Likewise.
5503 (x86_this_parameter): Likewise.
5504 (x86_output_mi_thunk): Likewise.
5505 (ix86_function_type_abi): Optimize check for types without attributes.
5506 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5507 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5508 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5510 (IX86_BASE_CALLCVT): Helper macro.
5511 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5512 Use ix86_get_callcvt for calling convention attribute checks and avoid
5513 symbol-decoration for stdcall in TARGET_RTD case.
5514 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5516 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5519 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5521 * config/i386/sse.md (VI_128): New mode iterator.
5522 (VI12_128): Rename from SSEMODE12.
5523 (VI14_128): Rename from SSEMODE14.
5524 (VI124_128): New mode iterator.
5525 (VI24_128): Rename from SSEMODE248.
5526 (VI248_128): Rename from SSEMODE248.
5527 (SSEMODE124C8): Remove.
5528 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5529 (*sse2_<plusminus_insn><mode>3): Merge with
5530 *avx_<plusminus_insn><mode>3.
5531 (*mulv8hi3): Merge with *avx_mulv8hi3.
5532 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5533 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5534 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5535 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5536 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5537 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5538 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5539 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5540 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5541 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5542 (*<smaxmin:code>v8hi3): Ditto.
5543 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5544 (*<smaxmin:code>v16qi3): Ditto.
5545 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5546 (*sse2_eq<mode>3): Ditto.
5547 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5548 (*sse2_gt<mode>3): Ditto.
5549 (vcondv2di): Split out of vcond<mode>.
5550 (vconduv2di): Split out of vcondu<mode>.
5552 2011-04-11 Richard Guenther <rguenther@suse.de>
5554 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5555 before calling tree_low_cst.
5557 2011-04-11 Richard Guenther <rguenther@suse.de>
5559 * stor-layout.c (layout_type): Compute all array index size operations
5560 in the original type.
5561 (initialize_sizetypes): Add comment.
5562 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5564 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5566 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5568 2011-04-11 Martin Jambor <mjambor@suse.cz>
5570 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5571 of cgraph_node, handle NULL return value.
5572 (cgraph_global_info): Likewise.
5573 (cgraph_rtl_info): Likewise.
5574 * tree-inline.c (estimate_num_insns): Likewise.
5575 * gimplify.c (unshare_body): Likewise.
5576 (unvisit_body): Likewise.
5577 (gimplify_body): Likewise.
5578 * predict.c (optimize_function_for_size_p): Likewise.
5579 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5580 (call_may_clobber_ref_p_1): Likewise.
5581 * varasm.c (function_section_1): Likewise.
5582 (assemble_start_function): Likewise.
5584 2011-04-11 Martin Jambor <mjambor@suse.cz>
5586 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5588 * final.c (rest_of_clean_state): Likewise.
5589 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5590 * passes.c (pass_init_dump_file): Likewise.
5591 (execute_all_ipa_transforms): Likewise.
5592 (function_called_by_processed_nodes_p): Likewise.
5593 * predict.c (maybe_hot_frequency_p): Likewise.
5594 (probably_never_executed_bb_p): Likewise.
5595 (compute_function_frequency): Likewise.
5596 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5597 (unnest_nesting_tree_1): Likewise.
5598 (lower_nested_functions): Likewise.
5599 * tree-optimize.c (execute_fixup_cfg): Likewise.
5600 (tree_rest_of_compilation): Likewise.
5601 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5602 * tree-sra.c (ipa_early_sra): Likewise.
5603 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5604 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5605 * ipa.c (record_cdtor_fn): Likewise.
5606 * ipa-inline.c (cgraph_early_inlining): Likewise.
5607 (compute_inline_parameters_for_current): Likewise.
5608 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5609 * ipa-pure-const.c (local_pure_const): Likewise.
5610 * ipa-split.c (split_function): Likewise.
5611 (execute_split_functions): Likewise.
5612 * cgraphbuild.c (build_cgraph_edges): Likewise.
5613 (rebuild_cgraph_edges): Likewise.
5614 (cgraph_rebuild_references): Likewise.
5615 (remove_cgraph_callee_edges): Likewise.
5616 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5617 (verify_cgraph_node): Likewise.
5618 (cgraph_analyze_functions): Likewise.
5619 (cgraph_preserve_function_body_p): Likewise.
5620 (save_inline_function_body): Likewise.
5621 (save_inline_function_body): Likewise.
5622 * tree-inline.c (copy_bb): Likewise.
5623 (optimize_inline_calls): Likewise.
5625 2011-04-11 Martin Jambor <mjambor@suse.cz>
5627 PR tree-optimization/48195
5628 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5629 ipa_check_create_edge_args.
5630 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5631 ipa_check_create_edge_args.
5632 * ipa-inline.c (inline_generate_summary): Do not call
5633 ipa_check_create_node_params and ipa_check_create_edge_args.
5634 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5635 ipa_check_create_edge_args.
5637 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5639 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5641 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5642 * function.c (record_hard_reg_sets): Likewise.
5643 * ira.c (compute_regs_asm_clobbered): Likewise.
5644 * sched-deps.c (sched_analyze_1): Likewise.
5645 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5647 2011-04-09 Xinliang David Li <davidxl@google.com>
5649 PR tree-optimization/PR48484
5650 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5651 has_valid_pred lazily
5653 2011-04-09 Duncan Sands <baldrick@free.fr>
5655 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5657 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5659 * combine.c (combine_validate_cost): Adjust comments. Set registered
5660 cost of I0 to zero at the end, if any.
5662 2011-04-08 Xinliang David Li <davidxl@google.com>
5664 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5665 to insane profile data.
5667 2011-04-08 Xinliang David Li <davidxl@google.com>
5669 * ipa-cp.c (ipcp_update_profiling): Correct
5670 negative scale factor due to insane profile data.
5672 2011-04-08 Xinliang David Li <davidxl@google.com>
5674 * final.c (dump_basic_block_info): New function.
5675 (final): Dump basic block.
5676 (final_scan_insn): Remove old dump.
5678 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5681 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5684 2011-04-08 Michael Matz <matz@suse.de>
5687 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5689 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5690 * rtl.h (rebuild_jump_labels_chain): Declare.
5691 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5692 insns inserted on edges.
5694 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5696 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5697 * config/arm/arm-arches.def: New.
5698 * config/arm/arm-opts.h: New.
5699 * config/arm/genopt.sh: New.
5700 * config/arm/arm-tables.opt: New (generated).
5701 * config/arm/arm.c (arm_handle_option, arm_target_help,
5702 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5703 (all_architectures): Get most table contents from arm-arches.def.
5704 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5705 arm_selected_tune here.
5706 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5707 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5708 (march=, mcpu=, mtune=): Use Enum and Var.
5709 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5710 (arm.o): Update dependencies.
5712 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5714 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5716 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5717 (write_typed_alloc_defns): Likewise.
5718 (main): Calls write_typed_alloc_defns with output_header.
5720 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5723 * ira-color.c (setup_profitable_hard_regs): Add comments.
5724 Don't take prohibited hard regs into account.
5725 (setup_conflict_profitable_regs): Rename to
5726 get_conflict_profitable_regs.
5727 (check_hard_reg_p): Check prohibited hard regs.
5729 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5731 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5732 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5733 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5735 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5738 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5739 move from floating point to shift amount register.
5740 (emit_move_sequence): Remove secondary reload support for floating
5741 point to shift amount amount register copies.
5742 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5743 amount register copies.
5744 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5745 register, return false if mode isn't a scalar integer mode.
5746 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5748 2011-04-08 Richard Guenther <rguenther@suse.de>
5750 * gimple.c (gimple_call_flags): Remove kludge.
5752 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5754 * sel-sched.c (sel_region_init): Move call to
5755 sel_setup_region_sched_flags after setup_current_loop_nest.
5757 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5759 PR rtl-optimization/48272
5760 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5761 init_insn_reg_pressure_info. Adjust a caller.
5762 * sched-int.h (init_insn_reg_pressure_info): Declare.
5763 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5764 when sched-pressure is enabled.
5766 2011-04-08 Richard Guenther <rguenther@suse.de>
5768 * gimple.c (gimple_set_modified): Do not queue calls to
5769 MODIFIED_NORETURN_CALLS here ...
5770 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5772 2011-04-08 Richard Guenther <rguenther@suse.de>
5775 * toplev.c (lang_dependent_init): Do not open asm_out_file
5776 in WPA mode, nor perform debug machinery initialization.
5777 (finalize): Do not unlink asm_out_file in WPA mode.
5779 2011-04-08 Richard Guenther <rguenther@suse.de>
5781 * gimple.h (gimple_call_fntype): New function.
5782 (gimple_call_return_type): Use it.
5783 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5784 * gimple-low.c (gimple_check_call_args): Likewise.
5785 * gimple.c (gimple_call_flags): Likewise.
5786 (gimple_call_arg_flags): Likewise.
5787 (gimple_call_return_flags): Likewise.
5788 * tree-cfg.c (verify_gimple_call): Likewise.
5789 (do_warn_unused_result): Likewise.
5790 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5791 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5793 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5795 PR rtl-optimization/48235
5796 * sel-sched.c (code_motion_process_successors): Recompute the last
5797 insn in basic block if control flow changed.
5798 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5799 Update condition for ilist_remove.
5801 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5803 PR rtl-optimization/48302
5804 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5805 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5806 it to record added preheader blocks.
5807 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5808 on to sel_add_loop_preheaders.
5809 (sel_region_init): Move call to setup_current_loop_nest after
5812 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5815 * cfgloop.h (loop_has_exit_edges): New helper.
5816 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5818 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5819 that have no exit edges.
5821 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5823 PR rtl-optimization/48442
5824 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5825 all callers. Adjust assert.
5827 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5829 PR tree-optimization/48377
5830 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5831 is_packed to true even for types with smaller TYPE_ALIGN than
5834 2011-04-08 Richard Guenther <rguenther@suse.de>
5837 * doc/tm.texi: Re-generate.
5839 2011-04-08 Wei Guozhi <carrot@google.com>
5842 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5843 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5844 * config/arm/arm.md (*push_multi): Change the length computation to
5847 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5849 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5850 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5851 * doc/tm.texi: Regenerate.
5852 * system.h (ASM_OUTPUT_BSS): Poison.
5853 * varasm.c (asm_output_bss): Remove function.
5854 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5856 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5857 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5858 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5859 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5861 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5863 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5865 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5867 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5869 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5872 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5874 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5875 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5876 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5878 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5879 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5880 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5881 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5882 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5883 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5884 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5885 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5886 options. Don't map other m68k options manually. Don't handle
5887 old-style options as canonical.
5888 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5889 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5891 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5893 * basic-block.h (force_nonfallthru): Move to...
5894 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5895 (force_nonfallthru): ...here.
5896 * cfghooks.c (force_nonfallthru): New function.
5897 * cfgrtl.c (force_nonfallthru): Rename into...
5898 (rtl_force_nonfallthru): ...this.
5899 (commit_one_edge_insertion): Do not set AUX field.
5900 (commit_edge_insertions): Do not discover new basic blocks.
5901 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5902 (cfg_layout_rtl_cfg_hooks): Likewise.
5903 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5904 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5905 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5907 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5909 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5912 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5914 * config/i386/sse.md: Update copyright year.
5915 (avxcvtvecmode): Remove.
5916 (sse_movhlps): Merge with *avx_movhlps.
5917 (sse_movlhps): Merge with *avx_movlhps.
5918 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5919 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5920 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5921 (sse_loadhps): Merge with *avx_loadhps.
5922 (sse_storelps): Merge with *avx_storelps.
5923 (sse_loadlps): Merge with *avx_loadlps.
5924 (sse_movss): Merge with *avx_movss.
5925 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5926 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5927 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5928 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5929 (vec_set<mode>_0): Ditto.
5930 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5931 (sse4_1_insertps): Merge with *avx_insertps.
5932 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5933 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5934 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5935 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5936 (sse2_storehpd): Merge with *avx_storehpd.
5937 (sse2_loadhpd): Merge with *avx_loadhpd.
5938 (sse2_loadlpd): Merge with *avx_loadlpd.
5939 (sse2_movsd): Merge with *avx_movsd.
5940 (*vec_concatv2df): Merge with *vec_concatv2df.
5942 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5945 * combine.c (combine_instructions): Add last_combined_insn,
5946 update it if insn is after it, pass it to all try_combine calls.
5947 (try_combine): Add last_combined_insn parameter, pass it instead of
5948 i3 to propagate_for_debug.
5950 2011-04-07 Nick Clifton <nickc@redhat.com>
5952 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5953 to handle MDR <-> data register transfers.
5954 (movhi_internal): Likewise.
5956 2011-04-07 Alan Modra <amodra@gmail.com>
5958 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5959 previous stack info.
5961 2011-04-07 Tom de Vries <tom@codesourcery.com>
5964 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5965 flow_find_cross_jump. Swap variables to implement backward replacement.
5966 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5968 2011-04-07 Tom de Vries <tom@codesourcery.com>
5971 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5972 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5974 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5975 src1 or src2. Redirect edges to the last basic block. Update
5976 frequency and count on multiple basic blocks in case of fallthru.
5978 2011-04-07 Tom de Vries <tom@codesourcery.com>
5981 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5983 (old_insns_match_p): Change return type. Replace return false/true
5984 with return dir_none/dir_both. Use can_replace_by.
5985 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5986 direction from dir_p. Register replacement direction in dir, last_dir
5987 and afterlast_dir. Handle new return type of old_insns_match_p using
5988 merge_dir. Return replacement direction in dir_p.
5989 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5990 return type of old_insns_match_p.
5991 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5992 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5993 flow_find_cross_jump.
5994 * basic-block.h (enum replace_direction): New type.
5995 (flow_find_cross_jump): Add parameter to declaration.
5997 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5999 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6000 (AVXMODEDCVTPS2DQ): Ditto.
6001 (VEC_FLOAT_MODE): Ditto.
6002 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6003 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6004 (<any_logic:code><mode>3): Use VF mode iterator.
6005 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6006 Use VF mode iterator.
6007 (copysign<mode>3): Use VF mode iterator.
6008 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6009 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6010 (*<any_logic:code><MODEF:mode>3): Merge with
6011 *avx_<any_logic:code><MODEF:mode>3.
6012 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6013 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6014 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6015 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6016 (sse2_cvtdq2ps): Use %v modifier.
6017 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6018 (avx_cvtps2dq<avxmodesuffix>): Remove.
6019 (sse2_cvtps2dq): Use %v modifier.
6020 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6021 (avx_cvttps2dq<avxmodesuffix>): Remove.
6022 (sse2_cvttps2dq): Use %v modifier.
6023 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6024 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6025 (sse2_cvtsd2siq): Fix insn template.
6026 (sse2_cvtsd2siq_2): Ditto.
6027 (sse2_cvttsd2siq): Ditto.
6028 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6029 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6031 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6033 * gcov-io.c: Use GCC Runtime Library Exception.
6035 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6038 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6039 as base_reg whatever register reg has been eliminated to, instead
6040 of hardcoding STACK_POINTER_REGNUM.
6042 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6044 * doc/tm.texi.in: Document C target hooks as separate from general
6046 * doc/tm.texi: Regenerate.
6047 * genhooks.c (struct hook_desc): Add docname field.
6048 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6050 (hook_array): Include c-target.def.
6051 (emit_documentation): Use docname field in output.
6052 (emit_init_macros): Take docname argument. Only emit definitions
6053 for hooks matching docname.
6054 (main): Expect additional arguments in all cases. Pass argument
6055 to emit_init_macros.
6056 * target.def: Move initial macro definitions and comments to
6057 target-hooks-macros.h.
6058 (gcc_targetcm): Move to c-family/c-target.def.
6059 * target.h (targetcm): Move declaration to c-family/c-target.h.
6060 * targhooks.c (default_handle_c_option): Move to
6062 * targhooks.h (default_handle_c_option): Move declaration to
6063 c-family/c-common.h.
6064 * target-hooks-macros.h: New file.
6065 * config.gcc (target_has_targetcm): Define and use to add to
6066 c_target_objs and cxx_target_objs.
6067 * config/default-c.c: New file.
6068 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6069 of target.h and target-def.h.
6070 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6071 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6072 darwin_check_cfstring_format_arg): Make static.
6073 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6074 TARGET_STRING_OBJECT_REF_TYPE_P,
6075 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6076 * config/darwin-protos.h (darwin_objc_construct_string,
6077 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6079 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6080 TARGET_STRING_OBJECT_REF_TYPE_P,
6081 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6082 * config/t-darwin (darwin-c.o): Update dependencies.
6083 * system.h (TARGET_HAS_TARGETCM): Poison.
6084 * Makefile.in (TARGET_H): Update.
6085 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6086 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6087 (default-c.o): New target.
6088 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6089 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6090 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6092 (build/genhooks.o): Update dependencies.
6094 2011-04-06 Richard Guenther <rguenther@suse.de>
6096 * ipa-inline.c (enum inlining_mode): Remove.
6097 (cgraph_flatten): Use some other token.
6098 (cgraph_edge_early_inlinable_p): New function, split out from ...
6099 (cgraph_perform_always_inlining): New function, split out from ...
6100 (cgraph_decide_inlining_incrementally): ... here.
6101 (cgraph_mark_inline_edge): Adjust.
6102 (cgraph_early_inlining): Re-structure.
6103 (pass_early_inline): Require SSA form.
6105 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6106 Julian Brown <julian@codesourcery.com>
6107 Mark Shinwell <shinwell@codesourcery.com>
6109 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6110 LO_REGS only for Thumb-1.
6111 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6112 be used in short instructions when optimising for size on Thumb-2.
6114 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6116 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6117 associated with user returns to be preserved.
6119 2011-04-06 Tristan Gingold <gingold@adacore.com>
6121 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6122 symbol_queue_size, DBXOUT_DECR_NESTING,
6123 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6124 if XCOFF_DEBUGGING_INFO.
6126 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6128 * config/i386/i386.md (attribute isa): New.
6129 (attribute enabled): New.
6130 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6131 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6132 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6133 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6134 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6135 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6136 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6137 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6139 * config/i386/sse.md (VF): New mode iterator.
6143 (SSEMODEF4): Remove.
6144 (attribute sse): Handle V8SF and V4DF modes.
6145 (<absneg:code><mode>2): Use VF mode iterator.
6146 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6148 (<plusminus_insn><mode>3): Use VF mode iterator.
6149 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6150 Use VF mode iterator.
6151 (<sse>_vm<plusminus_insn><mode>3): Merge with
6152 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6153 (mul<mode>3): Use VF mode iterator.
6154 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6155 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6157 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6158 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6159 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6160 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6162 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6163 Use VF1 mode iterator.
6164 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6165 (sqrt<VF2:mode>2): New expander.
6166 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6167 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6168 and sqrtv2df2. Use VF mode iterator.
6169 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6171 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6172 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6173 Use VF1 mode iterator.
6174 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6175 (<smaxmin:code><mode>3): Use VF mode iterator.
6176 (*<smaxmin:code><mode>3_finite): Merge with
6177 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6178 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6179 (<sse>_vm<smaxmin:code><mode>2): Merge with
6180 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6181 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6183 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6185 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6186 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6187 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6188 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6189 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6191 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6192 Use VF_128 mode iterator.
6193 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6195 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6196 VF_128 mode iterator.
6197 (vcond<mode>): Use VF mode iterator.
6198 * config/i386/predicates.md (sse_comparison_operator): Merge with
6199 avx_comparison_float_operator. Do not declare as special_predicate.
6200 * config/i386/i386.c (struct builtin_description): Update for renamed
6202 (ix86_expand_args_builtin): Ditto.
6203 (ix86_expand_sse_compare_mask): Ditto.
6205 2011-04-06 Richard Guenther <rguenther@suse.de>
6207 * tree-inline.c (estimate_num_insns): For calls simply account
6208 for all passed arguments and a used return value.
6210 2011-04-06 Richard Guenther <rguenther@suse.de>
6212 PR tree-optimization/47663
6213 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6214 call_stmt_time fields.
6215 (cgraph_edge_inlinable_p): Declare.
6216 (cgraph_edge_recursive_p): New inline function.
6217 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6218 (cgraph_clone_edge): Copy it.
6219 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6220 Account for call stmt time.
6221 (cgraph_estimate_time_after_inlining): Take edge argument.
6222 (cgraph_estimate_edge_growth): Account call stmt size.
6223 (cgraph_estimate_size_after_inlining): Take edge argument.
6224 (cgraph_mark_inline_edge): Adjust.
6225 (cgraph_check_inline_limits): Likewise.
6226 (cgraph_recursive_inlining_p): Remove.
6227 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6228 (cgraph_decide_recursive_inlining): Take edge argument and
6230 (cgraph_decide_inlining_of_small_functions): Do not avoid
6231 diags for recursive inlining here.
6232 (cgraph_flatten): Adjust.
6233 (cgraph_decide_inlining_incrementally): Likewise.
6234 (estimate_function_body_sizes): Remove call cost handling.
6235 (compute_inline_parameters): Initialize caller edge call costs.
6236 (cgraph_estimate_edge_growth): New function.
6237 (cgraph_estimate_growth): Use it.
6238 (cgraph_edge_badness): Likewise.
6239 (cgraph_check_inline_limits): Take an edge argument.
6240 (cgraph_decide_inlining_of_small_functions): Adjust.
6241 (cgraph_decide_inlining): Likewise.
6242 * tree-inline.c (estimate_num_insns): Only account for call
6243 return value if it is used.
6244 (expand_call_inline): Avoid diagnostics on recursive inline
6246 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6247 (input_edge): Input edge call costs.
6249 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6251 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6253 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6255 * doc/invoke.texi (Spec Files): Fix typo.
6257 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6259 * profile.c (branch_prob): Move declaration of local variable. Remove
6260 obsolete ??? comment. Expand the location explicitly instead of using
6261 the LOCATION_FILE and LOCATION_LINE macros.
6263 2011-04-06 Wei Guozhi <carrot@google.com>
6266 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6267 (arm_cond_branch): Likewise.
6268 (arm_cond_branch_reversed): Likewise.
6269 (arm_jump): Likewise.
6270 (push_multi): Likewise.
6271 * config/arm/constraints.md (Py): New constraint.
6273 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6276 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6278 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6279 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6280 #ifdef DBX_DEBUGGING_INFO.
6282 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6285 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6286 if old and new states differ.
6288 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6290 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6291 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6292 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6293 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6294 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6296 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6297 ColdFire options to -mcpu= options.
6299 2011-04-05 Jeff Law <law@redhat.com>
6301 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6302 check if BB is a successor of LOOP->header and return
6303 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6305 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6307 * cprop.c (struct reg_use): Remove.
6308 (reg_use_table): Make an array of RTX.
6309 (find_used_regs, constprop_register, local_cprop_pass,
6310 bypass_block): Simplify users of reg_use_table.
6311 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6312 on one of the uses found by find_used_regs.
6314 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6317 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6320 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6322 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6324 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6326 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6329 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6331 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6333 * combine.c: Include obstack.h.
6334 (struct insn_link): Define.
6335 (uid_log_links): Adjust type.
6336 (FOR_EACH_LOG_LINK): New macro.
6337 (insn_link_obstack): Declare.
6338 (alloc_insn_link): Define.
6339 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6340 type of link variables.
6341 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6342 (try_combine, record_promoted_values, distribute_notes): Likewise.
6343 (distribute_links): Likewise. Tweak prototype.
6344 (clear_log_links): Delete.
6345 (adjust_for_new_dest): Call alloc_insn_link.
6346 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6348 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6350 * gcse.c (modify_mem_list): Convert to an array of VECs.
6351 (canon_modify_mem_list, compute_transp): Tweak formatting.
6352 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6353 (load_killed_in_block_p): Likewise.
6354 (record_last_mem_set_info): Likewise.
6355 (clear_modify_mem_tables): Likewise.
6357 2011-04-05 Tom de Vries <tom@codesourcery.com>
6360 * function.c (emit_use_return_register_into_block): Only define if
6363 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6365 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6367 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6369 * config/rx/rx-opts.h: New.
6370 * config/rx/rx.c (rx_cpu_type): Remove.
6371 (rx_handle_option): Don't assert that global structures are in
6372 use. Access variables via opts pointer. Defer most handling of
6373 OPT_mint_register_. Use error_at.
6374 (rx_option_override): Handle deferred OPT_mint_register_ here.
6375 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6376 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6377 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6378 (rx_cpu_types): New Enum and EnumValue entries.
6379 (mint-register=): Use Defer and use Var accordingly.
6381 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6383 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6384 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6385 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6387 (debug_free_queue, debug_nesting, symbol_queue_index):
6389 * dbxout.c: ...to here. Make static.
6391 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6393 * gcse.c (modify_pair): Define. Define a VEC of it.
6394 (canon_modify_mem_list): Convert to an array of VECs.
6395 (free_insn_expr_list_list): Delete.
6396 (clear_modify_mem_tables): Call VEC_free instead.
6397 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6398 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6399 (canon_list_insert, compute_transp): Likewise.
6401 2011-04-05 Tom de Vries <tom@codesourcery.com>
6404 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6407 2011-04-05 Tom de Vries <tom@codesourcery.com>
6410 * function.c (emit_use_return_register_into_block): New function.
6411 (thread_prologue_and_epilogue_insns): Use
6412 emit_use_return_register_into_block.
6414 2011-04-05 Tom de Vries <tom@codesourcery.com>
6417 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6420 2011-04-05 Tom de Vries <tom@codesourcery.com>
6422 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6424 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6426 * config/arm/arm.md (define_constants for unspec): Replace with
6428 (define_constants for unspecv): Replace with define_c_enum.
6429 * config/arm/neon.md (define_constants for unspec): Replace with
6432 2011-04-04 Richard Henderson <rth@redhat.com>
6435 * dwarf2out.c (output_line_info): Always emit line info from
6436 at least one section.
6437 (dwarf2out_init): Create text_section_line_info here ...
6438 (set_cur_line_info_table): ... not here.
6440 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6443 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6446 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6448 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6450 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6451 (expr_equiv_p): Remove.
6452 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6453 (hash_scan_set): Update call to insert_set_in_table.
6454 (dump_hash_table): Dump <dest, src> pair.
6455 (lookup_set): Simplify. Lookup <dest, src> pair.
6456 (compute_transp): Remove, fold heavily simplified code into...
6457 (compute_local_properties): ...here. Expect COMP and TRANSP
6459 (find_avail_set): Take set directly from struct expr.
6460 (find_bypass-set): Likewise.
6461 (bypass_block): Likewise.
6462 (cprop_insn): Likewise. Remove redundant INSN_P test.
6464 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6465 checks on form of COND from find_implicit_sets to here.
6466 (find_implicit_sets): Cleanup control flow. Split critical edges
6467 if it exposes implicit sets. Allocate/resize implicit_sets as
6469 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6470 changed something. Run df_analyze after find_implicit_sets if any
6471 edges were split. Do not allocate implicit_sets here.
6473 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6474 (gcse_obstack): Renamed to cprop_obstack.
6475 (GNEW, GNEWVEC, GNEWVAR): Remove.
6477 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6478 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6479 (gcse_alloc): Likewise, and rename to cprop_alloc.
6480 (alloc_gcse_men, free_gcse_mem): Remove.
6481 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6482 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6483 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6485 * cprop.c (oprs_not_set_p): Remove.
6486 (mark_set, mark_clobber): Remove.
6487 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6488 (reg_not_set_p): New function.
6489 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6490 (cprop_insn): Likewise.
6491 (cprop_jump): Use FOR_EACH_EDGE.
6493 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6496 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6497 (rank_for_schedule): Use scheduled_insns vector instead of
6498 last_scheduled_insn.
6499 (ok_for_early_queue_removal): Likewise.
6500 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6502 (choose_ready): Likewise.
6503 (commit_schedule): Use VEC_iterate.
6504 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6505 a dbg_cnt, use it and ensure the first insn is in the ready list.
6506 (haifa_sched_init): Allocate scheduled_insns.
6507 (sched_extend_ready_list): Don't allocate it; reserve space.
6508 (haifa_sched_finish): Free it.
6510 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6512 * optc-gen.awk: Always remove type from Variable entry before
6513 recording in var_seen.
6515 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6517 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6518 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6519 call to tidy_fallthru_edges.
6521 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6523 * doc/options.texi (ToLower): Document.
6524 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6525 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6526 * opts.h (cl_option): Add cl_tolower field.
6527 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6528 arguments with lowercase strings.
6529 * config/rx/rx.opt (mcpu=): Add ToLower.
6530 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6533 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6535 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6537 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6539 * config/vax/vax.c: Include reload.h.
6541 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6543 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6544 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6545 (sparc_preferred_reload_class): New function.
6547 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6550 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6551 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6553 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6555 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6556 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6558 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6560 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6561 (ASM_OUTPUT_ALIGNED_BSS): Define.
6563 2011-04-03 Michael Matz <matz@suse.de>
6565 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6566 and next_slot members.
6567 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6568 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6569 (lto_streamer_cache_append): Declare.
6570 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6571 unsigned index, remove offset parameter, ensure that we append
6572 or update existing entries.
6573 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6574 parameter, update next_slot for append.
6575 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6577 (lto_streamer_cache_insert_at): Likewise.
6578 (lto_streamer_cache_append): New function.
6579 (lto_streamer_cache_lookup): Use unsigned index.
6580 (lto_streamer_cache_get): Likewise.
6581 (lto_record_common_node): Don't test tree_node_can_be_shared.
6582 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6583 (lto_streamer_cache_delete): Don't free offsets member.
6584 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6585 (lto_output_string_with_length): Use lto_output_data_stream.
6586 (lto_output_tree_header): Remove ix parameter, don't write it.
6587 (lto_output_builtin_tree): Likewise.
6588 (lto_write_tree): Adjust callers to above, don't track and write
6589 offset, write unsigned index.
6590 (output_unreferenced_globals): Don't emit all global vars.
6591 (write_global_references): Use unsigned indices.
6592 (lto_output_decl_state_refs): Likewise.
6593 (write_symbol): Likewise.
6594 * lto-streamer-in.c (lto_input_chain): Move earlier.
6595 (input_function): Use unsigned index.
6596 (input_alias_pairs): Don't read and then ignore all global vars.
6597 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6598 don't pass it back, use lto_streamer_cache_append.
6599 (lto_register_var_decl_in_symtab): Use unsigned index.
6600 (lto_register_function_decl_in_symtab): Likewise.
6601 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6603 (lto_get_builtin_tree): Don't read index, use
6604 lto_streamer_cache_append.
6605 (lto_read_tree): Adjust call to lto_materialize_tree.
6607 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6608 don't use function calls in arguments to MIN.
6610 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6613 * gimple.c (gimple_type_leader_entry): Mark deletable.
6615 2011-04-03 Alan Modra <amodra@gmail.com>
6617 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6619 2011-04-03 Michael Matz <matz@suse.de>
6621 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6623 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6625 2011-04-03 Michael Matz <matz@suse.de>
6627 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6628 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6629 without function context.
6630 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6631 current_function_decl and cfun.
6633 2011-04-03 Michael Matz <matz@suse.de>
6635 * tree.c (decl_init_priority_insert): Don't create entry for
6637 (decl_fini_priority_insert): Ditto.
6638 (fields_compatible_p, find_compatible_field): Remove.
6639 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6640 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6642 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6644 * combine.c (try_combine): Remove useless local variable.
6646 2011-04-03 Richard Guenther <rguenther@suse.de>
6647 Ira Rosen <ira.rosen@linaro.org>
6649 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6650 non-variable offsets and compare the remaining bases of the two
6651 accesses instead of looking for exact same data-ref.
6653 2011-04-02 Kai Tietz <ktietz@redhat.com>
6656 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6658 * i386.c (ix86_is_msabi_thiscall): New helper function.
6659 (ix86_is_type_thiscall): New helper function.
6660 (ix86_comp_type_attributes): Handle thiscall for method-functions
6662 (init_cumulative_args): Likewise.
6663 (find_drap_reg): Likewise.
6664 (ix86_static_chain): Likewise.
6665 (x86_this_parameter): Likewise.
6666 (x86_output_mi_thunk): Likewise.
6668 2011-04-01 Olivier Hainque <hainque@adacore.com>
6669 Nicolas Setton <setton@adacore.com>
6670 Eric Botcazou <ebotcazou@adacore.com>
6672 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6673 (add_gnat_descriptive_type_attribute): New function.
6674 (gen_array_type_die): Call it.
6675 (gen_enumeration_type_die): Likewise.
6676 (gen_struct_or_union_type_die): Likewise.
6677 (modified_type_die): Likewise.
6678 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6679 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6680 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6682 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6685 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6686 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6689 2011-03-17 Richard Guenther <rguenther@suse.de>
6692 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6693 origin for decls in other ltrans units.
6694 (input_varpool_node): Likewise.
6696 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6699 * expr.c (expand_assignment): Handle all possibilities
6700 if TO_RTX is CONCAT.
6701 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6702 (store_split_bit_field): If SUBREG_REG (op0) or
6703 op0 itself has smaller mode than word, return it
6704 for offset 0 and const0_rtx for out-of-bounds stores.
6705 If word is const0_rtx, skip it.
6707 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6709 * config/h8300/h8300.c (print_operand_address): Rename to...
6710 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6711 Call h8300_print_operand and h8300_print_operand_address instead of
6712 print_operand and print_operand_address. Declare.
6713 (print_operand): Renake to...
6714 (h8300_print_operand): ...this. Make static. Adjust comments.
6715 Call h8300_print_operand instead of print_operand. Declare.
6716 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6717 (h8300_register_move_cost): Likewise.
6718 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6719 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6720 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6721 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6722 * config/h8300/h8300-protos.h (print_operand): Delete.
6723 (print_operand_address): Delete.
6725 2011-04-01 Richard Henderson <rth@redhat.com>
6728 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6729 in strict mode before dwarf4. Re-order tests to early out
6730 before switching sections.
6732 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6734 * config/h8300/constraints.md: New file.
6735 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6736 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6737 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6738 * config/h8300/predicates.md (bit_operand): Likewise.
6739 (incdec_operand): Use satisfies_constraint_M and
6740 satisfies_constraint_O. Don't use C code block.
6741 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6742 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6743 (compute_mov_length): Use satisfies_constraint_G.
6744 (fix_bit_operand): Use satisfies_constraint_U.
6745 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6746 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6747 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6748 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6749 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6750 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6751 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6752 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6753 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6754 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6755 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6756 (EXTRA_MEMORY_CONSTRAINT): Delete.
6758 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6759 Michael Meissner <meissner@linux.vnet.ibm.com>
6762 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6763 operands, as per the specifications.
6765 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6766 (vec_extract_evenv4sf): Ditto.
6767 (vec_extract_evenv8hi): Ditto.
6768 (vec_extract_evenv16qi): Ditto.
6769 (vec_extract_oddv4si): Ditto.
6771 2011-03-31 Mark Wielaard <mjw@redhat.com>
6773 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6774 high_pc attribute if the CU has no associated code. Only output
6775 DW_AT_entry_pc for CU if not generating strict dwarf and
6778 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6780 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6781 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6783 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6784 * final.c (final_start_function): Call the new function rather
6785 than using a NULL argument for dwarf2out_frame_debug.
6787 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6788 that contains the prologue.
6790 * haifa-sched.c (queue_insn): New arg REASON. All callers
6791 changed. Print it in debugging output.
6793 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6795 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6796 Split most of the code into...
6797 (begin_move_insn): ... here. New function.
6798 (ebb_sched_info): Add a pointer to it.
6799 * haifa-sched.c (scheduled_insns): New static variable.
6800 (sched_extend_ready_list): Allocate it.
6801 (schedule_block): Use it to record the order of scheduled insns.
6802 Perform RTL changes to move insns only after all scheduling
6803 decisions have been made.
6804 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6805 begin_move_insn field.
6806 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6807 * sched-int.h (struct haifa_sched_info): Remove second argument
6808 from begin_schedule_ready hook. Add new member begin_move_insn.
6809 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6810 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6812 * haifa-sched.c (prune_ready_list): New function, broken out of
6814 (schedule_block): Use it.
6816 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6818 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6820 2011-04-01 Kai Tietz <ktietz@redhat.com>
6822 * config.gcc (*-*-mingw*): Allow as option the
6823 posix threading model.
6824 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6825 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6827 (CPP_SPEC): Add pthread/no-pthread handling.
6828 (LIB_SPEC): Likewise.
6829 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6830 (LIB_SPEC): Likewise.
6831 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6832 flag to pass -pthread option for shared libgcc build.
6833 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6834 for shared libgcc build.
6835 * config/i386/t-mingw-pthread: New file.
6836 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6837 New define to enable use of library pthread by default.
6838 * config/i386/mingw.opt (pthread): New driver option.
6839 (no-pthread): New driver option.
6840 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6841 * config/i386/mingw-w64.opt: Likewise.
6843 2011-04-01 Gary Funck <gary@intrepid.com>
6845 * c-decl.c (grokdeclarator): Fix formatting.
6847 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6849 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6850 instead of n_operands.
6851 (set_storage_via_setmem): Likewise.
6852 * optabs.c (maybe_gen_insn): Likewise.
6853 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6854 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6855 (mips_expand_builtin_direct): Likewise.
6856 * config/spu/spu.c (expand_builtin_args): Likewise.
6858 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6860 * recog.h (insn_data_d): Add n_generator_args.
6861 * genoutput.c (data): Likewise.
6862 (output_insn_data): Print it.
6863 (max_opno, num_dups): Delete.
6864 (scan_operands): Just fill in "d->operand[...]".
6865 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6867 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6869 * gensupport.h (pattern_stats): New structure.
6870 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6871 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6872 (max_operand_1, max_operand_vec): Delete.
6873 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6875 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6877 * emit-rtl.c (emit_pattern_after_setloc): New function.
6878 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6879 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6880 (emit_pattern_after): New function.
6881 (emit_insn_after, emit_jump_insn_after): Call it.
6882 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6883 (emit_pattern_before_setloc): New function.
6884 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6885 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6887 (emit_pattern_before): New function.
6888 (emit_insn_before, emit_jump_insn_before): Call it.
6889 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6891 2011-03-31 Richard Henderson <rth@redhat.com>
6893 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6894 (dw_separate_line_info_entry): Remove.
6895 (enum dw_line_info_opcode): New.
6896 (dw_line_info_entry): Use it.
6897 (dw_line_info_table, dw_line_info_table_p): New.
6898 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6899 (line_info_table, line_info_label_num): Remove.
6900 (line_info_table_in_use): Remove.
6901 (separate_line_info_table): Remove.
6902 (separate_line_info_table_allocated): Remove.
6903 (separate_line_info_table_in_use): Remove.
6904 (LINE_INFO_TABLE_INCREMENT): Remove.
6905 (line_info_label_num): New.
6906 (cur_line_info_table): New.
6907 (text_section_line_info, cold_text_section_line_info): New.
6908 (separate_line_info): New.
6909 (SEPARATE_LINE_CODE_LABEL): Remove.
6910 (print_dwarf_line_table): Remove.
6911 (debug_dwarf): Don't dump it.
6912 (output_one_line_info_table): New.
6913 (output_line_info): Use it.
6914 (new_line_info_table): New.
6915 (set_cur_line_info_table): New.
6916 (dwarf2out_switch_text_section): Use it.
6917 (dwarf2out_begin_function): Likewise.
6918 (push_dw_line_info_entry): New.
6919 (dwarf2out_source_line): Rewrite for new line info tables.
6920 (dwarf2out_init): Remove dead initailizations.
6922 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6924 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6926 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6927 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6928 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6929 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6930 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6931 * opt-functions.awk (flag_init, switch_bit_fields): New.
6932 (switch_flags): Don't handle flags moved to bit-fields. Don't
6933 generate CL_MISSING_OK or CL_SAVE.
6934 * optc-gen.awk: Update to generate bit-field output as well as
6936 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6937 bit-field instead of CL_REJECT_DRIVER flag.
6938 * opts-common.c (generate_canonical_option,
6939 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6940 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6941 instead of CL_REJECT_NEGATIVE flag.
6942 * toplev.c (print_switch_values): Use cl_report bit-field instead
6945 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6947 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6948 a zero minimum index only if it is redundant.
6950 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6952 PR rtl-optimization/48381
6953 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6954 instead of ira_class_hard_reg_index for calculating conflicting
6957 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6959 * cprop.c: Clean up hash table building.
6960 (reg_avail_info): Remove.
6961 (oprs_available_p): Remove.
6962 (record_last_reg_set_info): Remove.
6963 (record_last_set_info): Remove.
6964 (reg_available_p): New function.
6965 (gcse_constant_p): Do not treat unfolded conditions as constants.
6966 (make_set_regs_unavailable): New function.
6967 (hash_scan_set): Simplify with new reg_available_p.
6968 (compute_hash_table_work): Traverse insns stream only once.
6969 Do not compute reg_avail_info. Traverse insns in reverse order.
6970 Record implicit sets after recording explicit sets from the block.
6972 2011-03-31 Michael Matz <matz@suse.de>
6974 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6976 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6978 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6979 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6980 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6981 (h8300_mode_dependent_address_p): New function.
6982 (h8300_get_index): Make static.
6984 2011-03-31 Jeff Law <law@redhat.com>
6986 * reload1.c (elimination_effects): Fix typo in recent change.
6988 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6989 typo potentially leading to null pointer dereference.
6991 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6992 (setup_save_areas): Corresponding changes to avoid useless
6995 * jump.c (reversed_comparison_code_parts): Avoid successive return
6996 statements when REVERSE_CONDITION is defined.
6998 * expr.c (expand_assignment): Avoid useless assignments.
6999 (expand_expr_real_1): Likewise.
7000 (expand_expr_real_2): Avoid useless statements.
7002 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7004 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7006 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7009 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7011 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7014 * doc/tm.texi.in (TARGET_VERSION): Remove.
7015 * doc/tm.texi: Regenerate.
7016 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7017 * collect2.c (main): Don't use TARGET_VERSION.
7018 * mips-tdump.c (main): Don't use TARGET_VERSION.
7019 * mips-tfile.c (main): Don't use TARGET_VERSION.
7020 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7021 * config/rs6000/vxworksae.h: Remove.
7022 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7023 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7024 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7025 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7026 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7027 * config/arm/arm.h (TARGET_VERSION): Remove.
7028 * config/arm/coff.h (TARGET_VERSION): Remove.
7029 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7030 * config/arm/elf.h (TARGET_VERSION): Remove.
7031 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7032 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7033 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7034 * config/arm/pe.h (TARGET_VERSION): Remove.
7035 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7036 * config/arm/semi.h (TARGET_VERSION): Remove.
7037 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7038 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7039 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7040 * config/avr/avr.h (TARGET_VERSION): Remove.
7041 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7042 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7043 * config/frv/frv.h (TARGET_VERSION): Remove.
7044 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7045 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7046 * config/i386/darwin.h (TARGET_VERSION): Remove.
7047 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7048 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7049 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7050 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7051 * config/i386/gnu.h (TARGET_VERSION): Remove.
7052 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7053 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7054 * config/i386/linux.h (TARGET_VERSION): Remove.
7055 * config/i386/linux64.h (TARGET_VERSION): Remove.
7056 * config/i386/lynx.h (TARGET_VERSION): Remove.
7057 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7058 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7059 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7060 * config/i386/netware.h (TARGET_VERSION): Remove.
7061 * config/i386/nto.h (TARGET_VERSION): Remove.
7062 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7063 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7064 * config/ia64/elf.h (TARGET_VERSION): Remove.
7065 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7066 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7067 * config/ia64/linux.h (TARGET_VERSION): Remove.
7068 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7069 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7070 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7071 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7072 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7073 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7074 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7075 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7076 * config/m68k/linux.h (TARGET_VERSION): Remove.
7077 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7078 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7079 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7080 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7081 * config/mep/mep.h (TARGET_VERSION): Remove.
7082 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7083 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7084 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7085 * config/mips/linux.h (TARGET_VERSION): Remove.
7086 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7087 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7088 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7089 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7090 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7091 * config/pa/pa.h (TARGET_VERSION): Remove.
7092 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7093 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7094 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7095 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7096 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7097 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7098 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7099 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7100 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7101 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7102 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7103 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7104 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7105 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7106 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7107 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7108 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7109 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7110 * config/s390/linux.h (TARGET_VERSION): Remove.
7111 * config/s390/s390.h (TARGET_VERSION): Remove.
7112 * config/s390/tpf.h (TARGET_VERSION): Remove.
7113 * config/score/score.h (TARGET_VERSION): Remove.
7114 * config/sh/linux.h (TARGET_VERSION): Remove.
7115 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7116 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7117 * config/sh/sh.h (TARGET_VERSION): Remove.
7118 * config/sh/sh64.h (TARGET_VERSION): Remove.
7119 * config/sh/superh.h (TARGET_VERSION): Remove.
7120 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7121 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7122 * config/sparc/linux.h (TARGET_VERSION): Remove.
7123 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7124 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7125 TARGET_NAME32, TARGET_NAME): Remove.
7126 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7127 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7128 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7129 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7130 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7131 * config/spu/spu.h (TARGET_VERSION): Remove.
7132 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7133 * config/v850/v850.h (TARGET_VERSION): Remove.
7134 * config/vax/linux.h (TARGET_VERSION): Remove.
7135 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7136 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7137 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7139 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7142 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7143 frame-related from frame-unrelated adjustments to the stack pointer.
7145 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7147 * common.opt (fdebug-types-section): Move earlier.
7148 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7150 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7152 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7155 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7157 * tree.h (CASE_CHAIN): Define.
7158 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7159 (gimple_redirect_edge_and_branch): Likewise.
7161 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7164 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7167 2011-03-30 Jeff Law <law@redhat.com>
7169 * PR bootstrap/48371
7170 * reload1.c (reload): Fix botch in last change.
7172 * reload.h (struct reload): Fix typo introduced in last change.
7174 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7176 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7177 Undocumented. Remove help text.
7178 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7181 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7183 * doc/options.texi (NegativeAlias): Document.
7184 (Alias): Mention NegativeAlias.
7185 * opt-functions.awk: Handle NegativeAlias.
7186 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7187 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7188 * opts.h (CL_NEGATIVE_ALIAS): Define.
7189 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7190 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7192 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7194 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7195 mno-spe and mno-isel instead of mspe=no and -misel=no.
7197 2011-03-29 Mark Wielaard <mjw@redhat.com>
7199 * common.opt (fdebug-types-section): New flag.
7200 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7201 * dwarf2out.c (use_debug_types): New define.
7202 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7203 (print_die): Guard output of type unit signatures using
7205 (build_abbrev_table): Replace assert of dwarf_version >= 4
7206 with assert on use_debug_types.
7207 (size_of_die): Likewise.
7208 (unmark_dies): Likewise.
7209 (value_format): Decide AT_ref_external form on use_debug_types.
7210 (output_die): Replace dwarf_version version check guard with
7211 use_debug_types where appropriate.
7212 (modified_type_die): Likewise.
7213 (gen_reference_type_die): Likewise.
7214 (dwarf2out_start_source_file): Likewise.
7215 (dwarf2out_end_source_file): Likewise.
7216 (prune_unused_types_walk_attribs): Likewise.
7217 (dwarf2out_finish): Likewise.
7219 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7221 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7223 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7225 PR rtl-optimization/48332
7226 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7227 mode of input operand N and modeN to its actual mode.
7229 2011-03-30 Jeff Law <law@redhat.com>
7231 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7232 define accessor macro.
7233 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7234 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7235 (reg_equiv_init): Likewise.
7236 (reg_equivs_size): New variable.
7237 (reg_equiv_init_size): Remove.
7238 (allocate_initial_values): Move prototype to here from....
7239 * integrate.h (allocate_initial_values): Remove prototype.
7240 * integrate.c: Include reload.h.
7241 (allocate_initial_values): Corresponding changes.
7242 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7243 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7244 (update_equiv_regs): Corresponding changes.
7245 (ira): Corresponding changes.
7246 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7247 (push_secondary_reload): Corresponding changes.
7248 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7249 (make_memloc, find_reloads_address): Corresponding changes.
7250 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7251 (find_reloads_address_1): Corresponding changes.
7252 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7253 (refers_to_regno_for_reload_p): Corresponding changes.
7254 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7255 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7256 * reload1.c: Include ggc.h.
7257 (grow_reg_equivs): New function.
7258 (replace_pseudos_in, reload): Corresponding changes.
7259 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7260 (eliminate_regs_1, elimination_effects): Corresponding changes.
7261 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7262 (delete_output_reload): Likewise.
7263 * caller-save.c (mark_referenced_regs): Corresponding changes.
7264 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7265 * frv/predicates.md (frv_load_operand): Corresponding changes.
7266 * microblaze/microblaze.c (double_memory_operand): Corresponding
7268 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7269 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7270 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7271 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7272 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7274 * pa/pa.c (emit_move_sequence): Corresponding changes.
7275 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7277 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7280 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7281 structure modes. Don't check neon_vector_mem_operand for
7282 vector or structure modes.
7284 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7285 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7288 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7289 operand 1 and reshuffle the operands to match.
7290 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7292 2011-03-30 Christian Schüler <cschueler@gmx.de>
7295 * config/c.opt (F): Added 'Driver' to -F option.
7298 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7300 * config/darwin.opt: Added '-arch' option.
7302 2011-03-30 Nick Clifton <nickc@redhat.com>
7304 * config/rx/rx.md: Add peepholes and patterns to combine
7305 extending loads and simple arithmetic instructions.
7306 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7307 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7308 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7309 modes to use pre-decrement and post-increment addressing.
7310 (rx_is_restricted_memory_address): Add range checking of REG+INT
7312 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7313 (rx_memory_move_cost): Adjust cost of stores.
7314 (rx_adjust_insn_length): New function.
7316 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7319 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7320 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7321 matching arg00/arg01 types.
7323 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7325 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7326 last_location to UNKNOWN_LOCATION.
7328 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7331 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7334 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7335 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7338 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7340 (sparc_cpu): Likewise.
7341 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7344 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7348 PR rtl-optimization/48345
7349 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7350 hard regs for given mode from profitable regs when doing secondary
7353 2011-03-29 Jeff Law <law@redhat.com>
7356 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7357 do_not_duplicate field.
7358 (lookup_redirection_data): Corresponding changes.
7359 (create_duplicates): Always create a template block.
7360 (redirect_edges): Remove code which reused the original block
7361 when it was going to become unreachable code.
7362 (thread_block): Don't set do_not_duplicate field.
7364 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7366 * lto-opts.c (register_user_option_p, lto_register_user_option):
7367 Make type argument unsigned.
7368 * lto-streamer.h (lto_register_user_option): Make type argument
7370 * opth-gen.awk: Make CL_* macros unsigned.
7371 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7372 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7373 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7374 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7375 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7376 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7377 (find_opt): Make lang_mask argument unsigned.
7379 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7381 PR rtl-optimization/48331
7382 PR rtl-optimization/48334
7383 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7384 for any used algorithm.
7386 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7388 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7391 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7393 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7394 (alpha_option_override): Don't set alpha_sr_alias_set.
7395 (emit_frame_store_1): Use gen_frame_mem rather than calling
7397 (alpha_expand_epilogue): Ditto.
7399 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7401 PR tree-optimization/48290
7402 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7403 vectorization, check that relevant phis in the basic block after
7404 the inner loop are really inner loop's exit phis.
7406 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7409 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7410 (cached_dw_loc_list_def): New structure.
7411 (cached_dw_loc_list): New typedef.
7412 (cached_dw_loc_list_table): New variable.
7413 (cached_dw_loc_list_table_hash): New function.
7414 (cached_dw_loc_list_table_eq): Likewise.
7415 (add_location_or_const_value_attribute): Take a bool cache_p.
7416 Cache the list when the parameter is true.
7417 (gen_formal_parameter_die): Update caller.
7418 (gen_variable_die): Likewise.
7419 (dwarf2out_finish): Likewise.
7420 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7421 while generating debug info for the decl.
7422 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7423 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7424 (resolve_addr): Cache the result of resolving a chain of
7427 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7429 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7430 conflict object hard regset nodes have intersecting hard reg sets.
7432 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7433 after regstat_init_n_sets_and_refs.
7435 * ira.c: Add more comments at the top.
7436 (setup_stack_reg_pressure_class, setup_pressure_classes):
7437 Add comments how we compute the register pressure classes.
7438 (setup_allocno_and_important_classes): Add more comments.
7439 (setup_class_translate_array, reorder_important_classes)
7440 (setup_reg_class_relations): Add comments.
7442 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7445 * ira-color.c: Add 2011 to the Copyright line.
7446 (assign_hard_reg): Add more comments.
7447 (improve_allocation): Ditto.
7449 * ira-costs.c: Add 2011 to the Copyright line.
7450 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7452 (setup_regno_cost_classes_by_mode): Ditto.
7454 Initial patches from ira-improv branch:
7456 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7458 * ira-build.c (ira_create_object): Remove initialization of
7459 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7460 (ira_create_allocno): Remove initialization of
7461 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7462 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7463 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7464 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7465 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7466 Initialize ALLOCNO_ADD_DATA.
7467 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7468 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7470 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7471 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7473 * ira.c (ira_reallocate): Remove.
7474 (setup_pressure_classes): Call
7475 ira_init_register_move_cost_if_necessary. Use
7476 ira_register_move_cost instead of ira_get_register_move_cost.
7477 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7478 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7480 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7481 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7482 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7483 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7484 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7485 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7487 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7488 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7489 (struct allocno_color_data): New.
7490 (allocno_color_data_t): New typedef.
7491 (allocno_color_data): New definition.
7492 (ALLOCNO_COLOR_DATA): New macro.
7493 (struct object_color_data): New.
7494 (object_color_data_t): New typedef.
7495 (object_color_data): New definition.
7496 (OBJECT_COLOR_DATA): New macro.
7497 (update_copy_costs, calculate_allocno_spill_cost): Call
7498 ira_init_register_move_cost_if_necessary. Use
7499 ira_register_move_cost instead of ira_get_register_move_cost.
7500 (move_spill_restore, update_curr_costs): Ditto.
7501 (allocno_spill_priority): Make it inline.
7502 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7503 (struct coalesce_data, coalesce_data_t): New.
7504 (allocno_coalesce_data): New definition.
7505 (ALLOCNO_COALESCE_DATA): New macro.
7506 (merge_allocnos, coalesced_allocno_conflict_p): Use
7507 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7508 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7509 (coalesce_allocnos): Ditto.
7510 (setup_coalesced_allocno_costs_and_nums): Ditto.
7511 (collect_spilled_coalesced_allocnos): Ditto.
7512 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7513 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7514 (coalesce_spill_slots): Ditto.
7515 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7516 free allocno_coalesce_data.
7518 * ira-conflicts.c: Fix formatting.
7519 (process_regs_for_copy): Call
7520 ira_init_register_move_cost_if_necessary. Use
7521 ira_register_move_cost instead of ira_get_register_move_cost.
7522 (build_object_conflicts): Optimize.
7524 * ira-costs.c (record_reg_classes): Optimize. Call
7525 ira_init_register_move_cost_if_necessary. Use
7526 ira_register_move_cost, ira_may_move_in_cost, and
7527 ira_may_move_out_cost instead of ira_get_register_move_cost and
7528 ira_get_may_move_cost.
7529 (record_address_regs): Ditto.
7530 (scan_one_insn): Optimize.
7531 (find_costs_and_classes): Optimize.
7532 (process_bb_node_for_hard_reg_moves): Call
7533 ira_init_register_move_cost_if_necessary. Use
7534 ira_register_move_cost instead of ira_get_register_move_cost.
7536 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7537 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7538 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7539 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7541 (ira_initiate_emit_data, ira_finish_emit_data)
7542 (create_new_allocno): New functions.
7543 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7544 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7545 Use ira_register_move_cost instead of ira_get_register_move_cost.
7547 * ira-int.h: Fix some comments.
7548 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7549 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7550 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7551 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7553 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7554 bitfield after mode. Make hard_regno a short int. Make
7555 hard_regno short. Remove first_coalesced_allocno and
7556 next_coalesced_allocno. Move mem_optimized_dest_p,
7557 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7558 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7559 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7560 temp, colorable_p. Add new member add_data.
7561 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7562 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7563 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7564 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7565 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7566 (ALLOCNO_ADD_DATA): New macro.
7567 (ira_emit_data_t): New typedef.
7568 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7569 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7570 from struct ira_allocno.
7571 (ALLOCNO_EMIT_DATA): New macro.
7572 (ira_allocno_emit_data, allocno_emit_reg): New.
7573 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7574 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7575 (OBJECT_ADD_DATA): New macro.
7576 (ira_reallocate): Remove.
7577 (ira_initiate_emit_data, ira_finish_emit_data): New.
7578 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7579 (ira_init_register_move_cost_if_necessary): New.
7580 (ira_object_conflict_iter_next): Merge into
7581 ira_object_conflict_iter_cond.
7582 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7584 * ira-live.c (process_single_reg_class_operands): Call
7585 ira_init_register_move_cost_if_necessary. Use
7586 ira_register_move_cost instead of ira_get_register_move_cost.
7588 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7590 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7592 * ira-costs.c: Fix formatting.
7593 (cost_classes, cost_classes_num): Remove.
7594 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7595 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7596 (cost_classes_del, cost_classes_htab): New.
7597 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7598 (initiate_regno_cost_classes, setup_cost_classes): New.
7599 (setup_regno_cost_classes_by_aclass): New.
7600 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7601 (record_reg_classes): Use regno_cost_classes instead of
7602 cost_classes. Move checking opposite operand up.
7603 (record_address_regs): Use regno_cost_classes
7604 instead of cost_classes.
7605 (scan_one_insn): Ditto. Use always general register.
7606 (print_allocno_costs): Use regno_cost_classes instead of
7608 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7609 (find_costs_and_classes): Set up cost classes for each registers.
7610 Use also their mode for this. Use regno_cost_classes instead of
7612 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7614 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7615 (ira_costs, ira_set_pseudo_classes): Call
7616 initiate_regno_cost_classes and finish_regno_cost_classes.
7618 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7620 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7622 * target.def (ira_cover_classes): Remove.
7624 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7626 * doc/tm.texi.in: Ditto.
7628 * ira-conflicts.c: Remove mentioning cover classes from the file.
7629 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7630 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7632 * targhooks.c (default_ira_cover_classes): Remove.
7634 * targhooks.h (default_ira_cover_classes): Ditto.
7636 * haifa-sched.c: Remove mentioning cover classes from the file.
7637 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7638 ira_pressure_classes and ira_pressure_classes_num instead of
7639 ira_reg_class_cover_size and ira_reg_class_cover. Use
7640 sched_regno_pressure_class instead of sched_regno_cover_class.
7641 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7642 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7644 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7645 classes from the file.
7646 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7647 (struct object_hard_regs, struct object_hard_regs_node): New.
7648 (struct ira_object): New members profitable_hard_regs,
7649 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7650 (struct ira_allocno): Rename cover_class to aclass. Rename
7651 cover_class_cost and updated_cover_class_cost to class_cost and
7652 updated_class_cost. Remove splay_removed_p and
7653 left_conflict_size. Add new members colorable_p.
7654 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7655 (ALLOCNO_COLORABLE_P): New macro.
7656 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7657 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7658 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7659 (OBJECT_...): Rename parameter C to O.
7660 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7661 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7662 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7663 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7664 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7665 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7666 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7667 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7668 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7669 x_ira_reg_class_subunion.
7670 (ira_max_memory_move_cost, ira_max_register_move_cost)
7671 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7672 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7673 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7674 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7675 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7676 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7677 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7678 (ira_tune_allocno_costs_and_cover_classes): Rename to
7679 ira_tune_allocno_costs.
7680 (ira_debug_hard_regs_forest): New.
7681 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7682 (ira_object_conflict_iter_next): Fix comments.
7683 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7684 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7685 cover_class to aclass.
7686 (ira_allocate_and_accumulate_costs): Ditto.
7687 (ira_allocate_and_set_or_copy_costs): Ditto.
7689 * opts.c (decode_options): Remove ira_cover_class check.
7691 * ira-color.c: Remove mentioning cover classes from the file. Use
7692 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7693 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7694 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7695 (splay-tree.h): Remove include.
7696 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7697 before copy_freq_compare_func.
7698 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7699 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7701 (hard_regs_roots, hard_regs_node_vec): Ditto.
7702 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7703 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7704 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7705 (create_new_object_hard_regs_node): Ditto.
7706 (add_new_object_hard_regs_node_to_forest): Ditto.
7707 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7708 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7710 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7711 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7712 (remove_unused_object_hard_regs_nodes): Ditto.
7713 (enumerate_object_hard_regs_nodes): Ditto.
7714 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7715 (object_hard_regs_subnode_t): Ditto.
7716 (struct object_hard_regs_subnode): Ditto.
7717 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7718 (setup_object_hard_regs_subnode_index): Ditto.
7719 (get_object_hard_regs_subnodes_num): Ditto.
7720 (form_object_hard_regs_nodes_forest): Ditto.
7721 (finish_object_hard_regs_nodes_tree): Ditto.
7722 (finish_object_hard_regs_nodes_forest): Ditto.
7723 (allocnos_have_intersected_live_ranges_p): Rename to
7724 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7725 (pseudos_have_intersected_live_ranges_p): Rename to
7726 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7727 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7728 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7729 (update_copy_costs): Remove assert. Skip cost update if the hard
7730 reg does not belong the class.
7731 (assign_hard_reg): Process only profitable hard regs.
7732 (uncolorable_allocnos_num): Make it scalar.
7733 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7734 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7735 and ira_reg_class_max_nregs.
7736 (bucket_allocno_compare_func): Check frequency first.
7737 (sort_bucket): Add compare function as a parameter.
7738 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7739 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7740 (push_allocno_to_stack): Rewrite for checking new allocno
7742 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7743 (push_only_colorable): Pass new parameter to sort_bucket.
7744 (push_allocno_to_spill): Remove.
7745 (allocno_spill_priority_compare): Make it inline and rewrite.
7746 (splay_tree_allocate, splay_tree_free): Remove.
7747 (allocno_spill_sort_compare): New function.
7748 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7749 build and use splay tree. Choose first allocno in uncolorable
7750 allocno bucket to spill. Remove setting spill cost.
7751 (all_conflicting_hard_regs): Remove.
7752 (setup_allocno_available_regs_num): Check only profitable hard
7753 regs. Print info about hard regs nodes.
7754 (setup_allocno_left_conflicts_size): Remove.
7755 (put_allocno_into_bucket): Don't call
7756 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7757 (improve_allocation): New.
7758 (color_allocnos): Call setup_profitable_hard_regs,
7759 form_object_hard_regs_nodes_forest, improve_allocation,
7760 finish_object_hard_regs_nodes_forest. Setup spill cost.
7761 (print_loop_title): Use pressure classes.
7762 (color_allocnso): Ditto.
7763 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7764 and allocnos_for_spilling.
7765 (ira_sort_regnos_for_alter_reg): Don't setup members
7766 {first,next}_coalesced_allocno.
7767 (color): Remove allocating and freeing removed_splay_allocno_vec.
7768 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7769 prohibited_class_mode_regs.
7771 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7773 (update_allocno_pressure_excess_length): Use pressure classes.
7774 (inc_register_pressure, dec_register_pressure): Check for pressure
7776 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7777 pressure class. Use ira_reg_class_nregs instead of
7778 ira_reg_class_max_nregs.
7779 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7780 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7781 (single_reg_class): Use ira_reg_class_nregs instead of
7782 ira_reg_class_max_nregs.
7783 (process_bb_node_lives): Use pressure classes.
7785 * ira-emit.c: Remove mentioning cover classes from the file. Use
7786 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7787 (change_loop): Use pressure classes.
7788 (modify_move_list): Call ira_set_allocno_class instead of
7789 ira_set_allocno_cover_class.
7791 * ira-build.c: Remove mentioning cover classes from the file. Use
7792 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7793 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7794 ALLOCNO_UPDATED_CLASS_COST instead of
7795 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7796 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7797 (ira_create_allocno): Remove initialization of
7798 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7799 ALLOCNO_COLORABLE_P.
7800 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7801 Update conflict regs for the objects.
7802 (create_cap_allocno): Remove assert. Don't propagate
7803 ALLOCNO_AVAILABLE_REGS_NUM.
7804 (ira_free_allocno_costs): New function.
7805 (finish_allocno): Change a part of code into call of
7806 ira_free_allocno_costs.
7807 (low_pressure_loop_node_p): Use pressure classes.
7808 (object_range_compare_func): Don't compare classes.
7809 (setup_min_max_conflict_allocno_ids): Ditto.
7811 * loop-invariant.c: Remove mentioning cover classes from the file.
7812 Use ira_pressure_classes and ira_pressure_classes_num instead of
7813 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7814 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7815 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7816 Use reg_allocno_class instead of reg_cover_class.
7817 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7818 STACK_REG_COVER_CLASS.
7819 (get_regno_cover_class): Rename to get_regno_pressure_class.
7820 (move_loop_invariants): Initialize and finalize regstat.
7822 * ira.c: Remove mentioning cover classes from the file. Add
7823 comments about coloring without cover classes. Use ALLOCNO_CLASS
7824 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7825 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7826 setup_class_subset_and_memory_move_costs.
7827 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7828 (setup_cover_and_important_classes): Rename to
7829 setup_allocno_and_important_classes.
7830 (setup_class_translate_array): New.
7831 (setup_class_translate): Call it for allocno and pressure classes.
7832 (cover_class_order): Rename to allocno_class_order.
7833 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7834 of ira_class_translate.
7835 (reorder_important_classes): Set up ira_important_class_nums.
7836 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7837 (print_class_cover): Rename to print_classes. Add parameter.
7838 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7839 Print pressure classes too.
7840 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7841 setup_reg_subclasses.
7842 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7843 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7844 (setup_prohibited_class_mode_regs): Use
7845 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7846 (clarify_prohibited_class_mode_regs): New function.
7847 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7848 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7849 (ira_init_once): Initialize them.
7850 (free_register_move_costs): Process them.
7851 (ira_init): Move calls of find_reg_classes and
7852 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7853 Call clarify_prohibited_class_mode_regs.
7854 (ira_no_alloc_reg): Remove.
7855 (too_high_register_pressure_p): Use pressure classes.
7857 * sched-deps.c: Remove mentioning cover classes from the file.
7858 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7859 ira_pressure_classes and ira_pressure_classes_num instead of
7860 ira_reg_class_cover_size and ira_reg_class_cover.
7861 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7862 sched_regno_pressure_class instead of sched_regno_cover_class.
7863 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7864 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7866 * ira.h: Add 2010 to Copyright.
7867 (ira_no_alloc_reg): Remove external.
7868 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7869 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7870 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7871 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7872 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7873 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7874 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7875 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7876 x_ira_no_alloc_regs.
7877 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7878 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7879 ira_allocno_classes_num and ira_allocno_classes.
7880 (ira_class_translate): Rename to ira_allocno_class_translate.
7881 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7882 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7883 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7884 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7885 (ira_no_alloc_regs): New.
7887 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7888 classes from the file. Use ALLOCNO_CLASS instead of
7889 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7890 ALLOCNO_COVER_CLASS_COST.
7891 (regno_cover_class): Rename to regno_aclass.
7892 (record_reg_classes): Use ira_reg_class_subunion instead of
7893 ira_reg_class_union.
7894 (record_address_regs): Check overflow.
7895 (scan_one_insn): Ditto.
7896 (print_allocno_costs): Print total mem cost fore regional allocation.
7897 (print_pseudo_costs): Use REG_N_REFS.
7898 (find_costs_and_classes): Use classes intersected with them on the
7899 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7900 ira_reg_class_union. Use ira_allocno_class_translate and
7901 regno_aclass instead of ira_class_translate and regno_cover_class.
7902 Modify code for finding regno_aclass. Setup preferred classes for
7904 (setup_allocno_cover_class_and_costs): Rename to
7905 setup_allocno_class_and_costs. Use regno_aclass instead of
7906 regno_cover_class. Use ira_set_allocno_class instead of
7907 ira_set_allocno_cover_class.
7908 (init_costs, finish_costs): Use regno_aclass instead of
7910 (ira_costs): Use setup_allocno_class_and_costs instead of
7911 setup_allocno_cover_class_and_costs.
7912 (ira_tune_allocno_costs_and_cover_classes): Rename to
7913 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7914 by processing objects. Use ira_reg_class_max_nregs instead of
7915 ira_reg_class_nregs.
7917 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7919 * sched-int.h: Remove mentioning cover classes from the file.
7920 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7922 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7923 classes from the file.
7924 (struct reg_pref): Rename coverclass into allocnoclass.
7925 (reg_cover_class): Rename to reg_allocno_class.
7927 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7929 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7931 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7933 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7935 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7937 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7939 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7941 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7943 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7945 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7947 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7948 (i386_ira_cover_classes): Ditto.
7950 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7952 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7954 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7956 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7958 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7960 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7962 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7963 (mips_ira_cover_classes): Ditto.
7965 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7967 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7969 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7971 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7973 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7975 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7976 (IRA_COVER_CLASSES_VSX): Ditto.
7978 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7979 (rs6000_ira_cover_classes): Ditto.
7981 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7983 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7985 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7987 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7989 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7991 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7993 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7995 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7997 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7999 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8001 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8004 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8005 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8006 dw_fde_unlikely_section_end_label, cold_in_std_section,
8007 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8008 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8010 (output_fde): Use dw_fde_second_{begin,end} if second is
8011 true, otherwise dw_fde_{begin,end}.
8012 (output_call_frame_info): Test dw_fde_second_begin != NULL
8013 instead of dw_fde_switched_sections.
8014 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8015 fields, initialize new fields. Initialize in_std_section
8016 unconditionally from the first partition.
8017 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8018 dw_fde_second_begin is non-NULL.
8019 (dwarf2out_switch_text_section): Stop initializing removed
8020 dw_fde_struct fields, initialize new fields, initialize
8021 also dw_fde_end here. Set dw_fde_switch_cfi even when
8022 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8023 (struct var_loc_list_def): Add last_before_switch field.
8024 (arange_table, arange_table_allocated, arange_table_in_use,
8025 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8026 (size_of_aranges): Count !in_std_section and !second_in_std_section
8027 hunks in fdes, instead of looking at arange_table_in_use.
8028 (output_aranges): Add aranges_length argument, don't call
8029 size_of_aranges here. Instead of using aranges_table*
8030 emit ranges for fdes when !in_std_section resp.
8031 !second_in_std_section.
8032 (dw_loc_list): Break ranges crossing section switch.
8033 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8034 use dw_fde_second_end instead of dw_fde_end as end of last range.
8035 (gen_subprogram_die): Don't call add_arange. Use
8036 dw_fde_{begin,end} for first partition and if switched
8037 section dw_fde_second_{begin,end} for the second.
8038 (var_location_switch_text_section_1,
8039 var_location_switch_text_section): New functions.
8040 (dwarf2out_begin_function): Initialize cold_text_section even
8041 when function_section () isn't text_section.
8042 (prune_unused_types): Don't walk arange_table.
8043 (dwarf2out_finish): Don't needlessly test
8044 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8045 If info_section_emitted, call size_of_aranges and if it indicates
8046 non-empty .debug_aranges, call output_aranges with the computed
8047 size. Stop using removed dw_fde_struct fields, use
8048 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8052 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8053 create ENTRY_VALUE if incoming or address of incoming's MEM
8055 * dwarf2out.c (mem_loc_descriptor): Don't emit
8056 DW_OP_GNU_entry_value of DW_OP_fbreg.
8057 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8058 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8059 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8060 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8062 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8063 is a REG_P or MEM_P with REG_P address, compute hash directly
8064 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8065 (preserve_only_constants): Don't clear VALUES forwaring
8066 ENTRY_VALUE to some other VALUE.
8068 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8070 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8073 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8075 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8076 block before expanding the statement.
8077 (expand_gimple_stmt_1): Likewise. Set them here...
8078 (expand_gimple_stmt): ...and not here. Tidy.
8079 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8082 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8084 * Makefile.in: New rule for cprop.o.
8085 * gcse.c: Move constant/copy propagation to cprop.c.
8086 (compute_local_properties): Only handle expression tables.
8087 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8088 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8089 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8090 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8091 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8092 compute_cprop_data, find_used_regs, try_replace_reg,
8093 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8094 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8095 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8096 find_bypass_set, reg_killed_on_edge, bypass_block,
8097 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8098 execute_rtl_cprop, pass_rtl_cprop): Move to...
8099 * cprop.c: ...here. New file, constant/copy propagation for RTL
8100 moved from gcse.c to here with minor cleanups in duplicated code.
8102 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8104 * config/i386/i386.c (flag_opts): Fix a typo in
8105 -mavx256-split-unaligned-store.
8107 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8109 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8110 LIBCALL_VALUE): Remove macros.
8111 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8112 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8113 (h8300_function_value, h8300_libcall_value,
8114 h8300_function_value_regno_p): New functions.
8116 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8118 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8120 2011-03-28 Jeff Law <law@redhat.com>
8122 * tree-ssa-threadupdate.c (redirect_edges): Call
8123 create_edge_and_update_destination_phis as needed.
8124 (create_edge_and_update_destination_phis): Accept new BB argument.
8125 All callers updated.
8126 (thread_block): Do not update the profile when threading around
8127 intermediate blocks.
8128 (thread_single_edge): Likewise.
8129 (determine_bb_domination_status): If BB is not a successor of the
8130 loop header, return NONDOMINATING.
8131 (register_jump_thread): Note when we register a jump thread around
8132 an intermediate block.
8133 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8134 (thread_across_edge): Use it.
8136 2011-03-28 Tristan Gingold <gingold@adacore.com>
8138 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8139 when for_return is 2.
8141 2011-03-28 Jeff Law <law@redhat.com>
8143 * var-tracking.c (canonicalize_values_mark): Delete unused
8145 (canonicalize_values_star, set_variable_part): Likewise.
8146 (clobber_variable_part, delete_variable_part): Likewise.
8148 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8150 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8152 2011-03-28 Martin Jambor <mjambor@suse.cz>
8154 * tree-inline.c (expand_call_inline): Do not check that destination
8156 (optimize_inline_calls): Assert that destination node is analyzed.
8157 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8158 not call tree_lowering_passes.
8159 * cgraph.h (cgraph_analyze_function): Declare.
8160 * cgraphunit.c (cgraph_analyze_function): Make public.
8162 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8164 * config/sparc/sparc-opts.h: New.
8165 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8166 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8167 (sparc_option_override): Store processor_type enumeration rather
8168 than string in cpu_default. Remove name and enumeration from
8169 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8170 without using sparc_select. Use target_flags_explicit instead of
8172 * config/sparc/sparc.h (enum processor_type): Move to
8174 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8175 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8176 HeaderInclude entry.
8177 (mcpu=, mtune=): Use Var and Enum.
8178 (sparc_processor_type): New Enum and EnumValue entries.
8180 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8181 Iain Sandoe <iains@gcc.gnu.org>
8184 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8186 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8188 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8189 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8190 Insert new statements at it in lieu of STMT.
8191 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8192 * tree-vect-stmts.c (vectorizable_store): Likewise.
8193 (vectorizable_load): Likewise.
8195 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8197 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8202 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8204 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8205 unaligned 256bit load/store.
8206 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8207 (*avx_movdqu<avxmodesuffix>): Likewise.
8209 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8212 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8213 * config/pa/pa.md (iordi3): Use new predicate in expander.
8216 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8218 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8219 FUNCTION_VALUE_REGNO_P): Remove macros.
8220 * config/mips/mips-protos.h (mips_function_value): Remove.
8221 * config/mips/mips.c (mips_function_value): Rename to...
8222 (mips_function_value_1): ... this. Make static. Handle receiving
8223 the function type in 'fn_decl_or_type' argument.
8224 (mips_function_value, mips_libcall_value,
8225 mips_function_value_regno_p): New function.
8226 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8227 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8229 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8231 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8232 and -mavx256-split-unaligned-store.
8233 (ix86_option_override_internal): Split 32-byte AVX unaligned
8234 load/store by default.
8235 (ix86_avx256_split_vector_move_misalign): New.
8236 (ix86_expand_vector_move_misalign): Use it.
8238 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8239 -mavx256-split-unaligned-store.
8241 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8242 256bit load/store. Generate unaligned store on misaligned memory
8244 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8246 (*avx_movdqu<avxmodesuffix>): Likewise.
8248 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8249 -mavx256-split-unaligned-store.
8251 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8254 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8257 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8259 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8260 opno arguments with an expand_operand. Use create_input_operand.
8261 (mips_prepare_builtin_target): Delete.
8262 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8264 (mips_expand_builtin_direct): Use create_output_operand and
8265 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8266 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8267 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8269 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8271 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8273 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8275 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8277 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8278 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8279 basic blocks and call commit_edge_insertions directly.
8280 (fixup_abnormal_edges): Move from here to...
8281 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8282 on the edges and return whether some have actually been inserted.
8283 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8286 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8288 PR rtl-optimization/48144
8289 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8290 (merge_expr_data): ... here.
8291 (av_set_intersect): Rename to av_set_code_motion_filter.
8292 Update all callers. Call merge_history_vect when an expression
8293 is found in both sets.
8294 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8296 2011-03-26 Alan Modra <amodra@gmail.com>
8298 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8299 cmodel medium addresses.
8300 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8301 64-bit gpr loads and stores.
8302 (rs6000_secondary_reload_ppc64): New function.
8303 * config/rs6000/rs6000-protos.h: Declare it.
8304 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8306 2011-03-26 Alan Modra <amodra@gmail.com>
8309 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8310 GNU Go in traceback table.
8312 2011-03-25 Richard Henderson <rth@redhat.com>
8314 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8315 if there are exactly 6 operands.
8316 (set_storage_via_setmem): Similarly.
8318 2011-03-25 Kai Tietz <ktietz@redhat.com>
8320 * collect2.c (write_c_file_stat): Handle backslash
8321 as right-hand directory separator.
8322 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8323 checking just for slash.
8324 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8325 instead of checking for trailing slash.
8326 * gcc.c (record_temp_file): Use filename_cmp instead
8328 (do_spec_1): Likewise.
8329 (replace_outfile_spec_function): Likewise.
8330 (is_directory): Use filename_ncmp instead of strncmp.
8331 (print_multilib_info): Likewise.
8332 * gcov.c (find_source): Use filename_cmp instead
8334 (make_gcov_file_name): Fix order of slash/backslash
8336 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8337 (add_standard_paths): Likewise.
8338 * mips-tfile.c (saber_stop): Handle backslash.
8339 * prefix.c (update_path): Use filename_ncmp instead of
8341 * profile.c (output_location): Use filename_cmp instead
8343 * read-md.c (handle_toplevel_file): Handle backslash.
8344 * tlink.c (frob_extension): Likewise.
8345 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8347 * tree-dump.c (dequeue_and_dump): Handle backslash.
8348 * tree.c (get_file_function_name): Likewise.
8349 * gengtype.c (read_input_list): Likewise.
8350 (get_file_realbasename): Likewise.
8351 (get_output_file_with_visibility): Use filename_cmp
8354 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8356 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8359 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8361 * fold-const.c (expr_location_or): New function.
8362 (fold_truth_not_expr): Call it.
8364 2011-03-25 Jeff Law <law@redhat.com>
8366 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8368 * c-family/c-common.c (def_fn_type): Likewise.
8369 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8370 * emit-rtl.c (gen_rtvec): Likewise.
8371 * lto/lto-lang.c (def_fn_type): Likewise.
8373 2011-03-25 Richard Guenther <rguenther@suse.de>
8375 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8376 also generate copies.
8377 (fini_copy_prop): Handle constant values properly.
8379 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8381 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8382 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8383 (hash_loc_operands, compare_loc_operands): Handle
8384 DW_OP_GNU_entry_value.
8386 2011-03-25 Kai Tietz <ktietz@redhat.com>
8388 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8389 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8390 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8391 comment and use macro TARGET_64BIT_MS_ABI instead.
8392 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8393 and change default behavior for 32-bit MS_ABI.
8394 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8395 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8397 (ix86_cfun_abi): Likewise.
8398 (ix86_maybe_switch_abi): Adjust comment.
8399 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8400 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8401 instead of checking for SYSV_ABI.
8402 (ix86_nsaved_sseregs): Likewise.
8403 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8405 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8406 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8407 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8408 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8409 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8411 2011-03-25 Richard Guenther <rguenther@suse.de>
8413 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8414 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8415 (verify_gimple): Remove.
8416 * tree-cfg.c (verify_gimple_call): Merge verification
8418 (verify_gimple_phi): Merge verification from verify_stmts.
8419 (verify_gimple_label): New function.
8420 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8421 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8422 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8423 (verify_stmts): Rename to verify_gimple_in_cfg.
8424 (verify_gimple_in_cfg): New function.
8425 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8426 * tree-ssa.c (verify_ssa): Likewise.
8427 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8429 2011-03-25 Richard Guenther <rguenther@suse.de>
8431 * passes.c (init_optimization_passes): Add FRE pass after
8434 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8435 Andrew Stubbs <ams@codesourcery.com>
8437 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8439 (arm_movdi_vfp_cortexa8): New pattern.
8440 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8441 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8442 instructions when tuning for Cortex-A8. Set attribute "arch".
8443 * config/arm/arm.md: Move include arm-tune.md up a bit.
8444 (define_attr "arch"): Add "onlya8" and "nota8" values.
8445 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8447 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8451 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8453 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8454 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8455 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8456 * passes.c (init_optimization_passes): Move
8457 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8459 2011-03-25 Kai Tietz <ktietz@redhat.com>
8461 * c-typeck.c (comptypes_internal): Replace target
8462 hook call of comp_type_attributes by version in tree.c file.
8463 * gimple.c (gimple_types_compatible_p_1): Likewise.
8464 * tree-ssa.c (useless_type_conversion_p): Likewise.
8465 * tree.c (build_type_attribute_qual_variant): Likewise.
8466 (attribute_value_equal): New static helper function.
8467 (comp_type_attributes): New function.
8468 (merge_attributes): Use attribute_value_equal for comparison.
8469 (attribute_list_contained): Likewise.
8470 * tree.h (comp_type_attributes): New prototype.
8472 2011-03-25 Richard Guenther <rguenther@suse.de>
8474 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8475 of complex types at -O0.
8476 (verify_gimple_assign_binary): Likewise.
8477 (verify_gimple_assign_ternary): Likewise.
8479 2011-03-24 Mark Wielaard <mjw@redhat.com>
8481 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8482 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8484 2011-03-24 Mark Wielaard <mjw@redhat.com>
8487 * dwarf2out.c (output_abbrev_section): Only write table when
8488 abbrev_die_table_in_use > 1.
8490 2011-02-24 Richard Henderson <rth@redhat.com>
8492 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8493 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8494 (alpha_expand_unaligned_load_words): Use extql.
8495 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8496 (emit_insxl): Handle all modes for consistency.
8498 2011-02-24 Richard Henderson <rth@redhat.com>
8500 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8501 (alpha_expand_unaligned_load): Likewise.
8502 (alpha_expand_unaligned_store): Likewise.
8503 (alpha_expand_unaligned_load_words): Likewise.
8504 (alpha_expand_unaligned_store_words): Likewise.
8505 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8506 (alpha_split_lock_test_and_set_12): Likewise.
8507 (print_operand, alpha_fold_builtin_extxx): Likewise.
8508 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8509 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8510 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8511 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8512 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8513 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8514 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8515 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8516 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8517 (extwl, extll, extql): Similarly.
8518 (inswh, inslh, insqh): Similarly.
8519 (mskbl, mskwl, mskll, mskql): Similarly.
8520 (mskwh, msklh, mskqh): Similarly.
8522 2011-02-24 Richard Henderson <rth@redhat.com>
8524 * config/alpha/alpha.md (attribute isa): Add er, ner.
8525 (attribute enabled): Handle them.
8526 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8528 2011-02-24 Richard Henderson <rth@redhat.com>
8530 * config/alpha/alpha.md (attribute isa): Add vms.
8531 (attribute enabled): Handle it.
8532 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8533 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8534 (*movtf): Rename from *movtf_internal for consistency.
8535 (*movsi): Merge with *movsi_nt_vms.
8536 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8537 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8538 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8539 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8541 2011-02-24 Richard Henderson <rth@redhat.com>
8543 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8544 (extendqisi2, extendhisi2): Likewise.
8545 (extendqidi2): Simplify BWX/non-BWX expansions.
8546 (extendhidi2): Similarly.
8548 2011-02-24 Richard Henderson <rth@redhat.com>
8550 * config/alpha/alpha.md (attribute isa): New.
8551 (attribute enabled): New.
8552 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8553 (zero_extendqisi2, zero_extendqidi2): Similarly.
8554 (zero_extendhisi2, zero_extendhidi2): Similarly.
8555 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8557 2011-02-24 Richard Henderson <rth@redhat.com>
8559 * config/alpha/predicates.md (input_operand): Revert last change;
8560 update comment to mention 32-bit VMS rather than Windows.
8562 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8564 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8565 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8566 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8567 * passes.c (init_optimization_passes): Move
8568 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8570 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8572 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8574 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8576 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8579 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8582 * simplify-rtx.c (simplify_const_unary_operation): Call
8583 real_convert when changing mode class with FLOAT_EXTEND.
8585 2011-03-24 Nick Clifton <nickc@redhat.com>
8587 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8588 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8589 * config/rx/rx.c (rx_option_override): Set align_jumps,
8590 align_loops and align_labels if not set by the user.
8591 (rx_align_for_label): New function.
8592 (rx_max_skip_for_label): New function.
8593 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8594 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8595 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8596 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8597 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8599 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8601 PR rtl-optimization/48263
8602 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8603 and original commutative_p handling. Use maybe_gen_insn.
8605 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8607 * reload.c (find_reloads_subreg_address): Add address_reloaded
8608 parameter and return true there if the full address has been
8610 (find_reloads_toplev): Pass address_reloaded flag.
8611 (find_reloads_address_1): Don't use address_reloaded parameter.
8613 2011-03-24 Jeff Law <law@redhat.com>
8615 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8616 unused variable "ann".
8617 (remove_unused_locals): Likewise.
8619 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8622 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8625 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8627 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8628 for invalid symbolic addresses.
8629 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8632 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8634 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8635 the argument in calls to fold_truth_not_expr.
8637 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8639 * tree.c (record_node_allocation_statistics): New function.
8640 (make_node_stat, copy_node_stat, build_string): Call it.
8641 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8642 (build1_stat, build_omp_clause): Likewise.
8644 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8646 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8649 2011-03-24 Richard Guenther <rguenther@suse.de>
8651 PR tree-optimization/48271
8652 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8653 blocks that still exist.
8655 2011-03-24 Richard Guenther <rguenther@suse.de>
8657 PR tree-optimization/48270
8658 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8659 not free datarefs before ddrs.
8661 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8663 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8664 from the address built for a reference with variable offset.
8666 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8669 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8670 alternatives that can be handled with movq or movabsq insn.
8671 (*movdf_internal): Disable for !TARGET_64BIT.
8672 (*movdf_internal_nointeger): Ditto.
8673 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8675 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8677 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8678 (FUNCTION_ARG_ADVANCE): Likewise.
8679 * tm.texi.in: Change references to them to hook references.
8680 * tm.texi: Regenerate.
8681 * targhooks.c (default_function_arg): Eliminate check for target macro.
8682 (default_function_incoming_arg): Likewise.
8683 (default_function_arg_advance): Likewise.
8684 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8685 (function_arg_advance): Likewise.
8686 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8688 2011-03-24 Richard Guenther <rguenther@suse.de>
8691 * tree-object-size.c (addr_object_size): Do not double-account
8692 for MEM_REF offsets.
8694 2011-03-24 Diego Novillo <dnovillo@google.com>
8696 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8697 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8698 (lto_input_data_block): Move from lto-opts.c. Make extern.
8700 (lto_input_string): Rename from input_string. Make extern.
8702 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8703 output_string_with_length.
8704 Output 0 to indicate a non-NULL string. Update all callers to
8706 (lto_output_string): Rename from output_string. Make extern.
8708 (lto_output_decl_state_streams): Make extern.
8709 (lto_output_decl_state_refs): Make extern.
8710 * lto-streamer.h (lto_input_string): Declare.
8711 (lto_input_data_block): Declare.
8712 (lto_output_string): Declare.
8713 (lto_output_string_with_length): Declare.
8714 (lto_output_decl_state_streams): Declare.
8715 (lto_output_decl_state_refs): Declare.
8717 2011-03-24 Richard Guenther <rguenther@suse.de>
8719 PR tree-optimization/46562
8720 * tree.c (build_invariant_address): New function.
8721 * tree.h (build_invariant_address): Declare.
8722 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8723 a renamed function moved ...
8724 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8725 Take valueization callback parameter.
8726 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8727 * gimple-fold.h: New file.
8728 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8729 (ccp_fold, fold_const_aggregate_ref,
8730 fold_ctor_reference, fold_nonarray_ctor_reference,
8731 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8732 get_base_constructor): Move ...
8733 * gimple-fold.c: ... here.
8734 (gimple_fold_stmt_to_constant_1): New function
8735 split out from ccp_fold. Take a valueization callback parameter.
8736 Valueize all operands.
8737 (gimple_fold_stmt_to_constant): New wrapper function.
8738 (fold_const_aggregate_ref_1): New function split out from
8739 fold_const_aggregate_ref. Take a valueization callback parameter.
8740 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8741 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8742 invariant POINTER_PLUS_EXPRs to invariant form.
8743 (vn_valueize): New function.
8744 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8745 * tree-vrp.c (vrp_valueize): New function.
8746 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8747 to fold statements to constants.
8748 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8749 function declarations.
8750 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8751 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8753 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8755 * config/h8300/predicates.md (jump_address_operand): Fix register
8758 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8760 * doc/invoke.texi (max-stores-to-sink): Document.
8761 * params.h (MAX_STORES_TO_SINK): Define.
8762 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8763 if either vectorization or if-conversion is disabled.
8764 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8765 tree-vect-data-refs.c vect_equal_offsets.
8766 (dr_equal_offsets_p): New function.
8767 (find_data_references_in_bb): Remove static.
8768 * tree-data-ref.h (find_data_references_in_bb): Declare.
8769 (dr_equal_offsets_p): Likewise.
8770 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8771 (vect_drs_dependent_in_basic_block): Update calls to
8773 (vect_check_interleaving): Likewise.
8774 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8775 (cond_if_else_store_replacement): Rename to...
8776 (cond_if_else_store_replacement_1): ... this. Change arguments and
8778 (cond_if_else_store_replacement): New function.
8779 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8780 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8782 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8785 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8786 to subtract lower bound instead of GEN_INT().
8788 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8793 * doc/extend.texi (Alignment): Move section to match order in TOC.
8794 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8795 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8797 2011-03-23 Jeff Law <law@redhat.com>
8799 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8800 before removing the edge.
8802 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8803 it may have been freed by redirect_branch_edge or
8804 redirect_edge_succ_nodup.
8806 2011-03-23 Richard Guenther <rguenther@suse.de>
8808 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8809 (check_va_list_escapes): Likewise.
8810 (check_all_va_list_escapes): Likewise.
8812 2011-03-23 Richard Guenther <rguenther@suse.de>
8814 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8815 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8816 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8817 (alias.o): Likewise.
8818 (ipa-type-escape.o): Remove.
8819 (ipa-struct-reorg.o): Likewise.
8820 (GTFILES): Remove ipa-struct-reorg.c.
8821 * alias.c: Do not include ipa-type-escape.h.
8822 * tree-ssa-alias.c: Likewise.
8823 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8824 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8825 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8826 and ipa-type-escape passes.
8827 * tree-pass.h (pass_ipa_type_escape): Remove.
8828 (pass_ipa_struct_reorg): Likewise.
8829 * ipa-struct-reorg.h: Remove.
8830 * ipa-struct-reorg.c: Likewise.
8831 * ipa-type-escape.h: Likewise.
8832 * ipa-type-escape.c: Likewise.
8833 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8834 (--param struct-reorg-cold-struct-ratio): Likewise.
8835 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8836 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8837 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8839 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8841 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8842 cpu attribute value.
8843 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8844 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8845 * config/s390/s390.c (processor_flags_table): New constant array.
8846 (s390_handle_arch_option): Remove.
8847 (s390_handle_option): Remove s390_handle_arch_option invocations
8848 and OPT_mwarn_framesize_ handling.
8849 (s390_option_override): Remove s390_handle_arch_option invocation.
8850 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8852 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8853 * config/s390/s390.opt (s390_tune, s390_arch)
8854 (march=): Replace s390_arch_option enum and values with
8855 processor_type. Set variable name to s390_arch. Set
8856 initialization value.
8857 (mtune=): Replace s390_arch_option with processor_type. Set
8858 variable name to s390_tune. Set initialization value.
8860 2011-03-23 Julian Brown <julian@codesourcery.com>
8862 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8863 accesses which are not naturally aligned.
8865 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8868 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8870 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8872 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8873 parameter from "int" to "enum insn_code".
8874 (expand_operand_type): New enum.
8875 (expand_operand): New structure.
8876 (create_expand_operand): New function.
8877 (create_fixed_operand, create_output_operand): Likewise
8878 (create_input_operand, create_convert_operand_to): Likewise.
8879 (create_convert_operand_from, create_address_operand): Likewise.
8880 (create_integer_operand): Likewise.
8881 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8882 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8883 (expand_insn, expand_jump_insn): Likewise.
8884 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8885 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8886 (expand_movstr, expand_builtin___clear_cache): Likewise.
8887 (expand_builtin_lock_release): Likewise.
8888 * explow.c (allocate_dynamic_stack_space): Likewise.
8889 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8890 and use the default handling in that case.
8891 * expmed.c (check_predicate_volatile_ok): Delete.
8892 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8893 (emit_cstore): Likewise.
8894 * expr.c (emit_block_move_via_movmem): Likewise.
8895 (set_storage_via_setmem, expand_assignment): Likewise.
8896 (emit_storent_insn, try_casesi): Likewise.
8897 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8898 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8899 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8900 (expand_twoval_unop, expand_twoval_binop): Likewise.
8901 (expand_unop_direct, emit_indirect_jump): Likewise.
8902 (emit_conditional_move, vector_compare_rtx): Likewise.
8903 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8904 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8905 (expand_sync_lock_test_and_set): Likewise.
8906 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8907 (emit_unop_insn): Likewise.
8908 (expand_copysign_absneg): Change icode to an insn_code.
8909 (create_convert_operand_from_type): New function.
8910 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8911 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8912 (expand_insn, expand_jump_insn): Likewise.
8913 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8914 than const_int_operand for operand 2.
8916 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8918 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8921 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8923 * emit-rtl.c (emit_pattern_before_noloc): New function.
8924 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8925 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8926 (emit_pattern_after_noloc): New function.
8927 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8928 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8930 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8932 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8933 (__ffsDI2): Likewise.
8935 2011-03-22 Richard Henderson <rth@redhat.com>
8937 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8938 of !TARGET_ABI_OPEN_VMS.
8939 (alpha_trampoline_init, alpha_start_function): Likewise.
8940 (alpha_expand_epilogue, alpha_file_start): Likewise.
8941 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8942 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8943 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8944 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8945 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8947 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8949 * config/s390/s390-opts.h: New.
8950 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8951 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8952 s390_stack_guard): Remove.
8953 (s390_handle_arch_option): Return void. Take enum
8954 s390_arch_option value instead of string and searching array.
8955 (s390_handle_option): Don't assert that global structures are in
8956 use. Access variables via opts pointer. Use error_at. Don't use
8957 sscanf for -mstack-guard= or -mstack-size=. Update call to
8958 s390_handle_arch_option.
8959 (s390_option_override): Update call to s390_handle_arch_option.
8960 (s390_emit_prologue): Use %d format for s390_stack_size in
8961 diagnostic. Use %wd for HOST_WIDE_INT.
8962 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8963 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8964 * config/s390/s390.opt (config/s390/s390-opts.h): New
8965 HeaderInclude entry.
8966 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8967 s390_arch_flags, s390_warn_framesize): New Variable entries.
8968 (s390_arch_option): New Enum and EnumValue entries.
8969 (march=): Use Enum instead of Var.
8970 (mstack-guard=, mstack-size=): Use UInteger and Var.
8973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8975 * config/score/score.c (score_handle_option): Don't assert that
8976 global structures are in use. Access target_flags via opts
8977 pointer. Use value of -march= option to determine target_flags
8979 * config/score/score.opt (march=): Use Enum.
8980 (score_arch): New Enum and EnumValue entries.
8982 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8984 * config/mep/mep.c (option_mtiny_specified): Remove.
8985 (mep_option_override): Move register handling for -mivc2 from
8986 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8987 instead of option_mtiny_specified.
8988 (mep_handle_option): Access target_flags via opts pointer. Don't
8989 assert that global structures are in use. Defer part of -mivc2
8990 handling and move it to mep_option_override.
8991 * config/mep/mep.opt (IVC2): New Mask entry.
8992 (mivc2): Use Var and Defer instead of Mask.
8994 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8996 * config/v850/v850-opts.h: New.
8997 * config/v850/v850.c (small_memory): Replace with
8998 small_memory_physical_max array. Make that array static const.
8999 (v850_handle_memory_option): Take integer value of argument. Take
9000 gcc_options pointer, option text and location. Return void.
9001 Update for changes to small memory structures.
9002 (v850_handle_option): Access target_flags via opts pointer. Don't
9003 assert that global structures are in use. Update calls to
9004 v850_handle_memory_option.
9005 (v850_encode_data_area): Update references to small memory settings.
9006 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9007 (enum small_memory_type): Move to v850-opts.h.
9008 * config/v850/v850.opt (config/v850/v850-opts.h): New
9009 HeaderInclude entry.
9010 (small_memory_max): New Variable entry.
9011 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9012 (mtda, mzda): Likewise.
9014 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9016 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9017 pointer. Don't assert that global structures are in use.
9019 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9021 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9022 via opts pointer. Don't assert that global structures are in use.
9024 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9026 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9027 (munix=93): Use Var.
9028 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9029 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9030 * config/pa/pa-opts.h: New.
9031 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9032 (pa_handle_option): Don't assert that global structures are in
9033 use. Access target_flags via opts pointer. Don't handle
9034 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9036 (pa_option_override): Handle deferred OPT_mfixed_range_.
9038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9040 * config/mn10300/mn10300-opts.h: New.
9041 * config/mn10300/mn10300.c (mn10300_processor,
9042 mn10300_tune_string): Remove.
9043 (mn10300_handle_option): Don't assert that global structures are
9044 in use. Access mn10300_processor via opts pointer. Don't handle
9046 * config/mn10300/mn10300.h (enum processor_type): Move to
9048 (mn10300_processor): Remove.
9049 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9050 HeaderInclude entry.
9051 (mn10300_processor): New Variable entry.
9054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9056 * config/microblaze/microblaze.c: Don't include opts.h.
9057 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9058 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9059 (mno-clearbss): Use Var and Warn.
9061 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9063 * config/m32r/m32r-opts.h: New.
9064 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9065 (m32r_handle_option): Don't assert that global structures are in
9066 use. Access target_flags and m32r_cache_flush_func via opts
9067 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9068 OPT_mno_flush_trap here.
9069 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9070 include of m32r-opts.h.
9071 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9072 HeaderInclude entry.
9073 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9074 (mmodel=): Use Enum and Var.
9075 (m32r_model): New Enum and EnumValue entries.
9076 (mno-flush-trap): Use Var.
9077 (msdata=): Use Enum and Var.
9078 (m32r_sdata): New Enum and EnumValue entries.
9080 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9082 * config/m32c/m32c.c: Don't include opts.h.
9083 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9084 m32c_handle_option): Remove.
9085 (m32c_option_override): Check global_options_set.x_target_memregs
9086 instead of target_memregs_set.
9087 * config/m32c/m32c.h (target_memregs): Remove.
9088 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9091 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9093 * config/iq2000/iq2000-opts.h: New.
9094 * config/iq2000/iq2000.c: Don't include opts.h.
9095 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9096 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9097 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9098 HeaderInclude entry.
9099 (iq2000_tune): New Variable entry.
9100 (march=): Add comment. Use Enum.
9101 (iq2000_arch): New Enum and EnumValue entries.
9102 (mcpu=): Use Enum and Var.
9103 (iq2000_tune): New Enum and EnumValue entries.
9105 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9107 * config/ia64/ia64-opts.h: New.
9108 * config/ia64/ia64.c (ia64_tune): Remove.
9109 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9111 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9112 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9113 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9114 HeaderInclude entry.
9115 (ia64_tune): New Variable entry.
9116 (mfixed-range=): Use Defer and Var.
9117 (mtune=): Use Enum and Var.
9118 (ia64_tune): New Enum and EnumValue entries.
9120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9122 * config/frv/frv-opts.h: New.
9123 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9125 (frv_cpu_type): Remove.
9126 * config/frv/frv.c: Don't include opts.h.
9127 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9128 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9129 (frv_cpu_type): New Variable entry.
9130 (frv_cpu): New Enum and EnumValue entries.
9132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9134 * config/cris/cris.c (cris_handle_option): Access target_flags via
9135 opts pointer. Don't assert that global structures are in use.
9136 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9137 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9139 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9141 * config/bfin/bfin-opts.h: New.
9142 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9143 bfin_si_revision, bfin_workarounds): Remove.
9144 (bfin_cpus): Make static const.
9145 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9146 not bfin_lib_id_given.
9147 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9148 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9149 pointer. Use error_at. Don't assert that global structures are in use.
9150 * config/bfin/bfin.h: Include bfin-opts.h.
9151 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9152 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9153 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9154 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9157 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9159 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9160 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9161 or -msoft-float here.
9162 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9163 -msoft-float and -mhard-float.
9164 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9165 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9167 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9169 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9170 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9172 (LIBGCC_SPEC): Don't handle -msoft-float.
9173 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9175 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9177 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9178 -mfloat-abi=*, not -msoft-float and -mhard-float.
9179 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9181 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9182 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9183 mhard-float and msoft-float.
9184 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9185 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9186 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9187 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9189 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9190 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9192 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9194 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9197 2011-03-22 Richard Henderson <rth@redhat.com>
9199 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9200 TARGET_ABI_WINDOWS_NT.
9201 (alpha_output_function_end_prologue): Likewise.
9202 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9203 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9204 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9205 (trap, *movsi_nt_vms): Likewise.
9206 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9207 (*tablejump_osf_nt_internal): Remove.
9208 * config/alpha/predicates.md (input_operand): Only test Pmode.
9210 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9212 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9213 via opts pointer. Use error_at. Don't assert that global
9214 structures are in use.
9216 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9218 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9219 (ix86_handle_option): Access ix86_isa_flags and
9220 ix86_isa_flags_explicit via opts pointer. Don't assert that
9221 global structures are in use.
9222 (ix86_function_specific_save, ix86_function_specific_restore):
9223 Update ix86_isa_flags_explicit field name.
9224 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9225 (ix86_isa_flags_explicit): Rename TargetSave entry to
9226 x_ix86_isa_flags_explicit.
9228 2011-03-22 Richard Henderson <rth@redhat.com>
9230 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9231 (alpha_option_override, direct_return): Likewise.
9232 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9233 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9234 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9235 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9236 (alpha_expand_epilogue, alpha_end_function): Likewise.
9237 (alpha_init_libfuncs): Likewise.
9238 (struct machine_function): Remove unicosmk members.
9239 (print_operand) ['t']: Remove.
9240 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9241 unicosmk_output_module_name, unicosmk_output_common,
9242 current_section_align, unicosmk_output_text_section_asm_op,
9243 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9244 unicosmk_section_type_flags, unicosmk_unique_section,
9245 unicosmk_asm_named_section, unicosmk_insert_attributes,
9246 unicosmk_output_align, unicosmk_defer_case_vector,
9247 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9248 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9249 unicosmk_output_ssib, unicosmk_add_call_info_word,
9250 unicosmk_extern_head, unicosmk_output_default_externs,
9251 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9252 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9253 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9254 * config/alpha/alpha-protos.h: Update.
9255 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9256 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9257 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9258 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9259 (*mulsi_se, mulvsi3): Likewise.
9260 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9261 (*divmodsi_internal, call, call_value, realign): Likewise.
9262 (moddi3, umoddi3): Likewise; remove duplicate expander.
9263 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9264 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9265 (*movdi_nofix): Remove r/U alternative.
9266 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9267 * config/alpha/constraints.md ("U"): Remove.
9268 * config/alpha/predicates.md (call_operand"): Don't test
9269 TARGET_ABI_UNICOSMK.
9271 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9273 * target.def (handle_option): Take gcc_options and
9274 cl_decoded_option pointers and location_t.
9275 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9276 * doc/tm.texi: Regenerate.
9277 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9278 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9279 * lto-opts.c (lto_reissue_options): Generate option structure for
9280 targetm.handle_option call.
9281 * opts.c (target_handle_option): Update call to
9282 targetm.handle_option. Remove assertions about values now passed
9284 * targhooks.c (default_target_handle_option): New.
9285 * targhooks.h (default_target_handle_option): Declare.
9286 * config/alpha/alpha.c: Include opts.h.
9287 (alpha_handle_option): Update to new hook interface.
9288 * config/arm/arm.c: Include opts.h.
9289 (arm_handle_option): Update to new hook interface.
9290 * config/arm/t-arm (arm.o): Update dependencies.
9291 * config/bfin/bfin.c: Include opts.h.
9292 (bfin_handle_option): Update to new hook interface.
9293 * config/cris/cris.c: Include opts.h.
9294 (cris_handle_option): Update to new hook interface.
9295 * config/frv/frv.c: Include opts.h.
9296 (frv_handle_option): Update to new hook interface.
9297 * config/i386/i386.c: Include opts.h.
9298 (ix86_handle_option): Update to new hook interface.
9299 (ix86_valid_target_attribute_inner_p): Generate option structure
9300 for call to ix86_handle_option.
9301 * config/i386/t-i386 (i386.o): Update dependencies.
9302 * config/ia64/ia64.c: Include opts.h.
9303 (ia64_handle_option): Update to new hook interface.
9304 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9305 * config/iq2000/iq2000.c: Include opts.h.
9306 (iq2000_handle_option): Update to new hook interface.
9307 * config/m32c/m32c.c: Include opts.h.
9308 (m32c_handle_option): Update to new hook interface.
9309 * config/m32r/m32r.c: Include opts.h.
9310 (m32r_handle_option): Update to new hook interface.
9311 * config/m68k/m68k.c: Include opts.h.
9312 (m68k_handle_option): Update to new hook interface.
9313 * config/mep/mep.c: Include opts.h.
9314 (mep_handle_option): Update to new hook interface.
9315 * config/microblaze/microblaze.c: Include opts.h.
9316 (microblaze_handle_option): Update to new hook interface.
9317 * config/mips/mips.c: Include opts.h.
9318 (mips_handle_option): Update to new hook interface.
9319 * config/mn10300/mn10300.c: Include opts.h.
9320 (mn10300_handle_option): Update to new hook interface.
9321 * config/pa/pa.c: Include opts.h.
9322 (pa_handle_option): Update to new hook interface.
9323 * config/pdp11/pdp11.c: Include opts.h.
9324 (pdp11_handle_option): Update to new hook interface.
9325 * config/rs6000/rs6000.c: Include opts.h.
9326 (rs6000_handle_option): Update to new hook interface.
9327 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9328 * config/rx/rx.c: Include opts.h.
9329 (rx_handle_option): Update to new hook interface.
9330 * config/s390/s390.c: Include opts.h.
9331 (s390_handle_option): Update to new hook interface.
9332 * config/score/score.c: Include opts.h.
9333 (score_handle_option): Update to new hook interface.
9334 * config/sh/sh.c: Include opts.h.
9335 (sh_handle_option): Update to new hook interface.
9336 * config/sparc/sparc.c: Include opts.h.
9337 (sparc_handle_option): Update to new hook interface.
9338 * config/v850/v850.c: Include opts.h.
9339 (v850_handle_option): Update to new hook interface.
9341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9343 * gcc.c (driver_unknown_option_callback): Only permit and save
9344 unknown -Wno- options.
9345 (driver_wrong_lang_callback): Save options directly instead of via
9346 driver_unknown_option_callback.
9348 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9350 * combine.c (simplify_set): Try harder to find the best CC mode when
9351 simplifying a nested COMPARE on the RHS.
9353 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9355 * config/alpha/gnu.h: Remove.
9356 * config/arc: Remove directory.
9357 * config/arm/netbsd.h: Remove.
9358 * config/arm/t-pe: Remove.
9359 * config/crx: Remove directory.
9360 * config/i386/netbsd.h: Remove.
9361 * config/m68hc11: Remove directory.
9362 * config/m68k/uclinux-oldabi.h: Remove.
9363 * config/mcore/mcore-pe.h: Remove.
9364 * config/mcore/t-mcore-pe: Remove.
9365 * config/netbsd-aout.h: Remove.
9366 * config/rs6000/gnu.h: Remove.
9367 * config/sh/sh-symbian.h: Remove.
9368 * config/sh/symbian-base.c: Remove.
9369 * config/sh/symbian-c.c: Remove.
9370 * config/sh/symbian-cxx.c: Remove.
9371 * config/sh/symbian-post.h: Remove.
9372 * config/sh/symbian-pre.h: Remove.
9373 * config/sh/t-symbian: Remove.
9374 * config/svr3.h: Remove.
9375 * config/vax/netbsd.h: Remove.
9376 * config.build: Don't handle i[34567]86-*-pe.
9377 * config.gcc: Remove handling of deprecations for most deprecated
9379 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9380 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9381 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9382 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9383 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9384 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9386 * config.host: Don't handle i[34567]86-*-pe.
9387 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9388 (ASM_SPEC32): Don't handle -mcall-gnu.
9389 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9391 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9392 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9393 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9394 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9395 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9396 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9397 conditional on SYMBIAN.
9398 * configure.ac: Don't handle powerpc*-*-gnu*.
9399 * configure: Regenerate.
9400 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9401 * doc/install-old.texi (m6811, m6812): Don't mention.
9402 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9403 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9404 (m68k-uclinuxoldabi): Don't mention.
9405 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9407 (-mcall-gnu): Remove.
9408 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9409 families): Remove constraint documentation.
9411 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9413 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9414 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9415 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9417 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9420 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9421 vector when peeking at the next token for vector, don't expand the
9424 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9426 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9427 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9428 * config/avr/avr.c (init_cumulative_args)
9429 (avr_function_arg_advance): Use it.
9430 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9432 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9433 (avr_function_ok_for_sibcall): ...this new function.
9434 (avr_lookup_function_attribute1): New static Function.
9435 (avr_naked_function_p, interrupt_function_p)
9436 (signal_function_p, avr_OS_task_function_p)
9437 (avr_OS_main_function_p): Use it.
9438 * config/avr/avr.md ("sibcall", "sibcall_value")
9439 ("sibcall_epilogue"): New expander.
9440 ("*call_insn", "*call_value_insn"): New insn.
9441 ("call_insn", "call_value_insn"): Remove
9442 ("call", "call_value", "epilogue"): Change expander to handle
9445 2011-03-21 Nick Clifton <nickc@redhat.com>
9447 * doc/invoke.texi (Overall Options): Move closing brace to end of
9449 (Optimization Options): Add missing @gol.
9450 (Directory Options): Likewise.
9451 (i386 and x86-64 Options): Likewise.
9452 (RS6000 and PowerPC Options): Likewise.
9453 (i386 and x86-64 Windows Options): Likewise.
9454 (V850 Options): Add text missing from descriptions.
9456 2011-03-22 Richard Henderson <rth@redhat.com>
9458 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9459 (avr_incoming_return_addr_rtx): New.
9460 (emit_push_byte): New.
9461 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9462 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9463 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9464 (emit_pop_byte): New.
9465 (expand_epilogue): Use it. Pop frame pointer by bytes.
9466 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9467 (INCOMING_RETURN_ADDR_RTX): New.
9468 (INCOMING_FRAME_SP_OFFSET): New.
9469 (ARG_POINTER_CFA_OFFSET): New.
9470 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9471 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9474 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9476 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9478 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9479 (FUNCTION_ARG_ADVANCE): Likewise.
9480 * tm.texi.in: Change references to them to hook references.
9481 * tm.texi: Regenerate.
9482 * targhooks.c (default_function_arg): Eliminate check for target
9484 (default_function_incoming_arg): Likewise.
9485 (default_function_arg_advance): Likewise.
9486 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9487 (function_arg_advance): Likewise.
9488 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9490 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9492 * tree.c (build_call_1): New function.
9493 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9495 2011-03-22 Richard Guenther <rguenther@suse.de>
9497 PR tree-optimization/48228
9498 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9499 for single-arg PHIs.
9501 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9503 PR rtl-optimization/48143
9504 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9505 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9506 sse2_cvtps2pd): Likewise.
9508 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9510 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9512 2011-03-22 Richard Guenther <rguenther@suse.de>
9514 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9515 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9516 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9517 and REALIGN_LOAD_EXPR.
9518 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9519 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9520 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9521 DOT_PROD_EXPR case ...
9522 (expand_expr_real_2): ... here.
9523 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9524 and REALIGN_LOAD_EXPR.
9525 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9526 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9527 (vect_create_epilog_for_reduction): Likewise.
9528 (vectorizable_reduction): Likewise.
9529 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9530 * tree-vect-stmts.c (vectorizable_load): Likewise.
9532 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9534 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9536 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9538 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9539 handling for PLTOFF/GOTOFF.
9541 2011-03-22 Nick Clifton <nickc@redhat.com>
9543 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9544 trailing backslash from the end of the macro definition.
9546 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9548 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9551 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9553 * expr.h (prepare_operand): Move to...
9554 * optabs.h (prepare_operand): ...here and change the insn code
9555 parameter from "int" to "enum insn_code".
9556 (insn_operand_matches): Declare.
9557 * expr.c (init_expr_target): Use insn_operand_matches.
9558 (compress_float_constant): Likewise.
9559 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9560 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9561 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9562 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9564 (gen_cond_trap): Likewise.
9565 (prepare_operand): Likewise. Change icode to an insn_code.
9566 (insn_operand_matches): New function.
9567 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9568 * reload1.c (gen_reload): Likewise.
9569 * targhooks.c (default_secondary_reload): Likewise.
9571 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9573 * config/alpha/alpha.md (unspec): New define_c_enum.
9576 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9579 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9580 between a call and its CALL_ARG_LOCATION note.
9582 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9584 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9586 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9590 * c-common.c (shorten_compare): If primopN is first sign-extended
9591 to opN and then zero-extended to result type, set primopN to opN.
9593 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9595 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9596 for barrier handlers.
9598 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9600 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9601 UNSPEC constants to be in the unspec enumeration, and redefine
9602 all UNSPECV constants to be in the unspecv enumeration, so that
9603 dumps print which unspec/unspec_volatile this is.
9604 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9605 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9606 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9607 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9608 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9610 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9611 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9612 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9613 * config/rs6000/sync.md (isync, lwsync): Ditto.
9615 2011-03-21 Richard Guenther <rguenther@suse.de>
9617 * params.def (lto-min-partition): Fix typo.
9619 2011-03-21 Richard Guenther <rguenther@suse.de>
9622 * c-decl.c (grokdeclarator): Drop to the main variant only
9623 for array types. Drop flag_gen_aux_info check.
9625 2011-03-21 Richard Guenther <rguenther@suse.de>
9627 PR translation/47911
9628 * params.def (lto-partitions): Fix typo.
9629 (lto-min-partition): Fix wording.
9631 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9633 * config/rs6000/t-freebsd: Remove duplication from file.
9635 2011-03-21 Richard Guenther <rguenther@suse.de>
9638 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9640 2011-03-21 Richard Guenther <rguenther@suse.de>
9643 * params.def (lto-partitions): Require at least 1 partition.
9645 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9647 * gthr-solaris.h: Remove.
9648 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9649 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9650 (LIB_SPEC): Likewise.
9651 * config/sol2.opt (threads): Remove.
9652 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9653 (sparc*-*-solaris2*): Likewise.
9654 * configure.ac (enable_threads): Enable solaris support.
9655 * configure: Regenerate.
9656 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9657 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9660 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9662 * config.gcc: Obsolete *-*-solaris2.8*.
9663 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9665 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9668 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9669 reference. Solaris 8 perl works.
9671 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9674 * doc/install.texi (Prerequisites): Move jar etc. up.
9675 Explain support library version requirements.
9677 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9680 * doc/install.texi (Prerequisites): Move Perl to build
9681 requirements. Always necessary on Solaris 2 with Sun ld.
9683 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9685 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9687 (Specific, i?86-*-solaris2.[89]): Likewise.
9688 (Specific, i?86-*-solaris2.10): Likewise.
9689 (Specific, mips-sgi-irix6): Likewise.
9690 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9691 Update for binutils 2.21.
9693 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9695 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9696 Allow -fuse-linker-plugin for non-default plugin linker.
9697 * configure: Regenerate.
9699 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9702 * gengtype.c (files_rules): Added rule for cp/parser.h.
9704 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9707 * config/s390/s390.c (s390_delegitimize_address): Don't call
9708 lowpart_subreg if orig_x has BLKmode.
9710 2011-03-21 Kai Tietz <ktietz@redhat.com>
9713 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9714 * tree.h (attribute_spec): Add new member affects_type_identity.
9715 * attribs.c (empty_attribute_table): Adjust attribute_spec
9717 * config/alpha/alpha.c: Likewise.
9718 * config/arc/arc.c: Likewise.
9719 * config/arm/arm.c: Likewise.
9720 * config/avr/avr.c: Likewise.
9721 * config/bfin/bfin.c: Likewise.
9722 * config/crx/crx.c: Likewise.
9723 * config/darwin.h: Likewise.
9724 * config/h8300/h8300.c: Likewise.
9725 * config/i386/cygming.h: Likewise.
9726 * config/i386/i386.c: Likewise.
9727 * config/ia64/ia64.c: Likewise.
9728 * config/m32c/m32c.c: Likewise.
9729 * config/m32r/m32r.c: Likewise.
9730 * config/m68hc11/m68hc11.c: Likewise.
9731 * config/m68k/m68k.c: Likewise.
9732 * config/mcore/mcore.c: Likewise.
9733 * config/mep/mep.c: Likewise.
9734 * config/microblaze/microblaze.c: Likewise.
9735 * config/mips/mips.c: Likewise.
9736 * config/rs6000/rs6000.c: Likewise.
9737 * config/rx/rx.c: Likewise.
9738 * config/sh/sh.c: Likewise.
9739 * config/sol2.h: Likewise.
9740 * config/sparc/sparc.c: Likewise.
9741 * config/spu/spu.c: Likewise.
9742 * config/stormy16/stormy16.c: Likewise.
9743 * config/v850/v850.c: Likewise.
9745 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9747 * simplify-rtx.c (simplify_binary_operation_1): Handle
9748 (xor (and A B) C) case when B and C are both constants.
9750 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9752 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9754 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9757 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9759 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9761 PR rtl-optimization/48156
9762 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9763 assume df and df_lr are not NULL.
9765 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9768 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9769 between a call and its CALL_ARG_LOCATION note.
9771 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9774 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9775 between a call and its corresponding CALL_ARG_LOCATION note.
9777 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9779 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9780 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9781 * haifa-sched.c (setup_ref_regs): Ditto.
9782 * caller-save.c (add_used_regs_1): Ditto.
9783 * dse.c (look_for_hardregs): Ditto.
9784 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9785 * sched-rgn.c (check_live_1): Ditto.
9787 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9789 * c-decl.c (diagnose_mismatched_decls): Give an error for
9790 redefining a typedef with variably modified type.
9792 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9794 * c-decl.c (grokfield): Don't allow typedefs for structures or
9795 unions with no tag by default.
9796 * doc/extend.texi (Unnamed Fields): Update.
9798 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9800 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9801 Rewrite using indirect functions.
9802 (lwp_slwpcb): Ditto.
9803 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9804 (avx_vinsertf128<mode>): Ditto.
9806 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9808 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9811 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9813 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9814 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9816 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9818 PR rtl-optimization/48170
9819 * gcse.c (hoist_code): Remove bogus asserts.
9821 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9823 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9824 computation for prologue/epilogue.
9826 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9828 * Makefile.in (check-consistency): Remove.
9830 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9833 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9834 arange_table_in_use is 0, but either text_section_used or
9835 cold_text_section_used is true. Don't call it if
9836 !info_section_emitted.
9838 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9840 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9841 FUNCTION_VALUE_REGNO_P): Remove.
9842 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9844 * config/avr/avr.c (avr_ret_register): Make static inline.
9845 (avr_function_value_regno_p): New function.
9846 (avr_libcall_value): Make static. Add 'func' argument.
9847 (avr_function_value): Make static. Rename 'func' argument to
9848 'fn_decl_or_type', forward it to avr_libcall_value. Call
9849 avr_ret_register function instead of RET_REGISTER macro.
9850 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9852 2011-03-18 Jason Merrill <jason@redhat.com>
9855 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9857 2011-03-18 Richard Guenther <rguenther@suse.de>
9859 * doc/install.texi (--enable-gold): Remove.
9860 (--with-plugin-ld): Document.
9861 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9863 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9866 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9867 again after expansion changes.
9869 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9871 * combine.c (try_combine): Do simplification only call of
9872 subst() on i2 even when i1 is present. Update comments.
9874 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9876 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9877 and UNSPEC_PCREL_SYMOFF.
9879 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9881 * config/s390/s390.md: Use define_c_enum for the unspec constant
9884 2011-03-18 Richard Henderson <rth@redhat.com>
9885 Jakub Jelinek <jakub@redhat.com>
9888 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9889 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9891 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9894 * combine.c (cant_combine_insn_p): Don't check zero/sign
9895 extended hard registers.
9897 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9900 * combine.c (cant_combine_insn_p): Check zero/sign extended
9903 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9905 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9906 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9907 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9908 Change return type to bool.
9909 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9911 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9914 * var-tracking.c (prepare_call_arguments): If CALL target
9915 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9916 pc instead of looking it up using cselib_lookup and use
9917 Pmode for it if x has VOIDmode.
9918 * dwarf2out.c (gen_subprogram_die): If also both first and
9919 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9922 * function.c (assign_parms): For data.passed_pointer parms
9923 use MEM of data.entry_parm instead of data.entry_parm itself
9924 as DECL_INCOMING_RTL.
9925 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9926 also when passed and declared mode is the same, DECL_RTL
9927 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9930 2011-03-16 Jeff Law <law@redhat.com>
9932 PR rtl-optimization/37273
9933 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9934 handle them like argument loads from stack slots. Do not double
9935 count memory for memory constants and argument loads from stack slots.
9937 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9940 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9942 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9945 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9947 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9950 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9952 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9953 Clear call_arg_locations and call_arg_loc_last always.
9956 * var-tracking.c (prepare_call_arguments): If argument needs to be
9957 passed by reference, adjust argtype and mode.
9959 2011-03-17 Richard Guenther <rguenther@suse.de>
9962 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9963 a value make sure to fold the statement.
9965 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9968 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9969 return condition with !cfun->calls_alloca.
9971 2011-03-17 Richard Guenther <rguenther@suse.de>
9974 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9975 origin for decls in other ltrans units.
9976 (input_varpool_node): Likewise.
9978 2011-03-17 Richard Guenther <rguenther@suse.de>
9981 * tree-object-size.c (compute_object_offset): Properly return
9982 the offset operand of MEM_REFs as sizetype.
9984 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9986 PR rtl-optimization/48141
9987 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9988 * dse.c: Include params.h.
9989 (active_local_stores_len): New variable.
9990 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9992 (record_store, check_mem_read_rtx): Decrease it when removing
9994 (scan_insn): Likewise. Increase it when adding to chain, if it
9995 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9996 set active_local_stores to NULL before the addition.
9997 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9999 PR rtl-optimization/48141
10000 * dse.c (record_store): If no positions are needed in an insn
10001 that cannot be deleted, at least unchain it from active_local_stores.
10003 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10006 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10007 (lookup_type_die_strip_naming_typedef): ... here.
10008 (get_context_die): Use it.
10009 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10010 the anonymous struct named by the naming typedef.
10012 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10015 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10016 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10018 2011-03-16 Jeff Law <law@redhat.com>
10020 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10021 check for operands of conditional. Allow type to be a pointer.
10023 2011-03-16 Richard Guenther <rguenther@suse.de>
10025 PR tree-optimization/48149
10026 * fold-const.c (fold_binary_loc): Fold
10027 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10029 2011-03-16 Richard Guenther <rguenther@suse.de>
10031 PR tree-optimization/26134
10032 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10033 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10034 (non_rewritable_mem_ref_base): Handle complex type component
10035 accesses, constrain offsets for vector and complex extracts
10038 2011-03-16 Richard Guenther <rguenther@suse.de>
10040 PR tree-optimization/48146
10041 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10042 operands avoiding the need for renaming.
10044 2011-03-16 Richard Guenther <rguenther@suse.de>
10046 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10047 constant folding. Move MEM_REF canonicalization first.
10048 Rely on fold_const_aggregate_ref for initializer folding.
10049 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10051 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10053 PR middle-end/48136
10054 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10055 arg0/arg1 or their arguments are always fold converted to matching
10058 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10061 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10064 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10065 Handle in-tree gold.
10066 (ld_vers): Extract binutils version for gold.
10067 (gcc_cv_ld_hidden): Handle gold here.
10068 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10069 * configure: Regenerate.
10070 * config.in: Regenerate.
10071 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10072 -fuse-linker-plugin otherwise.
10073 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10074 (LINK_COMMAND_SPEC): Use it.
10075 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10077 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10079 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10080 * calls.c: Remove debug.h include.
10081 (emit_call_1): Don't call virtual_call_token debug hook.
10082 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10083 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10084 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10085 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10086 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10087 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10088 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10089 dwarf2out_virtual_call): Remove.
10090 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10091 copy_call_info and virtual_call hooks.
10092 (dwarf2out_init): Don't initialize vcall_insn_table,
10093 debug_dcall_section and debug_vcall_section.
10094 (prune_unused_types): Don't mark nodes from dcall_table.
10095 (dwarf2out_finish): Don't output dcall or vcall tables.
10096 * final.c (final_scan_insn): Don't call direct_call or
10097 virtual_call debug hooks.
10098 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10099 virtual_call_token, copy_call_info and virtual_call hooks.
10100 (debug_nothing_uid): Remove prototype.
10101 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10102 copy_call_info and virtual_call hooks.
10103 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10104 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10105 * debug.c (do_nothing_debug_hooks): Likewise.
10106 (debug_nothing_uid): Remove.
10107 * doc/invoke.texi (-fenable-icf-debug): Remove.
10108 * common.opt (-fenable-icf-debug): Likewise.
10110 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10111 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10112 call's MEM. Handle functions returning aggregate through a hidden
10113 first pointer. For virtual calls add clobbered pc to call arguments
10115 * dwarf2out.c (gen_subprogram_die): Emit
10116 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10120 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10121 * rtl.h (ENTRY_VALUE_EXP): Define.
10122 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10123 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10124 * print-rtl.c (print_rtx): Likewise.
10125 * gengtype.c (adjust_field_rtx_def): Likewise.
10126 * var-tracking.c (vt_add_function_parameter): Adjust
10127 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10128 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10129 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10130 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10131 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10133 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10134 Call var_location debug hook even on CALL_INSNs.
10135 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10136 * rtl.def (ENTRY_VALUE): New.
10137 * dwarf2out.c: Include cfglayout.h.
10138 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10139 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10140 (struct call_arg_loc_node): New type.
10141 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10142 tail_call_site_count): New variables.
10143 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10144 DW_TAG_GNU_call_site_parameter.
10145 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10146 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10147 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10148 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10149 and DW_AT_GNU_all_source_call_sites.
10150 (mem_loc_descriptor): Handle ENTRY_VALUE.
10151 (add_src_coords_attributes): Don't add enything if
10152 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10153 (dwarf2out_abstract_function): Save and clear call_arg_location,
10154 call_site_count and tail_call_site_count around dwarf2out_decl call.
10155 (gen_call_site_die): New function.
10156 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10157 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10158 (dwarf2out_function_decl): Clear call_arg_locations,
10159 call_arg_loc_last, set call_site_count and tail_call_site_count
10160 to -1 and free block_map.
10161 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10162 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10163 followed by any real instructions.
10164 (dwarf2out_begin_function): Set call_site_count and
10165 tail_call_site_count to 0.
10166 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10167 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10168 attempt to force a DIE for it and worst case remove the attribute.
10169 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10170 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10172 * var-tracking.c: Include tm_p.h.
10173 (vt_stack_adjustments): For calls call note_register_arguments.
10174 (argument_reg_set): New variable.
10175 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10176 ensure the VALUE is resolved.
10177 (call_arguments): New variable.
10178 (prepare_call_arguments): New function.
10179 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10180 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10181 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10182 always use the best expression.
10183 (vt_expand_loc): Add ignore_cur_loc argument.
10184 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10185 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10186 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10187 note for all calls.
10188 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10189 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10190 argument. Don't call cselib_preserve_only_values and
10191 cselib_reset_table.
10192 (note_register_arguments): New function.
10193 (vt_initialize): Compute argument_reg_set. Call
10194 vt_add_function_parameters before processing basic blocks instead of
10195 afterwards. For calls call prepare_call_arguments before calling
10196 cselib_process_insn.
10197 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10198 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10199 (var-tracking.o): Depend on $(TM_P_H).
10200 * cfglayout.h (insn_scope): New prototype.
10201 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10202 * cfglayout.c (insn_scope): No longer static.
10203 * insn-notes.def (CALL_ARG_LOCATION): New.
10204 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10205 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10206 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10207 nothing for DECL_EXTERNAL BLOCK_VARS.
10209 2011-03-16 Alan Modra <amodra@gmail.com>
10212 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10213 create invalid offset address for vsx splat insn.
10214 * config/rs6000/predicates.md (splat_input_operand): New.
10215 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10217 2011-03-15 Xinliang David Li <davidxl@google.com>
10220 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10221 (normalize_preds): New function.
10222 (is_use_properly_guarded): Normalize def predicates.
10224 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10227 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10228 in the output template.
10230 2011-03-15 Richard Guenther <rguenther@suse.de>
10232 PR middle-end/47650
10233 * tree-pretty-print.c (dump_function_declaration): Properly
10234 dump unprototyped and varargs function types.
10236 2011-03-15 Richard Guenther <rguenther@suse.de>
10238 PR tree-optimization/13954
10239 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10242 2011-03-15 Richard Guenther <rguenther@suse.de>
10244 PR tree-optimization/48037
10245 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10246 selects into BIT_FIELD_REFs.
10247 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10250 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10252 PR tree-optimization/48129
10253 * builtins.c (fold_builtin_snprintf): Convert to type of
10254 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10255 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10257 2011-03-15 Richard Guenther <rguenther@suse.de>
10259 PR tree-optimization/41490
10260 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10261 value but with VUSE.
10262 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10264 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10265 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10266 * tree-tailcall.c (find_tail_calls): Ignore returns.
10268 2011-03-15 Richard Guenther <rguenther@suse.de>
10270 PR middle-end/48031
10271 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10272 or variable-indexed array accesses when in gimple form.
10274 2011-03-15 Richard Guenther <rguenther@suse.de>
10276 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10278 2011-03-15 Alan Modra <amodra@gmail.com>
10281 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10282 presume symbol_refs without a symbol_ref_decl are suitably
10283 aligned, nor other trees we may see here. Handle anchor symbols.
10284 (legitimate_constant_pool_address_p): Comment. Add mode param.
10285 Check cmodel=medium addresses. Adjust all calls.
10286 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10287 creating cmodel=medium optimized access to locals.
10288 * config/rs6000/constraints.md (R): Pass QImode to
10289 legitimate_constant_pool_address_p.
10290 * config/rs6000/predicates.md (input_operand): Pass mode to
10291 legitimate_constant_pool_address_p.
10292 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10295 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10298 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10299 64-bit constants being loaded into registers other than GPRs such
10300 as loading 0 into a VSX register.
10302 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10304 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10306 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10308 PR middle-end/47917
10309 * builtins.c (fold_builtin_snprintf): New function.
10310 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10311 (fold_builtin_4): Likewise.
10313 PR middle-end/38878
10314 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10315 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10316 and C - X == X also strip nops from +/-/p+ operand.
10317 When optimizing -X == C, fold C to arg0's type.
10320 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10321 emit it as add_AT_int instead of add_AT_unsigned.
10323 2011-03-14 Tom Tromey <tromey@redhat.com>
10325 * unwind-dw2.c: Include sys/sdt.h if it exists.
10326 (_Unwind_DebugHook): Use STAP_PROBE2.
10327 * config.in, configure: Rebuild.
10328 * configure.ac: Check for sys/sdt.h.
10330 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10332 * config/i386/i386.md (ROUND_FLOOR): New constant.
10333 (ROUND_CEIL): Ditto.
10334 (ROUND_TRUNC): Ditto.
10335 (ROUND_MXCSR): Ditto.
10336 (ROUND_NO_EXC): Ditto.
10337 (rint<mode>2): Use new defines instead of numerical constants.
10338 (floor<mode>2): Ditto.
10339 (ceil<mode>2): Ditto.
10340 (btrunc<mode>2): Ditto.
10341 * config/i386/i386-builtin-types.def: Define ROUND function type
10343 * config/i386/i386.c (enum ix86_builtins): Add
10344 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10345 (struct builtin_description): Add
10346 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10347 (ix86_expand_sse_round): New static function.
10348 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10350 (ix86_builtin_vectorized_function): Handle
10351 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10353 2011-03-14 Tom Tromey <tromey@redhat.com>
10355 * c-parser.c (c_parser_asm_string_literal): Clear
10356 warn_overlength_strings.
10358 2011-03-14 Tom Tromey <tromey@redhat.com>
10360 * c-parser.c (disable_extension_diagnostics): Save
10361 warn_overlength_strings.
10362 (restore_extension_diagnostics): Restore warn_overlength_strings.
10364 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10366 * BASE-VER: Change to 4.7.0.
10368 2011-03-14 Richard Guenther <rguenther@suse.de>
10370 PR middle-end/48098
10371 * tree.c (build_vector_from_val): Adjust assert to requirements
10374 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10377 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10379 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10381 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10382 terms of target_flags_explicit. Adjust copyright year.
10384 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10385 * config/rs6000/t-freebsd: New file. Add override for
10388 2011-03-13 Chris Demetriou <cgd@google.com>
10390 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10391 (-fno-diagnostics-show-option): this, to reflect current default.
10392 (-Werror=): Update text about -fno-diagnostics-show-option.
10394 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10397 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10398 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10399 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10400 mode is not V2DImode or V2DFmode.
10401 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10402 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10403 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10405 (movdi_internal64): Likewise.
10407 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10409 PR tree-optimization/47127
10410 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10412 (set_cloog_options): Same.
10413 (scop_to_clast): Same.
10414 (print_clast_stmt): Do not call cloog_state_malloc and
10416 (print_generated_program): Same.
10418 * graphite-clast-to-gimple.h (cloog_state): Declared.
10419 (scop_to_clast): Adjust declaration.
10420 * graphite.c (cloog_state): Defined here.
10421 (graphite_initialize): Call cloog_state_malloc.
10422 (graphite_finalize): Call cloog_state_free.
10424 2011-03-11 Jason Merrill <jason@redhat.com>
10426 * attribs.c (lookup_attribute_spec): Take const_tree.
10429 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10431 * config/sparc/sparc.c (sparc_option_override): Use
10432 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10434 2011-03-11 Richard Guenther <rguenther@suse.de>
10436 PR tree-optimization/48067
10437 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10438 multiplication result will be only used once on the target
10441 2011-03-11 Richard Guenther <rguenther@suse.de>
10443 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10445 2011-03-11 Richard Guenther <rguenther@suse.de>
10448 * tree.c (find_decls_types_r): Do not walk types only reachable
10449 from IDENTIFIER_NODEs.
10451 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10453 PR middle-end/48044
10454 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10455 all vnode->force_output nodes as needed.
10457 2011-03-11 Jason Merrill <jason@redhat.com>
10460 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10461 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10463 2011-03-11 Martin Jambor <mjambor@suse.cz>
10465 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10468 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10470 PR tree-optimization/48063
10471 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10472 inline functions called once if !tree_can_inline_p (node->callers).
10474 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10476 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10478 * config/score/score3.c: Delete.
10479 * config/score/score3.h: Delete.
10480 * config/score/mul-div.S: Delete.
10481 * config/score/sfp-machine.h: Add new file.
10482 * config/score/constraints.md: Add new file.
10483 * config/score/t-score-softfp: Add new file.
10484 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10485 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10486 (score7_extra_constraint): Delete.
10487 (score7_option_override): Remove unused code.
10488 * config/score/score.c: Remove score3 and score5 define and code.
10489 * config/score/score.h: Remove score3 and score5 define and code.
10490 * config/score/score.md: Remove score3 template and unusual insn.
10491 * config/score/score.opt: Remove score3 and score5 options.
10493 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10495 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10496 when _HPUX_SOURCE is defined.
10497 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10499 2011-03-10 Jason Merrill <jason@redhat.com>
10502 * stor-layout.c (layout_type): Don't set structural equality
10503 on arrays of incomplete type.
10504 * tree.c (type_hash_eq): Handle comparing them properly.
10506 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10509 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10510 result mode matches original rtl mode.
10512 2011-03-10 Nick Clifton <nickc@redhat.com>
10514 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10515 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10517 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10519 PR rtl-optimization/47866
10520 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10521 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10522 if target wasn't scalar.
10523 * function.c (assign_stack_temp_for_type): Assert that neither
10524 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10525 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10527 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10529 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10531 * config/s390/s390-protos.h (s390_label_align): New prototype.
10532 * config/s390/s390.c (s390_label_align): New function.
10533 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10535 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10538 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10539 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10540 (output_vec_const_move): Ditto.
10542 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10544 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10545 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10546 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10547 Change 'rclass' argument and result type to reg_class_t.
10548 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10550 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10552 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10553 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10554 (TARGET_MEMORY_MOVE_COST): Define.
10555 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10557 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10560 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10563 PR tree-optimization/48022
10564 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10567 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10570 * var-tracking.c (find_use_val): Return NULL for
10571 cui->sets && cui->store_p BLKmode MEMs.
10573 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10575 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10577 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10578 xstormy16_print_operand_address): Remove.
10579 * config/stormy16/stormy16.c (xstormy16_print_operand,
10580 xstormy16_print_operand_address): Make static.
10581 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10583 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10586 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10587 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10590 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10593 * cfgloopmanip.c (fix_bb_placements): Return immediately
10594 if FROM is BASE_LOOP's header.
10596 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10598 * gimplify.c (gimplify_function_tree): Fix building calls
10599 to __builtin_return_address.
10601 2011-03-07 Alan Modra <amodra@gmail.com>
10603 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10604 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10605 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10606 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10608 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10609 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10610 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10611 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10612 * config/rs6000/rs6000.c
10613 (rs6000_elf_end_indicate_exec_stack): Rename to..
10614 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10615 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10616 (rs6000_file_start): ..here.
10617 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10618 file scope variables.
10619 (call_ABI_of_interest): New function.
10620 (init_cumulative_args): Set above vars when function return value
10621 is a float, vector, or small struct.
10622 (rs6000_function_arg_advance_1): Likewise for function args.
10623 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10624 references float args.
10626 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10628 * doc/cfg.texi: Remove "See" before @ref.
10629 * doc/invoke.texi: Likewise.
10631 2011-03-05 Jason Merrill <jason@redhat.com>
10633 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10635 2011-03-05 Anthony Green <green@moxielogic.com>
10637 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10639 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10641 PR rtl-optimization/47899
10642 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10643 to flow_loop_nested_p when moving the loop upward.
10645 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10648 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10650 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10652 PR tree-optimization/47967
10653 * ipa-cp.c (build_const_val): Return NULL instead of creating
10654 VIEW_CONVERT_EXPR for mismatching sizes.
10655 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10656 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10657 give up on versioning.
10659 2011-03-05 Alan Modra <amodra@gmail.com>
10662 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10663 full cmodel medium/large lo_sum + high addresses.
10665 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10667 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10668 pool references in UNSPEC_LTREL_OFFSET.
10670 2011-03-04 Jan Hubicka <jh@suse.cz>
10673 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10674 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10675 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10677 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10678 cgraph_add_thunk): Add node pointers.
10679 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10680 associated to right node.
10681 (input_node): Update use of cgraph_same_body_alias
10682 and cgraph_add_thunk.
10684 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10686 * config/i386/i386.opt (mprefer-avx128): New flag.
10687 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10688 modes when the flag -mprefer-avx128 is on.
10690 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10692 * dwarf2out.c (compare_loc_operands): Fix address handling.
10694 2011-03-04 Alan Modra <amodra@gmail.com>
10696 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10698 2011-03-04 Richard Guenther <rguenther@suse.de>
10700 PR middle-end/47968
10701 * expmed.c (extract_bit_field_1): Prefer vector modes that
10702 vec_extract patterns can handle.
10704 2011-03-04 Richard Guenther <rguenther@suse.de>
10706 PR middle-end/47975
10707 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10709 2011-03-04 Richard Henderson <rth@redhat.com>
10711 * explow.c (emit_stack_save): Remove 'after' parameter.
10712 (emit_stack_restore): Likewise.
10713 * expr.h: Update to match.
10714 * builtins.c, calls.c, stmt.c: Likewise.
10715 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10716 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10717 * function.c (expand_function_end): Insert the emit_stack_save
10718 sequence before parm_birth_insn instead of after.
10720 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10722 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10723 (ssse3_pmaddubsw128): Ditto.
10724 (ssse3_pmaddubsw): Ditto.
10726 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10728 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10730 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10733 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10734 on TYPE_SIZE_UNIT if it is a DECL.
10737 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10738 first operand is not is_gimple_mem_ref_addr, try to fold it.
10739 If the operand still isn't is_gimple_mem_ref_addr, clear
10742 2011-03-03 Richard Guenther <rguenther@suse.de>
10744 PR middle-end/47283
10745 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10747 (refs_may_alias_p_1): For release branches return true if
10748 we are confused by our input.
10750 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10752 * config/s390/s390.c (s390_function_value): Rename to ...
10753 (s390_function_and_libcall_value): ... this.
10754 (s390_function_value): New function.
10755 (s390_libcall_value): New function.
10756 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10757 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10758 target macro definitions.
10759 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10761 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10763 * config/i386/freebsd64.h (CC1_SPEC): Define.
10764 * config/i386/linux64.h (CC1_SPEC): Define.
10765 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10767 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10769 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10771 * config/stormy16/stormy16.c: Include reload.h.
10772 (xstormy16_memory_move_cost): New function.
10773 (TARGET_MEMORY_MOVE_COST): Define.
10775 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10777 PR rtl-optimization/47925
10778 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10779 with side effects. Remove the more-specific check for volatile asms.
10781 2011-03-02 Alan Modra <amodra@gmail.com>
10784 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10785 toc relative addresses for valid offsets.
10787 2011-03-01 Richard Guenther <rguenther@suse.de>
10789 PR tree-optimization/47890
10790 * tree-vect-loop.c (get_initial_def_for_induction): Set
10791 related stmt properly.
10793 2011-03-01 Richard Guenther <rguenther@suse.de>
10796 * lto-streamer.c (lto_record_common_node): Also register
10797 the canonical type.
10799 2011-03-01 Richard Guenther <rguenther@suse.de>
10802 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10803 Do not stream DECL_ABSTRACT_ORIGIN.
10804 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10805 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10806 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10807 Do not stream DECL_ABSTRACT_ORIGIN.
10808 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10809 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10811 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10813 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10814 FUNCTION_VALUE_REGNO_P): Remove.
10815 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10816 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10817 Add 'outgoing' argument.
10818 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10820 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10821 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10823 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10826 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10827 (lookup_filename): Likewise.
10828 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10830 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10831 Jakub Jelinek <jakub@redhat.com>
10833 PR middle-end/47893
10834 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10835 (assign_stack_local_1): Change last argument type to int.
10836 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10837 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10838 don't record padding space into frame_space_list nor use those areas.
10839 (assign_stack_local): Adjust caller.
10840 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10841 of assign_stack_local, pass 0 as last argument.
10842 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10845 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10848 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10849 Use target address_mode and pointer_mode hooks instead of hardcoded
10850 Pmode and ptr_mode. Handle some simple cases of extending if
10851 POINTERS_EXTEND_UNSIGNED < 0.
10852 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10853 Call convert_debug_memory_address.
10854 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10855 convert_debug_memory_address.
10857 PR middle-end/46790
10858 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10859 * configure: Regenerated.
10860 * config.in: Regenerated.
10861 * varasm.c (default_function_section): Return NULL
10862 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10864 2011-02-28 Martin Jambor <mjambor@suse.cz>
10866 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10867 the description to match the printed values.
10869 2011-02-28 Richard Guenther <rguenther@suse.de>
10871 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10872 of the copied scope tree.
10874 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10876 * doc/extend.texi (Function Attributes): Avoid deeply (and
10877 wrongly) nested tables.
10879 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10881 PR middle-end/47903
10882 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10883 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10884 r isn't op0 nor op1.
10886 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10888 * config/avr/avr.md: Remove magic comment for emacs.
10890 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10893 * config/avr/avr.c (avr_option_override): Use error on bad options.
10894 (avr_help): New function.
10895 (TARGET_HELP): Define.
10897 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10900 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10901 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10903 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10905 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10906 (ARM Options): Ditto.
10907 (i386 and x86-64 Options): Ditto.
10908 (RX Options): Ditto.
10909 (SPARC Options): Ditto.
10911 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10913 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10914 FreeBSD 6 and later. Generally use cpu generic.
10916 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10918 * doc/cpp.texi: Update copyright years.
10920 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10923 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10925 2011-02-25 Jon Beniston <jon@beniston.com>
10928 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10929 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10930 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10931 (lm32_block_move_inline): Add type cast to remove warning.
10932 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10933 (gen_int_relational): Move declarations to start of function.
10935 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10937 PR tree-optimization/45470
10938 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10939 can throw internally only.
10940 * tree-vect-stmts.c (vectorizable_call): Likewise.
10942 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10944 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10945 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10946 * config/stormy16/stormy16-protos.h
10947 (xstormy16_preferred_reload_class): Remove.
10948 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10949 static. Change 'rclass' argument and return type to reg_class_t.
10950 (TARGET_PREFERRED_RELOAD_CLASS,
10951 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10953 2011-02-24 Richard Guenther <rguenther@suse.de>
10955 * lto-streamer-in.c (input_bb): Do not find referenced vars
10956 in debug statements.
10958 2011-02-23 Jason Merrill <jason@redhat.com>
10960 * common.opt (fabi-version): Document v5 and v6.
10962 2011-02-23 Richard Guenther <rguenther@suse.de>
10964 PR tree-optimization/47849
10965 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10967 2011-02-23 Jie Zhang <jie@codesourcery.com>
10969 * opts-common.c (decode_cmdline_option): Print empty string
10970 argument as "" in decoded->orig_option_with_args_text.
10971 * gcc.c (execute): Print empty string argument as ""
10972 in the verbose output.
10973 (do_spec_1): Keep empty string argument.
10975 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10977 * config.gcc: Declare score-* and crx-* obsolete.
10979 2011-02-23 Jie Zhang <jie@codesourcery.com>
10981 PR rtl-optimization/47763
10982 * web.c (web_main): Ignore naked clobber when replacing register.
10984 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10986 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10989 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10992 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10994 2011-02-22 Mike Stump <mikestump@comcast.net>
10996 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10998 * configure: Regenerate.
11000 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11002 PR rtl-optimization/46002
11003 * ira-color.c (update_copy_costs): Change class intersection
11004 test to reg_class_contents[] test of 'hard_regno'.
11006 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11008 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11009 than Driver option.
11010 * config/hpux11.opt (mt): Likewise.
11011 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11012 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11013 * config/vax/elf.opt (mno-asm-pic): Likewise.
11014 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11016 2011-02-21 Mike Stump <mikestump@comcast.net>
11019 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11020 tree so we can get save the type.
11021 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11022 for CFString instead of trying to use past the end of the builtins.
11023 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11024 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11025 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11026 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11027 Rename to darwin_builtin_cfstring.
11028 (darwin_init_cfstring_builtins): Return the built type.
11030 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11033 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11034 (_mm256_insert_epi64): Use _mm_insert_epi64.
11036 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11038 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11039 * config/stormy16/stormy16-protos.h
11040 (xstormy16_mode_dependent_address_p): Remove.
11041 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11042 Make static. Change return type to bool. Change argument type to
11043 const_rtx. Remove dead code.
11044 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11046 2011-02-21 Richard Guenther <rguenther@suse.de>
11049 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11050 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11051 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11053 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11054 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11056 2011-02-20 Richard Guenther <rguenther@suse.de>
11059 * tree.c (free_lang_data_in_decl): Clean builtins from
11060 the TU decl BLOCK_VARS.
11062 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11066 * haifa-sched.c (fix_tick_ready): Skip tick computation
11069 2011-02-19 Richard Guenther <rguenther@suse.de>
11072 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11073 Remove lazy BLOCK_VARS streaming.
11074 (lto_input_ts_block_tree_pointers): Likewise.
11075 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11077 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11079 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11081 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11083 * config/i386/biarch32.h, config/i386/mach.h,
11084 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11086 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11089 * config/i386/i386.md (peephole2 for shift and plus): Use
11090 operands[1] original mode in the first insn.
11092 2011-02-18 Mike Stump <mikestump@comcast.net>
11094 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11096 2011-02-18 Jan Hubicka <jh@suse.cz>
11098 PR middle-end/47788
11099 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11100 to zero when the function is not inlinable at all.
11102 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11104 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11105 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11106 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11107 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11108 * config/pa/t-pa64: Likewise.
11109 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11111 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11114 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11116 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11119 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11121 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11123 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11124 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11125 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11126 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11127 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11128 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11129 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11130 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11131 m32r_legitimate_address_p): New functions.
11132 * config/m32r/constraints.md (constraint "S"): Don't use
11133 STORE_PREINC_PREDEC_P.
11134 (constraint "U"): Don't use LOAD_POSTINC_P.
11136 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11138 PR rtl-optimization/46178
11139 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11140 compute ira_hard_regno_cover_class[].
11142 2011-02-18 Richard Guenther <rguenther@suse.de>
11145 * lto-streamer.h (lto_global_var_decls): Declare.
11146 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11147 statics for global var processing.
11149 2011-02-18 Richard Guenther <rguenther@suse.de>
11151 PR tree-optimization/47737
11152 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11153 edge dominance check.
11155 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11158 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11159 avoid invalid rtx sharing.
11161 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11163 * doc/cpp.texi (Obsolete Features): Add background on the
11164 origin of assertions.
11166 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11168 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11170 * config/darwin.c (output_objc_section_asm_op): Added support for
11172 (is_objc_metadata): New.
11173 (darwin_objc2_section): New.
11174 (darwin_objc1_section): New.
11175 (machopic_select_section): Added support for ABI v1 and v2.
11176 (darwin_emit_objc_zeroed): New.
11177 (darwin_output_aligned_bss): Detect objc metadata and treat it
11179 (darwin_asm_output_aligned_decl_common): Same.
11180 (darwin_asm_output_aligned_decl_local): Same.
11181 * config/darwin-sections.def: Updated for ABI v1 and v2.
11182 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11183 compiling Objective-C code for the NeXT runtime, default to using
11184 ABI version 0 for 32-bit, and version 2 for 64-bit.
11186 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11188 * common.opt (optimize_fast): New Variable.
11189 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11190 instead of local variable ofast.
11192 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11194 * doc/invoke.texi (fobjc-abi-version): Documented.
11195 (fobjc-nilcheck): Documented.
11196 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11199 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11202 * common.opt (export-dynamic): New Driver option.
11203 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11205 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11207 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11209 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11210 Jan Hubicka <jh@suse.cz>
11214 * cfgexpand.c (account_used_vars_for_block): Remove.
11215 (estimated_stack_frame_size): Use referenced vars.
11216 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11217 that were referenced in the original function. Test src_fn
11218 rather than cfun. Drop redundant get_var_ann.
11219 (setup_one_parameter): Drop redundant get_var_ann.
11220 (declare_return_variable): Likewise.
11221 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11222 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11223 * ipa-inline.c (compute_inline_parameters): Do not compute
11224 disregard_inline_limits here.
11225 (compute_inlinable_for_current, pass_inlinable): New.
11226 (pass_inline_parameters): Require PROP_referenced_vars.
11227 * cgraphunit.c (cgraph_process_new_functions): Don't run
11228 compute_inline_parameters explicitly unless function is in SSA form.
11229 (cgraph_analyze_function): Set .disregard_inline_limits.
11230 * tree-sra.c (convert_callers): Compute inliner parameters
11231 only for functions already in SSA form.
11233 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11235 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11236 -mlittle-endian-data.
11238 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11240 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11241 -mno-fpu, not -fpu and -no-fpu.
11242 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11243 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11245 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11248 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11249 input reload with PLUS RTX.
11251 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11253 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11254 of InverseVar(MDMX).
11256 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11258 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11261 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11263 * config/mn10300/mn10300.opt (mno-crt0): New.
11265 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11267 * config/m68k/uclinux.opt (static-libc): New Driver option.
11269 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11271 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11273 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11275 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11276 %{muser-extend-enabled}.
11278 2011-02-16 Richard Guenther <rguenther@suse.de>
11280 PR tree-optimization/47738
11281 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11282 the TODO from tree_predictive_commoning.
11284 2011-02-15 Jeff Law <law@redhat.com>
11287 2011-01-25 Jeff Law <law@redhat.com>
11289 PR rtl-optimization/37273
11290 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11291 handle them like argument loads from stack slots. Do not double
11292 count memory for memory constants and argument loads from stack slots.
11294 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11296 PR middle-end/47725
11297 * combine.c (cant_combine_insn_p): Revert the last change.
11299 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11302 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11303 mode for vector constants. Remove code that checks for TImode.
11305 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11309 * cgraph.h (compute_inline_parameters): Return void.
11310 * ipa-inline.c (compute_inline_parameters): Adjust.
11312 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11316 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11318 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11319 * ipa-inline.c (compute_inline_parameters): Adjust.
11321 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11325 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11326 Adjust all users. Pass FN to...
11327 * tree-flow-inline.h (first_referenced_var): ... this. Add
11329 * ipa-struct-reorg.c: Adjust.
11330 * tree-dfa.c: Adjust.
11331 * tree-into-ssa.c: Adjust.
11332 * tree-sra.c: Adjust.
11333 * tree-ssa-alias.c: Adjust.
11334 * tree-ssa-live.c: Adjust.
11335 * tree-ssa.c: Adjust.
11336 * tree-ssanames.c: Adjust.
11337 * tree-tailcall.c: Adjust.
11339 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11343 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11344 Adjust all callers.
11345 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11346 * tree-flow-inline.h: Adjust.
11347 * gimple-pretty-print.c: Adjust.
11348 * tree-into-ssa.c: Adjust.
11349 * tree-ssa.c: Adjust.
11350 * cfgexpand.c: Adjust.
11352 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11354 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11355 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11356 (EXTRA_CONSTRAINT): Delete.
11357 * config/iq2000/constraints.md: New file.
11358 * config/iq2000/iq2000.md: Include it.
11359 (define_insn ""): Delete.
11360 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11361 unsupported constraint letters from patterns.
11362 (call_value, call_value_internal1): Likewise.
11363 (call_value_multiple_internal1): Likewise.
11365 2011-02-15 Nick Clifton <nickc@redhat.com>
11367 * config/mn10300/mn10300.c: Include tm-constrs.h.
11368 (struct liw_data): New data structure describing an LIW candidate
11370 (extract_bundle): Use struct liw_data. Allow small integer
11371 operands for some instructions.
11372 (check_liw_constraints): Use struct liw_data. Remove swapped
11373 parameter. Add comments describing the checks. Fix bug when
11374 assigning the source of liw1 to the source of liw2.
11375 (liw_candidate): Delete. Code moved into extract_bundle.
11376 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11378 * config/mn10300/predicates.md (liw_operand): New predicate.
11379 Allows registers and small integer constants.
11380 * config/mn10300/constraints.md (O): New constraint. Accetps
11381 integers in the range -8 to +7 inclusive.
11382 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11383 for moving a small integer into a register. Give this alternative
11385 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11386 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11387 using the J,K,L and M constraints,
11388 (liw): Remove SI mode on second operands to allow for HI and QI
11390 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11393 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11395 PR middle-end/47725
11396 * combine.c (cant_combine_insn_p): Check zero/sign extended
11399 2011-02-15 Richard Guenther <rguenther@suse.de>
11401 PR tree-optimization/47743
11402 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11403 for a non-type-compatible VN lookup bail out.
11405 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11407 * config/fr30/constraints.md: New file.
11408 * config/fr30/fr30.md: Include it.
11409 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11410 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11411 (EXTRA_CONSTRAINT): Delete.
11413 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11415 * config/frv/constraints.md: New file.
11416 * config/frv/predicates.md: Include it.
11417 * config/frv/frv.c (reg_class_from_letter): Delete.
11418 (frv_option_override): Don't initialize it.
11419 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11420 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11421 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11422 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11423 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11424 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11425 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11426 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11427 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11428 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11429 (REG_CLASS_FROM_CONSTRAINT): Delete.
11431 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11433 PR middle-end/47581
11434 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11435 if frame size is 0 in a leaf function.
11437 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11440 * config/alpha/host-osf.c: New file.
11441 * config/alpha/x-osf: New file.
11442 * config.host (alpha*-dec-osf*): Use it.
11444 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11446 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11447 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11448 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11449 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11451 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11453 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11455 * config/stormy16/constraints.md: New file.
11456 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11457 Use satisfies_constraint_Q and satisfies_constraint_R.
11458 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11460 (xstormy16_legitiamte_address_p): Declare.
11461 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11462 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11463 (EXTRA_CONSTRAINT): Delete.
11464 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11466 (xstormy16_extra_constraint_p): Delete.
11468 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11470 PR tree-optimization/46494
11471 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11472 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11473 (pass_rtl_loop_done): Add TODO_verify_flow.
11474 * fwprop.c (pass_rtl_fwprop): Likewise.
11475 * modulo-sched.c (pass_sms): Likewise.
11476 * tree-ssa-dom.c (pass_dominator): Likewise.
11477 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11478 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11479 (pass_tree_loop_done): Likewise.
11480 * tree-ssa-pre.c (execute_pre): Likewise.
11481 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11482 * tree-ssa-sink.c (pass_sink_code): Likewise.
11483 * tree-vrp.c (pass_vrp): Likewise.
11485 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11487 * config/v850/constraints.md: New file.
11488 * config/v850/v850.md: Include it.
11489 * config/v850/predicates.md (reg_or_0_operand): Use
11490 satisfies_constraint_G.
11491 (special_symbolref_operand): Use satisfies_constraint_K.
11492 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11493 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11494 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11495 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11496 (EXTRA_CONSTRAINT): Delete.
11497 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11498 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11499 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11501 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11504 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11507 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11509 * config/mcore/constraints.md: New file.
11510 * config/mcore/mcore.md: Include it.
11511 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11512 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11513 (REG_CLASS_FROM_LETTER): Delete.
11514 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11515 insn_const_int_ok_for_constraint.
11516 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11517 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11518 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11519 (EXTRA_CONSTRAINT): Delete.
11521 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11524 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11525 (IS_SIGHANDLER): Define.
11526 (sparc64_is_sighandler): New function, split off from
11527 sparc64_fallback_frame_state.
11528 (sparc_is_sighandler): New function, split off from
11529 sparc_fallback_frame_state.
11530 (sparc64_fallback_frame_state): Merge with ...
11531 (sparc_fallback_frame_state): ... this into ...
11532 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11533 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11534 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11535 stack instead of hardcoded offsets.
11537 2011-02-14 Andriy Gapon <avg@freebsd.org>
11540 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11542 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11544 * configure: Regenerate.
11546 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11549 * gcc.c (asm_options): Correct spec matching --target-help.
11551 2011-02-12 Martin Jambor <mjambor@suse.cz>
11553 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11554 to gimple call error.
11556 2011-02-12 Mike Stump <mikestump@comcast.net>
11558 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11559 comments in backslash regions.
11561 2011-02-12 Mike Stump <mikestump@comcast.net>
11562 Jakub Jelinek <jakub@redhat.com>
11563 Iain Sandoe <iains@gcc.gnu.org>
11566 * dwarf2out.c (output_cfa_loc): When required, apply the
11567 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11568 (output_loc_sequence): Likewise.
11569 (output_loc_operands_raw): Likewise.
11570 (output_loc_sequence_raw): Likewise.
11571 (output_cfa_loc): Likewise.
11572 (output_loc_list): Suppress register number adjustment when
11573 calling output_loc_sequence()
11574 (output_die): Likewise.
11576 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11578 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11580 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11581 xtensa_memory_move_cost): New functions.
11582 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11584 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11587 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11588 in the current directory.
11589 * configure: Rebuilt.
11591 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11593 * config/darwin.c (darwin_override_options): Add a hunk missed
11594 from the commit of r168571. Trim comment line lengths and
11595 correct indents of the preceding block.
11597 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11599 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11602 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11604 * common.opt (nostartfiles): New Driver option.
11606 2011-02-11 Xinliang David Li <davidxl@google.com>
11608 PR tree-optimization/47707
11609 * tree-chrec.c (convert_affine_scev): Keep type precision.
11611 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11613 PR tree-optimization/47420
11614 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11616 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11618 PR rtl-optimization/47614
11619 * rtl.h (check_for_inc_dec): Declare.
11620 * dse.c (check_for_inc_dec): Externalize...
11621 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11622 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11624 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11627 * gcc.c (main): Do not compile inputs if there were errors in
11629 * opts-common.c (read_cmdline_option): Check for wrong language
11630 after other error checks.
11632 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11634 * cgraph.c: Fix comment typos.
11635 * cgraph.h: Likewise.
11636 * cgraphunit.c: Likewise.
11637 * ipa-cp.c: Likewise.
11638 * ipa-inline.c: Likewise.
11639 * ipa-prop.c: Likewise.
11640 * ipa-pure-const.c: Likewise.
11641 * ipa-ref.c: Likewise.
11642 * ipa-reference.c: Likewise.
11644 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11647 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11649 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11652 * doc/sourcebuild.texi (Require Support): Document
11653 dg-require-ascii-locale.
11655 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11657 * doc/lto.texi (Write summary): Fix missing parentheses.
11659 2011-02-10 DJ Delorie <dj@redhat.com>
11661 * config/m32c/m32c.c (m32c_option_override): Disable
11662 -fcombine-stack-adjustments until flag value tracking and compare
11663 optimization can be rewritten.
11665 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11667 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11669 (PROCESSOR_DEFAULT64): Likewise.
11671 2011-02-10 Richard Henderson <rth@redhat.com>
11673 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11674 change from 2011-02-03.
11675 * config/rx/rx.c (flags_from_code): Likewise.
11676 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11677 is valid, n/pz otherwise.
11678 (rx_select_cc_mode): Return CCmode if Y is not zero.
11680 2011-02-10 Richard Guenther <rguenther@suse.de>
11682 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11684 2011-02-10 Richard Guenther <rguenther@suse.de>
11686 PR tree-optimization/47677
11687 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11689 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11692 * combine.c (make_compound_operation): Only change shifts into
11693 multiplication for SCALAR_INT_MODE_P.
11695 2011-02-10 Jie Zhang <jie@codesourcery.com>
11699 2011-02-05 Jie Zhang <jie@codesourcery.com>
11701 * web.c (entry_register): Don't clobber the number of the
11702 first uninitialized reference in used[].
11704 2011-02-09 Richard Guenther <rguenther@suse.de>
11706 PR tree-optimization/47664
11707 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11710 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11714 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11716 (PROCESSOR_DEFAULT64): Same.
11717 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11719 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11721 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11723 2011-02-09 Martin Jambor <mjambor@suse.cz>
11725 PR middle-end/45505
11726 * tree-sra.c (struct access): New flags grp_scalar_read and
11727 grp_scalar_write. Changed description of assignment read and write
11729 (dump_access): Dump new flags, reorder all of them.
11730 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11731 to detect multiple scalar reads.
11732 (analyze_access_subtree): Use the new scalar read write flags instead
11733 of the old flags. Adjusted comments.
11735 2011-02-08 DJ Delorie <dj@redhat.com>
11738 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11741 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11743 * config/m68k/uclinux.opt: New.
11744 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11746 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11748 * config/cris/elf.opt (sim): New Driver option.
11750 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11752 * config/xtensa/elf.opt: New.
11753 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11755 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11757 * config/vax/elf.opt: New.
11758 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11760 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11762 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11764 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11766 * config/gnu-user.opt: New.
11767 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11768 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11769 *-*-uclinux*): Use gnu-user.opt.
11771 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11773 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11774 * config/i386/gnu.h (CPP_SPEC): Likewise.
11776 2011-02-08 Ian Lance Taylor <iant@google.com>
11778 * common.opt (fcx-limited-range): Add SetByCombined flag.
11779 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11780 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11781 (fassociative-math, freciprocal-math): Likewise.
11782 (funsafe-math-optimizations): Likewise.
11783 * opth-gen.awk: Handle SetByCombined.
11784 * optc-gen.awk: Likewise.
11785 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11786 (set_unsafe_math_optimizations_flags): Likewise.
11787 * doc/options.texi (Option properties): Document SetByCombined.
11789 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11791 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11792 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11793 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11794 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11795 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11797 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11799 PR tree-optimization/46834
11800 PR tree-optimization/46994
11801 PR tree-optimization/46995
11802 * graphite-sese-to-poly.c (used_outside_reduction): New.
11803 (detect_commutative_reduction): Call used_outside_reduction.
11804 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11805 translate_scalar_reduction_to_array only when at least one
11806 loop-phi/close-phi tuple has been detected.
11808 2011-02-08 Richard Guenther <rguenther@suse.de>
11810 PR middle-end/47639
11811 * tree-vect-generic.c (expand_vector_operations_1): Update
11813 (expand_vector_operations): ... not here. Cleanup EH info
11814 and the CFG if required.
11816 2011-02-08 Richard Guenther <rguenther@suse.de>
11818 PR tree-optimization/47641
11819 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11820 require type compatibility.
11822 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11824 * gimple-low.c (lower_function_body): Don't remove the location of
11825 the return statement here.
11826 (lower_gimple_return): Do it here instead but only if the return
11827 statement is actually used twice.
11829 2011-02-08 Richard Guenther <rguenther@suse.de>
11831 PR tree-optimization/47632
11832 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11833 unused up_to_stmt parameter, return whether cfg-cleanup is
11834 necessary, remove EH info properly.
11835 (forward_propagate_into_gimple_cond): Adjust caller.
11836 (forward_propagate_into_cond): Likewise.
11837 (forward_propagate_comparison): Likewise.
11838 (tree_ssa_forward_propagate_single_use_vars): Make
11839 forward_propagate_comparison case similar to the two others.
11841 2011-02-08 Nick Clifton <nickc@redhat.com>
11843 * config/mn10300/mn10300.opt (mliw): New command line option.
11844 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11845 (liw_bundling): New automaton.
11846 (liw): New attribute.
11847 (liw_op): New attribute.
11848 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11849 (movsi_internal): Add LIW attributes.
11850 (andsi3): Likewise.
11851 (iorsi3): Likewise.
11852 (xorsi3): Likewise.
11853 (addsi3): Separate register and immediate alternatives.
11854 Add LIW attributes.
11855 (subsi3): Likewise.
11857 (aslsi3): Likewise.
11858 (lshrsi3): Likewise.
11859 (ashrsi3): Likewise.
11860 (liw): New pattern.
11861 * config/mn10300/mn10300.c (liw_op_names): New
11862 (mn10300_print_operand): Handle 'W' operand descriptor.
11863 (extract_bundle): New function.
11864 (check_liw_constraints): New function.
11865 (liw_candidate): New function.
11866 (mn10300_bundle_liw): New function.
11867 (mn10300_reorg): New function.
11868 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11869 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11870 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11871 __LIW__ or __NO_LIW__.
11872 * doc/invoke.texi: Describe the -mliw command line option.
11874 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11876 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11877 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11878 pthread_mutex_unlock): Remove.
11879 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11880 * config/pa/t-pa64: Likewise.
11881 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11882 shared libc if not linking against libpthread.
11883 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11885 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11888 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11889 on 10.6 and later to ensure that we always use the unwinder from
11890 the system. Only add -no_compact_unwind when tarteting darwin
11893 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11896 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11897 (vec_interleave_lowv2sf): Ditto.
11898 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11899 (vec_extract_oddv2sf): Ditto.
11901 2011-02-07 Mike Stump <mikestump@comcast.net>
11904 Add __ieee_divdc3 entry point.
11905 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11907 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11908 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11909 * config/darwin.c (darwin_rename_builtins): Add.
11910 * config/darwin-protos.h (darwin_rename_builtins): Add.
11912 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11915 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11918 2011-02-07 Mike Stump <mikestump@comcast.net>
11920 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11922 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11925 * config/avr/libgcc.S (exit): Move .endfunc
11927 2011-02-07 Richard Guenther <rguenther@suse.de>
11929 PR tree-optimization/47615
11930 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11931 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11932 (run_scc_vn): Initialize it.
11933 (visit_reference_op_load): Use it.
11934 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11936 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11938 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11939 DImode trapping arithmetic libfuncs.
11941 2011-02-07 Richard Guenther <rguenther@suse.de>
11943 PR tree-optimization/47621
11944 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11946 (execute_update_addresses_taken): ... here. Make it more
11947 conservative in what we accept.
11949 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11951 * config/sparc/freebsd.h (ASM_SPEC): Define.
11952 * config/sparc/vxworks.h (ASM_SPEC): Define.
11954 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11956 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11958 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11960 * doc/invoke.texi: Remove reference to compiler internals from
11961 user documentation.
11963 * reg-notes.def: Remove REG_VALUE_PROFILE.
11964 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11966 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11968 PR middle-end/47610
11969 * varasm.c (default_section_type_flags): If decl is NULL,
11970 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11972 2011-02-05 Jie Zhang <jie@codesourcery.com>
11975 * web.c (entry_register): Don't clobber the number of the
11976 first uninitialized reference in used[].
11978 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11980 PR tree-optimization/46194
11981 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11982 (build_classic_dist_vector_1): Do not represent classic distance
11983 vectors when the access functions are variating in different loops.
11985 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11987 * config/mips/iris6.opt: New.
11988 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11990 2011-02-04 Richard Henderson <rth@redhat.com>
11991 Steve Ellcey <sje@cup.hp.com>
11994 * config/ia64/predicates.md (mux1_brcst_element): New.
11995 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11996 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11997 (ia64_unpack_sign): New.
11998 (ia64_expand_unpack): Rewrite using new routines.
11999 (ia64_expand_widen_sum): Ditto.
12000 (ia64_expand_dot_prod_v8qi): Ditto.
12001 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12002 routines, add endian check.
12003 (pmpy2_even): Rename from pmpy2_r, add endian check.
12004 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12005 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12006 (vec_widen_smult_hi_v4hi): Ditto.
12007 (vec_widen_umult_lo_v4hi): Ditto.
12008 (vec_widen_umult_hi_v4hi): Ditto.
12009 (mulv2si3): Change endian checks.
12010 (sdot_prodv4hi): Rewrite with new calls.
12011 (udot_prodv4hi): New.
12012 (vec_pack_ssat_v4hi): Add endian check.
12013 (vec_pack_usat_v4hi): Ditto.
12014 (vec_pack_ssat_v2si): Ditto.
12015 (max1_even): Rename from max1_r, add endian check.
12016 (max1_odd): Rename from max1_l, add endian check.
12017 (*mux1_rev): Format change.
12018 (*mux1_mix): Ditto.
12019 (*mux1_shuf): Ditto.
12020 (*mux1_alt): Ditto.
12021 (*mux1_brcst_v8qi): Use new predicate.
12022 (vec_extract_evenv8qi): Remove endian check.
12023 (vec_extract_oddv8qi): Ditto.
12024 (vec_interleave_lowv4hi): Format change.
12025 (vec_interleave_highv4hi): Ditto.
12026 (mix2_even): Rename from mix2_r, add endian check.
12027 (mix2_odd): Rename from mux2_l, add endian check.
12028 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12029 (vec_extract_evenodd_helper): Format change.
12030 (vec_extract_evenv4hi): Remove endian check.
12031 (vec_extract_oddv4hi): Remove endian check.
12032 (vec_interleave_lowv2si): Format change.
12033 (vec_interleave_highv2si): Format change.
12034 (vec_initv2si): Remove endian check.
12035 (vecinit_v2si): Add endian check.
12036 (reduc_splus_v2sf): Add endian check.
12037 (reduc_smax_v2sf): Ditto.
12038 (reduc_smin_v2sf): Ditto.
12039 (vec_initv2sf): Remove endian check.
12040 (fpack): Add endian check.
12041 (fswap): Add endian check.
12042 (vec_interleave_highv2sf): Add endian check.
12043 (vec_interleave_lowv2sf): Add endian check.
12044 (fmix_lr): Add endian check.
12045 (vec_setv2sf): Format change.
12046 (*vec_extractv2sf_0_be): Use shift to extract operand.
12047 (*vec_extractv2sf_1_be): New.
12048 (vec_pack_trunc_v4hi): Add endian check.
12049 (vec_pack_trunc_v2si): Format change.
12051 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12053 PR inline-asm/23200
12054 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12055 do bb, locus and block comparison and disallow loads if it is not set.
12056 (stmt_is_replaceable_p): New function.
12057 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12059 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12060 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12062 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12064 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12066 * config/rs6000/xilinx.opt: New.
12067 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12069 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12071 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12073 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12075 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12076 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12077 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12078 secondary_reload_info, xtensa_secondary_reload): Remove.
12079 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12080 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12081 (xtensa_preferred_reload_class): Make static. Change return and
12082 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12083 Use CONST_DOUBLE_P predicate.
12084 (xtensa_preferred_output_reload_class): New function.
12085 (xtensa_secondary_reload): Make static.
12087 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12089 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12090 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12091 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12093 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12095 PR middle-end/31490
12096 * output.h (SECTION_RELRO): Define.
12097 (SECTION_MACH_DEP): Adjust.
12098 (get_variable_section): New prototype.
12099 * varpool.c (varpool_finalize_named_section_flags): New function.
12100 (varpool_assemble_pending_decls): Call it.
12101 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12102 * cgraphunit.c (cgraph_output_in_order): Call
12103 varpool_finalize_named_section_flags.
12104 * varasm.c (get_section): Allow section flags conflicts between
12105 relro and read-only sections if the section hasn't been declared yet.
12106 Set SECTION_OVERRIDE after diagnosing section type conflict.
12107 (get_variable_section): No longer static.
12108 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12109 readonly sections that need relocations.
12110 (decl_readonly_section_1): New function.
12111 (decl_readonly_section): Use it.
12114 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12115 Steve Ellcey <sje@cup.hp.com>
12117 PR middle-end/31490
12118 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12119 if section attribute used.
12121 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12123 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12124 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12125 (darwin_init_sections): Remove assertion.
12127 2011-02-03 Nick Clifton <nickc@redhat.com>
12129 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12131 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12132 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12133 instead of "n" and "pz".
12134 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12137 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12140 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12141 fma, expand FMA_EXPR as fma{,f,l} call.
12144 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12145 copy them into a unsigned char variable and pass address of it to
12146 lto_output_data_stream.
12149 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12150 around backend_init_target and lang_dependent_init_target calls.
12151 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12152 (verify_cgraph_node): Don't call set_cfun here. Use
12153 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12154 Set error_found for incorrectly represented calls to thunks.
12156 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12159 PR rtl-optimization/43494
12160 * rtl.h (for_each_inc_dec_fn): New type.
12161 (for_each_inc_dec): Declare.
12162 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12163 (for_each_inc_dec_find_inc_dec): New fn.
12164 (for_each_inc_dec_find_mem): New fn.
12165 (for_each_inc_dec): New fn.
12166 * dse.c (struct insn_size): Remove.
12167 (replace_inc_dec, replace_inc_dec_mem): Remove.
12168 (emit_inc_dec_insn_before): New fn.
12169 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12170 (canon_address): Pass mem modes to cselib_lookup.
12171 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12172 (cselib_lookup_from_insn): Likewise.
12173 (cselib_subst_to_values): Likewise.
12174 * cselib.c (find_slot_memmode): New var.
12175 (cselib_find_slot): New fn. Use it instead of
12176 htab_find_slot_with_hash everywhere.
12177 (entry_and_rtx_equal_p): Use find_slot_memmode.
12178 (autoinc_split): New fn.
12179 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12180 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12181 Deal with autoinc. Special-case recursion into MEMs.
12182 (cselib_hash_rtx): Likewise.
12183 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12184 address and MEM modes.
12185 (cselib_subst_to_values): Add memmode, pass it on.
12187 (cselib_lookup): Add memmode argument, pass it on.
12188 (cselib_lookup_from_insn): Add memmode.
12189 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12190 (struct cselib_record_autoinc_data): New.
12191 (cselib_record_autoinc_cb): New fn.
12192 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12193 mode to cselib_lookup. Reset autoinced REGs here instead of...
12194 (cselib_process_insn): ... here.
12195 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12197 (add_uses): Likewise, also to cselib_subst_to_values.
12198 (add_stores): Likewise.
12199 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12200 cselib_subst_to_values.
12201 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12202 * gcse.c (do_local_cprop): Adjusted.
12203 * postreload.c (reload_cse_simplify_set): Adjusted.
12204 (reload_cse_simplify_operands): Adjusted.
12205 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12207 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12209 PR tree-optimization/45122
12210 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12211 unsafe assumptions when there's more than one loop exit.
12213 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12216 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12217 Document using vector double with the load/store builtins, and
12218 that the load/store builtins always use Altivec instructions.
12220 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12221 to use altivec memory instructions, even on VSX.
12222 (vector_altivec_store_<mode>): Ditto.
12224 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12227 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12228 V2DF, V2DI support to load/store overloaded builtins.
12230 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12231 altivec load/store builtins for V2DF/V2DI types.
12233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12234 set avoid indexed addresses on power6 if -maltivec.
12235 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12236 vector_altivec_load/vector_altivec_store builtins.
12237 (altivec_expand_st_builtin): Ditto.
12238 (altivec_expand_builtin): Add VSX memory builtins.
12239 (rs6000_init_builtins): Add V2DI types to internal types.
12240 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12241 load/store builtins.
12242 (rs6000_address_for_altivec): Insure memory address is appropriate
12245 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12246 vec_vsx_ld and vec_vsx_st.
12247 (vsx_store_<mode>): Ditto.
12249 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12250 variables to hold long long types for VSX vector memory builtins.
12251 (RS6000_BTI_unsigned_long_long): Ditto.
12252 (long_long_integer_type_internal_node): Ditti.
12253 (long_long_unsigned_type_internal_node): Ditti.
12255 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12256 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12257 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12259 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12261 (vec_vsx_st): Ditto.
12263 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12265 * config/pa/pa-hpux10.opt: New.
12266 * config/hpux11.opt (pthread): New Driver option.
12267 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12268 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12270 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12272 * config/ia64/vms.opt: New.
12273 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12275 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12278 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12279 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12280 generator functions.
12281 (vsx_floatuns<VSi><mode>2): Ditto.
12282 (vsx_fix_trunc<mode><VSi>2): Ditto.
12283 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12285 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12287 * config/i386/djgpp.opt (posix): New Driver option.
12289 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12291 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12292 Move to the unsupported targets list.
12294 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12296 PR rtl-optimization/47525
12297 * df-scan.c: Update copyright years.
12298 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12299 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12301 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12303 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12304 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12305 (ASM_OUTPUT_ASCII): Remove.
12306 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12308 2011-02-02 Jeff Law <law@redhat.com>
12310 PR middle-end/47543
12311 * reload.c (find_reloads_address): Handle reg+d address where both
12312 components are invalid by reloading the entire address.
12314 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12315 Richard Guenther <rguenther@suse.de>
12317 PR tree-optimization/40979
12319 * passes.c (init_optimization_passes): After LIM call copy_prop
12320 and DCE to clean up.
12321 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12323 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12325 PR tree-optimization/47576
12326 PR tree-optimization/47555
12327 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12328 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12329 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12330 * tree-scalar-evolution.c (follow_ssa_edge): Use
12331 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12333 2011-02-02 Richard Guenther <rguenther@suse.de>
12335 PR tree-optimization/47566
12336 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12338 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12342 * tree-inline.c (declare_return_variable): Remove unused caller
12347 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12348 * cfgexpand.c (account_used_vars_for_block): Use them.
12349 * tree-nrv.c (tree_nrv): Likewise.
12350 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12351 (dump_scope_block): Likewise.
12352 (remove_unused_locals): Likewise.
12356 * tree-inline.c (declare_return_variable): Add result decl to
12357 local decls only once.
12358 * gimple-low.c (record_vars_into): Mark newly-created variables
12361 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12367 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12369 (no_real_insns_p, schedule_block, set_priorities): Drop special
12370 treatment of boundary debug insns.
12371 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12372 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12373 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12374 (BOUNDARY_DEBUG_INSN_P): Likewise.
12375 (SCHEDULE_DEBUG_INSN_P): Likewise.
12376 * sched-rgn.c (init_ready_list): Drop special treatment of
12377 boundary debug insns.
12378 * final.c (rest_of_clean_state): Clear notes' BB.
12380 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12382 * config/openbsd.opt (assert=): New Driver option.
12384 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12386 * config/i386/nto.opt: New.
12387 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12389 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12391 * config/i386/netware.opt: New.
12392 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12394 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12396 * config/interix.opt (posix): New Driver option.
12398 2011-02-01 DJ Delorie <dj@redhat.com>
12400 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12402 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12405 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12407 PR tree-optimization/47561
12408 * toplev.c (process_options): Print the Graphite flags. Add
12409 flag_loop_flatten to the list of options requiring Graphite.
12411 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12413 * config/i386/cygming.opt (posix): New Driver option.
12415 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12417 * config/arm/vxworks.opt: New.
12418 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12420 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12422 * config/alpha/elf.opt: New.
12423 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12424 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12426 2011-02-01 Richard Guenther <rguenther@suse.de>
12428 PR tree-optimization/47559
12429 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12430 store-motion on references that can throw.
12432 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12434 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12435 * tree-pass.h (TDF_CSELIB): New macro.
12436 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12437 cselib_lookup): Check for it rather than for TDF_DETAILS.
12439 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12442 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12443 is HOST_BIT_BUCKET.
12445 * opts.c (finish_options): Don't add x_aux_base_name if it is
12448 2011-02-01 Richard Guenther <rguenther@suse.de>
12450 PR tree-optimization/47555
12452 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12454 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12456 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12459 * config/lm32/t-lm32: Add multilib for all CPU options.
12461 2011-02-01 Richard Guenther <rguenther@suse.de>
12463 PR tree-optimization/47541
12464 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12465 sure to have a field at offset zero.
12467 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12469 * config/arc/arc.opt (EB, EL): New Driver options.
12471 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12473 * config/alpha/osf5.opt: New.
12474 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12476 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12478 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12480 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12482 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12483 -floop-interchange.
12484 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12485 is an alias of -floop-interchange and that it requires the
12486 Graphite infrastructure.
12487 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12488 flag_loop_interchange based on the value of flag_tree_loop_linear.
12490 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12491 Richard Guenther <rguenther@suse.de>
12493 PR tree-optimization/47538
12494 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12495 type instead of r1type, except for comparisons. For right
12496 shifts and comparisons punt if there are mismatches in
12497 sizetype vs. non-sizetype types.
12499 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12501 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12504 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12506 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12508 * configure: Regenerate.
12510 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12512 * configure.ac (gcc_cv_ld_static_option): Define.
12513 (gcc_cv_ld_dynamic_option): Define.
12514 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12516 (HAVE_LD_STATIC_DYNAMIC): Update message.
12517 (LD_STATIC_OPTION): Define.
12518 (LD_DYNAMIC_OPTION): Define.
12519 * configure: Regenerate.
12520 * config.in: Regenerate.
12521 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12522 HAVE_LD_STATIC_DYNAMIC]: Use them.
12524 2011-01-31 Nick Clifton <nickc@redhat.com>
12526 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12527 registers inside interrupt handlers if the handler is not a leaf
12530 2011-01-31 Nick Clifton <nickc@redhat.com>
12532 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12533 reg_renumber returning an INVALID_REGNUM.
12535 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12538 * doc/install.texi: Document host options discarded when cross
12539 configuring target libraries.
12541 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12544 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12547 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12549 (no_real_insns_p, schedule_block, set_priorities): Drop special
12550 treatment of boundary debug insns.
12551 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12552 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12553 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12554 (BOUNDARY_DEBUG_INSN_P): Likewise.
12555 (SCHEDULE_DEBUG_INSN_P): Likewise.
12556 * sched-rgn.c (init_ready_list): Drop special treatment of
12557 boundary debug insns.
12558 * final.c (rest_of_clean-state): Clear notes' BB.
12560 2011-01-31 Alan Modra <amodra@gmail.com>
12562 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12563 toc relative expressions as we do in print_operand_address.
12565 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12567 * doc/extend.texi: Follow spelling conventions.
12568 * doc/invoke.texi: Fix a typo.
12570 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12572 * config/hpux11.opt: New.
12573 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12574 ia64*-*-hpux*): Use hpux11.opt.
12576 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12578 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12581 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12583 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12586 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12588 * doc/install.texi (Binaries): Remove outdated reference for
12589 Motorola 68HC11/68HC12 downloads.
12591 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12593 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12596 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12599 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12602 2011-01-28 Ahmad Sharif <asharif@google.com>
12604 * value-prof.c (check_counter): Corrected error message.
12606 2011-01-29 Jie Zhang <jie@codesourcery.com>
12608 * config/arm/arm.c (arm_legitimize_reload_address): New.
12609 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12610 arm_legitimize_reload_address.
12611 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12613 2011-01-28 Ian Lance Taylor <iant@google.com>
12615 * godump.c (go_define): Ignore macros whose definitions include
12616 two adjacent operands.
12618 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12621 * varasm.c (force_const_mem): Store copy of x in desc->constant
12622 instead of x itself.
12623 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12624 itself into REG_EQUAL note.
12626 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12628 * config/freebsd.opt (posix, rdynamic): New Driver options.
12630 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12632 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12633 -Bstatic/-Bdynamic.
12634 * configure: Regenerate.
12636 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12638 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12639 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12641 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12643 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12644 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12645 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12646 (s390_preferred_reload_class): Make static. Change return and
12647 'rclass' argument type to reg_class_t.
12649 2011-01-27 Jan Hubicka <jh@suse.cz>
12651 PR middle-end/46949
12652 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12653 (process_function_and_variable_attributes): Check defined weakrefs.
12655 2011-01-27 Martin Jambor <mjambor@suse.cz>
12657 PR tree-optimization/47228
12658 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12659 build_ref_for_offset.
12661 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12663 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12665 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12667 PR rtl-optimization/46856
12668 * postreload.c (reload_combine_recognize_const_pattern): Do not
12669 separate cc0 setter and user on cc0 targets.
12671 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12674 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12675 passed a VOID_TYPE expression, immediately emit an error and
12676 return error_mark_node.
12678 2011-01-26 Jeff Law <law@redhat.com>
12680 PR rtl-optimization/47464
12681 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12682 rather than may_trap_p as needed.
12684 2011-01-26 DJ Delorie <dj@redhat.com>
12686 PR rtl-optimization/46878
12687 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12688 setter/user dependency as well.
12690 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12692 PR rtl-optimization/44469
12693 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12694 after removing trivially dead basic blocks.
12696 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12698 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12699 * config/frv/frv.h (LINK_SPEC): Likewise.
12700 * config/i386/netware.h (LINK_SPEC): Likewise.
12701 * config/m68k/linux.h (ASM_SPEC): Likewise.
12702 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12703 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12704 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12705 * config/sparc/linux.h (ASM_SPEC): Likewise.
12706 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12707 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12709 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12711 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12712 * config/frv/frv.h (ASM_SPEC): Likewise.
12713 * config/m68k/linux.h (ASM_SPEC): Likewise.
12714 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12715 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12716 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12717 * config/sparc/linux.h (ASM_SPEC): Likewise.
12718 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12719 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12721 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12723 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12724 * config/frv/frv.h (LINK_SPEC): Likewise.
12725 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12727 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12729 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12730 * config/frv/frv.h (ASM_SPEC): Likewise.
12731 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12732 * config/m68k/linux.h (ASM_SPEC): Likewise.
12733 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12734 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12735 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12736 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12737 * config/sparc/linux.h (ASM_SPEC): Likewise.
12738 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12739 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12740 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12742 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12745 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12747 (vec_extract_evenodd_help): Ditto.
12748 (vec_extract_evenv4hi): Ditto.
12749 (vec_extract_oddv4hi): Ditto.
12750 (vec_interleave_lowv2si): Ditto.
12751 (vec_interleave_highv2si): Ditto.
12752 (vec_extract_evenv2si): Ditto.
12753 (vec_extract_oddv2si: Ditto.
12754 (vec_pack_trunc_v2si): Ditto.
12756 2011-01-22 Jan Hubicka <jh@suse.cz>
12759 * cgraph.h (cgraph_local_info): New field can_change_signature.
12760 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12761 signature can change.
12762 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12764 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12765 (cgraph_function_versioning): We can not change signature of functions
12766 that don't allow that.
12767 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12768 (lto_input_node): Likewise.
12769 * ipa-inline.c (compute_inline_parameters): Compute
12770 local.can_change_signature.
12771 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12772 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12773 functions that can not change signature.
12774 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12775 init_cumulative_args): Do not use local calling conventions
12776 for functions that can not change signature.
12778 2011-01-22 Jan Hubicka <jh@suse.cz>
12780 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12782 2011-01-26 Richard Guenther <rguenther@suse.de>
12784 PR tree-optimization/47190
12785 * cgraphunit.c (process_common_attributes): New function.
12786 (process_function_and_variable_attributes): Use it.
12788 2011-01-26 Richard Guenther <rguenther@suse.de>
12791 * cgraphbuild.c (record_eh_tables): Record reference to personality
12794 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12797 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12798 non-debug insns from moving up.
12800 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12803 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12804 t-dlldir{,-x} fragment for build and add it to tmake_file.
12805 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12806 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12807 * config/i386/t-dlldir: New file.
12808 (SHLIB_DLLDIR): Define.
12809 * config/i386/t-dlldir-x: New file.
12810 (SHLIB_DLLDIR): Define.
12811 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12812 (SHLIB_INSTALL): Use it.
12814 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12817 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12818 lower bound of the allowed Thumb-2 coprocessor load/store
12819 index range to -256. Add explaining comment.
12821 2011-01-25 Ian Lance Taylor <iant@google.com>
12823 * godump.c (go_define): Improve lexing of macro expansion to only
12824 accept expressions which match Go spec.
12826 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12829 * tree.c (handle_dll_attribute): Handle it.
12830 * doc/extend.texi (@item dllexport): Mention it.
12831 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12833 2011-01-25 Ian Lance Taylor <iant@google.com>
12835 PR tree-optimization/26854
12836 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12837 (decl_jump_unsafe): Move higher in file, with no other change.
12838 (bind): Set has_jump_unsafe_decl if appropriate.
12839 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12840 (check_earlier_gotos): Likewise.
12841 (c_check_switch_jump_warnings): Likewise.
12843 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12845 * doc/invoke.texi (Warning Options): Add missing hyphen.
12846 (-fprofile-dir): Minor grammatical fixes.
12847 (-fbranch-probabilities): Likewise.
12849 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12853 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12855 (no_real_insns_p, schedule_block, set_priorities): Drop special
12856 treatment of boundary debug insns.
12857 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12858 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12859 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12860 (BOUNDARY_DEBUG_INSN_P): Likewise.
12861 (SCHEDULE_DEBUG_INSN_P): Likewise.
12862 * sched-rgn.c (init_ready_list): Drop special treatment of
12863 boundary debug insns.
12864 * final.c (rest_of_clean-state): Clear notes' BB.
12866 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12868 * Makefile.in (LAMBDA_H): Removed.
12869 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12870 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12871 lambda-trans.o, and tree-loop-linear.o.
12872 (lto-symtab.o): Remove dependence on LAMBDA_H.
12873 (tree-loop-linear.o): Remove rule.
12874 (lambda-mat.o): Same.
12875 (lambda-trans.o): Same.
12876 (lambda-code.o): Same.
12877 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12878 (tree-vect-slp.o): Same.
12879 * hwint.h (gcd): Moved here.
12880 (least_common_multiple): Same.
12881 * lambda-code.c: Removed.
12882 * lambda-mat.c: Removed.
12883 * lambda-trans.c: Removed.
12884 * lambda.h: Removed.
12885 * tree-loop-linear.c: Removed.
12886 * lto-symtab.c: Do not include lambda.h.
12887 * omega.c (gcd): Removed.
12888 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12889 * tree-data-ref.c (print_lambda_vector): Moved here.
12890 (lambda_vector_copy): Same.
12891 (lambda_matrix_copy): Same.
12892 (lambda_matrix_id): Same.
12893 (lambda_vector_first_nz): Same.
12894 (lambda_matrix_row_add): Same.
12895 (lambda_matrix_row_exchange): Same.
12896 (lambda_vector_mult_const): Same.
12897 (lambda_vector_negate): Same.
12898 (lambda_matrix_row_negate): Same.
12899 (lambda_vector_equal): Same.
12900 (lambda_matrix_right_hermite): Same.
12901 * tree-data-ref.h: Do not include lambda.h.
12902 (lambda_vector): Moved here.
12903 (lambda_matrix): Same.
12904 (dependence_level): Same.
12905 (lambda_transform_legal_p): Removed declaration.
12906 (lambda_collect_parameters): Same.
12907 (lambda_compute_access_matrices): Same.
12908 (lambda_vector_gcd): Same.
12909 (lambda_vector_new): Same.
12910 (lambda_vector_clear): Same.
12911 (lambda_vector_lexico_pos): Same.
12912 (lambda_vector_zerop): Same.
12913 (lambda_matrix_new): Same.
12914 * tree-flow.h (least_common_multiple): Removed declaration.
12915 * tree-parloops.c (lambda_trans_matrix): Moved here.
12916 (LTM_MATRIX): Same.
12917 (LTM_ROWSIZE): Same.
12918 (LTM_COLSIZE): Same.
12919 (LTM_DENOMINATOR): Same.
12920 (lambda_trans_matrix_new): Same.
12921 (lambda_matrix_vector_mult): Same.
12922 (lambda_transform_legal_p): Same.
12923 * tree-pass.h (pass_linear_transform): Removed declaration.
12924 * tree-ssa-loop.c (tree_linear_transform): Removed.
12925 (gate_tree_linear_transform): Removed.
12926 (pass_linear_transform): Removed.
12927 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12928 flag_loop_interchange.
12930 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12932 PR tree-optimization/47265
12933 PR tree-optimization/47443
12934 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12935 if name still has some uses.
12937 2011-01-25 Martin Jambor <mjambor@suse.cz>
12939 PR tree-optimization/47382
12940 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12941 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12943 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12945 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12946 sjlj_except_unwind_info.
12948 2011-01-25 Richard Guenther <rguenther@suse.de>
12950 PR tree-optimization/47426
12951 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12952 visible functions results escape.
12954 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12957 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12958 (arm_get_frame_offsets): Use it.
12960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12961 Jakub Jelinek <jakub@redhat.com>
12963 PR tree-optimization/47271
12964 * tree-if-conv.c (bb_postdominates_preds): New.
12965 (if_convertible_bb_p): Call bb_postdominates_preds.
12966 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12967 (predicate_scalar_phi): Call bb_postdominates_preds.
12969 2011-01-25 Nick Clifton <nickc@redhat.com>
12971 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12972 * config/rx/rx.c (rx_function_value): Likewise.
12973 (rx_promote_function_mode): Likewise.
12974 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12975 in order to make it legitimate.
12976 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12977 make sure that the first operand is the same as the result register.
12978 (addsi3_unspec): Delete.
12979 (subdi3): Do not accept immediate operands.
12980 (subdi3_internal): Likewise.
12982 2011-01-25 Jeff Law <law@redhat.com>
12984 PR rtl-optimization/37273
12985 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12986 handle them like argument loads from stack slots. Do not double
12987 count memory for memory constants and argument loads from stack slots.
12989 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12991 PR tree-optimization/47427
12992 PR tree-optimization/47428
12993 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12994 coalesce if the new root var would be TREE_READONLY.
12996 2011-01-25 Richard Guenther <rguenther@suse.de>
12998 PR middle-end/47414
12999 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13000 correct type for TBAA.
13002 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13004 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13005 (close_phi_written_to_memory): Call for_each_index with
13006 dr_indices_valid_in_loop.
13008 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13010 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13011 when it is initialized.
13013 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13015 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13016 call to graphite_find_data_references_in_stmt.
13017 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13018 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13019 call to graphite_find_data_references_in_stmt.
13020 (analyze_drs_in_stmts): Same.
13021 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13022 in which the scalar analysis of indices is performed.
13023 (create_data_ref): Same. Update call to dr_analyze_indices.
13024 (find_data_references_in_stmt): Update call to create_data_ref.
13025 (graphite_find_data_references_in_stmt): Same.
13026 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13028 (create_data_ref): Same.
13029 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13030 call to create_data_ref.
13032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13034 * graphite-sese-to-poly.c (build_poly_scop): Move
13035 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13039 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13040 VAR_DECL, PARM_DECL, and RESULT_DECL.
13042 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13044 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13045 in a reduction PBB.
13046 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13047 that have already been marked as PBB_IS_REDUCTION.
13049 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13051 * graphite-scop-detection.c (same_close_phi_node): New.
13052 (remove_duplicate_close_phi): New.
13053 (make_close_phi_nodes_unique): New.
13054 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13056 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13058 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13059 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13060 of both data references to be the same.
13062 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13064 * graphite-dependences.c (build_lexicographical_constraint): Remove
13065 the gdim parameter.
13066 (build_lexicographical_constraint): Adjust call to
13067 ppl_powerset_is_empty.
13068 (dependence_polyhedron): Same.
13069 (graphite_legal_transform_dr): Same.
13070 (graphite_carried_dependence_level_k): Same.
13071 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13073 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13075 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13077 * graphite-sese-to-poly.c
13078 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13079 (close_phi_written_to_memory): New.
13080 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13085 * doc/install.texi: Update the expected version number of PPL to 0.11.
13086 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13087 #if PPL_VERSION_MINOR < 11.
13089 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13091 * graphite-dependences.c: Include graphite-cloog-util.h.
13092 (new_poly_ddr): Inlined into dependence_polyhedron.
13093 (free_poly_ddr): Moved close by new_poly_ddr.
13094 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13095 Early return NULL when ppl_powerset_is_empty returns true.
13096 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13097 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13098 (graphite_legal_transform_dr): Call new_poly_ddr.
13099 (graphite_carried_dependence_level_k): Same.
13100 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13101 (dot_transformed_deps_stmt_1): Removed.
13102 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13103 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13104 (dot_deps_1): Call dot_deps_2.
13105 * Makefile.in (graphite-dependences.o): Add missing dependence on
13106 graphite-cloog-util.h.
13108 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13110 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13111 (build_lexicographical_constraint): Same.
13112 (dependence_polyhedron_1): Same.
13113 (graphite_legal_transform_dr): Same.
13114 (graphite_carried_dependence_level_k): Same.
13115 * graphite-ppl.c (ppl_powerset_is_empty): New.
13116 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13117 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13119 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13121 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13122 the "a followed by b" relation and document it.
13124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13126 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13127 iteration when the bag of constraints is empty.
13129 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13131 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13133 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13135 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13136 nest and two loop depths as parameters.
13137 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13138 lst_perfect_nestify.
13140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13142 * graphite-dependences.c (print_pddr): Call
13143 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13145 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13147 * graphite-ppl.c (debug_gmp_value): New.
13148 * graphite-ppl.h (debug_gmp_value): Declared.
13150 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13152 * doc/install.texi: Document availability of cloog-0.16.
13154 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13156 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13157 invalid postdominance info.
13159 2011-01-24 Jan Hubicka <jh@suse.cz>
13162 * doc/extend.texi (weak pragma): Drop claim that it must
13163 appear before definition.
13164 * varasm.c (merge_weak, declare_weak): Only sanity check
13165 that DECL is not output at a time it is declared weak.
13167 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13169 * machmode.def: Fixed comments.
13171 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13173 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13175 2011-01-24 Paul Koning <ni1d@arrl.net>
13177 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13180 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13183 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13184 (block_info): Add scanned and prev.
13185 (move_or_delete_vzeroupper_2): Return if the basic block
13186 has been scanned and the upper 128bit state is unchanged
13187 from the last scan.
13188 (move_or_delete_vzeroupper_1): Return true if the exit
13190 (move_or_delete_vzeroupper): Visit basic blocks using the
13191 work-list based algorithm based on vt_find_locations in
13194 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13196 2011-01-24 Nick Clifton <nickc@redhat.com>
13198 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13199 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13200 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13201 then define __v850e1__.
13202 * doc/invoke.texi: Document -mv850es.
13204 2011-01-24 Richard Henderson <rth@redhat.com>
13206 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13207 compound unordered comparisons.
13208 * config/rx/rx.c (rx_split_fp_compare): Remove.
13209 * config/rx/rx-protos.h: Update.
13210 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13211 (cbranchsf4): Don't call rx_split_fp_compare.
13212 (*cbranchsf4): Use rx_split_cbranch.
13213 (*cmpsf): Don't accept "i" constraint.
13214 (*conditional_branch): Only valid after reload.
13215 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13217 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13220 * config/rs6000/altivec.md (vector constant splitters): Add
13221 support for creating vector single precision constants if -mvsx is
13222 used and we would create the constant using Altivec primitives.
13224 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13225 Richard Sandiford <rdsandiford@googlemail.com>
13227 PR rtl-optimization/47166
13228 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13229 mechanism for PRE_MODIFY and POST_MODIFY.
13230 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13233 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13235 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13237 2011-01-22 Jan Hubicka <jh@suse.cz>
13240 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13242 2011-01-22 Jan Hubicka <jh@suse.cz>
13244 PR tree-optimization/43884
13246 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13247 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13249 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13251 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13252 * config/s390/s390.c (s390_register_move_cost,
13253 s390_memory_move_cost): New.
13254 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13256 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13258 PR middle-end/47401
13259 * except.c (sjlj_assign_call_site_values): Move setting the
13260 crtl->uses_eh_lsda flag to ...
13261 (sjlj_mark_call_sites): ... here.
13262 (sjlj_emit_function_enter): Support NULL dispatch label.
13263 (sjlj_build_landing_pads): In a function with no landing pads
13264 that still has must-not-throw regions, generate code to register
13265 a personality function with empty LSDA.
13267 2011-01-21 Richard Henderson <rth@redhat.com>
13269 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13271 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13273 * compare-elim.c: New file.
13274 * Makefile.in (OBJS-common): Add it.
13275 (compare-elim.o): New.
13276 * common.opt (fcompare-elim): New.
13277 * opts.c (default_options_table): Add OPT_fcompare_elim.
13278 * tree-pass.h (pass_compare_elim_after_reload): New.
13279 * passes.c (init_optimization_passes): Add it.
13280 * recog.h: Protect against re-inclusion.
13281 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13282 * doc/invoke.texi (-fcompare-elim): Document it.
13283 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13284 * doc/tm.texi: Rebuild.
13286 2011-01-22 Nick Clifton <nickc@redhat.com>
13288 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13289 rx_split_fp_compare.
13291 2011-01-22 Nick Clifton <nickc@redhat.com>
13293 * config/rx/rx.md (UNSPEC_CONST): New.
13294 (deallocate_and_return): Wrap the amount popped off the stack in
13295 an UNSPEC_CONST in order to stop it being rejected by
13296 -mmax-constant-size.
13297 (pop_and_return): Add a "(return)" rtx.
13298 (call): Drop the immediate operand.
13299 (call_internal): Likewise.
13300 (call_value): Likewise.
13301 (call_value_internal): Likewise.
13302 (sibcall_internal): Likewise.
13303 (sibcall_value_internal): Likewise.
13304 (sibcall): Likewise. Generate an explicit call using
13306 (sibcall_value): Likewise.
13307 (mov<>): FAIL if a constant operand is not legitimate.
13308 (addsi3_unpsec): New pattern.
13310 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13311 (ok_for_max_constant): New function.
13312 (gen_safe_add): New function.
13313 (rx_expand_prologue): Use gen_safe_add.
13314 (rx_expand_epilogue): Likewise.
13315 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13318 2011-01-21 Jeff Law <law@redhat.com>
13320 PR tree-optimization/47053
13321 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13322 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13323 statements are deleted.
13324 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13325 is nonempty, then purge dead edges and cleanup the CFG.
13327 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13330 Temporarily revert:
13331 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13333 * tree-dfa.c (create_var_ann): Mark variable as used.
13335 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13337 PR middle-end/45566
13338 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13339 notes from other section in hot/cold partitioning even if
13340 last_action is -3. Increment call_site_base.
13342 PR rtl-optimization/47366
13343 * fwprop.c (forward_propagate_into): Return bool. If
13344 any changes are made, -fnon-call-exceptions is used and
13345 REG_EH_REGION note is present, call purge_dead_edges
13346 and return true if it purged anything.
13347 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13348 any EH edges were purged.
13350 2011-01-21 Jeff Law <law@redhat.com>
13352 PR rtl-optimization/41619
13353 * caller-save.c (setup_save_areas): Break out code to determine
13354 which hard regs are live across calls by examining the reload chains
13355 so that it is always used.
13356 Eliminate code which checked REG_N_CALLS_CROSSED.
13358 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13360 PR tree-optimization/47355
13361 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13362 NOP has non-debug uses beyond PHIs in new_bb.
13364 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13367 * cfgexpand.c (account_used_vars_for_block): Only account vars
13368 that are annotated as used.
13369 (estimated_stack_frame_size): Don't set TREE_USED.
13370 * tree-dfa.c (create_var_ann): Mark variable as used.
13372 2011-01-21 Richard Guenther <rguenther@suse.de>
13374 PR middle-end/47395
13375 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13377 2011-01-21 Richard Guenther <rguenther@suse.de>
13379 PR tree-optimization/47365
13380 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13381 (vn_reference_lookup_pieces): Adjust.
13382 (vn_reference_lookup): Likewise.
13383 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13384 (vn_reference_lookup_3): Only look through kills if in
13385 VN_WALKREWRITE mode.
13386 (vn_reference_lookup_pieces): Adjust.
13387 (vn_reference_lookup): Likewise.
13388 (visit_reference_op_load): Likewise.
13389 (visit_reference_op_store): Likewise.
13390 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13391 (compute_avail): Likewise.
13392 (eliminate): Likewise.
13394 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13396 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13397 DECL_IGNORED_P non-reg vars if they are used.
13399 PR tree-optimization/47391
13400 * varpool.c (const_value_known_p): Return false if
13403 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13406 * config/i386/i386.c (ix86_local_alignment): Handle
13407 case for va_list_type_node is nil.
13408 (ix86_canonical_va_list_type): Likewise.
13410 2011-01-21 Alan Modra <amodra@gmail.com>
13412 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13413 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13415 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13417 * config/arm/arm.md (define_attr type): Rename f_load
13418 and f_store to f_fpa_load and f_fpa_store. Update.
13419 (write_conflict): Deal with rename fallout.
13420 (*push_fp_multi): Likewise.
13421 * config/arm/fpa.md (f_load): Use f_fpa_load.
13422 (f_store): Use f_fpa_store.
13423 (*movsf_fpa): Likewise.
13424 (*movdf_fpa): Likewise.
13425 (*movxf_fpa): Likewise.
13426 (*thumb2_movsf_fpa): Likewise.
13427 (*thumb2_movdf_fpa): Likewise.
13428 (*thumb2_movxf_fpa): Likewise.
13429 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13430 f_loadd and f_stored.
13431 (*thumb2_movdi_vfp): Likewise.
13432 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13433 (*thumb2_movsi_vfp): Likewise.
13434 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13435 Use f_loads instead of f_load.
13436 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13438 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13440 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13441 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13442 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13443 (xtensa_mode_dependent_address_p): New function.
13444 (constantpool_address_p): Make static. Change return type to bool.
13445 Change argument type to const_rtx. Use CONST_INT_P predicate.
13447 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13450 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13452 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13455 * cfgexpand.c (expand_debug_expr): Instead of generating
13456 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13459 2011-01-20 Richard Guenther <rguenther@suse.de>
13461 PR middle-end/47370
13462 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13463 the pointer operand of MEM_REFs.
13465 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13467 PR tree-optimization/46130
13468 * ipa-split.c (consider_split): If return_bb contains non-virtual
13469 PHIs other than for retval or if split_function would not adjust it,
13472 2011-01-20 Richard Guenther <rguenther@suse.de>
13474 PR tree-optimization/47167
13475 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13476 Revert previous change, only avoid enumeral type changes.
13478 2011-01-19 Mike Stump <mikestump@comcast.net>
13480 * doc/tm.texi.in (BRANCH_COST): Englishify.
13481 * doc/tm.texi (BRANCH_COST): Likewise.
13483 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13486 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13487 (gen_scheduled_generic_parms_dies): New functions.
13488 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13489 generation for the end of CU compilation.
13490 (dwarf2out_finish): Generate template parameters DIEs here.
13492 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13495 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13496 debug bind stmt on merge edges.
13498 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13502 * function.c (instantiate_expr): Instantiate incoming rtl of
13503 implicit arguments, and recurse on VALUE_EXPRs.
13504 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13505 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13507 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13509 * c-parser.c (c_parser_for_statement): Initialize
13510 collection_expression.
13512 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13514 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13516 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13518 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13519 (LINK_SHLIB_SPEC): Don't use %(link_path).
13520 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13522 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13524 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13525 (NO_SHARED_LIB_SUPPORT): Remove.
13526 (LINK_SHLIB_SPEC): Remove one conditional definition.
13528 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13530 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13532 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13533 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13534 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13535 %{call_shared} and conditionals on these options not being passed.
13536 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13539 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13541 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13544 * ipa-split.c: Spelling fixes.
13546 2011-01-19 Richard Henderson <rth@redhat.com>
13548 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13549 (*mulsi3): Likewise.
13551 * longlong.h [__mn10300__] (count_leading_zeros): New.
13552 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13553 [__mn10300__] (add_ssaaaa, subddmmss): New.
13554 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13555 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13557 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13559 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13561 2011-01-19 Richard Henderson <rth@redhat.com>
13563 * config/mn10300/mn10300.md (addsi3_flags): New.
13564 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13565 (subsi3_flags, subc_internal, subdi3): New.
13566 (subdi3_internal, *subdi3_degenerate): New.
13567 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13569 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13570 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13571 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13572 * config/mn10300/mn10300-protos.h: Update.
13573 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13574 (return_ret): Likewise. Rename from return_internal_regs.
13575 (return_internal): Remove.
13577 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13578 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13579 (mn10300_legitimate_constant_p): Likewise.
13580 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13581 (mn10300_frame_size): New.
13582 (mn10300_expand_prologue): Use it.
13583 (mn10300_expand_epilogue): Likewise.
13584 (mn10300_initial_offset): Likewise.
13585 * config/mn10300/mn10300-protos.h: Update.
13586 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13587 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13588 (prologue, epilogue, return_internal): Tidy output code.
13589 (mn10300_store_multiple_operation, return): Likewise.
13590 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13591 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13592 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13593 (load_pic, am33_load_pic): New.
13594 (mn10300_load_pic0, mn10300_load_pic1): New.
13596 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13597 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13598 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13599 (cc_flags_for_mode, cc_flags_for_code): New.
13600 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13601 overflow flag is not valid. Validate that the flags we need
13602 for the comparison are valid.
13603 (mn10300_output_cmp): Remove.
13604 (mn10300_output_add): New.
13605 (mn10300_select_cc_mode): Use cc_flags_for_code.
13606 (mn10300_split_cbranch): New.
13607 (mn10300_match_ccmode): New.
13608 (mn10300_split_and_operand_count): New.
13609 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13611 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13612 (addsi3): ... here. Use mn10300_output_add.
13613 (*addsi3_flags): New.
13614 (*am33_subsi3, *mn10300_subsi3): Merge...
13615 (subsi3): ... here. Use attribute isa.
13616 (*subsi3_flags): New.
13617 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13619 (*am33_andsi3, *mn10300_andsi3): Merge...
13620 (andsi3): ... here.
13621 (*andsi3_flags): New.
13622 (andsi3 splitters): New.
13623 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13624 (iorsi3): ... here.
13625 (*iorsi3_flags): New.
13626 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13627 (xorsi3): ... here.
13628 (*xorsi3_flags): New.
13629 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13630 (one_cmplsi2): ... here.
13631 (*one_cmplsi2_flags): New.
13632 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13633 instead of "dax" in constraints. Use mn10300_split_cbranch.
13634 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13635 use matching constraints to eliminate a self-comparison.
13636 (*integer_conditional_branch): Rename from integer_conditional_branch.
13637 Use int_mode_flags to match CC_REG.
13638 (*cbranchsi4_btst, *btstsi): New.
13639 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13640 mn10300_split_cbranch.
13641 (*am33_cmpsf): Rename from am33_cmpsf.
13642 (*float_conditional_branch): Rename from float_conditional_branch.
13643 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13644 (zero_extendqisi2): ... here.
13645 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13646 (zero_extendhisi2): ... here.
13647 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13648 (extendqisi2): ... here.
13649 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13650 (extendhisi2): ... here.
13651 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13652 (ashlsi3): ... here.
13653 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13654 (lshrsi3): ... here.
13655 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13656 (ashrsi3): ... here.
13657 (consecutive add peephole): Remove.
13658 * config/mn10300/predicates.md (label_ref_operand): New.
13659 (int_mode_flags): New.
13660 (CCZN_comparison_operator): New.
13662 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13663 (throughput_42_latency_43): New reservation.
13664 (mulsidi3, umulsidi3): New expanders.
13665 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13666 the MDR register to allocation; separately allocate the low and
13667 high parts of the DImode result.
13668 (umulsidi3_internal): Similarly.
13669 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13670 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13671 (udivsi3, umodsi3): Remove.
13672 (udivmodsi4, divmodsi4): New expanders.
13673 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13674 (*divmodsi4): Simiarly.
13675 (ext_internal): New.
13677 * config/mn10300/constraints.md ("z"): New constraint.
13678 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13679 (FIXED_REGISTERS): Don't fix MDR.
13680 (CALL_USED_REGSITERS): Reformat nicely.
13681 (REG_ALLOC_ORDER): Add MDR.
13682 (enum regclass): Add MDR_REGS.
13683 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13684 (IRA_COVER_CLASSES): Add MDR_REGS.
13685 (REGNO_REG_CLASS): Handle MDR_REG.
13686 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13687 (mn10300_register_move_cost): Likewise.
13688 * config/mn10300/mn10300.md (MDR_REG): New.
13689 (*movsi_internal): Handle moves to/from MDR_REGS.
13691 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13693 (mn10300_secondary_reload): Tidy combination reload classes.
13694 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13695 addresses for AM33. Allow symbolic offsets for reg+imm.
13696 (mn10300_regno_in_class_p): New.
13697 (mn10300_legitimize_reload_address): New.
13698 * config/mn10300/mn10300.h (enum reg_class): Remove
13699 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13700 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13701 SP_OR_GENERAL_REGS.
13702 (REG_CLASS_NAMES): Update to match.
13703 (REG_CLASS_CONTENTS): Likewise.
13704 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13705 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13706 (REGNO_IN_RANGE_P): Remove.
13707 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13708 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13709 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13710 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13711 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13712 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13713 (REGNO_GENERAL_P): New.
13714 (HAVE_POST_MODIFY_DISP): New.
13715 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13716 (LEGITIMIZE_RELOAD_ADDRESS): New.
13717 * config/mn10300/mn10300-protos.h: Update.
13719 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13720 DATA_REGS for AM33 stack-pointer destination.
13721 (mn10300_preferred_output_reload_class): Likewise.
13722 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13723 into a form appropriate for ...
13724 (TARGET_SECONDARY_RELOAD): New.
13725 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13726 * config/mn10300/mn10300-protos.h: Update.
13727 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13728 reload_insi; use the "A" constraint for the scratch; handle AM33
13729 moves of sp to non-address registers.
13731 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13732 (*movqi_internal): ... here.
13733 (*am33_movhi, *mn10300_movhi): Merge into...
13734 (*movhi_internal): ... here.
13735 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13736 as the source/destination of moves from/to SP.
13737 (movsf): Only allow for AM33-2.
13738 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13739 any integer constant constraint. Only allow for AM33-2. Tidy
13740 all of the alternative outputs.
13741 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13742 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13744 (udivsi3, umodsi3): New patterns for MN103 only.
13746 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13748 * doc/tm.texi.in: Spell out that a lack of register class unions
13750 * doc/tm.texi: Regenerate.
13752 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13754 PR rtl-optimization/47337
13755 * dce.c (check_argument_store): New function.
13756 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13758 PR tree-optimization/47290
13759 * tree-eh.c (infinite_empty_loop_p): New function.
13760 (cleanup_empty_eh): Use it.
13762 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13765 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13766 (a64_expand_widen_sum): Ditto.
13767 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13768 (vec_extract_evenodd_help): Ditto.
13769 (vec_extract_evenv4hi): Ditto.
13770 (vec_extract_oddv4hi): Ditto.
13771 (vec_extract_evenv2si): Ditto.
13772 (vec_extract_oddv2si): Ditto.
13773 (vec_extract_evenv2sf): Ditto.
13774 (vec_extract_oddv2sf): Ditto.
13775 (vec_pack_trunc_v4hi: Ditto.
13776 (vec_pack_trunc_v2si): Ditto.
13777 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13778 (vec_interleave_highv8qi): Ditto.
13780 (vec_extract_oddv8qi): Ditto.
13781 (vec_interleave_lowv4hi): Ditto.
13782 (vec_interleave_highv4hi): Ditto.
13783 (vec_interleave_lowv2si): Ditto.
13784 (vec_interleave_highv2si): Ditto.
13786 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13788 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13789 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13790 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13791 (pa_c_mode_for_suffix): New.
13792 (TARGET_EXPAND_BUILTIN): Define.
13793 (TARGET_C_MODE_FOR_SUFFIX): Define.
13794 (pa_builtins): Define.
13795 (pa_init_builtins): Register __float128 type and init new support
13797 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13798 * config/pa/quadlib.c (_U_Qfcopysign): New.
13800 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13802 PR middle-end/46894
13803 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13804 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13807 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13809 PR tree-optimization/47179
13810 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13811 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13813 2011-01-18 Richard Guenther <rguenther@suse.de>
13815 PR rtl-optimization/47216
13816 * emit-rtl.c: Include tree-flow.h.
13817 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13818 of replicating it with different semantics.
13819 * Makefile.in (emit-rtl.o): Adjust.
13821 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13823 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13824 (cortex_a9_dp): Handle neon types correctly.
13826 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13828 PR rtl-optimization/47299
13829 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13830 subtarget. Use normal multiplication if both operands are constants.
13831 * expmed.c (expand_widening_mult): Don't try to optimize constant
13832 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13835 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13837 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13838 spacing after 'e.g.', typos, comma, hyphenation.
13840 2011-01-17 Richard Henderson <rth@redhat.com>
13842 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13843 (rx_restricted_mem_operand): New.
13844 (rx_shift_operand): Use register_operand.
13845 (rx_source_operand, rx_compare_operand): Likewise.
13846 * config/rx/rx.md (addsi3_flags): New expander.
13847 (adddi3): Rewrite as expander.
13848 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13849 (subsi3_flags): New expander.
13850 (subdi3): Rewrite as expander.
13851 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13853 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13854 (rx_init_builtins): Remove sat builtin.
13855 (rx_expand_builtin): Likewise.
13856 * config/rx/rx.md (ssaddsi3): New.
13857 (*sat): Rename from sat. Represent the CC_REG input.
13859 * config/rx/predicates.md (rshift_operator): New.
13860 * config/rx/rx.c (rx_expand_insv): Remove.
13861 * config/rx/rx-protos.h: Update.
13862 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13863 operand to the canonical position.
13864 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13865 (*bitclr, *bitclr_in_memory): Similarly.
13866 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13867 (insv): Retain the zero_extract in the expansion.
13869 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13870 (bswaphi2, bitinvert, revw): Likewise.
13872 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13873 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13874 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13875 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13876 (bitset, bitset_in_memory): Likewise.
13877 (bitinvert, bitinvert_in_memory): Likewise.
13878 (bitclr, bitclr_in_memory): Likewise.
13879 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13880 (rx_strend, rx_cmpstrn): Likewise.
13881 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13882 (bitop peep2 patterns): Remove.
13884 * config/rx/rx.c (rx_match_ccmode): New.
13885 * config/rx/rx-protos.h: Update.
13886 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13887 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13888 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13889 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13890 (fix_truncsfsi2, floatsisf2): Likewise.
13891 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13892 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13893 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13894 (*subsi3_flags, *xorsi3_flags): New.
13896 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13898 * config/rx/rx.c (rx_print_operand): Remove workaround for
13899 unsplit comparison operations.
13901 * config/rx/rx.md (movsicc): Split after reload.
13902 (*movsicc): Merge *movsieq and *movsine via match_operator.
13903 (*stcc): New pattern.
13905 * config/rx/rx.c (rx_float_compare_mode): Remove.
13906 * config/rx/rx.h (rx_float_compare_mode): Remove.
13907 * config/rx/rx.md (cstoresi4): Split after reload.
13908 (*sccc): New pattern.
13910 * config/rx/predicates.md (label_ref_operand): New.
13911 (rx_z_comparison_operator): New.
13912 (rx_zs_comparison_operator): New.
13913 (rx_fp_comparison_operator): New.
13914 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13915 Validate that the flags are set properly for the comparison.
13916 (rx_gen_cond_branch_template): Remove.
13917 (rx_cc_modes_compatible): Remove.
13918 (mode_from_flags): New.
13919 (flags_from_code): Rename from flags_needed_for_conditional.
13920 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13921 (rx_select_cc_mode): Likewise.
13922 (rx_split_fp_compare): New.
13923 (rx_split_cbranch): New.
13924 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13925 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13926 (*cbranchsf4): Similarly.
13927 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13928 match_operator and rx_split_cbranch.
13929 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13930 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13931 (*cmpsi): Rename from cmpsi.
13932 (*tstsi): Rename from tstsi.
13933 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13934 (*conditional_branch): Rename from conditional_branch.
13935 (*reveresed_conditional_branch): Remove.
13936 (b<code>): Remove expander.
13937 * config/rx/rx-protos.h: Update.
13939 * config/rx/rx.c (rx_compare_redundant): Remove.
13940 * config/rx/rx.md (cmpsi): Don't use it.
13941 * config/rx/rx-protos.h: Update.
13943 * config/rx/rx-modes.def (CC_F): New mode.
13944 * config/rx/rx.c (rx_select_cc_mode): New.
13945 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13946 * config/rx/rx-protos.h: Update.
13948 2011-01-17 Richard Henderson <rth@redhat.com>
13950 * except.c (dump_eh_tree): Fix stray ; after for statement.
13952 2011-01-17 Richard Guenther <rguenther@suse.de>
13954 PR tree-optimization/47313
13955 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13956 handling before copying the body. Properly deal with
13957 by-reference result in SSA form.
13959 2011-01-17 Ian Lance Taylor <iant@google.com>
13962 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13963 (struct_value_alias_set): Don't define.
13964 (sparc_option_override): Don't set sparc_sr_alias_set and
13965 struct_value_alias_set.
13966 (save_or_restore_regs): Use gen_frame_mem rather than calling
13968 (sparc_struct_value_rtx): Likewise.
13970 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13973 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13974 (_mm_maskstore_pd): Likewise.
13975 (_mm_maskload_ps): Likewise.
13976 (_mm_maskstore_ps): Likewise.
13977 (_mm256_maskload_pd): Change mask to __m256i.
13978 (_mm256_maskstore_pd): Likewise.
13979 (_mm256_maskload_ps): Likewise.
13980 (_mm256_maskstore_ps): Likewise.
13982 * config/i386/i386-builtin-types.def: Updated.
13983 (ix86_expand_special_args_builtin): Likewise.
13985 * config/i386/i386.c (bdesc_special_args): Update
13986 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13987 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13988 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13989 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13991 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13992 Use <avxpermvecmode> on mask register.
13993 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13995 2011-01-17 Olivier Hainque <hainque@adacore.com>
13996 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13997 Eric Botcazou <ebotcazou@adacore.com>
14000 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14001 if <= USHRT_MAX in 32-bit mode.
14003 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14005 * doc/install.texi (Configuration, Specific): Wrap long
14006 lines in examples. Allow line wrapping in long options
14007 and URLs where beneficial for PDF output.
14009 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14011 * config/mips/mips.c (mips_classify_symbol): Don't return
14012 SYMBOL_PC_RELATIVE for nonlocal labels.
14014 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14016 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14018 2011-01-15 Jan Hubicka <jh@suse.cz>
14020 PR tree-optimization/47276
14021 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14022 declarations as needed.
14024 2011-01-15 Martin Jambor <mjambor@suse.cz>
14026 * common.opt (fdevirtualize): New flag.
14027 * doc/invoke.texi (Option Summary): Document it.
14028 * opts.c (default_options_table): Add devirtualize flag.
14029 * ipa-prop.c (detect_type_change): Return immediately if
14030 devirtualize flag is not set.
14031 (detect_type_change_ssa): Likewise.
14032 (compute_known_type_jump_func): Likewise.
14033 (ipa_analyze_virtual_call_uses): Likewise.
14035 2011-01-14 Martin Jambor <mjambor@suse.cz>
14037 PR tree-optimization/45934
14038 PR tree-optimization/46302
14039 * ipa-prop.c (type_change_info): New type.
14040 (stmt_may_be_vtbl_ptr_store): New function.
14041 (check_stmt_for_type_change): Likewise.
14042 (detect_type_change): Likewise.
14043 (detect_type_change_ssa): Likewise.
14044 (compute_complex_assign_jump_func): Check for dynamic type change.
14045 (compute_complex_ancestor_jump_func): Likewise.
14046 (compute_known_type_jump_func): Likewise.
14047 (compute_scalar_jump_functions): Likewise.
14048 (ipa_analyze_virtual_call_uses): Likewise.
14049 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14053 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14054 * config/i386/i386.opt (msse5): New Alias.
14056 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14058 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14059 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14060 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14061 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14063 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14065 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14067 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14068 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14069 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14070 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14072 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14074 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14076 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14078 2011-01-14 Mike Stump <mikestump@comcast.net>
14080 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14081 * config/fr30/fr30.md: Likweise
14082 (movsi_push): Likewise.
14083 (movsi_pop): Likewise.
14084 (enter_func): Likewise.
14085 * config/moxie/moxie.md (movsi_push): Likewise.
14086 (movsi_pop): Likewise.
14088 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14090 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14091 %{no_archive} %{exact_version}.
14092 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14093 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14094 %{no_archive} %{exact_version}.
14095 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14096 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14097 * config/mips/vxworks.h: Likewise.
14099 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14101 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14103 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14105 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14106 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14108 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14110 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14113 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14115 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14117 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14118 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14120 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14121 Don't handle -shlib.
14123 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14125 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14126 (CC1_SPEC): Don't handle -profile.
14128 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14130 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14131 * config/mips/mips.h (CC1_SPEC): Likewise.
14133 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14135 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14136 * config/mips/mips.h (CC1_SPEC): Likewise.
14138 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14140 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14141 * config/m32r/linux.h (LINK_SPEC): Likewise.
14142 * config/mips/linux.h (LINK_SPEC): Likewise.
14143 * config/mips/linux64.h (LINK_SPEC): Likewise.
14144 * config/sparc/linux.h (LINK_SPEC): Likewise.
14145 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14146 LINK_SPEC): Likewise.
14147 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14149 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14151 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14153 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14155 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14157 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14158 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14160 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14162 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14164 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14166 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14167 supports -Bstatic/-Bdynamic.
14168 * configure: Regenerate.
14170 2011-01-14 Jan Hubicka <jh@suse.cz>
14171 Jack Howarth <howarth@bromo.med.uc.edu>
14174 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14175 when checking debug_info_level. Test write_symbols instead of
14176 debug_hooks->var_location when setting flag_var_tracking_uninit.
14178 2011-01-14 Richard Guenther <rguenther@suse.de>
14180 PR tree-optimization/47179
14181 * target.def (ref_may_alias_errno): New target hook.
14182 * targhooks.h (default_ref_may_alias_errno): Declare.
14183 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14184 (default_ref_may_alias_errno): New function.
14185 * target.h (struct ao_ref_s): Declare.
14186 * tree-ssa-alias.c: Include target.h.
14187 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14188 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14189 (targhooks.o): Likewise.
14190 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14191 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14193 2011-01-14 Richard Guenther <rguenther@suse.de>
14195 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14197 2011-01-14 Richard Guenther <rguenther@suse.de>
14199 PR tree-optimization/47280
14200 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14201 return CFG changes.
14202 (tree_ssa_forward_propagate_single_use_vars): Deal with
14203 CFG changes from associate_plusminus.
14205 2011-01-14 Richard Guenther <rguenther@suse.de>
14207 PR middle-end/47281
14209 2011-01-11 Richard Guenther <rguenther@suse.de>
14211 PR tree-optimization/46076
14212 * tree-ssa.c (useless_type_conversion_p): Conversions from
14213 unprototyped to empty argument list function types are useless.
14215 2011-01-14 Richard Guenther <rguenther@suse.de>
14217 PR tree-optimization/47286
14218 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14220 2011-01-14 Martin Jambor <mjambor@suse.cz>
14222 PR middle-end/46823
14223 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14225 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14227 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14228 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14229 * config/xtensa/xtensa.c (xtensa_libcall_value,
14230 xtensa_function_value_regno_p): New functions.
14231 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14233 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14236 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14238 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14239 New function prototype.
14240 * config/i386/winnt.c (i386_pe_assemble_visibility):
14241 Warn only if attribute was specified by user.
14243 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14246 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14248 (floatunsdidf2_fcfidu): Ditto.
14250 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14252 * config/s390/s390.c (print_operand_address): Replace 'error' with
14253 'output_operand_lossage'.
14254 (print_operand): Likewise.
14256 2011-01-13 Jeff Law <law@redhat.com>
14258 PR rtl-optimization/39077
14259 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14260 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14261 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14262 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14263 * gcse.c (prune_insertions_deletions): New function.
14264 (compute_pre_data): Use it.
14266 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14269 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14271 (prune_unused_types_mark): Use it.
14273 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14275 PR rtl-optimization/45352
14276 * sel-sched.c: Update copyright years.
14277 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14278 in the advancing loop when we have issued issue_rate insns.
14280 2011-01-12 Richard Henderson <rth@redhat.com>
14282 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14283 (TARGET_MD_ASM_CLOBBERS): New.
14285 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14286 (TARGET_DELEGITIMIZE_ADDRESS): New.
14288 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14289 (clzsi2, *bsch): New patterns.
14291 * config/mn10300/mn10300.md (INT): New mode iterator.
14292 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14294 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14295 flag_split_wide_types.
14297 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14298 (mn10300_trampoline_init): Rewrite without a template, an immediate
14299 load and a direct branch.
14300 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14302 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14304 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14305 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14306 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14307 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14309 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14312 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14315 2011-01-12 Jan Hubicka <jh@suse.cz>
14318 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14319 (PLUGIN_COND_CLOSE): New macro.
14320 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14322 2011-01-12 Richard Guenther <rguenther@suse.de>
14325 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14326 register variables in a MEM_REF.
14328 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14330 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14331 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14332 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14333 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14334 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14335 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14336 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14337 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14338 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14339 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14340 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14341 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14342 * config/gnu-user.h: New. Copied from linux.h.
14343 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14344 GNU_USER_TARGET_STARTFILE_SPEC.
14345 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14346 GNU_USER_TARGET_ENDFILE_SPEC.
14347 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14348 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14349 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14350 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14351 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14352 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14353 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14354 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14355 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14356 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14357 * config/arm/linux-eabi.h (CC1_SPEC): Use
14358 GNU_USER_TARGET_CC1_SPEC.
14359 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14360 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14361 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14362 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14363 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14364 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14365 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14366 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14368 2011-01-12 Richard Guenther <rguenther@suse.de>
14371 * doc/invoke.texi (ffast-math): Document it is turned on
14374 2011-01-12 Jan Hubicka <jh@suse.cz>
14376 PR tree-optimization/47233
14377 * opts.c (common_handle_option): Disable ipa-reference with profile
14380 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14382 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14385 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14387 * c-parser.c (c_lex_one_token): Updated and reindented some
14388 comments. No changes in code.
14390 2011-01-11 Ian Lance Taylor <iant@google.com>
14392 * godump.c (go_output_var): Don't output the variable if there is
14393 already a type with the same name.
14395 2011-01-11 Ian Lance Taylor <iant@google.com>
14397 * godump.c (go_format_type): Don't generate float80.
14399 2011-01-11 Richard Henderson <rth@redhat.com>
14401 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14402 declaration. Rewrite for both speed and size.
14403 (mn10300_address_cost_1): Remove.
14404 (mn10300_register_move_cost): New.
14405 (mn10300_memory_move_cost): New.
14406 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14407 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14408 extensions, shifts, BSWAP, CLZ.
14409 (mn10300_wide_const_load_uses_clr): Remove.
14410 (TARGET_REGISTER_MOVE_COST): New.
14411 (TARGET_MEMORY_MOVE_COST): New.
14412 * config/mn10300/mn10300-protos.h: Update.
14413 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14415 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14416 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14417 * config/mn10300/mn10300-protos.h: Update.
14418 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14419 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14420 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14421 (*test_int_bitfield, *test_byte_bitfield): Remove.
14422 (*bit_test, *subreg_bit_test): Remove.
14423 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14425 * config/mn10300/constraints.md ("c"): Rename from "A".
14426 ("A", "D"): New constraint letters.
14427 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14428 (fmssf4, fnmasf4, fnmssf4): Likewise.
14430 * config/mn10300/mn10300.md (isa): New attribute.
14431 (enabled): New attribute.
14433 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14434 (abssf2, negsf2): Define only for hardware fp.
14435 (sqrtsf2): Reformat.
14436 (addsf3, subsf3, mulsf3): Merge expander and insn.
14438 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14439 (DEBUGGER_AUTO_OFFSET): Remove.
14440 (DEBUGGER_ARG_OFFSET): Remove.
14442 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14443 Emit register stores with the same offsets as the hardware.
14444 (mn10300_store_multiple_operation): Don't check that the register
14445 save offsets are monotonic.
14446 * config/mn10300/mn10300-protos.h: Update.
14448 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14450 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14451 in terms of the value on the stack, not the MDR register.
14453 2011-01-11 Jan Hubicka <jh@suse.cz>
14457 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14458 (symbol_alias_set_destroy, symbol_alias_set_contains,
14459 propagate_aliases_backward): Declare.
14460 * lto-streamer-out.c (struct sets): New sturcture.
14461 (trivally_defined_alias): New function.
14462 (output_alias_pair_p): Rewrite.
14463 (output_unreferenced_globals): Fix output of alias pairs.
14464 (produce_symtab): Likewise.
14465 * ipa.c (function_and_variable_visibility): Set weak alias destination
14467 * varasm.c (symbol_alias_set_t): Remove.
14468 (symbol_alias_set_destroy): Export.
14469 (propagate_aliases_forward, propagate_aliases_backward): New functions
14471 (compute_visible_aliases): ... this one; remove.
14472 (trivially_visible_alias): New
14473 (trivially_defined_alias): New.
14474 (remove_unreachable_alias_pairs): Rewrite.
14475 (finish_aliases_1): Reorganize code checking if alias is defined.
14476 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14479 2011-01-11 Richard Guenther <rguenther@suse.de>
14481 PR tree-optimization/46076
14482 * tree-ssa.c (useless_type_conversion_p): Conversions from
14483 unprototyped to empty argument list function types are useless.
14485 2011-01-11 Richard Guenther <rguenther@suse.de>
14487 PR middle-end/45235
14488 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14489 volatile MEMs as MEM_READONLY_P.
14491 2011-01-11 Richard Guenther <rguenther@suse.de>
14493 PR tree-optimization/47239
14494 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14496 2011-01-11 Jeff Law <law@redhat.com>
14498 PR tree-optimization/47086
14499 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14500 IVs from statements that might throw.
14502 2011-01-10 Jan Hubicka <jh@suse.cz>
14505 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14507 2011-01-10 Jan Hubicka <jh@suse.cz>
14510 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14511 when correcting profile.
14513 2011-01-10 Jan Hubicka <jh@suse.cz>
14516 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14517 DECL_FINI_PRIORITY.
14518 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14519 Restore DECL_FINI_PRIORITY.
14521 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14523 * doc/gimple.texi: Fix quoting of multi-word return values in
14524 @deftypefn statements. Ensure presence of return value. Wrap
14525 overlong @deftypefn lines.
14526 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14527 descriptions of removed functions.
14528 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14529 of multi-word return value in @deftypefn statement.
14531 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14533 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14534 (Conditional Expressions, Logical Operators)
14535 (Statement and operand traversals): Do not indent smallexample
14536 code. Fix duplicate function argument in example.
14538 2011-01-10 Jeff Law <law@redhat.com>
14540 PR tree-optimization/47141
14541 * ipa-split.c (split_function): Handle case where we are
14542 returning a value and the return block has a virtual operand phi.
14544 2011-01-10 Jan Hubicka <jh@suse.cz>
14546 PR tree-optimization/47234
14547 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14548 (pass_feedback_split_functions): Declare.
14549 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14551 * ipa-split.c (gate_split_functions): Update comments; disable
14552 split-functions for profile_arc_flag and branch_probabilities.
14553 (gate_feedback_split_functions): New function.
14554 (execute_feedback_split_functions): New function.
14555 (pass_feedback_split_functions): New global var.
14557 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14560 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14561 calling gimple_call_set_cannot_inline.
14563 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14565 * config/darwin-sections.def: Remove unused section.
14567 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14570 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14572 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14575 * c-parser.c (c_parser_declaration_or_fndef): Improved
14578 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14580 * config/i386/winnt.c (i386_pe_start_function): Make sure
14581 to switch back to function's section.
14583 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14587 * plugin.c: Move include of dlfcn.h from here...
14588 * system.h: ... to here.
14590 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14592 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14594 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14595 two extra empty pages in PDF output.
14597 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14600 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14601 for error recovery purposes behave as if it was not specified so
14602 that the default type is usd.
14604 2011-01-07 Jan Hubicka <jh@suse.cz>
14606 PR tree-optmization/46469
14607 * ipa.c (function_and_variable_visibility): Clear needed flags on
14608 nodes with external decls; handle weakrefs merging correctly.
14610 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14612 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14615 2011-01-07 Jan Hubicka <jh@suse.cz>
14617 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14618 and no longer claim that gold is required for linker plugin.
14619 * configure: Regenerate.
14620 * gcc.c (PLUGIN_COND): New macro.
14621 (LINK_COMMAND_SPEC): Use it.
14622 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14623 * config.in (HAVE_LTO_PLUGIN): New.
14624 * configure.ac (--with-lto-plugin): New parameter; autodetect
14627 2011-01-07 Jan Hubicka <jh@suse.cz>
14629 PR tree-optimization/46367
14630 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14631 when we can update original.
14632 (cgraph_mark_inline_edge): Sanity check.
14633 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14635 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14637 * config/spu/spu.h (ASM_COMMENT_START): Define.
14639 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14642 * gcc.c (%>S): New.
14643 (SWITCH_KEEP_FOR_GCC): Likewise.
14644 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14645 (do_spec_1): Handle "%>".
14647 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14649 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14652 * config/i386/i386.c (ix86_delegitimize_address): If
14653 simplify_gen_subreg fails, return orig_x.
14656 * value-prof.c (gimple_stringop_fixed_value): Handle
14657 lhs of the call properly.
14659 2011-01-07 Jan Hubicka <jh@suse.cz>
14662 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14664 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14666 * target.def (function_switched_text_sections): New hook.
14667 * doc/tm.texi: Regenerated.
14668 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14669 * final.c (default_function_switched_text_sections): New.
14670 (final_scan_insn): Call function_switched_text_sections when a
14671 mid-function section change occurs.
14672 * output.h (default_function_switched_text_sections): Declare.
14673 * config/darwin-protos.h (darwin_function_switched_text_sections):
14675 * config/darwin.c (darwin_function_switched_text_sections): New.
14676 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14678 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14680 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14681 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14682 the secondary code fragment when outputting for DWARF == 2.
14684 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14686 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14687 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14689 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14690 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14692 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14695 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14696 when it is not empty.
14698 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14701 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14702 (case ${target}): Add btver1.
14703 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14704 -march=native recognize btver1 processors.
14705 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14706 btver1 def_and_undef
14707 * config/i386/i386.c (struct processor_costs btver1_cost): New
14709 (m_BTVER1): New definition.
14710 (m_AMD_MULTIPLE): Includes m_BTVER1.
14711 (initial_ix86_tune_features): Add btver1 tune.
14712 (processor_target_table): Add btver1 entry.
14713 (static const char *const cpu_names): Add btver1 entry.
14714 (software_prefetching_beneficial_p): Add btver1.
14715 (ix86_option_override_internal): Add btver1 instruction sets.
14716 (ix86_issue_rate): Add btver1.
14717 (ix86_adjust_cost): Add btver1.
14718 * config/i386/i386.h (TARGET_BTVER1): New definition.
14719 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14720 (enum processor_type): Add PROCESSOR_BTVER1.
14721 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14723 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14726 * config/i386/i386.c (legitimize_tls_address)
14727 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14728 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14729 (tls_initial_exec_64_sun): New pattern.
14731 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14733 * doc/invoke.texi (Overall Options): Improve wording and markup
14734 of the description of -wrapper.
14736 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14738 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14739 rdynamic, threads): New Driver options.
14741 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14744 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14745 if coming from .tdata.
14746 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14748 2011-01-06 Jan Hubicka <jh@suse.cz>
14751 * collect2.c (main): Do not enable LTOmode when plugin is active.
14753 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14756 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14757 --version output if supported.
14758 * configure: Regenerate.
14760 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14762 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14765 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14768 * c-convert.c (convert): When converting a complex expression
14769 other than COMPLEX_EXPR to a different complex type, ensure
14770 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14771 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14772 when converting COMPLEX_TYPE.
14774 2011-01-06 Ira Rosen <irar@il.ibm.com>
14776 PR tree-optimization/47139
14777 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14778 only the last reduction value is used outside the loop. Update
14781 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14783 * config/rtems.opt: New.
14784 * config.gcc (*-*-rtems*): Use rtems.opt.
14786 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14788 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14789 processors do not support 3DNow instructions.
14791 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14793 * config/spu/spu.c (spu_option_override): Set parameter
14794 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14796 2011-01-05 Jan Hubicka <jh@suse.cz>
14798 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14799 at the command line.
14801 2011-01-05 Martin Jambor <mjambor@suse.cz>
14804 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14805 deltas on streamed outgoing edges.
14806 (output_node_opt_summary): Output info for outgoing edges only when
14807 the node is in new parameter set.
14808 (output_cgraph_opt_summary): New parameter set, passed to the two
14809 aforementioned functions. Update its forward declaration and its
14812 2011-01-05 Tom Tromey <tromey@redhat.com>
14814 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14815 operator to c_finish_omp_atomic.
14816 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14817 (build_unary_op): Update.
14818 (build_modify_expr): Update.
14819 (build_asm_expr): Update.
14821 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14823 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14824 newly inserted insns.
14825 (pad_bb): Likewise.
14826 (spu_emit_branch_hint): Likewise.
14827 (insert_hbrp_for_ilb_runout): Likewise.
14828 (spu_machine_dependent_reorg): Call df_finish_pass after
14829 schedule_insns returns.
14831 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14833 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14835 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14837 PR tree-optimization/47005
14838 * tree-sra.c (struct access): Add 'non_addressable' bit.
14839 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14840 (decide_one_param_reduction): Return 0 if the parameter is passed by
14841 reference and one of the accesses in the group is non_addressable.
14843 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14845 PR tree-optimization/47056
14846 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14847 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14848 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14850 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14852 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14853 initializer. Skip view conversions from aggregate types.
14855 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14858 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14860 2011-01-04 Philipp Thomas <pth@suse.de>
14862 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14865 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14867 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14868 on empty epilogue sequences.
14870 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14872 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14873 non-static): New Driver options.
14875 2011-01-04 Jie Zhang <jie@codesourcery.com>
14878 * gcc.c (default_compilers[]): Set combinable field to 0
14879 for all assembly languages.
14881 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14883 * config/mips/loongson3a.md: New file.
14884 * config/mips/mips.md: Include loongson3a.md.
14885 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14888 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14890 PR middle-end/47017
14891 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14892 instead of convert_memory_address_addr_space on the base expression.
14894 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14896 * config/spu/spu.c (spu_option_override): Update error text
14897 for bad -march= / -mtune= values.
14899 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14901 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14902 if branch-hint optimization will be performed.
14904 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14906 PR tree-optimization/47148
14907 * ipa-split.c (split_function): Convert arguments to
14908 DECL_ARG_TYPE if possible.
14910 PR tree-optimization/47155
14911 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14912 when computing uns.
14914 PR rtl-optimization/47157
14915 * combine.c (try_combine): If undobuf.other_insn becomes
14916 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14917 and set *new_direct_jump_p too.
14919 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14921 PR tree-optimization/47021
14922 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14924 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14926 * gcc.c (process_command): Update copyright notice dates.
14927 * gcov.c (print_version): Likewise.
14928 * gcov-dump.c (print_version): Likewise.
14929 * mips-tfile.c (main): Likewise.
14930 * mips-tdump.c (main): Likewise.
14932 2011-01-03 Martin Jambor <mjambor@suse.cz>
14934 PR tree-optimization/46801
14935 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14936 aggregate fields start at byte boundary instead of the bit-field flag.
14938 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14941 * gcc.c (main): Revert revision 168407.
14943 2011-01-03 Martin Jambor <mjambor@suse.cz>
14945 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14947 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14949 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14950 vector optab to expand vector/scalar shift, update gimple to vector.
14952 2011-01-03 Martin Jambor <mjambor@suse.cz>
14954 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14957 2011-01-03 Martin Jambor <mjambor@suse.cz>
14959 PR tree-optimization/46984
14960 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14962 (cgraph_create_indirect_edge): Fixed line length.
14963 (cgraph_indirect_call_info): Declare.
14964 (cgraph_make_edge_direct) Update declaration.
14965 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14966 (cgraph_create_indirect_edge): Use it.
14967 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14969 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14970 the new thunk_delta representation.
14971 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14973 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14974 (ipa_read_indirect_edge_info): Likewise.
14975 * lto-cgraph.c (output_edge_opt_summary): New function.
14976 (output_node_opt_summary): Call it on all outgoing edges.
14977 (input_edge_opt_summary): New function.
14978 (input_node_opt_summary): Call it on all outgoing edges.
14980 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14983 * gcc.c (main): Don't check have_o when settting combine_inputs.
14985 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14987 * regrename.c: Add general comment describing the pass.
14988 (struct du_head): Remove 'length' field.
14989 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14990 (regrename_optimize): Do not sort chains. Rework comments, add others.
14991 Force renaming to the preferred class (if any) in the first pass and do
14992 not consider registers that belong to it in the second pass.
14993 (create_new_chain): Do not set 'length' field.
14994 (scan_rtx_reg): Likewise.
14996 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14998 PR tree-optimization/47140
14999 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15000 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15001 to bit_value_binop.
15003 PR rtl-optimization/47028
15004 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15005 parm_birth_insn instead of at the beginning of first bb.
15007 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15009 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15010 Remove the word "see" before "@pxref".
15011 * doc/rtl.texi: Remove the word "see" before "@pxref".
15013 2011-01-01 Jan Hubicka <jh@suse.cz>
15015 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15018 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15021 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15024 Copyright (C) 2011 Free Software Foundation, Inc.
15026 Copying and distribution of this file, with or without modification,
15027 are permitted in any medium without royalty provided the copyright
15028 notice and this notice are preserved.