1 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3 * config/arm/arm-fpus.def: New.
4 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
6 * config/arm/arm-tables.opt: Regenerate.
7 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
8 (arm_option_override): Don't decode FPU name to string here.
9 * config/arm/arm.opt (mfpu=): Use Enum.
10 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15 * collect2.c: Include diagnostic.h.
16 (fatal_perror, fatal, error, fancy_abort): Remove.
17 (main): Set progname. Call xmalloc_set_program_name and
18 diagnostic_initialize.
19 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
20 scan_libraries, resolve_lib_name): Call fatal_error instead of
21 fatal and fatal_perror.
22 * collect2.h (error, fatal, fatal_perror): Don't declare.
23 * tlink.c: Include diagnostic-core.h.
24 (recompile_files): Call fatal_error instead of fatal_perror.
25 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
26 pretty-print.o and input.o.
27 (collect2.o, tlink.o): Update dependencies.
29 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
33 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
37 COMDAT group syntax, both SPARC and x86 variants.
38 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
39 * configure: Regenerate.
40 * config/sol2.h (TARGET_SOLARIS): Define.
41 (PUSHSECTION_FORMAT): Remove.
42 (SECTION_NAME_FORMAT): Define.
43 * config/sol2.c: Include hashtab.h.
44 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
45 expansion, using SECTION_NAME_FORMAT.
46 (solaris_comdat_htab): New variable.
47 (struct comdat_entry): Define.
48 (comdat_hash): New function.
49 (comdat_eq): New function.
50 (solaris_elf_asm_comdat_section): New function.
51 (solaris_define_comdat_signature): New function.
52 (solaris_code_end): New function.
53 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
54 (solaris_code_end): Declare.
55 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
56 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
58 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
59 Remove ATTRIBUTE_UNUSED.
60 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
61 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
62 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
64 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
65 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
66 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
67 (PUSHSECTION_FORMAT): Remove.
68 (SECTION_NAME_FORMAT): Redefine.
70 2011-05-19 Kai Tietz <ktietz@redhat.com>
72 * tree-cfg.c (verify_gimple_assign_binary): Barf on
73 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
74 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
76 2011-05-19 Anatoly Sokolov <aesok@post.ru>
77 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
81 2011-05-19 Richard Guenther <rguenther@suse.de>
84 * tree-object-size.c (addr_object_size): If the pointed-to
85 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
87 2011-05-19 Richard Guenther <rguenther@suse.de>
89 * gimple.c (gimple_types_compatible_p_1): Compare names of
91 (iterative_hash_gimple_type): And hash them that way.
92 (gimple_register_type_1): If we register a main variant properly
93 initialize the leader to ourselves.
95 2011-05-19 Tom de Vries <tom@codesourcery.com>
98 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
99 get_loop_invariant_expr_id.
100 (get_loop_invariant_expr_id): Use get_expr_id.
101 (parm_decl_cost): New function.
102 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
103 Improve bound cost estimation. Use different inv_expr_id for elim and
106 2011-05-19 Tom de Vries <tom@codesourcery.com>
109 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
112 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
115 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
116 Properly handle load cast.
118 2011-05-18 Jakub Jelinek <jakub@redhat.com>
120 PR tree-optimization/49039
121 * tree-vrp.c (extract_range_from_binary_expr): For
122 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
123 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
125 2011-05-18 Tom de Vries <tom@codesourcery.com>
128 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
130 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
132 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
133 (*tls_global_dynamic_64): Ditto.
134 (*tls_local_dynamic_base_32_gnu): Ditto.
135 (*tls_local_dynamic_base_64): Ditto.
136 (tls_initial_exec_64_sun): Ditto.
138 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
140 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
141 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
143 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
144 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
145 * config/bfin/bfin.c (bfin_cpus): Add bf592.
146 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
147 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
148 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
149 * config/bfin/elf.h (LIB_SPEC): Add bf592.
151 2011-05-18 Joseph Myers <joseph@codesourcery.com>
153 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
154 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
155 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
156 target_thread_pointer, arm_structure_size_boundary, struct
157 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
158 struct abi_name, arm_all_abis): Remove.
159 (arm_option_override) Don't process most enumerated option values here.
160 Don't process target_fpe_name here. Work with integer not string for
161 structure size boundary; use separate diagnostics for each case.
162 * config/arm/arm.h (enum float_abi_type, enum
163 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
165 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
166 arm_structure_size_boundary): Remove.
167 * config/arm/arm.opt (mabi=): Use Enum and Init.
168 (arm_abi_type): New Enum and EnumValue entries.
169 (mfloat-abi=): Use Enum and Init.
170 (float_abi_type): New Enum and EnumValue entries.
171 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
172 (mfp16-format=): Use Enum and Init.
173 (arm_fp16_format_type): New Enum and EnumValue entries.
174 (mstructure-size-boundary=): Use UInteger and Init.
175 (mtp=): Use Enum and Init.
176 (arm_tp_type): New Enum and EnumValue entries.
178 2011-05-18 Richard Guenther <rguenther@suse.de>
180 PR tree-optimization/49018
181 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
182 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
183 gimple_has_side_effects.
185 2011-05-18 Richard Guenther <rguenther@suse.de>
187 * gimple.c (gimple_register_type_1): New function, split out from ...
188 (gimple_register_type): ... here. Avoid infinite recursion.
190 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
192 PR tree-optimization/41881
193 * tree-vectorizer.h (struct _loop_vec_info): Add new field
194 reduction_chains along with a macro for its access.
195 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
196 (destroy_loop_vec_info): Free reduction chains.
197 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
198 (vect_is_slp_reduction): New function.
199 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
200 (vect_create_epilog_for_reduction): Support SLP reduction chains.
201 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
202 definition types for reduction chains.
203 (vect_supported_load_permutation_p): Don't allow permutations for
205 (vect_analyze_slp_instance): Support reduction chains.
206 (vect_analyze_slp): Try to build SLP instance from reduction chains.
207 (vect_get_constant_vectors): Handle reduction chains.
208 (vect_schedule_slp_instance): Mark the first statement of the
209 reduction chain as reduction.
211 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
213 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
214 names for group elements access.
215 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
216 reduction chains as well. Remove data reference and interleaving
217 related words from the fields names.
218 * tree-vect-loop.c (vect_transform_loop): Use new names for group
220 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
221 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
222 vect_update_interleaving_chain, vect_same_range_drs,
223 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
224 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
225 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
226 vect_analyze_group_access, vect_analyze_data_ref_access,
227 vect_create_data_ref_ptr, vect_transform_strided_load,
228 vect_record_strided_load_vectors): Likewise.
229 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
230 vect_model_load_cost, vectorizable_store, vectorizable_load,
231 vect_remove_stores, new_stmt_vec_info): Likewise.
232 * tree-vect-slp.c (vect_build_slp_tree,
233 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
235 2011-05-18 Richard Guenther <rguenther@suse.de>
238 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
239 operand verification.
240 (verify_gimple_assign_binary): Likewise.
241 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
242 to non-1-precision BOOLEAN_TYPEs.
244 2011-05-18 Tom de Vries <tom@codesourcery.com>
247 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
249 2011-05-18 Jakub Jelinek <jakub@redhat.com>
251 PR tree-optimization/49000
252 * tree-ssa.c (execute_update_addresses_taken): Call
253 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
254 be rewritten and decl has been marked for renaming, reset
257 2011-05-17 Joseph Myers <joseph@codesourcery.com>
259 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
260 enum_opts_set when testing if attributes have set -mfpmath=.
262 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
264 * config/mips/mips.c (mips_handle_option): Remove unused variable.
266 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
268 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
270 * tree-inline.c (maybe_inline_call_in_expr): Initialize
271 id.transform_lang_insert_block with NULL.
273 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
275 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
276 (output_fp_compare): Change args 3 and 4 to bool.
277 (ix86_expand_call): Change arg 6 to bool.
278 (ix86_attr_length_immediate_default): Change arg 2 to bool.
279 (ix86_attr_length_vex_default): Change arg 3 to bool.
280 * config/i386/i386.md: Update all uses.
281 * config/i386/i386.c: Ditto.
282 (ix86_flags_dependent): Change return type to bool.
284 2011-05-17 Richard Guenther <rguenther@suse.de>
286 * gimple.c (type_hash_pair_compare): Fix comparison.
288 2011-05-17 Richard Guenther <rguenther@suse.de>
290 * gimple.c (iterative_hash_gimple_type): Simplify singleton
291 case some more, fix final hash value of the non-singleton case.
293 2011-05-17 Richard Guenther <rguenther@suse.de>
297 2011-05-16 Richard Guenther <rguenther@suse.de>
299 * gimple.c (gimple_types_compatible_p_1): Use names of the
300 type itself, not its main variant.
301 (iterative_hash_gimple_type): Likewise.
303 2011-05-17 Richard Guenther <rguenther@suse.de>
305 * gimple.c (gimple_register_canonical_type): Use the main-variant
306 leader for computing the canonical type.
308 2011-05-17 Nick Clifton <nickc@redhat.com>
310 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
313 * config/rx/rx.md: Add peephole to remove redundant extensions
315 (bitset_in_memory): Use rx_restricted_mem_operand.
316 (bitinvert_in_memory): Likewise.
317 (bitclr_in_memory): Likewise.
319 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
320 Nick Clifton <nickc@redhat.com>
322 * config/rx/rx.md: Add peepholes to match a register move followed
323 by a comparison of the moved register. Replace these with an
324 addition of zero that does both actions in one instruction.
326 2011-05-17 Jakub Jelinek <jakub@redhat.com>
329 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
330 predicate to allow CONST_INT.
331 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
333 2011-05-16 Joseph Myers <joseph@codesourcery.com>
335 * opts-common.c (opt_enum_arg_to_value): New.
336 * opts.h (opt_enum_arg_to_value): Declare.
337 * config/i386/i386.opt (fpmath): Remove.
338 (mfpmath=): Use Enum, Init and Save.
339 (fpmath_unit): New Enum and EnumValue entries.
340 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
341 name for function fpmath state.
342 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
343 * config/i386/i386.c: Include diagnostic.h.
344 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
345 (ix86_target_string): Take enum fpmath_unit value instead of string.
346 (ix86_debug_options): Update call to ix86_target_string.
347 (ix86_option_override_internal): Don't process fpmath strings here.
348 (x86_function_specific_save, ix86_function_specific_restore):
349 Don't handle fpmath state specially.
350 (ix86_function_specific_print): Pass fpmath state to
351 ix86_target_string instead of printing in this function.
352 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
353 Handle enum attributes.
354 (IX86_ATTR_ENUM, ix86_opt_enum): New.
355 (ix86_valid_target_attribute_tree): Update option_strings
356 handling. Handle fpmath as enum option.
357 (ix86_can_inline_p): Update field names for function fpmath state.
358 (ix86_expand_builtin): Update call to ix86_target_string.
359 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
360 (ix86_fpmath): Remove.
361 * config/i386/t-i386 (i386.o): Update dependencies.
363 2011-05-16 Joseph Myers <joseph@codesourcery.com>
365 PR preprocessor/48677
366 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
367 from decoded_options[0], not from itself.
369 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
371 * config/i386/constraints.md (z): New constraint.
372 * config/i386/i386.c (c): New mode attribute.
373 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
374 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
375 constraint for operand 0.
376 (*call_vzeroupper): Ditto.
377 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
378 (*call_rex64_ms_sysv_vzeroupper): Ditto.
379 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
380 Use "lzm" constraint for operand 0.
381 (*call_pop_vzeroupper): Ditto.
382 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
383 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
384 constraint for operand 0.
385 (*sibcall_vzeroupper): Ditto.
386 (*sibcall_rex64_ms_sysv): Ditto.
387 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
388 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
389 *sibcall_pop_1. Use "Uz" constraint for operand 0.
390 (*sibcall_pop_vzeroupper): Ditto.
391 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
392 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
393 mode iterator. Use "<c>zm" constraint for operand 1.
394 (*call_value_vzeroupper): Ditto.
395 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
397 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
398 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
399 *call_value_pop_1. Use "lzm" constraint for operand 1.
400 (*call_value_pop_vzeroupper): Ditto.
401 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
402 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
403 mode iterator. Use "Uz" constraint for operand 1.
404 (*sibcall_value_vzeroupper): Ditto.
405 (*sibcall_value_rex64_ms_sysv): Ditto.
406 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
407 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
408 constraint for operand 1.
409 (*sibcall_value_pop_vzeroupper): Ditto.
410 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
411 and "z" constraint for operand 2.
412 (*tls_global_dynamic_32_gnu): Ditto.
413 (*tls_local_dynamic_base_32_gnu): Ditto.
414 (*tls_local_dynamic_base_64): Ditto.
415 (*tls_local_dynamic_32_once): Ditto.
416 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
418 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
420 2011-05-16 Richard Guenther <rguenther@suse.de>
422 * gimple.c (gimple_types_compatible_p_1): Use names of the
423 type itself, not its main variant.
424 (iterative_hash_gimple_type): Likewise.
426 2011-05-16 Richard Guenther <rguenther@suse.de>
428 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
429 always visit pointer target and function result and argument types.
431 2011-05-16 Jason Merrill <jason@redhat.com>
434 * tree-inline.c (copy_statement_list): Put back recursion.
436 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
440 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
441 * config/avr/avr.md ("*ior<mode>qi.byte0",
442 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
444 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
447 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
448 register is needed for a function argument.
450 2011-05-16 Richard Guenther <rguenther@suse.de>
452 * gimple.c (struct type_hash_pair): New type.
453 (type_hash_pair_compare): New function.
454 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
456 2011-05-16 Revital Eres <revital.eres@linaro.org>
458 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
460 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
462 * config/i386/i386.md (floating point move splitters): Fix
463 usage of standard_80387_constant_p.
464 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
466 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
468 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
470 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
472 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
473 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
474 (tree_ssa_lim_finalize): Likewise.
476 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
478 * config/i386/constraint.md (Yd, Yx): New register constraints.
479 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
480 Yd conditional register constraint.
481 (*movtf_internal): Use standard_sse_constant_opcode.
482 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
483 Yx conditional register constraint.
484 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
485 Yd conditional register constraint. Use standard_sse_constant_p to
486 check for valid SSE constants and call standard_sse_constant_opcode to
488 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
489 constants and call standard_sse_constant_opcode to output SSE insn.
490 * config/i386/i386.c (ix86_option_ovverride_internal): Set
491 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
492 optimize_size is set.
493 (standard_sse_constant_opcode): Output conditional AVX insn templates.
495 2011-05-14 Tobias Burnus <burnus@net-b.de>
497 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
499 2011-05-13 Martin Jambor <mjambor@suse.cz>
501 * ipa-prop.c (ipa_cst_from_jfunc): New function.
502 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
503 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
504 (evaluate_conditions_for_ipcp_clone): Removed.
505 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
506 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
507 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
509 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
511 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
512 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
513 lieu of MAY_HAVE_DEBUG_STMTS.
514 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
515 debug statements if !MAY_HAVE_DEBUG_STMTS.
517 2011-05-13 Martin Thuresson <martint@google.com>
519 PR gcov-profile/47793
520 * libgcov.c (gcov_exit): Support relative profile paths.
521 * doc/invoke.texi (-fprofile-dir): Update for above change.
523 2011-05-13 Richard Guenther <rguenther@suse.de>
525 * gimple.c (gimple_canonical_types_compatible_p): Do not use
526 type-pair caching, do not compare hashes.
528 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
531 * tree-cfg.c (edge_to_cases_cleanup): Return true.
532 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
534 2011-05-13 Kai Tietz <ktietz@redhat.com>
536 * gimplify.c (gimplify_expr): Make sure operand is boolified.
537 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
538 compatible type for TRUTH_NOT_EXPR.
540 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
542 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
543 (ix86_hard_regno_mode_ok): Change return value to bool. Use
544 can_create_pseudo_p ().
546 2011-05-13 Richard Guenther <rguenther@suse.de>
549 * gimple.c (iterative_hash_gimple_type): Revert change in
550 pointer target and function result and argument hashing.
552 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
555 (*movxf_internal_nointeger): Ditto.
556 (*movdf_internal_rex64): Ditto.
557 (*movdf_internal): Ditto.
558 (*movdf_internal_nointeger): Ditto.
559 (*movsf_internal): Ditto.
560 (sincos splitters): Use can_create_pseudo ().
562 2011-05-13 Joseph Myers <joseph@codesourcery.com>
564 * config/i386/i386-opts.h: New.
565 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
566 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
567 ix86_section_threshold): Remove.
568 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
569 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
571 (ix86_option_override_internal): Don't decode strings for options
572 other than -march=, -mtune= and -mfpmath=. Don't allow for
573 __attribute__ uses in remaining diagnostics for options with
574 string arguments. Don't check for integer arguments being negative.
575 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
576 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
577 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
578 ix86_branch_cost, ix86_section_threshold): Remove.
579 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
581 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
583 (masm=): Use Enum and Init.
584 (asm_dialect): New Enum and EnumValue entries.
585 (mbranch-cost=): Use UInteger.
586 (mlarge-data-threshold=): Use UInteger and Init.
587 (mcmodel=): Use Enum and Init.
588 (cmodel): New Enum and EnumValue entries.
589 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
590 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
591 mregparm=): Use UInteger.
592 (mstringop-strategy=): Use Enum and Init.
593 (stringop_alg): New Enum and EnumValue entries.
594 (mtls-dialect=): Use Enum and Init.
595 (tls_dialect): New Enum and EnumValue entries.
596 (mabi=): Use Enum and Init.
597 (calling_abi): New Enum and EnumValue entries.
598 (mveclibabi=): Use Enum and Init.
599 (ix86_veclibabi): New Enum and EnumValue entries.
601 2011-05-13 Nick Clifton <nickc@redhat.com>
603 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
604 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
606 2011-05-13 Kai Tietz <ktietz@redhat.com>
609 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
610 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
611 (gimple_boolify): Check for cast for boolean_type_node instead for
614 2011-05-13 Richard Guenther <rguenther@suse.de>
616 PR tree-optimization/48172
617 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
618 multiplying by number of iterations for equal step.
619 (vect_create_cond_for_alias_checks): Likewise.
621 2011-05-13 Andreas Schwab <schwab@redhat.com>
623 * configure.ac: Use AS_HELP_STRING throughout.
624 * configure: Regenerate.
626 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
628 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
629 (ix86_emit_restore_regs_using_mov): Likewise.
630 (ix86_emit_restore_sse_regs_using_mov): Likewise.
632 2011-05-12 Anatoly Sokolov <aesok@post.ru>
634 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
635 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
636 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
637 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
638 RTX_OK_FOR_OLO10_P): ...here.
639 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
642 2011-05-12 Kai Tietz <ktietz@redhat.com>
644 * gimplify.c (gimple_boolify): Re-boolify expression
645 arguments even if expression type is of kind BOOLEAN_TYPE.
646 (gimplify_boolean_expr): Removed.
647 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
648 and XOR. Additional take care that we keep expression's type.
649 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
650 of TRUTH_AND|OR|XOR_EXPR.
652 2011-05-12 Jakub Jelinek <jakub@redhat.com>
654 PR tree-optimization/48975
655 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
656 on all bbs here and free and clear ifc_bbs at the end.
658 2011-05-12 Richard Guenther <rguenther@suse.de>
660 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
661 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
662 until after simple checks.
663 (gimple_types_compatible_p): Likewise.
664 (iterative_hash_gimple_type): Always hash pointer targets
665 and function return and argument types.
666 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
667 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
668 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
669 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
670 completely in the simple compare section.
671 (gimple_register_canonical_type): Query the cache again after
674 2011-05-12 Richard Guenther <rguenther@suse.de>
676 PR tree-optimization/48172
677 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
678 the number of iterations from the segment size calculation.
679 (vect_create_cond_for_alias_checks): Adjust.
681 2011-05-12 Jakub Jelinek <jakub@redhat.com>
684 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
685 if validate_subreg fails.
687 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
689 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
690 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
693 2011-05-12 DJ Delorie <dj@redhat.com>
695 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
696 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
697 created builtin into rx_builtins array.
698 (rx_builtin_decl): New function.
699 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
701 2011-05-12 DJ Delorie <dj@redhat.com>
702 Nick Clifton <nickc@redhat.com>
704 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
705 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
706 (rx_is_legitimate_address): Add pre-decrement and post-increment
707 addressing in HImode and QImode. Fix test for out of range
709 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
710 (rx_align_for_label): Test label before extracting its usage count.
711 (rx_adjust_insn_lengths): Fix selection of insn codes.
712 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
714 2011-05-11 Jason Merrill <jason@redhat.com>
716 * tree.c (type_hash_canon): Use struct tree_type_non_common.
718 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
720 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
721 reindent the subsequent block.
723 2011-05-11 Satoru Takabayashi <satorux@google.com>
724 Paul Pluzhnikov <ppluzhnikov@google.com>
726 * doc/install.texi (Configuration): Document --with-linker-hash-style.
727 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
728 * config.in: Add LINKER_HASH_STYLE.
729 * configure.ac: Add --with-linker-hash-style.
730 * configure: Regenerate.
732 2011-05-11 Richard Guenther <rguenther@suse.de>
735 * gimple.c (iterative_hash_canonical_type): Fix typo.
737 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
739 * config/i386/i386.c (legitimize_tls_address)
740 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
741 expanders directly for TARGET_GNU2_TLS. Determine pic and
742 __tls_get_addr symbol reference here. Update call to
743 gen_tls_global_dynamic_{32,64} for added arguments.
744 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
745 expanders directly for TARGET_GNU2_TLS. Determine
746 __tls_get_addr symbol reference here. Update call to
747 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
748 unique UNSPEC REG_EQUIV to libcall block.
749 (ix86_tls_get_addr): Declare static.
750 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
751 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
752 Do not determine pic and __tls_get_addr symbol reference here. Do not
753 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
754 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
755 (tls_global_dynamic_64): Add operand 2. Do not determine
756 __tls_get_addr symbol reference here. Do not call
757 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
758 (tls_local_dynamic_base64): Ditto for operand 1.
760 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
762 * function.c (expand_function_start): Initialize stack_check_probe_note
763 only if the generic stack checking mechanism is used.
765 2011-05-11 Richard Guenther <rguenther@suse.de>
767 PR tree-optimization/15256
768 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
769 (A & B) | C, combine (A op CST1) op CST2.
770 (tree_ssa_forward_propagate_single_use_vars): Only bother to
771 visit assigns that have uses.
773 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
775 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
776 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
777 (unpack_ts_type_common_value_fields): ...this. Update comment.
778 (unpack_value_fields): Adjust for renaming.
779 (lto_input_ts_type_tree_pointers): Split into...
780 (lto_input_ts_type_common_tree_pointer): ...this and...
781 (lto_input_ts_type_non_common_tree_pointers): ...this.
782 (lto_input_tree_pointers): Adjust for above split.
783 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
784 (pack_ts_type_common_value_fields): ...this. Update comment.
785 (lto_output_ts_type_tree_pointers): Split into...
786 (lto_output_ts_type_common_tree_pointers): ...this and...
787 (lto_output_ts_type_non_common_tree_pointers): ...this.
788 (lto_output_tree_pointers): Adjust for above split.
789 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
790 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
791 * stor-layout.c (vector_type_mode): Adjust location of mode field.
792 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
794 (struct tree_type): Split into...
795 (struct tree_type_common: ...this and...
796 (struct tree_type_with_lang_specific): ...this and...
797 (struct tree_type_non_common): ...this. Adjust accessor macros
799 (TYPE_VALUES_RAW): Define.
800 (union tree_node): Update for above changes.
801 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
803 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
804 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
805 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
806 * treestructu.def (TS_TYPE): Remove.
807 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
810 2011-05-11 Jakub Jelinek <jakub@redhat.com>
813 * tree-ssa.c (reset_debug_uses): New function.
814 * tree-flow.h (reset_debug_uses): New prototype.
815 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
816 * tree-loop-distribution.c (generate_loops_for_partition): Call
817 reset_debug_uses on the stmts that will be removed. Keep around
818 all debug stmts, don't count them as bits in partition bitmap.
819 (generate_builtin): Don't count debug stmts or labels as bits in
822 2011-05-11 Richard Guenther <rguenther@suse.de>
824 * gimple.c (gimple_type_hash_1): Merge with ...
825 (gimple_type_hash): ... this.
826 (gtc_visit): Remove mode parameter and simplify accordingly.
827 (gimple_types_compatible_p_1): Likewise.
828 (gimple_types_compatible_p): Likewise.
829 (iterative_hash_gimple_type): Likewise.
831 (gimple_type_eq): Adjust.
833 2011-05-11 Revital Eres <revital.eres@linaro.org>
835 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
836 enters the branch create an anti edge in the opposite direction
837 to prevent the creation of reg-moves.
838 * modulo-sched.c: Adjust comment to reflect the fact we are
839 scheduling closing branch.
840 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
841 (stage_count): New field in struct partial_schedule.
842 (calculate_stage_count): New function.
843 (normalize_sched_times): Rename to reset_sched_times and handle
844 incrementing the sched time of the nodes by a constant value
846 (duplicate_insns_of_cycles): Skip closing branch.
847 (sms_schedule_by_order): Schedule closing branch.
848 (ps_insn_find_column): Handle closing branch.
849 (sms_schedule): Call reset_sched_times and adjust the code to
850 support scheduling of the closing branch.
851 (ps_insert_empty_row): Update calls to normalize_sched_times
852 and rotate_partial_schedule functions.
854 2011-05-11 Richard Guenther <rguenther@suse.de>
857 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
859 2011-05-11 Joseph Myers <joseph@codesourcery.com>
861 * opts.c (finish_options): Move warning settings from process_options.
862 * toplev.c (process_options): Move warning settings to finish_options.
864 2011-05-11 Richard Guenther <rguenther@suse.de>
866 PR tree-optimization/18041
867 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
868 (simplify_bitwise_binary): ... this. Handle operand conversions
869 by applying them to the result instead.
870 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
872 2011-05-11 Richard Guenther <rguenther@suse.de>
874 * gimple.c (gimple_canonical_types_compatible_p): Split out
875 from gimple_types_compatible_p and friends. Do not recurse
877 (gimple_canonical_type_eq): Use it.
878 (iterative_hash_canonical_type): Split out from
879 iterative_hash_gimple_type and friends. Do not recurse
881 (gimple_canonical_type_hash): Use it, allocate the hash here.
883 2011-05-11 Revital Eres <revital.eres@linaro.org>
885 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
888 2011-05-11 Revital Eres <revital.eres@linaro.org>
890 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
891 instead of PREV_INSN.
893 2011-05-11 Revital Eres <revital.eres@linaro.org>
895 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
896 * loop-doloop.c (doloop_condition_get): Likewise.
897 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
899 * config/arm/arm.md (*addsi3_compare0): Remove "*".
901 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
903 * tree.def (CASE_LABEL_EXPR): Add an operand.
904 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
906 2011-05-10 Joseph Myers <joseph@codesourcery.com>
908 * c-decl.c (c_override_global_bindings_to_false): Remove.
909 (global_bindings_p): Don't check
910 c_override_global_bindings_to_false.
911 * c-tree.h (c_override_global_bindings_to_false): Remove.
912 * c-typeck.c (composite_type): Don't set
913 c_override_global_bindings_to_false.
915 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
917 PR target/48857, 48495
918 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
920 (VSX_MOVE_MODE): Ditto.
921 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
922 VSX vector types. Add V2DImode.
923 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
924 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
925 (MODES_TIEABLE_P): Ditto.
927 * config/rs6000/rs6000.c (rs6000_emit_move): Use
928 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
930 (init_cumulative_args): Ditto.
931 (rs6000_function_arg_boundary): Ditto.
932 (rs6000_function_arg_advance_1): Ditto.
933 (rs6000_function_arg): Ditto.
934 (rs6000_function_ok_for_sibcall): Ditto.
935 (emit_frame_save): Ditto.
936 (rs6000_function_value): Ditto.
937 (rs6000_libcall_value): Ditto.
939 2011-05-10 Joseph Myers <joseph@codesourcery.com>
941 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
942 i386/darwin-lib.h to $libgcc_tm_file.
943 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
945 2011-05-10 Joseph Myers <joseph@codesourcery.com>
947 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
949 2011-05-10 Joseph Myers <joseph@codesourcery.com>
951 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
952 * config/rs6000/rs6000-tables.opt: New file (generated).
953 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
954 rs6000/rs6000-tables.opt to extra_options.
955 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
956 * config/rs6000/rs6000.c (rs6000_select): Remove.
957 (processor_target_table): Move contents to rs6000-cpus.def.
958 (darwin_rs6000_override_options): Check
959 global_options_set.x_rs6000_cpu_index instead of
960 rs6000_select[1].string.
961 (rs6000_option_override_internal): Likewise.
962 (rs6000_handle_option): Don't assert that global structures are in
963 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
964 (rs6000_default_cpu): New variable.
965 (rs6000_file_start): Set it instead of local default_cpu. Check
966 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
967 global_options_set.x_rs6000_tune_index instead of rs6000_select.
968 (rs6000_darwin_file_start): Check rs6000_default_cpu and
969 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
970 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
971 rs6000_select): Remove.
972 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
974 (mcpu=, mtune=): Use Var, Init, Enum and Save.
975 * config/rs6000/t-rs6000
976 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
977 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
978 global_options_set.x_rs6000_cpu_index instead of
979 rs6000_select[1].string.
980 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
981 global_options_set.x_rs6000_cpu_index instead of
982 rs6000_select[1].string.
984 2011-05-10 Joseph Myers <joseph@codesourcery.com>
986 * config.gcc (libgcc_tm_file): Define instead of including files
987 from ../../libgcc/config/ in tm_file.
988 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
989 * configure: Regenerate.
990 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
991 libgcc_tm.h, cs-libgcc_tm.h): New.
992 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
993 (clean): Remove libgcc_tm.h.
994 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
995 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
996 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
998 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1001 * config/avr/avr.c (avr_ret_register): Return unsigned int
1003 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1004 it to avr_libcall_value.
1005 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1007 (avr_expand_binop_builtin): Ditto.
1008 (avr_expand_unop_builtin): Ditto.
1010 2011-05-10 DJ Delorie <dj@redhat.com>
1012 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1013 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1014 * config/rx/rx.c (rx_align_for_label): Add label and
1015 uses_threshold parameters. Do not align when the label is not
1017 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1019 2011-05-10 Richard Guenther <rguenther@suse.de>
1021 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1022 a series of conversions and apply foldings similar to what
1024 (tree_ssa_forward_propagate_single_use_vars): Call it.
1026 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1028 PR tree-optimization/48611
1029 PR tree-optimization/48794
1030 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1031 referenced from RESX or EH_DISPATCH arguments.
1034 * dfp.c (decimal_to_decnumber): Handle conversion from
1035 dconst{1,2,m1,half}.
1037 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1039 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1040 for !flag_prefer_avx128.
1041 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1043 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1045 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1046 (fold_ternary_loc): Use expr_location_or.
1048 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1051 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1052 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1053 Pmode and mem_mode is not VOIDmode.
1055 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1057 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1058 TYPE_QUAL_RESTRICT): Convert to enum.
1060 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1062 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1063 (const_pow2_1_to_8_operand): Ditto.
1064 (const_pow2_1_to_128_operand): Ditto.
1065 (const_pow2_1_to_32768_operand): Ditto.
1066 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1067 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1068 in insn constraint to check integer value of operand 3.
1069 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1071 (PINSR_MODE): New mode iterator.
1072 (sse2p4_1): New mode attribute.
1073 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1074 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1075 iterator. Use const_int_operand instead of
1076 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1077 exact_log2 in insn constraint to check integer value of operand 3.
1079 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1081 * config/i386/sse.md (blendbits): Remove mode attribute.
1082 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1083 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1084 Check integer value of operand 3 in insn constraint.
1086 2011-05-09 Richard Guenther <rguenther@suse.de>
1088 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1090 (lto_symtab_merge): Likewise. Do not register types here.
1091 (lto_symtab_merge_decls_2): Likewise.
1092 (lto_symtab_merge_decls_1): Likewise.
1093 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1094 * gimple.c (enum gtc_mode): Declare.
1095 (gimple_types_compatible_p): Make static.
1097 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1099 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1100 temporary register to match Pmode.
1102 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1104 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1105 and *vec_concatv4si_1_avx.
1107 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1109 PR rtl-optimization/48927
1110 * ira-conflicts.c (commutative_constraint_p): Use
1111 recog_data.alternative_enabled_p to disable alternatives where
1112 "enabled" attribute is false.
1113 (get_dup_num): Ditto.
1114 * ira-lives.c (single_reg_class): Ditto.
1115 (ira_implicitly_set_insn_hard_regs): Ditto.
1117 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1119 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1120 (dataflow_set_preserve_mem_locs): Likewise.
1122 2011-05-09 Philipp Thomas <pth@suse.de>
1124 * config/mep/mep.c (mep_validate_vliw): Syntax description
1125 should not be translated.
1127 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1129 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1130 * config/mips/mips-tables.opt: New file (generated).
1131 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1132 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1133 MIPS_ARCH_OPTION_NATIVE): Define.
1134 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1136 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1137 mips_parse_cpu): Remove.
1138 (mips_cpu_info_from_opt, mips_default_arch): New.
1139 (mips_handle_option): Don't assert that global structures are in
1140 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1141 (mips_option_override): Use new variables and functions to set
1142 state of these options. Use strcmp to check for individual CPU names.
1143 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1145 * config/mips/mips.opt (march=): Use ToLower and Enum.
1146 (mips): Use ToLower, Enum and Var.
1147 (mtune=): Use ToLower and Enum.
1148 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1150 2011-05-08 Jan Hubicka <jh@suse.cz>
1152 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1153 Arrange type pairs to be UID ordered.
1154 (gimple_lookup_type_leader): Make inline.
1156 2011-05-09 Nick Clifton <nickc@redhat.com>
1159 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1163 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1166 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1168 * combine.c (simplify_comparison): Abstract out parts into...
1169 (simplify_compare_const): ... new function.
1170 (try_combine): Generalize parallel arithmetic/compare combining
1171 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1173 2011-05-08 Jan Hubicka <jh@suse.cz>
1175 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1176 (cgraph_create_virtual_clone): Call hooks once virtual clone
1178 * cgraph.h (cgraph_clone_node): Update prototype.
1179 * ipa-cp.c (ipcp_estimate_growth): Use
1180 estimate_ipcp_clone_size_and_time.
1181 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1182 * lto-cgraph.c (input_node): Update.
1183 * ipa-inline.c (recursive_inlining): Update.
1184 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1185 (evaluate_conditions_for_known_args): Break out from ...
1186 (evaluate_conditions_for_edge): ... here.
1187 (evaluate_conditions_for_ipcp_clone): New function.
1188 (inline_node_duplication_hook): Update clone summary based
1190 (estimate_callee_size_and_time): Rename to ...
1191 (estimate_node_size_and_time): take NODE instead of EDGE;
1192 take POSSIBLE_TRUTHS as argument.
1193 (estimate_callee_size_and_time): Update.
1194 (estimate_ipcp_clone_size_and_time): New function.
1195 (do_estimate_edge_time): Update.
1197 2011-05-08 Richard Guenther <rguenther@suse.de>
1201 * expmed.c (expand_shift_1): Compute adjusted constant shift
1204 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1206 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1208 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1210 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1212 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1214 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1216 2011-05-07 Jan Hubicka <jh@suse.cz>
1218 * ipa-inline-transform.c (inline_call): Account when program size
1220 * ipa-inline.c (relative_time_benefit): New function.
1221 (edge_badness): Reorganize to be power 2 based; fix thinko when
1222 computing badness for negative growth; update comments to match
1223 reality; better dumps.
1225 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1227 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1228 type to bool and adjust comment.
1229 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1230 (fold_mathfn_compare): Remove calls to global_bindings_p.
1231 (fold_inf_compare): Likewise.
1232 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1233 * c-tree.h (global_bindings_p): Adjust prototype.
1234 * c-decl.c (global_bindings_p): Return bool and simplify.
1236 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1238 PR tree-optimization/48837
1239 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1240 when accumulator transformation is performed.
1242 2011-05-06 Jan Hubicka <jh@suse.cz>
1244 * i386.h (ix86_tune_indices): Add
1245 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1246 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1247 * i386.c (initial_ix86_tune_features): Add
1248 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1249 (software_prefetching_beneficial_p): Remove predicate.
1250 (ix86_option_override_internal): Use new macro.
1252 2011-05-06 Jan Hubicka <jh@suse.cz>
1254 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1256 2011-05-06 Jan Hubicka <jh@suse.cz>
1258 * cgraph.c (cgraph_add_thunk): Create real function node instead
1259 of alias node; finalize it and mark needed/reachale; arrange visibility
1260 to be right and add it into the corresponding same comdat group list.
1261 (dump_cgraph_node): Dump thunks.
1262 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1263 cgraph_function_with_gimple_body_p,
1264 cgraph_first_function_with_gimple_body,
1265 cgraph_next_function_with_gimple_body): New functions.
1266 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1268 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1269 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1270 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1271 devirtualization when optimizing.
1272 (verify_cgraph_node): Verify thunks.
1273 (cgraph_analyze_function): Analyze thunks.
1274 (cgraph_mark_functions_to_output): Output thunks only in combination
1275 with function they are assigned to.
1276 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1277 alias into normal node.
1278 (assemble_thunks): New functoin.
1279 (cgraph_expand_function): Use it.
1280 * lto-cgraph.c (lto_output_node): Stream thunks.
1281 (input_overwrite_node): Stream in thunks.
1282 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1283 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1284 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1285 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1286 (inline_analyze_function): Do not care about thunk jump functions.
1287 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1288 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1289 cgraph_function_with_gimple_body_p.
1290 * passes.c (do_per_function_toporder): Use
1291 cgraph_function_with_gimple_body_p.
1292 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1293 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1294 (function_called_by_processed_nodes_p): Likewise.
1296 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1298 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1299 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1301 (mabi=): Replace with separate entries for mabi=altivec,
1302 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1303 mabi=ieeelongdouble and mabi=ibmlongdouble.
1304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1305 check for -mabi=spe without SPE ABI support here.
1306 (rs6000_handle_option): Replace OPT_mabi_ handling with
1307 OPT_mabi_altivec and OPT_mabi_spe handling.
1309 2011-05-06 Cary Coutant <ccoutant@google.com>
1311 * dwarf2out.c (contains_subprogram_definition): New function.
1312 (should_move_die_to_comdat): Call it.
1314 2011-05-06 Jeff Law <law@redhat.com>
1316 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1317 remove_ctrl_stmt_and_useless_edges.
1318 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1319 (fixup_template_block, thread_single_edge): Likewise.
1320 (mark_threaded_blocks): Use THREAD_TARGET.
1322 2011-05-06 Alan Modra <amodra@gmail.com>
1325 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1326 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1328 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1330 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1331 constraint modifier to "r".
1333 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1335 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1336 fall through for OPT_mcmodel_.
1338 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1340 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1342 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1344 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1347 * config/arm/arm.opt (marm): Document it.
1348 (mthumb): Reject negative variant.
1350 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1353 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1354 Fix typo in "ccvt" variable name.
1356 2011-05-06 Tristan Gingold <gingold@adacore.com>
1359 * config/vms/vms-ar.c (main): Remove cwd variable.
1361 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1364 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1366 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1368 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1369 * gimplify.c (gimplify_switch_expr): Likewise.
1370 * omp-low.c (expand_omp_sections): Likewise.
1371 * tree-eh.c (lower_try_finally_switch): Likewise.
1372 (lower_eh_dispatch): Likewise.
1373 * tree.h (build_case_label): Declare.
1374 * tree.c (build_case_label): Define.
1376 2011-05-05 Jason Merrill <jason@redhat.com>
1379 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1380 (copy_statement_list): Don't recurse.
1381 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1384 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1386 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1387 through from -mfpu= handling.
1388 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1390 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1392 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1395 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1397 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1399 (hppa[12]*-*-hpux11*): Ditto.
1400 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1401 * config/ia64/hpux-unix2003.h: New.
1402 * config/pa/pa-hpux1131.opt: New.
1403 * config/pa/pa-hpux1131.h: New.
1404 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1405 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1406 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1408 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1411 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1412 instead of mode as 3rd argument to recursive call.
1413 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1414 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1416 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1417 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1418 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1419 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1421 2011-05-05 Julian Brown <julian@codesourcery.com>
1423 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1424 parenthesis in D-register case.
1426 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1428 * opt-functions.awk (var_type_struct): Handle Enum options.
1429 * optc-gen.awk: Don't check range of variables of character type.
1430 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1431 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1432 rs6000_sdata_name, rs6000_explicit_options): Remove.
1433 (rs6000_option_override_internal): Check for -malign-power here.
1434 Use global_options_set instead of rs6000_explicit_options.
1435 (rs6000_parse_fpu_option): Remove.
1436 (rs6000_handle_option): Access variables via opts and opts_set
1437 pointers. Use error_at and warning_at. Add fall-through
1438 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1439 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1440 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1441 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1442 here. Don't use rs6000_parse_fpu_option.
1443 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1444 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1445 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1447 (mspe): Use Var and Save.
1448 (mtraceback=): Use Enum and Var.
1449 (rs6000_traceback_type): New Enum and EnumValue entries.
1450 (mfloat-gprs=): Use Enum, Var and Save.
1451 (rs6000_float_gprs): New Enum and EnumValue entries.
1452 (mlong-double-): use Var and Save.
1453 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1454 (malign-): Use Enum and Var.
1455 (rs6000_alignment_flags): New Enum and EnumValue entries.
1457 (fpu_type_t): New Enum and EnumValue entries.
1458 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1459 global_options_set instead of rs6000_explicit_options.
1460 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1461 global_options_set instead of rs6000_explicit_options.
1462 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1463 global_options_set instead of rs6000_explicit_options.
1464 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1465 global_options_set instead of rs6000_explicit_options.
1466 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1467 global_options_set instead of rs6000_explicit_options.
1468 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1469 global_options_set instead of rs6000_explicit_options.
1470 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1472 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1473 global_options_set instead of rs6000_explicit_options.
1474 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1475 (rs6000_cmodel): New Enum and EnumValue entries.
1476 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1477 global_options_set instead of rs6000_explicit_options.
1478 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1479 (mtls-size=): Use Enum and Var.
1480 (rs6000_tls_size): New Enum and EnumValue entries.
1482 2011-05-05 Michael Matz <matz@suse.de>
1484 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1485 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1486 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1487 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1488 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1489 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1490 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1491 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1492 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1493 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1494 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1495 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1496 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1497 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1498 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1499 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1501 2011-05-05 Richard Guenther <rguenther@suse.de>
1503 * expmed.c (expand_variable_shift): Rename to ...
1504 (expand_shift_1): ... this. Take an expanded shift amount.
1505 For rotates recurse directly not building trees for the shift amount.
1506 (expand_variable_shift): Wrap around expand_shift_1.
1507 (expand_shift): Adjust.
1509 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1511 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1513 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1515 * tree.h (get_pending_sizes): Remove prototype.
1516 (put_pending_size): Likewise.
1517 (put_pending_sizes): Likewise.
1518 * stor-layout.c (pending_sizes): Delete.
1519 (get_pending_sizes): Likewise.
1520 (put_pending_size): Likewise.
1521 (put_pending_sizes): Likewise.
1522 (variable_size): Do not call put_pending_size and tidy up.
1523 * function.h (struct function): Remove dont_save_pending_sizes_p.
1524 * lto-streamer-in.c (input_function): Do not stream it.
1525 * lto-streamer-out.c (output_function): Likewise.
1526 * tree-inline.c (initialize_cfun): Do not copy it.
1527 * c-decl.c (store_parm_decls): Do not set it.
1528 * omp-low.c (create_task_copyfn): Likewise.
1529 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1531 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1533 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1535 (*movdf_internal): Ditto.
1536 (*movdf_internal_nointeger): Ditto.
1537 (*movsf_internal): Ditto.
1539 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1541 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1542 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1543 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1544 (c_variable_size): Remove.
1545 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1546 call put_pending_sizes.
1547 (get_parm_info): Add parameter expr. Use it to set
1548 arg_info->pending_sizes.
1549 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1551 * c-parser.c (c_parser_parms_declarator): Update call to
1552 c_parser_parms_list_declarator.
1553 (c_parser_parms_list_declarator): Take parameter expr. Update
1554 call to push_parm_decl. Update recursive call. Don't call
1555 get_pending_sizes. Update calls to get_parm_info.
1556 (c_parser_objc_method_definition): Update calls to
1557 c_parser_objc_method_decl and objc_start_method_definition.
1558 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1559 (c_parser_objc_method_decl): Add parameter expr. Update call to
1561 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1562 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1563 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1565 2011-05-05 Michael Hope <michael.hope@linaro.org>
1568 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1571 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1573 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1574 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1575 (spu_output_mi_thunk): New function.
1577 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1579 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1580 targetm.asm_out.print_operand.
1581 * config/sol2.c: Include target.h.
1583 2011-05-04 Jan Hubicka <jh@suse.cz>
1585 * ipa-inline.c (reset_edge_caches): New function.
1586 (update_caller_keys): Add check_inlinablity_for; do not
1587 reset edge caches; remove now unnecesary loop.
1588 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1589 (update_all_callee_keys): Likewise.
1590 (inline_small_functions): Sanity check cache; update code
1593 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1595 PR rtl-optimization/47612
1596 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1597 as the last insn of the sequence to be moved.
1599 2011-05-04 Tobias Burnus <burnus@net-b.de>
1602 * doc/invoke.texi (Ofast): Document that it
1603 enables Fortran's -fno-protect-parens.
1605 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1607 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1609 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1611 * stor-layout.c (variable_size): Do not issue errors.
1613 2011-05-04 Richard Guenther <rguenther@suse.de>
1615 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1616 for array-ref indices.
1617 (tree_coverage_counter_addr): Likewise.
1618 (build_fn_info_type): Use size_int for index types.
1619 (build_gcov_info): Likewise.
1621 2011-05-04 Richard Guenther <rguenther@suse.de>
1623 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1625 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1626 for constructor indices.
1627 (push_init_level): Likewise.
1629 2011-05-04 Richard Guenther <rguenther@suse.de>
1631 * explow.c (promote_mode): Move variable declarations before code.
1633 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1635 * tree.h (build_function_type_array): Declare.
1636 (build_varargs_function_type_array): Declare.
1637 (build_function_type_vec, build_varargs_function_type_vec): Define.
1638 * tree.c (build_function_type_array_1): New function.
1639 (build_function_type_array): New function.
1640 (build_varargs_function_type_array): New function.
1642 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1644 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1645 before setting STMT_VINFO_TYPE.
1647 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1649 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1650 instead of spu_pass_by_reference.
1652 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1654 * calls.c (emit_library_call_value_1): Invoke
1655 promote_function_mode hook on libcall arguments.
1656 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1657 argument being NULL.
1658 * targhooks.c (default_promote_function_mode): Lisewise.
1659 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1660 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1662 * doc/tm.texi: Document that TYPE argument might be NULL.
1664 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1666 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1668 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1671 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1673 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1675 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1676 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1678 * mips-tfile.c: ... here.
1679 Don't include coretypes.h, tm.h, filenames.h.
1680 (saber_stop): Remove definition and all calls.
1681 [__SABER__]: Remove.
1682 (__LINE__): Remove default.
1683 (Size_t, Ptrdiff_t): Remove definitions.
1684 Replace by size_t, ptrdiff_t.
1685 [!MIPS_DEBUGGING_INFO]: Remove.
1686 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1687 (progname): Add const.
1689 Replace all uses by static.
1690 (ALIGN_SYMTABLE_OFFSET): Remove default.
1691 * mips-tdump.c: Don't include coretypes.h, tm.h.
1692 Remove !MIPS_IS_STAB guard.
1693 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1694 $(TM_H), filenames.h dependencies.
1695 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1697 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1700 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1701 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1703 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1706 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1707 account and save/restore RETS.
1708 (PROFILE_BEFORE_PROLOGUE): Define.
1709 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1710 the push insn to use predecrement.
1712 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1715 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1717 2011-05-04 Nick Clifton <nickc@redhat.com>
1719 * config/mn10300/mn10300.c: Include cfgloop.h.
1721 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1722 Lcc or a FLcc insn into the instruction stream.
1723 (mn10300_block_contains_call): New function. Returns true if the
1724 given basic block contains a CALL insn.
1725 (mn10300_loop_contains_call_insn): New function. Returns true if
1726 the given loop contains a CALL insn.
1727 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1728 to use the SETLB and Lcc or FLcc insns.
1729 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1730 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1731 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1732 disable the SETLB optimization.
1733 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1734 __SETLB__ or __NO_SETLB__.
1735 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1736 (movsf_internal): Handle MDR register.
1737 (cmpsi): Make visible.
1738 (setlb): New pattern.
1740 (FLcc): New pattern.
1742 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1745 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1746 for reg<->xmm moves.
1747 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1748 (vec_concatv2di_rex64_sse): Ditto.
1749 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1750 (*vec_extractv2di_1_rex64): Ditto.
1753 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1755 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1757 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1759 2011-05-04 Richard Guenther <rguenther@suse.de>
1761 * tree.h (int_const_binop): Remove notrunc argument.
1762 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1763 create integer constants that are properly truncated.
1764 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1765 (const_binop): Remove zero notrunc argument to int_const_binop.
1766 (size_binop_loc): Likewise.
1767 (fold_div_compare): Likewise.
1768 (maybe_canonicalize_comparison_1): Likewise.
1769 (fold_comparison): Likewise.
1770 (fold_binary_loc): Likewise.
1771 (multiple_of_p): Likewise.
1772 * expr.c (store_constructor): Likewise.
1773 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1774 (maybe_fold_stmt_addition): Likewise.
1775 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1776 * stor-layout.c (layout_type): Likewise.
1777 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1778 * tree-sra.c (build_ref_for_offset): Likewise.
1779 (build_user_friendly_ref_for_offset): Likewise.
1780 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1781 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1782 * tree-ssa-loop-niter.c (inverse): Likewise.
1783 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1784 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1785 * tree-switch-conversion.c (check_range): Likewise.
1786 (build_constructors): Likewise.
1787 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1788 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1789 (extract_range_from_assert): Likewise.
1790 (vrp_int_const_binop): Likewise.
1791 (extract_range_from_binary_expr): Likewise.
1792 (extract_range_from_unary_expr): Likewise.
1793 (check_array_ref): Likewise.
1794 (find_case_label_range): Likewise.
1795 (simplify_div_or_mod_using_ranges): Likewise.
1796 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1797 comparing case labels for merging.
1799 2011-05-03 Mark Wielaard <mjw@redhat.com>
1801 * dwarf2out.c (debug_str_hash_forced): Removed.
1802 (gen_label_for_indirect_string): Removed.
1803 (get_debug_string_label): Removed.
1804 (AT_string_form): Generate label directly.
1805 (output_indirect_string): Test indirect_string_node for
1806 DW_FORM_strp instead of checking label and refcount.
1807 (prune_indirect_string): Removed.
1808 (prune_unused_types): Don't check debug_str_hash_forced or
1809 call prune_indirect_string.
1811 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1814 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1816 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1820 * combine.c (try_combine): Skip debug insns at m_split tests.
1822 2011-04-26 Mark Wielaard <mjw@redhat.com>
1825 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1826 when info_section_emitted.
1828 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1830 * config/mips/mips-opts.h: New.
1831 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1833 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1834 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1835 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1837 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1839 (mips_abi, mips_code_readable): Don't declare.
1840 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1841 (mabi=): Use Enum and Var.
1842 (mips_abi): New Enum and EnumValue entries.
1843 (mcode-readable=): Use Enum and Var.
1844 (mips_code_readable_setting): New Enum and EnumValue entries.
1845 (mr10k-cache-barrier=): Use Enum and Var.
1846 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1848 2011-05-03 Jan Hubicka <jh@suse.cz>
1850 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1851 replace hash by pointer map.
1852 (cgraph_node_set_element_def, cgraph_node_set_element,
1853 const_cgraph_node_set_element, varpool_node_set_element_def,
1854 varpool_node_set_element, const_varpool_node_set_element): Remove.
1855 (free_cgraph_node_set, free_varpool_node_set): New function.
1856 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1857 * tree-emutls.c: Free varpool node set.
1858 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1859 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1860 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1861 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1862 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1863 Move here from ipa.c; implement using pointer_map
1864 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1865 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1866 debug_cgraph_node_set, varpool_node_set_new,
1867 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1868 dump_varpool_node_set, debug_varpool_node_set):
1869 Move to ipa-uitls.c.
1870 * passes.c (ipa_write_summaries): Update.
1872 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1874 From Mike Frysinger:
1875 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1876 bf542/bf544/bf547/bf548/bf549.
1878 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1880 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1882 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1885 * config/bfin/bfin.md (MOVCC): New mode_macro.
1886 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1887 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1888 comments from generated assembly.
1890 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1893 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1894 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1895 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1896 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1897 * config/bfin/lib1funcs.asm (___muldi3): New function.
1899 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1901 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1902 build_function_type_list instead of build_function_type.
1903 Rearrange initialization of `args' to do so.
1905 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1907 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1908 instead of build_function_type.
1910 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1912 * config/rs6000/rs6000.c (spe_init_builtins): Call
1913 build_function_type_list instead of build_function_type.
1914 (paired_init_builtins, altivec_init_builtins): Likewise.
1915 (builtin_function_type): Likewise.
1917 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1919 * config/sh/sh.c (sh_media_init_builtins): Call
1920 build_function_type_list instead of build_function_type.
1922 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1924 * config/sparc/sparc.c (sparc_file_end): Call
1925 build_function_type_list instead of build_function_type.
1927 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1929 * config/alpha/alpha.c (alpha_init_builtins): Call
1930 build_function_type_list instead of build_function_type.
1932 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1934 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1935 build_function_type_list instead of build_function_type.
1937 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1939 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1940 build_function_type_list instead of build_function_type.
1941 Delete `endlink' variable.
1943 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1945 * config/avr/avr.c (avr_init_builtins): Call
1946 build_function_type_list instead of build_function_type.
1948 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1950 * config/picochip/picochip.c (picochip_init_builtins): Call
1951 build_function_type_list instead of build_function_type.
1952 Delete `endlink' variable.
1954 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1956 * config/bfin/bfin.c (bfin_init_builtins): Call
1957 build_function_type_list instead of build_function_type.
1959 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1962 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1963 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1965 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1968 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1969 libbffastfp overrides libgcc when -mfast-fp.
1971 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1973 Originally from Bernd Schmidt
1974 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1975 * config/bfin/bfin.c (override_options): Test it and error if
1978 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1980 Originally From Bernd Schmidt
1981 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1984 2011-05-03 Jeff Law <law@redhat.com>
1986 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1987 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1988 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1989 than accessing AUX field directly. Free the AUX field before
1991 (thread_block, thread_through_loop_header): Likewise.
1992 (thread_single_edge, mark_threaded_blocks): Likewise.
1993 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1994 (register_jump_thread): Do not attempt to thread to a NULL edge.
1996 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1998 * function.c (init_function_start): Call decide_function_section.
1999 * varasm.c (decide_function_section): New function.
2000 (assemble_start_function): When not using
2001 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2002 or first_function_block_is_cold.
2003 * rtl.h (decide_function_section): Declare.
2005 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2006 Jakub Jelinek <jakub@redhat.com>
2009 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2010 only succeed if req_mode is the same as set_mode.
2012 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2014 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2015 * genemit.c (gen_exp): Handle RETURN.
2016 * emit-rtl.c (verify_rtx_sharing): Likewise.
2017 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2018 * rtl.c (copy_rtx): RETURN is shared.
2019 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2021 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2022 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2023 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2024 * config/cris/cris.c (cris_expand_return): Likewise.
2025 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2026 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2027 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2028 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2029 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2031 * config/v850/v850.c (expand_epilogue): Likewise.
2032 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2033 * config/arm/arm.md (epilogue): Likewise.
2034 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2035 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2036 variable to ret_reg.
2038 2011-05-03 Richard Guenther <rguenther@suse.de>
2041 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2042 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2043 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2045 2011-05-03 Richard Guenther <rguenther@suse.de>
2047 * c-decl.c (grokdeclarator): Instead of looking at
2048 TREE_OVERFLOW check if the constant fits in the index type.
2050 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2052 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2053 (vec_store_lanes<mode><mode>): Likewise.
2055 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2057 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2058 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2059 convert_optab_index values.
2060 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2061 * genopinit.c (optabs): Initialize the new optabs.
2062 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2063 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2064 (expand_STORE_LANES): New functions.
2065 * tree.h (build_array_type_nelts): Declare.
2066 * tree.c (build_array_type_nelts): New function.
2067 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2068 (vect_model_load_cost): Likewise.
2069 (vect_store_lanes_supported, vect_load_lanes_supported)
2070 (vect_record_strided_load_vectors): Declare.
2071 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2072 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2073 (vect_transform_strided_load): Split out statement recording into...
2074 (vect_record_strided_load_vectors): ...this new function.
2075 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2076 (write_vector_array, create_array_ref): New functions.
2077 (vect_model_store_cost): Add store_lanes_p argument.
2078 (vect_model_load_cost): Add load_lanes_p argument.
2079 (vectorizable_store): Try to use store-lanes functions for
2081 (vectorizable_load): Likewise load-lanes and loads.
2082 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2083 to vect_model_store_cost.
2084 (vect_build_slp_tree): Likewise vect_model_load_cost.
2086 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2088 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2089 * hooks.c (hook_bool_mode_uhwi_false): New function.
2090 * target.def (array_mode_supported_p): New hook.
2091 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2092 * doc/tm.texi: Regenerate.
2093 * stor-layout.c (mode_for_array): New function.
2094 (layout_type): Use it.
2095 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2096 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2098 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2101 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2102 for -fstack-check if the size to allocate is negative.
2104 2011-05-02 Lawrence Crowl <crowl@google.com>
2106 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2107 (timevar_cond_start): New for starting a timer only when it is not
2109 (timevar_cond_stop): New for stopping a timer when it was not already
2112 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2113 (timevar_cond_start): New as above.
2114 (timevar_cond_stop): New as above.
2116 * timevar.def: Add start/stop timers for compiler phases,
2117 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2118 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2119 and TV_PHASE_FINALIZE.
2120 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2121 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2122 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2123 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2124 Make unused TV_OVERLOAD into a start/stop timer.
2126 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2127 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2128 to indicate that they are start/stop timers.
2130 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2131 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2132 Move initialization to do_compile.
2133 (do_compile): Add initialization from above.
2134 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2136 * c-decl.c (c_write_global_declarations): Add start/stop of
2137 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2139 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2140 or TV_PARSE_INLINE, as appropriate.
2141 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2142 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2144 2011-05-02 Jason Merrill <jason@redhat.com>
2147 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2149 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2152 * c-decl.c (finish_decl): Only create a composite if the types are
2155 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2157 * config/fr30/fr30-protos.h (Mmode): Don't define.
2158 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2159 definition where used.
2160 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2161 define. Expand definitions where used.
2162 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2163 Expand definitions where used.
2164 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2165 rx_function_arg, rx_function_arg_advance,
2166 rx_function_arg_boundary): Expand definitions of those macros.
2167 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2168 definition where used.
2170 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2172 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2174 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2175 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2176 with *movv2sf_internal_rex64_avx.
2177 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2178 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2179 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2180 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2181 "vex" in "prefix" attribute calculation.
2182 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2184 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2187 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2188 inputs match the output.
2190 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2193 * config/m68k/m68k.c (m68k_expand_prologue): Set
2194 current_function_static_stack_size.
2196 2011-05-02 Jan Hubicka <jh@suse.cz>
2198 * lto-streamer.c (lto_streamer_cache_insert_1,
2199 lto_streamer_cache_lookup, lto_streamer_cache_create,
2200 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2201 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2203 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2205 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2206 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2207 config/m68k/t-opts: New files.
2208 * config/m68k/m68k-tables.opt: New file (generated).
2209 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2210 extra_options and m68k/t-opts to tmake_file.
2211 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2212 (all_isas): Initialize using m68k-isas.def.
2213 (all_microarchs): Initialize using m68k-microarchs.def.
2214 (m68k_find_selection): Remove.
2215 (m68k_handle_option): Don't assert that global structures are in
2216 use. Use error_at. Access variables via opts pointer. Don't
2217 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2218 directly for -m68020-40 and -m68020-60.
2219 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2220 m68k_tune_entry here.
2221 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2223 (m68k_library_id_string): Remove declaration.
2224 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2225 (m68k_library_id_string): New Variable.
2226 (march=, mcpu=, mtune=): Use Enum and Var.
2228 2011-05-02 Richard Guenther <rguenther@suse.de>
2230 * varasm.c (output_constructor_regular_field): Compute zero-based
2231 index with double-ints. Make sure to ICE instead of producing
2233 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2234 in asserts. Properly use a signed type.
2236 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2238 * config/i386/sse.md (V): New mode iterator.
2239 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2241 (V_256): Rename from AVX256MODE.
2242 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2243 condition to all users.
2245 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2246 condition to all users.
2247 (VF_128): Make V4SF mode unconditional.
2248 (VF_256): Rename from AVX256MODEF2P.
2249 (VI4F_128): Rename from SSEMODE4S.
2250 (VI8F_128): Rename from SSEMODE2D.
2251 (VI4F_256): Rename from AVX256MODE8P.
2252 (VI8F_256): Rename from AVX256MODE4P.
2253 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2254 (ssescalarmodesuffix): Remove SF and DF modes.
2255 (SSEMODE124): Remove.
2256 (SSEMODE1248): Ditto.
2257 (SSEMODEF2P): Ditto.
2258 (AVXMODEF2P): Ditto.
2259 (AVXMODEFDP): Ditto.
2260 (AVXMODEFSP): Ditto.
2261 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2263 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2265 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2266 xop_pcmov_<mode>256. Use V mode iterator.
2268 Adjust RTX patterns globally for renamed mode attributes.
2270 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2272 * haifa-sched.c (sched_emit_insn): Emit insn before first
2273 non-scheduled insn. Inform back-end about new insn. Add
2274 new insn to scheduled_insns list.
2276 2011-05-02 Richard Guenther <rguenther@suse.de>
2278 PR tree-optimization/48822
2279 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2280 (process_scc): Indicate which iteration we start.
2282 2011-05-02 Jan Hubicka <jh@suse.cz>
2284 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2285 (lto_section_overrun): New.
2286 * lto-section-out.c (append_block): Rename to ...
2287 (lto_append_block): ... this one; export.
2288 (lto_output_1_stream): Move lto lto-streamer.h
2289 (lto_output_data_stream): Update.
2290 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2291 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2294 2011-05-02 Richard Guenther <rguenther@suse.de>
2296 * tree.c (tree_code_counts): New global array.
2297 (record_node_allocation_statistics): Count individual tree codes.
2298 (dump_tree_statistics): Dump individual code stats.
2300 2011-05-01 Jan Hubicka <jh@suse.cz>
2302 * ipa-inline.c (caller_growth_limits): Fix thinko when
2303 looking for largest stack frame.
2304 * ipa-inline.h (dump_inline_summary): Declare.
2305 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2307 (dump_inline_summary): Export.
2308 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2310 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2312 * reginfo.c (memory_move_cost): Change rclass argument type form
2313 'enum reg_class' to reg_class_t.
2314 * reload.h (memory_move_cost): Update prototype.
2315 * postreload.c reload_cse_simplify_set): Change type dclass var to
2317 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2319 (ira_allocate_and_set_costs): Change aclass argument type form
2320 'enum reg_class' to reg_class_t.
2321 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2322 Change aclass argument type to reg_class_t.
2323 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2325 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2326 memory_move_cost call.
2328 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2329 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2330 Change type tmp var to reg_class_t.
2332 2011-04-30 Jan Hubicka <jh@suse.cz>
2334 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2335 inlining into function with flatten attribute.
2336 (want_inline_small_function_p): Be more realistic about inlining
2337 cold calls where callee size grows.
2339 2011-04-30 Jan Hubicka <jh@suse.cz>
2341 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2344 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2346 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2347 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2348 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2349 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2350 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2351 (print_operand): Rename to...
2352 (sparc_print_operand): ...this. Make static. Adjust
2353 sparc_print_operand function call.
2354 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2357 2011-04-30 Jan Hubicka <jh@suse.cz>
2360 * ipa-inline.c (early_inliner): Disable when doing late
2361 addition of function.
2363 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2365 * dwarf2out.c (get_address_mode): New inline.
2366 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2367 if not dwarf_strict emit
2368 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2369 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2370 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2371 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2372 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2373 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2374 mem_loc_descriptor callers.
2375 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2376 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2377 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2378 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2379 (base_types): New variable.
2380 (get_base_type_offset, calc_base_type_die_sizes,
2381 base_type_for_mode, mark_base_types, base_type_cmp,
2382 move_marked_base_types): New functions.
2383 (calc_die_sizes): Assert that die_offset is 0 or equal to
2385 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2386 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2387 callers. If not dwarf_strict, call mem_loc_descriptor even for
2388 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2389 (gen_subprogram_die): Don't give up on call site parameters
2390 with non-integral or large integral modes. Adjust
2391 mem_loc_descriptor callers.
2392 (prune_unused_types): Call prune_unused_types_mark on base_types
2394 (resolve_addr): Call mark_base_types.
2395 (dwarf2out_finish): Call move_marked_base_types.
2397 PR tree-optimization/48809
2398 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2400 (gen_inbound_check): Don't compute index_expr - range_min in utype
2401 again, instead reuse SSA_NAME initialized in build_arrays.
2402 Remove two useless gsi_for_stmt calls.
2404 2011-04-29 Jeff Law <law@redhat.com>
2406 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2408 2011-04-29 Martin Jambor <mjambor@suse.cz>
2410 * cgraph.h (cgraph_postorder): Remove declaration.
2411 * ipa-utils.h (ipa_free_postorder_info): Declare.
2412 (ipa_reverse_postorder): Likewise.
2413 * cgraphunit.c: Include ipa-utils.h.
2414 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2415 * ipa-inline.c: Include ipa-utils.h.
2416 (ipa_inline): Update call to ipa_reverse_postorder.
2417 * ipa-pure-const.c (propagate_pure_const): Update call to
2418 ipa_reduced_postorder and ipa_print_order. Call
2419 ipa_free_postorder_info to clean up.
2420 (propagate_nothrow): Likewise.
2421 * ipa-reference.c (propagate): Removed a useless call to
2422 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2423 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2424 * ipa.c: Include ipa-utils.h.
2425 (ipa_profile): Update call to ipa_reverse_postorder.
2426 (cgraph_postorder): Moved to...
2427 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2428 (ipa_utils_print_order): Renamed to ipa_print_order.
2429 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2431 (ipa_free_postorder_info): New function.
2432 * passes.c: Include ipa-utils.h.
2433 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2434 (ipa_write_summaries): Likewise.
2435 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2436 (cgraphunit.o): Likewise.
2438 (ipa-inline.o): Likewise.
2440 2011-04-29 Jan Hubicka <jh@suse.cz>
2442 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2443 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2444 * ipa-inline.h (clause_t): Turn into unsigned int.
2445 * ipa-inline-analysis.c (add_clause): Do more simplification.
2446 (and_predicates): Shortcut more cases.
2447 (predicates_equal_p): Move forward; check that clauses are properly
2449 (or_predicates): Shortcut more cases.
2450 (edge_execution_predicate): Rewrite as...
2451 (set_cond_stmt_execution_predicate): ... this function; handle
2452 __builtin_constant_p.
2453 (set_switch_stmt_execution_predicate): New .
2454 (compute_bb_predicates): New.
2455 (will_be_nonconstant_predicate): Update TODO.
2456 (estimate_function_body_sizes): Use compute_bb_predicates
2457 and free them later, always try to estimate if stmt is constant.
2458 (estimate_time_after_inlining, estimate_size_after_inlining):
2459 Gracefully handle optimized out edges.
2460 (read_predicate): Fix off by one error.
2462 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2464 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2466 2011-04-27 Xinliang David Li <davidxl@google.com>
2468 * tree-profile.c (init_ic_make_global_vars): Set
2469 tls attribute on ic vars.
2470 * coverage.c (coverage_end_function): Initialize
2471 function_list with zero.
2473 2011-04-29 Richard Guenther <rguenther@suse.de>
2475 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2476 for the type of the result.
2477 (fold_builtin_isascii): Likewise.
2478 (fold_builtin_toascii): Use integer_type_node where appropriate.
2479 (fold_builtin_logb): Likewise.
2480 (fold_builtin_frexp): Likewise.
2481 (fold_builtin_strstr): Likewise.
2482 (fold_builtin_strpbrk): Likewise.
2483 (fold_builtin_fputs): Likewise.
2484 (fold_builtin_sprintf): Likewise.
2485 (fold_builtin_snprintf): Likewise.
2486 (fold_builtin_printf): Likewise.
2487 (do_mpfr_remquo): Use a proper type for the assigned constant.
2488 (do_mpfr_lgamma_r): Likewise.
2489 * dwarf2out.c (resolve_one_addr): Use size_int.
2490 * except.c (init_eh): Likewise.
2491 (assign_filter_values): Use integer_type_node for filter values.
2492 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2494 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2495 for EH region numbers.
2496 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2497 for the shift amount.
2499 2011-04-29 Richard Guenther <rguenther@suse.de>
2501 * expr.h (expand_shift): Rename to ...
2502 (expand_variable_shift): ... this.
2503 (expand_shift): Take a constant shift amount.
2504 * expmed.c (expand_shift): Rename to ...
2505 (expand_variable_shift): ... this.
2506 (expand_shift): New wrapper around expand_variable_shift.
2507 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2508 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2509 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2510 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2511 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2512 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2513 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2514 emit_store_flag_1, emit_store_flag): Likewise.
2515 * builtins.c (expand_builtin_signbit): Likewise.
2516 * calls.c (load_register_parameters): Likewise.
2517 * function.c (assign_parm_setup_block): Likewise.
2518 * lower-subreg.c (resolve_shift_zext): Likewise.
2519 * optabs.c (widen_bswap, expand_abs_nojump,
2520 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2521 * spu/spu.c (spu_expand_extv): Likewise.
2522 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2524 2011-04-29 Richard Guenther <rguenther@suse.de>
2526 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2527 for the remapped region number.
2528 * predict.c (build_predict_expr): Use integer_type_node for the
2530 * fold-const.c (fold_binary_loc): Use integer_type_node for
2531 the shift amount. Use a proper type for the PLUS_EXPR operand.
2533 2011-04-29 Michael Matz <matz@suse.de>
2535 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2536 other trees that just builtins.
2537 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2539 2011-04-29 Richard Guenther <rguenther@suse.de>
2541 * tree-nested.c (get_trampoline_type): Use size_int.
2542 (get_nl_goto_field): Likewise.
2543 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2545 (lower_eh_constructs_2): Likewise.
2546 (lower_resx): Likewise.
2547 (lower_eh_dispatch): Likewise.
2548 * tree-mudflap.c (mf_build_string): Use size_int.
2549 (mudflap_register_call): Use integer_type_node for the flag.
2550 (mudflap_enqueue_constant): Use size_int.
2551 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2552 instead of rebuilding it.
2554 2011-04-29 Richard Guenther <rguenther@suse.de>
2556 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2557 Handle OBJ_TYPE_REF.
2558 (find_func_aliases_for_call): Use it more consistently.
2560 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2562 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2563 (rank_for_schedule): Use it.
2564 (schedule_block): Set it.
2566 2011-04-28 David Li <davidxl@google.com>
2568 * tree.c (crc32_string): Use crc32_byte.
2569 (crc32_byte): New function.
2570 * tree.h (crc32_byte): New function.
2571 * gcov.c (read_graph_file): Handle new cfg_cksum.
2572 (read_count_file): Ditto.
2573 * profile.c (instrument_values): Ditto.
2574 (get_exec_counts): Ditto.
2575 (read_profile_edge_counts): Ditto.
2576 (compute_branch_probabilities): Ditto.
2577 (compute_value_histograms): Ditto.
2578 (branch_prob): Ditto.
2579 (end_branch_prob): Ditto.
2580 * coverage.c (read_counts_file): Ditto.
2581 (get_coverage_counts): Ditto.
2582 (tree_coverage_counter_addr): Ditto.
2583 (coverage_checksum_string): Ditto.
2584 (coverage_begin_output): Ditto.
2585 (coverage_end_function): Ditto.
2586 (build_fn_info_type): Ditto.
2587 (build_fn_info_value): Ditto.
2588 * libgcov.c (gcov_exit): Ditto.
2589 * gcov-dump.c (tag_function): Ditto.
2590 (compute_checksum): Remove.
2592 2011-04-29 Alan Modra <amodra@gmail.com>
2594 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2595 unspec plus offset. Tidy macho code.
2597 2011-04-29 Martin Jambor <mjambor@suse.cz>
2599 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2600 node instead of a decl. Update all callers.
2601 * cgraph.h: Update declaration.
2603 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2605 PR tree-optimization/48765
2606 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2607 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2608 to indicate if loop aware SLP is being used. Scan the statements
2609 and update the vectorization factor according to the type of
2610 vectorization before statement analysis.
2611 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2612 pass it to vect_analyze_loop_operations.
2613 (vectorizable_reduction): Set number of copies to 1 in case of pure
2615 * tree-vect-stmts.c (vectorizable_conversion,
2616 vectorizable_assignment, vectorizable_shift,
2617 vectorizable_operation, vectorizable_type_demotion,
2618 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2620 (vectorizable_condition): Move the check that it is not SLP
2621 vectorization before the number of copies check.
2622 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2623 to vectorize the loop using SLP.
2625 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2628 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2631 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2633 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2634 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2635 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2636 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2637 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2639 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2640 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2641 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2642 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2643 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2644 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2646 * config/i386/linux.h (REG_NAME): Don't define.
2647 * config/i386/linux64.h (REG_NAME): Don't define.
2648 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2649 Undefine before defining.
2651 2011-04-28 Jan Hubicka <jh@suse.cz>
2653 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2654 nonconstant_names array.
2655 (estimate_function_body_sizes): Build nonconstant_names array; handle
2656 BUILT_IN_CONSTANT_P.
2658 2011-04-28 Richard Guenther <rguenther@suse.de>
2662 2011-04-28 Richard Guenther <rguenther@suse.de>
2664 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2665 as late as possible.
2667 2011-04-28 Richard Guenther <rguenther@suse.de>
2669 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2670 (debug_constraint): Do it here.
2671 (dump_constraints): And here.
2672 (rewrite_constraints): And here.
2673 (dump_constraint_edge): Remove.
2674 (dump_constraint_graph): Rewrite to produce DOT output.
2675 (solve_constraints): Build succ graph as late as possible.
2676 Dump constraint graphs before and after solving.
2678 2011-04-28 Richard Guenther <rguenther@suse.de>
2680 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2681 New function split out from ...
2682 (find_func_aliases): ... here. Call it.
2683 (find_func_aliases_for_call): Likewise.
2685 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2687 * internal-fn.h (internal_fn_name_array): Declare.
2688 (internal_fn_flags_array): Likewise.
2690 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2692 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2693 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2695 (ssemodefsuffix): Remove.
2696 (ssevecmodesuffix): New mode attribute.
2697 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2698 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2699 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2700 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2701 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2702 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2703 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2704 ssemodesuffix mode attribute.
2705 (float splitters): Use ssevecmodesuffix mode attribute.
2706 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2707 (sseinsmode): Rename from avxvecmode.
2708 (avxsizesuffix): Rename from avxmodesuffix.
2709 (sseintvecmode): Rename from avxpermvecmode.
2710 (ssedoublevecmode): Rename from ssedoublesizemode.
2711 (ssehalfvecmode): Rename from avxhalfvecmode.
2712 (ssescalarmode): Rename from avxscalarmode.
2713 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2714 templates for ssemodesuffix mode attribute.
2715 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2718 Adjust RTX patterns globally for renamed mode attributes.
2720 2011-04-27 Jan Hubcika <jh@suse.cz>
2722 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2723 * ipa-inline-analysis.c: Include alloc-pool.h.
2724 (edge_predicate_pool): New.
2725 (trye_predicate_p): New function
2726 (false_predicate_p): New function.
2727 (add_clause): Sanity check that false clauses are "optimized";
2728 never add clauses to predicate that is already known to be false.
2729 (and_predicate): Use flase_predicate_p.
2730 (evaulate_predicate): Rename to ...
2731 (evaluate_predicate): ... this one; update all callers; assert
2732 that false is not listed among possible truths.
2733 (dump_predicate): Use true_predicate_p.
2734 (account_size_time): Use false_predicate_p.
2735 (evaulate_conditions_for_edge): Rename to ...
2736 (evaluate_conditions_for_edge) ... this one.
2737 (edge_set_predicate): New function.
2738 (inline_edge_duplication_hook): Duplicate edge predicates.
2739 (inline_edge_removal_hook): Free edge predicates.
2740 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2741 (dump_inline_summary): Update.
2742 (estimate_function_body_sizes): Set edge predicates.
2743 (estimate_calls_size_and_time): Handle predicates.
2744 (estimate_callee_size_and_time): Update.
2745 (remap_predicate): Add toplev_predicate; update comment.
2746 (remap_edge_predicates): New function.
2747 (inline_merge_summary): Compute toplev predicate; update.
2748 (read_predicate): New function.
2749 (read_inline_edge_summary): Use it.
2750 (inline_read_section): Likewise.
2751 (write_predicate): New function.
2752 (write_inline_edge_summary): Use it.
2753 (inline_write_summary): Likewise.
2754 (inline_free_summary): Free alloc pool and edge summary vec.
2756 2011-04-27 Richard Guenther <rguenther@suse.de>
2758 * tree-ssa-structalias.c (changed_count): Remove.
2759 (changed): Use a bitmap.
2760 (unify_nodes): Adjust.
2761 (do_sd_constraint): Likewise.
2762 (do_ds_constraint): Likewise.
2763 (do_complex_constraint): Likewise.
2764 (solve_graph): Likewise.
2766 2011-04-27 Jan Hubicka <jh@suse.cz>
2768 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2770 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2772 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2773 (avx_vperm2f128_*_operand): Ditto.
2774 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2775 Use avx_vpermilp_parallel in insn condition.
2776 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2777 Use avx_vperm2f128_parallel in insn condition.
2779 2011-04-27 Richard Guenther <rguenther@suse.de>
2781 * Makefile.in (tree-ssa-structalias.o): Remove
2782 gt-tree-ssa-structalias.h dependency.
2783 (GTFILES): Remove tree-ssa-structalias.c.
2784 * tree.c (allocate_decl_uid): New function.
2785 (make_node_stat): Use it.
2786 (copy_node_stat): Likewise.
2787 * tree.h (allocate_decl_uid): Declare.
2788 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2789 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2790 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2791 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2792 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2793 (struct heapvar_map): Likewise.
2794 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2795 heapvar_insert): Likewise.
2796 (make_heapvar_for): Rename to ...
2797 (make_heapvar): ... this. Simplify.
2798 (fake_var_decl_obstack): New global var.
2799 (build_fake_var_decl): New function.
2800 (make_constraint_from_heapvar): Adjust.
2801 (handle_lhs_call): Likewise.
2802 (create_function_info_for): Likewise.
2803 (intra_create_variable_infos): Likewise.
2804 (init_alias_vars): Allocate fake_var_decl_obstack.
2805 (init_alias_heapvars, delete_alias_heapvars): Remove.
2806 (compute_points_to_sets): Do not call init_alias_heapvars.
2807 (ipa_pta_execute): Likewise.
2808 (delete_points_to_sets): Free fake_var_decl_obstack.
2810 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2812 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2813 (si_from_UTItype, si_to_UTItype): New functions.
2814 (__udivmodti4): Use them to implement type-punning.
2815 * config/spu/multi3.c (union qword_TItype): New data type.
2816 (si_from_TItype, si_to_TItype): New functions.
2817 (__multi3): Use them to implement type-punning.
2819 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2821 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2823 2011-04-27 Jan Hubicka <jh@suse.cz>
2825 * ipa-prop.c (function_insertion_hook_holder): New holder.
2826 (ipa_add_new_function): New function.
2827 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2828 Register/deregister holder.
2830 2011-04-27 Richard Guenther <rguenther@suse.de>
2832 PR tree-optimization/48772
2833 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2835 2011-04-27 Richard Guenther <rguenther@suse.de>
2837 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2838 TARGET_MEM_REF handling.
2840 2011-04-27 Nick Clifton <nickc@redhat.com>
2842 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2843 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2844 (REG_CLASS_NAMES): Likewise.
2845 (REG_CLASS_CONTENTS): Likewise.
2846 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2847 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2848 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2849 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2850 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2851 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2852 duplicate register classes.
2853 (frv_class_likely_spilled_p): Likewise.
2854 (frv_register_move_cost): Likewise.
2856 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2857 end of the regno_reg_class array.
2859 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2862 * c-typeck.c (build_binary_op): Don't wrap arguments if
2863 int_operands is true.
2865 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2868 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2869 targetm.calls.must_pass_in_stack for void type.
2871 2011-04-26 Jan Hubicka <jh@suse.cz>
2873 * cgraphbuild.c (build_cgraph_edges): Update call
2874 of cgraph_create_edge and cgraph_create_indirect_edge.
2875 * cgraph.c (cgraph_create_edge_including_clones,
2876 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2877 cgraph_update_edges_for_call_stmt_node): Do not take nest
2878 argument; do not initialize call_stmt_size/time.
2879 (dump_cgraph_node): Do not dump nest.
2880 (cgraph_clone_edge): Do not take loop_nest argument;
2881 do not propagate it; do not clone call_stmt_size/time.
2882 (cgraph_clone_node): Likewise.
2883 (cgraph_create_virtual_clone): Update.
2884 * cgraph.h (struct cgraph_edge): Remove
2885 call_stmt_size/call_stmt_time/loop_nest.
2886 (cgraph_create_edge, cgraph_create_indirect_edge,
2887 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2889 * tree-emutls.c (gen_emutls_addr): Update.
2890 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2891 loop_nest; handle indirect calls, too.
2892 (clone_inlined_nodes): Do not care about updating inline summaries.
2893 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2894 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2895 stream call_stmt_size/call_stmt_time/loop_nest.
2896 * ipa-inline.c (edge_badness): Update.
2897 (ipa_inline): dump summaries after inlining.
2898 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2900 (inline_edge_summary): New function.
2901 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2902 (inline_edge_removal_hook): Handle edge summaries.
2903 (inline_edge_duplication_hook): New hook.
2904 (inline_summary_alloc): Alloc hooks.
2905 (initialize_growth_caches): Do not register removal hooks.
2906 (free_growth_caches); Do not free removal hook.
2907 (dump_inline_edge_summary): New function.
2908 (dump_inline_summary): Use it.
2909 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2910 (inline_update_callee_summaries): New function.
2911 (inline_merge_summary): Use it.
2912 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2913 (read_inline_edge_summary): New function.
2914 (inline_read_section): Use it.
2915 (write_inline_edge_summary): New function.
2916 (inline_write_summary): Use it.
2917 (inline_free_summary): Free edge new holders.
2918 * tree-inline.c (copy_bb): Update.
2920 2011-04-26 Jason Merrill <jason@redhat.com>
2922 * tree-eh.c (lower_try_finally_switch): Create the label along with
2923 the CASE_LABEL_EXPR.
2925 2011-04-26 David S. Miller <davem@davemloft.net>
2926 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2928 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2929 * configure: Regenerate.
2931 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2934 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2936 (VEC_reduc): New code iterator and splitters for vector reduction.
2937 (VEC_reduc_name): Ditto.
2938 (VEC_reduc_rtx): Ditto.
2939 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2940 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2942 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2943 support for extracting SF on VSX.
2945 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2946 generating xscvspdp.
2947 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2948 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2949 double add, minimum, maximum vector reduction.
2950 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2951 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2952 optimize double vector reduction.
2953 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2955 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2957 * config/fr30/fr30.h (inhibit_libc): Don't define.
2958 * config/m32r/m32r-protos.h: Correct comment.
2959 * config/v850/v850.h (GHS_default_section_names,
2960 GHS_current_section_names): Use tree, not union tree_node *.
2962 2011-04-26 Xinliang David Li <davidxl@google.com>
2964 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2965 * c-family/c-opts.c (c_common_handle_option): Set
2966 warn_maybe_uninitialized.
2967 * opts.c (common_handle_option): Ditto.
2968 * common.opt: New option.
2969 * tree-ssa.c (warn_uninit): Add one more parameter.
2970 (warn_uninitialized_var): Pass warning code.
2971 * tree-flow.h: Interface change.
2974 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2976 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2977 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2978 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2980 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2982 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2983 * config/mips/mips.opt (mmips-tfile): Remove.
2985 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2986 mips-tdump reference to ...
2987 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2988 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2989 reference by Tru64 UNIX.
2991 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2994 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2995 is error_mark_node, set value to NULL.
2997 PR tree-optimization/48734
2998 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2999 if return value from maybe_fold_*_comparsions isn't something
3000 the code is prepared to handle.
3002 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3004 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3006 (ext_QIreg_nomode_operands): Remove.
3007 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3011 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3013 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3015 2011-04-26 Richard Guenther <rguenther@suse.de>
3017 * c-typeck.c (build_unary_op): Do not expand array-refs via
3018 pointer arithmetic. Only adjust qualifiers for function types.
3020 2011-04-26 Richard Guenther <rguenther@suse.de>
3023 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3024 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3025 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3026 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3028 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3030 * doc/extend.texi: Document __underlying_type.
3032 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3034 * config/rs6000/titan.md (automata_option "progress"): Remove.
3036 2011-04-25 Jeff Law <law@redhat.com>
3038 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3040 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3042 * system.h (ENUM_BITFIELD): Remove.
3044 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3045 Eric Botcazou <ebotcazou@adacore.com>
3047 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3048 for STORE_FLAG_VALUE==-1 case.
3050 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3053 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3054 LEGITIMATE_PIC_OPERAND_P.
3056 2011-04-24 Jan Hubicka <jh@suse.cz>
3058 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3060 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3061 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3062 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3063 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3064 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3065 Sanity check predicate length.
3066 (remap_predicate): Likewise; sanity check jump functions.
3067 (inline_read_section, inline_write_summary): Sanity check
3070 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3073 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3074 __is_literal_type, and __is_trivial; update throughout about
3075 possibly cv-qualified void types.
3077 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3079 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3080 testsuite and make it version agnostic.
3082 2011-04-22 Jan Hubicka <jh@suse.cz>
3084 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3086 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3089 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3090 to VOID_TYPE even around MODIFY_EXPR.
3092 2011-04-22 Mike Stump <mikestump@comcast.net>
3094 * gensupport.c (read_md_rtx): Fix typo in comment.
3095 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3098 2011-04-22 Jan Hubicka <jh@suse.cz>
3100 * gengtype.c (open_base_files): Add ipa-inline.h include.
3101 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3102 ipa-prop.c; update all uses.
3103 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3104 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3105 merge summary of inlined function into former caller.
3106 * ipa-inline.c (max_benefit): Remove.
3107 (edge_badness): Compensate for removal of benefits.
3108 (update_caller_keys): Use
3109 reset_node_growth_cache/reset_edge_growth_cache.
3110 (update_callee_keys): Likewise.
3111 (update_all_callee_keys): Likewise.
3112 (inline_small_functions): Do not collect max_benefit; do not reset
3113 estimated_growth; call free_growth_caches and initialize_growth_caches.
3114 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3115 struct size_time_entry): New structures.
3116 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3117 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3118 and estimated_growth.
3119 (edge_growth_cache_entry): New structure.
3120 (node_growth_cache, edge_growth_cache): New global vars.
3121 (estimate_growth): Turn into inline.
3122 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3123 initialize_growth_caches, free_growth_caches): Declare.
3124 (estimate_edge_growth): Rewrite.
3125 (estimate_edge_time): Implement as inline cache lookup.
3126 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3128 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3129 (NUM_CONDITIONS): New constant.
3130 (predicate_conditions): New enum.
3131 (IS_NOT_CONSTANT): New constant.
3132 (edge_removal_hook_holder): New var.
3133 (node_growth_cache, edge_growth_cache): New global vars.
3134 (true_predicate, single_cond_predicate, false_predicate,
3135 not_inlined_predicate, add_condition, add_clause, and_predicates,
3136 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3137 dump_clause, dump_predicate, account_size_time,
3138 evaulate_conditions_for_edge): New functions.
3139 (inline_summary_alloc): Move to heap.
3140 (inline_node_removal_hook): Clear condition and entry vectors.
3141 (inline_edge_removal_hook): New function.
3142 (initialize_growth_caches, free_growth_caches): New function.
3143 (dump_inline_summary): Update.
3144 (edge_execution_predicate): New function.
3145 (will_be_nonconstant_predicate): New function.
3146 (estimate_function_body_sizes): Compute BB and constantness predicates.
3147 (compute_inline_parameters): Do not clear estimated_growth.
3148 (estimate_edge_size_and_time): New function.
3149 (estimate_calls_size_and_time): New function.
3150 (estimate_callee_size_and_time): New function.
3151 (remap_predicate): New function.
3152 (inline_merge_summary): New function.
3153 (do_estimate_edge_time): New function based on...
3154 (estimate_edge_time): ... this one.
3155 (do_estimate_edge_growth): New function.
3156 (do_estimate_growth): New function based on....
3157 (estimate_growth): ... this one.
3158 (inline_analyze_function): Analyze after deciding on jump functions.
3159 (inline_read_section): New function.
3160 (inline_read_summary): Use it.
3161 (inline_write_summary): Write all the new data.
3162 * ipa-prop.c (ipa_get_param_decl_index): Export.
3163 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3164 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3166 (ipa_get_lattice): Move here from ipa-cp.c
3167 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3168 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3169 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3170 cgraph_edge_inlinable_p): Remove.
3171 * cgraphunit.c: Include ipainline.h
3172 (cgraph_process_new_functions): Update call of
3173 compute_inline_parameters.
3175 2011-04-22 Richard Guenther <rguenther@suse.de>
3177 * tree.c (build_int_cst): Properly create canonicalized integer
3179 (build_int_cst_type): Remove scary comments.
3181 2011-04-22 Xinliang David Li <davidxl@google.com>
3183 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3184 by default when -Wno-error is not specified.
3185 * opts-global.c (decode_options): Remove call to
3186 control_warning_options.
3188 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3190 PR tree-optimization/48717
3191 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3192 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3194 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3196 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3197 definition where used.
3199 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3202 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3203 TREE_STATIC variables declared inside of some OpenMP construct.
3205 2011-04-22 Martin Jambor <mjambor@suse.cz>
3208 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3210 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3213 * c-typeck.c (pop_init_level): Do not warn about initializing
3216 2011-04-22 Alan Modra <amodra@gmail.com>
3218 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3219 when returning call_cookie.
3220 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3221 pointers, to functions with no more vector args than the current
3222 function, and some non-local calls for ABI_V4.
3223 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3224 sibcall_nonlocal_aix64): Combine to ..
3225 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3226 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3227 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3228 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3229 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3231 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3232 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3233 sibcall_value_symbolic_64): Delete.
3235 2011-04-21 Xinliang David Li <davidxl@google.com>
3237 * cgraph.h: Remove pid.
3238 * cgraph.c: Remove pid.
3239 * value-prof.c (init_node_map): New function.
3240 (del_node_map): New function.
3241 (find_func_by_funcdef_no): New function.
3242 (gimple_ic_transform): Call new function.
3243 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3244 * function.c (get_last_funcdef_no): New function.
3245 * function.h (get_last_funcdef_no): New function.
3246 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3247 to libgcov function.
3248 (tree-profiling): Call node map init and delete function.
3250 2011-04-21 Ian Lance Taylor <iant@google.com>
3252 * godump.c (go_format_type): Use exported Go name for anonymous
3255 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3257 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3258 Call builtin_function_type_list instead of builtin_function_type.
3259 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3261 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3263 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3264 build_function_type_list instead of build_function_type.
3265 Delete variable `endlink'.
3267 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3269 * config/s390/s390.c (s390_init_builtins): Call
3270 build_function_type_list instead of build_function_type.
3272 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3274 * config/ia64/ia64.c (ia64_init_builtins): Call
3275 build_function_type_list instead of builtin_function_type.
3277 2011-04-21 Easwaran Raman <eraman@google.com>
3279 * cfgexpand.c (stack_var): Remove OFFSET...
3280 (add_stack_var): ...and its reference here...
3281 (expand_stack_vars): ...and here.
3282 (stack_var_cmp): Sort by descending order of size.
3283 (partition_stack_vars): Change heuristic.
3284 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3285 (dump_stack_var_partition): Add newline after each partition.
3287 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3288 Jeff Law <law@redhat.com>
3290 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3291 * gengtype.c (matching_file_name_substitute): Likewise.
3293 2011-04-21 Richard Guenther <rguenther@suse.de>
3296 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3298 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3300 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3302 2011-04-21 Richard Guenther <rguenther@suse.de>
3304 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3307 2011-04-21 Richard Guenther <rguenther@suse.de>
3309 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3310 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3311 Use DECL_P, not SSA_VAR_P.
3312 (ptr_derefs_may_alias_p): Likewise.
3313 (ptr_deref_may_alias_ref_p_1): Likewise.
3314 (decl_refs_may_alias_p): Likewise.
3315 (refs_may_alias_p_1): Likewise.
3316 (ref_maybe_used_by_call_p_1): Likewise.
3317 (call_may_clobber_ref_p_1): Likewise.
3318 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3319 are either MEM_REF or TARGET_MEM_REF.
3320 (indirect_refs_may_alias_p): Likewise.
3321 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3322 for MEM_EXPR of indirect calls.
3324 2011-04-21 Tristan Gingold <gingold@adacore.com>
3326 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3327 (dst_file_info_struct): Remove flen field.
3328 (lookup_filename): Remove code that set flen field.
3330 2011-04-21 Tristan Gingold <gingold@adacore.com>
3332 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3334 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3337 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3338 vec_extract and vec_concat for non-SSE4_1 targets.
3340 2011-04-21 Richard Guenther <rguenther@suse.de>
3342 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3345 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3347 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3349 (FILE): Don't undefine.
3351 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3353 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3355 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3357 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3358 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3359 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3361 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3362 definitions where used.
3363 * config/microblaze/microblaze.h (struct microblaze_args): Use
3364 rtx, not struct rtx_def *.
3365 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3367 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3368 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3369 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3370 not struct rtx_def *.
3371 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3373 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3375 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3377 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3379 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3380 operand_equal_p to compare DR_BASE_ADDRESSes.
3381 (vect_check_interleaving): Likewise.
3383 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3386 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3387 for all Neon struct constants.
3389 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3391 * target.def (legitimate_constant_p): New hook.
3392 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3393 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3394 * doc/tm.texi: Regenerate.
3395 * hooks.h (hook_bool_mode_rtx_true): Declare.
3396 * hooks.c (hook_bool_mode_rtx_true): Define.
3397 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3398 * calls.c (precompute_register_parameters): Replace uses of
3399 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3400 (emit_library_call_value_1): Likewise.
3401 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3402 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3403 * ira-costs.c (scan_one_insn): Likewise.
3404 * recog.c (general_operand, immediate_operand): Likewise.
3405 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3406 * reload1.c (init_eliminable_invariants): Likewise.
3408 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3410 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3411 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3413 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3414 * config/alpha/predicates.md (input_operand): Update call to
3415 alpha_legitimate_constant_p.
3417 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3418 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3419 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3420 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3421 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3422 (arm_legitimate_constant_p): New functions.
3423 (arm_cannot_force_const_mem): Make static.
3425 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3427 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3428 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3429 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3430 instead of bfin_legitimate_constant_p.
3431 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3432 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3434 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3436 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3438 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3439 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3440 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3441 (frv_legitimate_constant_p): Make static. Add a mode argument.
3443 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3444 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3445 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3447 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3448 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3449 * config/i386/i386.c (legitimate_constant_p): Rename to...
3450 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3452 (ix86_cannot_force_const_mem): Update accordingly.
3453 (ix86_legitimate_address_p): Likewise.
3454 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3455 * config/i386/i386.md: Update commentary.
3457 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3458 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3459 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3460 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3462 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3464 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3465 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3466 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3467 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3469 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3470 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3471 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3473 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3474 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3475 (m32r_legitimate_constant_p): New function.
3477 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3478 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3479 LEGITIMATE_CONSTANT_P.
3480 (LEGITIMATE_CONSTANT_P): Delete.
3481 * config/m68k/m68k.c (m68k_expand_prologue): Call
3482 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3483 (m68k_legitimate_constant_p): New function.
3484 * config/m68k/m68k.md: Update comments.
3486 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3487 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3488 (mcore_legitimate_constant_p): New function.
3490 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3491 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3492 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3493 Add a mode argument.
3494 (mep_legitimate_address): Update accordingly.
3495 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3497 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3499 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3500 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3501 static. Check OP's mode for VOIDmode.
3502 (microblaze_legitimate_constant_p): New function.
3503 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3505 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3506 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3507 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3508 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3509 * config/mips/predicates.md: Update comments.
3511 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3512 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3513 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3514 (mmix_legitimate_constant_p): Make static, return a bool, and take
3516 (mmix_print_operand_address): Update accordingly.
3518 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3520 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3521 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3522 static. Add a mode argument.
3523 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3525 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3527 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3528 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3529 (pa_legitimate_constant_p): New function.
3531 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3533 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3534 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3535 (pdp11_legitimate_constant_p): New function.
3537 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3538 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3539 (rs6000_legitimate_constant_p): New function.
3541 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3542 (rx_legitimate_constant_p): ...this.
3543 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3544 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3545 (rx_legitimate_constant_p): ...this.
3546 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3547 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3549 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3550 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3551 * config/s390/s390.c (legitimate_constant_p): Rename to...
3552 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3553 and add a mode argument.
3554 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3556 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3558 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3559 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3560 (sh_legitimate_constant_p): New function.
3562 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3563 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3564 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3565 (legitimate_constant_p): Rename to...
3566 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3568 (constant_address_p): Update accordingly.
3570 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3571 argument and return a bool.
3572 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3573 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3574 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3575 (spu_rtx_costs): Update accordingly.
3576 * config/spu/predicates.md (vec_imm_operand): Likewise.
3578 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3580 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3581 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3582 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3584 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3585 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3586 * config/vax/vax.c (legitimate_constant_p): Likewise.
3588 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3589 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3590 (xtensa_legitimate_constant_p): New function.
3592 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3594 * target.def (cannot_force_const_mem): Add a mode argument.
3595 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3596 * doc/tm.texi: Regenerate.
3597 * hooks.h (hook_bool_mode_rtx_false): Declare.
3598 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3599 (hook_bool_mode_const_rtx_true): Likewise.
3600 (hook_bool_mode_rtx_false): New function.
3601 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3602 to be non-VOID. Update call to cannot_force_const_mem.
3603 (find_reloads): Update accordingly.
3604 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3605 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3607 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3608 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3609 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3610 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3611 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3612 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3613 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3614 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3615 (m68k_cannot_force_const_mem): ...this new function.
3616 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3618 (mips_const_insns, mips_legitimize_const_move): Update calls.
3619 (mips_secondary_reload_class): Likewise.
3620 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3621 (pa_cannot_force_const_mem): ...this new function.
3622 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3623 (rs6000_cannot_force_const_mem): ...this new function.
3624 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3626 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3627 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3629 (xtensa_cannot_force_const_mem): ...this new function.
3631 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3633 * config/mips/mips.c (mips16_build_function_stub): Call
3634 build_function_type_list instead of build_function_type.
3635 (mips16_build_call_stub): Likewise.
3637 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3639 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3640 instead of build_function_type.
3642 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3644 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3645 instead of build_function_type.
3647 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3650 * config/i386/i386.md (insv): Change operand 0 constraint to
3651 "register_operand". Change operand 1 and 2 constraint to
3652 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3653 * config/i386/sse.md (sse4_1_pinsrb): Export.
3654 (sse2_pinsrw): Ditto.
3655 (sse4_1_pinsrd): Ditto.
3656 (sse4_1_pinsrq): Ditto.
3657 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3658 * config/i386/i386.c (ix86_expand_pinsr): New.
3660 2011-04-20 Easwaran Raman <eraman@google.com>
3662 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3663 containing union type only with -fstrict-aliasing.
3665 2011-04-20 Jim Meyering <meyering@redhat.com>
3667 Remove useless if-before-free tests.
3668 * calls.c (expand_call, save_area): Likewise.
3669 * cfgcleanup.c (try_forward_edges): Likewise.
3670 * collect2.c (collect_execute): Likewise.
3671 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3672 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3673 * coverage.c (coverage_checksum_string): Likewise.
3674 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3675 * cselib.c (cselib_init): Likewise.
3676 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3677 (df_set_clean_cfg): Likewise.
3678 * function.c (free_after_compilation): Likewise.
3679 * gcc.c (do_spec_1, main): Likewise.
3680 * gcov.c (create_file_names): Likewise.
3681 * gensupport.c (identify_predicable_attribute): Likewise.
3682 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3683 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3684 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3685 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3686 * ipa-pure-const.c (local_pure_const): Likewise.
3687 * ipa-reference.c (propagate): Likewise.
3688 * ira-costs.c (free_ira_costs): Likewise.
3689 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3690 * matrix-reorg.c (mat_free): Likewise.
3691 * prefix.c (get_key_value): Likewise.
3692 * profile.c (compute_value_histograms): Likewise.
3693 * reload1.c (free_reg_equiv): Likewise.
3694 * sched-deps.c (free_deps): Likewise.
3695 * sel-sched-ir.c (fence_clear): Likewise.
3696 * sese.c (set_rename, if_region_set_false_region): Likewise.
3697 * tree-data-ref.c (free_rdg): Likewise.
3698 * tree-eh.c (lower_try_finally): Likewise.
3699 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3700 * tree-ssa-live.c (delete_var_map): Likewise.
3701 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3702 * tree-ssa-pre.c (phi_trans_add): Likewise.
3704 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3706 PR tree-optimization/48611
3707 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3708 beyond ERT_MUST_NOT_THROW region.
3710 2011-04-20 Catherine Moore <clm@codesourcery.com>
3712 * config/mips/mips.opt (mfix-24k): New.
3713 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3714 * config/mips/mips.md (length): Increase by 4 for stores if
3716 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3717 all noreorder if fixing 24K errata.
3718 * doc/invoke.texi: Document mfix-24k.
3720 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3722 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3723 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3725 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3727 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3728 (const_ok_for_op): ... to here.
3730 2011-04-20 Kai Tietz <ktietz@redhat.com>
3732 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3733 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3735 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3737 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3739 2011-04-20 Richard Guenther <rguenther@suse.de>
3741 PR tree-optimization/47892
3742 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3745 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3747 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3749 2011-04-20 Tristan Gingold <gingold@adacore.com>
3751 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3753 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3757 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3758 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3759 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3760 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3761 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3763 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3766 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3767 (avr_asm_named_section, avr_asm_output_aligned_common,
3768 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3769 New functions to update...
3770 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3771 (avr_asm_init_sections): Overwrite section callbacks for
3772 data_section, bss_section.
3773 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3775 (avr_file_end): ...here.
3777 2011-04-20 Richard Guenther <rguenther@suse.de>
3780 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3781 objects and types here. Adjust for their offset before comparing.
3783 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3785 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3788 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3790 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3791 (GIMPLE_H): Include $(INTERNAL_FN_H).
3792 (OBJS-common): Add internal-fn.o.
3793 (internal-fn.o): New rule.
3794 * internal-fn.def: New file.
3795 * internal-fn.h: Likewise.
3796 * internal-fn.c: Likewise.
3797 * gimple.h: Include internal-fn.h.
3798 (GF_CALL_INTERNAL): New gf_mask.
3799 (gimple_statement_call): Put fntype into a union with a new
3801 (gimple_build_call_internal): Declare.
3802 (gimple_build_call_internal_vec): Likewise.
3803 (gimple_call_same_target_p): Likewise.
3804 (gimple_call_internal_p): New function.
3805 (gimple_call_internal_fn): Likewise.
3806 (gimple_call_fntype): Return null for internal calls.
3807 (gimple_call_set_fntype): Assert that the function is not internal.
3808 (gimple_call_set_fn): Likewise.
3809 (gimple_call_set_fndecl): Likewise.
3810 (gimple_call_set_internal_fn): New function.
3811 (gimple_call_addr_fndecl): Handle null functions.
3812 (gimple_call_return_type): Likewise null types.
3813 * gimple.c (gimple_build_call_internal_1): New function.
3814 (gimple_build_call_internal): Likewise.
3815 (gimple_build_call_internal_vec): Likewise.
3816 (gimple_call_same_target_p): Likewise.
3817 (gimple_call_flags): Handle calls to internal functions.
3818 (gimple_call_fnspec): New function.
3819 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3820 (gimple_has_side_effects): Handle null functions.
3821 (gimple_rhs_has_side_effects): Likewise.
3822 (gimple_call_copy_skip_args): Handle calls to internal functions.
3823 * cfgexpand.c (expand_call_stmt): Likewise.
3824 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3825 * gimple-fold.c (gimple_fold_call): Handle null functions.
3826 (gimple_fold_stmt_to_constant_1): Don't fold
3827 calls to internal functions.
3828 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3830 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3831 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3832 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3833 (do_warn_unused_result): Likewise.
3834 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3835 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3836 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3837 the target of a call.
3838 (initialize_hash_element): Update accordingly.
3839 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3840 (iterative_hash_hashable_expr): Handle calls to internal functions.
3841 (print_expr_hash_elt): Likewise.
3842 * tree-ssa-pre.c (can_value_number_call): Likewise.
3843 (eliminate): Handle null functions.
3844 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3845 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3846 (find_func_aliases): Likewise.
3847 * value-prof.c (gimple_ic_transform): Likewise.
3848 (gimple_indirect_call_to_profile): Likewise.
3849 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3850 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3852 2011-04-19 Jan Hubicka <jh@suse.cz>
3854 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3855 * ipa-inline.c (inline_small_functions): Compute summaries first,
3856 populate heap later.
3858 2011-04-19 Jan Hubicka <jh@suse.cz>
3860 * cgraph.h (save_inline_function_body): Remove.
3861 * ipa-inline-transform.c: New file, broke out of...
3862 * ipa-inline.c: ... this one; Update toplevel comment.
3863 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3865 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3866 (cgraph_mark_inline_edge): Rename to inline_call; move to
3867 ipa-inline-transform.c.
3868 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3869 move to ipa-inline-transform.c
3870 (recursive_inlining, inline_small_functions, flatten_function,
3871 ipa_inline, inline_always_inline_functions,
3872 early_inline_small_functions): Update.
3873 (inline_transform): Move to ipa-inline-transform.c.
3874 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3876 * Makefile.in (ipa-inline-transform.o): New file.
3877 * cgraphunit.c (save_inline_function_body): Move to
3878 ipa-inline-transform.c
3880 2011-04-19 DJ Delorie <dj@redhat.com>
3882 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3883 registers if we already know there aren't any.
3884 (m32c_emit_epilogue): Don't emit a barrier here.
3885 (m32c_emit_eh_epilogue): Likewise.
3886 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3887 operands at expand time.
3888 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3890 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3891 duplicates. Provide aliases instead.
3892 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3893 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3896 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3898 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3899 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3900 (general_or_i64_p, sparc_register_move_cost): New function.
3902 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3904 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3905 Add lynx, mipssde. Sort table.
3907 2011-04-19 Xinliang David Li <davidxl@google.com>
3909 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3912 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3915 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3916 is a SUBREG with non-MODE_INT mode inside of it.
3918 2011-04-19 Martin Jambor <mjambor@suse.cz>
3920 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3921 also according to actual contants.
3922 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3923 (gimple_fold_call): Use it.
3924 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3926 2011-04-19 Martin Jambor <mjambor@suse.cz>
3928 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3929 non-pointer assignments.
3931 2011-04-19 Martin Jambor <mjambor@suse.cz>
3933 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3934 account anc_offset and otr_type from the indirect edge info.
3935 * ipa-prop.c (get_ancestor_addr_info): New function.
3936 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3937 get_ancestor_addr_info, call it.
3938 (ipa_note_param_call): Do not initialize information about polymorphic
3939 calls, return the indirect call graph edge. Remove the last
3940 parameter, adjust all callers.
3941 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3942 parameters. Initialize polymorphic information in the indirect edge.
3944 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3947 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3948 the types if they have different enumeration identifiers.
3950 2011-04-19 Jan Hubicka <jh@suse.cz>
3952 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3953 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3954 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3955 (optimize_function_for_size_p) ... here.
3957 2011-04-19 Richard Guenther <rguenther@suse.de>
3960 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3963 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3965 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3966 if DECL_NO_INLINE_WARNING_P is set on the function.
3968 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3971 * reload1.c (inc_for_reload): Return void. All callers changed.
3972 (emit_input_reload_insns): Don't try to delete previous output
3973 reloads to a register, or record spill_reg_store for autoincs.
3975 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3977 * gengtype.h: Updated copyright year.
3978 (struct input_file_st): Add inpisplugin field.
3979 (type_fileloc): New function.
3981 (write_typed_struct_alloc_def): Add gcc_assert.
3982 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3983 (write_typed_alloc_defns): Don't output for plugin files.
3984 (input_file_by_name): Clear inpisplugin field.
3985 (main): Set inpisplugin field for plugin files.
3987 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3989 * gengtype-state.c (string_eq): New.
3990 (read_state): Use string_eq instead of strcmp when creating the
3993 2011-04-19 Wei Guozhi <carrot@google.com>
3996 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3997 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3999 * config/arm/constraints.md (Uu): New constraint.
4000 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4002 2011-04-19 Tristan Gingold <gingold@adacore.com>
4004 * config.gcc (-*-*-*vms): Added.
4005 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4007 * config/vms/vms-ld.c: New file.
4008 * config/vms/vms-ar.c: New file.
4009 * config/vms/t-vmsnative: New file.
4011 2011-04-18 Xinliang David Li <davidxl@google.com>
4013 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4015 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4018 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4019 if TREE_TYPE (v) is non-NULL.
4021 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4022 gimple_get_virt_mehtod_for_binfo.
4023 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4024 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4026 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4028 2011-04-18 Michael Matz <matz@suse.de>
4029 Steve Ellcey <sje@cup.hp.com>
4031 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4032 use its mode as source mode if it isn't VOIDmode.
4034 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4036 * doc/passes.texi: Fill crossref nodes.
4038 2011-04-18 Jim Meyering <meyering@redhat.com>
4040 Fix doubled-word typos in comments and strings
4041 * config/alpha/vms-unwind.h: s/for for/for/
4042 * config/arm/unwind-arm.h: Likewise.
4043 * config/microblaze/microblaze.c: Likewise.
4044 * config/sh/constraints.md: s/in in/in/
4045 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4047 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4049 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4050 (AVX_FLOAT_MODE_P): Ditto.
4051 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4052 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4053 (AVX_VEC_FLOAT_MODE_P): Ditto.
4054 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4055 (UNSPEC_MASKSTORE): Ditto.
4056 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4057 Merge from <sse>_movmsk<ssemodesuffix> and
4058 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4059 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4061 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4062 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4063 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4065 2011-04-18 Jan Hubicka <jh@suse.cz>
4067 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4069 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4070 (want_inline_function_called_once_p): Break out the logic from
4072 (edge_badness): Ensure that profile is not misupdated.
4073 (lookup_recursive_calls): Prioritize by call frequencies.
4074 (inline_small_functions): Move program size estimates here;
4075 actually process whole queue even when unit growth has been
4076 met. (to properly compute inline_failed reasons and for the
4077 case unit size decrease.) Revisit comments on recursive inlining.
4078 (ipa_inline): Remove unit summary code; first inline hot calls
4079 of functions called once, cold calls next.
4080 (order, nnodes): Remove unused variables.
4081 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4082 (GTFILES): Remove ipa-inline.c
4083 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4085 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4087 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4089 2011-04-18 Jie Zhang <jie@codesourcery.com>
4090 Richard Earnshaw <rearnsha@arm.com>
4092 * arm.c (neon_builtin_type_bits): Remove.
4093 (typedef enum neon_builtin_mode): New.
4094 (T_MAX): Don't define.
4095 (typedef enum neon_builtin_datum): Remove bits, codes[],
4096 num_vars and base_fcode. Add mode, code and fcode.
4097 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4098 VAR10): Change accordingly.
4099 (neon_builtin_data[]): Change accordingly
4100 (arm_init_neon_builtins): Change accordingly.
4101 (neon_builtin_compare): Remove.
4102 (locate_neon_builtin_icode): Remove.
4103 (arm_expand_neon_builtin): Change accordingly.
4105 * arm.h (enum arm_builtins): Move to ...
4106 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4108 * arm.c (arm_builtin_decl): Declare.
4109 (TARGET_BUILTIN_DECL): Define.
4110 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4111 (arm_builtin_decls[]): New.
4112 (arm_init_neon_builtins): Store builtin declarations in
4113 arm_builtin_decls[].
4114 (arm_init_tls_builtins): Likewise.
4115 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4116 (arm_builtin_decl): New.
4118 2011-04-18 Richard Guenther <rguenther@suse.de>
4120 * tree.c (upper_bound_in_type): Build properly canonicalized
4122 (lower_bound_in_type): Likewise.
4124 2011-04-18 Richard Guenther <rguenther@suse.de>
4126 * gimple.h (gimple_call_addr_fndecl): New function.
4127 (gimple_call_fndecl): Use it.
4128 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4130 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4131 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4133 2011-04-18 Richard Guenther <rguenther@suse.de>
4136 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4138 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4141 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4142 DECL_IN_CONSTANT_POOL without RTL.
4144 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4145 Ira Rosen <ira.rosen@linaro.org>
4148 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4149 to match neon_vzip/vuzp/vtrn_internal.
4150 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4151 outputs explicitly dependent on both inputs.
4152 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4154 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4156 PR tree-optimization/48616
4157 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4158 whether the shift is by scalar or vector based on whether all SLP
4159 scalar stmts have the same rhs.
4161 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4163 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4166 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4168 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4171 2011-04-17 Jan Hubicka <jh@suse.cz>
4173 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4174 * cgrpahunit.c (cgraph_finalize_function): Do not set
4175 finalized_by_frontend.
4176 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4177 finalized_by_frontend.
4179 2011-04-17 Jan Hubicka <jh@suse.cz>
4181 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4182 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4183 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4184 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4186 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4188 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4190 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4193 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4194 is non-null before accessing it.
4195 (input_cgraph): Remove trailing spaces.
4197 2011-04-17 Revital Eres <revital.eres@linaro.org>
4199 * params.def (sms-min-sc): New param flag.
4200 * modulo-sched.c (sms_schedule): Use it.
4201 * doc/invoke.texi (sms-min-sc): Document it.
4203 2011-04-17 Jan Hubicka <jh@suse.cz>
4205 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4206 present, also set gimple_call_set_cannot_inline.
4207 * ipa-inline.c: Update toplevel comment.
4209 (cgraph_clone_inlined_nodes): Fix linebreaks.
4210 (cgraph_check_inline_limits): Restructure to ...
4211 (caller_growth_limits): ... this one; be more tolerant
4212 on growth in nested inline chains; add explanatory comment;
4213 fix stack accounting thinko introduced by previous patch.
4214 (cgraph_default_inline_p): Remove.
4215 (report_inline_failed_reason): New function.
4216 (can_inline_edge_p): New function.
4217 (can_early_inline_edge_p): New function.
4218 (leaf_node_p): Move upwards in file.
4219 (want_early_inline_function_p): New function.
4220 (want_inline_small_function_p): New function.
4221 (want_inline_self_recursive_call_p): New function.
4222 (cgraph_edge_badness): Rename to ...
4223 (edge_badness) ... this one; fix linebreaks.
4224 (update_edge_key): Update call of edge_baddness; add
4225 detailed dump about queue updates.
4226 (update_caller_keys): Use can_inline_edge_p and
4227 want_inline_small_function_p.
4228 (cgraph_decide_recursive_inlining): Rename to...
4229 (recursive_inlining): Use can_inline_edge_p and
4230 want_inline_self_recursive_call_p; simplify and remove no longer
4232 (cgraph_set_inline_failed): Remove.
4233 (add_new_edges_to_heap): Use can_inline_edge_p and
4234 want_inline_small_function_p.
4235 (cgraph_decide_inlining_of_small_functions): Rename to ...
4236 (inline_small_functions): ... this one; cleanup; use
4237 can/want predicates; cleanup debug ouput; work edges till fibheap
4238 is exhausted and do not stop once unit growth is reached; remove
4239 later loop processing remaining edges.
4240 (cgraph_flatten): Rename to ...
4241 (flatten_function): ... this one; use can_inline_edge_p
4242 and can_early_inline_edge_p predicates.
4243 (cgraph_decide_inlining): Rename to ...
4244 (ipa_inline): ... this one; remove unreachable nodes before
4245 inlining functions called once; simplify the pass.
4246 (cgraph_perform_always_inlining): Rename to ...
4247 (inline_always_inline_functions): ... this one; use
4248 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4249 (cgraph_decide_inlining_incrementally): Rename to ...
4250 (early_inline_small_functions): ... this one; simplify
4251 using new predicates; cleanup; make dumps prettier.
4252 (cgraph_early_inlining): Rename to ...
4253 (early_inliner): newer inline regular functions into always-inlines;
4254 fix updating of call stmt summaries.
4255 (pass_early_inline): Update for new names.
4256 (inline_transform): Fix formating.
4257 (gate_cgraph_decide_inlining): Rename to ...
4258 (pass_ipa_inline): ... this one.
4259 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4260 * ipa-inline-analysis.c (dump_inline_summary): Update.
4261 (compute_inline_parameters): Do not compute disregard_inline_limits;
4262 look for mismatching arguments.
4263 (estimate_growth): Fix handlig of non-trivial self recursion.
4264 (inline_read_summary): Do not read info->disregard_inline_limits.
4265 (inline_write_summary): Do not write info->disregard_inline_limits.
4266 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4267 and move all checks into can_inline_edge_p predicate; re-enable code
4268 comparing optimization levels.
4269 (expand_call_inline): Do not test inline_forbidden_into_p.
4270 * Makefile.in (ipa-inline.o): Update arguments.
4272 2011-04-17 Revital Eres <revital.eres@linaro.org>
4274 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4276 2011-04-17 Revital Eres <revital.eres@linaro.org>
4278 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4280 2011-04-17 Michael Matz <matz@suse.de>
4282 PR tree-optimization/48622
4284 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4285 in same order as they're written.
4287 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4289 * config/pa/predicates.md: Reorganize and simplify predicates.
4290 Eliminate duplicate code checks.
4291 (arith_operand): Rename to arith14_operand
4292 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4293 * config/pa/pa.md: Use renamed operands.
4294 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4295 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4296 arith11_operand, adddi3_operand, indexed_memory_operand,
4297 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4298 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4299 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4300 move_dest_operand, move_src_operand, prefetch_cc_operand,
4301 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4302 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4303 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4304 div_operand, int5_operand, movb_comparison_operator,
4305 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4306 arith_double_operand, ireg_operand, lhs_lshift_operand,
4307 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4308 integer_store_memory_operand): Likewise.
4309 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4310 (integer_store_memory_operand, read_only_operand,
4311 function_label_operand, borx_reg_operand,
4312 non_hard_reg_operand): Likewise.
4313 (eq_neq_comparison_operator): Delete unused operator.
4314 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4315 function_label_operand.
4316 (emit_move_sequence): Likewise.
4318 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4320 * config/i386/sse.md (sseunpackmode): New mode attribute.
4321 (ssepackmode): Ditto.
4322 (vec_pack_trunc_<mode>): Macroize expander from
4323 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4324 (vec_unpacks_lo_<mode>): Macroize expander from
4325 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4326 (vec_unpacks_hi_<mode>): Macroize expander from
4327 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4328 (vec_unpacku_lo_<mode>): Macroize expander from
4329 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4330 (vec_unpacku_hi_<mode>): Macroize expander from
4331 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4332 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4333 ix86_expand_sse4_unpack.
4334 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4336 2011-04-16 Jan Hubicka <jh@suse.cz>
4338 * cgraphbuild.c: Include ipa-inline.h.
4339 (reset_inline_failed): Use initialize_inline_failed.
4340 * cgraph.c: Include ipa-inline.h.
4341 (cgraph_create_node_1): Do not initialize estimated_growth.
4342 (initialize_inline_failed): More to ipa-inline-analysis.c
4343 (dump_cgraph_node): Do not dump inline flags.
4344 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4345 and disregard_inline_limits flags.
4346 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4347 time, size, estimated_growth.
4348 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4350 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4351 DECL_DISREGARD_INLINE_LIMITS.
4352 (cgraph_analyze_function): Do not initialize
4353 node->local.disregard_inline_limits.
4354 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4355 inlinable, versionable and disregard_inline_limits.
4356 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4357 cgraph_check_inline_limits, cgraph_default_inline_p,
4358 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4359 add_new_edges_to_heap): Update.
4360 (cgraph_decide_inlining_of_small_function): Update; set
4361 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4362 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4363 cgraph_decide_inlining_incrementally): Update.
4364 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4365 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4366 time, size and estimated_growth parameters.
4367 (estimate_edge_growth): Update.
4368 (initialize_inline_failed): Declare.
4369 * ipa-split.c: Include ipa-inline.h
4370 (execute_split_functions): Update.
4371 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4372 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4373 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4374 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4375 estimated_growth to INT_MIN.
4376 (inline_node_duplication_hook): Likewise.
4377 (dump_inline_summary): Dump new fields.
4378 (compute_inline_parameters): Update.
4379 (estimate_edge_time, estimate_time_after_inlining,
4380 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4381 inline_write_summary):
4382 (initialize_inline_failed): Move here from cgraph.c.
4383 * tree-sra.c: Include ipa-inline.h.
4384 (ipa_sra_preliminary_function_checks): Update.
4385 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4388 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4390 * config/i386/sse.md (V16): New mode iterator.
4392 (AVXMODEQI, AVXMODEDI): Remove.
4393 (sse2, sse3): New mode attribute.
4394 (mov<mode>): Use V16 mode iterator.
4395 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4396 (push<mode>1): Use V16 mode iterator.
4397 (movmisalign<mode>): Ditto.
4398 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4399 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4400 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4401 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4402 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4403 avx_movdqu<avxmodesuffix>.
4404 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4405 *avx_movdqu<avxmodesuffix>.
4406 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4407 avx_lddqu<avxmodesuffix>.
4408 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4409 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4410 avx_movnt<AVXMODEDI:mode>.
4411 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4412 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4414 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4417 * haifa-sched.c (prune_ready_list, schedule_block): Use
4418 sched_pressure_p rather than flag_sched_pressure.
4420 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4422 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4423 cgraph_get_node instead of cgraph_get_create_node.
4425 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4427 * cfgexpand.c (expand_debug_expr): Use
4428 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4430 2011-04-15 Michael Matz <matz@suse.de>
4432 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4433 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4434 * function.c (gimplify_parameters): Ditto.
4435 * gimplify.c (gimplify_vla_decl): Ditto.
4437 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4438 (gimple_call_set_alloca_for_var): New inline function.
4439 (gimple_call_alloca_for_var_p): Ditto.
4440 * gimple.c (gimple_build_call_from_tree): Remember
4441 CALL_ALLOCA_FOR_VAR_P state.
4442 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4444 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4445 calls if they were for VLA objects.
4447 2011-04-15 Martin Jambor <mjambor@suse.cz>
4449 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4452 2011-04-15 Martin Jambor <mjambor@suse.cz>
4455 * tree-emutls.c (lower_emutls_function_body): Call
4456 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4459 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4461 * c-decl.c (detect_field_duplicates): Call
4462 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4464 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4466 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4467 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4468 * ipa-pure-const.c (check_stmt): Call it.
4469 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4471 2011-04-15 Richard Guenther <rguenther@suse.de>
4473 PR tree-optimization/48290
4474 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4475 Properly decide inhibiting propagation based on the valueized
4476 operand. Do loop-closed SSA form preserving here ...
4477 (init_copy_prop): ... not here.
4479 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4482 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4483 (*ieee_smax<mode>3): Likewise.
4485 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4487 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4488 Replace match_operand with match_dup for the third operand in
4491 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4493 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4494 to track processing of conditionals. Update all callers.
4495 (try_combine, simplify_if_then_else): Update.
4497 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4499 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4502 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4504 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4505 instead of match_operand for operand 3.
4507 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4509 * recog.h (insn_operand_data): Add an "allows_mem" field.
4510 * genoutput.c (output_operand_data): Initialize it.
4511 * optabs.c (maybe_legitimize_operand_same_code): New function.
4512 (maybe_legitimize_operand): Use it when matching the original
4515 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4517 * gimplify.c: Fix issues in comments throughout.
4518 (voidify_wrapper_expr): Fix long line.
4519 (build_stack_save_restore): Likewise.
4520 (gimplify_loop_expr): Likewise.
4521 (gimplify_compound_lval): Likewise.
4522 (gimplify_init_ctor_eval): Likewise.
4523 (gimplify_modify_expr_rhs): Likewise.
4524 (omp_notice_threadprivate_variable): Likewise.
4526 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4528 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4529 original one if this is not a builtin function.
4531 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4534 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4535 offset it as needed based on top 2 bits in operands[3], change
4536 MEM mode to SFmode and mask those 2 bits away from operands[3].
4538 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4540 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4541 change from objc_declare_protocols() to objc_declare_protocol().
4543 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4545 * config/i386/sse.md (sse4_1): New mode attribute.
4546 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4547 avx_blend<ssemodesuffix><avxmodesuffix> and
4548 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4549 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4550 avx_blendv<ssemodesuffix><avxmodesuffix> and
4551 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4552 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4553 avx_dp<ssemodesuffix><avxmodesuffix> and
4554 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4555 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4556 (sse4_1_packusdw): Merge with *avx_packusdw.
4557 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4558 (sse4_1_pblendw): Merge with *avx_pblendw.
4559 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4560 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4561 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4563 (sse4_1_round<ssescalarmodesuffix>): Merge with
4564 *avx_round<ssescalarmodesuffix>.
4565 (aesenc): Merge with *avx_aesenc.
4566 (aesenclast): Merge with *avx_aesenclast.
4567 (aesdec): Merge with *avx_aesdec.
4568 (aesdeclast): Merge with *avx_aesdeclast.
4569 (pclmulqdq): Merge with *pclmulqdq.
4570 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4572 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4574 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4577 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4578 (align_local_variable): This. Update DECL_ALIGN.
4579 (add_stack_var): Updated.
4580 (expand_one_stack_var): Likewise.
4582 2011-04-14 Richard Guenther <rguenther@suse.de>
4584 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4586 (dse_initialize_block_local_data, dse_leave_block,
4587 record_voperand_set, get_stmt_uid): Likewise.
4588 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4589 (dse_optimize_stmt): Remove voperand set handling code.
4590 Simplify and improve to handle any kind of killing stmt.
4591 (dse_record_phi): Remove.
4592 (dse_enter_block): Simplify.
4593 (tree_ssa_dse): Likewise.
4594 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4596 2011-04-14 Jan Hubicka <jh@suse.cz>
4598 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4599 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4600 (cgraph_local_info): Remove inline_summary.
4601 * ipa-cp.c: Include ipa-inline.h.
4602 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4603 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4605 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4606 (input_overwrite_node): Do not set inline summary.
4607 (input_node): Do not stream inline summary.
4608 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4609 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4610 growth; we do not have inline parameters computed for that anyway.
4611 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4612 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4613 (inline_summary_t): New type and VECtor.
4614 (debug_inline_summary, dump_inline_summaries): Declare.
4615 (inline_summary): Use VOCtor.
4616 (estimate_edge_growth): Kill hack computing call stmt size directly.
4617 * lto-section-in.c (lto_section_name): Add inline section.
4618 * ipa-inline-analysis.c: Include lto-streamer.h
4619 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4620 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4621 (inline_summary_vec): Define.
4622 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4623 dump_inline_summaries): New functions.
4624 (estimate_function_body_sizes): Properly compute size/time of outgoing
4626 (compute_inline_parameters): Alloc inline_summary; do not compute
4627 size/time of incomming calls.
4628 (estimate_edge_time): Avoid missing time summary hack.
4629 (inline_read_summary): Read inline summary info.
4630 (inline_write_summary): Write inline summary info.
4631 (inline_free_summary): Free all hooks and inline summary vector.
4632 * lto-streamer.h: Add LTO_section_inline_summary section.
4633 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4634 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4636 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4638 * tree-vectorizer.h (vect_strided_store_supported): Add a
4639 HOST_WIDE_INT argument.
4640 (vect_strided_load_supported): Likewise.
4641 (vect_permute_store_chain): Return void.
4642 (vect_transform_strided_load): Likewise.
4643 (vect_permute_load_chain): Delete.
4644 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4645 count argument. Check that the count is a power of two.
4646 (vect_strided_load_supported): Likewise.
4647 (vect_permute_store_chain): Return void. Update after above changes.
4648 Assert that the access is supported.
4649 (vect_permute_load_chain): Likewise.
4650 (vect_transform_strided_load): Return void.
4651 * tree-vect-stmts.c (vectorizable_store): Update calls after
4652 above interface changes.
4653 (vectorizable_load): Likewise.
4654 (vect_analyze_stmt): Don't check for strided powers of two here.
4656 2011-04-14 Richard Guenther <rguenther@suse.de>
4658 PR tree-optimization/48590
4659 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4660 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4661 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4662 BUILT_IN_STACK_SAVE.
4663 * tree-ssa-dce.c (propagate_necessity): Handle
4664 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4666 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4668 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4671 2011-04-14 Richard Guenther <rguenther@suse.de>
4673 * tree.h (get_object_alignment_1): Declare.
4674 * builtins.c (get_object_alignment_1): Split out worker from ...
4675 (get_object_alignment): ... here.
4676 * fold-const.c (get_pointer_modulus_and_residue): Use
4677 get_object_alignment_1.
4679 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4681 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4683 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4684 parameter. Generalise code to handle arrays as well as vectors.
4685 (vect_setup_realignment): Update accordingly.
4686 * tree-vect-stmts.c (vectorizable_store): Likewise.
4687 (vectorizable_load): Likewise.
4689 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4691 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4692 within the per-copy loop.
4694 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4696 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4699 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4701 * doc/options.texi (Negative): Explicitly mention that the
4702 Negative chain must be circular.
4704 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4706 * function.h (block_chainon): Declare.
4707 * function.c (block_chainon): Define.
4709 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4710 Eric Weddington <eric.weddington@atmel.com>
4711 Georg-Johann Lay <avr@gjlay.de>
4713 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4715 (avr_init_builtins, avr_expand_builtin,
4716 avr_expand_delay_cycles, avr_expand_unop_builtin,
4717 avr_expand_binop_builtin ): New functions.
4718 (avr_builtin_id): New enum
4719 (struct avr_builtin_description): New struct
4720 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4721 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4723 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4724 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4725 UNSPECV_DELAY_CYCLES): new enumeration values
4726 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4727 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4728 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4729 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4730 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4731 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4732 "fmulsu"): New insns
4734 * config/avr/avr-c.c: fix line endings
4735 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4736 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4737 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4738 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4739 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4741 * doc/extend.texi (AVR Built-in Functions): New node
4742 (Target Builtins): Add documentation of AVR
4745 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4748 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4749 alone. Error if non-const data has attribute progmem.
4751 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4753 * tree.h (struct tree_constructor): Include tree_typed instead of
4755 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4756 TS_TYPED instead of TS_COMMON.
4758 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4760 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4761 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4762 (sse2_psadbw): Merge with *avx_psadbw.
4763 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4764 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4765 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4766 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4767 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4768 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4769 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4770 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4771 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4772 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4773 (ssse3_palignrti): Merge with *avx_palignrti.
4775 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4777 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4778 * tree-ssanames.c (fini_ssanames): VEC_free it.
4779 (make_ssa_name_fn): Update for VECness of free_ssanames.
4780 (release_ssa_name, release_dead_ssa_names): Likewise.
4781 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4783 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4784 TS_TYPED instead of TS_COMMON.
4786 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4788 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4789 statistics_counter_event.
4790 * tree-ssa-copyrename.c (stats): Define.
4791 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4792 statistics_counter_event.
4793 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4794 (bswap_stats, widen_mul_stats): Define.
4795 (insert_reciprocals): Increment rdivs_inserted.
4796 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4797 rfuncs_inserted. Add calls to statistics_counter_event.
4798 (execute_cse_sincos_1): Increment inserted.
4799 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4800 statistics_counter_event.
4801 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4802 of bswap_stats. Add calls to statistics_counter_event.
4803 (convert_mult_to_widen): Increment widen_mults_inserted.
4804 (convert_plusminus_to_widen): Increment maccs_inserted.
4805 (convert_mult_to_fma): Increment fmas_inserted.
4806 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4807 calls to statistics_counter_event.
4809 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4811 PR rtl-optimization/48455
4812 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4813 `temp_costs->mem_cost'.
4815 2011-04-13 Jan Hubicka <jh@suse.cz>
4817 * ipa-inline.h: New file.
4818 * ipa-inline-analysis.c: New file. Broken out of ...
4819 * ipa-inline.c: ... this file; update toplevel comment;
4820 include ipa-inline.h
4821 (inline_summary): Move to ipa-inline.h
4822 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4823 ipa-inline-analysis.c.
4824 (cgraph_estimate_time_after_inlining): Rename to
4825 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4826 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4827 to estimate_edge_growth.
4828 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4829 rename to estimate_size_after_inlining.
4830 (cgraph_mark_inline_edge): Update for new naming convention.
4831 (cgraph_check_inline_limits): Likewise.
4832 (cgraph_edge_badness): Likewise.
4833 (cgraph_decide_recursive_inlining): Likewise.
4834 (cgraph_decide_inlining_of_small_functions): Likewise.
4835 (cgraph_decide_inlining_incrementally): Likewise.
4836 (cgraph_estimate_growth): Rename to estimate_growth; move to
4837 ipa-inline-analysis.c.
4838 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4839 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4840 (compute_inline_parameters): Likewise.
4841 (compute_inline_parameters_for_current): Likewise.
4842 (pass_inline_parameters): Likewise.
4843 (inline_indirect_intraprocedural_analysis): Likewise.
4844 (analyze_function): Rename to inline_analyze_function; likewise.
4845 (add_new_function): Move to ipa-inline-analysis.c.
4846 (inline_generate_summary): Likewise.
4847 (inline_read_summary): Likewise.
4848 (inline_write_summary): Likewise.
4849 * Makefile.in (ipa-inline-analysis.c): New file.
4851 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4853 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4854 * configure: Regenerate.
4856 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4858 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4859 instead of tree_common.
4860 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4862 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4863 TS_TYPED rather than TS_COMMON.
4864 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4866 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4869 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4870 r20 around calls of __tablejump_elpm__
4872 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4875 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4877 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4879 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4881 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4882 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4883 (cfi_vec): New typedef.
4884 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4885 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4886 (cie_cfi_vec): New static variable.
4887 (cie_cfi_head): Delete.
4888 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4889 declaration changed. Use vector rather than list operations.
4890 (new_cfi): Don't initialize the dw_cfi_next field.
4891 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4892 rather than list operations.
4893 (lookup_cfa): Use vector rather than list operations.
4894 (output_cfis): New argument upto. Accept a cfi_vec rather than
4895 a dw_cfi_ref list head as argument. All callers changed.
4896 Iterate over the vector using upto as a maximum index.
4897 (output_all_cfis): New static function.
4898 (output_fde): Use vector rather than list operations. Use the
4899 new upto argument for output_cfis rather than manipulating a
4901 (dwarf2out_begin_prologue): Change initializations to match
4903 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4904 from the vector length rather than searching for the end of a list.
4905 Use output_all_cfis.
4906 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4908 2011-04-13 Nick Clifton <nickc@redhat.com>
4910 * config/rx/rx.md (movmemsi): Do not use this pattern when
4911 volatile pointers are involved.
4913 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4915 * config/i386/sse.md (pinsrbits): Remove.
4916 (sse2_packsswb): Merge with *avx_packsswb.
4917 (sse2_packssdw): Merge with *avx_packssdw.
4918 (sse2_packuswb): Merge with *avx_packuswb.
4919 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4920 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4921 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4922 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4923 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4924 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4925 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4926 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4927 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4928 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4929 (sse2_loadld): Merge with *avx_loadld.
4930 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4931 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4932 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4933 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4934 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4936 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4938 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4940 * print-tree.c (print_node): Likewise.
4941 * tree-inline.c (copy_tree_r): Likewise.
4942 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4943 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4944 instead of TS_COMMON.
4945 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4946 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4947 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4948 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4949 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4951 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4953 (TREE_CHAIN): Check for a TS_COMMON structure.
4954 (TREE_TYPE): Check for a TS_TYPED structure.
4956 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4958 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4959 cgraph_get_create_node instead of cgraph_node.
4961 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4963 * c-parser.c (c_parser_initelt): Updated call to
4964 objc_build_message_expr.
4965 (c_parser_postfix_expression): Likewise.
4967 2011-04-12 Kai Tietz <ktietz@redhat.com>
4969 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4970 MASK_MS_BITFIELD_LAYOUT bit.
4972 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4974 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4975 assert it is always true.
4976 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4979 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4981 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4982 compiling Objective-C to be more efficient.
4984 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4986 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4989 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4991 * recog.h, genoutput.c, optabs.c: Revert last patch.
4993 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4996 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4998 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5000 * recog.h (insn_operand_data): Add an "allows_mem" field.
5001 * genoutput.c (output_operand_data): Initialize it.
5002 * optabs.c (maybe_legitimize_operand_same_code): New function.
5003 (maybe_legitimize_operand): Use it when matching the original
5006 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5008 * genpreds.c (process_define_predicate): Move most processing
5009 to gensupport.c. Continue to validate the expression.
5010 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5011 (process_define_predicate): Move processing to gensupport.c.
5012 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5013 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5014 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5016 (valid_predicate_name_p): New function, split out from old
5017 genpreds.c:process_define_predicate.
5018 (process_define_predicate): New function, combining code from
5019 old genpreds.c and genrecog.c functions.
5020 (process_rtx): Call it for DEFINE_PREDICATE and
5021 DEFINE_SPECIAL_PREDICATE.
5023 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5025 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5026 size of a '%A' memory reference.
5027 (T_DREG, T_QREG): New neon_builtin_type_bits.
5028 (arm_init_neon_builtins): Assert that the load and store operands
5029 are neon_struct_operands.
5030 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5031 (NEON_ARG_MEMORY): New builtin_arg.
5032 (neon_dereference_pointer): New function.
5033 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5034 Handle NEON_ARG_MEMORY.
5035 (arm_expand_neon_builtin): Update after above interface changes.
5036 Use NEON_ARG_MEMORY for loads and stores.
5037 * config/arm/predicates.md (neon_struct_operand): New predicate.
5038 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5039 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5040 (V_four_elem): Tweak formatting.
5041 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5042 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5043 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5044 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5045 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5046 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5047 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5048 Use %A in the output template.
5049 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5050 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5051 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5052 the width of the memory access. Remove post-increment.
5053 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5055 2011-04-12 Nick Clifton <nickc@redhat.com>
5057 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5058 instruction for interrupt handlers if the target is the basic V850
5060 (expand_epilogue): Likewise.
5062 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5064 PR rtl-optimization/48549
5065 * combine.c (propagate_for_debug): Also stop after BB_END of
5066 this_basic_block. Process LAST and just stop processing after it.
5067 (combine_instructions): If last_combined_insn has been deleted,
5068 set last_combined_insn to its PREV_INSN.
5070 2011-04-12 Richard Guenther <rguenther@suse.de>
5072 PR tree-optimization/46076
5073 * gimple.h (struct gimple_statement_call): Add fntype field.
5074 (gimple_call_fntype): Adjust.
5075 (gimple_call_set_fntype): New function.
5076 * gimple.c (gimple_build_call_1): Set the call function type.
5077 * gimplify.c (gimplify_call_expr): Preserve the function
5078 type the frontend used for the call.
5079 (gimplify_modify_expr): Likewise.
5080 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5082 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5084 * tree-ssa.c (useless_type_conversion_p): Function pointer
5085 conversions are useless.
5087 2011-04-12 Martin Jambor <mjambor@suse.cz>
5089 * cgraph.h (cgraph_node): Remove function declaration.
5090 (cgraph_create_node): Declare.
5091 (cgraph_get_create_node): Likewise.
5092 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5093 Updated all callers.
5094 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5095 the decl does not already exist. Call cgraph_get_create_node instead
5097 (cgraph_get_create_node): New function.
5098 (cgraph_same_body_alias): Update comment.
5099 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5100 assert it does not return NULL.
5101 (cgraph_update_edges_for_call_stmt): Likewise.
5102 (cgraph_clone_edge): Likewise.
5103 (cgraph_create_virtual_clone): Likewise.
5104 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5105 instead of cgraph_node.
5106 (cgraph_add_new_function): Call cgraph_create_node or
5107 cgraph_get_create_node instead of cgraph_node.
5108 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5109 instead of cgraph_node.
5110 (record_eh_tables): Likewise.
5111 (mark_address): Likewise.
5112 (mark_load): Likewise.
5113 (build_cgraph_edges): Call cgraph_get_create_node instead
5115 (rebuild_cgraph_edges): Likewise.
5116 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5117 instead of cgraph_node.
5118 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5120 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5121 cgraph_create_node instead of cgraph_node.
5122 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5124 * lto-cgraph.c (input_node): Likewise.
5125 * lto-streamer-in.c (input_function): Likewise.
5126 * varasm.c (mark_decl_referenced): Likewise.
5127 (assemble_alias): Likewise.
5129 2011-04-12 Martin Jambor <mjambor@suse.cz>
5131 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5132 instead of cgraph_node and assert it does not return NULL.
5133 * lto-streamer-in.c (lto_read_body): Likewise.
5134 * omp-low.c (new_omp_context): Likewise.
5135 (create_task_copyfn): Likewise.
5136 * tree-emutls.c (lower_emutls_function_body): Likewise.
5137 * matrix-reorg.c (transform_allocation_sites): Likewise.
5139 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5142 * c-typeck.c (build_asm_expr): Error out on attempts to use
5143 void type outputs or inputs for constraints that allow reg or
5146 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5147 Richard Earnshaw <rearnsha@arm.com>
5150 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5151 to use sign-magnitude offsets. Reject unsupported unaligned
5152 cases. Add detailed description in comments.
5153 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5154 condition from TARGET_32BIT to TARGET_ARM.
5156 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5158 * tree.h (struct typed_tree): New.
5159 (struct tree_common): Include it instead of tree_base.
5160 (TREE_TYPE): Update for new location of type field.
5161 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5162 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5163 (union tree_node): Add typed field.
5164 * treestruct.def (TS_TYPED): New.
5165 * lto-streamer.c (check_handled_ts_structures): Handle it.
5166 * tree.c (MARK_TS_TYPED): New macro.
5167 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5169 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5171 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5172 (force_nonfallthru): Do not alter the loop nest if no basic block
5175 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5177 * config/i386/sse.md (VI): New mode iterator.
5179 (AVX256MODEI): Ditto.
5180 (AVXMODEF4P): Ditto.
5181 (avxvecpsmode): Ditto.
5182 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5183 (sse2_andnot<mode>3): New expander.
5184 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5185 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5186 (<any_logic:code><mode>3): Use VI mode iterator.
5187 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5188 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5189 (*andnottf3): Handle AVX three-operand constraints.
5190 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5192 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5193 Robert Millan <rmh@gnu.org>
5195 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5196 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5197 GNU_USER_DYNAMIC_LINKER64): Define.
5198 (REG_NAME): Don't undefine.
5199 (MD_UNWIND_SUPPORT): Undefine.
5200 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5201 (REG_NAME): Don't undefine.
5202 (MD_UNWIND_SUPPORT): Undefine.
5203 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5205 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5207 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5208 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5210 2011-04-11 Xinliang David Li <davidxl@google.com>
5212 * value-profile.c (check_ic_target): New function.
5213 (gimple_ic_transform): Sanity check indirect call target.
5214 * gimple-low.c (gimple_check_call_args): Interface change.
5215 (gimple_check_call_matching_types): New function.
5216 * tree-inline.c (tree_can_inline_p): Call new function.
5218 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5220 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5221 tree-pretty-print.h & realmpfr.h.
5223 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5226 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5227 (setup_allocno_and_important_classes): Ditto.
5229 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5231 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5232 GNU_USER_DYNAMIC_LINKER.
5233 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5234 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5235 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5236 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5237 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5238 GNU_USER_TARGET_OS_CPP_BUILTINS.
5239 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5241 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5242 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5243 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5244 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5245 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5246 GNU_USER_TARGET_OS_CPP_BUILTINS.
5247 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5248 GNU_USER_DYNAMIC_LINKER.
5249 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5250 GNU_USER_TARGET_OS_CPP_BUILTINS.
5251 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5253 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5254 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5255 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5256 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5257 GNU_USER_DYNAMIC_LINKER64): Remove.
5258 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5259 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5260 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5261 GNU_USER_DYNAMIC_LINKER.
5262 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5263 GNU_USER_TARGET_OS_CPP_BUILTINS.
5264 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5265 GNU_USER_TARGET_OS_CPP_BUILTINS.
5266 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5267 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5268 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5269 GNU_USER_TARGET_OS_CPP_BUILTINS.
5270 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5271 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5272 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5273 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5274 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5275 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5276 GNU_USER_DYNAMIC_LINKER.
5277 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5278 GNU_USER_TARGET_OS_CPP_BUILTINS.
5279 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5280 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5281 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5282 GNU_USER_DYNAMIC_LINKER.
5283 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5285 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5287 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5288 GNU_USER_DYNAMIC_LINKER.
5289 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5290 GNU_USER_DYNAMIC_LINKERN32.
5291 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5292 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5293 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5294 GNU_USER_DYNAMIC_LINKER32.
5295 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5296 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5297 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5298 GNU_USER_DYNAMIC_LINKER.
5299 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5300 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5301 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5302 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5303 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5304 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5305 GNU_USER_DYNAMIC_LINKER32.
5306 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5307 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5308 GNU_USER_DYNAMIC_LINKER.
5309 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5310 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5311 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5312 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5313 GNU_USER_DYNAMIC_LINKER64.
5314 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5315 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5316 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5317 GNU_USER_DYNAMIC_LINKER.
5318 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5319 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5320 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5321 GNU_USER_DYNAMIC_LINKER.
5322 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5323 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5324 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5325 GNU_USER_DYNAMIC_LINKER32.
5326 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5327 GNU_USER_DYNAMIC_LINKER64.
5328 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5329 GNU_USER_DYNAMIC_LINKER64.
5330 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5331 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5332 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5333 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5334 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5336 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5338 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5339 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5340 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5341 GNU_USER_DYNAMIC_LINKER.
5342 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5343 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5344 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5345 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5346 GNU_USER_DYNAMIC_LINKER64.
5347 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5348 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5349 GNU_USER_LINK_EMULATION.
5350 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5351 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5352 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5353 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5354 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5355 CPP_SPEC, CC1_SPEC): Remove.
5356 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5357 (GNU_USER_DYNAMIC_LINKER): Define.
5358 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5359 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5360 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5361 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5362 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5363 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5364 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5365 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5366 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5367 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5368 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5369 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5370 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5371 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5372 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5373 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5374 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5375 GNU_USER_DYNAMIC_LINKER.
5376 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5377 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5378 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5379 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5380 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5381 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5382 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5383 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5384 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5385 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5387 2011-04-11 Kai Tietz <ktietz@redhat.com>
5391 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5392 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5394 (ix86_is_msabi_thiscall): Removed.
5395 (ix86_is_type_thiscall): Likewise.
5396 (ix86_get_callcvt): New function.
5397 (ix86_comp_type_attributes): Simplify check.
5398 (ix86_function_regparm): Use ix86_get_callcvt for calling
5399 convention attribute checks.
5400 (ix86_return_pops_args): Likewise.
5401 (ix86_static_chain): Likewise.
5402 (x86_this_parameter): Likewise.
5403 (x86_output_mi_thunk): Likewise.
5404 (ix86_function_type_abi): Optimize check for types without attributes.
5405 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5406 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5407 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5409 (IX86_BASE_CALLCVT): Helper macro.
5410 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5411 Use ix86_get_callcvt for calling convention attribute checks and avoid
5412 symbol-decoration for stdcall in TARGET_RTD case.
5413 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5415 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5418 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5420 * config/i386/sse.md (VI_128): New mode iterator.
5421 (VI12_128): Rename from SSEMODE12.
5422 (VI14_128): Rename from SSEMODE14.
5423 (VI124_128): New mode iterator.
5424 (VI24_128): Rename from SSEMODE248.
5425 (VI248_128): Rename from SSEMODE248.
5426 (SSEMODE124C8): Remove.
5427 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5428 (*sse2_<plusminus_insn><mode>3): Merge with
5429 *avx_<plusminus_insn><mode>3.
5430 (*mulv8hi3): Merge with *avx_mulv8hi3.
5431 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5432 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5433 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5434 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5435 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5436 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5437 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5438 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5439 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5440 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5441 (*<smaxmin:code>v8hi3): Ditto.
5442 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5443 (*<smaxmin:code>v16qi3): Ditto.
5444 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5445 (*sse2_eq<mode>3): Ditto.
5446 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5447 (*sse2_gt<mode>3): Ditto.
5448 (vcondv2di): Split out of vcond<mode>.
5449 (vconduv2di): Split out of vcondu<mode>.
5451 2011-04-11 Richard Guenther <rguenther@suse.de>
5453 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5454 before calling tree_low_cst.
5456 2011-04-11 Richard Guenther <rguenther@suse.de>
5458 * stor-layout.c (layout_type): Compute all array index size operations
5459 in the original type.
5460 (initialize_sizetypes): Add comment.
5461 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5463 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5465 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5467 2011-04-11 Martin Jambor <mjambor@suse.cz>
5469 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5470 of cgraph_node, handle NULL return value.
5471 (cgraph_global_info): Likewise.
5472 (cgraph_rtl_info): Likewise.
5473 * tree-inline.c (estimate_num_insns): Likewise.
5474 * gimplify.c (unshare_body): Likewise.
5475 (unvisit_body): Likewise.
5476 (gimplify_body): Likewise.
5477 * predict.c (optimize_function_for_size_p): Likewise.
5478 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5479 (call_may_clobber_ref_p_1): Likewise.
5480 * varasm.c (function_section_1): Likewise.
5481 (assemble_start_function): Likewise.
5483 2011-04-11 Martin Jambor <mjambor@suse.cz>
5485 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5487 * final.c (rest_of_clean_state): Likewise.
5488 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5489 * passes.c (pass_init_dump_file): Likewise.
5490 (execute_all_ipa_transforms): Likewise.
5491 (function_called_by_processed_nodes_p): Likewise.
5492 * predict.c (maybe_hot_frequency_p): Likewise.
5493 (probably_never_executed_bb_p): Likewise.
5494 (compute_function_frequency): Likewise.
5495 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5496 (unnest_nesting_tree_1): Likewise.
5497 (lower_nested_functions): Likewise.
5498 * tree-optimize.c (execute_fixup_cfg): Likewise.
5499 (tree_rest_of_compilation): Likewise.
5500 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5501 * tree-sra.c (ipa_early_sra): Likewise.
5502 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5503 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5504 * ipa.c (record_cdtor_fn): Likewise.
5505 * ipa-inline.c (cgraph_early_inlining): Likewise.
5506 (compute_inline_parameters_for_current): Likewise.
5507 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5508 * ipa-pure-const.c (local_pure_const): Likewise.
5509 * ipa-split.c (split_function): Likewise.
5510 (execute_split_functions): Likewise.
5511 * cgraphbuild.c (build_cgraph_edges): Likewise.
5512 (rebuild_cgraph_edges): Likewise.
5513 (cgraph_rebuild_references): Likewise.
5514 (remove_cgraph_callee_edges): Likewise.
5515 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5516 (verify_cgraph_node): Likewise.
5517 (cgraph_analyze_functions): Likewise.
5518 (cgraph_preserve_function_body_p): Likewise.
5519 (save_inline_function_body): Likewise.
5520 (save_inline_function_body): Likewise.
5521 * tree-inline.c (copy_bb): Likewise.
5522 (optimize_inline_calls): Likewise.
5524 2011-04-11 Martin Jambor <mjambor@suse.cz>
5526 PR tree-optimization/48195
5527 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5528 ipa_check_create_edge_args.
5529 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5530 ipa_check_create_edge_args.
5531 * ipa-inline.c (inline_generate_summary): Do not call
5532 ipa_check_create_node_params and ipa_check_create_edge_args.
5533 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5534 ipa_check_create_edge_args.
5536 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5538 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5540 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5541 * function.c (record_hard_reg_sets): Likewise.
5542 * ira.c (compute_regs_asm_clobbered): Likewise.
5543 * sched-deps.c (sched_analyze_1): Likewise.
5544 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5546 2011-04-09 Xinliang David Li <davidxl@google.com>
5548 PR tree-optimization/PR48484
5549 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5550 has_valid_pred lazily
5552 2011-04-09 Duncan Sands <baldrick@free.fr>
5554 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5556 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5558 * combine.c (combine_validate_cost): Adjust comments. Set registered
5559 cost of I0 to zero at the end, if any.
5561 2011-04-08 Xinliang David Li <davidxl@google.com>
5563 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5564 to insane profile data.
5566 2011-04-08 Xinliang David Li <davidxl@google.com>
5568 * ipa-cp.c (ipcp_update_profiling): Correct
5569 negative scale factor due to insane profile data.
5571 2011-04-08 Xinliang David Li <davidxl@google.com>
5573 * final.c (dump_basic_block_info): New function.
5574 (final): Dump basic block.
5575 (final_scan_insn): Remove old dump.
5577 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5580 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5583 2011-04-08 Michael Matz <matz@suse.de>
5586 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5588 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5589 * rtl.h (rebuild_jump_labels_chain): Declare.
5590 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5591 insns inserted on edges.
5593 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5595 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5596 * config/arm/arm-arches.def: New.
5597 * config/arm/arm-opts.h: New.
5598 * config/arm/genopt.sh: New.
5599 * config/arm/arm-tables.opt: New (generated).
5600 * config/arm/arm.c (arm_handle_option, arm_target_help,
5601 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5602 (all_architectures): Get most table contents from arm-arches.def.
5603 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5604 arm_selected_tune here.
5605 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5606 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5607 (march=, mcpu=, mtune=): Use Enum and Var.
5608 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5609 (arm.o): Update dependencies.
5611 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5613 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5615 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5616 (write_typed_alloc_defns): Likewise.
5617 (main): Calls write_typed_alloc_defns with output_header.
5619 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5622 * ira-color.c (setup_profitable_hard_regs): Add comments.
5623 Don't take prohibited hard regs into account.
5624 (setup_conflict_profitable_regs): Rename to
5625 get_conflict_profitable_regs.
5626 (check_hard_reg_p): Check prohibited hard regs.
5628 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5630 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5631 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5632 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5634 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5637 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5638 move from floating point to shift amount register.
5639 (emit_move_sequence): Remove secondary reload support for floating
5640 point to shift amount amount register copies.
5641 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5642 amount register copies.
5643 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5644 register, return false if mode isn't a scalar integer mode.
5645 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5647 2011-04-08 Richard Guenther <rguenther@suse.de>
5649 * gimple.c (gimple_call_flags): Remove kludge.
5651 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5653 * sel-sched.c (sel_region_init): Move call to
5654 sel_setup_region_sched_flags after setup_current_loop_nest.
5656 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5658 PR rtl-optimization/48272
5659 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5660 init_insn_reg_pressure_info. Adjust a caller.
5661 * sched-int.h (init_insn_reg_pressure_info): Declare.
5662 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5663 when sched-pressure is enabled.
5665 2011-04-08 Richard Guenther <rguenther@suse.de>
5667 * gimple.c (gimple_set_modified): Do not queue calls to
5668 MODIFIED_NORETURN_CALLS here ...
5669 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5671 2011-04-08 Richard Guenther <rguenther@suse.de>
5674 * toplev.c (lang_dependent_init): Do not open asm_out_file
5675 in WPA mode, nor perform debug machinery initialization.
5676 (finalize): Do not unlink asm_out_file in WPA mode.
5678 2011-04-08 Richard Guenther <rguenther@suse.de>
5680 * gimple.h (gimple_call_fntype): New function.
5681 (gimple_call_return_type): Use it.
5682 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5683 * gimple-low.c (gimple_check_call_args): Likewise.
5684 * gimple.c (gimple_call_flags): Likewise.
5685 (gimple_call_arg_flags): Likewise.
5686 (gimple_call_return_flags): Likewise.
5687 * tree-cfg.c (verify_gimple_call): Likewise.
5688 (do_warn_unused_result): Likewise.
5689 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5690 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5692 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5694 PR rtl-optimization/48235
5695 * sel-sched.c (code_motion_process_successors): Recompute the last
5696 insn in basic block if control flow changed.
5697 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5698 Update condition for ilist_remove.
5700 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5702 PR rtl-optimization/48302
5703 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5704 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5705 it to record added preheader blocks.
5706 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5707 on to sel_add_loop_preheaders.
5708 (sel_region_init): Move call to setup_current_loop_nest after
5711 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5714 * cfgloop.h (loop_has_exit_edges): New helper.
5715 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5717 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5718 that have no exit edges.
5720 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5722 PR rtl-optimization/48442
5723 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5724 all callers. Adjust assert.
5726 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5728 PR tree-optimization/48377
5729 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5730 is_packed to true even for types with smaller TYPE_ALIGN than
5733 2011-04-08 Richard Guenther <rguenther@suse.de>
5736 * doc/tm.texi: Re-generate.
5738 2011-04-08 Wei Guozhi <carrot@google.com>
5741 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5742 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5743 * config/arm/arm.md (*push_multi): Change the length computation to
5746 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5748 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5749 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5750 * doc/tm.texi: Regenerate.
5751 * system.h (ASM_OUTPUT_BSS): Poison.
5752 * varasm.c (asm_output_bss): Remove function.
5753 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5755 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5756 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5757 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5758 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5760 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5762 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5764 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5766 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5768 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5771 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5773 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5774 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5775 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5777 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5778 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5779 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5780 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5781 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5782 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5783 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5784 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5785 options. Don't map other m68k options manually. Don't handle
5786 old-style options as canonical.
5787 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5788 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5790 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5792 * basic-block.h (force_nonfallthru): Move to...
5793 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5794 (force_nonfallthru): ...here.
5795 * cfghooks.c (force_nonfallthru): New function.
5796 * cfgrtl.c (force_nonfallthru): Rename into...
5797 (rtl_force_nonfallthru): ...this.
5798 (commit_one_edge_insertion): Do not set AUX field.
5799 (commit_edge_insertions): Do not discover new basic blocks.
5800 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5801 (cfg_layout_rtl_cfg_hooks): Likewise.
5802 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5803 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5804 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5806 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5808 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5811 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5813 * config/i386/sse.md: Update copyright year.
5814 (avxcvtvecmode): Remove.
5815 (sse_movhlps): Merge with *avx_movhlps.
5816 (sse_movlhps): Merge with *avx_movlhps.
5817 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5818 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5819 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5820 (sse_loadhps): Merge with *avx_loadhps.
5821 (sse_storelps): Merge with *avx_storelps.
5822 (sse_loadlps): Merge with *avx_loadlps.
5823 (sse_movss): Merge with *avx_movss.
5824 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5825 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5826 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5827 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5828 (vec_set<mode>_0): Ditto.
5829 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5830 (sse4_1_insertps): Merge with *avx_insertps.
5831 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5832 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5833 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5834 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5835 (sse2_storehpd): Merge with *avx_storehpd.
5836 (sse2_loadhpd): Merge with *avx_loadhpd.
5837 (sse2_loadlpd): Merge with *avx_loadlpd.
5838 (sse2_movsd): Merge with *avx_movsd.
5839 (*vec_concatv2df): Merge with *vec_concatv2df.
5841 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5844 * combine.c (combine_instructions): Add last_combined_insn,
5845 update it if insn is after it, pass it to all try_combine calls.
5846 (try_combine): Add last_combined_insn parameter, pass it instead of
5847 i3 to propagate_for_debug.
5849 2011-04-07 Nick Clifton <nickc@redhat.com>
5851 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5852 to handle MDR <-> data register transfers.
5853 (movhi_internal): Likewise.
5855 2011-04-07 Alan Modra <amodra@gmail.com>
5857 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5858 previous stack info.
5860 2011-04-07 Tom de Vries <tom@codesourcery.com>
5863 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5864 flow_find_cross_jump. Swap variables to implement backward replacement.
5865 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5867 2011-04-07 Tom de Vries <tom@codesourcery.com>
5870 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5871 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5873 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5874 src1 or src2. Redirect edges to the last basic block. Update
5875 frequency and count on multiple basic blocks in case of fallthru.
5877 2011-04-07 Tom de Vries <tom@codesourcery.com>
5880 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5882 (old_insns_match_p): Change return type. Replace return false/true
5883 with return dir_none/dir_both. Use can_replace_by.
5884 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5885 direction from dir_p. Register replacement direction in dir, last_dir
5886 and afterlast_dir. Handle new return type of old_insns_match_p using
5887 merge_dir. Return replacement direction in dir_p.
5888 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5889 return type of old_insns_match_p.
5890 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5891 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5892 flow_find_cross_jump.
5893 * basic-block.h (enum replace_direction): New type.
5894 (flow_find_cross_jump): Add parameter to declaration.
5896 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5898 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5899 (AVXMODEDCVTPS2DQ): Ditto.
5900 (VEC_FLOAT_MODE): Ditto.
5901 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5902 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5903 (<any_logic:code><mode>3): Use VF mode iterator.
5904 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5905 Use VF mode iterator.
5906 (copysign<mode>3): Use VF mode iterator.
5907 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5908 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5909 (*<any_logic:code><MODEF:mode>3): Merge with
5910 *avx_<any_logic:code><MODEF:mode>3.
5911 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5912 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5913 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5914 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5915 (sse2_cvtdq2ps): Use %v modifier.
5916 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5917 (avx_cvtps2dq<avxmodesuffix>): Remove.
5918 (sse2_cvtps2dq): Use %v modifier.
5919 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5920 (avx_cvttps2dq<avxmodesuffix>): Remove.
5921 (sse2_cvttps2dq): Use %v modifier.
5922 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5923 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5924 (sse2_cvtsd2siq): Fix insn template.
5925 (sse2_cvtsd2siq_2): Ditto.
5926 (sse2_cvttsd2siq): Ditto.
5927 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5928 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5930 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5932 * gcov-io.c: Use GCC Runtime Library Exception.
5934 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5937 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5938 as base_reg whatever register reg has been eliminated to, instead
5939 of hardcoding STACK_POINTER_REGNUM.
5941 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5943 * doc/tm.texi.in: Document C target hooks as separate from general
5945 * doc/tm.texi: Regenerate.
5946 * genhooks.c (struct hook_desc): Add docname field.
5947 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5949 (hook_array): Include c-target.def.
5950 (emit_documentation): Use docname field in output.
5951 (emit_init_macros): Take docname argument. Only emit definitions
5952 for hooks matching docname.
5953 (main): Expect additional arguments in all cases. Pass argument
5954 to emit_init_macros.
5955 * target.def: Move initial macro definitions and comments to
5956 target-hooks-macros.h.
5957 (gcc_targetcm): Move to c-family/c-target.def.
5958 * target.h (targetcm): Move declaration to c-family/c-target.h.
5959 * targhooks.c (default_handle_c_option): Move to
5961 * targhooks.h (default_handle_c_option): Move declaration to
5962 c-family/c-common.h.
5963 * target-hooks-macros.h: New file.
5964 * config.gcc (target_has_targetcm): Define and use to add to
5965 c_target_objs and cxx_target_objs.
5966 * config/default-c.c: New file.
5967 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5968 of target.h and target-def.h.
5969 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5970 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5971 darwin_check_cfstring_format_arg): Make static.
5972 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5973 TARGET_STRING_OBJECT_REF_TYPE_P,
5974 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5975 * config/darwin-protos.h (darwin_objc_construct_string,
5976 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5978 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5979 TARGET_STRING_OBJECT_REF_TYPE_P,
5980 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5981 * config/t-darwin (darwin-c.o): Update dependencies.
5982 * system.h (TARGET_HAS_TARGETCM): Poison.
5983 * Makefile.in (TARGET_H): Update.
5984 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5985 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5986 (default-c.o): New target.
5987 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5988 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5989 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5991 (build/genhooks.o): Update dependencies.
5993 2011-04-06 Richard Guenther <rguenther@suse.de>
5995 * ipa-inline.c (enum inlining_mode): Remove.
5996 (cgraph_flatten): Use some other token.
5997 (cgraph_edge_early_inlinable_p): New function, split out from ...
5998 (cgraph_perform_always_inlining): New function, split out from ...
5999 (cgraph_decide_inlining_incrementally): ... here.
6000 (cgraph_mark_inline_edge): Adjust.
6001 (cgraph_early_inlining): Re-structure.
6002 (pass_early_inline): Require SSA form.
6004 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6005 Julian Brown <julian@codesourcery.com>
6006 Mark Shinwell <shinwell@codesourcery.com>
6008 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6009 LO_REGS only for Thumb-1.
6010 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6011 be used in short instructions when optimising for size on Thumb-2.
6013 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6015 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6016 associated with user returns to be preserved.
6018 2011-04-06 Tristan Gingold <gingold@adacore.com>
6020 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6021 symbol_queue_size, DBXOUT_DECR_NESTING,
6022 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6023 if XCOFF_DEBUGGING_INFO.
6025 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6027 * config/i386/i386.md (attribute isa): New.
6028 (attribute enabled): New.
6029 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6030 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6031 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6032 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6033 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6034 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6035 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6036 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6038 * config/i386/sse.md (VF): New mode iterator.
6042 (SSEMODEF4): Remove.
6043 (attribute sse): Handle V8SF and V4DF modes.
6044 (<absneg:code><mode>2): Use VF mode iterator.
6045 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6047 (<plusminus_insn><mode>3): Use VF mode iterator.
6048 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6049 Use VF mode iterator.
6050 (<sse>_vm<plusminus_insn><mode>3): Merge with
6051 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6052 (mul<mode>3): Use VF mode iterator.
6053 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6054 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6056 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6057 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6058 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6059 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6061 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6062 Use VF1 mode iterator.
6063 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6064 (sqrt<VF2:mode>2): New expander.
6065 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6066 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6067 and sqrtv2df2. Use VF mode iterator.
6068 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6070 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6071 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6072 Use VF1 mode iterator.
6073 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6074 (<smaxmin:code><mode>3): Use VF mode iterator.
6075 (*<smaxmin:code><mode>3_finite): Merge with
6076 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6077 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6078 (<sse>_vm<smaxmin:code><mode>2): Merge with
6079 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6080 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6082 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6084 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6085 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6086 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6087 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6088 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6090 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6091 Use VF_128 mode iterator.
6092 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6094 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6095 VF_128 mode iterator.
6096 (vcond<mode>): Use VF mode iterator.
6097 * config/i386/predicates.md (sse_comparison_operator): Merge with
6098 avx_comparison_float_operator. Do not declare as special_predicate.
6099 * config/i386/i386.c (struct builtin_description): Update for renamed
6101 (ix86_expand_args_builtin): Ditto.
6102 (ix86_expand_sse_compare_mask): Ditto.
6104 2011-04-06 Richard Guenther <rguenther@suse.de>
6106 * tree-inline.c (estimate_num_insns): For calls simply account
6107 for all passed arguments and a used return value.
6109 2011-04-06 Richard Guenther <rguenther@suse.de>
6111 PR tree-optimization/47663
6112 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6113 call_stmt_time fields.
6114 (cgraph_edge_inlinable_p): Declare.
6115 (cgraph_edge_recursive_p): New inline function.
6116 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6117 (cgraph_clone_edge): Copy it.
6118 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6119 Account for call stmt time.
6120 (cgraph_estimate_time_after_inlining): Take edge argument.
6121 (cgraph_estimate_edge_growth): Account call stmt size.
6122 (cgraph_estimate_size_after_inlining): Take edge argument.
6123 (cgraph_mark_inline_edge): Adjust.
6124 (cgraph_check_inline_limits): Likewise.
6125 (cgraph_recursive_inlining_p): Remove.
6126 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6127 (cgraph_decide_recursive_inlining): Take edge argument and
6129 (cgraph_decide_inlining_of_small_functions): Do not avoid
6130 diags for recursive inlining here.
6131 (cgraph_flatten): Adjust.
6132 (cgraph_decide_inlining_incrementally): Likewise.
6133 (estimate_function_body_sizes): Remove call cost handling.
6134 (compute_inline_parameters): Initialize caller edge call costs.
6135 (cgraph_estimate_edge_growth): New function.
6136 (cgraph_estimate_growth): Use it.
6137 (cgraph_edge_badness): Likewise.
6138 (cgraph_check_inline_limits): Take an edge argument.
6139 (cgraph_decide_inlining_of_small_functions): Adjust.
6140 (cgraph_decide_inlining): Likewise.
6141 * tree-inline.c (estimate_num_insns): Only account for call
6142 return value if it is used.
6143 (expand_call_inline): Avoid diagnostics on recursive inline
6145 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6146 (input_edge): Input edge call costs.
6148 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6150 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6152 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6154 * doc/invoke.texi (Spec Files): Fix typo.
6156 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6158 * profile.c (branch_prob): Move declaration of local variable. Remove
6159 obsolete ??? comment. Expand the location explicitly instead of using
6160 the LOCATION_FILE and LOCATION_LINE macros.
6162 2011-04-06 Wei Guozhi <carrot@google.com>
6165 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6166 (arm_cond_branch): Likewise.
6167 (arm_cond_branch_reversed): Likewise.
6168 (arm_jump): Likewise.
6169 (push_multi): Likewise.
6170 * config/arm/constraints.md (Py): New constraint.
6172 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6175 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6177 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6178 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6179 #ifdef DBX_DEBUGGING_INFO.
6181 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6184 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6185 if old and new states differ.
6187 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6189 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6190 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6191 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6192 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6193 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6195 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6196 ColdFire options to -mcpu= options.
6198 2011-04-05 Jeff Law <law@redhat.com>
6200 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6201 check if BB is a successor of LOOP->header and return
6202 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6204 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6206 * cprop.c (struct reg_use): Remove.
6207 (reg_use_table): Make an array of RTX.
6208 (find_used_regs, constprop_register, local_cprop_pass,
6209 bypass_block): Simplify users of reg_use_table.
6210 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6211 on one of the uses found by find_used_regs.
6213 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6216 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6219 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6221 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6223 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6225 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6228 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6230 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6232 * combine.c: Include obstack.h.
6233 (struct insn_link): Define.
6234 (uid_log_links): Adjust type.
6235 (FOR_EACH_LOG_LINK): New macro.
6236 (insn_link_obstack): Declare.
6237 (alloc_insn_link): Define.
6238 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6239 type of link variables.
6240 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6241 (try_combine, record_promoted_values, distribute_notes): Likewise.
6242 (distribute_links): Likewise. Tweak prototype.
6243 (clear_log_links): Delete.
6244 (adjust_for_new_dest): Call alloc_insn_link.
6245 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6247 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6249 * gcse.c (modify_mem_list): Convert to an array of VECs.
6250 (canon_modify_mem_list, compute_transp): Tweak formatting.
6251 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6252 (load_killed_in_block_p): Likewise.
6253 (record_last_mem_set_info): Likewise.
6254 (clear_modify_mem_tables): Likewise.
6256 2011-04-05 Tom de Vries <tom@codesourcery.com>
6259 * function.c (emit_use_return_register_into_block): Only define if
6262 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6264 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6266 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6268 * config/rx/rx-opts.h: New.
6269 * config/rx/rx.c (rx_cpu_type): Remove.
6270 (rx_handle_option): Don't assert that global structures are in
6271 use. Access variables via opts pointer. Defer most handling of
6272 OPT_mint_register_. Use error_at.
6273 (rx_option_override): Handle deferred OPT_mint_register_ here.
6274 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6275 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6276 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6277 (rx_cpu_types): New Enum and EnumValue entries.
6278 (mint-register=): Use Defer and use Var accordingly.
6280 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6282 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6283 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6284 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6286 (debug_free_queue, debug_nesting, symbol_queue_index):
6288 * dbxout.c: ...to here. Make static.
6290 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6292 * gcse.c (modify_pair): Define. Define a VEC of it.
6293 (canon_modify_mem_list): Convert to an array of VECs.
6294 (free_insn_expr_list_list): Delete.
6295 (clear_modify_mem_tables): Call VEC_free instead.
6296 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6297 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6298 (canon_list_insert, compute_transp): Likewise.
6300 2011-04-05 Tom de Vries <tom@codesourcery.com>
6303 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6306 2011-04-05 Tom de Vries <tom@codesourcery.com>
6309 * function.c (emit_use_return_register_into_block): New function.
6310 (thread_prologue_and_epilogue_insns): Use
6311 emit_use_return_register_into_block.
6313 2011-04-05 Tom de Vries <tom@codesourcery.com>
6316 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6319 2011-04-05 Tom de Vries <tom@codesourcery.com>
6321 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6323 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6325 * config/arm/arm.md (define_constants for unspec): Replace with
6327 (define_constants for unspecv): Replace with define_c_enum.
6328 * config/arm/neon.md (define_constants for unspec): Replace with
6331 2011-04-04 Richard Henderson <rth@redhat.com>
6334 * dwarf2out.c (output_line_info): Always emit line info from
6335 at least one section.
6336 (dwarf2out_init): Create text_section_line_info here ...
6337 (set_cur_line_info_table): ... not here.
6339 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6342 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6345 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6347 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6349 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6350 (expr_equiv_p): Remove.
6351 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6352 (hash_scan_set): Update call to insert_set_in_table.
6353 (dump_hash_table): Dump <dest, src> pair.
6354 (lookup_set): Simplify. Lookup <dest, src> pair.
6355 (compute_transp): Remove, fold heavily simplified code into...
6356 (compute_local_properties): ...here. Expect COMP and TRANSP
6358 (find_avail_set): Take set directly from struct expr.
6359 (find_bypass-set): Likewise.
6360 (bypass_block): Likewise.
6361 (cprop_insn): Likewise. Remove redundant INSN_P test.
6363 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6364 checks on form of COND from find_implicit_sets to here.
6365 (find_implicit_sets): Cleanup control flow. Split critical edges
6366 if it exposes implicit sets. Allocate/resize implicit_sets as
6368 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6369 changed something. Run df_analyze after find_implicit_sets if any
6370 edges were split. Do not allocate implicit_sets here.
6372 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6373 (gcse_obstack): Renamed to cprop_obstack.
6374 (GNEW, GNEWVEC, GNEWVAR): Remove.
6376 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6377 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6378 (gcse_alloc): Likewise, and rename to cprop_alloc.
6379 (alloc_gcse_men, free_gcse_mem): Remove.
6380 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6381 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6382 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6384 * cprop.c (oprs_not_set_p): Remove.
6385 (mark_set, mark_clobber): Remove.
6386 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6387 (reg_not_set_p): New function.
6388 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6389 (cprop_insn): Likewise.
6390 (cprop_jump): Use FOR_EACH_EDGE.
6392 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6395 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6396 (rank_for_schedule): Use scheduled_insns vector instead of
6397 last_scheduled_insn.
6398 (ok_for_early_queue_removal): Likewise.
6399 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6401 (choose_ready): Likewise.
6402 (commit_schedule): Use VEC_iterate.
6403 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6404 a dbg_cnt, use it and ensure the first insn is in the ready list.
6405 (haifa_sched_init): Allocate scheduled_insns.
6406 (sched_extend_ready_list): Don't allocate it; reserve space.
6407 (haifa_sched_finish): Free it.
6409 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6411 * optc-gen.awk: Always remove type from Variable entry before
6412 recording in var_seen.
6414 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6416 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6417 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6418 call to tidy_fallthru_edges.
6420 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6422 * doc/options.texi (ToLower): Document.
6423 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6424 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6425 * opts.h (cl_option): Add cl_tolower field.
6426 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6427 arguments with lowercase strings.
6428 * config/rx/rx.opt (mcpu=): Add ToLower.
6429 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6432 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6434 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6436 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6438 * config/vax/vax.c: Include reload.h.
6440 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6442 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6443 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6444 (sparc_preferred_reload_class): New function.
6446 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6449 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6450 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6452 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6454 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6455 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6457 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6459 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6460 (ASM_OUTPUT_ALIGNED_BSS): Define.
6462 2011-04-03 Michael Matz <matz@suse.de>
6464 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6465 and next_slot members.
6466 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6467 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6468 (lto_streamer_cache_append): Declare.
6469 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6470 unsigned index, remove offset parameter, ensure that we append
6471 or update existing entries.
6472 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6473 parameter, update next_slot for append.
6474 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6476 (lto_streamer_cache_insert_at): Likewise.
6477 (lto_streamer_cache_append): New function.
6478 (lto_streamer_cache_lookup): Use unsigned index.
6479 (lto_streamer_cache_get): Likewise.
6480 (lto_record_common_node): Don't test tree_node_can_be_shared.
6481 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6482 (lto_streamer_cache_delete): Don't free offsets member.
6483 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6484 (lto_output_string_with_length): Use lto_output_data_stream.
6485 (lto_output_tree_header): Remove ix parameter, don't write it.
6486 (lto_output_builtin_tree): Likewise.
6487 (lto_write_tree): Adjust callers to above, don't track and write
6488 offset, write unsigned index.
6489 (output_unreferenced_globals): Don't emit all global vars.
6490 (write_global_references): Use unsigned indices.
6491 (lto_output_decl_state_refs): Likewise.
6492 (write_symbol): Likewise.
6493 * lto-streamer-in.c (lto_input_chain): Move earlier.
6494 (input_function): Use unsigned index.
6495 (input_alias_pairs): Don't read and then ignore all global vars.
6496 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6497 don't pass it back, use lto_streamer_cache_append.
6498 (lto_register_var_decl_in_symtab): Use unsigned index.
6499 (lto_register_function_decl_in_symtab): Likewise.
6500 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6502 (lto_get_builtin_tree): Don't read index, use
6503 lto_streamer_cache_append.
6504 (lto_read_tree): Adjust call to lto_materialize_tree.
6506 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6507 don't use function calls in arguments to MIN.
6509 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6512 * gimple.c (gimple_type_leader_entry): Mark deletable.
6514 2011-04-03 Alan Modra <amodra@gmail.com>
6516 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6518 2011-04-03 Michael Matz <matz@suse.de>
6520 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6522 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6524 2011-04-03 Michael Matz <matz@suse.de>
6526 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6527 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6528 without function context.
6529 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6530 current_function_decl and cfun.
6532 2011-04-03 Michael Matz <matz@suse.de>
6534 * tree.c (decl_init_priority_insert): Don't create entry for
6536 (decl_fini_priority_insert): Ditto.
6537 (fields_compatible_p, find_compatible_field): Remove.
6538 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6539 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6541 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6543 * combine.c (try_combine): Remove useless local variable.
6545 2011-04-03 Richard Guenther <rguenther@suse.de>
6546 Ira Rosen <ira.rosen@linaro.org>
6548 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6549 non-variable offsets and compare the remaining bases of the two
6550 accesses instead of looking for exact same data-ref.
6552 2011-04-02 Kai Tietz <ktietz@redhat.com>
6555 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6557 * i386.c (ix86_is_msabi_thiscall): New helper function.
6558 (ix86_is_type_thiscall): New helper function.
6559 (ix86_comp_type_attributes): Handle thiscall for method-functions
6561 (init_cumulative_args): Likewise.
6562 (find_drap_reg): Likewise.
6563 (ix86_static_chain): Likewise.
6564 (x86_this_parameter): Likewise.
6565 (x86_output_mi_thunk): Likewise.
6567 2011-04-01 Olivier Hainque <hainque@adacore.com>
6568 Nicolas Setton <setton@adacore.com>
6569 Eric Botcazou <ebotcazou@adacore.com>
6571 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6572 (add_gnat_descriptive_type_attribute): New function.
6573 (gen_array_type_die): Call it.
6574 (gen_enumeration_type_die): Likewise.
6575 (gen_struct_or_union_type_die): Likewise.
6576 (modified_type_die): Likewise.
6577 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6578 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6579 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6581 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6584 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6585 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6588 2011-03-17 Richard Guenther <rguenther@suse.de>
6591 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6592 origin for decls in other ltrans units.
6593 (input_varpool_node): Likewise.
6595 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6598 * expr.c (expand_assignment): Handle all possibilities
6599 if TO_RTX is CONCAT.
6600 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6601 (store_split_bit_field): If SUBREG_REG (op0) or
6602 op0 itself has smaller mode than word, return it
6603 for offset 0 and const0_rtx for out-of-bounds stores.
6604 If word is const0_rtx, skip it.
6606 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6608 * config/h8300/h8300.c (print_operand_address): Rename to...
6609 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6610 Call h8300_print_operand and h8300_print_operand_address instead of
6611 print_operand and print_operand_address. Declare.
6612 (print_operand): Renake to...
6613 (h8300_print_operand): ...this. Make static. Adjust comments.
6614 Call h8300_print_operand instead of print_operand. Declare.
6615 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6616 (h8300_register_move_cost): Likewise.
6617 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6618 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6619 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6620 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6621 * config/h8300/h8300-protos.h (print_operand): Delete.
6622 (print_operand_address): Delete.
6624 2011-04-01 Richard Henderson <rth@redhat.com>
6627 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6628 in strict mode before dwarf4. Re-order tests to early out
6629 before switching sections.
6631 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6633 * config/h8300/constraints.md: New file.
6634 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6635 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6636 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6637 * config/h8300/predicates.md (bit_operand): Likewise.
6638 (incdec_operand): Use satisfies_constraint_M and
6639 satisfies_constraint_O. Don't use C code block.
6640 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6641 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6642 (compute_mov_length): Use satisfies_constraint_G.
6643 (fix_bit_operand): Use satisfies_constraint_U.
6644 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6645 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6646 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6647 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6648 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6649 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6650 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6651 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6652 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6653 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6654 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6655 (EXTRA_MEMORY_CONSTRAINT): Delete.
6657 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6658 Michael Meissner <meissner@linux.vnet.ibm.com>
6661 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6662 operands, as per the specifications.
6664 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6665 (vec_extract_evenv4sf): Ditto.
6666 (vec_extract_evenv8hi): Ditto.
6667 (vec_extract_evenv16qi): Ditto.
6668 (vec_extract_oddv4si): Ditto.
6670 2011-03-31 Mark Wielaard <mjw@redhat.com>
6672 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6673 high_pc attribute if the CU has no associated code. Only output
6674 DW_AT_entry_pc for CU if not generating strict dwarf and
6677 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6679 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6680 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6682 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6683 * final.c (final_start_function): Call the new function rather
6684 than using a NULL argument for dwarf2out_frame_debug.
6686 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6687 that contains the prologue.
6689 * haifa-sched.c (queue_insn): New arg REASON. All callers
6690 changed. Print it in debugging output.
6692 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6694 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6695 Split most of the code into...
6696 (begin_move_insn): ... here. New function.
6697 (ebb_sched_info): Add a pointer to it.
6698 * haifa-sched.c (scheduled_insns): New static variable.
6699 (sched_extend_ready_list): Allocate it.
6700 (schedule_block): Use it to record the order of scheduled insns.
6701 Perform RTL changes to move insns only after all scheduling
6702 decisions have been made.
6703 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6704 begin_move_insn field.
6705 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6706 * sched-int.h (struct haifa_sched_info): Remove second argument
6707 from begin_schedule_ready hook. Add new member begin_move_insn.
6708 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6709 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6711 * haifa-sched.c (prune_ready_list): New function, broken out of
6713 (schedule_block): Use it.
6715 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6717 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6719 2011-04-01 Kai Tietz <ktietz@redhat.com>
6721 * config.gcc (*-*-mingw*): Allow as option the
6722 posix threading model.
6723 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6724 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6726 (CPP_SPEC): Add pthread/no-pthread handling.
6727 (LIB_SPEC): Likewise.
6728 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6729 (LIB_SPEC): Likewise.
6730 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6731 flag to pass -pthread option for shared libgcc build.
6732 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6733 for shared libgcc build.
6734 * config/i386/t-mingw-pthread: New file.
6735 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6736 New define to enable use of library pthread by default.
6737 * config/i386/mingw.opt (pthread): New driver option.
6738 (no-pthread): New driver option.
6739 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6740 * config/i386/mingw-w64.opt: Likewise.
6742 2011-04-01 Gary Funck <gary@intrepid.com>
6744 * c-decl.c (grokdeclarator): Fix formatting.
6746 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6748 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6749 instead of n_operands.
6750 (set_storage_via_setmem): Likewise.
6751 * optabs.c (maybe_gen_insn): Likewise.
6752 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6753 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6754 (mips_expand_builtin_direct): Likewise.
6755 * config/spu/spu.c (expand_builtin_args): Likewise.
6757 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6759 * recog.h (insn_data_d): Add n_generator_args.
6760 * genoutput.c (data): Likewise.
6761 (output_insn_data): Print it.
6762 (max_opno, num_dups): Delete.
6763 (scan_operands): Just fill in "d->operand[...]".
6764 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6766 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6768 * gensupport.h (pattern_stats): New structure.
6769 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6770 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6771 (max_operand_1, max_operand_vec): Delete.
6772 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6774 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6776 * emit-rtl.c (emit_pattern_after_setloc): New function.
6777 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6778 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6779 (emit_pattern_after): New function.
6780 (emit_insn_after, emit_jump_insn_after): Call it.
6781 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6782 (emit_pattern_before_setloc): New function.
6783 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6784 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6786 (emit_pattern_before): New function.
6787 (emit_insn_before, emit_jump_insn_before): Call it.
6788 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6790 2011-03-31 Richard Henderson <rth@redhat.com>
6792 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6793 (dw_separate_line_info_entry): Remove.
6794 (enum dw_line_info_opcode): New.
6795 (dw_line_info_entry): Use it.
6796 (dw_line_info_table, dw_line_info_table_p): New.
6797 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6798 (line_info_table, line_info_label_num): Remove.
6799 (line_info_table_in_use): Remove.
6800 (separate_line_info_table): Remove.
6801 (separate_line_info_table_allocated): Remove.
6802 (separate_line_info_table_in_use): Remove.
6803 (LINE_INFO_TABLE_INCREMENT): Remove.
6804 (line_info_label_num): New.
6805 (cur_line_info_table): New.
6806 (text_section_line_info, cold_text_section_line_info): New.
6807 (separate_line_info): New.
6808 (SEPARATE_LINE_CODE_LABEL): Remove.
6809 (print_dwarf_line_table): Remove.
6810 (debug_dwarf): Don't dump it.
6811 (output_one_line_info_table): New.
6812 (output_line_info): Use it.
6813 (new_line_info_table): New.
6814 (set_cur_line_info_table): New.
6815 (dwarf2out_switch_text_section): Use it.
6816 (dwarf2out_begin_function): Likewise.
6817 (push_dw_line_info_entry): New.
6818 (dwarf2out_source_line): Rewrite for new line info tables.
6819 (dwarf2out_init): Remove dead initailizations.
6821 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6823 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6825 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6826 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6827 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6828 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6829 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6830 * opt-functions.awk (flag_init, switch_bit_fields): New.
6831 (switch_flags): Don't handle flags moved to bit-fields. Don't
6832 generate CL_MISSING_OK or CL_SAVE.
6833 * optc-gen.awk: Update to generate bit-field output as well as
6835 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6836 bit-field instead of CL_REJECT_DRIVER flag.
6837 * opts-common.c (generate_canonical_option,
6838 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6839 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6840 instead of CL_REJECT_NEGATIVE flag.
6841 * toplev.c (print_switch_values): Use cl_report bit-field instead
6844 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6846 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6847 a zero minimum index only if it is redundant.
6849 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6851 PR rtl-optimization/48381
6852 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6853 instead of ira_class_hard_reg_index for calculating conflicting
6856 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6858 * cprop.c: Clean up hash table building.
6859 (reg_avail_info): Remove.
6860 (oprs_available_p): Remove.
6861 (record_last_reg_set_info): Remove.
6862 (record_last_set_info): Remove.
6863 (reg_available_p): New function.
6864 (gcse_constant_p): Do not treat unfolded conditions as constants.
6865 (make_set_regs_unavailable): New function.
6866 (hash_scan_set): Simplify with new reg_available_p.
6867 (compute_hash_table_work): Traverse insns stream only once.
6868 Do not compute reg_avail_info. Traverse insns in reverse order.
6869 Record implicit sets after recording explicit sets from the block.
6871 2011-03-31 Michael Matz <matz@suse.de>
6873 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6875 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6877 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6878 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6879 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6880 (h8300_mode_dependent_address_p): New function.
6881 (h8300_get_index): Make static.
6883 2011-03-31 Jeff Law <law@redhat.com>
6885 * reload1.c (elimination_effects): Fix typo in recent change.
6887 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6888 typo potentially leading to null pointer dereference.
6890 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6891 (setup_save_areas): Corresponding changes to avoid useless
6894 * jump.c (reversed_comparison_code_parts): Avoid successive return
6895 statements when REVERSE_CONDITION is defined.
6897 * expr.c (expand_assignment): Avoid useless assignments.
6898 (expand_expr_real_1): Likewise.
6899 (expand_expr_real_2): Avoid useless statements.
6901 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6903 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6905 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6908 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6910 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6913 * doc/tm.texi.in (TARGET_VERSION): Remove.
6914 * doc/tm.texi: Regenerate.
6915 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6916 * collect2.c (main): Don't use TARGET_VERSION.
6917 * mips-tdump.c (main): Don't use TARGET_VERSION.
6918 * mips-tfile.c (main): Don't use TARGET_VERSION.
6919 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6920 * config/rs6000/vxworksae.h: Remove.
6921 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6922 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6923 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6924 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6925 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6926 * config/arm/arm.h (TARGET_VERSION): Remove.
6927 * config/arm/coff.h (TARGET_VERSION): Remove.
6928 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6929 * config/arm/elf.h (TARGET_VERSION): Remove.
6930 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6931 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6932 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6933 * config/arm/pe.h (TARGET_VERSION): Remove.
6934 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6935 * config/arm/semi.h (TARGET_VERSION): Remove.
6936 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6937 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6938 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6939 * config/avr/avr.h (TARGET_VERSION): Remove.
6940 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6941 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6942 * config/frv/frv.h (TARGET_VERSION): Remove.
6943 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6944 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6945 * config/i386/darwin.h (TARGET_VERSION): Remove.
6946 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6947 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6948 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6949 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6950 * config/i386/gnu.h (TARGET_VERSION): Remove.
6951 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6952 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6953 * config/i386/linux.h (TARGET_VERSION): Remove.
6954 * config/i386/linux64.h (TARGET_VERSION): Remove.
6955 * config/i386/lynx.h (TARGET_VERSION): Remove.
6956 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6957 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6958 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6959 * config/i386/netware.h (TARGET_VERSION): Remove.
6960 * config/i386/nto.h (TARGET_VERSION): Remove.
6961 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6962 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6963 * config/ia64/elf.h (TARGET_VERSION): Remove.
6964 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6965 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6966 * config/ia64/linux.h (TARGET_VERSION): Remove.
6967 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6968 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6969 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6970 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6971 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6972 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6973 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6974 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6975 * config/m68k/linux.h (TARGET_VERSION): Remove.
6976 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6977 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6978 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6979 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6980 * config/mep/mep.h (TARGET_VERSION): Remove.
6981 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6982 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6983 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6984 * config/mips/linux.h (TARGET_VERSION): Remove.
6985 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6986 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6987 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6988 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6989 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6990 * config/pa/pa.h (TARGET_VERSION): Remove.
6991 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6992 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6993 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6994 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6995 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6996 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6997 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6998 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6999 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7000 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7001 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7002 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7003 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7004 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7005 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7006 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7007 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7008 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7009 * config/s390/linux.h (TARGET_VERSION): Remove.
7010 * config/s390/s390.h (TARGET_VERSION): Remove.
7011 * config/s390/tpf.h (TARGET_VERSION): Remove.
7012 * config/score/score.h (TARGET_VERSION): Remove.
7013 * config/sh/linux.h (TARGET_VERSION): Remove.
7014 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7015 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7016 * config/sh/sh.h (TARGET_VERSION): Remove.
7017 * config/sh/sh64.h (TARGET_VERSION): Remove.
7018 * config/sh/superh.h (TARGET_VERSION): Remove.
7019 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7020 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7021 * config/sparc/linux.h (TARGET_VERSION): Remove.
7022 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7023 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7024 TARGET_NAME32, TARGET_NAME): Remove.
7025 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7026 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7027 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7028 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7029 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7030 * config/spu/spu.h (TARGET_VERSION): Remove.
7031 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7032 * config/v850/v850.h (TARGET_VERSION): Remove.
7033 * config/vax/linux.h (TARGET_VERSION): Remove.
7034 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7035 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7036 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7038 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7041 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7042 frame-related from frame-unrelated adjustments to the stack pointer.
7044 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7046 * common.opt (fdebug-types-section): Move earlier.
7047 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7049 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7051 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7054 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7056 * tree.h (CASE_CHAIN): Define.
7057 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7058 (gimple_redirect_edge_and_branch): Likewise.
7060 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7063 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7066 2011-03-30 Jeff Law <law@redhat.com>
7068 * PR bootstrap/48371
7069 * reload1.c (reload): Fix botch in last change.
7071 * reload.h (struct reload): Fix typo introduced in last change.
7073 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7075 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7076 Undocumented. Remove help text.
7077 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7080 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7082 * doc/options.texi (NegativeAlias): Document.
7083 (Alias): Mention NegativeAlias.
7084 * opt-functions.awk: Handle NegativeAlias.
7085 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7086 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7087 * opts.h (CL_NEGATIVE_ALIAS): Define.
7088 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7089 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7091 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7093 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7094 mno-spe and mno-isel instead of mspe=no and -misel=no.
7096 2011-03-29 Mark Wielaard <mjw@redhat.com>
7098 * common.opt (fdebug-types-section): New flag.
7099 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7100 * dwarf2out.c (use_debug_types): New define.
7101 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7102 (print_die): Guard output of type unit signatures using
7104 (build_abbrev_table): Replace assert of dwarf_version >= 4
7105 with assert on use_debug_types.
7106 (size_of_die): Likewise.
7107 (unmark_dies): Likewise.
7108 (value_format): Decide AT_ref_external form on use_debug_types.
7109 (output_die): Replace dwarf_version version check guard with
7110 use_debug_types where appropriate.
7111 (modified_type_die): Likewise.
7112 (gen_reference_type_die): Likewise.
7113 (dwarf2out_start_source_file): Likewise.
7114 (dwarf2out_end_source_file): Likewise.
7115 (prune_unused_types_walk_attribs): Likewise.
7116 (dwarf2out_finish): Likewise.
7118 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7120 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7122 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7124 PR rtl-optimization/48332
7125 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7126 mode of input operand N and modeN to its actual mode.
7128 2011-03-30 Jeff Law <law@redhat.com>
7130 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7131 define accessor macro.
7132 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7133 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7134 (reg_equiv_init): Likewise.
7135 (reg_equivs_size): New variable.
7136 (reg_equiv_init_size): Remove.
7137 (allocate_initial_values): Move prototype to here from....
7138 * integrate.h (allocate_initial_values): Remove prototype.
7139 * integrate.c: Include reload.h.
7140 (allocate_initial_values): Corresponding changes.
7141 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7142 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7143 (update_equiv_regs): Corresponding changes.
7144 (ira): Corresponding changes.
7145 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7146 (push_secondary_reload): Corresponding changes.
7147 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7148 (make_memloc, find_reloads_address): Corresponding changes.
7149 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7150 (find_reloads_address_1): Corresponding changes.
7151 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7152 (refers_to_regno_for_reload_p): Corresponding changes.
7153 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7154 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7155 * reload1.c: Include ggc.h.
7156 (grow_reg_equivs): New function.
7157 (replace_pseudos_in, reload): Corresponding changes.
7158 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7159 (eliminate_regs_1, elimination_effects): Corresponding changes.
7160 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7161 (delete_output_reload): Likewise.
7162 * caller-save.c (mark_referenced_regs): Corresponding changes.
7163 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7164 * frv/predicates.md (frv_load_operand): Corresponding changes.
7165 * microblaze/microblaze.c (double_memory_operand): Corresponding
7167 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7168 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7169 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7170 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7171 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7173 * pa/pa.c (emit_move_sequence): Corresponding changes.
7174 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7176 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7179 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7180 structure modes. Don't check neon_vector_mem_operand for
7181 vector or structure modes.
7183 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7184 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7187 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7188 operand 1 and reshuffle the operands to match.
7189 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7191 2011-03-30 Christian Schüler <cschueler@gmx.de>
7194 * config/c.opt (F): Added 'Driver' to -F option.
7197 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7199 * config/darwin.opt: Added '-arch' option.
7201 2011-03-30 Nick Clifton <nickc@redhat.com>
7203 * config/rx/rx.md: Add peepholes and patterns to combine
7204 extending loads and simple arithmetic instructions.
7205 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7206 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7207 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7208 modes to use pre-decrement and post-increment addressing.
7209 (rx_is_restricted_memory_address): Add range checking of REG+INT
7211 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7212 (rx_memory_move_cost): Adjust cost of stores.
7213 (rx_adjust_insn_length): New function.
7215 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7218 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7219 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7220 matching arg00/arg01 types.
7222 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7224 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7225 last_location to UNKNOWN_LOCATION.
7227 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7230 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7233 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7234 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7237 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7239 (sparc_cpu): Likewise.
7240 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7243 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7247 PR rtl-optimization/48345
7248 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7249 hard regs for given mode from profitable regs when doing secondary
7252 2011-03-29 Jeff Law <law@redhat.com>
7255 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7256 do_not_duplicate field.
7257 (lookup_redirection_data): Corresponding changes.
7258 (create_duplicates): Always create a template block.
7259 (redirect_edges): Remove code which reused the original block
7260 when it was going to become unreachable code.
7261 (thread_block): Don't set do_not_duplicate field.
7263 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7265 * lto-opts.c (register_user_option_p, lto_register_user_option):
7266 Make type argument unsigned.
7267 * lto-streamer.h (lto_register_user_option): Make type argument
7269 * opth-gen.awk: Make CL_* macros unsigned.
7270 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7271 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7272 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7273 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7274 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7275 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7276 (find_opt): Make lang_mask argument unsigned.
7278 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7280 PR rtl-optimization/48331
7281 PR rtl-optimization/48334
7282 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7283 for any used algorithm.
7285 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7287 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7290 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7292 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7293 (alpha_option_override): Don't set alpha_sr_alias_set.
7294 (emit_frame_store_1): Use gen_frame_mem rather than calling
7296 (alpha_expand_epilogue): Ditto.
7298 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7300 PR tree-optimization/48290
7301 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7302 vectorization, check that relevant phis in the basic block after
7303 the inner loop are really inner loop's exit phis.
7305 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7308 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7309 (cached_dw_loc_list_def): New structure.
7310 (cached_dw_loc_list): New typedef.
7311 (cached_dw_loc_list_table): New variable.
7312 (cached_dw_loc_list_table_hash): New function.
7313 (cached_dw_loc_list_table_eq): Likewise.
7314 (add_location_or_const_value_attribute): Take a bool cache_p.
7315 Cache the list when the parameter is true.
7316 (gen_formal_parameter_die): Update caller.
7317 (gen_variable_die): Likewise.
7318 (dwarf2out_finish): Likewise.
7319 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7320 while generating debug info for the decl.
7321 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7322 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7323 (resolve_addr): Cache the result of resolving a chain of
7326 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7328 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7329 conflict object hard regset nodes have intersecting hard reg sets.
7331 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7332 after regstat_init_n_sets_and_refs.
7334 * ira.c: Add more comments at the top.
7335 (setup_stack_reg_pressure_class, setup_pressure_classes):
7336 Add comments how we compute the register pressure classes.
7337 (setup_allocno_and_important_classes): Add more comments.
7338 (setup_class_translate_array, reorder_important_classes)
7339 (setup_reg_class_relations): Add comments.
7341 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7344 * ira-color.c: Add 2011 to the Copyright line.
7345 (assign_hard_reg): Add more comments.
7346 (improve_allocation): Ditto.
7348 * ira-costs.c: Add 2011 to the Copyright line.
7349 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7351 (setup_regno_cost_classes_by_mode): Ditto.
7353 Initial patches from ira-improv branch:
7355 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7357 * ira-build.c (ira_create_object): Remove initialization of
7358 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7359 (ira_create_allocno): Remove initialization of
7360 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7361 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7362 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7363 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7364 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7365 Initialize ALLOCNO_ADD_DATA.
7366 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7367 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7369 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7370 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7372 * ira.c (ira_reallocate): Remove.
7373 (setup_pressure_classes): Call
7374 ira_init_register_move_cost_if_necessary. Use
7375 ira_register_move_cost instead of ira_get_register_move_cost.
7376 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7377 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7379 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7380 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7381 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7382 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7383 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7384 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7386 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7387 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7388 (struct allocno_color_data): New.
7389 (allocno_color_data_t): New typedef.
7390 (allocno_color_data): New definition.
7391 (ALLOCNO_COLOR_DATA): New macro.
7392 (struct object_color_data): New.
7393 (object_color_data_t): New typedef.
7394 (object_color_data): New definition.
7395 (OBJECT_COLOR_DATA): New macro.
7396 (update_copy_costs, calculate_allocno_spill_cost): Call
7397 ira_init_register_move_cost_if_necessary. Use
7398 ira_register_move_cost instead of ira_get_register_move_cost.
7399 (move_spill_restore, update_curr_costs): Ditto.
7400 (allocno_spill_priority): Make it inline.
7401 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7402 (struct coalesce_data, coalesce_data_t): New.
7403 (allocno_coalesce_data): New definition.
7404 (ALLOCNO_COALESCE_DATA): New macro.
7405 (merge_allocnos, coalesced_allocno_conflict_p): Use
7406 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7407 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7408 (coalesce_allocnos): Ditto.
7409 (setup_coalesced_allocno_costs_and_nums): Ditto.
7410 (collect_spilled_coalesced_allocnos): Ditto.
7411 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7412 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7413 (coalesce_spill_slots): Ditto.
7414 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7415 free allocno_coalesce_data.
7417 * ira-conflicts.c: Fix formatting.
7418 (process_regs_for_copy): Call
7419 ira_init_register_move_cost_if_necessary. Use
7420 ira_register_move_cost instead of ira_get_register_move_cost.
7421 (build_object_conflicts): Optimize.
7423 * ira-costs.c (record_reg_classes): Optimize. Call
7424 ira_init_register_move_cost_if_necessary. Use
7425 ira_register_move_cost, ira_may_move_in_cost, and
7426 ira_may_move_out_cost instead of ira_get_register_move_cost and
7427 ira_get_may_move_cost.
7428 (record_address_regs): Ditto.
7429 (scan_one_insn): Optimize.
7430 (find_costs_and_classes): Optimize.
7431 (process_bb_node_for_hard_reg_moves): Call
7432 ira_init_register_move_cost_if_necessary. Use
7433 ira_register_move_cost instead of ira_get_register_move_cost.
7435 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7436 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7437 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7438 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7440 (ira_initiate_emit_data, ira_finish_emit_data)
7441 (create_new_allocno): New functions.
7442 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7443 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7444 Use ira_register_move_cost instead of ira_get_register_move_cost.
7446 * ira-int.h: Fix some comments.
7447 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7448 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7449 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7450 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7452 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7453 bitfield after mode. Make hard_regno a short int. Make
7454 hard_regno short. Remove first_coalesced_allocno and
7455 next_coalesced_allocno. Move mem_optimized_dest_p,
7456 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7457 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7458 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7459 temp, colorable_p. Add new member add_data.
7460 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7461 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7462 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7463 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7464 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7465 (ALLOCNO_ADD_DATA): New macro.
7466 (ira_emit_data_t): New typedef.
7467 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7468 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7469 from struct ira_allocno.
7470 (ALLOCNO_EMIT_DATA): New macro.
7471 (ira_allocno_emit_data, allocno_emit_reg): New.
7472 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7473 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7474 (OBJECT_ADD_DATA): New macro.
7475 (ira_reallocate): Remove.
7476 (ira_initiate_emit_data, ira_finish_emit_data): New.
7477 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7478 (ira_init_register_move_cost_if_necessary): New.
7479 (ira_object_conflict_iter_next): Merge into
7480 ira_object_conflict_iter_cond.
7481 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7483 * ira-live.c (process_single_reg_class_operands): Call
7484 ira_init_register_move_cost_if_necessary. Use
7485 ira_register_move_cost instead of ira_get_register_move_cost.
7487 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7489 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7491 * ira-costs.c: Fix formatting.
7492 (cost_classes, cost_classes_num): Remove.
7493 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7494 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7495 (cost_classes_del, cost_classes_htab): New.
7496 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7497 (initiate_regno_cost_classes, setup_cost_classes): New.
7498 (setup_regno_cost_classes_by_aclass): New.
7499 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7500 (record_reg_classes): Use regno_cost_classes instead of
7501 cost_classes. Move checking opposite operand up.
7502 (record_address_regs): Use regno_cost_classes
7503 instead of cost_classes.
7504 (scan_one_insn): Ditto. Use always general register.
7505 (print_allocno_costs): Use regno_cost_classes instead of
7507 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7508 (find_costs_and_classes): Set up cost classes for each registers.
7509 Use also their mode for this. Use regno_cost_classes instead of
7511 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7513 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7514 (ira_costs, ira_set_pseudo_classes): Call
7515 initiate_regno_cost_classes and finish_regno_cost_classes.
7517 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7519 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7521 * target.def (ira_cover_classes): Remove.
7523 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7525 * doc/tm.texi.in: Ditto.
7527 * ira-conflicts.c: Remove mentioning cover classes from the file.
7528 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7529 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7531 * targhooks.c (default_ira_cover_classes): Remove.
7533 * targhooks.h (default_ira_cover_classes): Ditto.
7535 * haifa-sched.c: Remove mentioning cover classes from the file.
7536 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7537 ira_pressure_classes and ira_pressure_classes_num instead of
7538 ira_reg_class_cover_size and ira_reg_class_cover. Use
7539 sched_regno_pressure_class instead of sched_regno_cover_class.
7540 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7541 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7543 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7544 classes from the file.
7545 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7546 (struct object_hard_regs, struct object_hard_regs_node): New.
7547 (struct ira_object): New members profitable_hard_regs,
7548 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7549 (struct ira_allocno): Rename cover_class to aclass. Rename
7550 cover_class_cost and updated_cover_class_cost to class_cost and
7551 updated_class_cost. Remove splay_removed_p and
7552 left_conflict_size. Add new members colorable_p.
7553 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7554 (ALLOCNO_COLORABLE_P): New macro.
7555 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7556 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7557 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7558 (OBJECT_...): Rename parameter C to O.
7559 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7560 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7561 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7562 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7563 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7564 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7565 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7566 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7567 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7568 x_ira_reg_class_subunion.
7569 (ira_max_memory_move_cost, ira_max_register_move_cost)
7570 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7571 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7572 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7573 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7574 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7575 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7576 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7577 (ira_tune_allocno_costs_and_cover_classes): Rename to
7578 ira_tune_allocno_costs.
7579 (ira_debug_hard_regs_forest): New.
7580 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7581 (ira_object_conflict_iter_next): Fix comments.
7582 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7583 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7584 cover_class to aclass.
7585 (ira_allocate_and_accumulate_costs): Ditto.
7586 (ira_allocate_and_set_or_copy_costs): Ditto.
7588 * opts.c (decode_options): Remove ira_cover_class check.
7590 * ira-color.c: Remove mentioning cover classes from the file. Use
7591 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7592 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7593 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7594 (splay-tree.h): Remove include.
7595 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7596 before copy_freq_compare_func.
7597 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7598 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7600 (hard_regs_roots, hard_regs_node_vec): Ditto.
7601 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7602 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7603 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7604 (create_new_object_hard_regs_node): Ditto.
7605 (add_new_object_hard_regs_node_to_forest): Ditto.
7606 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7607 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7609 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7610 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7611 (remove_unused_object_hard_regs_nodes): Ditto.
7612 (enumerate_object_hard_regs_nodes): Ditto.
7613 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7614 (object_hard_regs_subnode_t): Ditto.
7615 (struct object_hard_regs_subnode): Ditto.
7616 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7617 (setup_object_hard_regs_subnode_index): Ditto.
7618 (get_object_hard_regs_subnodes_num): Ditto.
7619 (form_object_hard_regs_nodes_forest): Ditto.
7620 (finish_object_hard_regs_nodes_tree): Ditto.
7621 (finish_object_hard_regs_nodes_forest): Ditto.
7622 (allocnos_have_intersected_live_ranges_p): Rename to
7623 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7624 (pseudos_have_intersected_live_ranges_p): Rename to
7625 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7626 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7627 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7628 (update_copy_costs): Remove assert. Skip cost update if the hard
7629 reg does not belong the class.
7630 (assign_hard_reg): Process only profitable hard regs.
7631 (uncolorable_allocnos_num): Make it scalar.
7632 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7633 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7634 and ira_reg_class_max_nregs.
7635 (bucket_allocno_compare_func): Check frequency first.
7636 (sort_bucket): Add compare function as a parameter.
7637 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7638 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7639 (push_allocno_to_stack): Rewrite for checking new allocno
7641 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7642 (push_only_colorable): Pass new parameter to sort_bucket.
7643 (push_allocno_to_spill): Remove.
7644 (allocno_spill_priority_compare): Make it inline and rewrite.
7645 (splay_tree_allocate, splay_tree_free): Remove.
7646 (allocno_spill_sort_compare): New function.
7647 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7648 build and use splay tree. Choose first allocno in uncolorable
7649 allocno bucket to spill. Remove setting spill cost.
7650 (all_conflicting_hard_regs): Remove.
7651 (setup_allocno_available_regs_num): Check only profitable hard
7652 regs. Print info about hard regs nodes.
7653 (setup_allocno_left_conflicts_size): Remove.
7654 (put_allocno_into_bucket): Don't call
7655 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7656 (improve_allocation): New.
7657 (color_allocnos): Call setup_profitable_hard_regs,
7658 form_object_hard_regs_nodes_forest, improve_allocation,
7659 finish_object_hard_regs_nodes_forest. Setup spill cost.
7660 (print_loop_title): Use pressure classes.
7661 (color_allocnso): Ditto.
7662 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7663 and allocnos_for_spilling.
7664 (ira_sort_regnos_for_alter_reg): Don't setup members
7665 {first,next}_coalesced_allocno.
7666 (color): Remove allocating and freeing removed_splay_allocno_vec.
7667 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7668 prohibited_class_mode_regs.
7670 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7672 (update_allocno_pressure_excess_length): Use pressure classes.
7673 (inc_register_pressure, dec_register_pressure): Check for pressure
7675 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7676 pressure class. Use ira_reg_class_nregs instead of
7677 ira_reg_class_max_nregs.
7678 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7679 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7680 (single_reg_class): Use ira_reg_class_nregs instead of
7681 ira_reg_class_max_nregs.
7682 (process_bb_node_lives): Use pressure classes.
7684 * ira-emit.c: Remove mentioning cover classes from the file. Use
7685 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7686 (change_loop): Use pressure classes.
7687 (modify_move_list): Call ira_set_allocno_class instead of
7688 ira_set_allocno_cover_class.
7690 * ira-build.c: Remove mentioning cover classes from the file. Use
7691 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7692 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7693 ALLOCNO_UPDATED_CLASS_COST instead of
7694 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7695 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7696 (ira_create_allocno): Remove initialization of
7697 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7698 ALLOCNO_COLORABLE_P.
7699 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7700 Update conflict regs for the objects.
7701 (create_cap_allocno): Remove assert. Don't propagate
7702 ALLOCNO_AVAILABLE_REGS_NUM.
7703 (ira_free_allocno_costs): New function.
7704 (finish_allocno): Change a part of code into call of
7705 ira_free_allocno_costs.
7706 (low_pressure_loop_node_p): Use pressure classes.
7707 (object_range_compare_func): Don't compare classes.
7708 (setup_min_max_conflict_allocno_ids): Ditto.
7710 * loop-invariant.c: Remove mentioning cover classes from the file.
7711 Use ira_pressure_classes and ira_pressure_classes_num instead of
7712 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7713 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7714 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7715 Use reg_allocno_class instead of reg_cover_class.
7716 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7717 STACK_REG_COVER_CLASS.
7718 (get_regno_cover_class): Rename to get_regno_pressure_class.
7719 (move_loop_invariants): Initialize and finalize regstat.
7721 * ira.c: Remove mentioning cover classes from the file. Add
7722 comments about coloring without cover classes. Use ALLOCNO_CLASS
7723 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7724 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7725 setup_class_subset_and_memory_move_costs.
7726 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7727 (setup_cover_and_important_classes): Rename to
7728 setup_allocno_and_important_classes.
7729 (setup_class_translate_array): New.
7730 (setup_class_translate): Call it for allocno and pressure classes.
7731 (cover_class_order): Rename to allocno_class_order.
7732 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7733 of ira_class_translate.
7734 (reorder_important_classes): Set up ira_important_class_nums.
7735 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7736 (print_class_cover): Rename to print_classes. Add parameter.
7737 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7738 Print pressure classes too.
7739 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7740 setup_reg_subclasses.
7741 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7742 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7743 (setup_prohibited_class_mode_regs): Use
7744 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7745 (clarify_prohibited_class_mode_regs): New function.
7746 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7747 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7748 (ira_init_once): Initialize them.
7749 (free_register_move_costs): Process them.
7750 (ira_init): Move calls of find_reg_classes and
7751 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7752 Call clarify_prohibited_class_mode_regs.
7753 (ira_no_alloc_reg): Remove.
7754 (too_high_register_pressure_p): Use pressure classes.
7756 * sched-deps.c: Remove mentioning cover classes from the file.
7757 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7758 ira_pressure_classes and ira_pressure_classes_num instead of
7759 ira_reg_class_cover_size and ira_reg_class_cover.
7760 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7761 sched_regno_pressure_class instead of sched_regno_cover_class.
7762 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7763 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7765 * ira.h: Add 2010 to Copyright.
7766 (ira_no_alloc_reg): Remove external.
7767 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7768 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7769 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7770 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7771 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7772 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7773 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7774 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7775 x_ira_no_alloc_regs.
7776 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7777 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7778 ira_allocno_classes_num and ira_allocno_classes.
7779 (ira_class_translate): Rename to ira_allocno_class_translate.
7780 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7781 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7782 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7783 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7784 (ira_no_alloc_regs): New.
7786 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7787 classes from the file. Use ALLOCNO_CLASS instead of
7788 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7789 ALLOCNO_COVER_CLASS_COST.
7790 (regno_cover_class): Rename to regno_aclass.
7791 (record_reg_classes): Use ira_reg_class_subunion instead of
7792 ira_reg_class_union.
7793 (record_address_regs): Check overflow.
7794 (scan_one_insn): Ditto.
7795 (print_allocno_costs): Print total mem cost fore regional allocation.
7796 (print_pseudo_costs): Use REG_N_REFS.
7797 (find_costs_and_classes): Use classes intersected with them on the
7798 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7799 ira_reg_class_union. Use ira_allocno_class_translate and
7800 regno_aclass instead of ira_class_translate and regno_cover_class.
7801 Modify code for finding regno_aclass. Setup preferred classes for
7803 (setup_allocno_cover_class_and_costs): Rename to
7804 setup_allocno_class_and_costs. Use regno_aclass instead of
7805 regno_cover_class. Use ira_set_allocno_class instead of
7806 ira_set_allocno_cover_class.
7807 (init_costs, finish_costs): Use regno_aclass instead of
7809 (ira_costs): Use setup_allocno_class_and_costs instead of
7810 setup_allocno_cover_class_and_costs.
7811 (ira_tune_allocno_costs_and_cover_classes): Rename to
7812 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7813 by processing objects. Use ira_reg_class_max_nregs instead of
7814 ira_reg_class_nregs.
7816 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7818 * sched-int.h: Remove mentioning cover classes from the file.
7819 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7821 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7822 classes from the file.
7823 (struct reg_pref): Rename coverclass into allocnoclass.
7824 (reg_cover_class): Rename to reg_allocno_class.
7826 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7828 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7830 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7832 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7834 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7836 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7838 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7840 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7842 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7844 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7846 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7847 (i386_ira_cover_classes): Ditto.
7849 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7851 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7853 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7855 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7857 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7859 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7861 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7862 (mips_ira_cover_classes): Ditto.
7864 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7866 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7868 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7870 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7872 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7874 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7875 (IRA_COVER_CLASSES_VSX): Ditto.
7877 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7878 (rs6000_ira_cover_classes): Ditto.
7880 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7882 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7884 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7886 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7888 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7890 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7892 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7894 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7896 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7898 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7900 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7903 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7904 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7905 dw_fde_unlikely_section_end_label, cold_in_std_section,
7906 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7907 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7909 (output_fde): Use dw_fde_second_{begin,end} if second is
7910 true, otherwise dw_fde_{begin,end}.
7911 (output_call_frame_info): Test dw_fde_second_begin != NULL
7912 instead of dw_fde_switched_sections.
7913 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7914 fields, initialize new fields. Initialize in_std_section
7915 unconditionally from the first partition.
7916 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7917 dw_fde_second_begin is non-NULL.
7918 (dwarf2out_switch_text_section): Stop initializing removed
7919 dw_fde_struct fields, initialize new fields, initialize
7920 also dw_fde_end here. Set dw_fde_switch_cfi even when
7921 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7922 (struct var_loc_list_def): Add last_before_switch field.
7923 (arange_table, arange_table_allocated, arange_table_in_use,
7924 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7925 (size_of_aranges): Count !in_std_section and !second_in_std_section
7926 hunks in fdes, instead of looking at arange_table_in_use.
7927 (output_aranges): Add aranges_length argument, don't call
7928 size_of_aranges here. Instead of using aranges_table*
7929 emit ranges for fdes when !in_std_section resp.
7930 !second_in_std_section.
7931 (dw_loc_list): Break ranges crossing section switch.
7932 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7933 use dw_fde_second_end instead of dw_fde_end as end of last range.
7934 (gen_subprogram_die): Don't call add_arange. Use
7935 dw_fde_{begin,end} for first partition and if switched
7936 section dw_fde_second_{begin,end} for the second.
7937 (var_location_switch_text_section_1,
7938 var_location_switch_text_section): New functions.
7939 (dwarf2out_begin_function): Initialize cold_text_section even
7940 when function_section () isn't text_section.
7941 (prune_unused_types): Don't walk arange_table.
7942 (dwarf2out_finish): Don't needlessly test
7943 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7944 If info_section_emitted, call size_of_aranges and if it indicates
7945 non-empty .debug_aranges, call output_aranges with the computed
7946 size. Stop using removed dw_fde_struct fields, use
7947 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7951 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7952 create ENTRY_VALUE if incoming or address of incoming's MEM
7954 * dwarf2out.c (mem_loc_descriptor): Don't emit
7955 DW_OP_GNU_entry_value of DW_OP_fbreg.
7956 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7957 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7958 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7959 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7961 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7962 is a REG_P or MEM_P with REG_P address, compute hash directly
7963 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7964 (preserve_only_constants): Don't clear VALUES forwaring
7965 ENTRY_VALUE to some other VALUE.
7967 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7969 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7972 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7974 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7975 block before expanding the statement.
7976 (expand_gimple_stmt_1): Likewise. Set them here...
7977 (expand_gimple_stmt): ...and not here. Tidy.
7978 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7981 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7983 * Makefile.in: New rule for cprop.o.
7984 * gcse.c: Move constant/copy propagation to cprop.c.
7985 (compute_local_properties): Only handle expression tables.
7986 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7987 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7988 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7989 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7990 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7991 compute_cprop_data, find_used_regs, try_replace_reg,
7992 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7993 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7994 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7995 find_bypass_set, reg_killed_on_edge, bypass_block,
7996 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7997 execute_rtl_cprop, pass_rtl_cprop): Move to...
7998 * cprop.c: ...here. New file, constant/copy propagation for RTL
7999 moved from gcse.c to here with minor cleanups in duplicated code.
8001 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8003 * config/i386/i386.c (flag_opts): Fix a typo in
8004 -mavx256-split-unaligned-store.
8006 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8008 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8009 LIBCALL_VALUE): Remove macros.
8010 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8011 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8012 (h8300_function_value, h8300_libcall_value,
8013 h8300_function_value_regno_p): New functions.
8015 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8017 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8019 2011-03-28 Jeff Law <law@redhat.com>
8021 * tree-ssa-threadupdate.c (redirect_edges): Call
8022 create_edge_and_update_destination_phis as needed.
8023 (create_edge_and_update_destination_phis): Accept new BB argument.
8024 All callers updated.
8025 (thread_block): Do not update the profile when threading around
8026 intermediate blocks.
8027 (thread_single_edge): Likewise.
8028 (determine_bb_domination_status): If BB is not a successor of the
8029 loop header, return NONDOMINATING.
8030 (register_jump_thread): Note when we register a jump thread around
8031 an intermediate block.
8032 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8033 (thread_across_edge): Use it.
8035 2011-03-28 Tristan Gingold <gingold@adacore.com>
8037 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8038 when for_return is 2.
8040 2011-03-28 Jeff Law <law@redhat.com>
8042 * var-tracking.c (canonicalize_values_mark): Delete unused
8044 (canonicalize_values_star, set_variable_part): Likewise.
8045 (clobber_variable_part, delete_variable_part): Likewise.
8047 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8049 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8051 2011-03-28 Martin Jambor <mjambor@suse.cz>
8053 * tree-inline.c (expand_call_inline): Do not check that destination
8055 (optimize_inline_calls): Assert that destination node is analyzed.
8056 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8057 not call tree_lowering_passes.
8058 * cgraph.h (cgraph_analyze_function): Declare.
8059 * cgraphunit.c (cgraph_analyze_function): Make public.
8061 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8063 * config/sparc/sparc-opts.h: New.
8064 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8065 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8066 (sparc_option_override): Store processor_type enumeration rather
8067 than string in cpu_default. Remove name and enumeration from
8068 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8069 without using sparc_select. Use target_flags_explicit instead of
8071 * config/sparc/sparc.h (enum processor_type): Move to
8073 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8074 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8075 HeaderInclude entry.
8076 (mcpu=, mtune=): Use Var and Enum.
8077 (sparc_processor_type): New Enum and EnumValue entries.
8079 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8080 Iain Sandoe <iains@gcc.gnu.org>
8083 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8085 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8087 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8088 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8089 Insert new statements at it in lieu of STMT.
8090 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8091 * tree-vect-stmts.c (vectorizable_store): Likewise.
8092 (vectorizable_load): Likewise.
8094 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8096 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8101 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8103 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8104 unaligned 256bit load/store.
8105 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8106 (*avx_movdqu<avxmodesuffix>): Likewise.
8108 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8111 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8112 * config/pa/pa.md (iordi3): Use new predicate in expander.
8115 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8117 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8118 FUNCTION_VALUE_REGNO_P): Remove macros.
8119 * config/mips/mips-protos.h (mips_function_value): Remove.
8120 * config/mips/mips.c (mips_function_value): Rename to...
8121 (mips_function_value_1): ... this. Make static. Handle receiving
8122 the function type in 'fn_decl_or_type' argument.
8123 (mips_function_value, mips_libcall_value,
8124 mips_function_value_regno_p): New function.
8125 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8126 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8128 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8130 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8131 and -mavx256-split-unaligned-store.
8132 (ix86_option_override_internal): Split 32-byte AVX unaligned
8133 load/store by default.
8134 (ix86_avx256_split_vector_move_misalign): New.
8135 (ix86_expand_vector_move_misalign): Use it.
8137 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8138 -mavx256-split-unaligned-store.
8140 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8141 256bit load/store. Generate unaligned store on misaligned memory
8143 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8145 (*avx_movdqu<avxmodesuffix>): Likewise.
8147 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8148 -mavx256-split-unaligned-store.
8150 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8153 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8156 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8158 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8159 opno arguments with an expand_operand. Use create_input_operand.
8160 (mips_prepare_builtin_target): Delete.
8161 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8163 (mips_expand_builtin_direct): Use create_output_operand and
8164 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8165 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8166 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8168 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8170 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8172 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8174 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8176 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8177 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8178 basic blocks and call commit_edge_insertions directly.
8179 (fixup_abnormal_edges): Move from here to...
8180 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8181 on the edges and return whether some have actually been inserted.
8182 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8185 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8187 PR rtl-optimization/48144
8188 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8189 (merge_expr_data): ... here.
8190 (av_set_intersect): Rename to av_set_code_motion_filter.
8191 Update all callers. Call merge_history_vect when an expression
8192 is found in both sets.
8193 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8195 2011-03-26 Alan Modra <amodra@gmail.com>
8197 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8198 cmodel medium addresses.
8199 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8200 64-bit gpr loads and stores.
8201 (rs6000_secondary_reload_ppc64): New function.
8202 * config/rs6000/rs6000-protos.h: Declare it.
8203 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8205 2011-03-26 Alan Modra <amodra@gmail.com>
8208 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8209 GNU Go in traceback table.
8211 2011-03-25 Richard Henderson <rth@redhat.com>
8213 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8214 if there are exactly 6 operands.
8215 (set_storage_via_setmem): Similarly.
8217 2011-03-25 Kai Tietz <ktietz@redhat.com>
8219 * collect2.c (write_c_file_stat): Handle backslash
8220 as right-hand directory separator.
8221 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8222 checking just for slash.
8223 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8224 instead of checking for trailing slash.
8225 * gcc.c (record_temp_file): Use filename_cmp instead
8227 (do_spec_1): Likewise.
8228 (replace_outfile_spec_function): Likewise.
8229 (is_directory): Use filename_ncmp instead of strncmp.
8230 (print_multilib_info): Likewise.
8231 * gcov.c (find_source): Use filename_cmp instead
8233 (make_gcov_file_name): Fix order of slash/backslash
8235 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8236 (add_standard_paths): Likewise.
8237 * mips-tfile.c (saber_stop): Handle backslash.
8238 * prefix.c (update_path): Use filename_ncmp instead of
8240 * profile.c (output_location): Use filename_cmp instead
8242 * read-md.c (handle_toplevel_file): Handle backslash.
8243 * tlink.c (frob_extension): Likewise.
8244 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8246 * tree-dump.c (dequeue_and_dump): Handle backslash.
8247 * tree.c (get_file_function_name): Likewise.
8248 * gengtype.c (read_input_list): Likewise.
8249 (get_file_realbasename): Likewise.
8250 (get_output_file_with_visibility): Use filename_cmp
8253 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8255 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8258 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8260 * fold-const.c (expr_location_or): New function.
8261 (fold_truth_not_expr): Call it.
8263 2011-03-25 Jeff Law <law@redhat.com>
8265 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8267 * c-family/c-common.c (def_fn_type): Likewise.
8268 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8269 * emit-rtl.c (gen_rtvec): Likewise.
8270 * lto/lto-lang.c (def_fn_type): Likewise.
8272 2011-03-25 Richard Guenther <rguenther@suse.de>
8274 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8275 also generate copies.
8276 (fini_copy_prop): Handle constant values properly.
8278 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8280 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8281 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8282 (hash_loc_operands, compare_loc_operands): Handle
8283 DW_OP_GNU_entry_value.
8285 2011-03-25 Kai Tietz <ktietz@redhat.com>
8287 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8288 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8289 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8290 comment and use macro TARGET_64BIT_MS_ABI instead.
8291 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8292 and change default behavior for 32-bit MS_ABI.
8293 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8294 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8296 (ix86_cfun_abi): Likewise.
8297 (ix86_maybe_switch_abi): Adjust comment.
8298 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8299 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8300 instead of checking for SYSV_ABI.
8301 (ix86_nsaved_sseregs): Likewise.
8302 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8304 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8305 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8306 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8307 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8308 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8310 2011-03-25 Richard Guenther <rguenther@suse.de>
8312 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8313 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8314 (verify_gimple): Remove.
8315 * tree-cfg.c (verify_gimple_call): Merge verification
8317 (verify_gimple_phi): Merge verification from verify_stmts.
8318 (verify_gimple_label): New function.
8319 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8320 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8321 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8322 (verify_stmts): Rename to verify_gimple_in_cfg.
8323 (verify_gimple_in_cfg): New function.
8324 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8325 * tree-ssa.c (verify_ssa): Likewise.
8326 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8328 2011-03-25 Richard Guenther <rguenther@suse.de>
8330 * passes.c (init_optimization_passes): Add FRE pass after
8333 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8334 Andrew Stubbs <ams@codesourcery.com>
8336 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8338 (arm_movdi_vfp_cortexa8): New pattern.
8339 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8340 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8341 instructions when tuning for Cortex-A8. Set attribute "arch".
8342 * config/arm/arm.md: Move include arm-tune.md up a bit.
8343 (define_attr "arch"): Add "onlya8" and "nota8" values.
8344 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8346 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8350 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8352 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8353 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8354 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8355 * passes.c (init_optimization_passes): Move
8356 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8358 2011-03-25 Kai Tietz <ktietz@redhat.com>
8360 * c-typeck.c (comptypes_internal): Replace target
8361 hook call of comp_type_attributes by version in tree.c file.
8362 * gimple.c (gimple_types_compatible_p_1): Likewise.
8363 * tree-ssa.c (useless_type_conversion_p): Likewise.
8364 * tree.c (build_type_attribute_qual_variant): Likewise.
8365 (attribute_value_equal): New static helper function.
8366 (comp_type_attributes): New function.
8367 (merge_attributes): Use attribute_value_equal for comparison.
8368 (attribute_list_contained): Likewise.
8369 * tree.h (comp_type_attributes): New prototype.
8371 2011-03-25 Richard Guenther <rguenther@suse.de>
8373 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8374 of complex types at -O0.
8375 (verify_gimple_assign_binary): Likewise.
8376 (verify_gimple_assign_ternary): Likewise.
8378 2011-03-24 Mark Wielaard <mjw@redhat.com>
8380 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8381 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8383 2011-03-24 Mark Wielaard <mjw@redhat.com>
8386 * dwarf2out.c (output_abbrev_section): Only write table when
8387 abbrev_die_table_in_use > 1.
8389 2011-02-24 Richard Henderson <rth@redhat.com>
8391 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8392 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8393 (alpha_expand_unaligned_load_words): Use extql.
8394 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8395 (emit_insxl): Handle all modes for consistency.
8397 2011-02-24 Richard Henderson <rth@redhat.com>
8399 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8400 (alpha_expand_unaligned_load): Likewise.
8401 (alpha_expand_unaligned_store): Likewise.
8402 (alpha_expand_unaligned_load_words): Likewise.
8403 (alpha_expand_unaligned_store_words): Likewise.
8404 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8405 (alpha_split_lock_test_and_set_12): Likewise.
8406 (print_operand, alpha_fold_builtin_extxx): Likewise.
8407 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8408 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8409 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8410 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8411 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8412 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8413 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8414 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8415 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8416 (extwl, extll, extql): Similarly.
8417 (inswh, inslh, insqh): Similarly.
8418 (mskbl, mskwl, mskll, mskql): Similarly.
8419 (mskwh, msklh, mskqh): Similarly.
8421 2011-02-24 Richard Henderson <rth@redhat.com>
8423 * config/alpha/alpha.md (attribute isa): Add er, ner.
8424 (attribute enabled): Handle them.
8425 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8427 2011-02-24 Richard Henderson <rth@redhat.com>
8429 * config/alpha/alpha.md (attribute isa): Add vms.
8430 (attribute enabled): Handle it.
8431 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8432 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8433 (*movtf): Rename from *movtf_internal for consistency.
8434 (*movsi): Merge with *movsi_nt_vms.
8435 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8436 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8437 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8438 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8440 2011-02-24 Richard Henderson <rth@redhat.com>
8442 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8443 (extendqisi2, extendhisi2): Likewise.
8444 (extendqidi2): Simplify BWX/non-BWX expansions.
8445 (extendhidi2): Similarly.
8447 2011-02-24 Richard Henderson <rth@redhat.com>
8449 * config/alpha/alpha.md (attribute isa): New.
8450 (attribute enabled): New.
8451 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8452 (zero_extendqisi2, zero_extendqidi2): Similarly.
8453 (zero_extendhisi2, zero_extendhidi2): Similarly.
8454 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8456 2011-02-24 Richard Henderson <rth@redhat.com>
8458 * config/alpha/predicates.md (input_operand): Revert last change;
8459 update comment to mention 32-bit VMS rather than Windows.
8461 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8463 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8464 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8465 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8466 * passes.c (init_optimization_passes): Move
8467 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8469 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8471 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8473 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8475 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8478 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8481 * simplify-rtx.c (simplify_const_unary_operation): Call
8482 real_convert when changing mode class with FLOAT_EXTEND.
8484 2011-03-24 Nick Clifton <nickc@redhat.com>
8486 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8487 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8488 * config/rx/rx.c (rx_option_override): Set align_jumps,
8489 align_loops and align_labels if not set by the user.
8490 (rx_align_for_label): New function.
8491 (rx_max_skip_for_label): New function.
8492 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8493 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8494 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8495 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8496 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8498 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8500 PR rtl-optimization/48263
8501 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8502 and original commutative_p handling. Use maybe_gen_insn.
8504 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8506 * reload.c (find_reloads_subreg_address): Add address_reloaded
8507 parameter and return true there if the full address has been
8509 (find_reloads_toplev): Pass address_reloaded flag.
8510 (find_reloads_address_1): Don't use address_reloaded parameter.
8512 2011-03-24 Jeff Law <law@redhat.com>
8514 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8515 unused variable "ann".
8516 (remove_unused_locals): Likewise.
8518 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8521 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8524 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8526 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8527 for invalid symbolic addresses.
8528 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8531 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8533 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8534 the argument in calls to fold_truth_not_expr.
8536 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8538 * tree.c (record_node_allocation_statistics): New function.
8539 (make_node_stat, copy_node_stat, build_string): Call it.
8540 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8541 (build1_stat, build_omp_clause): Likewise.
8543 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8545 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8548 2011-03-24 Richard Guenther <rguenther@suse.de>
8550 PR tree-optimization/48271
8551 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8552 blocks that still exist.
8554 2011-03-24 Richard Guenther <rguenther@suse.de>
8556 PR tree-optimization/48270
8557 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8558 not free datarefs before ddrs.
8560 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8562 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8563 from the address built for a reference with variable offset.
8565 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8568 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8569 alternatives that can be handled with movq or movabsq insn.
8570 (*movdf_internal): Disable for !TARGET_64BIT.
8571 (*movdf_internal_nointeger): Ditto.
8572 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8574 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8576 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8577 (FUNCTION_ARG_ADVANCE): Likewise.
8578 * tm.texi.in: Change references to them to hook references.
8579 * tm.texi: Regenerate.
8580 * targhooks.c (default_function_arg): Eliminate check for target macro.
8581 (default_function_incoming_arg): Likewise.
8582 (default_function_arg_advance): Likewise.
8583 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8584 (function_arg_advance): Likewise.
8585 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8587 2011-03-24 Richard Guenther <rguenther@suse.de>
8590 * tree-object-size.c (addr_object_size): Do not double-account
8591 for MEM_REF offsets.
8593 2011-03-24 Diego Novillo <dnovillo@google.com>
8595 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8596 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8597 (lto_input_data_block): Move from lto-opts.c. Make extern.
8599 (lto_input_string): Rename from input_string. Make extern.
8601 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8602 output_string_with_length.
8603 Output 0 to indicate a non-NULL string. Update all callers to
8605 (lto_output_string): Rename from output_string. Make extern.
8607 (lto_output_decl_state_streams): Make extern.
8608 (lto_output_decl_state_refs): Make extern.
8609 * lto-streamer.h (lto_input_string): Declare.
8610 (lto_input_data_block): Declare.
8611 (lto_output_string): Declare.
8612 (lto_output_string_with_length): Declare.
8613 (lto_output_decl_state_streams): Declare.
8614 (lto_output_decl_state_refs): Declare.
8616 2011-03-24 Richard Guenther <rguenther@suse.de>
8618 PR tree-optimization/46562
8619 * tree.c (build_invariant_address): New function.
8620 * tree.h (build_invariant_address): Declare.
8621 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8622 a renamed function moved ...
8623 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8624 Take valueization callback parameter.
8625 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8626 * gimple-fold.h: New file.
8627 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8628 (ccp_fold, fold_const_aggregate_ref,
8629 fold_ctor_reference, fold_nonarray_ctor_reference,
8630 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8631 get_base_constructor): Move ...
8632 * gimple-fold.c: ... here.
8633 (gimple_fold_stmt_to_constant_1): New function
8634 split out from ccp_fold. Take a valueization callback parameter.
8635 Valueize all operands.
8636 (gimple_fold_stmt_to_constant): New wrapper function.
8637 (fold_const_aggregate_ref_1): New function split out from
8638 fold_const_aggregate_ref. Take a valueization callback parameter.
8639 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8640 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8641 invariant POINTER_PLUS_EXPRs to invariant form.
8642 (vn_valueize): New function.
8643 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8644 * tree-vrp.c (vrp_valueize): New function.
8645 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8646 to fold statements to constants.
8647 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8648 function declarations.
8649 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8650 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8652 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8654 * config/h8300/predicates.md (jump_address_operand): Fix register
8657 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8659 * doc/invoke.texi (max-stores-to-sink): Document.
8660 * params.h (MAX_STORES_TO_SINK): Define.
8661 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8662 if either vectorization or if-conversion is disabled.
8663 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8664 tree-vect-data-refs.c vect_equal_offsets.
8665 (dr_equal_offsets_p): New function.
8666 (find_data_references_in_bb): Remove static.
8667 * tree-data-ref.h (find_data_references_in_bb): Declare.
8668 (dr_equal_offsets_p): Likewise.
8669 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8670 (vect_drs_dependent_in_basic_block): Update calls to
8672 (vect_check_interleaving): Likewise.
8673 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8674 (cond_if_else_store_replacement): Rename to...
8675 (cond_if_else_store_replacement_1): ... this. Change arguments and
8677 (cond_if_else_store_replacement): New function.
8678 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8679 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8681 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8684 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8685 to subtract lower bound instead of GEN_INT().
8687 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8692 * doc/extend.texi (Alignment): Move section to match order in TOC.
8693 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8694 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8696 2011-03-23 Jeff Law <law@redhat.com>
8698 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8699 before removing the edge.
8701 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8702 it may have been freed by redirect_branch_edge or
8703 redirect_edge_succ_nodup.
8705 2011-03-23 Richard Guenther <rguenther@suse.de>
8707 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8708 (check_va_list_escapes): Likewise.
8709 (check_all_va_list_escapes): Likewise.
8711 2011-03-23 Richard Guenther <rguenther@suse.de>
8713 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8714 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8715 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8716 (alias.o): Likewise.
8717 (ipa-type-escape.o): Remove.
8718 (ipa-struct-reorg.o): Likewise.
8719 (GTFILES): Remove ipa-struct-reorg.c.
8720 * alias.c: Do not include ipa-type-escape.h.
8721 * tree-ssa-alias.c: Likewise.
8722 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8723 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8724 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8725 and ipa-type-escape passes.
8726 * tree-pass.h (pass_ipa_type_escape): Remove.
8727 (pass_ipa_struct_reorg): Likewise.
8728 * ipa-struct-reorg.h: Remove.
8729 * ipa-struct-reorg.c: Likewise.
8730 * ipa-type-escape.h: Likewise.
8731 * ipa-type-escape.c: Likewise.
8732 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8733 (--param struct-reorg-cold-struct-ratio): Likewise.
8734 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8735 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8736 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8738 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8740 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8741 cpu attribute value.
8742 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8743 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8744 * config/s390/s390.c (processor_flags_table): New constant array.
8745 (s390_handle_arch_option): Remove.
8746 (s390_handle_option): Remove s390_handle_arch_option invocations
8747 and OPT_mwarn_framesize_ handling.
8748 (s390_option_override): Remove s390_handle_arch_option invocation.
8749 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8751 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8752 * config/s390/s390.opt (s390_tune, s390_arch)
8753 (march=): Replace s390_arch_option enum and values with
8754 processor_type. Set variable name to s390_arch. Set
8755 initialization value.
8756 (mtune=): Replace s390_arch_option with processor_type. Set
8757 variable name to s390_tune. Set initialization value.
8759 2011-03-23 Julian Brown <julian@codesourcery.com>
8761 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8762 accesses which are not naturally aligned.
8764 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8767 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8769 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8771 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8772 parameter from "int" to "enum insn_code".
8773 (expand_operand_type): New enum.
8774 (expand_operand): New structure.
8775 (create_expand_operand): New function.
8776 (create_fixed_operand, create_output_operand): Likewise
8777 (create_input_operand, create_convert_operand_to): Likewise.
8778 (create_convert_operand_from, create_address_operand): Likewise.
8779 (create_integer_operand): Likewise.
8780 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8781 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8782 (expand_insn, expand_jump_insn): Likewise.
8783 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8784 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8785 (expand_movstr, expand_builtin___clear_cache): Likewise.
8786 (expand_builtin_lock_release): Likewise.
8787 * explow.c (allocate_dynamic_stack_space): Likewise.
8788 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8789 and use the default handling in that case.
8790 * expmed.c (check_predicate_volatile_ok): Delete.
8791 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8792 (emit_cstore): Likewise.
8793 * expr.c (emit_block_move_via_movmem): Likewise.
8794 (set_storage_via_setmem, expand_assignment): Likewise.
8795 (emit_storent_insn, try_casesi): Likewise.
8796 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8797 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8798 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8799 (expand_twoval_unop, expand_twoval_binop): Likewise.
8800 (expand_unop_direct, emit_indirect_jump): Likewise.
8801 (emit_conditional_move, vector_compare_rtx): Likewise.
8802 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8803 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8804 (expand_sync_lock_test_and_set): Likewise.
8805 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8806 (emit_unop_insn): Likewise.
8807 (expand_copysign_absneg): Change icode to an insn_code.
8808 (create_convert_operand_from_type): New function.
8809 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8810 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8811 (expand_insn, expand_jump_insn): Likewise.
8812 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8813 than const_int_operand for operand 2.
8815 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8817 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8820 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8822 * emit-rtl.c (emit_pattern_before_noloc): New function.
8823 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8824 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8825 (emit_pattern_after_noloc): New function.
8826 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8827 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8829 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8831 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8832 (__ffsDI2): Likewise.
8834 2011-03-22 Richard Henderson <rth@redhat.com>
8836 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8837 of !TARGET_ABI_OPEN_VMS.
8838 (alpha_trampoline_init, alpha_start_function): Likewise.
8839 (alpha_expand_epilogue, alpha_file_start): Likewise.
8840 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8841 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8842 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8843 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8844 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8846 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8848 * config/s390/s390-opts.h: New.
8849 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8850 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8851 s390_stack_guard): Remove.
8852 (s390_handle_arch_option): Return void. Take enum
8853 s390_arch_option value instead of string and searching array.
8854 (s390_handle_option): Don't assert that global structures are in
8855 use. Access variables via opts pointer. Use error_at. Don't use
8856 sscanf for -mstack-guard= or -mstack-size=. Update call to
8857 s390_handle_arch_option.
8858 (s390_option_override): Update call to s390_handle_arch_option.
8859 (s390_emit_prologue): Use %d format for s390_stack_size in
8860 diagnostic. Use %wd for HOST_WIDE_INT.
8861 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8862 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8863 * config/s390/s390.opt (config/s390/s390-opts.h): New
8864 HeaderInclude entry.
8865 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8866 s390_arch_flags, s390_warn_framesize): New Variable entries.
8867 (s390_arch_option): New Enum and EnumValue entries.
8868 (march=): Use Enum instead of Var.
8869 (mstack-guard=, mstack-size=): Use UInteger and Var.
8872 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8874 * config/score/score.c (score_handle_option): Don't assert that
8875 global structures are in use. Access target_flags via opts
8876 pointer. Use value of -march= option to determine target_flags
8878 * config/score/score.opt (march=): Use Enum.
8879 (score_arch): New Enum and EnumValue entries.
8881 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8883 * config/mep/mep.c (option_mtiny_specified): Remove.
8884 (mep_option_override): Move register handling for -mivc2 from
8885 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8886 instead of option_mtiny_specified.
8887 (mep_handle_option): Access target_flags via opts pointer. Don't
8888 assert that global structures are in use. Defer part of -mivc2
8889 handling and move it to mep_option_override.
8890 * config/mep/mep.opt (IVC2): New Mask entry.
8891 (mivc2): Use Var and Defer instead of Mask.
8893 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8895 * config/v850/v850-opts.h: New.
8896 * config/v850/v850.c (small_memory): Replace with
8897 small_memory_physical_max array. Make that array static const.
8898 (v850_handle_memory_option): Take integer value of argument. Take
8899 gcc_options pointer, option text and location. Return void.
8900 Update for changes to small memory structures.
8901 (v850_handle_option): Access target_flags via opts pointer. Don't
8902 assert that global structures are in use. Update calls to
8903 v850_handle_memory_option.
8904 (v850_encode_data_area): Update references to small memory settings.
8905 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8906 (enum small_memory_type): Move to v850-opts.h.
8907 * config/v850/v850.opt (config/v850/v850-opts.h): New
8908 HeaderInclude entry.
8909 (small_memory_max): New Variable entry.
8910 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8911 (mtda, mzda): Likewise.
8913 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8915 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8916 pointer. Don't assert that global structures are in use.
8918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8920 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8921 via opts pointer. Don't assert that global structures are in use.
8923 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8925 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8926 (munix=93): Use Var.
8927 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8928 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8929 * config/pa/pa-opts.h: New.
8930 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8931 (pa_handle_option): Don't assert that global structures are in
8932 use. Access target_flags via opts pointer. Don't handle
8933 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8935 (pa_option_override): Handle deferred OPT_mfixed_range_.
8937 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8939 * config/mn10300/mn10300-opts.h: New.
8940 * config/mn10300/mn10300.c (mn10300_processor,
8941 mn10300_tune_string): Remove.
8942 (mn10300_handle_option): Don't assert that global structures are
8943 in use. Access mn10300_processor via opts pointer. Don't handle
8945 * config/mn10300/mn10300.h (enum processor_type): Move to
8947 (mn10300_processor): Remove.
8948 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8949 HeaderInclude entry.
8950 (mn10300_processor): New Variable entry.
8953 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8955 * config/microblaze/microblaze.c: Don't include opts.h.
8956 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8957 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8958 (mno-clearbss): Use Var and Warn.
8960 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8962 * config/m32r/m32r-opts.h: New.
8963 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8964 (m32r_handle_option): Don't assert that global structures are in
8965 use. Access target_flags and m32r_cache_flush_func via opts
8966 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8967 OPT_mno_flush_trap here.
8968 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8969 include of m32r-opts.h.
8970 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8971 HeaderInclude entry.
8972 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8973 (mmodel=): Use Enum and Var.
8974 (m32r_model): New Enum and EnumValue entries.
8975 (mno-flush-trap): Use Var.
8976 (msdata=): Use Enum and Var.
8977 (m32r_sdata): New Enum and EnumValue entries.
8979 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8981 * config/m32c/m32c.c: Don't include opts.h.
8982 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8983 m32c_handle_option): Remove.
8984 (m32c_option_override): Check global_options_set.x_target_memregs
8985 instead of target_memregs_set.
8986 * config/m32c/m32c.h (target_memregs): Remove.
8987 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8990 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8992 * config/iq2000/iq2000-opts.h: New.
8993 * config/iq2000/iq2000.c: Don't include opts.h.
8994 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8995 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8996 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8997 HeaderInclude entry.
8998 (iq2000_tune): New Variable entry.
8999 (march=): Add comment. Use Enum.
9000 (iq2000_arch): New Enum and EnumValue entries.
9001 (mcpu=): Use Enum and Var.
9002 (iq2000_tune): New Enum and EnumValue entries.
9004 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9006 * config/ia64/ia64-opts.h: New.
9007 * config/ia64/ia64.c (ia64_tune): Remove.
9008 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9010 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9011 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9012 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9013 HeaderInclude entry.
9014 (ia64_tune): New Variable entry.
9015 (mfixed-range=): Use Defer and Var.
9016 (mtune=): Use Enum and Var.
9017 (ia64_tune): New Enum and EnumValue entries.
9019 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9021 * config/frv/frv-opts.h: New.
9022 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9024 (frv_cpu_type): Remove.
9025 * config/frv/frv.c: Don't include opts.h.
9026 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9027 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9028 (frv_cpu_type): New Variable entry.
9029 (frv_cpu): New Enum and EnumValue entries.
9031 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9033 * config/cris/cris.c (cris_handle_option): Access target_flags via
9034 opts pointer. Don't assert that global structures are in use.
9035 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9036 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9040 * config/bfin/bfin-opts.h: New.
9041 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9042 bfin_si_revision, bfin_workarounds): Remove.
9043 (bfin_cpus): Make static const.
9044 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9045 not bfin_lib_id_given.
9046 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9047 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9048 pointer. Use error_at. Don't assert that global structures are in use.
9049 * config/bfin/bfin.h: Include bfin-opts.h.
9050 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9051 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9052 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9053 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9056 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9058 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9059 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9060 or -msoft-float here.
9061 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9062 -msoft-float and -mhard-float.
9063 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9064 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9066 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9068 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9069 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9071 (LIBGCC_SPEC): Don't handle -msoft-float.
9072 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9074 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9076 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9077 -mfloat-abi=*, not -msoft-float and -mhard-float.
9078 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9080 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9081 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9082 mhard-float and msoft-float.
9083 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9084 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9085 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9086 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9088 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9089 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9091 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9093 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9096 2011-03-22 Richard Henderson <rth@redhat.com>
9098 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9099 TARGET_ABI_WINDOWS_NT.
9100 (alpha_output_function_end_prologue): Likewise.
9101 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9102 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9103 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9104 (trap, *movsi_nt_vms): Likewise.
9105 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9106 (*tablejump_osf_nt_internal): Remove.
9107 * config/alpha/predicates.md (input_operand): Only test Pmode.
9109 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9111 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9112 via opts pointer. Use error_at. Don't assert that global
9113 structures are in use.
9115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9117 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9118 (ix86_handle_option): Access ix86_isa_flags and
9119 ix86_isa_flags_explicit via opts pointer. Don't assert that
9120 global structures are in use.
9121 (ix86_function_specific_save, ix86_function_specific_restore):
9122 Update ix86_isa_flags_explicit field name.
9123 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9124 (ix86_isa_flags_explicit): Rename TargetSave entry to
9125 x_ix86_isa_flags_explicit.
9127 2011-03-22 Richard Henderson <rth@redhat.com>
9129 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9130 (alpha_option_override, direct_return): Likewise.
9131 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9132 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9133 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9134 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9135 (alpha_expand_epilogue, alpha_end_function): Likewise.
9136 (alpha_init_libfuncs): Likewise.
9137 (struct machine_function): Remove unicosmk members.
9138 (print_operand) ['t']: Remove.
9139 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9140 unicosmk_output_module_name, unicosmk_output_common,
9141 current_section_align, unicosmk_output_text_section_asm_op,
9142 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9143 unicosmk_section_type_flags, unicosmk_unique_section,
9144 unicosmk_asm_named_section, unicosmk_insert_attributes,
9145 unicosmk_output_align, unicosmk_defer_case_vector,
9146 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9147 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9148 unicosmk_output_ssib, unicosmk_add_call_info_word,
9149 unicosmk_extern_head, unicosmk_output_default_externs,
9150 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9151 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9152 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9153 * config/alpha/alpha-protos.h: Update.
9154 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9155 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9156 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9157 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9158 (*mulsi_se, mulvsi3): Likewise.
9159 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9160 (*divmodsi_internal, call, call_value, realign): Likewise.
9161 (moddi3, umoddi3): Likewise; remove duplicate expander.
9162 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9163 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9164 (*movdi_nofix): Remove r/U alternative.
9165 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9166 * config/alpha/constraints.md ("U"): Remove.
9167 * config/alpha/predicates.md (call_operand"): Don't test
9168 TARGET_ABI_UNICOSMK.
9170 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9172 * target.def (handle_option): Take gcc_options and
9173 cl_decoded_option pointers and location_t.
9174 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9175 * doc/tm.texi: Regenerate.
9176 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9177 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9178 * lto-opts.c (lto_reissue_options): Generate option structure for
9179 targetm.handle_option call.
9180 * opts.c (target_handle_option): Update call to
9181 targetm.handle_option. Remove assertions about values now passed
9183 * targhooks.c (default_target_handle_option): New.
9184 * targhooks.h (default_target_handle_option): Declare.
9185 * config/alpha/alpha.c: Include opts.h.
9186 (alpha_handle_option): Update to new hook interface.
9187 * config/arm/arm.c: Include opts.h.
9188 (arm_handle_option): Update to new hook interface.
9189 * config/arm/t-arm (arm.o): Update dependencies.
9190 * config/bfin/bfin.c: Include opts.h.
9191 (bfin_handle_option): Update to new hook interface.
9192 * config/cris/cris.c: Include opts.h.
9193 (cris_handle_option): Update to new hook interface.
9194 * config/frv/frv.c: Include opts.h.
9195 (frv_handle_option): Update to new hook interface.
9196 * config/i386/i386.c: Include opts.h.
9197 (ix86_handle_option): Update to new hook interface.
9198 (ix86_valid_target_attribute_inner_p): Generate option structure
9199 for call to ix86_handle_option.
9200 * config/i386/t-i386 (i386.o): Update dependencies.
9201 * config/ia64/ia64.c: Include opts.h.
9202 (ia64_handle_option): Update to new hook interface.
9203 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9204 * config/iq2000/iq2000.c: Include opts.h.
9205 (iq2000_handle_option): Update to new hook interface.
9206 * config/m32c/m32c.c: Include opts.h.
9207 (m32c_handle_option): Update to new hook interface.
9208 * config/m32r/m32r.c: Include opts.h.
9209 (m32r_handle_option): Update to new hook interface.
9210 * config/m68k/m68k.c: Include opts.h.
9211 (m68k_handle_option): Update to new hook interface.
9212 * config/mep/mep.c: Include opts.h.
9213 (mep_handle_option): Update to new hook interface.
9214 * config/microblaze/microblaze.c: Include opts.h.
9215 (microblaze_handle_option): Update to new hook interface.
9216 * config/mips/mips.c: Include opts.h.
9217 (mips_handle_option): Update to new hook interface.
9218 * config/mn10300/mn10300.c: Include opts.h.
9219 (mn10300_handle_option): Update to new hook interface.
9220 * config/pa/pa.c: Include opts.h.
9221 (pa_handle_option): Update to new hook interface.
9222 * config/pdp11/pdp11.c: Include opts.h.
9223 (pdp11_handle_option): Update to new hook interface.
9224 * config/rs6000/rs6000.c: Include opts.h.
9225 (rs6000_handle_option): Update to new hook interface.
9226 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9227 * config/rx/rx.c: Include opts.h.
9228 (rx_handle_option): Update to new hook interface.
9229 * config/s390/s390.c: Include opts.h.
9230 (s390_handle_option): Update to new hook interface.
9231 * config/score/score.c: Include opts.h.
9232 (score_handle_option): Update to new hook interface.
9233 * config/sh/sh.c: Include opts.h.
9234 (sh_handle_option): Update to new hook interface.
9235 * config/sparc/sparc.c: Include opts.h.
9236 (sparc_handle_option): Update to new hook interface.
9237 * config/v850/v850.c: Include opts.h.
9238 (v850_handle_option): Update to new hook interface.
9240 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9242 * gcc.c (driver_unknown_option_callback): Only permit and save
9243 unknown -Wno- options.
9244 (driver_wrong_lang_callback): Save options directly instead of via
9245 driver_unknown_option_callback.
9247 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9249 * combine.c (simplify_set): Try harder to find the best CC mode when
9250 simplifying a nested COMPARE on the RHS.
9252 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9254 * config/alpha/gnu.h: Remove.
9255 * config/arc: Remove directory.
9256 * config/arm/netbsd.h: Remove.
9257 * config/arm/t-pe: Remove.
9258 * config/crx: Remove directory.
9259 * config/i386/netbsd.h: Remove.
9260 * config/m68hc11: Remove directory.
9261 * config/m68k/uclinux-oldabi.h: Remove.
9262 * config/mcore/mcore-pe.h: Remove.
9263 * config/mcore/t-mcore-pe: Remove.
9264 * config/netbsd-aout.h: Remove.
9265 * config/rs6000/gnu.h: Remove.
9266 * config/sh/sh-symbian.h: Remove.
9267 * config/sh/symbian-base.c: Remove.
9268 * config/sh/symbian-c.c: Remove.
9269 * config/sh/symbian-cxx.c: Remove.
9270 * config/sh/symbian-post.h: Remove.
9271 * config/sh/symbian-pre.h: Remove.
9272 * config/sh/t-symbian: Remove.
9273 * config/svr3.h: Remove.
9274 * config/vax/netbsd.h: Remove.
9275 * config.build: Don't handle i[34567]86-*-pe.
9276 * config.gcc: Remove handling of deprecations for most deprecated
9278 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9279 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9280 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9281 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9282 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9283 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9285 * config.host: Don't handle i[34567]86-*-pe.
9286 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9287 (ASM_SPEC32): Don't handle -mcall-gnu.
9288 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9290 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9291 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9292 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9293 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9294 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9295 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9296 conditional on SYMBIAN.
9297 * configure.ac: Don't handle powerpc*-*-gnu*.
9298 * configure: Regenerate.
9299 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9300 * doc/install-old.texi (m6811, m6812): Don't mention.
9301 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9302 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9303 (m68k-uclinuxoldabi): Don't mention.
9304 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9306 (-mcall-gnu): Remove.
9307 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9308 families): Remove constraint documentation.
9310 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9312 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9313 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9314 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9316 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9319 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9320 vector when peeking at the next token for vector, don't expand the
9323 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9325 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9326 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9327 * config/avr/avr.c (init_cumulative_args)
9328 (avr_function_arg_advance): Use it.
9329 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9331 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9332 (avr_function_ok_for_sibcall): ...this new function.
9333 (avr_lookup_function_attribute1): New static Function.
9334 (avr_naked_function_p, interrupt_function_p)
9335 (signal_function_p, avr_OS_task_function_p)
9336 (avr_OS_main_function_p): Use it.
9337 * config/avr/avr.md ("sibcall", "sibcall_value")
9338 ("sibcall_epilogue"): New expander.
9339 ("*call_insn", "*call_value_insn"): New insn.
9340 ("call_insn", "call_value_insn"): Remove
9341 ("call", "call_value", "epilogue"): Change expander to handle
9344 2011-03-21 Nick Clifton <nickc@redhat.com>
9346 * doc/invoke.texi (Overall Options): Move closing brace to end of
9348 (Optimization Options): Add missing @gol.
9349 (Directory Options): Likewise.
9350 (i386 and x86-64 Options): Likewise.
9351 (RS6000 and PowerPC Options): Likewise.
9352 (i386 and x86-64 Windows Options): Likewise.
9353 (V850 Options): Add text missing from descriptions.
9355 2011-03-22 Richard Henderson <rth@redhat.com>
9357 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9358 (avr_incoming_return_addr_rtx): New.
9359 (emit_push_byte): New.
9360 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9361 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9362 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9363 (emit_pop_byte): New.
9364 (expand_epilogue): Use it. Pop frame pointer by bytes.
9365 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9366 (INCOMING_RETURN_ADDR_RTX): New.
9367 (INCOMING_FRAME_SP_OFFSET): New.
9368 (ARG_POINTER_CFA_OFFSET): New.
9369 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9370 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9373 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9375 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9377 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9378 (FUNCTION_ARG_ADVANCE): Likewise.
9379 * tm.texi.in: Change references to them to hook references.
9380 * tm.texi: Regenerate.
9381 * targhooks.c (default_function_arg): Eliminate check for target
9383 (default_function_incoming_arg): Likewise.
9384 (default_function_arg_advance): Likewise.
9385 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9386 (function_arg_advance): Likewise.
9387 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9389 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9391 * tree.c (build_call_1): New function.
9392 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9394 2011-03-22 Richard Guenther <rguenther@suse.de>
9396 PR tree-optimization/48228
9397 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9398 for single-arg PHIs.
9400 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9402 PR rtl-optimization/48143
9403 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9404 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9405 sse2_cvtps2pd): Likewise.
9407 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9409 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9411 2011-03-22 Richard Guenther <rguenther@suse.de>
9413 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9414 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9415 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9416 and REALIGN_LOAD_EXPR.
9417 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9418 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9419 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9420 DOT_PROD_EXPR case ...
9421 (expand_expr_real_2): ... here.
9422 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9423 and REALIGN_LOAD_EXPR.
9424 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9425 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9426 (vect_create_epilog_for_reduction): Likewise.
9427 (vectorizable_reduction): Likewise.
9428 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9429 * tree-vect-stmts.c (vectorizable_load): Likewise.
9431 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9433 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9435 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9437 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9438 handling for PLTOFF/GOTOFF.
9440 2011-03-22 Nick Clifton <nickc@redhat.com>
9442 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9443 trailing backslash from the end of the macro definition.
9445 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9447 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9450 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9452 * expr.h (prepare_operand): Move to...
9453 * optabs.h (prepare_operand): ...here and change the insn code
9454 parameter from "int" to "enum insn_code".
9455 (insn_operand_matches): Declare.
9456 * expr.c (init_expr_target): Use insn_operand_matches.
9457 (compress_float_constant): Likewise.
9458 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9459 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9460 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9461 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9463 (gen_cond_trap): Likewise.
9464 (prepare_operand): Likewise. Change icode to an insn_code.
9465 (insn_operand_matches): New function.
9466 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9467 * reload1.c (gen_reload): Likewise.
9468 * targhooks.c (default_secondary_reload): Likewise.
9470 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9472 * config/alpha/alpha.md (unspec): New define_c_enum.
9475 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9478 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9479 between a call and its CALL_ARG_LOCATION note.
9481 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9483 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9485 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9489 * c-common.c (shorten_compare): If primopN is first sign-extended
9490 to opN and then zero-extended to result type, set primopN to opN.
9492 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9494 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9495 for barrier handlers.
9497 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9499 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9500 UNSPEC constants to be in the unspec enumeration, and redefine
9501 all UNSPECV constants to be in the unspecv enumeration, so that
9502 dumps print which unspec/unspec_volatile this is.
9503 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9504 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9505 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9506 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9507 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9509 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9510 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9511 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9512 * config/rs6000/sync.md (isync, lwsync): Ditto.
9514 2011-03-21 Richard Guenther <rguenther@suse.de>
9516 * params.def (lto-min-partition): Fix typo.
9518 2011-03-21 Richard Guenther <rguenther@suse.de>
9521 * c-decl.c (grokdeclarator): Drop to the main variant only
9522 for array types. Drop flag_gen_aux_info check.
9524 2011-03-21 Richard Guenther <rguenther@suse.de>
9526 PR translation/47911
9527 * params.def (lto-partitions): Fix typo.
9528 (lto-min-partition): Fix wording.
9530 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9532 * config/rs6000/t-freebsd: Remove duplication from file.
9534 2011-03-21 Richard Guenther <rguenther@suse.de>
9537 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9539 2011-03-21 Richard Guenther <rguenther@suse.de>
9542 * params.def (lto-partitions): Require at least 1 partition.
9544 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9546 * gthr-solaris.h: Remove.
9547 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9548 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9549 (LIB_SPEC): Likewise.
9550 * config/sol2.opt (threads): Remove.
9551 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9552 (sparc*-*-solaris2*): Likewise.
9553 * configure.ac (enable_threads): Enable solaris support.
9554 * configure: Regenerate.
9555 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9556 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9559 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9561 * config.gcc: Obsolete *-*-solaris2.8*.
9562 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9564 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9567 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9568 reference. Solaris 8 perl works.
9570 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9573 * doc/install.texi (Prerequisites): Move jar etc. up.
9574 Explain support library version requirements.
9576 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9579 * doc/install.texi (Prerequisites): Move Perl to build
9580 requirements. Always necessary on Solaris 2 with Sun ld.
9582 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9584 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9586 (Specific, i?86-*-solaris2.[89]): Likewise.
9587 (Specific, i?86-*-solaris2.10): Likewise.
9588 (Specific, mips-sgi-irix6): Likewise.
9589 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9590 Update for binutils 2.21.
9592 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9594 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9595 Allow -fuse-linker-plugin for non-default plugin linker.
9596 * configure: Regenerate.
9598 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9601 * gengtype.c (files_rules): Added rule for cp/parser.h.
9603 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9606 * config/s390/s390.c (s390_delegitimize_address): Don't call
9607 lowpart_subreg if orig_x has BLKmode.
9609 2011-03-21 Kai Tietz <ktietz@redhat.com>
9612 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9613 * tree.h (attribute_spec): Add new member affects_type_identity.
9614 * attribs.c (empty_attribute_table): Adjust attribute_spec
9616 * config/alpha/alpha.c: Likewise.
9617 * config/arc/arc.c: Likewise.
9618 * config/arm/arm.c: Likewise.
9619 * config/avr/avr.c: Likewise.
9620 * config/bfin/bfin.c: Likewise.
9621 * config/crx/crx.c: Likewise.
9622 * config/darwin.h: Likewise.
9623 * config/h8300/h8300.c: Likewise.
9624 * config/i386/cygming.h: Likewise.
9625 * config/i386/i386.c: Likewise.
9626 * config/ia64/ia64.c: Likewise.
9627 * config/m32c/m32c.c: Likewise.
9628 * config/m32r/m32r.c: Likewise.
9629 * config/m68hc11/m68hc11.c: Likewise.
9630 * config/m68k/m68k.c: Likewise.
9631 * config/mcore/mcore.c: Likewise.
9632 * config/mep/mep.c: Likewise.
9633 * config/microblaze/microblaze.c: Likewise.
9634 * config/mips/mips.c: Likewise.
9635 * config/rs6000/rs6000.c: Likewise.
9636 * config/rx/rx.c: Likewise.
9637 * config/sh/sh.c: Likewise.
9638 * config/sol2.h: Likewise.
9639 * config/sparc/sparc.c: Likewise.
9640 * config/spu/spu.c: Likewise.
9641 * config/stormy16/stormy16.c: Likewise.
9642 * config/v850/v850.c: Likewise.
9644 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9646 * simplify-rtx.c (simplify_binary_operation_1): Handle
9647 (xor (and A B) C) case when B and C are both constants.
9649 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9651 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9653 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9656 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9658 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9660 PR rtl-optimization/48156
9661 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9662 assume df and df_lr are not NULL.
9664 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9667 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9668 between a call and its CALL_ARG_LOCATION note.
9670 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9673 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9674 between a call and its corresponding CALL_ARG_LOCATION note.
9676 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9678 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9679 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9680 * haifa-sched.c (setup_ref_regs): Ditto.
9681 * caller-save.c (add_used_regs_1): Ditto.
9682 * dse.c (look_for_hardregs): Ditto.
9683 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9684 * sched-rgn.c (check_live_1): Ditto.
9686 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9688 * c-decl.c (diagnose_mismatched_decls): Give an error for
9689 redefining a typedef with variably modified type.
9691 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9693 * c-decl.c (grokfield): Don't allow typedefs for structures or
9694 unions with no tag by default.
9695 * doc/extend.texi (Unnamed Fields): Update.
9697 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9699 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9700 Rewrite using indirect functions.
9701 (lwp_slwpcb): Ditto.
9702 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9703 (avx_vinsertf128<mode>): Ditto.
9705 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9707 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9710 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9712 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9713 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9715 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9717 PR rtl-optimization/48170
9718 * gcse.c (hoist_code): Remove bogus asserts.
9720 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9722 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9723 computation for prologue/epilogue.
9725 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9727 * Makefile.in (check-consistency): Remove.
9729 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9732 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9733 arange_table_in_use is 0, but either text_section_used or
9734 cold_text_section_used is true. Don't call it if
9735 !info_section_emitted.
9737 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9739 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9740 FUNCTION_VALUE_REGNO_P): Remove.
9741 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9743 * config/avr/avr.c (avr_ret_register): Make static inline.
9744 (avr_function_value_regno_p): New function.
9745 (avr_libcall_value): Make static. Add 'func' argument.
9746 (avr_function_value): Make static. Rename 'func' argument to
9747 'fn_decl_or_type', forward it to avr_libcall_value. Call
9748 avr_ret_register function instead of RET_REGISTER macro.
9749 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9751 2011-03-18 Jason Merrill <jason@redhat.com>
9754 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9756 2011-03-18 Richard Guenther <rguenther@suse.de>
9758 * doc/install.texi (--enable-gold): Remove.
9759 (--with-plugin-ld): Document.
9760 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9762 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9765 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9766 again after expansion changes.
9768 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9770 * combine.c (try_combine): Do simplification only call of
9771 subst() on i2 even when i1 is present. Update comments.
9773 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9775 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9776 and UNSPEC_PCREL_SYMOFF.
9778 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9780 * config/s390/s390.md: Use define_c_enum for the unspec constant
9783 2011-03-18 Richard Henderson <rth@redhat.com>
9784 Jakub Jelinek <jakub@redhat.com>
9787 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9788 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9790 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9793 * combine.c (cant_combine_insn_p): Don't check zero/sign
9794 extended hard registers.
9796 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9799 * combine.c (cant_combine_insn_p): Check zero/sign extended
9802 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9804 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9805 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9806 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9807 Change return type to bool.
9808 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9810 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9813 * var-tracking.c (prepare_call_arguments): If CALL target
9814 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9815 pc instead of looking it up using cselib_lookup and use
9816 Pmode for it if x has VOIDmode.
9817 * dwarf2out.c (gen_subprogram_die): If also both first and
9818 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9821 * function.c (assign_parms): For data.passed_pointer parms
9822 use MEM of data.entry_parm instead of data.entry_parm itself
9823 as DECL_INCOMING_RTL.
9824 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9825 also when passed and declared mode is the same, DECL_RTL
9826 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9829 2011-03-16 Jeff Law <law@redhat.com>
9831 PR rtl-optimization/37273
9832 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9833 handle them like argument loads from stack slots. Do not double
9834 count memory for memory constants and argument loads from stack slots.
9836 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9839 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9841 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9844 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9846 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9849 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9851 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9852 Clear call_arg_locations and call_arg_loc_last always.
9855 * var-tracking.c (prepare_call_arguments): If argument needs to be
9856 passed by reference, adjust argtype and mode.
9858 2011-03-17 Richard Guenther <rguenther@suse.de>
9861 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9862 a value make sure to fold the statement.
9864 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9867 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9868 return condition with !cfun->calls_alloca.
9870 2011-03-17 Richard Guenther <rguenther@suse.de>
9873 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9874 origin for decls in other ltrans units.
9875 (input_varpool_node): Likewise.
9877 2011-03-17 Richard Guenther <rguenther@suse.de>
9880 * tree-object-size.c (compute_object_offset): Properly return
9881 the offset operand of MEM_REFs as sizetype.
9883 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9885 PR rtl-optimization/48141
9886 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9887 * dse.c: Include params.h.
9888 (active_local_stores_len): New variable.
9889 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9891 (record_store, check_mem_read_rtx): Decrease it when removing
9893 (scan_insn): Likewise. Increase it when adding to chain, if it
9894 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9895 set active_local_stores to NULL before the addition.
9896 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9898 PR rtl-optimization/48141
9899 * dse.c (record_store): If no positions are needed in an insn
9900 that cannot be deleted, at least unchain it from active_local_stores.
9902 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9905 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9906 (lookup_type_die_strip_naming_typedef): ... here.
9907 (get_context_die): Use it.
9908 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9909 the anonymous struct named by the naming typedef.
9911 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9914 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9915 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9917 2011-03-16 Jeff Law <law@redhat.com>
9919 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9920 check for operands of conditional. Allow type to be a pointer.
9922 2011-03-16 Richard Guenther <rguenther@suse.de>
9924 PR tree-optimization/48149
9925 * fold-const.c (fold_binary_loc): Fold
9926 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9928 2011-03-16 Richard Guenther <rguenther@suse.de>
9930 PR tree-optimization/26134
9931 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9932 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9933 (non_rewritable_mem_ref_base): Handle complex type component
9934 accesses, constrain offsets for vector and complex extracts
9937 2011-03-16 Richard Guenther <rguenther@suse.de>
9939 PR tree-optimization/48146
9940 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9941 operands avoiding the need for renaming.
9943 2011-03-16 Richard Guenther <rguenther@suse.de>
9945 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9946 constant folding. Move MEM_REF canonicalization first.
9947 Rely on fold_const_aggregate_ref for initializer folding.
9948 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9950 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9953 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9954 arg0/arg1 or their arguments are always fold converted to matching
9957 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9960 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9963 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9964 Handle in-tree gold.
9965 (ld_vers): Extract binutils version for gold.
9966 (gcc_cv_ld_hidden): Handle gold here.
9967 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9968 * configure: Regenerate.
9969 * config.in: Regenerate.
9970 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9971 -fuse-linker-plugin otherwise.
9972 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9973 (LINK_COMMAND_SPEC): Use it.
9974 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9976 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9978 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9979 * calls.c: Remove debug.h include.
9980 (emit_call_1): Don't call virtual_call_token debug hook.
9981 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9982 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9983 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9984 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9985 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9986 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9987 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9988 dwarf2out_virtual_call): Remove.
9989 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9990 copy_call_info and virtual_call hooks.
9991 (dwarf2out_init): Don't initialize vcall_insn_table,
9992 debug_dcall_section and debug_vcall_section.
9993 (prune_unused_types): Don't mark nodes from dcall_table.
9994 (dwarf2out_finish): Don't output dcall or vcall tables.
9995 * final.c (final_scan_insn): Don't call direct_call or
9996 virtual_call debug hooks.
9997 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9998 virtual_call_token, copy_call_info and virtual_call hooks.
9999 (debug_nothing_uid): Remove prototype.
10000 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10001 copy_call_info and virtual_call hooks.
10002 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10003 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10004 * debug.c (do_nothing_debug_hooks): Likewise.
10005 (debug_nothing_uid): Remove.
10006 * doc/invoke.texi (-fenable-icf-debug): Remove.
10007 * common.opt (-fenable-icf-debug): Likewise.
10009 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10010 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10011 call's MEM. Handle functions returning aggregate through a hidden
10012 first pointer. For virtual calls add clobbered pc to call arguments
10014 * dwarf2out.c (gen_subprogram_die): Emit
10015 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10019 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10020 * rtl.h (ENTRY_VALUE_EXP): Define.
10021 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10022 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10023 * print-rtl.c (print_rtx): Likewise.
10024 * gengtype.c (adjust_field_rtx_def): Likewise.
10025 * var-tracking.c (vt_add_function_parameter): Adjust
10026 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10027 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10028 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10029 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10030 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10032 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10033 Call var_location debug hook even on CALL_INSNs.
10034 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10035 * rtl.def (ENTRY_VALUE): New.
10036 * dwarf2out.c: Include cfglayout.h.
10037 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10038 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10039 (struct call_arg_loc_node): New type.
10040 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10041 tail_call_site_count): New variables.
10042 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10043 DW_TAG_GNU_call_site_parameter.
10044 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10045 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10046 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10047 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10048 and DW_AT_GNU_all_source_call_sites.
10049 (mem_loc_descriptor): Handle ENTRY_VALUE.
10050 (add_src_coords_attributes): Don't add enything if
10051 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10052 (dwarf2out_abstract_function): Save and clear call_arg_location,
10053 call_site_count and tail_call_site_count around dwarf2out_decl call.
10054 (gen_call_site_die): New function.
10055 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10056 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10057 (dwarf2out_function_decl): Clear call_arg_locations,
10058 call_arg_loc_last, set call_site_count and tail_call_site_count
10059 to -1 and free block_map.
10060 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10061 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10062 followed by any real instructions.
10063 (dwarf2out_begin_function): Set call_site_count and
10064 tail_call_site_count to 0.
10065 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10066 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10067 attempt to force a DIE for it and worst case remove the attribute.
10068 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10069 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10071 * var-tracking.c: Include tm_p.h.
10072 (vt_stack_adjustments): For calls call note_register_arguments.
10073 (argument_reg_set): New variable.
10074 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10075 ensure the VALUE is resolved.
10076 (call_arguments): New variable.
10077 (prepare_call_arguments): New function.
10078 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10079 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10080 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10081 always use the best expression.
10082 (vt_expand_loc): Add ignore_cur_loc argument.
10083 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10084 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10085 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10086 note for all calls.
10087 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10088 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10089 argument. Don't call cselib_preserve_only_values and
10090 cselib_reset_table.
10091 (note_register_arguments): New function.
10092 (vt_initialize): Compute argument_reg_set. Call
10093 vt_add_function_parameters before processing basic blocks instead of
10094 afterwards. For calls call prepare_call_arguments before calling
10095 cselib_process_insn.
10096 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10097 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10098 (var-tracking.o): Depend on $(TM_P_H).
10099 * cfglayout.h (insn_scope): New prototype.
10100 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10101 * cfglayout.c (insn_scope): No longer static.
10102 * insn-notes.def (CALL_ARG_LOCATION): New.
10103 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10104 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10105 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10106 nothing for DECL_EXTERNAL BLOCK_VARS.
10108 2011-03-16 Alan Modra <amodra@gmail.com>
10111 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10112 create invalid offset address for vsx splat insn.
10113 * config/rs6000/predicates.md (splat_input_operand): New.
10114 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10116 2011-03-15 Xinliang David Li <davidxl@google.com>
10119 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10120 (normalize_preds): New function.
10121 (is_use_properly_guarded): Normalize def predicates.
10123 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10126 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10127 in the output template.
10129 2011-03-15 Richard Guenther <rguenther@suse.de>
10131 PR middle-end/47650
10132 * tree-pretty-print.c (dump_function_declaration): Properly
10133 dump unprototyped and varargs function types.
10135 2011-03-15 Richard Guenther <rguenther@suse.de>
10137 PR tree-optimization/13954
10138 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10141 2011-03-15 Richard Guenther <rguenther@suse.de>
10143 PR tree-optimization/48037
10144 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10145 selects into BIT_FIELD_REFs.
10146 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10149 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10151 PR tree-optimization/48129
10152 * builtins.c (fold_builtin_snprintf): Convert to type of
10153 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10154 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10156 2011-03-15 Richard Guenther <rguenther@suse.de>
10158 PR tree-optimization/41490
10159 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10160 value but with VUSE.
10161 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10163 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10164 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10165 * tree-tailcall.c (find_tail_calls): Ignore returns.
10167 2011-03-15 Richard Guenther <rguenther@suse.de>
10169 PR middle-end/48031
10170 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10171 or variable-indexed array accesses when in gimple form.
10173 2011-03-15 Richard Guenther <rguenther@suse.de>
10175 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10177 2011-03-15 Alan Modra <amodra@gmail.com>
10180 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10181 presume symbol_refs without a symbol_ref_decl are suitably
10182 aligned, nor other trees we may see here. Handle anchor symbols.
10183 (legitimate_constant_pool_address_p): Comment. Add mode param.
10184 Check cmodel=medium addresses. Adjust all calls.
10185 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10186 creating cmodel=medium optimized access to locals.
10187 * config/rs6000/constraints.md (R): Pass QImode to
10188 legitimate_constant_pool_address_p.
10189 * config/rs6000/predicates.md (input_operand): Pass mode to
10190 legitimate_constant_pool_address_p.
10191 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10194 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10197 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10198 64-bit constants being loaded into registers other than GPRs such
10199 as loading 0 into a VSX register.
10201 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10203 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10205 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10207 PR middle-end/47917
10208 * builtins.c (fold_builtin_snprintf): New function.
10209 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10210 (fold_builtin_4): Likewise.
10212 PR middle-end/38878
10213 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10214 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10215 and C - X == X also strip nops from +/-/p+ operand.
10216 When optimizing -X == C, fold C to arg0's type.
10219 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10220 emit it as add_AT_int instead of add_AT_unsigned.
10222 2011-03-14 Tom Tromey <tromey@redhat.com>
10224 * unwind-dw2.c: Include sys/sdt.h if it exists.
10225 (_Unwind_DebugHook): Use STAP_PROBE2.
10226 * config.in, configure: Rebuild.
10227 * configure.ac: Check for sys/sdt.h.
10229 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10231 * config/i386/i386.md (ROUND_FLOOR): New constant.
10232 (ROUND_CEIL): Ditto.
10233 (ROUND_TRUNC): Ditto.
10234 (ROUND_MXCSR): Ditto.
10235 (ROUND_NO_EXC): Ditto.
10236 (rint<mode>2): Use new defines instead of numerical constants.
10237 (floor<mode>2): Ditto.
10238 (ceil<mode>2): Ditto.
10239 (btrunc<mode>2): Ditto.
10240 * config/i386/i386-builtin-types.def: Define ROUND function type
10242 * config/i386/i386.c (enum ix86_builtins): Add
10243 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10244 (struct builtin_description): Add
10245 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10246 (ix86_expand_sse_round): New static function.
10247 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10249 (ix86_builtin_vectorized_function): Handle
10250 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10252 2011-03-14 Tom Tromey <tromey@redhat.com>
10254 * c-parser.c (c_parser_asm_string_literal): Clear
10255 warn_overlength_strings.
10257 2011-03-14 Tom Tromey <tromey@redhat.com>
10259 * c-parser.c (disable_extension_diagnostics): Save
10260 warn_overlength_strings.
10261 (restore_extension_diagnostics): Restore warn_overlength_strings.
10263 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10265 * BASE-VER: Change to 4.7.0.
10267 2011-03-14 Richard Guenther <rguenther@suse.de>
10269 PR middle-end/48098
10270 * tree.c (build_vector_from_val): Adjust assert to requirements
10273 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10276 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10278 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10280 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10281 terms of target_flags_explicit. Adjust copyright year.
10283 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10284 * config/rs6000/t-freebsd: New file. Add override for
10287 2011-03-13 Chris Demetriou <cgd@google.com>
10289 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10290 (-fno-diagnostics-show-option): this, to reflect current default.
10291 (-Werror=): Update text about -fno-diagnostics-show-option.
10293 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10296 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10297 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10298 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10299 mode is not V2DImode or V2DFmode.
10300 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10301 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10302 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10304 (movdi_internal64): Likewise.
10306 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10308 PR tree-optimization/47127
10309 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10311 (set_cloog_options): Same.
10312 (scop_to_clast): Same.
10313 (print_clast_stmt): Do not call cloog_state_malloc and
10315 (print_generated_program): Same.
10317 * graphite-clast-to-gimple.h (cloog_state): Declared.
10318 (scop_to_clast): Adjust declaration.
10319 * graphite.c (cloog_state): Defined here.
10320 (graphite_initialize): Call cloog_state_malloc.
10321 (graphite_finalize): Call cloog_state_free.
10323 2011-03-11 Jason Merrill <jason@redhat.com>
10325 * attribs.c (lookup_attribute_spec): Take const_tree.
10328 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10330 * config/sparc/sparc.c (sparc_option_override): Use
10331 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10333 2011-03-11 Richard Guenther <rguenther@suse.de>
10335 PR tree-optimization/48067
10336 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10337 multiplication result will be only used once on the target
10340 2011-03-11 Richard Guenther <rguenther@suse.de>
10342 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10344 2011-03-11 Richard Guenther <rguenther@suse.de>
10347 * tree.c (find_decls_types_r): Do not walk types only reachable
10348 from IDENTIFIER_NODEs.
10350 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10352 PR middle-end/48044
10353 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10354 all vnode->force_output nodes as needed.
10356 2011-03-11 Jason Merrill <jason@redhat.com>
10359 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10360 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10362 2011-03-11 Martin Jambor <mjambor@suse.cz>
10364 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10367 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10369 PR tree-optimization/48063
10370 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10371 inline functions called once if !tree_can_inline_p (node->callers).
10373 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10375 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10377 * config/score/score3.c: Delete.
10378 * config/score/score3.h: Delete.
10379 * config/score/mul-div.S: Delete.
10380 * config/score/sfp-machine.h: Add new file.
10381 * config/score/constraints.md: Add new file.
10382 * config/score/t-score-softfp: Add new file.
10383 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10384 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10385 (score7_extra_constraint): Delete.
10386 (score7_option_override): Remove unused code.
10387 * config/score/score.c: Remove score3 and score5 define and code.
10388 * config/score/score.h: Remove score3 and score5 define and code.
10389 * config/score/score.md: Remove score3 template and unusual insn.
10390 * config/score/score.opt: Remove score3 and score5 options.
10392 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10394 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10395 when _HPUX_SOURCE is defined.
10396 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10398 2011-03-10 Jason Merrill <jason@redhat.com>
10401 * stor-layout.c (layout_type): Don't set structural equality
10402 on arrays of incomplete type.
10403 * tree.c (type_hash_eq): Handle comparing them properly.
10405 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10408 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10409 result mode matches original rtl mode.
10411 2011-03-10 Nick Clifton <nickc@redhat.com>
10413 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10414 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10416 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10418 PR rtl-optimization/47866
10419 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10420 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10421 if target wasn't scalar.
10422 * function.c (assign_stack_temp_for_type): Assert that neither
10423 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10424 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10426 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10428 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10430 * config/s390/s390-protos.h (s390_label_align): New prototype.
10431 * config/s390/s390.c (s390_label_align): New function.
10432 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10434 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10437 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10438 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10439 (output_vec_const_move): Ditto.
10441 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10443 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10444 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10445 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10446 Change 'rclass' argument and result type to reg_class_t.
10447 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10449 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10451 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10452 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10453 (TARGET_MEMORY_MOVE_COST): Define.
10454 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10456 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10459 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10462 PR tree-optimization/48022
10463 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10466 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10469 * var-tracking.c (find_use_val): Return NULL for
10470 cui->sets && cui->store_p BLKmode MEMs.
10472 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10474 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10476 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10477 xstormy16_print_operand_address): Remove.
10478 * config/stormy16/stormy16.c (xstormy16_print_operand,
10479 xstormy16_print_operand_address): Make static.
10480 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10482 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10485 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10486 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10489 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10492 * cfgloopmanip.c (fix_bb_placements): Return immediately
10493 if FROM is BASE_LOOP's header.
10495 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10497 * gimplify.c (gimplify_function_tree): Fix building calls
10498 to __builtin_return_address.
10500 2011-03-07 Alan Modra <amodra@gmail.com>
10502 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10503 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10504 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10505 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10507 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10508 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10509 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10510 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10511 * config/rs6000/rs6000.c
10512 (rs6000_elf_end_indicate_exec_stack): Rename to..
10513 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10514 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10515 (rs6000_file_start): ..here.
10516 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10517 file scope variables.
10518 (call_ABI_of_interest): New function.
10519 (init_cumulative_args): Set above vars when function return value
10520 is a float, vector, or small struct.
10521 (rs6000_function_arg_advance_1): Likewise for function args.
10522 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10523 references float args.
10525 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10527 * doc/cfg.texi: Remove "See" before @ref.
10528 * doc/invoke.texi: Likewise.
10530 2011-03-05 Jason Merrill <jason@redhat.com>
10532 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10534 2011-03-05 Anthony Green <green@moxielogic.com>
10536 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10538 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10540 PR rtl-optimization/47899
10541 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10542 to flow_loop_nested_p when moving the loop upward.
10544 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10547 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10549 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10551 PR tree-optimization/47967
10552 * ipa-cp.c (build_const_val): Return NULL instead of creating
10553 VIEW_CONVERT_EXPR for mismatching sizes.
10554 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10555 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10556 give up on versioning.
10558 2011-03-05 Alan Modra <amodra@gmail.com>
10561 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10562 full cmodel medium/large lo_sum + high addresses.
10564 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10566 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10567 pool references in UNSPEC_LTREL_OFFSET.
10569 2011-03-04 Jan Hubicka <jh@suse.cz>
10572 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10573 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10574 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10576 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10577 cgraph_add_thunk): Add node pointers.
10578 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10579 associated to right node.
10580 (input_node): Update use of cgraph_same_body_alias
10581 and cgraph_add_thunk.
10583 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10585 * config/i386/i386.opt (mprefer-avx128): New flag.
10586 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10587 modes when the flag -mprefer-avx128 is on.
10589 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10591 * dwarf2out.c (compare_loc_operands): Fix address handling.
10593 2011-03-04 Alan Modra <amodra@gmail.com>
10595 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10597 2011-03-04 Richard Guenther <rguenther@suse.de>
10599 PR middle-end/47968
10600 * expmed.c (extract_bit_field_1): Prefer vector modes that
10601 vec_extract patterns can handle.
10603 2011-03-04 Richard Guenther <rguenther@suse.de>
10605 PR middle-end/47975
10606 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10608 2011-03-04 Richard Henderson <rth@redhat.com>
10610 * explow.c (emit_stack_save): Remove 'after' parameter.
10611 (emit_stack_restore): Likewise.
10612 * expr.h: Update to match.
10613 * builtins.c, calls.c, stmt.c: Likewise.
10614 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10615 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10616 * function.c (expand_function_end): Insert the emit_stack_save
10617 sequence before parm_birth_insn instead of after.
10619 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10621 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10622 (ssse3_pmaddubsw128): Ditto.
10623 (ssse3_pmaddubsw): Ditto.
10625 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10627 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10629 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10632 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10633 on TYPE_SIZE_UNIT if it is a DECL.
10636 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10637 first operand is not is_gimple_mem_ref_addr, try to fold it.
10638 If the operand still isn't is_gimple_mem_ref_addr, clear
10641 2011-03-03 Richard Guenther <rguenther@suse.de>
10643 PR middle-end/47283
10644 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10646 (refs_may_alias_p_1): For release branches return true if
10647 we are confused by our input.
10649 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10651 * config/s390/s390.c (s390_function_value): Rename to ...
10652 (s390_function_and_libcall_value): ... this.
10653 (s390_function_value): New function.
10654 (s390_libcall_value): New function.
10655 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10656 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10657 target macro definitions.
10658 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10660 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10662 * config/i386/freebsd64.h (CC1_SPEC): Define.
10663 * config/i386/linux64.h (CC1_SPEC): Define.
10664 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10666 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10668 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10670 * config/stormy16/stormy16.c: Include reload.h.
10671 (xstormy16_memory_move_cost): New function.
10672 (TARGET_MEMORY_MOVE_COST): Define.
10674 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10676 PR rtl-optimization/47925
10677 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10678 with side effects. Remove the more-specific check for volatile asms.
10680 2011-03-02 Alan Modra <amodra@gmail.com>
10683 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10684 toc relative addresses for valid offsets.
10686 2011-03-01 Richard Guenther <rguenther@suse.de>
10688 PR tree-optimization/47890
10689 * tree-vect-loop.c (get_initial_def_for_induction): Set
10690 related stmt properly.
10692 2011-03-01 Richard Guenther <rguenther@suse.de>
10695 * lto-streamer.c (lto_record_common_node): Also register
10696 the canonical type.
10698 2011-03-01 Richard Guenther <rguenther@suse.de>
10701 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10702 Do not stream DECL_ABSTRACT_ORIGIN.
10703 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10704 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10705 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10706 Do not stream DECL_ABSTRACT_ORIGIN.
10707 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10708 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10710 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10712 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10713 FUNCTION_VALUE_REGNO_P): Remove.
10714 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10715 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10716 Add 'outgoing' argument.
10717 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10719 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10720 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10722 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10725 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10726 (lookup_filename): Likewise.
10727 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10729 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10730 Jakub Jelinek <jakub@redhat.com>
10732 PR middle-end/47893
10733 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10734 (assign_stack_local_1): Change last argument type to int.
10735 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10736 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10737 don't record padding space into frame_space_list nor use those areas.
10738 (assign_stack_local): Adjust caller.
10739 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10740 of assign_stack_local, pass 0 as last argument.
10741 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10744 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10747 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10748 Use target address_mode and pointer_mode hooks instead of hardcoded
10749 Pmode and ptr_mode. Handle some simple cases of extending if
10750 POINTERS_EXTEND_UNSIGNED < 0.
10751 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10752 Call convert_debug_memory_address.
10753 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10754 convert_debug_memory_address.
10756 PR middle-end/46790
10757 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10758 * configure: Regenerated.
10759 * config.in: Regenerated.
10760 * varasm.c (default_function_section): Return NULL
10761 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10763 2011-02-28 Martin Jambor <mjambor@suse.cz>
10765 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10766 the description to match the printed values.
10768 2011-02-28 Richard Guenther <rguenther@suse.de>
10770 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10771 of the copied scope tree.
10773 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10775 * doc/extend.texi (Function Attributes): Avoid deeply (and
10776 wrongly) nested tables.
10778 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10780 PR middle-end/47903
10781 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10782 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10783 r isn't op0 nor op1.
10785 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10787 * config/avr/avr.md: Remove magic comment for emacs.
10789 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10792 * config/avr/avr.c (avr_option_override): Use error on bad options.
10793 (avr_help): New function.
10794 (TARGET_HELP): Define.
10796 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10799 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10800 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10802 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10804 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10805 (ARM Options): Ditto.
10806 (i386 and x86-64 Options): Ditto.
10807 (RX Options): Ditto.
10808 (SPARC Options): Ditto.
10810 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10812 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10813 FreeBSD 6 and later. Generally use cpu generic.
10815 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10817 * doc/cpp.texi: Update copyright years.
10819 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10822 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10824 2011-02-25 Jon Beniston <jon@beniston.com>
10827 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10828 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10829 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10830 (lm32_block_move_inline): Add type cast to remove warning.
10831 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10832 (gen_int_relational): Move declarations to start of function.
10834 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10836 PR tree-optimization/45470
10837 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10838 can throw internally only.
10839 * tree-vect-stmts.c (vectorizable_call): Likewise.
10841 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10843 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10844 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10845 * config/stormy16/stormy16-protos.h
10846 (xstormy16_preferred_reload_class): Remove.
10847 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10848 static. Change 'rclass' argument and return type to reg_class_t.
10849 (TARGET_PREFERRED_RELOAD_CLASS,
10850 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10852 2011-02-24 Richard Guenther <rguenther@suse.de>
10854 * lto-streamer-in.c (input_bb): Do not find referenced vars
10855 in debug statements.
10857 2011-02-23 Jason Merrill <jason@redhat.com>
10859 * common.opt (fabi-version): Document v5 and v6.
10861 2011-02-23 Richard Guenther <rguenther@suse.de>
10863 PR tree-optimization/47849
10864 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10866 2011-02-23 Jie Zhang <jie@codesourcery.com>
10868 * opts-common.c (decode_cmdline_option): Print empty string
10869 argument as "" in decoded->orig_option_with_args_text.
10870 * gcc.c (execute): Print empty string argument as ""
10871 in the verbose output.
10872 (do_spec_1): Keep empty string argument.
10874 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10876 * config.gcc: Declare score-* and crx-* obsolete.
10878 2011-02-23 Jie Zhang <jie@codesourcery.com>
10880 PR rtl-optimization/47763
10881 * web.c (web_main): Ignore naked clobber when replacing register.
10883 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10885 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10888 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10891 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10893 2011-02-22 Mike Stump <mikestump@comcast.net>
10895 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10897 * configure: Regenerate.
10899 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10901 PR rtl-optimization/46002
10902 * ira-color.c (update_copy_costs): Change class intersection
10903 test to reg_class_contents[] test of 'hard_regno'.
10905 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10907 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10908 than Driver option.
10909 * config/hpux11.opt (mt): Likewise.
10910 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10911 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10912 * config/vax/elf.opt (mno-asm-pic): Likewise.
10913 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10915 2011-02-21 Mike Stump <mikestump@comcast.net>
10918 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10919 tree so we can get save the type.
10920 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10921 for CFString instead of trying to use past the end of the builtins.
10922 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10923 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10924 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10925 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10926 Rename to darwin_builtin_cfstring.
10927 (darwin_init_cfstring_builtins): Return the built type.
10929 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10932 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10933 (_mm256_insert_epi64): Use _mm_insert_epi64.
10935 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10937 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10938 * config/stormy16/stormy16-protos.h
10939 (xstormy16_mode_dependent_address_p): Remove.
10940 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10941 Make static. Change return type to bool. Change argument type to
10942 const_rtx. Remove dead code.
10943 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10945 2011-02-21 Richard Guenther <rguenther@suse.de>
10948 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10949 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10950 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10952 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10953 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10955 2011-02-20 Richard Guenther <rguenther@suse.de>
10958 * tree.c (free_lang_data_in_decl): Clean builtins from
10959 the TU decl BLOCK_VARS.
10961 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10965 * haifa-sched.c (fix_tick_ready): Skip tick computation
10968 2011-02-19 Richard Guenther <rguenther@suse.de>
10971 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10972 Remove lazy BLOCK_VARS streaming.
10973 (lto_input_ts_block_tree_pointers): Likewise.
10974 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10976 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10978 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10980 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10982 * config/i386/biarch32.h, config/i386/mach.h,
10983 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10985 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10988 * config/i386/i386.md (peephole2 for shift and plus): Use
10989 operands[1] original mode in the first insn.
10991 2011-02-18 Mike Stump <mikestump@comcast.net>
10993 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10995 2011-02-18 Jan Hubicka <jh@suse.cz>
10997 PR middle-end/47788
10998 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10999 to zero when the function is not inlinable at all.
11001 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11003 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11004 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11005 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11006 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11007 * config/pa/t-pa64: Likewise.
11008 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11010 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11013 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11015 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11018 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11020 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11022 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11023 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11024 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11025 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11026 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11027 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11028 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11029 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11030 m32r_legitimate_address_p): New functions.
11031 * config/m32r/constraints.md (constraint "S"): Don't use
11032 STORE_PREINC_PREDEC_P.
11033 (constraint "U"): Don't use LOAD_POSTINC_P.
11035 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11037 PR rtl-optimization/46178
11038 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11039 compute ira_hard_regno_cover_class[].
11041 2011-02-18 Richard Guenther <rguenther@suse.de>
11044 * lto-streamer.h (lto_global_var_decls): Declare.
11045 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11046 statics for global var processing.
11048 2011-02-18 Richard Guenther <rguenther@suse.de>
11050 PR tree-optimization/47737
11051 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11052 edge dominance check.
11054 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11057 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11058 avoid invalid rtx sharing.
11060 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11062 * doc/cpp.texi (Obsolete Features): Add background on the
11063 origin of assertions.
11065 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11067 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11069 * config/darwin.c (output_objc_section_asm_op): Added support for
11071 (is_objc_metadata): New.
11072 (darwin_objc2_section): New.
11073 (darwin_objc1_section): New.
11074 (machopic_select_section): Added support for ABI v1 and v2.
11075 (darwin_emit_objc_zeroed): New.
11076 (darwin_output_aligned_bss): Detect objc metadata and treat it
11078 (darwin_asm_output_aligned_decl_common): Same.
11079 (darwin_asm_output_aligned_decl_local): Same.
11080 * config/darwin-sections.def: Updated for ABI v1 and v2.
11081 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11082 compiling Objective-C code for the NeXT runtime, default to using
11083 ABI version 0 for 32-bit, and version 2 for 64-bit.
11085 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11087 * common.opt (optimize_fast): New Variable.
11088 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11089 instead of local variable ofast.
11091 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11093 * doc/invoke.texi (fobjc-abi-version): Documented.
11094 (fobjc-nilcheck): Documented.
11095 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11098 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11101 * common.opt (export-dynamic): New Driver option.
11102 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11104 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11106 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11108 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11109 Jan Hubicka <jh@suse.cz>
11113 * cfgexpand.c (account_used_vars_for_block): Remove.
11114 (estimated_stack_frame_size): Use referenced vars.
11115 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11116 that were referenced in the original function. Test src_fn
11117 rather than cfun. Drop redundant get_var_ann.
11118 (setup_one_parameter): Drop redundant get_var_ann.
11119 (declare_return_variable): Likewise.
11120 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11121 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11122 * ipa-inline.c (compute_inline_parameters): Do not compute
11123 disregard_inline_limits here.
11124 (compute_inlinable_for_current, pass_inlinable): New.
11125 (pass_inline_parameters): Require PROP_referenced_vars.
11126 * cgraphunit.c (cgraph_process_new_functions): Don't run
11127 compute_inline_parameters explicitly unless function is in SSA form.
11128 (cgraph_analyze_function): Set .disregard_inline_limits.
11129 * tree-sra.c (convert_callers): Compute inliner parameters
11130 only for functions already in SSA form.
11132 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11134 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11135 -mlittle-endian-data.
11137 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11139 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11140 -mno-fpu, not -fpu and -no-fpu.
11141 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11142 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11144 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11147 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11148 input reload with PLUS RTX.
11150 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11152 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11153 of InverseVar(MDMX).
11155 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11157 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11160 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11162 * config/mn10300/mn10300.opt (mno-crt0): New.
11164 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11166 * config/m68k/uclinux.opt (static-libc): New Driver option.
11168 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11170 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11172 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11174 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11175 %{muser-extend-enabled}.
11177 2011-02-16 Richard Guenther <rguenther@suse.de>
11179 PR tree-optimization/47738
11180 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11181 the TODO from tree_predictive_commoning.
11183 2011-02-15 Jeff Law <law@redhat.com>
11186 2011-01-25 Jeff Law <law@redhat.com>
11188 PR rtl-optimization/37273
11189 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11190 handle them like argument loads from stack slots. Do not double
11191 count memory for memory constants and argument loads from stack slots.
11193 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11195 PR middle-end/47725
11196 * combine.c (cant_combine_insn_p): Revert the last change.
11198 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11201 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11202 mode for vector constants. Remove code that checks for TImode.
11204 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11208 * cgraph.h (compute_inline_parameters): Return void.
11209 * ipa-inline.c (compute_inline_parameters): Adjust.
11211 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11215 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11217 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11218 * ipa-inline.c (compute_inline_parameters): Adjust.
11220 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11224 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11225 Adjust all users. Pass FN to...
11226 * tree-flow-inline.h (first_referenced_var): ... this. Add
11228 * ipa-struct-reorg.c: Adjust.
11229 * tree-dfa.c: Adjust.
11230 * tree-into-ssa.c: Adjust.
11231 * tree-sra.c: Adjust.
11232 * tree-ssa-alias.c: Adjust.
11233 * tree-ssa-live.c: Adjust.
11234 * tree-ssa.c: Adjust.
11235 * tree-ssanames.c: Adjust.
11236 * tree-tailcall.c: Adjust.
11238 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11242 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11243 Adjust all callers.
11244 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11245 * tree-flow-inline.h: Adjust.
11246 * gimple-pretty-print.c: Adjust.
11247 * tree-into-ssa.c: Adjust.
11248 * tree-ssa.c: Adjust.
11249 * cfgexpand.c: Adjust.
11251 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11253 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11254 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11255 (EXTRA_CONSTRAINT): Delete.
11256 * config/iq2000/constraints.md: New file.
11257 * config/iq2000/iq2000.md: Include it.
11258 (define_insn ""): Delete.
11259 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11260 unsupported constraint letters from patterns.
11261 (call_value, call_value_internal1): Likewise.
11262 (call_value_multiple_internal1): Likewise.
11264 2011-02-15 Nick Clifton <nickc@redhat.com>
11266 * config/mn10300/mn10300.c: Include tm-constrs.h.
11267 (struct liw_data): New data structure describing an LIW candidate
11269 (extract_bundle): Use struct liw_data. Allow small integer
11270 operands for some instructions.
11271 (check_liw_constraints): Use struct liw_data. Remove swapped
11272 parameter. Add comments describing the checks. Fix bug when
11273 assigning the source of liw1 to the source of liw2.
11274 (liw_candidate): Delete. Code moved into extract_bundle.
11275 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11277 * config/mn10300/predicates.md (liw_operand): New predicate.
11278 Allows registers and small integer constants.
11279 * config/mn10300/constraints.md (O): New constraint. Accetps
11280 integers in the range -8 to +7 inclusive.
11281 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11282 for moving a small integer into a register. Give this alternative
11284 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11285 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11286 using the J,K,L and M constraints,
11287 (liw): Remove SI mode on second operands to allow for HI and QI
11289 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11292 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11294 PR middle-end/47725
11295 * combine.c (cant_combine_insn_p): Check zero/sign extended
11298 2011-02-15 Richard Guenther <rguenther@suse.de>
11300 PR tree-optimization/47743
11301 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11302 for a non-type-compatible VN lookup bail out.
11304 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11306 * config/fr30/constraints.md: New file.
11307 * config/fr30/fr30.md: Include it.
11308 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11309 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11310 (EXTRA_CONSTRAINT): Delete.
11312 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11314 * config/frv/constraints.md: New file.
11315 * config/frv/predicates.md: Include it.
11316 * config/frv/frv.c (reg_class_from_letter): Delete.
11317 (frv_option_override): Don't initialize it.
11318 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11319 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11320 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11321 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11322 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11323 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11324 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11325 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11326 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11327 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11328 (REG_CLASS_FROM_CONSTRAINT): Delete.
11330 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11332 PR middle-end/47581
11333 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11334 if frame size is 0 in a leaf function.
11336 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11339 * config/alpha/host-osf.c: New file.
11340 * config/alpha/x-osf: New file.
11341 * config.host (alpha*-dec-osf*): Use it.
11343 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11345 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11346 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11347 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11348 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11350 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11352 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11354 * config/stormy16/constraints.md: New file.
11355 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11356 Use satisfies_constraint_Q and satisfies_constraint_R.
11357 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11359 (xstormy16_legitiamte_address_p): Declare.
11360 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11361 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11362 (EXTRA_CONSTRAINT): Delete.
11363 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11365 (xstormy16_extra_constraint_p): Delete.
11367 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11369 PR tree-optimization/46494
11370 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11371 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11372 (pass_rtl_loop_done): Add TODO_verify_flow.
11373 * fwprop.c (pass_rtl_fwprop): Likewise.
11374 * modulo-sched.c (pass_sms): Likewise.
11375 * tree-ssa-dom.c (pass_dominator): Likewise.
11376 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11377 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11378 (pass_tree_loop_done): Likewise.
11379 * tree-ssa-pre.c (execute_pre): Likewise.
11380 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11381 * tree-ssa-sink.c (pass_sink_code): Likewise.
11382 * tree-vrp.c (pass_vrp): Likewise.
11384 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11386 * config/v850/constraints.md: New file.
11387 * config/v850/v850.md: Include it.
11388 * config/v850/predicates.md (reg_or_0_operand): Use
11389 satisfies_constraint_G.
11390 (special_symbolref_operand): Use satisfies_constraint_K.
11391 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11392 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11393 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11394 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11395 (EXTRA_CONSTRAINT): Delete.
11396 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11397 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11398 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11400 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11403 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11406 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11408 * config/mcore/constraints.md: New file.
11409 * config/mcore/mcore.md: Include it.
11410 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11411 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11412 (REG_CLASS_FROM_LETTER): Delete.
11413 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11414 insn_const_int_ok_for_constraint.
11415 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11416 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11417 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11418 (EXTRA_CONSTRAINT): Delete.
11420 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11423 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11424 (IS_SIGHANDLER): Define.
11425 (sparc64_is_sighandler): New function, split off from
11426 sparc64_fallback_frame_state.
11427 (sparc_is_sighandler): New function, split off from
11428 sparc_fallback_frame_state.
11429 (sparc64_fallback_frame_state): Merge with ...
11430 (sparc_fallback_frame_state): ... this into ...
11431 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11432 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11433 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11434 stack instead of hardcoded offsets.
11436 2011-02-14 Andriy Gapon <avg@freebsd.org>
11439 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11441 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11443 * configure: Regenerate.
11445 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11448 * gcc.c (asm_options): Correct spec matching --target-help.
11450 2011-02-12 Martin Jambor <mjambor@suse.cz>
11452 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11453 to gimple call error.
11455 2011-02-12 Mike Stump <mikestump@comcast.net>
11457 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11458 comments in backslash regions.
11460 2011-02-12 Mike Stump <mikestump@comcast.net>
11461 Jakub Jelinek <jakub@redhat.com>
11462 Iain Sandoe <iains@gcc.gnu.org>
11465 * dwarf2out.c (output_cfa_loc): When required, apply the
11466 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11467 (output_loc_sequence): Likewise.
11468 (output_loc_operands_raw): Likewise.
11469 (output_loc_sequence_raw): Likewise.
11470 (output_cfa_loc): Likewise.
11471 (output_loc_list): Suppress register number adjustment when
11472 calling output_loc_sequence()
11473 (output_die): Likewise.
11475 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11477 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11479 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11480 xtensa_memory_move_cost): New functions.
11481 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11483 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11486 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11487 in the current directory.
11488 * configure: Rebuilt.
11490 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11492 * config/darwin.c (darwin_override_options): Add a hunk missed
11493 from the commit of r168571. Trim comment line lengths and
11494 correct indents of the preceding block.
11496 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11498 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11501 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11503 * common.opt (nostartfiles): New Driver option.
11505 2011-02-11 Xinliang David Li <davidxl@google.com>
11507 PR tree-optimization/47707
11508 * tree-chrec.c (convert_affine_scev): Keep type precision.
11510 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11512 PR tree-optimization/47420
11513 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11515 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11517 PR rtl-optimization/47614
11518 * rtl.h (check_for_inc_dec): Declare.
11519 * dse.c (check_for_inc_dec): Externalize...
11520 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11521 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11523 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11526 * gcc.c (main): Do not compile inputs if there were errors in
11528 * opts-common.c (read_cmdline_option): Check for wrong language
11529 after other error checks.
11531 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11533 * cgraph.c: Fix comment typos.
11534 * cgraph.h: Likewise.
11535 * cgraphunit.c: Likewise.
11536 * ipa-cp.c: Likewise.
11537 * ipa-inline.c: Likewise.
11538 * ipa-prop.c: Likewise.
11539 * ipa-pure-const.c: Likewise.
11540 * ipa-ref.c: Likewise.
11541 * ipa-reference.c: Likewise.
11543 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11546 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11548 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11551 * doc/sourcebuild.texi (Require Support): Document
11552 dg-require-ascii-locale.
11554 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11556 * doc/lto.texi (Write summary): Fix missing parentheses.
11558 2011-02-10 DJ Delorie <dj@redhat.com>
11560 * config/m32c/m32c.c (m32c_option_override): Disable
11561 -fcombine-stack-adjustments until flag value tracking and compare
11562 optimization can be rewritten.
11564 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11566 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11568 (PROCESSOR_DEFAULT64): Likewise.
11570 2011-02-10 Richard Henderson <rth@redhat.com>
11572 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11573 change from 2011-02-03.
11574 * config/rx/rx.c (flags_from_code): Likewise.
11575 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11576 is valid, n/pz otherwise.
11577 (rx_select_cc_mode): Return CCmode if Y is not zero.
11579 2011-02-10 Richard Guenther <rguenther@suse.de>
11581 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11583 2011-02-10 Richard Guenther <rguenther@suse.de>
11585 PR tree-optimization/47677
11586 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11588 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11591 * combine.c (make_compound_operation): Only change shifts into
11592 multiplication for SCALAR_INT_MODE_P.
11594 2011-02-10 Jie Zhang <jie@codesourcery.com>
11598 2011-02-05 Jie Zhang <jie@codesourcery.com>
11600 * web.c (entry_register): Don't clobber the number of the
11601 first uninitialized reference in used[].
11603 2011-02-09 Richard Guenther <rguenther@suse.de>
11605 PR tree-optimization/47664
11606 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11609 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11613 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11615 (PROCESSOR_DEFAULT64): Same.
11616 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11618 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11620 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11622 2011-02-09 Martin Jambor <mjambor@suse.cz>
11624 PR middle-end/45505
11625 * tree-sra.c (struct access): New flags grp_scalar_read and
11626 grp_scalar_write. Changed description of assignment read and write
11628 (dump_access): Dump new flags, reorder all of them.
11629 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11630 to detect multiple scalar reads.
11631 (analyze_access_subtree): Use the new scalar read write flags instead
11632 of the old flags. Adjusted comments.
11634 2011-02-08 DJ Delorie <dj@redhat.com>
11637 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11640 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11642 * config/m68k/uclinux.opt: New.
11643 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11645 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11647 * config/cris/elf.opt (sim): New Driver option.
11649 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11651 * config/xtensa/elf.opt: New.
11652 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11654 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11656 * config/vax/elf.opt: New.
11657 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11659 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11661 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11663 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11665 * config/gnu-user.opt: New.
11666 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11667 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11668 *-*-uclinux*): Use gnu-user.opt.
11670 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11672 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11673 * config/i386/gnu.h (CPP_SPEC): Likewise.
11675 2011-02-08 Ian Lance Taylor <iant@google.com>
11677 * common.opt (fcx-limited-range): Add SetByCombined flag.
11678 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11679 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11680 (fassociative-math, freciprocal-math): Likewise.
11681 (funsafe-math-optimizations): Likewise.
11682 * opth-gen.awk: Handle SetByCombined.
11683 * optc-gen.awk: Likewise.
11684 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11685 (set_unsafe_math_optimizations_flags): Likewise.
11686 * doc/options.texi (Option properties): Document SetByCombined.
11688 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11690 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11691 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11692 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11693 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11694 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11696 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11698 PR tree-optimization/46834
11699 PR tree-optimization/46994
11700 PR tree-optimization/46995
11701 * graphite-sese-to-poly.c (used_outside_reduction): New.
11702 (detect_commutative_reduction): Call used_outside_reduction.
11703 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11704 translate_scalar_reduction_to_array only when at least one
11705 loop-phi/close-phi tuple has been detected.
11707 2011-02-08 Richard Guenther <rguenther@suse.de>
11709 PR middle-end/47639
11710 * tree-vect-generic.c (expand_vector_operations_1): Update
11712 (expand_vector_operations): ... not here. Cleanup EH info
11713 and the CFG if required.
11715 2011-02-08 Richard Guenther <rguenther@suse.de>
11717 PR tree-optimization/47641
11718 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11719 require type compatibility.
11721 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11723 * gimple-low.c (lower_function_body): Don't remove the location of
11724 the return statement here.
11725 (lower_gimple_return): Do it here instead but only if the return
11726 statement is actually used twice.
11728 2011-02-08 Richard Guenther <rguenther@suse.de>
11730 PR tree-optimization/47632
11731 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11732 unused up_to_stmt parameter, return whether cfg-cleanup is
11733 necessary, remove EH info properly.
11734 (forward_propagate_into_gimple_cond): Adjust caller.
11735 (forward_propagate_into_cond): Likewise.
11736 (forward_propagate_comparison): Likewise.
11737 (tree_ssa_forward_propagate_single_use_vars): Make
11738 forward_propagate_comparison case similar to the two others.
11740 2011-02-08 Nick Clifton <nickc@redhat.com>
11742 * config/mn10300/mn10300.opt (mliw): New command line option.
11743 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11744 (liw_bundling): New automaton.
11745 (liw): New attribute.
11746 (liw_op): New attribute.
11747 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11748 (movsi_internal): Add LIW attributes.
11749 (andsi3): Likewise.
11750 (iorsi3): Likewise.
11751 (xorsi3): Likewise.
11752 (addsi3): Separate register and immediate alternatives.
11753 Add LIW attributes.
11754 (subsi3): Likewise.
11756 (aslsi3): Likewise.
11757 (lshrsi3): Likewise.
11758 (ashrsi3): Likewise.
11759 (liw): New pattern.
11760 * config/mn10300/mn10300.c (liw_op_names): New
11761 (mn10300_print_operand): Handle 'W' operand descriptor.
11762 (extract_bundle): New function.
11763 (check_liw_constraints): New function.
11764 (liw_candidate): New function.
11765 (mn10300_bundle_liw): New function.
11766 (mn10300_reorg): New function.
11767 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11768 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11769 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11770 __LIW__ or __NO_LIW__.
11771 * doc/invoke.texi: Describe the -mliw command line option.
11773 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11775 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11776 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11777 pthread_mutex_unlock): Remove.
11778 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11779 * config/pa/t-pa64: Likewise.
11780 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11781 shared libc if not linking against libpthread.
11782 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11784 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11787 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11788 on 10.6 and later to ensure that we always use the unwinder from
11789 the system. Only add -no_compact_unwind when tarteting darwin
11792 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11795 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11796 (vec_interleave_lowv2sf): Ditto.
11797 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11798 (vec_extract_oddv2sf): Ditto.
11800 2011-02-07 Mike Stump <mikestump@comcast.net>
11803 Add __ieee_divdc3 entry point.
11804 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11806 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11807 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11808 * config/darwin.c (darwin_rename_builtins): Add.
11809 * config/darwin-protos.h (darwin_rename_builtins): Add.
11811 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11814 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11817 2011-02-07 Mike Stump <mikestump@comcast.net>
11819 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11821 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11824 * config/avr/libgcc.S (exit): Move .endfunc
11826 2011-02-07 Richard Guenther <rguenther@suse.de>
11828 PR tree-optimization/47615
11829 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11830 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11831 (run_scc_vn): Initialize it.
11832 (visit_reference_op_load): Use it.
11833 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11835 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11837 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11838 DImode trapping arithmetic libfuncs.
11840 2011-02-07 Richard Guenther <rguenther@suse.de>
11842 PR tree-optimization/47621
11843 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11845 (execute_update_addresses_taken): ... here. Make it more
11846 conservative in what we accept.
11848 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11850 * config/sparc/freebsd.h (ASM_SPEC): Define.
11851 * config/sparc/vxworks.h (ASM_SPEC): Define.
11853 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11855 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11857 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11859 * doc/invoke.texi: Remove reference to compiler internals from
11860 user documentation.
11862 * reg-notes.def: Remove REG_VALUE_PROFILE.
11863 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11865 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11867 PR middle-end/47610
11868 * varasm.c (default_section_type_flags): If decl is NULL,
11869 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11871 2011-02-05 Jie Zhang <jie@codesourcery.com>
11874 * web.c (entry_register): Don't clobber the number of the
11875 first uninitialized reference in used[].
11877 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11879 PR tree-optimization/46194
11880 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11881 (build_classic_dist_vector_1): Do not represent classic distance
11882 vectors when the access functions are variating in different loops.
11884 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11886 * config/mips/iris6.opt: New.
11887 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11889 2011-02-04 Richard Henderson <rth@redhat.com>
11890 Steve Ellcey <sje@cup.hp.com>
11893 * config/ia64/predicates.md (mux1_brcst_element): New.
11894 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11895 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11896 (ia64_unpack_sign): New.
11897 (ia64_expand_unpack): Rewrite using new routines.
11898 (ia64_expand_widen_sum): Ditto.
11899 (ia64_expand_dot_prod_v8qi): Ditto.
11900 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11901 routines, add endian check.
11902 (pmpy2_even): Rename from pmpy2_r, add endian check.
11903 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11904 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11905 (vec_widen_smult_hi_v4hi): Ditto.
11906 (vec_widen_umult_lo_v4hi): Ditto.
11907 (vec_widen_umult_hi_v4hi): Ditto.
11908 (mulv2si3): Change endian checks.
11909 (sdot_prodv4hi): Rewrite with new calls.
11910 (udot_prodv4hi): New.
11911 (vec_pack_ssat_v4hi): Add endian check.
11912 (vec_pack_usat_v4hi): Ditto.
11913 (vec_pack_ssat_v2si): Ditto.
11914 (max1_even): Rename from max1_r, add endian check.
11915 (max1_odd): Rename from max1_l, add endian check.
11916 (*mux1_rev): Format change.
11917 (*mux1_mix): Ditto.
11918 (*mux1_shuf): Ditto.
11919 (*mux1_alt): Ditto.
11920 (*mux1_brcst_v8qi): Use new predicate.
11921 (vec_extract_evenv8qi): Remove endian check.
11922 (vec_extract_oddv8qi): Ditto.
11923 (vec_interleave_lowv4hi): Format change.
11924 (vec_interleave_highv4hi): Ditto.
11925 (mix2_even): Rename from mix2_r, add endian check.
11926 (mix2_odd): Rename from mux2_l, add endian check.
11927 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11928 (vec_extract_evenodd_helper): Format change.
11929 (vec_extract_evenv4hi): Remove endian check.
11930 (vec_extract_oddv4hi): Remove endian check.
11931 (vec_interleave_lowv2si): Format change.
11932 (vec_interleave_highv2si): Format change.
11933 (vec_initv2si): Remove endian check.
11934 (vecinit_v2si): Add endian check.
11935 (reduc_splus_v2sf): Add endian check.
11936 (reduc_smax_v2sf): Ditto.
11937 (reduc_smin_v2sf): Ditto.
11938 (vec_initv2sf): Remove endian check.
11939 (fpack): Add endian check.
11940 (fswap): Add endian check.
11941 (vec_interleave_highv2sf): Add endian check.
11942 (vec_interleave_lowv2sf): Add endian check.
11943 (fmix_lr): Add endian check.
11944 (vec_setv2sf): Format change.
11945 (*vec_extractv2sf_0_be): Use shift to extract operand.
11946 (*vec_extractv2sf_1_be): New.
11947 (vec_pack_trunc_v4hi): Add endian check.
11948 (vec_pack_trunc_v2si): Format change.
11950 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11952 PR inline-asm/23200
11953 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11954 do bb, locus and block comparison and disallow loads if it is not set.
11955 (stmt_is_replaceable_p): New function.
11956 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11958 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11959 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11961 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11963 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11965 * config/rs6000/xilinx.opt: New.
11966 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11968 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11970 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11972 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11974 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11975 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11976 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11977 secondary_reload_info, xtensa_secondary_reload): Remove.
11978 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11979 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11980 (xtensa_preferred_reload_class): Make static. Change return and
11981 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11982 Use CONST_DOUBLE_P predicate.
11983 (xtensa_preferred_output_reload_class): New function.
11984 (xtensa_secondary_reload): Make static.
11986 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11988 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11989 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11990 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11992 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11994 PR middle-end/31490
11995 * output.h (SECTION_RELRO): Define.
11996 (SECTION_MACH_DEP): Adjust.
11997 (get_variable_section): New prototype.
11998 * varpool.c (varpool_finalize_named_section_flags): New function.
11999 (varpool_assemble_pending_decls): Call it.
12000 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12001 * cgraphunit.c (cgraph_output_in_order): Call
12002 varpool_finalize_named_section_flags.
12003 * varasm.c (get_section): Allow section flags conflicts between
12004 relro and read-only sections if the section hasn't been declared yet.
12005 Set SECTION_OVERRIDE after diagnosing section type conflict.
12006 (get_variable_section): No longer static.
12007 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12008 readonly sections that need relocations.
12009 (decl_readonly_section_1): New function.
12010 (decl_readonly_section): Use it.
12013 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12014 Steve Ellcey <sje@cup.hp.com>
12016 PR middle-end/31490
12017 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12018 if section attribute used.
12020 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12022 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12023 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12024 (darwin_init_sections): Remove assertion.
12026 2011-02-03 Nick Clifton <nickc@redhat.com>
12028 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12030 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12031 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12032 instead of "n" and "pz".
12033 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12036 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12039 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12040 fma, expand FMA_EXPR as fma{,f,l} call.
12043 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12044 copy them into a unsigned char variable and pass address of it to
12045 lto_output_data_stream.
12048 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12049 around backend_init_target and lang_dependent_init_target calls.
12050 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12051 (verify_cgraph_node): Don't call set_cfun here. Use
12052 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12053 Set error_found for incorrectly represented calls to thunks.
12055 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12058 PR rtl-optimization/43494
12059 * rtl.h (for_each_inc_dec_fn): New type.
12060 (for_each_inc_dec): Declare.
12061 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12062 (for_each_inc_dec_find_inc_dec): New fn.
12063 (for_each_inc_dec_find_mem): New fn.
12064 (for_each_inc_dec): New fn.
12065 * dse.c (struct insn_size): Remove.
12066 (replace_inc_dec, replace_inc_dec_mem): Remove.
12067 (emit_inc_dec_insn_before): New fn.
12068 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12069 (canon_address): Pass mem modes to cselib_lookup.
12070 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12071 (cselib_lookup_from_insn): Likewise.
12072 (cselib_subst_to_values): Likewise.
12073 * cselib.c (find_slot_memmode): New var.
12074 (cselib_find_slot): New fn. Use it instead of
12075 htab_find_slot_with_hash everywhere.
12076 (entry_and_rtx_equal_p): Use find_slot_memmode.
12077 (autoinc_split): New fn.
12078 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12079 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12080 Deal with autoinc. Special-case recursion into MEMs.
12081 (cselib_hash_rtx): Likewise.
12082 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12083 address and MEM modes.
12084 (cselib_subst_to_values): Add memmode, pass it on.
12086 (cselib_lookup): Add memmode argument, pass it on.
12087 (cselib_lookup_from_insn): Add memmode.
12088 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12089 (struct cselib_record_autoinc_data): New.
12090 (cselib_record_autoinc_cb): New fn.
12091 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12092 mode to cselib_lookup. Reset autoinced REGs here instead of...
12093 (cselib_process_insn): ... here.
12094 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12096 (add_uses): Likewise, also to cselib_subst_to_values.
12097 (add_stores): Likewise.
12098 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12099 cselib_subst_to_values.
12100 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12101 * gcse.c (do_local_cprop): Adjusted.
12102 * postreload.c (reload_cse_simplify_set): Adjusted.
12103 (reload_cse_simplify_operands): Adjusted.
12104 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12106 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12108 PR tree-optimization/45122
12109 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12110 unsafe assumptions when there's more than one loop exit.
12112 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12115 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12116 Document using vector double with the load/store builtins, and
12117 that the load/store builtins always use Altivec instructions.
12119 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12120 to use altivec memory instructions, even on VSX.
12121 (vector_altivec_store_<mode>): Ditto.
12123 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12126 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12127 V2DF, V2DI support to load/store overloaded builtins.
12129 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12130 altivec load/store builtins for V2DF/V2DI types.
12132 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12133 set avoid indexed addresses on power6 if -maltivec.
12134 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12135 vector_altivec_load/vector_altivec_store builtins.
12136 (altivec_expand_st_builtin): Ditto.
12137 (altivec_expand_builtin): Add VSX memory builtins.
12138 (rs6000_init_builtins): Add V2DI types to internal types.
12139 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12140 load/store builtins.
12141 (rs6000_address_for_altivec): Insure memory address is appropriate
12144 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12145 vec_vsx_ld and vec_vsx_st.
12146 (vsx_store_<mode>): Ditto.
12148 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12149 variables to hold long long types for VSX vector memory builtins.
12150 (RS6000_BTI_unsigned_long_long): Ditto.
12151 (long_long_integer_type_internal_node): Ditti.
12152 (long_long_unsigned_type_internal_node): Ditti.
12154 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12155 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12156 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12158 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12160 (vec_vsx_st): Ditto.
12162 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12164 * config/pa/pa-hpux10.opt: New.
12165 * config/hpux11.opt (pthread): New Driver option.
12166 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12167 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12169 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12171 * config/ia64/vms.opt: New.
12172 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12174 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12177 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12178 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12179 generator functions.
12180 (vsx_floatuns<VSi><mode>2): Ditto.
12181 (vsx_fix_trunc<mode><VSi>2): Ditto.
12182 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12184 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12186 * config/i386/djgpp.opt (posix): New Driver option.
12188 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12190 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12191 Move to the unsupported targets list.
12193 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12195 PR rtl-optimization/47525
12196 * df-scan.c: Update copyright years.
12197 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12198 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12200 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12202 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12203 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12204 (ASM_OUTPUT_ASCII): Remove.
12205 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12207 2011-02-02 Jeff Law <law@redhat.com>
12209 PR middle-end/47543
12210 * reload.c (find_reloads_address): Handle reg+d address where both
12211 components are invalid by reloading the entire address.
12213 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12214 Richard Guenther <rguenther@suse.de>
12216 PR tree-optimization/40979
12218 * passes.c (init_optimization_passes): After LIM call copy_prop
12219 and DCE to clean up.
12220 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12222 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12224 PR tree-optimization/47576
12225 PR tree-optimization/47555
12226 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12227 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12228 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12229 * tree-scalar-evolution.c (follow_ssa_edge): Use
12230 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12232 2011-02-02 Richard Guenther <rguenther@suse.de>
12234 PR tree-optimization/47566
12235 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12237 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12241 * tree-inline.c (declare_return_variable): Remove unused caller
12246 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12247 * cfgexpand.c (account_used_vars_for_block): Use them.
12248 * tree-nrv.c (tree_nrv): Likewise.
12249 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12250 (dump_scope_block): Likewise.
12251 (remove_unused_locals): Likewise.
12255 * tree-inline.c (declare_return_variable): Add result decl to
12256 local decls only once.
12257 * gimple-low.c (record_vars_into): Mark newly-created variables
12260 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12266 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12268 (no_real_insns_p, schedule_block, set_priorities): Drop special
12269 treatment of boundary debug insns.
12270 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12271 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12272 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12273 (BOUNDARY_DEBUG_INSN_P): Likewise.
12274 (SCHEDULE_DEBUG_INSN_P): Likewise.
12275 * sched-rgn.c (init_ready_list): Drop special treatment of
12276 boundary debug insns.
12277 * final.c (rest_of_clean_state): Clear notes' BB.
12279 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12281 * config/openbsd.opt (assert=): New Driver option.
12283 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12285 * config/i386/nto.opt: New.
12286 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12288 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12290 * config/i386/netware.opt: New.
12291 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12293 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12295 * config/interix.opt (posix): New Driver option.
12297 2011-02-01 DJ Delorie <dj@redhat.com>
12299 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12301 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12304 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12306 PR tree-optimization/47561
12307 * toplev.c (process_options): Print the Graphite flags. Add
12308 flag_loop_flatten to the list of options requiring Graphite.
12310 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12312 * config/i386/cygming.opt (posix): New Driver option.
12314 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12316 * config/arm/vxworks.opt: New.
12317 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12319 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12321 * config/alpha/elf.opt: New.
12322 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12323 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12325 2011-02-01 Richard Guenther <rguenther@suse.de>
12327 PR tree-optimization/47559
12328 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12329 store-motion on references that can throw.
12331 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12333 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12334 * tree-pass.h (TDF_CSELIB): New macro.
12335 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12336 cselib_lookup): Check for it rather than for TDF_DETAILS.
12338 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12341 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12342 is HOST_BIT_BUCKET.
12344 * opts.c (finish_options): Don't add x_aux_base_name if it is
12347 2011-02-01 Richard Guenther <rguenther@suse.de>
12349 PR tree-optimization/47555
12351 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12353 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12355 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12358 * config/lm32/t-lm32: Add multilib for all CPU options.
12360 2011-02-01 Richard Guenther <rguenther@suse.de>
12362 PR tree-optimization/47541
12363 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12364 sure to have a field at offset zero.
12366 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12368 * config/arc/arc.opt (EB, EL): New Driver options.
12370 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12372 * config/alpha/osf5.opt: New.
12373 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12375 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12377 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12379 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12381 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12382 -floop-interchange.
12383 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12384 is an alias of -floop-interchange and that it requires the
12385 Graphite infrastructure.
12386 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12387 flag_loop_interchange based on the value of flag_tree_loop_linear.
12389 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12390 Richard Guenther <rguenther@suse.de>
12392 PR tree-optimization/47538
12393 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12394 type instead of r1type, except for comparisons. For right
12395 shifts and comparisons punt if there are mismatches in
12396 sizetype vs. non-sizetype types.
12398 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12400 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12403 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12405 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12407 * configure: Regenerate.
12409 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12411 * configure.ac (gcc_cv_ld_static_option): Define.
12412 (gcc_cv_ld_dynamic_option): Define.
12413 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12415 (HAVE_LD_STATIC_DYNAMIC): Update message.
12416 (LD_STATIC_OPTION): Define.
12417 (LD_DYNAMIC_OPTION): Define.
12418 * configure: Regenerate.
12419 * config.in: Regenerate.
12420 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12421 HAVE_LD_STATIC_DYNAMIC]: Use them.
12423 2011-01-31 Nick Clifton <nickc@redhat.com>
12425 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12426 registers inside interrupt handlers if the handler is not a leaf
12429 2011-01-31 Nick Clifton <nickc@redhat.com>
12431 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12432 reg_renumber returning an INVALID_REGNUM.
12434 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12437 * doc/install.texi: Document host options discarded when cross
12438 configuring target libraries.
12440 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12443 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12446 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12448 (no_real_insns_p, schedule_block, set_priorities): Drop special
12449 treatment of boundary debug insns.
12450 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12451 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12452 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12453 (BOUNDARY_DEBUG_INSN_P): Likewise.
12454 (SCHEDULE_DEBUG_INSN_P): Likewise.
12455 * sched-rgn.c (init_ready_list): Drop special treatment of
12456 boundary debug insns.
12457 * final.c (rest_of_clean-state): Clear notes' BB.
12459 2011-01-31 Alan Modra <amodra@gmail.com>
12461 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12462 toc relative expressions as we do in print_operand_address.
12464 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12466 * doc/extend.texi: Follow spelling conventions.
12467 * doc/invoke.texi: Fix a typo.
12469 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12471 * config/hpux11.opt: New.
12472 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12473 ia64*-*-hpux*): Use hpux11.opt.
12475 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12477 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12480 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12482 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12485 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12487 * doc/install.texi (Binaries): Remove outdated reference for
12488 Motorola 68HC11/68HC12 downloads.
12490 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12492 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12495 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12498 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12501 2011-01-28 Ahmad Sharif <asharif@google.com>
12503 * value-prof.c (check_counter): Corrected error message.
12505 2011-01-29 Jie Zhang <jie@codesourcery.com>
12507 * config/arm/arm.c (arm_legitimize_reload_address): New.
12508 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12509 arm_legitimize_reload_address.
12510 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12512 2011-01-28 Ian Lance Taylor <iant@google.com>
12514 * godump.c (go_define): Ignore macros whose definitions include
12515 two adjacent operands.
12517 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12520 * varasm.c (force_const_mem): Store copy of x in desc->constant
12521 instead of x itself.
12522 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12523 itself into REG_EQUAL note.
12525 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12527 * config/freebsd.opt (posix, rdynamic): New Driver options.
12529 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12531 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12532 -Bstatic/-Bdynamic.
12533 * configure: Regenerate.
12535 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12537 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12538 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12540 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12542 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12543 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12544 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12545 (s390_preferred_reload_class): Make static. Change return and
12546 'rclass' argument type to reg_class_t.
12548 2011-01-27 Jan Hubicka <jh@suse.cz>
12550 PR middle-end/46949
12551 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12552 (process_function_and_variable_attributes): Check defined weakrefs.
12554 2011-01-27 Martin Jambor <mjambor@suse.cz>
12556 PR tree-optimization/47228
12557 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12558 build_ref_for_offset.
12560 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12562 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12564 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12566 PR rtl-optimization/46856
12567 * postreload.c (reload_combine_recognize_const_pattern): Do not
12568 separate cc0 setter and user on cc0 targets.
12570 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12573 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12574 passed a VOID_TYPE expression, immediately emit an error and
12575 return error_mark_node.
12577 2011-01-26 Jeff Law <law@redhat.com>
12579 PR rtl-optimization/47464
12580 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12581 rather than may_trap_p as needed.
12583 2011-01-26 DJ Delorie <dj@redhat.com>
12585 PR rtl-optimization/46878
12586 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12587 setter/user dependency as well.
12589 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12591 PR rtl-optimization/44469
12592 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12593 after removing trivially dead basic blocks.
12595 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12597 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12598 * config/frv/frv.h (LINK_SPEC): Likewise.
12599 * config/i386/netware.h (LINK_SPEC): Likewise.
12600 * config/m68k/linux.h (ASM_SPEC): Likewise.
12601 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12602 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12603 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12604 * config/sparc/linux.h (ASM_SPEC): Likewise.
12605 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12606 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12608 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12610 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12611 * config/frv/frv.h (ASM_SPEC): Likewise.
12612 * config/m68k/linux.h (ASM_SPEC): Likewise.
12613 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12614 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12615 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12616 * config/sparc/linux.h (ASM_SPEC): Likewise.
12617 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12618 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12620 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12622 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12623 * config/frv/frv.h (LINK_SPEC): Likewise.
12624 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12626 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12628 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12629 * config/frv/frv.h (ASM_SPEC): Likewise.
12630 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12631 * config/m68k/linux.h (ASM_SPEC): Likewise.
12632 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12633 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12634 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12635 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12636 * config/sparc/linux.h (ASM_SPEC): Likewise.
12637 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12638 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12639 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12641 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12644 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12646 (vec_extract_evenodd_help): Ditto.
12647 (vec_extract_evenv4hi): Ditto.
12648 (vec_extract_oddv4hi): Ditto.
12649 (vec_interleave_lowv2si): Ditto.
12650 (vec_interleave_highv2si): Ditto.
12651 (vec_extract_evenv2si): Ditto.
12652 (vec_extract_oddv2si: Ditto.
12653 (vec_pack_trunc_v2si): Ditto.
12655 2011-01-22 Jan Hubicka <jh@suse.cz>
12658 * cgraph.h (cgraph_local_info): New field can_change_signature.
12659 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12660 signature can change.
12661 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12663 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12664 (cgraph_function_versioning): We can not change signature of functions
12665 that don't allow that.
12666 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12667 (lto_input_node): Likewise.
12668 * ipa-inline.c (compute_inline_parameters): Compute
12669 local.can_change_signature.
12670 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12671 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12672 functions that can not change signature.
12673 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12674 init_cumulative_args): Do not use local calling conventions
12675 for functions that can not change signature.
12677 2011-01-22 Jan Hubicka <jh@suse.cz>
12679 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12681 2011-01-26 Richard Guenther <rguenther@suse.de>
12683 PR tree-optimization/47190
12684 * cgraphunit.c (process_common_attributes): New function.
12685 (process_function_and_variable_attributes): Use it.
12687 2011-01-26 Richard Guenther <rguenther@suse.de>
12690 * cgraphbuild.c (record_eh_tables): Record reference to personality
12693 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12696 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12697 non-debug insns from moving up.
12699 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12702 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12703 t-dlldir{,-x} fragment for build and add it to tmake_file.
12704 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12705 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12706 * config/i386/t-dlldir: New file.
12707 (SHLIB_DLLDIR): Define.
12708 * config/i386/t-dlldir-x: New file.
12709 (SHLIB_DLLDIR): Define.
12710 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12711 (SHLIB_INSTALL): Use it.
12713 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12716 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12717 lower bound of the allowed Thumb-2 coprocessor load/store
12718 index range to -256. Add explaining comment.
12720 2011-01-25 Ian Lance Taylor <iant@google.com>
12722 * godump.c (go_define): Improve lexing of macro expansion to only
12723 accept expressions which match Go spec.
12725 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12728 * tree.c (handle_dll_attribute): Handle it.
12729 * doc/extend.texi (@item dllexport): Mention it.
12730 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12732 2011-01-25 Ian Lance Taylor <iant@google.com>
12734 PR tree-optimization/26854
12735 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12736 (decl_jump_unsafe): Move higher in file, with no other change.
12737 (bind): Set has_jump_unsafe_decl if appropriate.
12738 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12739 (check_earlier_gotos): Likewise.
12740 (c_check_switch_jump_warnings): Likewise.
12742 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12744 * doc/invoke.texi (Warning Options): Add missing hyphen.
12745 (-fprofile-dir): Minor grammatical fixes.
12746 (-fbranch-probabilities): Likewise.
12748 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12752 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12754 (no_real_insns_p, schedule_block, set_priorities): Drop special
12755 treatment of boundary debug insns.
12756 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12757 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12758 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12759 (BOUNDARY_DEBUG_INSN_P): Likewise.
12760 (SCHEDULE_DEBUG_INSN_P): Likewise.
12761 * sched-rgn.c (init_ready_list): Drop special treatment of
12762 boundary debug insns.
12763 * final.c (rest_of_clean-state): Clear notes' BB.
12765 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12767 * Makefile.in (LAMBDA_H): Removed.
12768 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12769 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12770 lambda-trans.o, and tree-loop-linear.o.
12771 (lto-symtab.o): Remove dependence on LAMBDA_H.
12772 (tree-loop-linear.o): Remove rule.
12773 (lambda-mat.o): Same.
12774 (lambda-trans.o): Same.
12775 (lambda-code.o): Same.
12776 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12777 (tree-vect-slp.o): Same.
12778 * hwint.h (gcd): Moved here.
12779 (least_common_multiple): Same.
12780 * lambda-code.c: Removed.
12781 * lambda-mat.c: Removed.
12782 * lambda-trans.c: Removed.
12783 * lambda.h: Removed.
12784 * tree-loop-linear.c: Removed.
12785 * lto-symtab.c: Do not include lambda.h.
12786 * omega.c (gcd): Removed.
12787 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12788 * tree-data-ref.c (print_lambda_vector): Moved here.
12789 (lambda_vector_copy): Same.
12790 (lambda_matrix_copy): Same.
12791 (lambda_matrix_id): Same.
12792 (lambda_vector_first_nz): Same.
12793 (lambda_matrix_row_add): Same.
12794 (lambda_matrix_row_exchange): Same.
12795 (lambda_vector_mult_const): Same.
12796 (lambda_vector_negate): Same.
12797 (lambda_matrix_row_negate): Same.
12798 (lambda_vector_equal): Same.
12799 (lambda_matrix_right_hermite): Same.
12800 * tree-data-ref.h: Do not include lambda.h.
12801 (lambda_vector): Moved here.
12802 (lambda_matrix): Same.
12803 (dependence_level): Same.
12804 (lambda_transform_legal_p): Removed declaration.
12805 (lambda_collect_parameters): Same.
12806 (lambda_compute_access_matrices): Same.
12807 (lambda_vector_gcd): Same.
12808 (lambda_vector_new): Same.
12809 (lambda_vector_clear): Same.
12810 (lambda_vector_lexico_pos): Same.
12811 (lambda_vector_zerop): Same.
12812 (lambda_matrix_new): Same.
12813 * tree-flow.h (least_common_multiple): Removed declaration.
12814 * tree-parloops.c (lambda_trans_matrix): Moved here.
12815 (LTM_MATRIX): Same.
12816 (LTM_ROWSIZE): Same.
12817 (LTM_COLSIZE): Same.
12818 (LTM_DENOMINATOR): Same.
12819 (lambda_trans_matrix_new): Same.
12820 (lambda_matrix_vector_mult): Same.
12821 (lambda_transform_legal_p): Same.
12822 * tree-pass.h (pass_linear_transform): Removed declaration.
12823 * tree-ssa-loop.c (tree_linear_transform): Removed.
12824 (gate_tree_linear_transform): Removed.
12825 (pass_linear_transform): Removed.
12826 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12827 flag_loop_interchange.
12829 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12831 PR tree-optimization/47265
12832 PR tree-optimization/47443
12833 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12834 if name still has some uses.
12836 2011-01-25 Martin Jambor <mjambor@suse.cz>
12838 PR tree-optimization/47382
12839 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12840 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12842 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12844 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12845 sjlj_except_unwind_info.
12847 2011-01-25 Richard Guenther <rguenther@suse.de>
12849 PR tree-optimization/47426
12850 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12851 visible functions results escape.
12853 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12856 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12857 (arm_get_frame_offsets): Use it.
12859 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12860 Jakub Jelinek <jakub@redhat.com>
12862 PR tree-optimization/47271
12863 * tree-if-conv.c (bb_postdominates_preds): New.
12864 (if_convertible_bb_p): Call bb_postdominates_preds.
12865 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12866 (predicate_scalar_phi): Call bb_postdominates_preds.
12868 2011-01-25 Nick Clifton <nickc@redhat.com>
12870 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12871 * config/rx/rx.c (rx_function_value): Likewise.
12872 (rx_promote_function_mode): Likewise.
12873 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12874 in order to make it legitimate.
12875 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12876 make sure that the first operand is the same as the result register.
12877 (addsi3_unspec): Delete.
12878 (subdi3): Do not accept immediate operands.
12879 (subdi3_internal): Likewise.
12881 2011-01-25 Jeff Law <law@redhat.com>
12883 PR rtl-optimization/37273
12884 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12885 handle them like argument loads from stack slots. Do not double
12886 count memory for memory constants and argument loads from stack slots.
12888 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12890 PR tree-optimization/47427
12891 PR tree-optimization/47428
12892 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12893 coalesce if the new root var would be TREE_READONLY.
12895 2011-01-25 Richard Guenther <rguenther@suse.de>
12897 PR middle-end/47414
12898 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12899 correct type for TBAA.
12901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12903 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12904 (close_phi_written_to_memory): Call for_each_index with
12905 dr_indices_valid_in_loop.
12907 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12909 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12910 when it is initialized.
12912 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12914 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12915 call to graphite_find_data_references_in_stmt.
12916 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12917 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12918 call to graphite_find_data_references_in_stmt.
12919 (analyze_drs_in_stmts): Same.
12920 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12921 in which the scalar analysis of indices is performed.
12922 (create_data_ref): Same. Update call to dr_analyze_indices.
12923 (find_data_references_in_stmt): Update call to create_data_ref.
12924 (graphite_find_data_references_in_stmt): Same.
12925 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12927 (create_data_ref): Same.
12928 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12929 call to create_data_ref.
12931 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12933 * graphite-sese-to-poly.c (build_poly_scop): Move
12934 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12938 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12939 VAR_DECL, PARM_DECL, and RESULT_DECL.
12941 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12943 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12944 in a reduction PBB.
12945 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12946 that have already been marked as PBB_IS_REDUCTION.
12948 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12950 * graphite-scop-detection.c (same_close_phi_node): New.
12951 (remove_duplicate_close_phi): New.
12952 (make_close_phi_nodes_unique): New.
12953 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12955 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12957 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12958 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12959 of both data references to be the same.
12961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12963 * graphite-dependences.c (build_lexicographical_constraint): Remove
12964 the gdim parameter.
12965 (build_lexicographical_constraint): Adjust call to
12966 ppl_powerset_is_empty.
12967 (dependence_polyhedron): Same.
12968 (graphite_legal_transform_dr): Same.
12969 (graphite_carried_dependence_level_k): Same.
12970 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12972 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12974 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12976 * graphite-sese-to-poly.c
12977 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12978 (close_phi_written_to_memory): New.
12979 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12982 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12984 * doc/install.texi: Update the expected version number of PPL to 0.11.
12985 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12986 #if PPL_VERSION_MINOR < 11.
12988 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12990 * graphite-dependences.c: Include graphite-cloog-util.h.
12991 (new_poly_ddr): Inlined into dependence_polyhedron.
12992 (free_poly_ddr): Moved close by new_poly_ddr.
12993 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12994 Early return NULL when ppl_powerset_is_empty returns true.
12995 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12996 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12997 (graphite_legal_transform_dr): Call new_poly_ddr.
12998 (graphite_carried_dependence_level_k): Same.
12999 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13000 (dot_transformed_deps_stmt_1): Removed.
13001 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13002 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13003 (dot_deps_1): Call dot_deps_2.
13004 * Makefile.in (graphite-dependences.o): Add missing dependence on
13005 graphite-cloog-util.h.
13007 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13009 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13010 (build_lexicographical_constraint): Same.
13011 (dependence_polyhedron_1): Same.
13012 (graphite_legal_transform_dr): Same.
13013 (graphite_carried_dependence_level_k): Same.
13014 * graphite-ppl.c (ppl_powerset_is_empty): New.
13015 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13016 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13020 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13021 the "a followed by b" relation and document it.
13023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13025 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13026 iteration when the bag of constraints is empty.
13028 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13030 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13034 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13035 nest and two loop depths as parameters.
13036 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13037 lst_perfect_nestify.
13039 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13041 * graphite-dependences.c (print_pddr): Call
13042 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13044 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13046 * graphite-ppl.c (debug_gmp_value): New.
13047 * graphite-ppl.h (debug_gmp_value): Declared.
13049 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13051 * doc/install.texi: Document availability of cloog-0.16.
13053 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13055 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13056 invalid postdominance info.
13058 2011-01-24 Jan Hubicka <jh@suse.cz>
13061 * doc/extend.texi (weak pragma): Drop claim that it must
13062 appear before definition.
13063 * varasm.c (merge_weak, declare_weak): Only sanity check
13064 that DECL is not output at a time it is declared weak.
13066 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13068 * machmode.def: Fixed comments.
13070 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13072 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13074 2011-01-24 Paul Koning <ni1d@arrl.net>
13076 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13079 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13082 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13083 (block_info): Add scanned and prev.
13084 (move_or_delete_vzeroupper_2): Return if the basic block
13085 has been scanned and the upper 128bit state is unchanged
13086 from the last scan.
13087 (move_or_delete_vzeroupper_1): Return true if the exit
13089 (move_or_delete_vzeroupper): Visit basic blocks using the
13090 work-list based algorithm based on vt_find_locations in
13093 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13095 2011-01-24 Nick Clifton <nickc@redhat.com>
13097 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13098 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13099 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13100 then define __v850e1__.
13101 * doc/invoke.texi: Document -mv850es.
13103 2011-01-24 Richard Henderson <rth@redhat.com>
13105 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13106 compound unordered comparisons.
13107 * config/rx/rx.c (rx_split_fp_compare): Remove.
13108 * config/rx/rx-protos.h: Update.
13109 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13110 (cbranchsf4): Don't call rx_split_fp_compare.
13111 (*cbranchsf4): Use rx_split_cbranch.
13112 (*cmpsf): Don't accept "i" constraint.
13113 (*conditional_branch): Only valid after reload.
13114 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13116 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13119 * config/rs6000/altivec.md (vector constant splitters): Add
13120 support for creating vector single precision constants if -mvsx is
13121 used and we would create the constant using Altivec primitives.
13123 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13124 Richard Sandiford <rdsandiford@googlemail.com>
13126 PR rtl-optimization/47166
13127 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13128 mechanism for PRE_MODIFY and POST_MODIFY.
13129 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13132 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13134 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13136 2011-01-22 Jan Hubicka <jh@suse.cz>
13139 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13141 2011-01-22 Jan Hubicka <jh@suse.cz>
13143 PR tree-optimization/43884
13145 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13146 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13148 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13150 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13151 * config/s390/s390.c (s390_register_move_cost,
13152 s390_memory_move_cost): New.
13153 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13155 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13157 PR middle-end/47401
13158 * except.c (sjlj_assign_call_site_values): Move setting the
13159 crtl->uses_eh_lsda flag to ...
13160 (sjlj_mark_call_sites): ... here.
13161 (sjlj_emit_function_enter): Support NULL dispatch label.
13162 (sjlj_build_landing_pads): In a function with no landing pads
13163 that still has must-not-throw regions, generate code to register
13164 a personality function with empty LSDA.
13166 2011-01-21 Richard Henderson <rth@redhat.com>
13168 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13170 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13172 * compare-elim.c: New file.
13173 * Makefile.in (OBJS-common): Add it.
13174 (compare-elim.o): New.
13175 * common.opt (fcompare-elim): New.
13176 * opts.c (default_options_table): Add OPT_fcompare_elim.
13177 * tree-pass.h (pass_compare_elim_after_reload): New.
13178 * passes.c (init_optimization_passes): Add it.
13179 * recog.h: Protect against re-inclusion.
13180 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13181 * doc/invoke.texi (-fcompare-elim): Document it.
13182 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13183 * doc/tm.texi: Rebuild.
13185 2011-01-22 Nick Clifton <nickc@redhat.com>
13187 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13188 rx_split_fp_compare.
13190 2011-01-22 Nick Clifton <nickc@redhat.com>
13192 * config/rx/rx.md (UNSPEC_CONST): New.
13193 (deallocate_and_return): Wrap the amount popped off the stack in
13194 an UNSPEC_CONST in order to stop it being rejected by
13195 -mmax-constant-size.
13196 (pop_and_return): Add a "(return)" rtx.
13197 (call): Drop the immediate operand.
13198 (call_internal): Likewise.
13199 (call_value): Likewise.
13200 (call_value_internal): Likewise.
13201 (sibcall_internal): Likewise.
13202 (sibcall_value_internal): Likewise.
13203 (sibcall): Likewise. Generate an explicit call using
13205 (sibcall_value): Likewise.
13206 (mov<>): FAIL if a constant operand is not legitimate.
13207 (addsi3_unpsec): New pattern.
13209 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13210 (ok_for_max_constant): New function.
13211 (gen_safe_add): New function.
13212 (rx_expand_prologue): Use gen_safe_add.
13213 (rx_expand_epilogue): Likewise.
13214 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13217 2011-01-21 Jeff Law <law@redhat.com>
13219 PR tree-optimization/47053
13220 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13221 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13222 statements are deleted.
13223 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13224 is nonempty, then purge dead edges and cleanup the CFG.
13226 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13229 Temporarily revert:
13230 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13232 * tree-dfa.c (create_var_ann): Mark variable as used.
13234 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13236 PR middle-end/45566
13237 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13238 notes from other section in hot/cold partitioning even if
13239 last_action is -3. Increment call_site_base.
13241 PR rtl-optimization/47366
13242 * fwprop.c (forward_propagate_into): Return bool. If
13243 any changes are made, -fnon-call-exceptions is used and
13244 REG_EH_REGION note is present, call purge_dead_edges
13245 and return true if it purged anything.
13246 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13247 any EH edges were purged.
13249 2011-01-21 Jeff Law <law@redhat.com>
13251 PR rtl-optimization/41619
13252 * caller-save.c (setup_save_areas): Break out code to determine
13253 which hard regs are live across calls by examining the reload chains
13254 so that it is always used.
13255 Eliminate code which checked REG_N_CALLS_CROSSED.
13257 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13259 PR tree-optimization/47355
13260 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13261 NOP has non-debug uses beyond PHIs in new_bb.
13263 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13266 * cfgexpand.c (account_used_vars_for_block): Only account vars
13267 that are annotated as used.
13268 (estimated_stack_frame_size): Don't set TREE_USED.
13269 * tree-dfa.c (create_var_ann): Mark variable as used.
13271 2011-01-21 Richard Guenther <rguenther@suse.de>
13273 PR middle-end/47395
13274 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13276 2011-01-21 Richard Guenther <rguenther@suse.de>
13278 PR tree-optimization/47365
13279 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13280 (vn_reference_lookup_pieces): Adjust.
13281 (vn_reference_lookup): Likewise.
13282 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13283 (vn_reference_lookup_3): Only look through kills if in
13284 VN_WALKREWRITE mode.
13285 (vn_reference_lookup_pieces): Adjust.
13286 (vn_reference_lookup): Likewise.
13287 (visit_reference_op_load): Likewise.
13288 (visit_reference_op_store): Likewise.
13289 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13290 (compute_avail): Likewise.
13291 (eliminate): Likewise.
13293 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13295 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13296 DECL_IGNORED_P non-reg vars if they are used.
13298 PR tree-optimization/47391
13299 * varpool.c (const_value_known_p): Return false if
13302 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13305 * config/i386/i386.c (ix86_local_alignment): Handle
13306 case for va_list_type_node is nil.
13307 (ix86_canonical_va_list_type): Likewise.
13309 2011-01-21 Alan Modra <amodra@gmail.com>
13311 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13312 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13314 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13316 * config/arm/arm.md (define_attr type): Rename f_load
13317 and f_store to f_fpa_load and f_fpa_store. Update.
13318 (write_conflict): Deal with rename fallout.
13319 (*push_fp_multi): Likewise.
13320 * config/arm/fpa.md (f_load): Use f_fpa_load.
13321 (f_store): Use f_fpa_store.
13322 (*movsf_fpa): Likewise.
13323 (*movdf_fpa): Likewise.
13324 (*movxf_fpa): Likewise.
13325 (*thumb2_movsf_fpa): Likewise.
13326 (*thumb2_movdf_fpa): Likewise.
13327 (*thumb2_movxf_fpa): Likewise.
13328 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13329 f_loadd and f_stored.
13330 (*thumb2_movdi_vfp): Likewise.
13331 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13332 (*thumb2_movsi_vfp): Likewise.
13333 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13334 Use f_loads instead of f_load.
13335 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13337 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13339 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13340 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13341 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13342 (xtensa_mode_dependent_address_p): New function.
13343 (constantpool_address_p): Make static. Change return type to bool.
13344 Change argument type to const_rtx. Use CONST_INT_P predicate.
13346 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13349 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13351 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13354 * cfgexpand.c (expand_debug_expr): Instead of generating
13355 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13358 2011-01-20 Richard Guenther <rguenther@suse.de>
13360 PR middle-end/47370
13361 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13362 the pointer operand of MEM_REFs.
13364 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13366 PR tree-optimization/46130
13367 * ipa-split.c (consider_split): If return_bb contains non-virtual
13368 PHIs other than for retval or if split_function would not adjust it,
13371 2011-01-20 Richard Guenther <rguenther@suse.de>
13373 PR tree-optimization/47167
13374 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13375 Revert previous change, only avoid enumeral type changes.
13377 2011-01-19 Mike Stump <mikestump@comcast.net>
13379 * doc/tm.texi.in (BRANCH_COST): Englishify.
13380 * doc/tm.texi (BRANCH_COST): Likewise.
13382 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13385 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13386 (gen_scheduled_generic_parms_dies): New functions.
13387 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13388 generation for the end of CU compilation.
13389 (dwarf2out_finish): Generate template parameters DIEs here.
13391 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13394 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13395 debug bind stmt on merge edges.
13397 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13401 * function.c (instantiate_expr): Instantiate incoming rtl of
13402 implicit arguments, and recurse on VALUE_EXPRs.
13403 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13404 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13406 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13408 * c-parser.c (c_parser_for_statement): Initialize
13409 collection_expression.
13411 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13413 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13415 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13417 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13418 (LINK_SHLIB_SPEC): Don't use %(link_path).
13419 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13421 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13423 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13424 (NO_SHARED_LIB_SUPPORT): Remove.
13425 (LINK_SHLIB_SPEC): Remove one conditional definition.
13427 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13429 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13431 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13432 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13433 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13434 %{call_shared} and conditionals on these options not being passed.
13435 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13438 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13440 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13443 * ipa-split.c: Spelling fixes.
13445 2011-01-19 Richard Henderson <rth@redhat.com>
13447 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13448 (*mulsi3): Likewise.
13450 * longlong.h [__mn10300__] (count_leading_zeros): New.
13451 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13452 [__mn10300__] (add_ssaaaa, subddmmss): New.
13453 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13454 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13456 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13458 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13460 2011-01-19 Richard Henderson <rth@redhat.com>
13462 * config/mn10300/mn10300.md (addsi3_flags): New.
13463 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13464 (subsi3_flags, subc_internal, subdi3): New.
13465 (subdi3_internal, *subdi3_degenerate): New.
13466 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13468 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13469 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13470 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13471 * config/mn10300/mn10300-protos.h: Update.
13472 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13473 (return_ret): Likewise. Rename from return_internal_regs.
13474 (return_internal): Remove.
13476 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13477 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13478 (mn10300_legitimate_constant_p): Likewise.
13479 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13480 (mn10300_frame_size): New.
13481 (mn10300_expand_prologue): Use it.
13482 (mn10300_expand_epilogue): Likewise.
13483 (mn10300_initial_offset): Likewise.
13484 * config/mn10300/mn10300-protos.h: Update.
13485 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13486 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13487 (prologue, epilogue, return_internal): Tidy output code.
13488 (mn10300_store_multiple_operation, return): Likewise.
13489 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13490 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13491 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13492 (load_pic, am33_load_pic): New.
13493 (mn10300_load_pic0, mn10300_load_pic1): New.
13495 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13496 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13497 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13498 (cc_flags_for_mode, cc_flags_for_code): New.
13499 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13500 overflow flag is not valid. Validate that the flags we need
13501 for the comparison are valid.
13502 (mn10300_output_cmp): Remove.
13503 (mn10300_output_add): New.
13504 (mn10300_select_cc_mode): Use cc_flags_for_code.
13505 (mn10300_split_cbranch): New.
13506 (mn10300_match_ccmode): New.
13507 (mn10300_split_and_operand_count): New.
13508 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13510 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13511 (addsi3): ... here. Use mn10300_output_add.
13512 (*addsi3_flags): New.
13513 (*am33_subsi3, *mn10300_subsi3): Merge...
13514 (subsi3): ... here. Use attribute isa.
13515 (*subsi3_flags): New.
13516 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13518 (*am33_andsi3, *mn10300_andsi3): Merge...
13519 (andsi3): ... here.
13520 (*andsi3_flags): New.
13521 (andsi3 splitters): New.
13522 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13523 (iorsi3): ... here.
13524 (*iorsi3_flags): New.
13525 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13526 (xorsi3): ... here.
13527 (*xorsi3_flags): New.
13528 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13529 (one_cmplsi2): ... here.
13530 (*one_cmplsi2_flags): New.
13531 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13532 instead of "dax" in constraints. Use mn10300_split_cbranch.
13533 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13534 use matching constraints to eliminate a self-comparison.
13535 (*integer_conditional_branch): Rename from integer_conditional_branch.
13536 Use int_mode_flags to match CC_REG.
13537 (*cbranchsi4_btst, *btstsi): New.
13538 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13539 mn10300_split_cbranch.
13540 (*am33_cmpsf): Rename from am33_cmpsf.
13541 (*float_conditional_branch): Rename from float_conditional_branch.
13542 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13543 (zero_extendqisi2): ... here.
13544 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13545 (zero_extendhisi2): ... here.
13546 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13547 (extendqisi2): ... here.
13548 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13549 (extendhisi2): ... here.
13550 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13551 (ashlsi3): ... here.
13552 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13553 (lshrsi3): ... here.
13554 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13555 (ashrsi3): ... here.
13556 (consecutive add peephole): Remove.
13557 * config/mn10300/predicates.md (label_ref_operand): New.
13558 (int_mode_flags): New.
13559 (CCZN_comparison_operator): New.
13561 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13562 (throughput_42_latency_43): New reservation.
13563 (mulsidi3, umulsidi3): New expanders.
13564 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13565 the MDR register to allocation; separately allocate the low and
13566 high parts of the DImode result.
13567 (umulsidi3_internal): Similarly.
13568 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13569 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13570 (udivsi3, umodsi3): Remove.
13571 (udivmodsi4, divmodsi4): New expanders.
13572 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13573 (*divmodsi4): Simiarly.
13574 (ext_internal): New.
13576 * config/mn10300/constraints.md ("z"): New constraint.
13577 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13578 (FIXED_REGISTERS): Don't fix MDR.
13579 (CALL_USED_REGSITERS): Reformat nicely.
13580 (REG_ALLOC_ORDER): Add MDR.
13581 (enum regclass): Add MDR_REGS.
13582 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13583 (IRA_COVER_CLASSES): Add MDR_REGS.
13584 (REGNO_REG_CLASS): Handle MDR_REG.
13585 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13586 (mn10300_register_move_cost): Likewise.
13587 * config/mn10300/mn10300.md (MDR_REG): New.
13588 (*movsi_internal): Handle moves to/from MDR_REGS.
13590 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13592 (mn10300_secondary_reload): Tidy combination reload classes.
13593 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13594 addresses for AM33. Allow symbolic offsets for reg+imm.
13595 (mn10300_regno_in_class_p): New.
13596 (mn10300_legitimize_reload_address): New.
13597 * config/mn10300/mn10300.h (enum reg_class): Remove
13598 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13599 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13600 SP_OR_GENERAL_REGS.
13601 (REG_CLASS_NAMES): Update to match.
13602 (REG_CLASS_CONTENTS): Likewise.
13603 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13604 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13605 (REGNO_IN_RANGE_P): Remove.
13606 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13607 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13608 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13609 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13610 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13611 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13612 (REGNO_GENERAL_P): New.
13613 (HAVE_POST_MODIFY_DISP): New.
13614 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13615 (LEGITIMIZE_RELOAD_ADDRESS): New.
13616 * config/mn10300/mn10300-protos.h: Update.
13618 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13619 DATA_REGS for AM33 stack-pointer destination.
13620 (mn10300_preferred_output_reload_class): Likewise.
13621 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13622 into a form appropriate for ...
13623 (TARGET_SECONDARY_RELOAD): New.
13624 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13625 * config/mn10300/mn10300-protos.h: Update.
13626 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13627 reload_insi; use the "A" constraint for the scratch; handle AM33
13628 moves of sp to non-address registers.
13630 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13631 (*movqi_internal): ... here.
13632 (*am33_movhi, *mn10300_movhi): Merge into...
13633 (*movhi_internal): ... here.
13634 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13635 as the source/destination of moves from/to SP.
13636 (movsf): Only allow for AM33-2.
13637 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13638 any integer constant constraint. Only allow for AM33-2. Tidy
13639 all of the alternative outputs.
13640 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13641 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13643 (udivsi3, umodsi3): New patterns for MN103 only.
13645 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13647 * doc/tm.texi.in: Spell out that a lack of register class unions
13649 * doc/tm.texi: Regenerate.
13651 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13653 PR rtl-optimization/47337
13654 * dce.c (check_argument_store): New function.
13655 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13657 PR tree-optimization/47290
13658 * tree-eh.c (infinite_empty_loop_p): New function.
13659 (cleanup_empty_eh): Use it.
13661 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13664 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13665 (a64_expand_widen_sum): Ditto.
13666 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13667 (vec_extract_evenodd_help): Ditto.
13668 (vec_extract_evenv4hi): Ditto.
13669 (vec_extract_oddv4hi): Ditto.
13670 (vec_extract_evenv2si): Ditto.
13671 (vec_extract_oddv2si): Ditto.
13672 (vec_extract_evenv2sf): Ditto.
13673 (vec_extract_oddv2sf): Ditto.
13674 (vec_pack_trunc_v4hi: Ditto.
13675 (vec_pack_trunc_v2si): Ditto.
13676 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13677 (vec_interleave_highv8qi): Ditto.
13679 (vec_extract_oddv8qi): Ditto.
13680 (vec_interleave_lowv4hi): Ditto.
13681 (vec_interleave_highv4hi): Ditto.
13682 (vec_interleave_lowv2si): Ditto.
13683 (vec_interleave_highv2si): Ditto.
13685 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13687 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13688 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13689 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13690 (pa_c_mode_for_suffix): New.
13691 (TARGET_EXPAND_BUILTIN): Define.
13692 (TARGET_C_MODE_FOR_SUFFIX): Define.
13693 (pa_builtins): Define.
13694 (pa_init_builtins): Register __float128 type and init new support
13696 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13697 * config/pa/quadlib.c (_U_Qfcopysign): New.
13699 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13701 PR middle-end/46894
13702 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13703 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13706 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13708 PR tree-optimization/47179
13709 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13710 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13712 2011-01-18 Richard Guenther <rguenther@suse.de>
13714 PR rtl-optimization/47216
13715 * emit-rtl.c: Include tree-flow.h.
13716 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13717 of replicating it with different semantics.
13718 * Makefile.in (emit-rtl.o): Adjust.
13720 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13722 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13723 (cortex_a9_dp): Handle neon types correctly.
13725 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13727 PR rtl-optimization/47299
13728 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13729 subtarget. Use normal multiplication if both operands are constants.
13730 * expmed.c (expand_widening_mult): Don't try to optimize constant
13731 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13734 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13736 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13737 spacing after 'e.g.', typos, comma, hyphenation.
13739 2011-01-17 Richard Henderson <rth@redhat.com>
13741 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13742 (rx_restricted_mem_operand): New.
13743 (rx_shift_operand): Use register_operand.
13744 (rx_source_operand, rx_compare_operand): Likewise.
13745 * config/rx/rx.md (addsi3_flags): New expander.
13746 (adddi3): Rewrite as expander.
13747 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13748 (subsi3_flags): New expander.
13749 (subdi3): Rewrite as expander.
13750 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13752 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13753 (rx_init_builtins): Remove sat builtin.
13754 (rx_expand_builtin): Likewise.
13755 * config/rx/rx.md (ssaddsi3): New.
13756 (*sat): Rename from sat. Represent the CC_REG input.
13758 * config/rx/predicates.md (rshift_operator): New.
13759 * config/rx/rx.c (rx_expand_insv): Remove.
13760 * config/rx/rx-protos.h: Update.
13761 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13762 operand to the canonical position.
13763 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13764 (*bitclr, *bitclr_in_memory): Similarly.
13765 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13766 (insv): Retain the zero_extract in the expansion.
13768 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13769 (bswaphi2, bitinvert, revw): Likewise.
13771 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13772 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13773 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13774 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13775 (bitset, bitset_in_memory): Likewise.
13776 (bitinvert, bitinvert_in_memory): Likewise.
13777 (bitclr, bitclr_in_memory): Likewise.
13778 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13779 (rx_strend, rx_cmpstrn): Likewise.
13780 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13781 (bitop peep2 patterns): Remove.
13783 * config/rx/rx.c (rx_match_ccmode): New.
13784 * config/rx/rx-protos.h: Update.
13785 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13786 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13787 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13788 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13789 (fix_truncsfsi2, floatsisf2): Likewise.
13790 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13791 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13792 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13793 (*subsi3_flags, *xorsi3_flags): New.
13795 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13797 * config/rx/rx.c (rx_print_operand): Remove workaround for
13798 unsplit comparison operations.
13800 * config/rx/rx.md (movsicc): Split after reload.
13801 (*movsicc): Merge *movsieq and *movsine via match_operator.
13802 (*stcc): New pattern.
13804 * config/rx/rx.c (rx_float_compare_mode): Remove.
13805 * config/rx/rx.h (rx_float_compare_mode): Remove.
13806 * config/rx/rx.md (cstoresi4): Split after reload.
13807 (*sccc): New pattern.
13809 * config/rx/predicates.md (label_ref_operand): New.
13810 (rx_z_comparison_operator): New.
13811 (rx_zs_comparison_operator): New.
13812 (rx_fp_comparison_operator): New.
13813 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13814 Validate that the flags are set properly for the comparison.
13815 (rx_gen_cond_branch_template): Remove.
13816 (rx_cc_modes_compatible): Remove.
13817 (mode_from_flags): New.
13818 (flags_from_code): Rename from flags_needed_for_conditional.
13819 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13820 (rx_select_cc_mode): Likewise.
13821 (rx_split_fp_compare): New.
13822 (rx_split_cbranch): New.
13823 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13824 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13825 (*cbranchsf4): Similarly.
13826 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13827 match_operator and rx_split_cbranch.
13828 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13829 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13830 (*cmpsi): Rename from cmpsi.
13831 (*tstsi): Rename from tstsi.
13832 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13833 (*conditional_branch): Rename from conditional_branch.
13834 (*reveresed_conditional_branch): Remove.
13835 (b<code>): Remove expander.
13836 * config/rx/rx-protos.h: Update.
13838 * config/rx/rx.c (rx_compare_redundant): Remove.
13839 * config/rx/rx.md (cmpsi): Don't use it.
13840 * config/rx/rx-protos.h: Update.
13842 * config/rx/rx-modes.def (CC_F): New mode.
13843 * config/rx/rx.c (rx_select_cc_mode): New.
13844 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13845 * config/rx/rx-protos.h: Update.
13847 2011-01-17 Richard Henderson <rth@redhat.com>
13849 * except.c (dump_eh_tree): Fix stray ; after for statement.
13851 2011-01-17 Richard Guenther <rguenther@suse.de>
13853 PR tree-optimization/47313
13854 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13855 handling before copying the body. Properly deal with
13856 by-reference result in SSA form.
13858 2011-01-17 Ian Lance Taylor <iant@google.com>
13861 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13862 (struct_value_alias_set): Don't define.
13863 (sparc_option_override): Don't set sparc_sr_alias_set and
13864 struct_value_alias_set.
13865 (save_or_restore_regs): Use gen_frame_mem rather than calling
13867 (sparc_struct_value_rtx): Likewise.
13869 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13872 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13873 (_mm_maskstore_pd): Likewise.
13874 (_mm_maskload_ps): Likewise.
13875 (_mm_maskstore_ps): Likewise.
13876 (_mm256_maskload_pd): Change mask to __m256i.
13877 (_mm256_maskstore_pd): Likewise.
13878 (_mm256_maskload_ps): Likewise.
13879 (_mm256_maskstore_ps): Likewise.
13881 * config/i386/i386-builtin-types.def: Updated.
13882 (ix86_expand_special_args_builtin): Likewise.
13884 * config/i386/i386.c (bdesc_special_args): Update
13885 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13886 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13887 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13888 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13890 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13891 Use <avxpermvecmode> on mask register.
13892 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13894 2011-01-17 Olivier Hainque <hainque@adacore.com>
13895 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13896 Eric Botcazou <ebotcazou@adacore.com>
13899 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13900 if <= USHRT_MAX in 32-bit mode.
13902 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13904 * doc/install.texi (Configuration, Specific): Wrap long
13905 lines in examples. Allow line wrapping in long options
13906 and URLs where beneficial for PDF output.
13908 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13910 * config/mips/mips.c (mips_classify_symbol): Don't return
13911 SYMBOL_PC_RELATIVE for nonlocal labels.
13913 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13915 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13917 2011-01-15 Jan Hubicka <jh@suse.cz>
13919 PR tree-optimization/47276
13920 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13921 declarations as needed.
13923 2011-01-15 Martin Jambor <mjambor@suse.cz>
13925 * common.opt (fdevirtualize): New flag.
13926 * doc/invoke.texi (Option Summary): Document it.
13927 * opts.c (default_options_table): Add devirtualize flag.
13928 * ipa-prop.c (detect_type_change): Return immediately if
13929 devirtualize flag is not set.
13930 (detect_type_change_ssa): Likewise.
13931 (compute_known_type_jump_func): Likewise.
13932 (ipa_analyze_virtual_call_uses): Likewise.
13934 2011-01-14 Martin Jambor <mjambor@suse.cz>
13936 PR tree-optimization/45934
13937 PR tree-optimization/46302
13938 * ipa-prop.c (type_change_info): New type.
13939 (stmt_may_be_vtbl_ptr_store): New function.
13940 (check_stmt_for_type_change): Likewise.
13941 (detect_type_change): Likewise.
13942 (detect_type_change_ssa): Likewise.
13943 (compute_complex_assign_jump_func): Check for dynamic type change.
13944 (compute_complex_ancestor_jump_func): Likewise.
13945 (compute_known_type_jump_func): Likewise.
13946 (compute_scalar_jump_functions): Likewise.
13947 (ipa_analyze_virtual_call_uses): Likewise.
13948 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13950 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13952 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13953 * config/i386/i386.opt (msse5): New Alias.
13955 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13957 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13958 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13959 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13960 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13962 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13964 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13966 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13967 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13968 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13969 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13971 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13973 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13975 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13977 2011-01-14 Mike Stump <mikestump@comcast.net>
13979 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13980 * config/fr30/fr30.md: Likweise
13981 (movsi_push): Likewise.
13982 (movsi_pop): Likewise.
13983 (enter_func): Likewise.
13984 * config/moxie/moxie.md (movsi_push): Likewise.
13985 (movsi_pop): Likewise.
13987 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13989 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13990 %{no_archive} %{exact_version}.
13991 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13992 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13993 %{no_archive} %{exact_version}.
13994 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13995 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13996 * config/mips/vxworks.h: Likewise.
13998 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14000 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14002 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14004 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14005 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14007 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14009 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14012 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14014 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14016 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14017 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14019 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14020 Don't handle -shlib.
14022 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14024 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14025 (CC1_SPEC): Don't handle -profile.
14027 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14029 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14030 * config/mips/mips.h (CC1_SPEC): Likewise.
14032 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14034 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14035 * config/mips/mips.h (CC1_SPEC): Likewise.
14037 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14039 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14040 * config/m32r/linux.h (LINK_SPEC): Likewise.
14041 * config/mips/linux.h (LINK_SPEC): Likewise.
14042 * config/mips/linux64.h (LINK_SPEC): Likewise.
14043 * config/sparc/linux.h (LINK_SPEC): Likewise.
14044 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14045 LINK_SPEC): Likewise.
14046 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14048 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14050 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14052 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14054 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14056 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14057 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14059 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14061 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14063 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14065 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14066 supports -Bstatic/-Bdynamic.
14067 * configure: Regenerate.
14069 2011-01-14 Jan Hubicka <jh@suse.cz>
14070 Jack Howarth <howarth@bromo.med.uc.edu>
14073 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14074 when checking debug_info_level. Test write_symbols instead of
14075 debug_hooks->var_location when setting flag_var_tracking_uninit.
14077 2011-01-14 Richard Guenther <rguenther@suse.de>
14079 PR tree-optimization/47179
14080 * target.def (ref_may_alias_errno): New target hook.
14081 * targhooks.h (default_ref_may_alias_errno): Declare.
14082 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14083 (default_ref_may_alias_errno): New function.
14084 * target.h (struct ao_ref_s): Declare.
14085 * tree-ssa-alias.c: Include target.h.
14086 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14087 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14088 (targhooks.o): Likewise.
14089 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14090 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14092 2011-01-14 Richard Guenther <rguenther@suse.de>
14094 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14096 2011-01-14 Richard Guenther <rguenther@suse.de>
14098 PR tree-optimization/47280
14099 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14100 return CFG changes.
14101 (tree_ssa_forward_propagate_single_use_vars): Deal with
14102 CFG changes from associate_plusminus.
14104 2011-01-14 Richard Guenther <rguenther@suse.de>
14106 PR middle-end/47281
14108 2011-01-11 Richard Guenther <rguenther@suse.de>
14110 PR tree-optimization/46076
14111 * tree-ssa.c (useless_type_conversion_p): Conversions from
14112 unprototyped to empty argument list function types are useless.
14114 2011-01-14 Richard Guenther <rguenther@suse.de>
14116 PR tree-optimization/47286
14117 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14119 2011-01-14 Martin Jambor <mjambor@suse.cz>
14121 PR middle-end/46823
14122 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14124 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14126 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14127 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14128 * config/xtensa/xtensa.c (xtensa_libcall_value,
14129 xtensa_function_value_regno_p): New functions.
14130 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14132 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14135 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14137 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14138 New function prototype.
14139 * config/i386/winnt.c (i386_pe_assemble_visibility):
14140 Warn only if attribute was specified by user.
14142 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14145 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14147 (floatunsdidf2_fcfidu): Ditto.
14149 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14151 * config/s390/s390.c (print_operand_address): Replace 'error' with
14152 'output_operand_lossage'.
14153 (print_operand): Likewise.
14155 2011-01-13 Jeff Law <law@redhat.com>
14157 PR rtl-optimization/39077
14158 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14159 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14160 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14161 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14162 * gcse.c (prune_insertions_deletions): New function.
14163 (compute_pre_data): Use it.
14165 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14168 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14170 (prune_unused_types_mark): Use it.
14172 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14174 PR rtl-optimization/45352
14175 * sel-sched.c: Update copyright years.
14176 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14177 in the advancing loop when we have issued issue_rate insns.
14179 2011-01-12 Richard Henderson <rth@redhat.com>
14181 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14182 (TARGET_MD_ASM_CLOBBERS): New.
14184 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14185 (TARGET_DELEGITIMIZE_ADDRESS): New.
14187 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14188 (clzsi2, *bsch): New patterns.
14190 * config/mn10300/mn10300.md (INT): New mode iterator.
14191 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14193 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14194 flag_split_wide_types.
14196 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14197 (mn10300_trampoline_init): Rewrite without a template, an immediate
14198 load and a direct branch.
14199 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14201 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14203 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14204 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14205 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14206 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14208 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14211 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14214 2011-01-12 Jan Hubicka <jh@suse.cz>
14217 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14218 (PLUGIN_COND_CLOSE): New macro.
14219 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14221 2011-01-12 Richard Guenther <rguenther@suse.de>
14224 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14225 register variables in a MEM_REF.
14227 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14229 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14230 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14231 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14232 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14233 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14234 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14235 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14236 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14237 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14238 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14239 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14240 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14241 * config/gnu-user.h: New. Copied from linux.h.
14242 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14243 GNU_USER_TARGET_STARTFILE_SPEC.
14244 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14245 GNU_USER_TARGET_ENDFILE_SPEC.
14246 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14247 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14248 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14249 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14250 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14251 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14252 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14253 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14254 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14255 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14256 * config/arm/linux-eabi.h (CC1_SPEC): Use
14257 GNU_USER_TARGET_CC1_SPEC.
14258 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14259 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14260 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14261 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14262 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14263 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14264 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14265 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14267 2011-01-12 Richard Guenther <rguenther@suse.de>
14270 * doc/invoke.texi (ffast-math): Document it is turned on
14273 2011-01-12 Jan Hubicka <jh@suse.cz>
14275 PR tree-optimization/47233
14276 * opts.c (common_handle_option): Disable ipa-reference with profile
14279 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14281 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14284 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14286 * c-parser.c (c_lex_one_token): Updated and reindented some
14287 comments. No changes in code.
14289 2011-01-11 Ian Lance Taylor <iant@google.com>
14291 * godump.c (go_output_var): Don't output the variable if there is
14292 already a type with the same name.
14294 2011-01-11 Ian Lance Taylor <iant@google.com>
14296 * godump.c (go_format_type): Don't generate float80.
14298 2011-01-11 Richard Henderson <rth@redhat.com>
14300 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14301 declaration. Rewrite for both speed and size.
14302 (mn10300_address_cost_1): Remove.
14303 (mn10300_register_move_cost): New.
14304 (mn10300_memory_move_cost): New.
14305 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14306 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14307 extensions, shifts, BSWAP, CLZ.
14308 (mn10300_wide_const_load_uses_clr): Remove.
14309 (TARGET_REGISTER_MOVE_COST): New.
14310 (TARGET_MEMORY_MOVE_COST): New.
14311 * config/mn10300/mn10300-protos.h: Update.
14312 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14314 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14315 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14316 * config/mn10300/mn10300-protos.h: Update.
14317 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14318 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14319 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14320 (*test_int_bitfield, *test_byte_bitfield): Remove.
14321 (*bit_test, *subreg_bit_test): Remove.
14322 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14324 * config/mn10300/constraints.md ("c"): Rename from "A".
14325 ("A", "D"): New constraint letters.
14326 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14327 (fmssf4, fnmasf4, fnmssf4): Likewise.
14329 * config/mn10300/mn10300.md (isa): New attribute.
14330 (enabled): New attribute.
14332 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14333 (abssf2, negsf2): Define only for hardware fp.
14334 (sqrtsf2): Reformat.
14335 (addsf3, subsf3, mulsf3): Merge expander and insn.
14337 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14338 (DEBUGGER_AUTO_OFFSET): Remove.
14339 (DEBUGGER_ARG_OFFSET): Remove.
14341 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14342 Emit register stores with the same offsets as the hardware.
14343 (mn10300_store_multiple_operation): Don't check that the register
14344 save offsets are monotonic.
14345 * config/mn10300/mn10300-protos.h: Update.
14347 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14349 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14350 in terms of the value on the stack, not the MDR register.
14352 2011-01-11 Jan Hubicka <jh@suse.cz>
14356 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14357 (symbol_alias_set_destroy, symbol_alias_set_contains,
14358 propagate_aliases_backward): Declare.
14359 * lto-streamer-out.c (struct sets): New sturcture.
14360 (trivally_defined_alias): New function.
14361 (output_alias_pair_p): Rewrite.
14362 (output_unreferenced_globals): Fix output of alias pairs.
14363 (produce_symtab): Likewise.
14364 * ipa.c (function_and_variable_visibility): Set weak alias destination
14366 * varasm.c (symbol_alias_set_t): Remove.
14367 (symbol_alias_set_destroy): Export.
14368 (propagate_aliases_forward, propagate_aliases_backward): New functions
14370 (compute_visible_aliases): ... this one; remove.
14371 (trivially_visible_alias): New
14372 (trivially_defined_alias): New.
14373 (remove_unreachable_alias_pairs): Rewrite.
14374 (finish_aliases_1): Reorganize code checking if alias is defined.
14375 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14378 2011-01-11 Richard Guenther <rguenther@suse.de>
14380 PR tree-optimization/46076
14381 * tree-ssa.c (useless_type_conversion_p): Conversions from
14382 unprototyped to empty argument list function types are useless.
14384 2011-01-11 Richard Guenther <rguenther@suse.de>
14386 PR middle-end/45235
14387 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14388 volatile MEMs as MEM_READONLY_P.
14390 2011-01-11 Richard Guenther <rguenther@suse.de>
14392 PR tree-optimization/47239
14393 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14395 2011-01-11 Jeff Law <law@redhat.com>
14397 PR tree-optimization/47086
14398 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14399 IVs from statements that might throw.
14401 2011-01-10 Jan Hubicka <jh@suse.cz>
14404 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14406 2011-01-10 Jan Hubicka <jh@suse.cz>
14409 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14410 when correcting profile.
14412 2011-01-10 Jan Hubicka <jh@suse.cz>
14415 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14416 DECL_FINI_PRIORITY.
14417 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14418 Restore DECL_FINI_PRIORITY.
14420 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14422 * doc/gimple.texi: Fix quoting of multi-word return values in
14423 @deftypefn statements. Ensure presence of return value. Wrap
14424 overlong @deftypefn lines.
14425 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14426 descriptions of removed functions.
14427 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14428 of multi-word return value in @deftypefn statement.
14430 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14432 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14433 (Conditional Expressions, Logical Operators)
14434 (Statement and operand traversals): Do not indent smallexample
14435 code. Fix duplicate function argument in example.
14437 2011-01-10 Jeff Law <law@redhat.com>
14439 PR tree-optimization/47141
14440 * ipa-split.c (split_function): Handle case where we are
14441 returning a value and the return block has a virtual operand phi.
14443 2011-01-10 Jan Hubicka <jh@suse.cz>
14445 PR tree-optimization/47234
14446 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14447 (pass_feedback_split_functions): Declare.
14448 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14450 * ipa-split.c (gate_split_functions): Update comments; disable
14451 split-functions for profile_arc_flag and branch_probabilities.
14452 (gate_feedback_split_functions): New function.
14453 (execute_feedback_split_functions): New function.
14454 (pass_feedback_split_functions): New global var.
14456 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14459 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14460 calling gimple_call_set_cannot_inline.
14462 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14464 * config/darwin-sections.def: Remove unused section.
14466 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14469 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14471 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14474 * c-parser.c (c_parser_declaration_or_fndef): Improved
14477 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14479 * config/i386/winnt.c (i386_pe_start_function): Make sure
14480 to switch back to function's section.
14482 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14486 * plugin.c: Move include of dlfcn.h from here...
14487 * system.h: ... to here.
14489 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14491 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14493 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14494 two extra empty pages in PDF output.
14496 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14499 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14500 for error recovery purposes behave as if it was not specified so
14501 that the default type is usd.
14503 2011-01-07 Jan Hubicka <jh@suse.cz>
14505 PR tree-optmization/46469
14506 * ipa.c (function_and_variable_visibility): Clear needed flags on
14507 nodes with external decls; handle weakrefs merging correctly.
14509 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14511 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14514 2011-01-07 Jan Hubicka <jh@suse.cz>
14516 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14517 and no longer claim that gold is required for linker plugin.
14518 * configure: Regenerate.
14519 * gcc.c (PLUGIN_COND): New macro.
14520 (LINK_COMMAND_SPEC): Use it.
14521 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14522 * config.in (HAVE_LTO_PLUGIN): New.
14523 * configure.ac (--with-lto-plugin): New parameter; autodetect
14526 2011-01-07 Jan Hubicka <jh@suse.cz>
14528 PR tree-optimization/46367
14529 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14530 when we can update original.
14531 (cgraph_mark_inline_edge): Sanity check.
14532 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14534 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14536 * config/spu/spu.h (ASM_COMMENT_START): Define.
14538 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14541 * gcc.c (%>S): New.
14542 (SWITCH_KEEP_FOR_GCC): Likewise.
14543 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14544 (do_spec_1): Handle "%>".
14546 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14548 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14551 * config/i386/i386.c (ix86_delegitimize_address): If
14552 simplify_gen_subreg fails, return orig_x.
14555 * value-prof.c (gimple_stringop_fixed_value): Handle
14556 lhs of the call properly.
14558 2011-01-07 Jan Hubicka <jh@suse.cz>
14561 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14563 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14565 * target.def (function_switched_text_sections): New hook.
14566 * doc/tm.texi: Regenerated.
14567 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14568 * final.c (default_function_switched_text_sections): New.
14569 (final_scan_insn): Call function_switched_text_sections when a
14570 mid-function section change occurs.
14571 * output.h (default_function_switched_text_sections): Declare.
14572 * config/darwin-protos.h (darwin_function_switched_text_sections):
14574 * config/darwin.c (darwin_function_switched_text_sections): New.
14575 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14577 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14579 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14580 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14581 the secondary code fragment when outputting for DWARF == 2.
14583 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14585 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14586 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14588 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14589 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14591 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14594 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14595 when it is not empty.
14597 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14600 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14601 (case ${target}): Add btver1.
14602 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14603 -march=native recognize btver1 processors.
14604 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14605 btver1 def_and_undef
14606 * config/i386/i386.c (struct processor_costs btver1_cost): New
14608 (m_BTVER1): New definition.
14609 (m_AMD_MULTIPLE): Includes m_BTVER1.
14610 (initial_ix86_tune_features): Add btver1 tune.
14611 (processor_target_table): Add btver1 entry.
14612 (static const char *const cpu_names): Add btver1 entry.
14613 (software_prefetching_beneficial_p): Add btver1.
14614 (ix86_option_override_internal): Add btver1 instruction sets.
14615 (ix86_issue_rate): Add btver1.
14616 (ix86_adjust_cost): Add btver1.
14617 * config/i386/i386.h (TARGET_BTVER1): New definition.
14618 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14619 (enum processor_type): Add PROCESSOR_BTVER1.
14620 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14622 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14625 * config/i386/i386.c (legitimize_tls_address)
14626 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14627 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14628 (tls_initial_exec_64_sun): New pattern.
14630 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14632 * doc/invoke.texi (Overall Options): Improve wording and markup
14633 of the description of -wrapper.
14635 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14637 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14638 rdynamic, threads): New Driver options.
14640 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14643 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14644 if coming from .tdata.
14645 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14647 2011-01-06 Jan Hubicka <jh@suse.cz>
14650 * collect2.c (main): Do not enable LTOmode when plugin is active.
14652 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14655 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14656 --version output if supported.
14657 * configure: Regenerate.
14659 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14661 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14664 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14667 * c-convert.c (convert): When converting a complex expression
14668 other than COMPLEX_EXPR to a different complex type, ensure
14669 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14670 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14671 when converting COMPLEX_TYPE.
14673 2011-01-06 Ira Rosen <irar@il.ibm.com>
14675 PR tree-optimization/47139
14676 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14677 only the last reduction value is used outside the loop. Update
14680 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14682 * config/rtems.opt: New.
14683 * config.gcc (*-*-rtems*): Use rtems.opt.
14685 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14687 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14688 processors do not support 3DNow instructions.
14690 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14692 * config/spu/spu.c (spu_option_override): Set parameter
14693 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14695 2011-01-05 Jan Hubicka <jh@suse.cz>
14697 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14698 at the command line.
14700 2011-01-05 Martin Jambor <mjambor@suse.cz>
14703 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14704 deltas on streamed outgoing edges.
14705 (output_node_opt_summary): Output info for outgoing edges only when
14706 the node is in new parameter set.
14707 (output_cgraph_opt_summary): New parameter set, passed to the two
14708 aforementioned functions. Update its forward declaration and its
14711 2011-01-05 Tom Tromey <tromey@redhat.com>
14713 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14714 operator to c_finish_omp_atomic.
14715 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14716 (build_unary_op): Update.
14717 (build_modify_expr): Update.
14718 (build_asm_expr): Update.
14720 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14722 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14723 newly inserted insns.
14724 (pad_bb): Likewise.
14725 (spu_emit_branch_hint): Likewise.
14726 (insert_hbrp_for_ilb_runout): Likewise.
14727 (spu_machine_dependent_reorg): Call df_finish_pass after
14728 schedule_insns returns.
14730 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14732 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14734 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14736 PR tree-optimization/47005
14737 * tree-sra.c (struct access): Add 'non_addressable' bit.
14738 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14739 (decide_one_param_reduction): Return 0 if the parameter is passed by
14740 reference and one of the accesses in the group is non_addressable.
14742 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14744 PR tree-optimization/47056
14745 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14746 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14747 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14749 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14751 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14752 initializer. Skip view conversions from aggregate types.
14754 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14757 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14759 2011-01-04 Philipp Thomas <pth@suse.de>
14761 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14764 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14766 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14767 on empty epilogue sequences.
14769 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14771 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14772 non-static): New Driver options.
14774 2011-01-04 Jie Zhang <jie@codesourcery.com>
14777 * gcc.c (default_compilers[]): Set combinable field to 0
14778 for all assembly languages.
14780 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14782 * config/mips/loongson3a.md: New file.
14783 * config/mips/mips.md: Include loongson3a.md.
14784 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14787 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14789 PR middle-end/47017
14790 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14791 instead of convert_memory_address_addr_space on the base expression.
14793 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14795 * config/spu/spu.c (spu_option_override): Update error text
14796 for bad -march= / -mtune= values.
14798 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14800 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14801 if branch-hint optimization will be performed.
14803 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14805 PR tree-optimization/47148
14806 * ipa-split.c (split_function): Convert arguments to
14807 DECL_ARG_TYPE if possible.
14809 PR tree-optimization/47155
14810 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14811 when computing uns.
14813 PR rtl-optimization/47157
14814 * combine.c (try_combine): If undobuf.other_insn becomes
14815 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14816 and set *new_direct_jump_p too.
14818 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14820 PR tree-optimization/47021
14821 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14823 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14825 * gcc.c (process_command): Update copyright notice dates.
14826 * gcov.c (print_version): Likewise.
14827 * gcov-dump.c (print_version): Likewise.
14828 * mips-tfile.c (main): Likewise.
14829 * mips-tdump.c (main): Likewise.
14831 2011-01-03 Martin Jambor <mjambor@suse.cz>
14833 PR tree-optimization/46801
14834 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14835 aggregate fields start at byte boundary instead of the bit-field flag.
14837 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14840 * gcc.c (main): Revert revision 168407.
14842 2011-01-03 Martin Jambor <mjambor@suse.cz>
14844 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14846 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14848 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14849 vector optab to expand vector/scalar shift, update gimple to vector.
14851 2011-01-03 Martin Jambor <mjambor@suse.cz>
14853 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14856 2011-01-03 Martin Jambor <mjambor@suse.cz>
14858 PR tree-optimization/46984
14859 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14861 (cgraph_create_indirect_edge): Fixed line length.
14862 (cgraph_indirect_call_info): Declare.
14863 (cgraph_make_edge_direct) Update declaration.
14864 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14865 (cgraph_create_indirect_edge): Use it.
14866 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14868 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14869 the new thunk_delta representation.
14870 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14872 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14873 (ipa_read_indirect_edge_info): Likewise.
14874 * lto-cgraph.c (output_edge_opt_summary): New function.
14875 (output_node_opt_summary): Call it on all outgoing edges.
14876 (input_edge_opt_summary): New function.
14877 (input_node_opt_summary): Call it on all outgoing edges.
14879 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14882 * gcc.c (main): Don't check have_o when settting combine_inputs.
14884 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14886 * regrename.c: Add general comment describing the pass.
14887 (struct du_head): Remove 'length' field.
14888 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14889 (regrename_optimize): Do not sort chains. Rework comments, add others.
14890 Force renaming to the preferred class (if any) in the first pass and do
14891 not consider registers that belong to it in the second pass.
14892 (create_new_chain): Do not set 'length' field.
14893 (scan_rtx_reg): Likewise.
14895 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14897 PR tree-optimization/47140
14898 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14899 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14900 to bit_value_binop.
14902 PR rtl-optimization/47028
14903 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14904 parm_birth_insn instead of at the beginning of first bb.
14906 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14908 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14909 Remove the word "see" before "@pxref".
14910 * doc/rtl.texi: Remove the word "see" before "@pxref".
14912 2011-01-01 Jan Hubicka <jh@suse.cz>
14914 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14917 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14920 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14923 Copyright (C) 2011 Free Software Foundation, Inc.
14925 Copying and distribution of this file, with or without modification,
14926 are permitted in any medium without royalty provided the copyright
14927 notice and this notice are preserved.