1 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4 (*tls_global_dynamic_64): Ditto.
5 (*tls_local_dynamic_base_32_gnu): Ditto.
6 (*tls_local_dynamic_base_64): Ditto.
7 (tls_initial_exec_64_sun): Ditto.
9 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
12 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
14 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
16 * config/bfin/bfin.c (bfin_cpus): Add bf592.
17 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
18 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
19 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
20 * config/bfin/elf.h (LIB_SPEC): Add bf592.
22 2011-05-18 Joseph Myers <joseph@codesourcery.com>
24 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
25 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
26 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
27 target_thread_pointer, arm_structure_size_boundary, struct
28 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
29 struct abi_name, arm_all_abis): Remove.
30 (arm_option_override) Don't process most enumerated option values here.
31 Don't process target_fpe_name here. Work with integer not string for
32 structure size boundary; use separate diagnostics for each case.
33 * config/arm/arm.h (enum float_abi_type, enum
34 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
36 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
37 arm_structure_size_boundary): Remove.
38 * config/arm/arm.opt (mabi=): Use Enum and Init.
39 (arm_abi_type): New Enum and EnumValue entries.
40 (mfloat-abi=): Use Enum and Init.
41 (float_abi_type): New Enum and EnumValue entries.
42 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
43 (mfp16-format=): Use Enum and Init.
44 (arm_fp16_format_type): New Enum and EnumValue entries.
45 (mstructure-size-boundary=): Use UInteger and Init.
46 (mtp=): Use Enum and Init.
47 (arm_tp_type): New Enum and EnumValue entries.
49 2011-05-18 Richard Guenther <rguenther@suse.de>
51 PR tree-optimization/49018
52 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
53 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
54 gimple_has_side_effects.
56 2011-05-18 Richard Guenther <rguenther@suse.de>
58 * gimple.c (gimple_register_type_1): New function, split out from ...
59 (gimple_register_type): ... here. Avoid infinite recursion.
61 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
63 PR tree-optimization/41881
64 * tree-vectorizer.h (struct _loop_vec_info): Add new field
65 reduction_chains along with a macro for its access.
66 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
67 (destroy_loop_vec_info): Free reduction chains.
68 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
69 (vect_is_slp_reduction): New function.
70 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
71 (vect_create_epilog_for_reduction): Support SLP reduction chains.
72 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
73 definition types for reduction chains.
74 (vect_supported_load_permutation_p): Don't allow permutations for
76 (vect_analyze_slp_instance): Support reduction chains.
77 (vect_analyze_slp): Try to build SLP instance from reduction chains.
78 (vect_get_constant_vectors): Handle reduction chains.
79 (vect_schedule_slp_instance): Mark the first statement of the
80 reduction chain as reduction.
82 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
84 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
85 names for group elements access.
86 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
87 reduction chains as well. Remove data reference and interleaving
88 related words from the fields names.
89 * tree-vect-loop.c (vect_transform_loop): Use new names for group
91 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
92 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
93 vect_update_interleaving_chain, vect_same_range_drs,
94 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
95 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
96 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
97 vect_analyze_group_access, vect_analyze_data_ref_access,
98 vect_create_data_ref_ptr, vect_transform_strided_load,
99 vect_record_strided_load_vectors): Likewise.
100 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
101 vect_model_load_cost, vectorizable_store, vectorizable_load,
102 vect_remove_stores, new_stmt_vec_info): Likewise.
103 * tree-vect-slp.c (vect_build_slp_tree,
104 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
106 2011-05-18 Richard Guenther <rguenther@suse.de>
109 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
110 operand verification.
111 (verify_gimple_assign_binary): Likewise.
112 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
113 to non-1-precision BOOLEAN_TYPEs.
115 2011-05-18 Tom de Vries <tom@codesourcery.com>
118 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
120 2011-05-18 Jakub Jelinek <jakub@redhat.com>
122 PR tree-optimization/49000
123 * tree-ssa.c (execute_update_addresses_taken): Call
124 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
125 be rewritten and decl has been marked for renaming, reset
128 2011-05-17 Joseph Myers <joseph@codesourcery.com>
130 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
131 enum_opts_set when testing if attributes have set -mfpmath=.
133 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
135 * config/mips/mips.c (mips_handle_option): Remove unused variable.
137 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
139 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
141 * tree-inline.c (maybe_inline_call_in_expr): Initialize
142 id.transform_lang_insert_block with NULL.
144 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
146 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
147 (output_fp_compare): Change args 3 and 4 to bool.
148 (ix86_expand_call): Change arg 6 to bool.
149 (ix86_attr_length_immediate_default): Change arg 2 to bool.
150 (ix86_attr_length_vex_default): Change arg 3 to bool.
151 * config/i386/i386.md: Update all uses.
152 * config/i386/i386.c: Ditto.
153 (ix86_flags_dependent): Change return type to bool.
155 2011-05-17 Richard Guenther <rguenther@suse.de>
157 * gimple.c (type_hash_pair_compare): Fix comparison.
159 2011-05-17 Richard Guenther <rguenther@suse.de>
161 * gimple.c (iterative_hash_gimple_type): Simplify singleton
162 case some more, fix final hash value of the non-singleton case.
164 2011-05-17 Richard Guenther <rguenther@suse.de>
168 2011-05-16 Richard Guenther <rguenther@suse.de>
170 * gimple.c (gimple_types_compatible_p_1): Use names of the
171 type itself, not its main variant.
172 (iterative_hash_gimple_type): Likewise.
174 2011-05-17 Richard Guenther <rguenther@suse.de>
176 * gimple.c (gimple_register_canonical_type): Use the main-variant
177 leader for computing the canonical type.
179 2011-05-17 Nick Clifton <nickc@redhat.com>
181 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
184 * config/rx/rx.md: Add peephole to remove redundant extensions
186 (bitset_in_memory): Use rx_restricted_mem_operand.
187 (bitinvert_in_memory): Likewise.
188 (bitclr_in_memory): Likewise.
190 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
191 Nick Clifton <nickc@redhat.com>
193 * config/rx/rx.md: Add peepholes to match a register move followed
194 by a comparison of the moved register. Replace these with an
195 addition of zero that does both actions in one instruction.
197 2011-05-17 Jakub Jelinek <jakub@redhat.com>
200 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
201 predicate to allow CONST_INT.
202 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
204 2011-05-16 Joseph Myers <joseph@codesourcery.com>
206 * opts-common.c (opt_enum_arg_to_value): New.
207 * opts.h (opt_enum_arg_to_value): Declare.
208 * config/i386/i386.opt (fpmath): Remove.
209 (mfpmath=): Use Enum, Init and Save.
210 (fpmath_unit): New Enum and EnumValue entries.
211 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
212 name for function fpmath state.
213 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
214 * config/i386/i386.c: Include diagnostic.h.
215 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
216 (ix86_target_string): Take enum fpmath_unit value instead of string.
217 (ix86_debug_options): Update call to ix86_target_string.
218 (ix86_option_override_internal): Don't process fpmath strings here.
219 (x86_function_specific_save, ix86_function_specific_restore):
220 Don't handle fpmath state specially.
221 (ix86_function_specific_print): Pass fpmath state to
222 ix86_target_string instead of printing in this function.
223 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
224 Handle enum attributes.
225 (IX86_ATTR_ENUM, ix86_opt_enum): New.
226 (ix86_valid_target_attribute_tree): Update option_strings
227 handling. Handle fpmath as enum option.
228 (ix86_can_inline_p): Update field names for function fpmath state.
229 (ix86_expand_builtin): Update call to ix86_target_string.
230 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
231 (ix86_fpmath): Remove.
232 * config/i386/t-i386 (i386.o): Update dependencies.
234 2011-05-16 Joseph Myers <joseph@codesourcery.com>
236 PR preprocessor/48677
237 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
238 from decoded_options[0], not from itself.
240 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
242 * config/i386/constraints.md (z): New constraint.
243 * config/i386/i386.c (c): New mode attribute.
244 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
245 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
246 constraint for operand 0.
247 (*call_vzeroupper): Ditto.
248 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
249 (*call_rex64_ms_sysv_vzeroupper): Ditto.
250 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
251 Use "lzm" constraint for operand 0.
252 (*call_pop_vzeroupper): Ditto.
253 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
254 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
255 constraint for operand 0.
256 (*sibcall_vzeroupper): Ditto.
257 (*sibcall_rex64_ms_sysv): Ditto.
258 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
259 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
260 *sibcall_pop_1. Use "Uz" constraint for operand 0.
261 (*sibcall_pop_vzeroupper): Ditto.
262 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
263 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
264 mode iterator. Use "<c>zm" constraint for operand 1.
265 (*call_value_vzeroupper): Ditto.
266 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
268 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
269 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
270 *call_value_pop_1. Use "lzm" constraint for operand 1.
271 (*call_value_pop_vzeroupper): Ditto.
272 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
273 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
274 mode iterator. Use "Uz" constraint for operand 1.
275 (*sibcall_value_vzeroupper): Ditto.
276 (*sibcall_value_rex64_ms_sysv): Ditto.
277 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
278 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
279 constraint for operand 1.
280 (*sibcall_value_pop_vzeroupper): Ditto.
281 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
282 and "z" constraint for operand 2.
283 (*tls_global_dynamic_32_gnu): Ditto.
284 (*tls_local_dynamic_base_32_gnu): Ditto.
285 (*tls_local_dynamic_base_64): Ditto.
286 (*tls_local_dynamic_32_once): Ditto.
287 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
289 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
291 2011-05-16 Richard Guenther <rguenther@suse.de>
293 * gimple.c (gimple_types_compatible_p_1): Use names of the
294 type itself, not its main variant.
295 (iterative_hash_gimple_type): Likewise.
297 2011-05-16 Richard Guenther <rguenther@suse.de>
299 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
300 always visit pointer target and function result and argument types.
302 2011-05-16 Jason Merrill <jason@redhat.com>
305 * tree-inline.c (copy_statement_list): Put back recursion.
307 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
311 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
312 * config/avr/avr.md ("*ior<mode>qi.byte0",
313 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
315 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
318 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
319 register is needed for a function argument.
321 2011-05-16 Richard Guenther <rguenther@suse.de>
323 * gimple.c (struct type_hash_pair): New type.
324 (type_hash_pair_compare): New function.
325 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
327 2011-05-16 Revital Eres <revital.eres@linaro.org>
329 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
331 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
333 * config/i386/i386.md (floating point move splitters): Fix
334 usage of standard_80387_constant_p.
335 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
337 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
339 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
341 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
343 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
344 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
345 (tree_ssa_lim_finalize): Likewise.
347 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
349 * config/i386/constraint.md (Yd, Yx): New register constraints.
350 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
351 Yd conditional register constraint.
352 (*movtf_internal): Use standard_sse_constant_opcode.
353 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
354 Yx conditional register constraint.
355 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
356 Yd conditional register constraint. Use standard_sse_constant_p to
357 check for valid SSE constants and call standard_sse_constant_opcode to
359 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
360 constants and call standard_sse_constant_opcode to output SSE insn.
361 * config/i386/i386.c (ix86_option_ovverride_internal): Set
362 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
363 optimize_size is set.
364 (standard_sse_constant_opcode): Output conditional AVX insn templates.
366 2011-05-14 Tobias Burnus <burnus@net-b.de>
368 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
370 2011-05-13 Martin Jambor <mjambor@suse.cz>
372 * ipa-prop.c (ipa_cst_from_jfunc): New function.
373 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
374 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
375 (evaluate_conditions_for_ipcp_clone): Removed.
376 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
377 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
378 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
380 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
382 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
383 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
384 lieu of MAY_HAVE_DEBUG_STMTS.
385 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
386 debug statements if !MAY_HAVE_DEBUG_STMTS.
388 2011-05-13 Martin Thuresson <martint@google.com>
390 PR gcov-profile/47793
391 * libgcov.c (gcov_exit): Support relative profile paths.
392 * doc/invoke.texi (-fprofile-dir): Update for above change.
394 2011-05-13 Richard Guenther <rguenther@suse.de>
396 * gimple.c (gimple_canonical_types_compatible_p): Do not use
397 type-pair caching, do not compare hashes.
399 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
402 * tree-cfg.c (edge_to_cases_cleanup): Return true.
403 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
405 2011-05-13 Kai Tietz <ktietz@redhat.com>
407 * gimplify.c (gimplify_expr): Make sure operand is boolified.
408 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
409 compatible type for TRUTH_NOT_EXPR.
411 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
413 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
414 (ix86_hard_regno_mode_ok): Change return value to bool. Use
415 can_create_pseudo_p ().
417 2011-05-13 Richard Guenther <rguenther@suse.de>
420 * gimple.c (iterative_hash_gimple_type): Revert change in
421 pointer target and function result and argument hashing.
423 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
425 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
426 (*movxf_internal_nointeger): Ditto.
427 (*movdf_internal_rex64): Ditto.
428 (*movdf_internal): Ditto.
429 (*movdf_internal_nointeger): Ditto.
430 (*movsf_internal): Ditto.
431 (sincos splitters): Use can_create_pseudo ().
433 2011-05-13 Joseph Myers <joseph@codesourcery.com>
435 * config/i386/i386-opts.h: New.
436 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
437 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
438 ix86_section_threshold): Remove.
439 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
440 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
442 (ix86_option_override_internal): Don't decode strings for options
443 other than -march=, -mtune= and -mfpmath=. Don't allow for
444 __attribute__ uses in remaining diagnostics for options with
445 string arguments. Don't check for integer arguments being negative.
446 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
447 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
448 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
449 ix86_branch_cost, ix86_section_threshold): Remove.
450 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
452 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
454 (masm=): Use Enum and Init.
455 (asm_dialect): New Enum and EnumValue entries.
456 (mbranch-cost=): Use UInteger.
457 (mlarge-data-threshold=): Use UInteger and Init.
458 (mcmodel=): Use Enum and Init.
459 (cmodel): New Enum and EnumValue entries.
460 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
461 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
462 mregparm=): Use UInteger.
463 (mstringop-strategy=): Use Enum and Init.
464 (stringop_alg): New Enum and EnumValue entries.
465 (mtls-dialect=): Use Enum and Init.
466 (tls_dialect): New Enum and EnumValue entries.
467 (mabi=): Use Enum and Init.
468 (calling_abi): New Enum and EnumValue entries.
469 (mveclibabi=): Use Enum and Init.
470 (ix86_veclibabi): New Enum and EnumValue entries.
472 2011-05-13 Nick Clifton <nickc@redhat.com>
474 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
475 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
477 2011-05-13 Kai Tietz <ktietz@redhat.com>
480 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
481 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
482 (gimple_boolify): Check for cast for boolean_type_node instead for
485 2011-05-13 Richard Guenther <rguenther@suse.de>
487 PR tree-optimization/48172
488 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
489 multiplying by number of iterations for equal step.
490 (vect_create_cond_for_alias_checks): Likewise.
492 2011-05-13 Andreas Schwab <schwab@redhat.com>
494 * configure.ac: Use AS_HELP_STRING throughout.
495 * configure: Regenerate.
497 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
499 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
500 (ix86_emit_restore_regs_using_mov): Likewise.
501 (ix86_emit_restore_sse_regs_using_mov): Likewise.
503 2011-05-12 Anatoly Sokolov <aesok@post.ru>
505 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
506 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
507 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
508 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
509 RTX_OK_FOR_OLO10_P): ...here.
510 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
513 2011-05-12 Kai Tietz <ktietz@redhat.com>
515 * gimplify.c (gimple_boolify): Re-boolify expression
516 arguments even if expression type is of kind BOOLEAN_TYPE.
517 (gimplify_boolean_expr): Removed.
518 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
519 and XOR. Additional take care that we keep expression's type.
520 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
521 of TRUTH_AND|OR|XOR_EXPR.
523 2011-05-12 Jakub Jelinek <jakub@redhat.com>
525 PR tree-optimization/48975
526 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
527 on all bbs here and free and clear ifc_bbs at the end.
529 2011-05-12 Richard Guenther <rguenther@suse.de>
531 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
532 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
533 until after simple checks.
534 (gimple_types_compatible_p): Likewise.
535 (iterative_hash_gimple_type): Always hash pointer targets
536 and function return and argument types.
537 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
538 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
539 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
540 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
541 completely in the simple compare section.
542 (gimple_register_canonical_type): Query the cache again after
545 2011-05-12 Richard Guenther <rguenther@suse.de>
547 PR tree-optimization/48172
548 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
549 the number of iterations from the segment size calculation.
550 (vect_create_cond_for_alias_checks): Adjust.
552 2011-05-12 Jakub Jelinek <jakub@redhat.com>
555 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
556 if validate_subreg fails.
558 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
560 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
561 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
564 2011-05-12 DJ Delorie <dj@redhat.com>
566 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
567 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
568 created builtin into rx_builtins array.
569 (rx_builtin_decl): New function.
570 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
572 2011-05-12 DJ Delorie <dj@redhat.com>
573 Nick Clifton <nickc@redhat.com>
575 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
576 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
577 (rx_is_legitimate_address): Add pre-decrement and post-increment
578 addressing in HImode and QImode. Fix test for out of range
580 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
581 (rx_align_for_label): Test label before extracting its usage count.
582 (rx_adjust_insn_lengths): Fix selection of insn codes.
583 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
585 2011-05-11 Jason Merrill <jason@redhat.com>
587 * tree.c (type_hash_canon): Use struct tree_type_non_common.
589 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
591 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
592 reindent the subsequent block.
594 2011-05-11 Satoru Takabayashi <satorux@google.com>
595 Paul Pluzhnikov <ppluzhnikov@google.com>
597 * doc/install.texi (Configuration): Document --with-linker-hash-style.
598 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
599 * config.in: Add LINKER_HASH_STYLE.
600 * configure.ac: Add --with-linker-hash-style.
601 * configure: Regenerate.
603 2011-05-11 Richard Guenther <rguenther@suse.de>
606 * gimple.c (iterative_hash_canonical_type): Fix typo.
608 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
610 * config/i386/i386.c (legitimize_tls_address)
611 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
612 expanders directly for TARGET_GNU2_TLS. Determine pic and
613 __tls_get_addr symbol reference here. Update call to
614 gen_tls_global_dynamic_{32,64} for added arguments.
615 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
616 expanders directly for TARGET_GNU2_TLS. Determine
617 __tls_get_addr symbol reference here. Update call to
618 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
619 unique UNSPEC REG_EQUIV to libcall block.
620 (ix86_tls_get_addr): Declare static.
621 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
622 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
623 Do not determine pic and __tls_get_addr symbol reference here. Do not
624 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
625 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
626 (tls_global_dynamic_64): Add operand 2. Do not determine
627 __tls_get_addr symbol reference here. Do not call
628 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
629 (tls_local_dynamic_base64): Ditto for operand 1.
631 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
633 * function.c (expand_function_start): Initialize stack_check_probe_note
634 only if the generic stack checking mechanism is used.
636 2011-05-11 Richard Guenther <rguenther@suse.de>
638 PR tree-optimization/15256
639 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
640 (A & B) | C, combine (A op CST1) op CST2.
641 (tree_ssa_forward_propagate_single_use_vars): Only bother to
642 visit assigns that have uses.
644 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
646 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
647 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
648 (unpack_ts_type_common_value_fields): ...this. Update comment.
649 (unpack_value_fields): Adjust for renaming.
650 (lto_input_ts_type_tree_pointers): Split into...
651 (lto_input_ts_type_common_tree_pointer): ...this and...
652 (lto_input_ts_type_non_common_tree_pointers): ...this.
653 (lto_input_tree_pointers): Adjust for above split.
654 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
655 (pack_ts_type_common_value_fields): ...this. Update comment.
656 (lto_output_ts_type_tree_pointers): Split into...
657 (lto_output_ts_type_common_tree_pointers): ...this and...
658 (lto_output_ts_type_non_common_tree_pointers): ...this.
659 (lto_output_tree_pointers): Adjust for above split.
660 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
661 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
662 * stor-layout.c (vector_type_mode): Adjust location of mode field.
663 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
665 (struct tree_type): Split into...
666 (struct tree_type_common: ...this and...
667 (struct tree_type_with_lang_specific): ...this and...
668 (struct tree_type_non_common): ...this. Adjust accessor macros
670 (TYPE_VALUES_RAW): Define.
671 (union tree_node): Update for above changes.
672 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
674 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
675 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
676 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
677 * treestructu.def (TS_TYPE): Remove.
678 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
681 2011-05-11 Jakub Jelinek <jakub@redhat.com>
684 * tree-ssa.c (reset_debug_uses): New function.
685 * tree-flow.h (reset_debug_uses): New prototype.
686 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
687 * tree-loop-distribution.c (generate_loops_for_partition): Call
688 reset_debug_uses on the stmts that will be removed. Keep around
689 all debug stmts, don't count them as bits in partition bitmap.
690 (generate_builtin): Don't count debug stmts or labels as bits in
693 2011-05-11 Richard Guenther <rguenther@suse.de>
695 * gimple.c (gimple_type_hash_1): Merge with ...
696 (gimple_type_hash): ... this.
697 (gtc_visit): Remove mode parameter and simplify accordingly.
698 (gimple_types_compatible_p_1): Likewise.
699 (gimple_types_compatible_p): Likewise.
700 (iterative_hash_gimple_type): Likewise.
702 (gimple_type_eq): Adjust.
704 2011-05-11 Revital Eres <revital.eres@linaro.org>
706 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
707 enters the branch create an anti edge in the opposite direction
708 to prevent the creation of reg-moves.
709 * modulo-sched.c: Adjust comment to reflect the fact we are
710 scheduling closing branch.
711 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
712 (stage_count): New field in struct partial_schedule.
713 (calculate_stage_count): New function.
714 (normalize_sched_times): Rename to reset_sched_times and handle
715 incrementing the sched time of the nodes by a constant value
717 (duplicate_insns_of_cycles): Skip closing branch.
718 (sms_schedule_by_order): Schedule closing branch.
719 (ps_insn_find_column): Handle closing branch.
720 (sms_schedule): Call reset_sched_times and adjust the code to
721 support scheduling of the closing branch.
722 (ps_insert_empty_row): Update calls to normalize_sched_times
723 and rotate_partial_schedule functions.
725 2011-05-11 Richard Guenther <rguenther@suse.de>
728 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
730 2011-05-11 Joseph Myers <joseph@codesourcery.com>
732 * opts.c (finish_options): Move warning settings from process_options.
733 * toplev.c (process_options): Move warning settings to finish_options.
735 2011-05-11 Richard Guenther <rguenther@suse.de>
737 PR tree-optimization/18041
738 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
739 (simplify_bitwise_binary): ... this. Handle operand conversions
740 by applying them to the result instead.
741 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
743 2011-05-11 Richard Guenther <rguenther@suse.de>
745 * gimple.c (gimple_canonical_types_compatible_p): Split out
746 from gimple_types_compatible_p and friends. Do not recurse
748 (gimple_canonical_type_eq): Use it.
749 (iterative_hash_canonical_type): Split out from
750 iterative_hash_gimple_type and friends. Do not recurse
752 (gimple_canonical_type_hash): Use it, allocate the hash here.
754 2011-05-11 Revital Eres <revital.eres@linaro.org>
756 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
759 2011-05-11 Revital Eres <revital.eres@linaro.org>
761 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
762 instead of PREV_INSN.
764 2011-05-11 Revital Eres <revital.eres@linaro.org>
766 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
767 * loop-doloop.c (doloop_condition_get): Likewise.
768 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
770 * config/arm/arm.md (*addsi3_compare0): Remove "*".
772 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
774 * tree.def (CASE_LABEL_EXPR): Add an operand.
775 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
777 2011-05-10 Joseph Myers <joseph@codesourcery.com>
779 * c-decl.c (c_override_global_bindings_to_false): Remove.
780 (global_bindings_p): Don't check
781 c_override_global_bindings_to_false.
782 * c-tree.h (c_override_global_bindings_to_false): Remove.
783 * c-typeck.c (composite_type): Don't set
784 c_override_global_bindings_to_false.
786 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
788 PR target/48857, 48495
789 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
791 (VSX_MOVE_MODE): Ditto.
792 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
793 VSX vector types. Add V2DImode.
794 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
795 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
796 (MODES_TIEABLE_P): Ditto.
798 * config/rs6000/rs6000.c (rs6000_emit_move): Use
799 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
801 (init_cumulative_args): Ditto.
802 (rs6000_function_arg_boundary): Ditto.
803 (rs6000_function_arg_advance_1): Ditto.
804 (rs6000_function_arg): Ditto.
805 (rs6000_function_ok_for_sibcall): Ditto.
806 (emit_frame_save): Ditto.
807 (rs6000_function_value): Ditto.
808 (rs6000_libcall_value): Ditto.
810 2011-05-10 Joseph Myers <joseph@codesourcery.com>
812 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
813 i386/darwin-lib.h to $libgcc_tm_file.
814 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
816 2011-05-10 Joseph Myers <joseph@codesourcery.com>
818 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
820 2011-05-10 Joseph Myers <joseph@codesourcery.com>
822 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
823 * config/rs6000/rs6000-tables.opt: New file (generated).
824 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
825 rs6000/rs6000-tables.opt to extra_options.
826 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
827 * config/rs6000/rs6000.c (rs6000_select): Remove.
828 (processor_target_table): Move contents to rs6000-cpus.def.
829 (darwin_rs6000_override_options): Check
830 global_options_set.x_rs6000_cpu_index instead of
831 rs6000_select[1].string.
832 (rs6000_option_override_internal): Likewise.
833 (rs6000_handle_option): Don't assert that global structures are in
834 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
835 (rs6000_default_cpu): New variable.
836 (rs6000_file_start): Set it instead of local default_cpu. Check
837 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
838 global_options_set.x_rs6000_tune_index instead of rs6000_select.
839 (rs6000_darwin_file_start): Check rs6000_default_cpu and
840 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
841 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
842 rs6000_select): Remove.
843 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
845 (mcpu=, mtune=): Use Var, Init, Enum and Save.
846 * config/rs6000/t-rs6000
847 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
848 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
849 global_options_set.x_rs6000_cpu_index instead of
850 rs6000_select[1].string.
851 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
852 global_options_set.x_rs6000_cpu_index instead of
853 rs6000_select[1].string.
855 2011-05-10 Joseph Myers <joseph@codesourcery.com>
857 * config.gcc (libgcc_tm_file): Define instead of including files
858 from ../../libgcc/config/ in tm_file.
859 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
860 * configure: Regenerate.
861 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
862 libgcc_tm.h, cs-libgcc_tm.h): New.
863 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
864 (clean): Remove libgcc_tm.h.
865 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
866 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
867 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
869 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
872 * config/avr/avr.c (avr_ret_register): Return unsigned int
874 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
875 it to avr_libcall_value.
876 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
878 (avr_expand_binop_builtin): Ditto.
879 (avr_expand_unop_builtin): Ditto.
881 2011-05-10 DJ Delorie <dj@redhat.com>
883 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
884 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
885 * config/rx/rx.c (rx_align_for_label): Add label and
886 uses_threshold parameters. Do not align when the label is not
888 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
890 2011-05-10 Richard Guenther <rguenther@suse.de>
892 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
893 a series of conversions and apply foldings similar to what
895 (tree_ssa_forward_propagate_single_use_vars): Call it.
897 2011-05-10 Jakub Jelinek <jakub@redhat.com>
899 PR tree-optimization/48611
900 PR tree-optimization/48794
901 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
902 referenced from RESX or EH_DISPATCH arguments.
905 * dfp.c (decimal_to_decnumber): Handle conversion from
908 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
910 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
911 for !flag_prefer_avx128.
912 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
914 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
916 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
917 (fold_ternary_loc): Use expr_location_or.
919 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
922 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
923 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
924 Pmode and mem_mode is not VOIDmode.
926 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
928 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
929 TYPE_QUAL_RESTRICT): Convert to enum.
931 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
933 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
934 (const_pow2_1_to_8_operand): Ditto.
935 (const_pow2_1_to_128_operand): Ditto.
936 (const_pow2_1_to_32768_operand): Ditto.
937 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
938 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
939 in insn constraint to check integer value of operand 3.
940 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
942 (PINSR_MODE): New mode iterator.
943 (sse2p4_1): New mode attribute.
944 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
945 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
946 iterator. Use const_int_operand instead of
947 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
948 exact_log2 in insn constraint to check integer value of operand 3.
950 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
952 * config/i386/sse.md (blendbits): Remove mode attribute.
953 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
954 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
955 Check integer value of operand 3 in insn constraint.
957 2011-05-09 Richard Guenther <rguenther@suse.de>
959 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
961 (lto_symtab_merge): Likewise. Do not register types here.
962 (lto_symtab_merge_decls_2): Likewise.
963 (lto_symtab_merge_decls_1): Likewise.
964 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
965 * gimple.c (enum gtc_mode): Declare.
966 (gimple_types_compatible_p): Make static.
968 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
970 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
971 temporary register to match Pmode.
973 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
975 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
976 and *vec_concatv4si_1_avx.
978 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
980 PR rtl-optimization/48927
981 * ira-conflicts.c (commutative_constraint_p): Use
982 recog_data.alternative_enabled_p to disable alternatives where
983 "enabled" attribute is false.
984 (get_dup_num): Ditto.
985 * ira-lives.c (single_reg_class): Ditto.
986 (ira_implicitly_set_insn_hard_regs): Ditto.
988 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
990 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
991 (dataflow_set_preserve_mem_locs): Likewise.
993 2011-05-09 Philipp Thomas <pth@suse.de>
995 * config/mep/mep.c (mep_validate_vliw): Syntax description
996 should not be translated.
998 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1000 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1001 * config/mips/mips-tables.opt: New file (generated).
1002 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1003 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1004 MIPS_ARCH_OPTION_NATIVE): Define.
1005 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1007 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1008 mips_parse_cpu): Remove.
1009 (mips_cpu_info_from_opt, mips_default_arch): New.
1010 (mips_handle_option): Don't assert that global structures are in
1011 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1012 (mips_option_override): Use new variables and functions to set
1013 state of these options. Use strcmp to check for individual CPU names.
1014 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1016 * config/mips/mips.opt (march=): Use ToLower and Enum.
1017 (mips): Use ToLower, Enum and Var.
1018 (mtune=): Use ToLower and Enum.
1019 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1021 2011-05-08 Jan Hubicka <jh@suse.cz>
1023 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1024 Arrange type pairs to be UID ordered.
1025 (gimple_lookup_type_leader): Make inline.
1027 2011-05-09 Nick Clifton <nickc@redhat.com>
1030 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1034 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1037 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1039 * combine.c (simplify_comparison): Abstract out parts into...
1040 (simplify_compare_const): ... new function.
1041 (try_combine): Generalize parallel arithmetic/compare combining
1042 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1044 2011-05-08 Jan Hubicka <jh@suse.cz>
1046 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1047 (cgraph_create_virtual_clone): Call hooks once virtual clone
1049 * cgraph.h (cgraph_clone_node): Update prototype.
1050 * ipa-cp.c (ipcp_estimate_growth): Use
1051 estimate_ipcp_clone_size_and_time.
1052 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1053 * lto-cgraph.c (input_node): Update.
1054 * ipa-inline.c (recursive_inlining): Update.
1055 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1056 (evaluate_conditions_for_known_args): Break out from ...
1057 (evaluate_conditions_for_edge): ... here.
1058 (evaluate_conditions_for_ipcp_clone): New function.
1059 (inline_node_duplication_hook): Update clone summary based
1061 (estimate_callee_size_and_time): Rename to ...
1062 (estimate_node_size_and_time): take NODE instead of EDGE;
1063 take POSSIBLE_TRUTHS as argument.
1064 (estimate_callee_size_and_time): Update.
1065 (estimate_ipcp_clone_size_and_time): New function.
1066 (do_estimate_edge_time): Update.
1068 2011-05-08 Richard Guenther <rguenther@suse.de>
1072 * expmed.c (expand_shift_1): Compute adjusted constant shift
1075 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1077 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1079 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1081 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1083 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1085 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1087 2011-05-07 Jan Hubicka <jh@suse.cz>
1089 * ipa-inline-transform.c (inline_call): Account when program size
1091 * ipa-inline.c (relative_time_benefit): New function.
1092 (edge_badness): Reorganize to be power 2 based; fix thinko when
1093 computing badness for negative growth; update comments to match
1094 reality; better dumps.
1096 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1098 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1099 type to bool and adjust comment.
1100 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1101 (fold_mathfn_compare): Remove calls to global_bindings_p.
1102 (fold_inf_compare): Likewise.
1103 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1104 * c-tree.h (global_bindings_p): Adjust prototype.
1105 * c-decl.c (global_bindings_p): Return bool and simplify.
1107 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1109 PR tree-optimization/48837
1110 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1111 when accumulator transformation is performed.
1113 2011-05-06 Jan Hubicka <jh@suse.cz>
1115 * i386.h (ix86_tune_indices): Add
1116 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1117 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1118 * i386.c (initial_ix86_tune_features): Add
1119 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1120 (software_prefetching_beneficial_p): Remove predicate.
1121 (ix86_option_override_internal): Use new macro.
1123 2011-05-06 Jan Hubicka <jh@suse.cz>
1125 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1127 2011-05-06 Jan Hubicka <jh@suse.cz>
1129 * cgraph.c (cgraph_add_thunk): Create real function node instead
1130 of alias node; finalize it and mark needed/reachale; arrange visibility
1131 to be right and add it into the corresponding same comdat group list.
1132 (dump_cgraph_node): Dump thunks.
1133 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1134 cgraph_function_with_gimple_body_p,
1135 cgraph_first_function_with_gimple_body,
1136 cgraph_next_function_with_gimple_body): New functions.
1137 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1139 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1140 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1141 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1142 devirtualization when optimizing.
1143 (verify_cgraph_node): Verify thunks.
1144 (cgraph_analyze_function): Analyze thunks.
1145 (cgraph_mark_functions_to_output): Output thunks only in combination
1146 with function they are assigned to.
1147 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1148 alias into normal node.
1149 (assemble_thunks): New functoin.
1150 (cgraph_expand_function): Use it.
1151 * lto-cgraph.c (lto_output_node): Stream thunks.
1152 (input_overwrite_node): Stream in thunks.
1153 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1154 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1155 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1156 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1157 (inline_analyze_function): Do not care about thunk jump functions.
1158 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1159 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1160 cgraph_function_with_gimple_body_p.
1161 * passes.c (do_per_function_toporder): Use
1162 cgraph_function_with_gimple_body_p.
1163 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1164 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1165 (function_called_by_processed_nodes_p): Likewise.
1167 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1169 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1170 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1172 (mabi=): Replace with separate entries for mabi=altivec,
1173 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1174 mabi=ieeelongdouble and mabi=ibmlongdouble.
1175 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1176 check for -mabi=spe without SPE ABI support here.
1177 (rs6000_handle_option): Replace OPT_mabi_ handling with
1178 OPT_mabi_altivec and OPT_mabi_spe handling.
1180 2011-05-06 Cary Coutant <ccoutant@google.com>
1182 * dwarf2out.c (contains_subprogram_definition): New function.
1183 (should_move_die_to_comdat): Call it.
1185 2011-05-06 Jeff Law <law@redhat.com>
1187 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1188 remove_ctrl_stmt_and_useless_edges.
1189 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1190 (fixup_template_block, thread_single_edge): Likewise.
1191 (mark_threaded_blocks): Use THREAD_TARGET.
1193 2011-05-06 Alan Modra <amodra@gmail.com>
1196 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1197 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1199 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1201 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1202 constraint modifier to "r".
1204 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1206 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1207 fall through for OPT_mcmodel_.
1209 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1211 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1213 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1215 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1218 * config/arm/arm.opt (marm): Document it.
1219 (mthumb): Reject negative variant.
1221 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1224 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1225 Fix typo in "ccvt" variable name.
1227 2011-05-06 Tristan Gingold <gingold@adacore.com>
1230 * config/vms/vms-ar.c (main): Remove cwd variable.
1232 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1235 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1237 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1239 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1240 * gimplify.c (gimplify_switch_expr): Likewise.
1241 * omp-low.c (expand_omp_sections): Likewise.
1242 * tree-eh.c (lower_try_finally_switch): Likewise.
1243 (lower_eh_dispatch): Likewise.
1244 * tree.h (build_case_label): Declare.
1245 * tree.c (build_case_label): Define.
1247 2011-05-05 Jason Merrill <jason@redhat.com>
1250 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1251 (copy_statement_list): Don't recurse.
1252 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1255 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1257 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1258 through from -mfpu= handling.
1259 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1261 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1263 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1266 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1268 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1270 (hppa[12]*-*-hpux11*): Ditto.
1271 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1272 * config/ia64/hpux-unix2003.h: New.
1273 * config/pa/pa-hpux1131.opt: New.
1274 * config/pa/pa-hpux1131.h: New.
1275 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1276 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1277 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1279 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1282 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1283 instead of mode as 3rd argument to recursive call.
1284 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1285 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1287 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1288 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1289 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1290 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1292 2011-05-05 Julian Brown <julian@codesourcery.com>
1294 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1295 parenthesis in D-register case.
1297 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1299 * opt-functions.awk (var_type_struct): Handle Enum options.
1300 * optc-gen.awk: Don't check range of variables of character type.
1301 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1302 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1303 rs6000_sdata_name, rs6000_explicit_options): Remove.
1304 (rs6000_option_override_internal): Check for -malign-power here.
1305 Use global_options_set instead of rs6000_explicit_options.
1306 (rs6000_parse_fpu_option): Remove.
1307 (rs6000_handle_option): Access variables via opts and opts_set
1308 pointers. Use error_at and warning_at. Add fall-through
1309 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1310 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1311 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1312 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1313 here. Don't use rs6000_parse_fpu_option.
1314 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1315 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1316 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1318 (mspe): Use Var and Save.
1319 (mtraceback=): Use Enum and Var.
1320 (rs6000_traceback_type): New Enum and EnumValue entries.
1321 (mfloat-gprs=): Use Enum, Var and Save.
1322 (rs6000_float_gprs): New Enum and EnumValue entries.
1323 (mlong-double-): use Var and Save.
1324 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1325 (malign-): Use Enum and Var.
1326 (rs6000_alignment_flags): New Enum and EnumValue entries.
1328 (fpu_type_t): New Enum and EnumValue entries.
1329 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1330 global_options_set instead of rs6000_explicit_options.
1331 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1332 global_options_set instead of rs6000_explicit_options.
1333 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1334 global_options_set instead of rs6000_explicit_options.
1335 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1336 global_options_set instead of rs6000_explicit_options.
1337 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1338 global_options_set instead of rs6000_explicit_options.
1339 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1340 global_options_set instead of rs6000_explicit_options.
1341 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1343 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1344 global_options_set instead of rs6000_explicit_options.
1345 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1346 (rs6000_cmodel): New Enum and EnumValue entries.
1347 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1348 global_options_set instead of rs6000_explicit_options.
1349 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1350 (mtls-size=): Use Enum and Var.
1351 (rs6000_tls_size): New Enum and EnumValue entries.
1353 2011-05-05 Michael Matz <matz@suse.de>
1355 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1356 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1357 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1358 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1359 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1360 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1361 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1362 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1363 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1364 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1365 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1366 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1367 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1368 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1369 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1370 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1372 2011-05-05 Richard Guenther <rguenther@suse.de>
1374 * expmed.c (expand_variable_shift): Rename to ...
1375 (expand_shift_1): ... this. Take an expanded shift amount.
1376 For rotates recurse directly not building trees for the shift amount.
1377 (expand_variable_shift): Wrap around expand_shift_1.
1378 (expand_shift): Adjust.
1380 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1382 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1384 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1386 * tree.h (get_pending_sizes): Remove prototype.
1387 (put_pending_size): Likewise.
1388 (put_pending_sizes): Likewise.
1389 * stor-layout.c (pending_sizes): Delete.
1390 (get_pending_sizes): Likewise.
1391 (put_pending_size): Likewise.
1392 (put_pending_sizes): Likewise.
1393 (variable_size): Do not call put_pending_size and tidy up.
1394 * function.h (struct function): Remove dont_save_pending_sizes_p.
1395 * lto-streamer-in.c (input_function): Do not stream it.
1396 * lto-streamer-out.c (output_function): Likewise.
1397 * tree-inline.c (initialize_cfun): Do not copy it.
1398 * c-decl.c (store_parm_decls): Do not set it.
1399 * omp-low.c (create_task_copyfn): Likewise.
1400 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1402 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1404 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1406 (*movdf_internal): Ditto.
1407 (*movdf_internal_nointeger): Ditto.
1408 (*movsf_internal): Ditto.
1410 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1412 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1413 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1414 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1415 (c_variable_size): Remove.
1416 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1417 call put_pending_sizes.
1418 (get_parm_info): Add parameter expr. Use it to set
1419 arg_info->pending_sizes.
1420 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1422 * c-parser.c (c_parser_parms_declarator): Update call to
1423 c_parser_parms_list_declarator.
1424 (c_parser_parms_list_declarator): Take parameter expr. Update
1425 call to push_parm_decl. Update recursive call. Don't call
1426 get_pending_sizes. Update calls to get_parm_info.
1427 (c_parser_objc_method_definition): Update calls to
1428 c_parser_objc_method_decl and objc_start_method_definition.
1429 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1430 (c_parser_objc_method_decl): Add parameter expr. Update call to
1432 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1433 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1434 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1436 2011-05-05 Michael Hope <michael.hope@linaro.org>
1439 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1442 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1444 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1445 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1446 (spu_output_mi_thunk): New function.
1448 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1450 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1451 targetm.asm_out.print_operand.
1452 * config/sol2.c: Include target.h.
1454 2011-05-04 Jan Hubicka <jh@suse.cz>
1456 * ipa-inline.c (reset_edge_caches): New function.
1457 (update_caller_keys): Add check_inlinablity_for; do not
1458 reset edge caches; remove now unnecesary loop.
1459 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1460 (update_all_callee_keys): Likewise.
1461 (inline_small_functions): Sanity check cache; update code
1464 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1466 PR rtl-optimization/47612
1467 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1468 as the last insn of the sequence to be moved.
1470 2011-05-04 Tobias Burnus <burnus@net-b.de>
1473 * doc/invoke.texi (Ofast): Document that it
1474 enables Fortran's -fno-protect-parens.
1476 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1478 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1480 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1482 * stor-layout.c (variable_size): Do not issue errors.
1484 2011-05-04 Richard Guenther <rguenther@suse.de>
1486 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1487 for array-ref indices.
1488 (tree_coverage_counter_addr): Likewise.
1489 (build_fn_info_type): Use size_int for index types.
1490 (build_gcov_info): Likewise.
1492 2011-05-04 Richard Guenther <rguenther@suse.de>
1494 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1496 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1497 for constructor indices.
1498 (push_init_level): Likewise.
1500 2011-05-04 Richard Guenther <rguenther@suse.de>
1502 * explow.c (promote_mode): Move variable declarations before code.
1504 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1506 * tree.h (build_function_type_array): Declare.
1507 (build_varargs_function_type_array): Declare.
1508 (build_function_type_vec, build_varargs_function_type_vec): Define.
1509 * tree.c (build_function_type_array_1): New function.
1510 (build_function_type_array): New function.
1511 (build_varargs_function_type_array): New function.
1513 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1515 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1516 before setting STMT_VINFO_TYPE.
1518 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1520 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1521 instead of spu_pass_by_reference.
1523 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1525 * calls.c (emit_library_call_value_1): Invoke
1526 promote_function_mode hook on libcall arguments.
1527 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1528 argument being NULL.
1529 * targhooks.c (default_promote_function_mode): Lisewise.
1530 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1531 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1533 * doc/tm.texi: Document that TYPE argument might be NULL.
1535 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1537 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1539 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1542 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1544 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1546 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1547 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1549 * mips-tfile.c: ... here.
1550 Don't include coretypes.h, tm.h, filenames.h.
1551 (saber_stop): Remove definition and all calls.
1552 [__SABER__]: Remove.
1553 (__LINE__): Remove default.
1554 (Size_t, Ptrdiff_t): Remove definitions.
1555 Replace by size_t, ptrdiff_t.
1556 [!MIPS_DEBUGGING_INFO]: Remove.
1557 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1558 (progname): Add const.
1560 Replace all uses by static.
1561 (ALIGN_SYMTABLE_OFFSET): Remove default.
1562 * mips-tdump.c: Don't include coretypes.h, tm.h.
1563 Remove !MIPS_IS_STAB guard.
1564 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1565 $(TM_H), filenames.h dependencies.
1566 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1568 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1571 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1572 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1574 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1577 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1578 account and save/restore RETS.
1579 (PROFILE_BEFORE_PROLOGUE): Define.
1580 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1581 the push insn to use predecrement.
1583 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1586 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1588 2011-05-04 Nick Clifton <nickc@redhat.com>
1590 * config/mn10300/mn10300.c: Include cfgloop.h.
1592 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1593 Lcc or a FLcc insn into the instruction stream.
1594 (mn10300_block_contains_call): New function. Returns true if the
1595 given basic block contains a CALL insn.
1596 (mn10300_loop_contains_call_insn): New function. Returns true if
1597 the given loop contains a CALL insn.
1598 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1599 to use the SETLB and Lcc or FLcc insns.
1600 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1601 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1602 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1603 disable the SETLB optimization.
1604 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1605 __SETLB__ or __NO_SETLB__.
1606 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1607 (movsf_internal): Handle MDR register.
1608 (cmpsi): Make visible.
1609 (setlb): New pattern.
1611 (FLcc): New pattern.
1613 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1616 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1617 for reg<->xmm moves.
1618 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1619 (vec_concatv2di_rex64_sse): Ditto.
1620 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1621 (*vec_extractv2di_1_rex64): Ditto.
1624 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1626 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1628 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1630 2011-05-04 Richard Guenther <rguenther@suse.de>
1632 * tree.h (int_const_binop): Remove notrunc argument.
1633 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1634 create integer constants that are properly truncated.
1635 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1636 (const_binop): Remove zero notrunc argument to int_const_binop.
1637 (size_binop_loc): Likewise.
1638 (fold_div_compare): Likewise.
1639 (maybe_canonicalize_comparison_1): Likewise.
1640 (fold_comparison): Likewise.
1641 (fold_binary_loc): Likewise.
1642 (multiple_of_p): Likewise.
1643 * expr.c (store_constructor): Likewise.
1644 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1645 (maybe_fold_stmt_addition): Likewise.
1646 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1647 * stor-layout.c (layout_type): Likewise.
1648 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1649 * tree-sra.c (build_ref_for_offset): Likewise.
1650 (build_user_friendly_ref_for_offset): Likewise.
1651 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1652 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1653 * tree-ssa-loop-niter.c (inverse): Likewise.
1654 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1655 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1656 * tree-switch-conversion.c (check_range): Likewise.
1657 (build_constructors): Likewise.
1658 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1659 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1660 (extract_range_from_assert): Likewise.
1661 (vrp_int_const_binop): Likewise.
1662 (extract_range_from_binary_expr): Likewise.
1663 (extract_range_from_unary_expr): Likewise.
1664 (check_array_ref): Likewise.
1665 (find_case_label_range): Likewise.
1666 (simplify_div_or_mod_using_ranges): Likewise.
1667 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1668 comparing case labels for merging.
1670 2011-05-03 Mark Wielaard <mjw@redhat.com>
1672 * dwarf2out.c (debug_str_hash_forced): Removed.
1673 (gen_label_for_indirect_string): Removed.
1674 (get_debug_string_label): Removed.
1675 (AT_string_form): Generate label directly.
1676 (output_indirect_string): Test indirect_string_node for
1677 DW_FORM_strp instead of checking label and refcount.
1678 (prune_indirect_string): Removed.
1679 (prune_unused_types): Don't check debug_str_hash_forced or
1680 call prune_indirect_string.
1682 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1685 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1687 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1691 * combine.c (try_combine): Skip debug insns at m_split tests.
1693 2011-04-26 Mark Wielaard <mjw@redhat.com>
1696 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1697 when info_section_emitted.
1699 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1701 * config/mips/mips-opts.h: New.
1702 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1704 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1705 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1706 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1708 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1710 (mips_abi, mips_code_readable): Don't declare.
1711 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1712 (mabi=): Use Enum and Var.
1713 (mips_abi): New Enum and EnumValue entries.
1714 (mcode-readable=): Use Enum and Var.
1715 (mips_code_readable_setting): New Enum and EnumValue entries.
1716 (mr10k-cache-barrier=): Use Enum and Var.
1717 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1719 2011-05-03 Jan Hubicka <jh@suse.cz>
1721 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1722 replace hash by pointer map.
1723 (cgraph_node_set_element_def, cgraph_node_set_element,
1724 const_cgraph_node_set_element, varpool_node_set_element_def,
1725 varpool_node_set_element, const_varpool_node_set_element): Remove.
1726 (free_cgraph_node_set, free_varpool_node_set): New function.
1727 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1728 * tree-emutls.c: Free varpool node set.
1729 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1730 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1731 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1732 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1733 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1734 Move here from ipa.c; implement using pointer_map
1735 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1736 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1737 debug_cgraph_node_set, varpool_node_set_new,
1738 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1739 dump_varpool_node_set, debug_varpool_node_set):
1740 Move to ipa-uitls.c.
1741 * passes.c (ipa_write_summaries): Update.
1743 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1745 From Mike Frysinger:
1746 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1747 bf542/bf544/bf547/bf548/bf549.
1749 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1751 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1753 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1756 * config/bfin/bfin.md (MOVCC): New mode_macro.
1757 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1758 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1759 comments from generated assembly.
1761 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1764 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1765 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1766 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1767 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1768 * config/bfin/lib1funcs.asm (___muldi3): New function.
1770 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1772 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1773 build_function_type_list instead of build_function_type.
1774 Rearrange initialization of `args' to do so.
1776 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1778 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1779 instead of build_function_type.
1781 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1783 * config/rs6000/rs6000.c (spe_init_builtins): Call
1784 build_function_type_list instead of build_function_type.
1785 (paired_init_builtins, altivec_init_builtins): Likewise.
1786 (builtin_function_type): Likewise.
1788 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1790 * config/sh/sh.c (sh_media_init_builtins): Call
1791 build_function_type_list instead of build_function_type.
1793 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1795 * config/sparc/sparc.c (sparc_file_end): Call
1796 build_function_type_list instead of build_function_type.
1798 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1800 * config/alpha/alpha.c (alpha_init_builtins): Call
1801 build_function_type_list instead of build_function_type.
1803 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1805 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1806 build_function_type_list instead of build_function_type.
1808 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1810 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1811 build_function_type_list instead of build_function_type.
1812 Delete `endlink' variable.
1814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1816 * config/avr/avr.c (avr_init_builtins): Call
1817 build_function_type_list instead of build_function_type.
1819 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1821 * config/picochip/picochip.c (picochip_init_builtins): Call
1822 build_function_type_list instead of build_function_type.
1823 Delete `endlink' variable.
1825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1827 * config/bfin/bfin.c (bfin_init_builtins): Call
1828 build_function_type_list instead of build_function_type.
1830 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1833 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1834 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1836 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1839 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1840 libbffastfp overrides libgcc when -mfast-fp.
1842 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1844 Originally from Bernd Schmidt
1845 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1846 * config/bfin/bfin.c (override_options): Test it and error if
1849 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1851 Originally From Bernd Schmidt
1852 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1855 2011-05-03 Jeff Law <law@redhat.com>
1857 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1858 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1859 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1860 than accessing AUX field directly. Free the AUX field before
1862 (thread_block, thread_through_loop_header): Likewise.
1863 (thread_single_edge, mark_threaded_blocks): Likewise.
1864 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1865 (register_jump_thread): Do not attempt to thread to a NULL edge.
1867 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1869 * function.c (init_function_start): Call decide_function_section.
1870 * varasm.c (decide_function_section): New function.
1871 (assemble_start_function): When not using
1872 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1873 or first_function_block_is_cold.
1874 * rtl.h (decide_function_section): Declare.
1876 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1877 Jakub Jelinek <jakub@redhat.com>
1880 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1881 only succeed if req_mode is the same as set_mode.
1883 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1885 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1886 * genemit.c (gen_exp): Handle RETURN.
1887 * emit-rtl.c (verify_rtx_sharing): Likewise.
1888 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1889 * rtl.c (copy_rtx): RETURN is shared.
1890 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1892 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1893 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1894 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1895 * config/cris/cris.c (cris_expand_return): Likewise.
1896 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1897 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1898 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1899 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1900 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1902 * config/v850/v850.c (expand_epilogue): Likewise.
1903 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1904 * config/arm/arm.md (epilogue): Likewise.
1905 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1906 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1907 variable to ret_reg.
1909 2011-05-03 Richard Guenther <rguenther@suse.de>
1912 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1913 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1914 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1916 2011-05-03 Richard Guenther <rguenther@suse.de>
1918 * c-decl.c (grokdeclarator): Instead of looking at
1919 TREE_OVERFLOW check if the constant fits in the index type.
1921 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1923 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1924 (vec_store_lanes<mode><mode>): Likewise.
1926 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1928 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1929 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1930 convert_optab_index values.
1931 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1932 * genopinit.c (optabs): Initialize the new optabs.
1933 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1934 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1935 (expand_STORE_LANES): New functions.
1936 * tree.h (build_array_type_nelts): Declare.
1937 * tree.c (build_array_type_nelts): New function.
1938 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1939 (vect_model_load_cost): Likewise.
1940 (vect_store_lanes_supported, vect_load_lanes_supported)
1941 (vect_record_strided_load_vectors): Declare.
1942 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1943 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1944 (vect_transform_strided_load): Split out statement recording into...
1945 (vect_record_strided_load_vectors): ...this new function.
1946 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1947 (write_vector_array, create_array_ref): New functions.
1948 (vect_model_store_cost): Add store_lanes_p argument.
1949 (vect_model_load_cost): Add load_lanes_p argument.
1950 (vectorizable_store): Try to use store-lanes functions for
1952 (vectorizable_load): Likewise load-lanes and loads.
1953 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1954 to vect_model_store_cost.
1955 (vect_build_slp_tree): Likewise vect_model_load_cost.
1957 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1959 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1960 * hooks.c (hook_bool_mode_uhwi_false): New function.
1961 * target.def (array_mode_supported_p): New hook.
1962 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1963 * doc/tm.texi: Regenerate.
1964 * stor-layout.c (mode_for_array): New function.
1965 (layout_type): Use it.
1966 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1967 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1969 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1972 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1973 for -fstack-check if the size to allocate is negative.
1975 2011-05-02 Lawrence Crowl <crowl@google.com>
1977 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1978 (timevar_cond_start): New for starting a timer only when it is not
1980 (timevar_cond_stop): New for stopping a timer when it was not already
1983 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1984 (timevar_cond_start): New as above.
1985 (timevar_cond_stop): New as above.
1987 * timevar.def: Add start/stop timers for compiler phases,
1988 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1989 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1990 and TV_PHASE_FINALIZE.
1991 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1992 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1993 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1994 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1995 Make unused TV_OVERLOAD into a start/stop timer.
1997 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1998 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1999 to indicate that they are start/stop timers.
2001 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2002 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2003 Move initialization to do_compile.
2004 (do_compile): Add initialization from above.
2005 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2007 * c-decl.c (c_write_global_declarations): Add start/stop of
2008 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2010 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2011 or TV_PARSE_INLINE, as appropriate.
2012 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2013 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2015 2011-05-02 Jason Merrill <jason@redhat.com>
2018 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2020 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2023 * c-decl.c (finish_decl): Only create a composite if the types are
2026 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2028 * config/fr30/fr30-protos.h (Mmode): Don't define.
2029 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2030 definition where used.
2031 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2032 define. Expand definitions where used.
2033 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2034 Expand definitions where used.
2035 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2036 rx_function_arg, rx_function_arg_advance,
2037 rx_function_arg_boundary): Expand definitions of those macros.
2038 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2039 definition where used.
2041 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2043 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2045 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2046 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2047 with *movv2sf_internal_rex64_avx.
2048 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2049 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2050 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2051 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2052 "vex" in "prefix" attribute calculation.
2053 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2055 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2058 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2059 inputs match the output.
2061 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2064 * config/m68k/m68k.c (m68k_expand_prologue): Set
2065 current_function_static_stack_size.
2067 2011-05-02 Jan Hubicka <jh@suse.cz>
2069 * lto-streamer.c (lto_streamer_cache_insert_1,
2070 lto_streamer_cache_lookup, lto_streamer_cache_create,
2071 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2072 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2074 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2076 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2077 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2078 config/m68k/t-opts: New files.
2079 * config/m68k/m68k-tables.opt: New file (generated).
2080 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2081 extra_options and m68k/t-opts to tmake_file.
2082 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2083 (all_isas): Initialize using m68k-isas.def.
2084 (all_microarchs): Initialize using m68k-microarchs.def.
2085 (m68k_find_selection): Remove.
2086 (m68k_handle_option): Don't assert that global structures are in
2087 use. Use error_at. Access variables via opts pointer. Don't
2088 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2089 directly for -m68020-40 and -m68020-60.
2090 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2091 m68k_tune_entry here.
2092 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2094 (m68k_library_id_string): Remove declaration.
2095 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2096 (m68k_library_id_string): New Variable.
2097 (march=, mcpu=, mtune=): Use Enum and Var.
2099 2011-05-02 Richard Guenther <rguenther@suse.de>
2101 * varasm.c (output_constructor_regular_field): Compute zero-based
2102 index with double-ints. Make sure to ICE instead of producing
2104 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2105 in asserts. Properly use a signed type.
2107 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2109 * config/i386/sse.md (V): New mode iterator.
2110 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2112 (V_256): Rename from AVX256MODE.
2113 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2114 condition to all users.
2116 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2117 condition to all users.
2118 (VF_128): Make V4SF mode unconditional.
2119 (VF_256): Rename from AVX256MODEF2P.
2120 (VI4F_128): Rename from SSEMODE4S.
2121 (VI8F_128): Rename from SSEMODE2D.
2122 (VI4F_256): Rename from AVX256MODE8P.
2123 (VI8F_256): Rename from AVX256MODE4P.
2124 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2125 (ssescalarmodesuffix): Remove SF and DF modes.
2126 (SSEMODE124): Remove.
2127 (SSEMODE1248): Ditto.
2128 (SSEMODEF2P): Ditto.
2129 (AVXMODEF2P): Ditto.
2130 (AVXMODEFDP): Ditto.
2131 (AVXMODEFSP): Ditto.
2132 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2134 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2136 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2137 xop_pcmov_<mode>256. Use V mode iterator.
2139 Adjust RTX patterns globally for renamed mode attributes.
2141 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2143 * haifa-sched.c (sched_emit_insn): Emit insn before first
2144 non-scheduled insn. Inform back-end about new insn. Add
2145 new insn to scheduled_insns list.
2147 2011-05-02 Richard Guenther <rguenther@suse.de>
2149 PR tree-optimization/48822
2150 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2151 (process_scc): Indicate which iteration we start.
2153 2011-05-02 Jan Hubicka <jh@suse.cz>
2155 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2156 (lto_section_overrun): New.
2157 * lto-section-out.c (append_block): Rename to ...
2158 (lto_append_block): ... this one; export.
2159 (lto_output_1_stream): Move lto lto-streamer.h
2160 (lto_output_data_stream): Update.
2161 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2162 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2165 2011-05-02 Richard Guenther <rguenther@suse.de>
2167 * tree.c (tree_code_counts): New global array.
2168 (record_node_allocation_statistics): Count individual tree codes.
2169 (dump_tree_statistics): Dump individual code stats.
2171 2011-05-01 Jan Hubicka <jh@suse.cz>
2173 * ipa-inline.c (caller_growth_limits): Fix thinko when
2174 looking for largest stack frame.
2175 * ipa-inline.h (dump_inline_summary): Declare.
2176 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2178 (dump_inline_summary): Export.
2179 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2181 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2183 * reginfo.c (memory_move_cost): Change rclass argument type form
2184 'enum reg_class' to reg_class_t.
2185 * reload.h (memory_move_cost): Update prototype.
2186 * postreload.c reload_cse_simplify_set): Change type dclass var to
2188 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2190 (ira_allocate_and_set_costs): Change aclass argument type form
2191 'enum reg_class' to reg_class_t.
2192 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2193 Change aclass argument type to reg_class_t.
2194 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2196 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2197 memory_move_cost call.
2199 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2200 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2201 Change type tmp var to reg_class_t.
2203 2011-04-30 Jan Hubicka <jh@suse.cz>
2205 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2206 inlining into function with flatten attribute.
2207 (want_inline_small_function_p): Be more realistic about inlining
2208 cold calls where callee size grows.
2210 2011-04-30 Jan Hubicka <jh@suse.cz>
2212 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2215 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2217 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2218 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2219 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2220 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2221 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2222 (print_operand): Rename to...
2223 (sparc_print_operand): ...this. Make static. Adjust
2224 sparc_print_operand function call.
2225 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2228 2011-04-30 Jan Hubicka <jh@suse.cz>
2231 * ipa-inline.c (early_inliner): Disable when doing late
2232 addition of function.
2234 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2236 * dwarf2out.c (get_address_mode): New inline.
2237 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2238 if not dwarf_strict emit
2239 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2240 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2241 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2242 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2243 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2244 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2245 mem_loc_descriptor callers.
2246 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2247 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2248 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2249 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2250 (base_types): New variable.
2251 (get_base_type_offset, calc_base_type_die_sizes,
2252 base_type_for_mode, mark_base_types, base_type_cmp,
2253 move_marked_base_types): New functions.
2254 (calc_die_sizes): Assert that die_offset is 0 or equal to
2256 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2257 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2258 callers. If not dwarf_strict, call mem_loc_descriptor even for
2259 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2260 (gen_subprogram_die): Don't give up on call site parameters
2261 with non-integral or large integral modes. Adjust
2262 mem_loc_descriptor callers.
2263 (prune_unused_types): Call prune_unused_types_mark on base_types
2265 (resolve_addr): Call mark_base_types.
2266 (dwarf2out_finish): Call move_marked_base_types.
2268 PR tree-optimization/48809
2269 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2271 (gen_inbound_check): Don't compute index_expr - range_min in utype
2272 again, instead reuse SSA_NAME initialized in build_arrays.
2273 Remove two useless gsi_for_stmt calls.
2275 2011-04-29 Jeff Law <law@redhat.com>
2277 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2279 2011-04-29 Martin Jambor <mjambor@suse.cz>
2281 * cgraph.h (cgraph_postorder): Remove declaration.
2282 * ipa-utils.h (ipa_free_postorder_info): Declare.
2283 (ipa_reverse_postorder): Likewise.
2284 * cgraphunit.c: Include ipa-utils.h.
2285 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2286 * ipa-inline.c: Include ipa-utils.h.
2287 (ipa_inline): Update call to ipa_reverse_postorder.
2288 * ipa-pure-const.c (propagate_pure_const): Update call to
2289 ipa_reduced_postorder and ipa_print_order. Call
2290 ipa_free_postorder_info to clean up.
2291 (propagate_nothrow): Likewise.
2292 * ipa-reference.c (propagate): Removed a useless call to
2293 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2294 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2295 * ipa.c: Include ipa-utils.h.
2296 (ipa_profile): Update call to ipa_reverse_postorder.
2297 (cgraph_postorder): Moved to...
2298 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2299 (ipa_utils_print_order): Renamed to ipa_print_order.
2300 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2302 (ipa_free_postorder_info): New function.
2303 * passes.c: Include ipa-utils.h.
2304 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2305 (ipa_write_summaries): Likewise.
2306 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2307 (cgraphunit.o): Likewise.
2309 (ipa-inline.o): Likewise.
2311 2011-04-29 Jan Hubicka <jh@suse.cz>
2313 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2314 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2315 * ipa-inline.h (clause_t): Turn into unsigned int.
2316 * ipa-inline-analysis.c (add_clause): Do more simplification.
2317 (and_predicates): Shortcut more cases.
2318 (predicates_equal_p): Move forward; check that clauses are properly
2320 (or_predicates): Shortcut more cases.
2321 (edge_execution_predicate): Rewrite as...
2322 (set_cond_stmt_execution_predicate): ... this function; handle
2323 __builtin_constant_p.
2324 (set_switch_stmt_execution_predicate): New .
2325 (compute_bb_predicates): New.
2326 (will_be_nonconstant_predicate): Update TODO.
2327 (estimate_function_body_sizes): Use compute_bb_predicates
2328 and free them later, always try to estimate if stmt is constant.
2329 (estimate_time_after_inlining, estimate_size_after_inlining):
2330 Gracefully handle optimized out edges.
2331 (read_predicate): Fix off by one error.
2333 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2335 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2337 2011-04-27 Xinliang David Li <davidxl@google.com>
2339 * tree-profile.c (init_ic_make_global_vars): Set
2340 tls attribute on ic vars.
2341 * coverage.c (coverage_end_function): Initialize
2342 function_list with zero.
2344 2011-04-29 Richard Guenther <rguenther@suse.de>
2346 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2347 for the type of the result.
2348 (fold_builtin_isascii): Likewise.
2349 (fold_builtin_toascii): Use integer_type_node where appropriate.
2350 (fold_builtin_logb): Likewise.
2351 (fold_builtin_frexp): Likewise.
2352 (fold_builtin_strstr): Likewise.
2353 (fold_builtin_strpbrk): Likewise.
2354 (fold_builtin_fputs): Likewise.
2355 (fold_builtin_sprintf): Likewise.
2356 (fold_builtin_snprintf): Likewise.
2357 (fold_builtin_printf): Likewise.
2358 (do_mpfr_remquo): Use a proper type for the assigned constant.
2359 (do_mpfr_lgamma_r): Likewise.
2360 * dwarf2out.c (resolve_one_addr): Use size_int.
2361 * except.c (init_eh): Likewise.
2362 (assign_filter_values): Use integer_type_node for filter values.
2363 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2365 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2366 for EH region numbers.
2367 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2368 for the shift amount.
2370 2011-04-29 Richard Guenther <rguenther@suse.de>
2372 * expr.h (expand_shift): Rename to ...
2373 (expand_variable_shift): ... this.
2374 (expand_shift): Take a constant shift amount.
2375 * expmed.c (expand_shift): Rename to ...
2376 (expand_variable_shift): ... this.
2377 (expand_shift): New wrapper around expand_variable_shift.
2378 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2379 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2380 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2381 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2382 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2383 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2384 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2385 emit_store_flag_1, emit_store_flag): Likewise.
2386 * builtins.c (expand_builtin_signbit): Likewise.
2387 * calls.c (load_register_parameters): Likewise.
2388 * function.c (assign_parm_setup_block): Likewise.
2389 * lower-subreg.c (resolve_shift_zext): Likewise.
2390 * optabs.c (widen_bswap, expand_abs_nojump,
2391 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2392 * spu/spu.c (spu_expand_extv): Likewise.
2393 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2395 2011-04-29 Richard Guenther <rguenther@suse.de>
2397 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2398 for the remapped region number.
2399 * predict.c (build_predict_expr): Use integer_type_node for the
2401 * fold-const.c (fold_binary_loc): Use integer_type_node for
2402 the shift amount. Use a proper type for the PLUS_EXPR operand.
2404 2011-04-29 Michael Matz <matz@suse.de>
2406 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2407 other trees that just builtins.
2408 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2410 2011-04-29 Richard Guenther <rguenther@suse.de>
2412 * tree-nested.c (get_trampoline_type): Use size_int.
2413 (get_nl_goto_field): Likewise.
2414 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2416 (lower_eh_constructs_2): Likewise.
2417 (lower_resx): Likewise.
2418 (lower_eh_dispatch): Likewise.
2419 * tree-mudflap.c (mf_build_string): Use size_int.
2420 (mudflap_register_call): Use integer_type_node for the flag.
2421 (mudflap_enqueue_constant): Use size_int.
2422 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2423 instead of rebuilding it.
2425 2011-04-29 Richard Guenther <rguenther@suse.de>
2427 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2428 Handle OBJ_TYPE_REF.
2429 (find_func_aliases_for_call): Use it more consistently.
2431 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2433 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2434 (rank_for_schedule): Use it.
2435 (schedule_block): Set it.
2437 2011-04-28 David Li <davidxl@google.com>
2439 * tree.c (crc32_string): Use crc32_byte.
2440 (crc32_byte): New function.
2441 * tree.h (crc32_byte): New function.
2442 * gcov.c (read_graph_file): Handle new cfg_cksum.
2443 (read_count_file): Ditto.
2444 * profile.c (instrument_values): Ditto.
2445 (get_exec_counts): Ditto.
2446 (read_profile_edge_counts): Ditto.
2447 (compute_branch_probabilities): Ditto.
2448 (compute_value_histograms): Ditto.
2449 (branch_prob): Ditto.
2450 (end_branch_prob): Ditto.
2451 * coverage.c (read_counts_file): Ditto.
2452 (get_coverage_counts): Ditto.
2453 (tree_coverage_counter_addr): Ditto.
2454 (coverage_checksum_string): Ditto.
2455 (coverage_begin_output): Ditto.
2456 (coverage_end_function): Ditto.
2457 (build_fn_info_type): Ditto.
2458 (build_fn_info_value): Ditto.
2459 * libgcov.c (gcov_exit): Ditto.
2460 * gcov-dump.c (tag_function): Ditto.
2461 (compute_checksum): Remove.
2463 2011-04-29 Alan Modra <amodra@gmail.com>
2465 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2466 unspec plus offset. Tidy macho code.
2468 2011-04-29 Martin Jambor <mjambor@suse.cz>
2470 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2471 node instead of a decl. Update all callers.
2472 * cgraph.h: Update declaration.
2474 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2476 PR tree-optimization/48765
2477 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2478 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2479 to indicate if loop aware SLP is being used. Scan the statements
2480 and update the vectorization factor according to the type of
2481 vectorization before statement analysis.
2482 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2483 pass it to vect_analyze_loop_operations.
2484 (vectorizable_reduction): Set number of copies to 1 in case of pure
2486 * tree-vect-stmts.c (vectorizable_conversion,
2487 vectorizable_assignment, vectorizable_shift,
2488 vectorizable_operation, vectorizable_type_demotion,
2489 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2491 (vectorizable_condition): Move the check that it is not SLP
2492 vectorization before the number of copies check.
2493 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2494 to vectorize the loop using SLP.
2496 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2499 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2502 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2504 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2505 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2506 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2507 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2508 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2510 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2511 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2512 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2513 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2514 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2515 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2517 * config/i386/linux.h (REG_NAME): Don't define.
2518 * config/i386/linux64.h (REG_NAME): Don't define.
2519 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2520 Undefine before defining.
2522 2011-04-28 Jan Hubicka <jh@suse.cz>
2524 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2525 nonconstant_names array.
2526 (estimate_function_body_sizes): Build nonconstant_names array; handle
2527 BUILT_IN_CONSTANT_P.
2529 2011-04-28 Richard Guenther <rguenther@suse.de>
2533 2011-04-28 Richard Guenther <rguenther@suse.de>
2535 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2536 as late as possible.
2538 2011-04-28 Richard Guenther <rguenther@suse.de>
2540 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2541 (debug_constraint): Do it here.
2542 (dump_constraints): And here.
2543 (rewrite_constraints): And here.
2544 (dump_constraint_edge): Remove.
2545 (dump_constraint_graph): Rewrite to produce DOT output.
2546 (solve_constraints): Build succ graph as late as possible.
2547 Dump constraint graphs before and after solving.
2549 2011-04-28 Richard Guenther <rguenther@suse.de>
2551 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2552 New function split out from ...
2553 (find_func_aliases): ... here. Call it.
2554 (find_func_aliases_for_call): Likewise.
2556 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2558 * internal-fn.h (internal_fn_name_array): Declare.
2559 (internal_fn_flags_array): Likewise.
2561 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2563 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2564 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2566 (ssemodefsuffix): Remove.
2567 (ssevecmodesuffix): New mode attribute.
2568 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2569 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2570 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2571 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2572 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2573 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2574 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2575 ssemodesuffix mode attribute.
2576 (float splitters): Use ssevecmodesuffix mode attribute.
2577 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2578 (sseinsmode): Rename from avxvecmode.
2579 (avxsizesuffix): Rename from avxmodesuffix.
2580 (sseintvecmode): Rename from avxpermvecmode.
2581 (ssedoublevecmode): Rename from ssedoublesizemode.
2582 (ssehalfvecmode): Rename from avxhalfvecmode.
2583 (ssescalarmode): Rename from avxscalarmode.
2584 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2585 templates for ssemodesuffix mode attribute.
2586 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2589 Adjust RTX patterns globally for renamed mode attributes.
2591 2011-04-27 Jan Hubcika <jh@suse.cz>
2593 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2594 * ipa-inline-analysis.c: Include alloc-pool.h.
2595 (edge_predicate_pool): New.
2596 (trye_predicate_p): New function
2597 (false_predicate_p): New function.
2598 (add_clause): Sanity check that false clauses are "optimized";
2599 never add clauses to predicate that is already known to be false.
2600 (and_predicate): Use flase_predicate_p.
2601 (evaulate_predicate): Rename to ...
2602 (evaluate_predicate): ... this one; update all callers; assert
2603 that false is not listed among possible truths.
2604 (dump_predicate): Use true_predicate_p.
2605 (account_size_time): Use false_predicate_p.
2606 (evaulate_conditions_for_edge): Rename to ...
2607 (evaluate_conditions_for_edge) ... this one.
2608 (edge_set_predicate): New function.
2609 (inline_edge_duplication_hook): Duplicate edge predicates.
2610 (inline_edge_removal_hook): Free edge predicates.
2611 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2612 (dump_inline_summary): Update.
2613 (estimate_function_body_sizes): Set edge predicates.
2614 (estimate_calls_size_and_time): Handle predicates.
2615 (estimate_callee_size_and_time): Update.
2616 (remap_predicate): Add toplev_predicate; update comment.
2617 (remap_edge_predicates): New function.
2618 (inline_merge_summary): Compute toplev predicate; update.
2619 (read_predicate): New function.
2620 (read_inline_edge_summary): Use it.
2621 (inline_read_section): Likewise.
2622 (write_predicate): New function.
2623 (write_inline_edge_summary): Use it.
2624 (inline_write_summary): Likewise.
2625 (inline_free_summary): Free alloc pool and edge summary vec.
2627 2011-04-27 Richard Guenther <rguenther@suse.de>
2629 * tree-ssa-structalias.c (changed_count): Remove.
2630 (changed): Use a bitmap.
2631 (unify_nodes): Adjust.
2632 (do_sd_constraint): Likewise.
2633 (do_ds_constraint): Likewise.
2634 (do_complex_constraint): Likewise.
2635 (solve_graph): Likewise.
2637 2011-04-27 Jan Hubicka <jh@suse.cz>
2639 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2641 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2643 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2644 (avx_vperm2f128_*_operand): Ditto.
2645 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2646 Use avx_vpermilp_parallel in insn condition.
2647 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2648 Use avx_vperm2f128_parallel in insn condition.
2650 2011-04-27 Richard Guenther <rguenther@suse.de>
2652 * Makefile.in (tree-ssa-structalias.o): Remove
2653 gt-tree-ssa-structalias.h dependency.
2654 (GTFILES): Remove tree-ssa-structalias.c.
2655 * tree.c (allocate_decl_uid): New function.
2656 (make_node_stat): Use it.
2657 (copy_node_stat): Likewise.
2658 * tree.h (allocate_decl_uid): Declare.
2659 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2660 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2661 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2662 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2663 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2664 (struct heapvar_map): Likewise.
2665 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2666 heapvar_insert): Likewise.
2667 (make_heapvar_for): Rename to ...
2668 (make_heapvar): ... this. Simplify.
2669 (fake_var_decl_obstack): New global var.
2670 (build_fake_var_decl): New function.
2671 (make_constraint_from_heapvar): Adjust.
2672 (handle_lhs_call): Likewise.
2673 (create_function_info_for): Likewise.
2674 (intra_create_variable_infos): Likewise.
2675 (init_alias_vars): Allocate fake_var_decl_obstack.
2676 (init_alias_heapvars, delete_alias_heapvars): Remove.
2677 (compute_points_to_sets): Do not call init_alias_heapvars.
2678 (ipa_pta_execute): Likewise.
2679 (delete_points_to_sets): Free fake_var_decl_obstack.
2681 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2683 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2684 (si_from_UTItype, si_to_UTItype): New functions.
2685 (__udivmodti4): Use them to implement type-punning.
2686 * config/spu/multi3.c (union qword_TItype): New data type.
2687 (si_from_TItype, si_to_TItype): New functions.
2688 (__multi3): Use them to implement type-punning.
2690 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2692 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2694 2011-04-27 Jan Hubicka <jh@suse.cz>
2696 * ipa-prop.c (function_insertion_hook_holder): New holder.
2697 (ipa_add_new_function): New function.
2698 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2699 Register/deregister holder.
2701 2011-04-27 Richard Guenther <rguenther@suse.de>
2703 PR tree-optimization/48772
2704 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2706 2011-04-27 Richard Guenther <rguenther@suse.de>
2708 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2709 TARGET_MEM_REF handling.
2711 2011-04-27 Nick Clifton <nickc@redhat.com>
2713 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2714 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2715 (REG_CLASS_NAMES): Likewise.
2716 (REG_CLASS_CONTENTS): Likewise.
2717 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2718 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2719 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2720 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2721 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2722 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2723 duplicate register classes.
2724 (frv_class_likely_spilled_p): Likewise.
2725 (frv_register_move_cost): Likewise.
2727 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2728 end of the regno_reg_class array.
2730 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2733 * c-typeck.c (build_binary_op): Don't wrap arguments if
2734 int_operands is true.
2736 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2739 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2740 targetm.calls.must_pass_in_stack for void type.
2742 2011-04-26 Jan Hubicka <jh@suse.cz>
2744 * cgraphbuild.c (build_cgraph_edges): Update call
2745 of cgraph_create_edge and cgraph_create_indirect_edge.
2746 * cgraph.c (cgraph_create_edge_including_clones,
2747 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2748 cgraph_update_edges_for_call_stmt_node): Do not take nest
2749 argument; do not initialize call_stmt_size/time.
2750 (dump_cgraph_node): Do not dump nest.
2751 (cgraph_clone_edge): Do not take loop_nest argument;
2752 do not propagate it; do not clone call_stmt_size/time.
2753 (cgraph_clone_node): Likewise.
2754 (cgraph_create_virtual_clone): Update.
2755 * cgraph.h (struct cgraph_edge): Remove
2756 call_stmt_size/call_stmt_time/loop_nest.
2757 (cgraph_create_edge, cgraph_create_indirect_edge,
2758 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2760 * tree-emutls.c (gen_emutls_addr): Update.
2761 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2762 loop_nest; handle indirect calls, too.
2763 (clone_inlined_nodes): Do not care about updating inline summaries.
2764 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2765 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2766 stream call_stmt_size/call_stmt_time/loop_nest.
2767 * ipa-inline.c (edge_badness): Update.
2768 (ipa_inline): dump summaries after inlining.
2769 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2771 (inline_edge_summary): New function.
2772 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2773 (inline_edge_removal_hook): Handle edge summaries.
2774 (inline_edge_duplication_hook): New hook.
2775 (inline_summary_alloc): Alloc hooks.
2776 (initialize_growth_caches): Do not register removal hooks.
2777 (free_growth_caches); Do not free removal hook.
2778 (dump_inline_edge_summary): New function.
2779 (dump_inline_summary): Use it.
2780 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2781 (inline_update_callee_summaries): New function.
2782 (inline_merge_summary): Use it.
2783 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2784 (read_inline_edge_summary): New function.
2785 (inline_read_section): Use it.
2786 (write_inline_edge_summary): New function.
2787 (inline_write_summary): Use it.
2788 (inline_free_summary): Free edge new holders.
2789 * tree-inline.c (copy_bb): Update.
2791 2011-04-26 Jason Merrill <jason@redhat.com>
2793 * tree-eh.c (lower_try_finally_switch): Create the label along with
2794 the CASE_LABEL_EXPR.
2796 2011-04-26 David S. Miller <davem@davemloft.net>
2797 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2799 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2800 * configure: Regenerate.
2802 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2805 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2807 (VEC_reduc): New code iterator and splitters for vector reduction.
2808 (VEC_reduc_name): Ditto.
2809 (VEC_reduc_rtx): Ditto.
2810 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2811 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2813 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2814 support for extracting SF on VSX.
2816 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2817 generating xscvspdp.
2818 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2819 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2820 double add, minimum, maximum vector reduction.
2821 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2822 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2823 optimize double vector reduction.
2824 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2826 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2828 * config/fr30/fr30.h (inhibit_libc): Don't define.
2829 * config/m32r/m32r-protos.h: Correct comment.
2830 * config/v850/v850.h (GHS_default_section_names,
2831 GHS_current_section_names): Use tree, not union tree_node *.
2833 2011-04-26 Xinliang David Li <davidxl@google.com>
2835 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2836 * c-family/c-opts.c (c_common_handle_option): Set
2837 warn_maybe_uninitialized.
2838 * opts.c (common_handle_option): Ditto.
2839 * common.opt: New option.
2840 * tree-ssa.c (warn_uninit): Add one more parameter.
2841 (warn_uninitialized_var): Pass warning code.
2842 * tree-flow.h: Interface change.
2845 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2847 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2848 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2849 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2851 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2853 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2854 * config/mips/mips.opt (mmips-tfile): Remove.
2856 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2857 mips-tdump reference to ...
2858 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2859 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2860 reference by Tru64 UNIX.
2862 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2865 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2866 is error_mark_node, set value to NULL.
2868 PR tree-optimization/48734
2869 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2870 if return value from maybe_fold_*_comparsions isn't something
2871 the code is prepared to handle.
2873 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2875 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2877 (ext_QIreg_nomode_operands): Remove.
2878 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2882 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2884 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2886 2011-04-26 Richard Guenther <rguenther@suse.de>
2888 * c-typeck.c (build_unary_op): Do not expand array-refs via
2889 pointer arithmetic. Only adjust qualifiers for function types.
2891 2011-04-26 Richard Guenther <rguenther@suse.de>
2894 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2895 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2896 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2897 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2899 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2901 * doc/extend.texi: Document __underlying_type.
2903 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2905 * config/rs6000/titan.md (automata_option "progress"): Remove.
2907 2011-04-25 Jeff Law <law@redhat.com>
2909 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2911 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2913 * system.h (ENUM_BITFIELD): Remove.
2915 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2916 Eric Botcazou <ebotcazou@adacore.com>
2918 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2919 for STORE_FLAG_VALUE==-1 case.
2921 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2924 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2925 LEGITIMATE_PIC_OPERAND_P.
2927 2011-04-24 Jan Hubicka <jh@suse.cz>
2929 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2931 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2932 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2933 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2934 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2935 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2936 Sanity check predicate length.
2937 (remap_predicate): Likewise; sanity check jump functions.
2938 (inline_read_section, inline_write_summary): Sanity check
2941 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2944 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2945 __is_literal_type, and __is_trivial; update throughout about
2946 possibly cv-qualified void types.
2948 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2950 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2951 testsuite and make it version agnostic.
2953 2011-04-22 Jan Hubicka <jh@suse.cz>
2955 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2957 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2960 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2961 to VOID_TYPE even around MODIFY_EXPR.
2963 2011-04-22 Mike Stump <mikestump@comcast.net>
2965 * gensupport.c (read_md_rtx): Fix typo in comment.
2966 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2969 2011-04-22 Jan Hubicka <jh@suse.cz>
2971 * gengtype.c (open_base_files): Add ipa-inline.h include.
2972 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2973 ipa-prop.c; update all uses.
2974 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2975 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2976 merge summary of inlined function into former caller.
2977 * ipa-inline.c (max_benefit): Remove.
2978 (edge_badness): Compensate for removal of benefits.
2979 (update_caller_keys): Use
2980 reset_node_growth_cache/reset_edge_growth_cache.
2981 (update_callee_keys): Likewise.
2982 (update_all_callee_keys): Likewise.
2983 (inline_small_functions): Do not collect max_benefit; do not reset
2984 estimated_growth; call free_growth_caches and initialize_growth_caches.
2985 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2986 struct size_time_entry): New structures.
2987 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2988 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2989 and estimated_growth.
2990 (edge_growth_cache_entry): New structure.
2991 (node_growth_cache, edge_growth_cache): New global vars.
2992 (estimate_growth): Turn into inline.
2993 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2994 initialize_growth_caches, free_growth_caches): Declare.
2995 (estimate_edge_growth): Rewrite.
2996 (estimate_edge_time): Implement as inline cache lookup.
2997 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2999 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3000 (NUM_CONDITIONS): New constant.
3001 (predicate_conditions): New enum.
3002 (IS_NOT_CONSTANT): New constant.
3003 (edge_removal_hook_holder): New var.
3004 (node_growth_cache, edge_growth_cache): New global vars.
3005 (true_predicate, single_cond_predicate, false_predicate,
3006 not_inlined_predicate, add_condition, add_clause, and_predicates,
3007 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3008 dump_clause, dump_predicate, account_size_time,
3009 evaulate_conditions_for_edge): New functions.
3010 (inline_summary_alloc): Move to heap.
3011 (inline_node_removal_hook): Clear condition and entry vectors.
3012 (inline_edge_removal_hook): New function.
3013 (initialize_growth_caches, free_growth_caches): New function.
3014 (dump_inline_summary): Update.
3015 (edge_execution_predicate): New function.
3016 (will_be_nonconstant_predicate): New function.
3017 (estimate_function_body_sizes): Compute BB and constantness predicates.
3018 (compute_inline_parameters): Do not clear estimated_growth.
3019 (estimate_edge_size_and_time): New function.
3020 (estimate_calls_size_and_time): New function.
3021 (estimate_callee_size_and_time): New function.
3022 (remap_predicate): New function.
3023 (inline_merge_summary): New function.
3024 (do_estimate_edge_time): New function based on...
3025 (estimate_edge_time): ... this one.
3026 (do_estimate_edge_growth): New function.
3027 (do_estimate_growth): New function based on....
3028 (estimate_growth): ... this one.
3029 (inline_analyze_function): Analyze after deciding on jump functions.
3030 (inline_read_section): New function.
3031 (inline_read_summary): Use it.
3032 (inline_write_summary): Write all the new data.
3033 * ipa-prop.c (ipa_get_param_decl_index): Export.
3034 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3035 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3037 (ipa_get_lattice): Move here from ipa-cp.c
3038 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3039 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3040 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3041 cgraph_edge_inlinable_p): Remove.
3042 * cgraphunit.c: Include ipainline.h
3043 (cgraph_process_new_functions): Update call of
3044 compute_inline_parameters.
3046 2011-04-22 Richard Guenther <rguenther@suse.de>
3048 * tree.c (build_int_cst): Properly create canonicalized integer
3050 (build_int_cst_type): Remove scary comments.
3052 2011-04-22 Xinliang David Li <davidxl@google.com>
3054 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3055 by default when -Wno-error is not specified.
3056 * opts-global.c (decode_options): Remove call to
3057 control_warning_options.
3059 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3061 PR tree-optimization/48717
3062 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3063 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3065 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3067 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3068 definition where used.
3070 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3073 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3074 TREE_STATIC variables declared inside of some OpenMP construct.
3076 2011-04-22 Martin Jambor <mjambor@suse.cz>
3079 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3081 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3084 * c-typeck.c (pop_init_level): Do not warn about initializing
3087 2011-04-22 Alan Modra <amodra@gmail.com>
3089 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3090 when returning call_cookie.
3091 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3092 pointers, to functions with no more vector args than the current
3093 function, and some non-local calls for ABI_V4.
3094 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3095 sibcall_nonlocal_aix64): Combine to ..
3096 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3097 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3098 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3099 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3100 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3102 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3103 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3104 sibcall_value_symbolic_64): Delete.
3106 2011-04-21 Xinliang David Li <davidxl@google.com>
3108 * cgraph.h: Remove pid.
3109 * cgraph.c: Remove pid.
3110 * value-prof.c (init_node_map): New function.
3111 (del_node_map): New function.
3112 (find_func_by_funcdef_no): New function.
3113 (gimple_ic_transform): Call new function.
3114 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3115 * function.c (get_last_funcdef_no): New function.
3116 * function.h (get_last_funcdef_no): New function.
3117 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3118 to libgcov function.
3119 (tree-profiling): Call node map init and delete function.
3121 2011-04-21 Ian Lance Taylor <iant@google.com>
3123 * godump.c (go_format_type): Use exported Go name for anonymous
3126 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3128 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3129 Call builtin_function_type_list instead of builtin_function_type.
3130 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3132 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3134 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3135 build_function_type_list instead of build_function_type.
3136 Delete variable `endlink'.
3138 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3140 * config/s390/s390.c (s390_init_builtins): Call
3141 build_function_type_list instead of build_function_type.
3143 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3145 * config/ia64/ia64.c (ia64_init_builtins): Call
3146 build_function_type_list instead of builtin_function_type.
3148 2011-04-21 Easwaran Raman <eraman@google.com>
3150 * cfgexpand.c (stack_var): Remove OFFSET...
3151 (add_stack_var): ...and its reference here...
3152 (expand_stack_vars): ...and here.
3153 (stack_var_cmp): Sort by descending order of size.
3154 (partition_stack_vars): Change heuristic.
3155 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3156 (dump_stack_var_partition): Add newline after each partition.
3158 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3159 Jeff Law <law@redhat.com>
3161 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3162 * gengtype.c (matching_file_name_substitute): Likewise.
3164 2011-04-21 Richard Guenther <rguenther@suse.de>
3167 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3169 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3171 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3173 2011-04-21 Richard Guenther <rguenther@suse.de>
3175 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3178 2011-04-21 Richard Guenther <rguenther@suse.de>
3180 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3181 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3182 Use DECL_P, not SSA_VAR_P.
3183 (ptr_derefs_may_alias_p): Likewise.
3184 (ptr_deref_may_alias_ref_p_1): Likewise.
3185 (decl_refs_may_alias_p): Likewise.
3186 (refs_may_alias_p_1): Likewise.
3187 (ref_maybe_used_by_call_p_1): Likewise.
3188 (call_may_clobber_ref_p_1): Likewise.
3189 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3190 are either MEM_REF or TARGET_MEM_REF.
3191 (indirect_refs_may_alias_p): Likewise.
3192 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3193 for MEM_EXPR of indirect calls.
3195 2011-04-21 Tristan Gingold <gingold@adacore.com>
3197 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3198 (dst_file_info_struct): Remove flen field.
3199 (lookup_filename): Remove code that set flen field.
3201 2011-04-21 Tristan Gingold <gingold@adacore.com>
3203 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3205 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3209 vec_extract and vec_concat for non-SSE4_1 targets.
3211 2011-04-21 Richard Guenther <rguenther@suse.de>
3213 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3216 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3218 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3220 (FILE): Don't undefine.
3222 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3224 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3226 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3228 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3229 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3230 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3232 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3233 definitions where used.
3234 * config/microblaze/microblaze.h (struct microblaze_args): Use
3235 rtx, not struct rtx_def *.
3236 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3238 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3239 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3240 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3241 not struct rtx_def *.
3242 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3244 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3246 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3248 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3250 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3251 operand_equal_p to compare DR_BASE_ADDRESSes.
3252 (vect_check_interleaving): Likewise.
3254 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3257 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3258 for all Neon struct constants.
3260 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3262 * target.def (legitimate_constant_p): New hook.
3263 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3264 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3265 * doc/tm.texi: Regenerate.
3266 * hooks.h (hook_bool_mode_rtx_true): Declare.
3267 * hooks.c (hook_bool_mode_rtx_true): Define.
3268 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3269 * calls.c (precompute_register_parameters): Replace uses of
3270 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3271 (emit_library_call_value_1): Likewise.
3272 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3273 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3274 * ira-costs.c (scan_one_insn): Likewise.
3275 * recog.c (general_operand, immediate_operand): Likewise.
3276 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3277 * reload1.c (init_eliminable_invariants): Likewise.
3279 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3281 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3282 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3285 * config/alpha/predicates.md (input_operand): Update call to
3286 alpha_legitimate_constant_p.
3288 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3289 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3290 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3291 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3292 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3293 (arm_legitimate_constant_p): New functions.
3294 (arm_cannot_force_const_mem): Make static.
3296 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3298 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3299 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3300 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3301 instead of bfin_legitimate_constant_p.
3302 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3303 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3305 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3307 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3309 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3310 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3311 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3312 (frv_legitimate_constant_p): Make static. Add a mode argument.
3314 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3315 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3316 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3318 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3319 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3320 * config/i386/i386.c (legitimate_constant_p): Rename to...
3321 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3323 (ix86_cannot_force_const_mem): Update accordingly.
3324 (ix86_legitimate_address_p): Likewise.
3325 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3326 * config/i386/i386.md: Update commentary.
3328 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3329 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3330 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3331 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3333 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3335 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3336 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3337 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3338 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3340 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3341 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3342 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3344 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3345 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3346 (m32r_legitimate_constant_p): New function.
3348 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3349 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3350 LEGITIMATE_CONSTANT_P.
3351 (LEGITIMATE_CONSTANT_P): Delete.
3352 * config/m68k/m68k.c (m68k_expand_prologue): Call
3353 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3354 (m68k_legitimate_constant_p): New function.
3355 * config/m68k/m68k.md: Update comments.
3357 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3358 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3359 (mcore_legitimate_constant_p): New function.
3361 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3362 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3363 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3364 Add a mode argument.
3365 (mep_legitimate_address): Update accordingly.
3366 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3368 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3370 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3371 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3372 static. Check OP's mode for VOIDmode.
3373 (microblaze_legitimate_constant_p): New function.
3374 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3376 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3377 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3378 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3379 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3380 * config/mips/predicates.md: Update comments.
3382 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3383 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3384 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3385 (mmix_legitimate_constant_p): Make static, return a bool, and take
3387 (mmix_print_operand_address): Update accordingly.
3389 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3391 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3392 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3393 static. Add a mode argument.
3394 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3396 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3398 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3399 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3400 (pa_legitimate_constant_p): New function.
3402 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3404 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3405 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3406 (pdp11_legitimate_constant_p): New function.
3408 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3409 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3410 (rs6000_legitimate_constant_p): New function.
3412 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3413 (rx_legitimate_constant_p): ...this.
3414 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3415 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3416 (rx_legitimate_constant_p): ...this.
3417 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3418 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3420 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3421 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3422 * config/s390/s390.c (legitimate_constant_p): Rename to...
3423 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3424 and add a mode argument.
3425 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3427 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3429 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3430 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3431 (sh_legitimate_constant_p): New function.
3433 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3434 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3435 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3436 (legitimate_constant_p): Rename to...
3437 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3439 (constant_address_p): Update accordingly.
3441 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3442 argument and return a bool.
3443 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3444 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3445 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3446 (spu_rtx_costs): Update accordingly.
3447 * config/spu/predicates.md (vec_imm_operand): Likewise.
3449 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3451 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3452 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3453 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3455 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3456 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3457 * config/vax/vax.c (legitimate_constant_p): Likewise.
3459 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3460 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3461 (xtensa_legitimate_constant_p): New function.
3463 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3465 * target.def (cannot_force_const_mem): Add a mode argument.
3466 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3467 * doc/tm.texi: Regenerate.
3468 * hooks.h (hook_bool_mode_rtx_false): Declare.
3469 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3470 (hook_bool_mode_const_rtx_true): Likewise.
3471 (hook_bool_mode_rtx_false): New function.
3472 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3473 to be non-VOID. Update call to cannot_force_const_mem.
3474 (find_reloads): Update accordingly.
3475 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3476 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3478 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3479 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3480 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3481 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3482 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3483 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3484 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3485 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3486 (m68k_cannot_force_const_mem): ...this new function.
3487 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3489 (mips_const_insns, mips_legitimize_const_move): Update calls.
3490 (mips_secondary_reload_class): Likewise.
3491 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3492 (pa_cannot_force_const_mem): ...this new function.
3493 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3494 (rs6000_cannot_force_const_mem): ...this new function.
3495 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3497 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3498 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3500 (xtensa_cannot_force_const_mem): ...this new function.
3502 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3504 * config/mips/mips.c (mips16_build_function_stub): Call
3505 build_function_type_list instead of build_function_type.
3506 (mips16_build_call_stub): Likewise.
3508 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3510 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3511 instead of build_function_type.
3513 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3515 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3516 instead of build_function_type.
3518 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3521 * config/i386/i386.md (insv): Change operand 0 constraint to
3522 "register_operand". Change operand 1 and 2 constraint to
3523 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3524 * config/i386/sse.md (sse4_1_pinsrb): Export.
3525 (sse2_pinsrw): Ditto.
3526 (sse4_1_pinsrd): Ditto.
3527 (sse4_1_pinsrq): Ditto.
3528 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3529 * config/i386/i386.c (ix86_expand_pinsr): New.
3531 2011-04-20 Easwaran Raman <eraman@google.com>
3533 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3534 containing union type only with -fstrict-aliasing.
3536 2011-04-20 Jim Meyering <meyering@redhat.com>
3538 Remove useless if-before-free tests.
3539 * calls.c (expand_call, save_area): Likewise.
3540 * cfgcleanup.c (try_forward_edges): Likewise.
3541 * collect2.c (collect_execute): Likewise.
3542 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3543 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3544 * coverage.c (coverage_checksum_string): Likewise.
3545 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3546 * cselib.c (cselib_init): Likewise.
3547 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3548 (df_set_clean_cfg): Likewise.
3549 * function.c (free_after_compilation): Likewise.
3550 * gcc.c (do_spec_1, main): Likewise.
3551 * gcov.c (create_file_names): Likewise.
3552 * gensupport.c (identify_predicable_attribute): Likewise.
3553 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3554 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3555 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3556 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3557 * ipa-pure-const.c (local_pure_const): Likewise.
3558 * ipa-reference.c (propagate): Likewise.
3559 * ira-costs.c (free_ira_costs): Likewise.
3560 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3561 * matrix-reorg.c (mat_free): Likewise.
3562 * prefix.c (get_key_value): Likewise.
3563 * profile.c (compute_value_histograms): Likewise.
3564 * reload1.c (free_reg_equiv): Likewise.
3565 * sched-deps.c (free_deps): Likewise.
3566 * sel-sched-ir.c (fence_clear): Likewise.
3567 * sese.c (set_rename, if_region_set_false_region): Likewise.
3568 * tree-data-ref.c (free_rdg): Likewise.
3569 * tree-eh.c (lower_try_finally): Likewise.
3570 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3571 * tree-ssa-live.c (delete_var_map): Likewise.
3572 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3573 * tree-ssa-pre.c (phi_trans_add): Likewise.
3575 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3577 PR tree-optimization/48611
3578 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3579 beyond ERT_MUST_NOT_THROW region.
3581 2011-04-20 Catherine Moore <clm@codesourcery.com>
3583 * config/mips/mips.opt (mfix-24k): New.
3584 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3585 * config/mips/mips.md (length): Increase by 4 for stores if
3587 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3588 all noreorder if fixing 24K errata.
3589 * doc/invoke.texi: Document mfix-24k.
3591 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3593 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3594 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3596 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3598 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3599 (const_ok_for_op): ... to here.
3601 2011-04-20 Kai Tietz <ktietz@redhat.com>
3603 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3604 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3606 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3608 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3610 2011-04-20 Richard Guenther <rguenther@suse.de>
3612 PR tree-optimization/47892
3613 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3616 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3618 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3620 2011-04-20 Tristan Gingold <gingold@adacore.com>
3622 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3624 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3628 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3629 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3630 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3631 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3632 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3634 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3637 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3638 (avr_asm_named_section, avr_asm_output_aligned_common,
3639 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3640 New functions to update...
3641 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3642 (avr_asm_init_sections): Overwrite section callbacks for
3643 data_section, bss_section.
3644 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3646 (avr_file_end): ...here.
3648 2011-04-20 Richard Guenther <rguenther@suse.de>
3651 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3652 objects and types here. Adjust for their offset before comparing.
3654 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3656 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3659 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3661 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3662 (GIMPLE_H): Include $(INTERNAL_FN_H).
3663 (OBJS-common): Add internal-fn.o.
3664 (internal-fn.o): New rule.
3665 * internal-fn.def: New file.
3666 * internal-fn.h: Likewise.
3667 * internal-fn.c: Likewise.
3668 * gimple.h: Include internal-fn.h.
3669 (GF_CALL_INTERNAL): New gf_mask.
3670 (gimple_statement_call): Put fntype into a union with a new
3672 (gimple_build_call_internal): Declare.
3673 (gimple_build_call_internal_vec): Likewise.
3674 (gimple_call_same_target_p): Likewise.
3675 (gimple_call_internal_p): New function.
3676 (gimple_call_internal_fn): Likewise.
3677 (gimple_call_fntype): Return null for internal calls.
3678 (gimple_call_set_fntype): Assert that the function is not internal.
3679 (gimple_call_set_fn): Likewise.
3680 (gimple_call_set_fndecl): Likewise.
3681 (gimple_call_set_internal_fn): New function.
3682 (gimple_call_addr_fndecl): Handle null functions.
3683 (gimple_call_return_type): Likewise null types.
3684 * gimple.c (gimple_build_call_internal_1): New function.
3685 (gimple_build_call_internal): Likewise.
3686 (gimple_build_call_internal_vec): Likewise.
3687 (gimple_call_same_target_p): Likewise.
3688 (gimple_call_flags): Handle calls to internal functions.
3689 (gimple_call_fnspec): New function.
3690 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3691 (gimple_has_side_effects): Handle null functions.
3692 (gimple_rhs_has_side_effects): Likewise.
3693 (gimple_call_copy_skip_args): Handle calls to internal functions.
3694 * cfgexpand.c (expand_call_stmt): Likewise.
3695 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3696 * gimple-fold.c (gimple_fold_call): Handle null functions.
3697 (gimple_fold_stmt_to_constant_1): Don't fold
3698 calls to internal functions.
3699 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3701 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3702 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3703 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3704 (do_warn_unused_result): Likewise.
3705 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3706 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3707 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3708 the target of a call.
3709 (initialize_hash_element): Update accordingly.
3710 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3711 (iterative_hash_hashable_expr): Handle calls to internal functions.
3712 (print_expr_hash_elt): Likewise.
3713 * tree-ssa-pre.c (can_value_number_call): Likewise.
3714 (eliminate): Handle null functions.
3715 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3716 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3717 (find_func_aliases): Likewise.
3718 * value-prof.c (gimple_ic_transform): Likewise.
3719 (gimple_indirect_call_to_profile): Likewise.
3720 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3721 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3723 2011-04-19 Jan Hubicka <jh@suse.cz>
3725 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3726 * ipa-inline.c (inline_small_functions): Compute summaries first,
3727 populate heap later.
3729 2011-04-19 Jan Hubicka <jh@suse.cz>
3731 * cgraph.h (save_inline_function_body): Remove.
3732 * ipa-inline-transform.c: New file, broke out of...
3733 * ipa-inline.c: ... this one; Update toplevel comment.
3734 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3736 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3737 (cgraph_mark_inline_edge): Rename to inline_call; move to
3738 ipa-inline-transform.c.
3739 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3740 move to ipa-inline-transform.c
3741 (recursive_inlining, inline_small_functions, flatten_function,
3742 ipa_inline, inline_always_inline_functions,
3743 early_inline_small_functions): Update.
3744 (inline_transform): Move to ipa-inline-transform.c.
3745 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3747 * Makefile.in (ipa-inline-transform.o): New file.
3748 * cgraphunit.c (save_inline_function_body): Move to
3749 ipa-inline-transform.c
3751 2011-04-19 DJ Delorie <dj@redhat.com>
3753 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3754 registers if we already know there aren't any.
3755 (m32c_emit_epilogue): Don't emit a barrier here.
3756 (m32c_emit_eh_epilogue): Likewise.
3757 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3758 operands at expand time.
3759 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3761 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3762 duplicates. Provide aliases instead.
3763 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3764 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3767 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3769 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3770 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3771 (general_or_i64_p, sparc_register_move_cost): New function.
3773 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3775 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3776 Add lynx, mipssde. Sort table.
3778 2011-04-19 Xinliang David Li <davidxl@google.com>
3780 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3783 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3786 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3787 is a SUBREG with non-MODE_INT mode inside of it.
3789 2011-04-19 Martin Jambor <mjambor@suse.cz>
3791 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3792 also according to actual contants.
3793 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3794 (gimple_fold_call): Use it.
3795 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3797 2011-04-19 Martin Jambor <mjambor@suse.cz>
3799 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3800 non-pointer assignments.
3802 2011-04-19 Martin Jambor <mjambor@suse.cz>
3804 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3805 account anc_offset and otr_type from the indirect edge info.
3806 * ipa-prop.c (get_ancestor_addr_info): New function.
3807 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3808 get_ancestor_addr_info, call it.
3809 (ipa_note_param_call): Do not initialize information about polymorphic
3810 calls, return the indirect call graph edge. Remove the last
3811 parameter, adjust all callers.
3812 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3813 parameters. Initialize polymorphic information in the indirect edge.
3815 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3818 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3819 the types if they have different enumeration identifiers.
3821 2011-04-19 Jan Hubicka <jh@suse.cz>
3823 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3824 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3825 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3826 (optimize_function_for_size_p) ... here.
3828 2011-04-19 Richard Guenther <rguenther@suse.de>
3831 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3834 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3836 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3837 if DECL_NO_INLINE_WARNING_P is set on the function.
3839 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3842 * reload1.c (inc_for_reload): Return void. All callers changed.
3843 (emit_input_reload_insns): Don't try to delete previous output
3844 reloads to a register, or record spill_reg_store for autoincs.
3846 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3848 * gengtype.h: Updated copyright year.
3849 (struct input_file_st): Add inpisplugin field.
3850 (type_fileloc): New function.
3852 (write_typed_struct_alloc_def): Add gcc_assert.
3853 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3854 (write_typed_alloc_defns): Don't output for plugin files.
3855 (input_file_by_name): Clear inpisplugin field.
3856 (main): Set inpisplugin field for plugin files.
3858 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3860 * gengtype-state.c (string_eq): New.
3861 (read_state): Use string_eq instead of strcmp when creating the
3864 2011-04-19 Wei Guozhi <carrot@google.com>
3867 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3868 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3870 * config/arm/constraints.md (Uu): New constraint.
3871 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3873 2011-04-19 Tristan Gingold <gingold@adacore.com>
3875 * config.gcc (-*-*-*vms): Added.
3876 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3878 * config/vms/vms-ld.c: New file.
3879 * config/vms/vms-ar.c: New file.
3880 * config/vms/t-vmsnative: New file.
3882 2011-04-18 Xinliang David Li <davidxl@google.com>
3884 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3886 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3889 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3890 if TREE_TYPE (v) is non-NULL.
3892 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3893 gimple_get_virt_mehtod_for_binfo.
3894 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3895 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3897 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3899 2011-04-18 Michael Matz <matz@suse.de>
3900 Steve Ellcey <sje@cup.hp.com>
3902 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3903 use its mode as source mode if it isn't VOIDmode.
3905 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3907 * doc/passes.texi: Fill crossref nodes.
3909 2011-04-18 Jim Meyering <meyering@redhat.com>
3911 Fix doubled-word typos in comments and strings
3912 * config/alpha/vms-unwind.h: s/for for/for/
3913 * config/arm/unwind-arm.h: Likewise.
3914 * config/microblaze/microblaze.c: Likewise.
3915 * config/sh/constraints.md: s/in in/in/
3916 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3918 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3920 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3921 (AVX_FLOAT_MODE_P): Ditto.
3922 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3923 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3924 (AVX_VEC_FLOAT_MODE_P): Ditto.
3925 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3926 (UNSPEC_MASKSTORE): Ditto.
3927 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3928 Merge from <sse>_movmsk<ssemodesuffix> and
3929 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3930 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3932 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3933 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3934 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3936 2011-04-18 Jan Hubicka <jh@suse.cz>
3938 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3940 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3941 (want_inline_function_called_once_p): Break out the logic from
3943 (edge_badness): Ensure that profile is not misupdated.
3944 (lookup_recursive_calls): Prioritize by call frequencies.
3945 (inline_small_functions): Move program size estimates here;
3946 actually process whole queue even when unit growth has been
3947 met. (to properly compute inline_failed reasons and for the
3948 case unit size decrease.) Revisit comments on recursive inlining.
3949 (ipa_inline): Remove unit summary code; first inline hot calls
3950 of functions called once, cold calls next.
3951 (order, nnodes): Remove unused variables.
3952 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3953 (GTFILES): Remove ipa-inline.c
3954 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3956 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3958 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3960 2011-04-18 Jie Zhang <jie@codesourcery.com>
3961 Richard Earnshaw <rearnsha@arm.com>
3963 * arm.c (neon_builtin_type_bits): Remove.
3964 (typedef enum neon_builtin_mode): New.
3965 (T_MAX): Don't define.
3966 (typedef enum neon_builtin_datum): Remove bits, codes[],
3967 num_vars and base_fcode. Add mode, code and fcode.
3968 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3969 VAR10): Change accordingly.
3970 (neon_builtin_data[]): Change accordingly
3971 (arm_init_neon_builtins): Change accordingly.
3972 (neon_builtin_compare): Remove.
3973 (locate_neon_builtin_icode): Remove.
3974 (arm_expand_neon_builtin): Change accordingly.
3976 * arm.h (enum arm_builtins): Move to ...
3977 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3979 * arm.c (arm_builtin_decl): Declare.
3980 (TARGET_BUILTIN_DECL): Define.
3981 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3982 (arm_builtin_decls[]): New.
3983 (arm_init_neon_builtins): Store builtin declarations in
3984 arm_builtin_decls[].
3985 (arm_init_tls_builtins): Likewise.
3986 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3987 (arm_builtin_decl): New.
3989 2011-04-18 Richard Guenther <rguenther@suse.de>
3991 * tree.c (upper_bound_in_type): Build properly canonicalized
3993 (lower_bound_in_type): Likewise.
3995 2011-04-18 Richard Guenther <rguenther@suse.de>
3997 * gimple.h (gimple_call_addr_fndecl): New function.
3998 (gimple_call_fndecl): Use it.
3999 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4001 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4002 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4004 2011-04-18 Richard Guenther <rguenther@suse.de>
4007 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4009 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4012 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4013 DECL_IN_CONSTANT_POOL without RTL.
4015 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4016 Ira Rosen <ira.rosen@linaro.org>
4019 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4020 to match neon_vzip/vuzp/vtrn_internal.
4021 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4022 outputs explicitly dependent on both inputs.
4023 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4025 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4027 PR tree-optimization/48616
4028 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4029 whether the shift is by scalar or vector based on whether all SLP
4030 scalar stmts have the same rhs.
4032 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4034 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4037 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4039 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4042 2011-04-17 Jan Hubicka <jh@suse.cz>
4044 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4045 * cgrpahunit.c (cgraph_finalize_function): Do not set
4046 finalized_by_frontend.
4047 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4048 finalized_by_frontend.
4050 2011-04-17 Jan Hubicka <jh@suse.cz>
4052 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4053 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4054 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4055 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4057 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4059 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4061 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4064 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4065 is non-null before accessing it.
4066 (input_cgraph): Remove trailing spaces.
4068 2011-04-17 Revital Eres <revital.eres@linaro.org>
4070 * params.def (sms-min-sc): New param flag.
4071 * modulo-sched.c (sms_schedule): Use it.
4072 * doc/invoke.texi (sms-min-sc): Document it.
4074 2011-04-17 Jan Hubicka <jh@suse.cz>
4076 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4077 present, also set gimple_call_set_cannot_inline.
4078 * ipa-inline.c: Update toplevel comment.
4080 (cgraph_clone_inlined_nodes): Fix linebreaks.
4081 (cgraph_check_inline_limits): Restructure to ...
4082 (caller_growth_limits): ... this one; be more tolerant
4083 on growth in nested inline chains; add explanatory comment;
4084 fix stack accounting thinko introduced by previous patch.
4085 (cgraph_default_inline_p): Remove.
4086 (report_inline_failed_reason): New function.
4087 (can_inline_edge_p): New function.
4088 (can_early_inline_edge_p): New function.
4089 (leaf_node_p): Move upwards in file.
4090 (want_early_inline_function_p): New function.
4091 (want_inline_small_function_p): New function.
4092 (want_inline_self_recursive_call_p): New function.
4093 (cgraph_edge_badness): Rename to ...
4094 (edge_badness) ... this one; fix linebreaks.
4095 (update_edge_key): Update call of edge_baddness; add
4096 detailed dump about queue updates.
4097 (update_caller_keys): Use can_inline_edge_p and
4098 want_inline_small_function_p.
4099 (cgraph_decide_recursive_inlining): Rename to...
4100 (recursive_inlining): Use can_inline_edge_p and
4101 want_inline_self_recursive_call_p; simplify and remove no longer
4103 (cgraph_set_inline_failed): Remove.
4104 (add_new_edges_to_heap): Use can_inline_edge_p and
4105 want_inline_small_function_p.
4106 (cgraph_decide_inlining_of_small_functions): Rename to ...
4107 (inline_small_functions): ... this one; cleanup; use
4108 can/want predicates; cleanup debug ouput; work edges till fibheap
4109 is exhausted and do not stop once unit growth is reached; remove
4110 later loop processing remaining edges.
4111 (cgraph_flatten): Rename to ...
4112 (flatten_function): ... this one; use can_inline_edge_p
4113 and can_early_inline_edge_p predicates.
4114 (cgraph_decide_inlining): Rename to ...
4115 (ipa_inline): ... this one; remove unreachable nodes before
4116 inlining functions called once; simplify the pass.
4117 (cgraph_perform_always_inlining): Rename to ...
4118 (inline_always_inline_functions): ... this one; use
4119 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4120 (cgraph_decide_inlining_incrementally): Rename to ...
4121 (early_inline_small_functions): ... this one; simplify
4122 using new predicates; cleanup; make dumps prettier.
4123 (cgraph_early_inlining): Rename to ...
4124 (early_inliner): newer inline regular functions into always-inlines;
4125 fix updating of call stmt summaries.
4126 (pass_early_inline): Update for new names.
4127 (inline_transform): Fix formating.
4128 (gate_cgraph_decide_inlining): Rename to ...
4129 (pass_ipa_inline): ... this one.
4130 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4131 * ipa-inline-analysis.c (dump_inline_summary): Update.
4132 (compute_inline_parameters): Do not compute disregard_inline_limits;
4133 look for mismatching arguments.
4134 (estimate_growth): Fix handlig of non-trivial self recursion.
4135 (inline_read_summary): Do not read info->disregard_inline_limits.
4136 (inline_write_summary): Do not write info->disregard_inline_limits.
4137 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4138 and move all checks into can_inline_edge_p predicate; re-enable code
4139 comparing optimization levels.
4140 (expand_call_inline): Do not test inline_forbidden_into_p.
4141 * Makefile.in (ipa-inline.o): Update arguments.
4143 2011-04-17 Revital Eres <revital.eres@linaro.org>
4145 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4147 2011-04-17 Revital Eres <revital.eres@linaro.org>
4149 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4151 2011-04-17 Michael Matz <matz@suse.de>
4153 PR tree-optimization/48622
4155 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4156 in same order as they're written.
4158 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4160 * config/pa/predicates.md: Reorganize and simplify predicates.
4161 Eliminate duplicate code checks.
4162 (arith_operand): Rename to arith14_operand
4163 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4164 * config/pa/pa.md: Use renamed operands.
4165 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4166 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4167 arith11_operand, adddi3_operand, indexed_memory_operand,
4168 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4169 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4170 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4171 move_dest_operand, move_src_operand, prefetch_cc_operand,
4172 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4173 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4174 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4175 div_operand, int5_operand, movb_comparison_operator,
4176 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4177 arith_double_operand, ireg_operand, lhs_lshift_operand,
4178 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4179 integer_store_memory_operand): Likewise.
4180 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4181 (integer_store_memory_operand, read_only_operand,
4182 function_label_operand, borx_reg_operand,
4183 non_hard_reg_operand): Likewise.
4184 (eq_neq_comparison_operator): Delete unused operator.
4185 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4186 function_label_operand.
4187 (emit_move_sequence): Likewise.
4189 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4191 * config/i386/sse.md (sseunpackmode): New mode attribute.
4192 (ssepackmode): Ditto.
4193 (vec_pack_trunc_<mode>): Macroize expander from
4194 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4195 (vec_unpacks_lo_<mode>): Macroize expander from
4196 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4197 (vec_unpacks_hi_<mode>): Macroize expander from
4198 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4199 (vec_unpacku_lo_<mode>): Macroize expander from
4200 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4201 (vec_unpacku_hi_<mode>): Macroize expander from
4202 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4203 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4204 ix86_expand_sse4_unpack.
4205 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4207 2011-04-16 Jan Hubicka <jh@suse.cz>
4209 * cgraphbuild.c: Include ipa-inline.h.
4210 (reset_inline_failed): Use initialize_inline_failed.
4211 * cgraph.c: Include ipa-inline.h.
4212 (cgraph_create_node_1): Do not initialize estimated_growth.
4213 (initialize_inline_failed): More to ipa-inline-analysis.c
4214 (dump_cgraph_node): Do not dump inline flags.
4215 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4216 and disregard_inline_limits flags.
4217 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4218 time, size, estimated_growth.
4219 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4221 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4222 DECL_DISREGARD_INLINE_LIMITS.
4223 (cgraph_analyze_function): Do not initialize
4224 node->local.disregard_inline_limits.
4225 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4226 inlinable, versionable and disregard_inline_limits.
4227 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4228 cgraph_check_inline_limits, cgraph_default_inline_p,
4229 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4230 add_new_edges_to_heap): Update.
4231 (cgraph_decide_inlining_of_small_function): Update; set
4232 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4233 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4234 cgraph_decide_inlining_incrementally): Update.
4235 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4236 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4237 time, size and estimated_growth parameters.
4238 (estimate_edge_growth): Update.
4239 (initialize_inline_failed): Declare.
4240 * ipa-split.c: Include ipa-inline.h
4241 (execute_split_functions): Update.
4242 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4243 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4244 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4245 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4246 estimated_growth to INT_MIN.
4247 (inline_node_duplication_hook): Likewise.
4248 (dump_inline_summary): Dump new fields.
4249 (compute_inline_parameters): Update.
4250 (estimate_edge_time, estimate_time_after_inlining,
4251 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4252 inline_write_summary):
4253 (initialize_inline_failed): Move here from cgraph.c.
4254 * tree-sra.c: Include ipa-inline.h.
4255 (ipa_sra_preliminary_function_checks): Update.
4256 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4259 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4261 * config/i386/sse.md (V16): New mode iterator.
4263 (AVXMODEQI, AVXMODEDI): Remove.
4264 (sse2, sse3): New mode attribute.
4265 (mov<mode>): Use V16 mode iterator.
4266 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4267 (push<mode>1): Use V16 mode iterator.
4268 (movmisalign<mode>): Ditto.
4269 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4270 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4271 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4272 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4273 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4274 avx_movdqu<avxmodesuffix>.
4275 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4276 *avx_movdqu<avxmodesuffix>.
4277 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4278 avx_lddqu<avxmodesuffix>.
4279 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4280 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4281 avx_movnt<AVXMODEDI:mode>.
4282 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4283 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4285 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4288 * haifa-sched.c (prune_ready_list, schedule_block): Use
4289 sched_pressure_p rather than flag_sched_pressure.
4291 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4293 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4294 cgraph_get_node instead of cgraph_get_create_node.
4296 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4298 * cfgexpand.c (expand_debug_expr): Use
4299 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4301 2011-04-15 Michael Matz <matz@suse.de>
4303 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4304 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4305 * function.c (gimplify_parameters): Ditto.
4306 * gimplify.c (gimplify_vla_decl): Ditto.
4308 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4309 (gimple_call_set_alloca_for_var): New inline function.
4310 (gimple_call_alloca_for_var_p): Ditto.
4311 * gimple.c (gimple_build_call_from_tree): Remember
4312 CALL_ALLOCA_FOR_VAR_P state.
4313 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4315 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4316 calls if they were for VLA objects.
4318 2011-04-15 Martin Jambor <mjambor@suse.cz>
4320 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4323 2011-04-15 Martin Jambor <mjambor@suse.cz>
4326 * tree-emutls.c (lower_emutls_function_body): Call
4327 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4330 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4332 * c-decl.c (detect_field_duplicates): Call
4333 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4335 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4337 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4338 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4339 * ipa-pure-const.c (check_stmt): Call it.
4340 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4342 2011-04-15 Richard Guenther <rguenther@suse.de>
4344 PR tree-optimization/48290
4345 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4346 Properly decide inhibiting propagation based on the valueized
4347 operand. Do loop-closed SSA form preserving here ...
4348 (init_copy_prop): ... not here.
4350 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4353 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4354 (*ieee_smax<mode>3): Likewise.
4356 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4358 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4359 Replace match_operand with match_dup for the third operand in
4362 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4364 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4365 to track processing of conditionals. Update all callers.
4366 (try_combine, simplify_if_then_else): Update.
4368 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4370 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4373 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4375 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4376 instead of match_operand for operand 3.
4378 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4380 * recog.h (insn_operand_data): Add an "allows_mem" field.
4381 * genoutput.c (output_operand_data): Initialize it.
4382 * optabs.c (maybe_legitimize_operand_same_code): New function.
4383 (maybe_legitimize_operand): Use it when matching the original
4386 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4388 * gimplify.c: Fix issues in comments throughout.
4389 (voidify_wrapper_expr): Fix long line.
4390 (build_stack_save_restore): Likewise.
4391 (gimplify_loop_expr): Likewise.
4392 (gimplify_compound_lval): Likewise.
4393 (gimplify_init_ctor_eval): Likewise.
4394 (gimplify_modify_expr_rhs): Likewise.
4395 (omp_notice_threadprivate_variable): Likewise.
4397 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4399 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4400 original one if this is not a builtin function.
4402 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4405 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4406 offset it as needed based on top 2 bits in operands[3], change
4407 MEM mode to SFmode and mask those 2 bits away from operands[3].
4409 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4411 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4412 change from objc_declare_protocols() to objc_declare_protocol().
4414 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4416 * config/i386/sse.md (sse4_1): New mode attribute.
4417 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4418 avx_blend<ssemodesuffix><avxmodesuffix> and
4419 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4420 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4421 avx_blendv<ssemodesuffix><avxmodesuffix> and
4422 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4423 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4424 avx_dp<ssemodesuffix><avxmodesuffix> and
4425 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4426 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4427 (sse4_1_packusdw): Merge with *avx_packusdw.
4428 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4429 (sse4_1_pblendw): Merge with *avx_pblendw.
4430 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4431 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4432 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4434 (sse4_1_round<ssescalarmodesuffix>): Merge with
4435 *avx_round<ssescalarmodesuffix>.
4436 (aesenc): Merge with *avx_aesenc.
4437 (aesenclast): Merge with *avx_aesenclast.
4438 (aesdec): Merge with *avx_aesdec.
4439 (aesdeclast): Merge with *avx_aesdeclast.
4440 (pclmulqdq): Merge with *pclmulqdq.
4441 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4443 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4445 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4448 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4449 (align_local_variable): This. Update DECL_ALIGN.
4450 (add_stack_var): Updated.
4451 (expand_one_stack_var): Likewise.
4453 2011-04-14 Richard Guenther <rguenther@suse.de>
4455 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4457 (dse_initialize_block_local_data, dse_leave_block,
4458 record_voperand_set, get_stmt_uid): Likewise.
4459 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4460 (dse_optimize_stmt): Remove voperand set handling code.
4461 Simplify and improve to handle any kind of killing stmt.
4462 (dse_record_phi): Remove.
4463 (dse_enter_block): Simplify.
4464 (tree_ssa_dse): Likewise.
4465 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4467 2011-04-14 Jan Hubicka <jh@suse.cz>
4469 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4470 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4471 (cgraph_local_info): Remove inline_summary.
4472 * ipa-cp.c: Include ipa-inline.h.
4473 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4474 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4476 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4477 (input_overwrite_node): Do not set inline summary.
4478 (input_node): Do not stream inline summary.
4479 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4480 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4481 growth; we do not have inline parameters computed for that anyway.
4482 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4483 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4484 (inline_summary_t): New type and VECtor.
4485 (debug_inline_summary, dump_inline_summaries): Declare.
4486 (inline_summary): Use VOCtor.
4487 (estimate_edge_growth): Kill hack computing call stmt size directly.
4488 * lto-section-in.c (lto_section_name): Add inline section.
4489 * ipa-inline-analysis.c: Include lto-streamer.h
4490 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4491 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4492 (inline_summary_vec): Define.
4493 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4494 dump_inline_summaries): New functions.
4495 (estimate_function_body_sizes): Properly compute size/time of outgoing
4497 (compute_inline_parameters): Alloc inline_summary; do not compute
4498 size/time of incomming calls.
4499 (estimate_edge_time): Avoid missing time summary hack.
4500 (inline_read_summary): Read inline summary info.
4501 (inline_write_summary): Write inline summary info.
4502 (inline_free_summary): Free all hooks and inline summary vector.
4503 * lto-streamer.h: Add LTO_section_inline_summary section.
4504 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4505 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4507 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4509 * tree-vectorizer.h (vect_strided_store_supported): Add a
4510 HOST_WIDE_INT argument.
4511 (vect_strided_load_supported): Likewise.
4512 (vect_permute_store_chain): Return void.
4513 (vect_transform_strided_load): Likewise.
4514 (vect_permute_load_chain): Delete.
4515 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4516 count argument. Check that the count is a power of two.
4517 (vect_strided_load_supported): Likewise.
4518 (vect_permute_store_chain): Return void. Update after above changes.
4519 Assert that the access is supported.
4520 (vect_permute_load_chain): Likewise.
4521 (vect_transform_strided_load): Return void.
4522 * tree-vect-stmts.c (vectorizable_store): Update calls after
4523 above interface changes.
4524 (vectorizable_load): Likewise.
4525 (vect_analyze_stmt): Don't check for strided powers of two here.
4527 2011-04-14 Richard Guenther <rguenther@suse.de>
4529 PR tree-optimization/48590
4530 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4531 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4532 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4533 BUILT_IN_STACK_SAVE.
4534 * tree-ssa-dce.c (propagate_necessity): Handle
4535 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4537 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4539 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4542 2011-04-14 Richard Guenther <rguenther@suse.de>
4544 * tree.h (get_object_alignment_1): Declare.
4545 * builtins.c (get_object_alignment_1): Split out worker from ...
4546 (get_object_alignment): ... here.
4547 * fold-const.c (get_pointer_modulus_and_residue): Use
4548 get_object_alignment_1.
4550 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4552 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4554 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4555 parameter. Generalise code to handle arrays as well as vectors.
4556 (vect_setup_realignment): Update accordingly.
4557 * tree-vect-stmts.c (vectorizable_store): Likewise.
4558 (vectorizable_load): Likewise.
4560 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4562 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4563 within the per-copy loop.
4565 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4567 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4570 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4572 * doc/options.texi (Negative): Explicitly mention that the
4573 Negative chain must be circular.
4575 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4577 * function.h (block_chainon): Declare.
4578 * function.c (block_chainon): Define.
4580 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4581 Eric Weddington <eric.weddington@atmel.com>
4582 Georg-Johann Lay <avr@gjlay.de>
4584 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4586 (avr_init_builtins, avr_expand_builtin,
4587 avr_expand_delay_cycles, avr_expand_unop_builtin,
4588 avr_expand_binop_builtin ): New functions.
4589 (avr_builtin_id): New enum
4590 (struct avr_builtin_description): New struct
4591 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4592 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4594 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4595 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4596 UNSPECV_DELAY_CYCLES): new enumeration values
4597 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4598 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4599 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4600 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4601 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4602 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4603 "fmulsu"): New insns
4605 * config/avr/avr-c.c: fix line endings
4606 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4607 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4608 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4609 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4610 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4612 * doc/extend.texi (AVR Built-in Functions): New node
4613 (Target Builtins): Add documentation of AVR
4616 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4619 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4620 alone. Error if non-const data has attribute progmem.
4622 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4624 * tree.h (struct tree_constructor): Include tree_typed instead of
4626 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4627 TS_TYPED instead of TS_COMMON.
4629 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4631 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4632 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4633 (sse2_psadbw): Merge with *avx_psadbw.
4634 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4635 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4636 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4637 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4638 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4639 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4640 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4641 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4642 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4643 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4644 (ssse3_palignrti): Merge with *avx_palignrti.
4646 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4648 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4649 * tree-ssanames.c (fini_ssanames): VEC_free it.
4650 (make_ssa_name_fn): Update for VECness of free_ssanames.
4651 (release_ssa_name, release_dead_ssa_names): Likewise.
4652 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4654 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4655 TS_TYPED instead of TS_COMMON.
4657 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4659 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4660 statistics_counter_event.
4661 * tree-ssa-copyrename.c (stats): Define.
4662 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4663 statistics_counter_event.
4664 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4665 (bswap_stats, widen_mul_stats): Define.
4666 (insert_reciprocals): Increment rdivs_inserted.
4667 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4668 rfuncs_inserted. Add calls to statistics_counter_event.
4669 (execute_cse_sincos_1): Increment inserted.
4670 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4671 statistics_counter_event.
4672 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4673 of bswap_stats. Add calls to statistics_counter_event.
4674 (convert_mult_to_widen): Increment widen_mults_inserted.
4675 (convert_plusminus_to_widen): Increment maccs_inserted.
4676 (convert_mult_to_fma): Increment fmas_inserted.
4677 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4678 calls to statistics_counter_event.
4680 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4682 PR rtl-optimization/48455
4683 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4684 `temp_costs->mem_cost'.
4686 2011-04-13 Jan Hubicka <jh@suse.cz>
4688 * ipa-inline.h: New file.
4689 * ipa-inline-analysis.c: New file. Broken out of ...
4690 * ipa-inline.c: ... this file; update toplevel comment;
4691 include ipa-inline.h
4692 (inline_summary): Move to ipa-inline.h
4693 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4694 ipa-inline-analysis.c.
4695 (cgraph_estimate_time_after_inlining): Rename to
4696 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4697 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4698 to estimate_edge_growth.
4699 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4700 rename to estimate_size_after_inlining.
4701 (cgraph_mark_inline_edge): Update for new naming convention.
4702 (cgraph_check_inline_limits): Likewise.
4703 (cgraph_edge_badness): Likewise.
4704 (cgraph_decide_recursive_inlining): Likewise.
4705 (cgraph_decide_inlining_of_small_functions): Likewise.
4706 (cgraph_decide_inlining_incrementally): Likewise.
4707 (cgraph_estimate_growth): Rename to estimate_growth; move to
4708 ipa-inline-analysis.c.
4709 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4710 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4711 (compute_inline_parameters): Likewise.
4712 (compute_inline_parameters_for_current): Likewise.
4713 (pass_inline_parameters): Likewise.
4714 (inline_indirect_intraprocedural_analysis): Likewise.
4715 (analyze_function): Rename to inline_analyze_function; likewise.
4716 (add_new_function): Move to ipa-inline-analysis.c.
4717 (inline_generate_summary): Likewise.
4718 (inline_read_summary): Likewise.
4719 (inline_write_summary): Likewise.
4720 * Makefile.in (ipa-inline-analysis.c): New file.
4722 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4724 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4725 * configure: Regenerate.
4727 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4729 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4730 instead of tree_common.
4731 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4733 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4734 TS_TYPED rather than TS_COMMON.
4735 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4737 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4740 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4741 r20 around calls of __tablejump_elpm__
4743 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4746 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4748 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4750 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4752 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4753 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4754 (cfi_vec): New typedef.
4755 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4756 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4757 (cie_cfi_vec): New static variable.
4758 (cie_cfi_head): Delete.
4759 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4760 declaration changed. Use vector rather than list operations.
4761 (new_cfi): Don't initialize the dw_cfi_next field.
4762 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4763 rather than list operations.
4764 (lookup_cfa): Use vector rather than list operations.
4765 (output_cfis): New argument upto. Accept a cfi_vec rather than
4766 a dw_cfi_ref list head as argument. All callers changed.
4767 Iterate over the vector using upto as a maximum index.
4768 (output_all_cfis): New static function.
4769 (output_fde): Use vector rather than list operations. Use the
4770 new upto argument for output_cfis rather than manipulating a
4772 (dwarf2out_begin_prologue): Change initializations to match
4774 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4775 from the vector length rather than searching for the end of a list.
4776 Use output_all_cfis.
4777 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4779 2011-04-13 Nick Clifton <nickc@redhat.com>
4781 * config/rx/rx.md (movmemsi): Do not use this pattern when
4782 volatile pointers are involved.
4784 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4786 * config/i386/sse.md (pinsrbits): Remove.
4787 (sse2_packsswb): Merge with *avx_packsswb.
4788 (sse2_packssdw): Merge with *avx_packssdw.
4789 (sse2_packuswb): Merge with *avx_packuswb.
4790 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4791 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4792 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4793 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4794 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4795 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4796 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4797 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4798 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4799 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4800 (sse2_loadld): Merge with *avx_loadld.
4801 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4802 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4803 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4804 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4805 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4807 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4809 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4811 * print-tree.c (print_node): Likewise.
4812 * tree-inline.c (copy_tree_r): Likewise.
4813 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4814 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4815 instead of TS_COMMON.
4816 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4817 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4818 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4819 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4820 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4822 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4824 (TREE_CHAIN): Check for a TS_COMMON structure.
4825 (TREE_TYPE): Check for a TS_TYPED structure.
4827 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4829 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4830 cgraph_get_create_node instead of cgraph_node.
4832 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4834 * c-parser.c (c_parser_initelt): Updated call to
4835 objc_build_message_expr.
4836 (c_parser_postfix_expression): Likewise.
4838 2011-04-12 Kai Tietz <ktietz@redhat.com>
4840 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4841 MASK_MS_BITFIELD_LAYOUT bit.
4843 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4845 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4846 assert it is always true.
4847 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4850 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4852 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4853 compiling Objective-C to be more efficient.
4855 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4857 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4860 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4862 * recog.h, genoutput.c, optabs.c: Revert last patch.
4864 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4867 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4869 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4871 * recog.h (insn_operand_data): Add an "allows_mem" field.
4872 * genoutput.c (output_operand_data): Initialize it.
4873 * optabs.c (maybe_legitimize_operand_same_code): New function.
4874 (maybe_legitimize_operand): Use it when matching the original
4877 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4879 * genpreds.c (process_define_predicate): Move most processing
4880 to gensupport.c. Continue to validate the expression.
4881 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4882 (process_define_predicate): Move processing to gensupport.c.
4883 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4884 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4885 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4887 (valid_predicate_name_p): New function, split out from old
4888 genpreds.c:process_define_predicate.
4889 (process_define_predicate): New function, combining code from
4890 old genpreds.c and genrecog.c functions.
4891 (process_rtx): Call it for DEFINE_PREDICATE and
4892 DEFINE_SPECIAL_PREDICATE.
4894 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4896 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4897 size of a '%A' memory reference.
4898 (T_DREG, T_QREG): New neon_builtin_type_bits.
4899 (arm_init_neon_builtins): Assert that the load and store operands
4900 are neon_struct_operands.
4901 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4902 (NEON_ARG_MEMORY): New builtin_arg.
4903 (neon_dereference_pointer): New function.
4904 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4905 Handle NEON_ARG_MEMORY.
4906 (arm_expand_neon_builtin): Update after above interface changes.
4907 Use NEON_ARG_MEMORY for loads and stores.
4908 * config/arm/predicates.md (neon_struct_operand): New predicate.
4909 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4910 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4911 (V_four_elem): Tweak formatting.
4912 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4913 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4914 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4915 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4916 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4917 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4918 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4919 Use %A in the output template.
4920 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4921 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4922 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4923 the width of the memory access. Remove post-increment.
4924 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4926 2011-04-12 Nick Clifton <nickc@redhat.com>
4928 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4929 instruction for interrupt handlers if the target is the basic V850
4931 (expand_epilogue): Likewise.
4933 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4935 PR rtl-optimization/48549
4936 * combine.c (propagate_for_debug): Also stop after BB_END of
4937 this_basic_block. Process LAST and just stop processing after it.
4938 (combine_instructions): If last_combined_insn has been deleted,
4939 set last_combined_insn to its PREV_INSN.
4941 2011-04-12 Richard Guenther <rguenther@suse.de>
4943 PR tree-optimization/46076
4944 * gimple.h (struct gimple_statement_call): Add fntype field.
4945 (gimple_call_fntype): Adjust.
4946 (gimple_call_set_fntype): New function.
4947 * gimple.c (gimple_build_call_1): Set the call function type.
4948 * gimplify.c (gimplify_call_expr): Preserve the function
4949 type the frontend used for the call.
4950 (gimplify_modify_expr): Likewise.
4951 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4953 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4955 * tree-ssa.c (useless_type_conversion_p): Function pointer
4956 conversions are useless.
4958 2011-04-12 Martin Jambor <mjambor@suse.cz>
4960 * cgraph.h (cgraph_node): Remove function declaration.
4961 (cgraph_create_node): Declare.
4962 (cgraph_get_create_node): Likewise.
4963 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4964 Updated all callers.
4965 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4966 the decl does not already exist. Call cgraph_get_create_node instead
4968 (cgraph_get_create_node): New function.
4969 (cgraph_same_body_alias): Update comment.
4970 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4971 assert it does not return NULL.
4972 (cgraph_update_edges_for_call_stmt): Likewise.
4973 (cgraph_clone_edge): Likewise.
4974 (cgraph_create_virtual_clone): Likewise.
4975 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4976 instead of cgraph_node.
4977 (cgraph_add_new_function): Call cgraph_create_node or
4978 cgraph_get_create_node instead of cgraph_node.
4979 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4980 instead of cgraph_node.
4981 (record_eh_tables): Likewise.
4982 (mark_address): Likewise.
4983 (mark_load): Likewise.
4984 (build_cgraph_edges): Call cgraph_get_create_node instead
4986 (rebuild_cgraph_edges): Likewise.
4987 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4988 instead of cgraph_node.
4989 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4991 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4992 cgraph_create_node instead of cgraph_node.
4993 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4995 * lto-cgraph.c (input_node): Likewise.
4996 * lto-streamer-in.c (input_function): Likewise.
4997 * varasm.c (mark_decl_referenced): Likewise.
4998 (assemble_alias): Likewise.
5000 2011-04-12 Martin Jambor <mjambor@suse.cz>
5002 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5003 instead of cgraph_node and assert it does not return NULL.
5004 * lto-streamer-in.c (lto_read_body): Likewise.
5005 * omp-low.c (new_omp_context): Likewise.
5006 (create_task_copyfn): Likewise.
5007 * tree-emutls.c (lower_emutls_function_body): Likewise.
5008 * matrix-reorg.c (transform_allocation_sites): Likewise.
5010 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5013 * c-typeck.c (build_asm_expr): Error out on attempts to use
5014 void type outputs or inputs for constraints that allow reg or
5017 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5018 Richard Earnshaw <rearnsha@arm.com>
5021 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5022 to use sign-magnitude offsets. Reject unsupported unaligned
5023 cases. Add detailed description in comments.
5024 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5025 condition from TARGET_32BIT to TARGET_ARM.
5027 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5029 * tree.h (struct typed_tree): New.
5030 (struct tree_common): Include it instead of tree_base.
5031 (TREE_TYPE): Update for new location of type field.
5032 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5033 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5034 (union tree_node): Add typed field.
5035 * treestruct.def (TS_TYPED): New.
5036 * lto-streamer.c (check_handled_ts_structures): Handle it.
5037 * tree.c (MARK_TS_TYPED): New macro.
5038 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5040 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5042 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5043 (force_nonfallthru): Do not alter the loop nest if no basic block
5046 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5048 * config/i386/sse.md (VI): New mode iterator.
5050 (AVX256MODEI): Ditto.
5051 (AVXMODEF4P): Ditto.
5052 (avxvecpsmode): Ditto.
5053 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5054 (sse2_andnot<mode>3): New expander.
5055 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5056 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5057 (<any_logic:code><mode>3): Use VI mode iterator.
5058 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5059 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5060 (*andnottf3): Handle AVX three-operand constraints.
5061 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5063 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5064 Robert Millan <rmh@gnu.org>
5066 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5067 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5068 GNU_USER_DYNAMIC_LINKER64): Define.
5069 (REG_NAME): Don't undefine.
5070 (MD_UNWIND_SUPPORT): Undefine.
5071 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5072 (REG_NAME): Don't undefine.
5073 (MD_UNWIND_SUPPORT): Undefine.
5074 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5076 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5078 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5079 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5081 2011-04-11 Xinliang David Li <davidxl@google.com>
5083 * value-profile.c (check_ic_target): New function.
5084 (gimple_ic_transform): Sanity check indirect call target.
5085 * gimple-low.c (gimple_check_call_args): Interface change.
5086 (gimple_check_call_matching_types): New function.
5087 * tree-inline.c (tree_can_inline_p): Call new function.
5089 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5091 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5092 tree-pretty-print.h & realmpfr.h.
5094 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5097 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5098 (setup_allocno_and_important_classes): Ditto.
5100 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5102 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5103 GNU_USER_DYNAMIC_LINKER.
5104 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5106 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5107 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5108 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5109 GNU_USER_TARGET_OS_CPP_BUILTINS.
5110 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5112 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5114 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5115 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5116 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5117 GNU_USER_TARGET_OS_CPP_BUILTINS.
5118 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5119 GNU_USER_DYNAMIC_LINKER.
5120 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5121 GNU_USER_TARGET_OS_CPP_BUILTINS.
5122 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5124 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5125 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5126 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5127 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5128 GNU_USER_DYNAMIC_LINKER64): Remove.
5129 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5131 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5132 GNU_USER_DYNAMIC_LINKER.
5133 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5134 GNU_USER_TARGET_OS_CPP_BUILTINS.
5135 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5136 GNU_USER_TARGET_OS_CPP_BUILTINS.
5137 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5138 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5139 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5140 GNU_USER_TARGET_OS_CPP_BUILTINS.
5141 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5142 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5143 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5144 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5145 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5146 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5147 GNU_USER_DYNAMIC_LINKER.
5148 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5149 GNU_USER_TARGET_OS_CPP_BUILTINS.
5150 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5151 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5152 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5153 GNU_USER_DYNAMIC_LINKER.
5154 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5156 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5158 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5159 GNU_USER_DYNAMIC_LINKER.
5160 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5161 GNU_USER_DYNAMIC_LINKERN32.
5162 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5163 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5164 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5165 GNU_USER_DYNAMIC_LINKER32.
5166 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5168 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5169 GNU_USER_DYNAMIC_LINKER.
5170 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5172 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5173 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5174 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5175 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5176 GNU_USER_DYNAMIC_LINKER32.
5177 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5178 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5179 GNU_USER_DYNAMIC_LINKER.
5180 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5181 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5182 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5183 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5184 GNU_USER_DYNAMIC_LINKER64.
5185 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5186 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5187 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5188 GNU_USER_DYNAMIC_LINKER.
5189 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5190 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5191 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5192 GNU_USER_DYNAMIC_LINKER.
5193 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5194 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5195 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5196 GNU_USER_DYNAMIC_LINKER32.
5197 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5198 GNU_USER_DYNAMIC_LINKER64.
5199 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5200 GNU_USER_DYNAMIC_LINKER64.
5201 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5203 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5204 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5205 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5207 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5209 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5210 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5211 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5212 GNU_USER_DYNAMIC_LINKER.
5213 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5214 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5215 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5216 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5217 GNU_USER_DYNAMIC_LINKER64.
5218 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5219 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5220 GNU_USER_LINK_EMULATION.
5221 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5222 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5223 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5224 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5225 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5226 CPP_SPEC, CC1_SPEC): Remove.
5227 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5228 (GNU_USER_DYNAMIC_LINKER): Define.
5229 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5230 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5231 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5232 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5233 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5234 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5235 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5236 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5237 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5238 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5239 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5240 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5241 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5242 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5243 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5244 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5245 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5246 GNU_USER_DYNAMIC_LINKER.
5247 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5248 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5249 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5250 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5251 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5252 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5253 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5254 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5255 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5256 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5258 2011-04-11 Kai Tietz <ktietz@redhat.com>
5262 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5263 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5265 (ix86_is_msabi_thiscall): Removed.
5266 (ix86_is_type_thiscall): Likewise.
5267 (ix86_get_callcvt): New function.
5268 (ix86_comp_type_attributes): Simplify check.
5269 (ix86_function_regparm): Use ix86_get_callcvt for calling
5270 convention attribute checks.
5271 (ix86_return_pops_args): Likewise.
5272 (ix86_static_chain): Likewise.
5273 (x86_this_parameter): Likewise.
5274 (x86_output_mi_thunk): Likewise.
5275 (ix86_function_type_abi): Optimize check for types without attributes.
5276 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5277 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5278 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5280 (IX86_BASE_CALLCVT): Helper macro.
5281 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5282 Use ix86_get_callcvt for calling convention attribute checks and avoid
5283 symbol-decoration for stdcall in TARGET_RTD case.
5284 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5286 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5289 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5291 * config/i386/sse.md (VI_128): New mode iterator.
5292 (VI12_128): Rename from SSEMODE12.
5293 (VI14_128): Rename from SSEMODE14.
5294 (VI124_128): New mode iterator.
5295 (VI24_128): Rename from SSEMODE248.
5296 (VI248_128): Rename from SSEMODE248.
5297 (SSEMODE124C8): Remove.
5298 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5299 (*sse2_<plusminus_insn><mode>3): Merge with
5300 *avx_<plusminus_insn><mode>3.
5301 (*mulv8hi3): Merge with *avx_mulv8hi3.
5302 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5303 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5304 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5305 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5306 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5307 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5308 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5309 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5310 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5311 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5312 (*<smaxmin:code>v8hi3): Ditto.
5313 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5314 (*<smaxmin:code>v16qi3): Ditto.
5315 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5316 (*sse2_eq<mode>3): Ditto.
5317 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5318 (*sse2_gt<mode>3): Ditto.
5319 (vcondv2di): Split out of vcond<mode>.
5320 (vconduv2di): Split out of vcondu<mode>.
5322 2011-04-11 Richard Guenther <rguenther@suse.de>
5324 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5325 before calling tree_low_cst.
5327 2011-04-11 Richard Guenther <rguenther@suse.de>
5329 * stor-layout.c (layout_type): Compute all array index size operations
5330 in the original type.
5331 (initialize_sizetypes): Add comment.
5332 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5334 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5336 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5338 2011-04-11 Martin Jambor <mjambor@suse.cz>
5340 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5341 of cgraph_node, handle NULL return value.
5342 (cgraph_global_info): Likewise.
5343 (cgraph_rtl_info): Likewise.
5344 * tree-inline.c (estimate_num_insns): Likewise.
5345 * gimplify.c (unshare_body): Likewise.
5346 (unvisit_body): Likewise.
5347 (gimplify_body): Likewise.
5348 * predict.c (optimize_function_for_size_p): Likewise.
5349 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5350 (call_may_clobber_ref_p_1): Likewise.
5351 * varasm.c (function_section_1): Likewise.
5352 (assemble_start_function): Likewise.
5354 2011-04-11 Martin Jambor <mjambor@suse.cz>
5356 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5358 * final.c (rest_of_clean_state): Likewise.
5359 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5360 * passes.c (pass_init_dump_file): Likewise.
5361 (execute_all_ipa_transforms): Likewise.
5362 (function_called_by_processed_nodes_p): Likewise.
5363 * predict.c (maybe_hot_frequency_p): Likewise.
5364 (probably_never_executed_bb_p): Likewise.
5365 (compute_function_frequency): Likewise.
5366 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5367 (unnest_nesting_tree_1): Likewise.
5368 (lower_nested_functions): Likewise.
5369 * tree-optimize.c (execute_fixup_cfg): Likewise.
5370 (tree_rest_of_compilation): Likewise.
5371 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5372 * tree-sra.c (ipa_early_sra): Likewise.
5373 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5374 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5375 * ipa.c (record_cdtor_fn): Likewise.
5376 * ipa-inline.c (cgraph_early_inlining): Likewise.
5377 (compute_inline_parameters_for_current): Likewise.
5378 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5379 * ipa-pure-const.c (local_pure_const): Likewise.
5380 * ipa-split.c (split_function): Likewise.
5381 (execute_split_functions): Likewise.
5382 * cgraphbuild.c (build_cgraph_edges): Likewise.
5383 (rebuild_cgraph_edges): Likewise.
5384 (cgraph_rebuild_references): Likewise.
5385 (remove_cgraph_callee_edges): Likewise.
5386 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5387 (verify_cgraph_node): Likewise.
5388 (cgraph_analyze_functions): Likewise.
5389 (cgraph_preserve_function_body_p): Likewise.
5390 (save_inline_function_body): Likewise.
5391 (save_inline_function_body): Likewise.
5392 * tree-inline.c (copy_bb): Likewise.
5393 (optimize_inline_calls): Likewise.
5395 2011-04-11 Martin Jambor <mjambor@suse.cz>
5397 PR tree-optimization/48195
5398 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5399 ipa_check_create_edge_args.
5400 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5401 ipa_check_create_edge_args.
5402 * ipa-inline.c (inline_generate_summary): Do not call
5403 ipa_check_create_node_params and ipa_check_create_edge_args.
5404 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5405 ipa_check_create_edge_args.
5407 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5409 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5411 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5412 * function.c (record_hard_reg_sets): Likewise.
5413 * ira.c (compute_regs_asm_clobbered): Likewise.
5414 * sched-deps.c (sched_analyze_1): Likewise.
5415 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5417 2011-04-09 Xinliang David Li <davidxl@google.com>
5419 PR tree-optimization/PR48484
5420 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5421 has_valid_pred lazily
5423 2011-04-09 Duncan Sands <baldrick@free.fr>
5425 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5427 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5429 * combine.c (combine_validate_cost): Adjust comments. Set registered
5430 cost of I0 to zero at the end, if any.
5432 2011-04-08 Xinliang David Li <davidxl@google.com>
5434 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5435 to insane profile data.
5437 2011-04-08 Xinliang David Li <davidxl@google.com>
5439 * ipa-cp.c (ipcp_update_profiling): Correct
5440 negative scale factor due to insane profile data.
5442 2011-04-08 Xinliang David Li <davidxl@google.com>
5444 * final.c (dump_basic_block_info): New function.
5445 (final): Dump basic block.
5446 (final_scan_insn): Remove old dump.
5448 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5451 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5454 2011-04-08 Michael Matz <matz@suse.de>
5457 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5459 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5460 * rtl.h (rebuild_jump_labels_chain): Declare.
5461 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5462 insns inserted on edges.
5464 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5466 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5467 * config/arm/arm-arches.def: New.
5468 * config/arm/arm-opts.h: New.
5469 * config/arm/genopt.sh: New.
5470 * config/arm/arm-tables.opt: New (generated).
5471 * config/arm/arm.c (arm_handle_option, arm_target_help,
5472 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5473 (all_architectures): Get most table contents from arm-arches.def.
5474 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5475 arm_selected_tune here.
5476 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5477 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5478 (march=, mcpu=, mtune=): Use Enum and Var.
5479 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5480 (arm.o): Update dependencies.
5482 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5484 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5486 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5487 (write_typed_alloc_defns): Likewise.
5488 (main): Calls write_typed_alloc_defns with output_header.
5490 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5493 * ira-color.c (setup_profitable_hard_regs): Add comments.
5494 Don't take prohibited hard regs into account.
5495 (setup_conflict_profitable_regs): Rename to
5496 get_conflict_profitable_regs.
5497 (check_hard_reg_p): Check prohibited hard regs.
5499 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5501 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5502 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5503 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5505 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5508 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5509 move from floating point to shift amount register.
5510 (emit_move_sequence): Remove secondary reload support for floating
5511 point to shift amount amount register copies.
5512 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5513 amount register copies.
5514 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5515 register, return false if mode isn't a scalar integer mode.
5516 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5518 2011-04-08 Richard Guenther <rguenther@suse.de>
5520 * gimple.c (gimple_call_flags): Remove kludge.
5522 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5524 * sel-sched.c (sel_region_init): Move call to
5525 sel_setup_region_sched_flags after setup_current_loop_nest.
5527 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5529 PR rtl-optimization/48272
5530 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5531 init_insn_reg_pressure_info. Adjust a caller.
5532 * sched-int.h (init_insn_reg_pressure_info): Declare.
5533 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5534 when sched-pressure is enabled.
5536 2011-04-08 Richard Guenther <rguenther@suse.de>
5538 * gimple.c (gimple_set_modified): Do not queue calls to
5539 MODIFIED_NORETURN_CALLS here ...
5540 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5542 2011-04-08 Richard Guenther <rguenther@suse.de>
5545 * toplev.c (lang_dependent_init): Do not open asm_out_file
5546 in WPA mode, nor perform debug machinery initialization.
5547 (finalize): Do not unlink asm_out_file in WPA mode.
5549 2011-04-08 Richard Guenther <rguenther@suse.de>
5551 * gimple.h (gimple_call_fntype): New function.
5552 (gimple_call_return_type): Use it.
5553 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5554 * gimple-low.c (gimple_check_call_args): Likewise.
5555 * gimple.c (gimple_call_flags): Likewise.
5556 (gimple_call_arg_flags): Likewise.
5557 (gimple_call_return_flags): Likewise.
5558 * tree-cfg.c (verify_gimple_call): Likewise.
5559 (do_warn_unused_result): Likewise.
5560 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5561 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5563 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5565 PR rtl-optimization/48235
5566 * sel-sched.c (code_motion_process_successors): Recompute the last
5567 insn in basic block if control flow changed.
5568 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5569 Update condition for ilist_remove.
5571 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5573 PR rtl-optimization/48302
5574 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5575 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5576 it to record added preheader blocks.
5577 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5578 on to sel_add_loop_preheaders.
5579 (sel_region_init): Move call to setup_current_loop_nest after
5582 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5585 * cfgloop.h (loop_has_exit_edges): New helper.
5586 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5588 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5589 that have no exit edges.
5591 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5593 PR rtl-optimization/48442
5594 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5595 all callers. Adjust assert.
5597 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5599 PR tree-optimization/48377
5600 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5601 is_packed to true even for types with smaller TYPE_ALIGN than
5604 2011-04-08 Richard Guenther <rguenther@suse.de>
5607 * doc/tm.texi: Re-generate.
5609 2011-04-08 Wei Guozhi <carrot@google.com>
5612 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5613 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5614 * config/arm/arm.md (*push_multi): Change the length computation to
5617 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5619 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5620 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5621 * doc/tm.texi: Regenerate.
5622 * system.h (ASM_OUTPUT_BSS): Poison.
5623 * varasm.c (asm_output_bss): Remove function.
5624 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5626 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5627 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5628 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5629 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5631 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5633 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5635 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5637 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5639 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5642 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5644 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5645 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5646 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5648 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5649 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5650 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5651 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5652 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5653 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5654 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5655 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5656 options. Don't map other m68k options manually. Don't handle
5657 old-style options as canonical.
5658 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5659 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5661 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5663 * basic-block.h (force_nonfallthru): Move to...
5664 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5665 (force_nonfallthru): ...here.
5666 * cfghooks.c (force_nonfallthru): New function.
5667 * cfgrtl.c (force_nonfallthru): Rename into...
5668 (rtl_force_nonfallthru): ...this.
5669 (commit_one_edge_insertion): Do not set AUX field.
5670 (commit_edge_insertions): Do not discover new basic blocks.
5671 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5672 (cfg_layout_rtl_cfg_hooks): Likewise.
5673 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5674 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5675 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5677 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5679 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5682 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5684 * config/i386/sse.md: Update copyright year.
5685 (avxcvtvecmode): Remove.
5686 (sse_movhlps): Merge with *avx_movhlps.
5687 (sse_movlhps): Merge with *avx_movlhps.
5688 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5689 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5690 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5691 (sse_loadhps): Merge with *avx_loadhps.
5692 (sse_storelps): Merge with *avx_storelps.
5693 (sse_loadlps): Merge with *avx_loadlps.
5694 (sse_movss): Merge with *avx_movss.
5695 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5696 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5697 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5698 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5699 (vec_set<mode>_0): Ditto.
5700 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5701 (sse4_1_insertps): Merge with *avx_insertps.
5702 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5703 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5704 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5705 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5706 (sse2_storehpd): Merge with *avx_storehpd.
5707 (sse2_loadhpd): Merge with *avx_loadhpd.
5708 (sse2_loadlpd): Merge with *avx_loadlpd.
5709 (sse2_movsd): Merge with *avx_movsd.
5710 (*vec_concatv2df): Merge with *vec_concatv2df.
5712 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5715 * combine.c (combine_instructions): Add last_combined_insn,
5716 update it if insn is after it, pass it to all try_combine calls.
5717 (try_combine): Add last_combined_insn parameter, pass it instead of
5718 i3 to propagate_for_debug.
5720 2011-04-07 Nick Clifton <nickc@redhat.com>
5722 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5723 to handle MDR <-> data register transfers.
5724 (movhi_internal): Likewise.
5726 2011-04-07 Alan Modra <amodra@gmail.com>
5728 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5729 previous stack info.
5731 2011-04-07 Tom de Vries <tom@codesourcery.com>
5734 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5735 flow_find_cross_jump. Swap variables to implement backward replacement.
5736 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5738 2011-04-07 Tom de Vries <tom@codesourcery.com>
5741 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5742 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5744 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5745 src1 or src2. Redirect edges to the last basic block. Update
5746 frequency and count on multiple basic blocks in case of fallthru.
5748 2011-04-07 Tom de Vries <tom@codesourcery.com>
5751 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5753 (old_insns_match_p): Change return type. Replace return false/true
5754 with return dir_none/dir_both. Use can_replace_by.
5755 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5756 direction from dir_p. Register replacement direction in dir, last_dir
5757 and afterlast_dir. Handle new return type of old_insns_match_p using
5758 merge_dir. Return replacement direction in dir_p.
5759 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5760 return type of old_insns_match_p.
5761 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5762 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5763 flow_find_cross_jump.
5764 * basic-block.h (enum replace_direction): New type.
5765 (flow_find_cross_jump): Add parameter to declaration.
5767 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5769 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5770 (AVXMODEDCVTPS2DQ): Ditto.
5771 (VEC_FLOAT_MODE): Ditto.
5772 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5773 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5774 (<any_logic:code><mode>3): Use VF mode iterator.
5775 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5776 Use VF mode iterator.
5777 (copysign<mode>3): Use VF mode iterator.
5778 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5779 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5780 (*<any_logic:code><MODEF:mode>3): Merge with
5781 *avx_<any_logic:code><MODEF:mode>3.
5782 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5783 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5784 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5785 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5786 (sse2_cvtdq2ps): Use %v modifier.
5787 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5788 (avx_cvtps2dq<avxmodesuffix>): Remove.
5789 (sse2_cvtps2dq): Use %v modifier.
5790 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5791 (avx_cvttps2dq<avxmodesuffix>): Remove.
5792 (sse2_cvttps2dq): Use %v modifier.
5793 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5794 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5795 (sse2_cvtsd2siq): Fix insn template.
5796 (sse2_cvtsd2siq_2): Ditto.
5797 (sse2_cvttsd2siq): Ditto.
5798 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5799 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5801 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5803 * gcov-io.c: Use GCC Runtime Library Exception.
5805 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5808 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5809 as base_reg whatever register reg has been eliminated to, instead
5810 of hardcoding STACK_POINTER_REGNUM.
5812 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5814 * doc/tm.texi.in: Document C target hooks as separate from general
5816 * doc/tm.texi: Regenerate.
5817 * genhooks.c (struct hook_desc): Add docname field.
5818 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5820 (hook_array): Include c-target.def.
5821 (emit_documentation): Use docname field in output.
5822 (emit_init_macros): Take docname argument. Only emit definitions
5823 for hooks matching docname.
5824 (main): Expect additional arguments in all cases. Pass argument
5825 to emit_init_macros.
5826 * target.def: Move initial macro definitions and comments to
5827 target-hooks-macros.h.
5828 (gcc_targetcm): Move to c-family/c-target.def.
5829 * target.h (targetcm): Move declaration to c-family/c-target.h.
5830 * targhooks.c (default_handle_c_option): Move to
5832 * targhooks.h (default_handle_c_option): Move declaration to
5833 c-family/c-common.h.
5834 * target-hooks-macros.h: New file.
5835 * config.gcc (target_has_targetcm): Define and use to add to
5836 c_target_objs and cxx_target_objs.
5837 * config/default-c.c: New file.
5838 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5839 of target.h and target-def.h.
5840 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5841 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5842 darwin_check_cfstring_format_arg): Make static.
5843 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5844 TARGET_STRING_OBJECT_REF_TYPE_P,
5845 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5846 * config/darwin-protos.h (darwin_objc_construct_string,
5847 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5849 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5850 TARGET_STRING_OBJECT_REF_TYPE_P,
5851 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5852 * config/t-darwin (darwin-c.o): Update dependencies.
5853 * system.h (TARGET_HAS_TARGETCM): Poison.
5854 * Makefile.in (TARGET_H): Update.
5855 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5856 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5857 (default-c.o): New target.
5858 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5859 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5860 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5862 (build/genhooks.o): Update dependencies.
5864 2011-04-06 Richard Guenther <rguenther@suse.de>
5866 * ipa-inline.c (enum inlining_mode): Remove.
5867 (cgraph_flatten): Use some other token.
5868 (cgraph_edge_early_inlinable_p): New function, split out from ...
5869 (cgraph_perform_always_inlining): New function, split out from ...
5870 (cgraph_decide_inlining_incrementally): ... here.
5871 (cgraph_mark_inline_edge): Adjust.
5872 (cgraph_early_inlining): Re-structure.
5873 (pass_early_inline): Require SSA form.
5875 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5876 Julian Brown <julian@codesourcery.com>
5877 Mark Shinwell <shinwell@codesourcery.com>
5879 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5880 LO_REGS only for Thumb-1.
5881 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5882 be used in short instructions when optimising for size on Thumb-2.
5884 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5886 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5887 associated with user returns to be preserved.
5889 2011-04-06 Tristan Gingold <gingold@adacore.com>
5891 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5892 symbol_queue_size, DBXOUT_DECR_NESTING,
5893 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5894 if XCOFF_DEBUGGING_INFO.
5896 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5898 * config/i386/i386.md (attribute isa): New.
5899 (attribute enabled): New.
5900 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5901 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5902 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5903 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5904 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5905 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5906 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5907 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5909 * config/i386/sse.md (VF): New mode iterator.
5913 (SSEMODEF4): Remove.
5914 (attribute sse): Handle V8SF and V4DF modes.
5915 (<absneg:code><mode>2): Use VF mode iterator.
5916 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5918 (<plusminus_insn><mode>3): Use VF mode iterator.
5919 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5920 Use VF mode iterator.
5921 (<sse>_vm<plusminus_insn><mode>3): Merge with
5922 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5923 (mul<mode>3): Use VF mode iterator.
5924 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5925 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5927 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5928 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5929 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5930 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5932 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5933 Use VF1 mode iterator.
5934 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5935 (sqrt<VF2:mode>2): New expander.
5936 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5937 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5938 and sqrtv2df2. Use VF mode iterator.
5939 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5941 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5942 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5943 Use VF1 mode iterator.
5944 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5945 (<smaxmin:code><mode>3): Use VF mode iterator.
5946 (*<smaxmin:code><mode>3_finite): Merge with
5947 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5948 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5949 (<sse>_vm<smaxmin:code><mode>2): Merge with
5950 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5951 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5953 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5955 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5956 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5957 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5958 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5959 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5961 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5962 Use VF_128 mode iterator.
5963 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5965 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5966 VF_128 mode iterator.
5967 (vcond<mode>): Use VF mode iterator.
5968 * config/i386/predicates.md (sse_comparison_operator): Merge with
5969 avx_comparison_float_operator. Do not declare as special_predicate.
5970 * config/i386/i386.c (struct builtin_description): Update for renamed
5972 (ix86_expand_args_builtin): Ditto.
5973 (ix86_expand_sse_compare_mask): Ditto.
5975 2011-04-06 Richard Guenther <rguenther@suse.de>
5977 * tree-inline.c (estimate_num_insns): For calls simply account
5978 for all passed arguments and a used return value.
5980 2011-04-06 Richard Guenther <rguenther@suse.de>
5982 PR tree-optimization/47663
5983 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5984 call_stmt_time fields.
5985 (cgraph_edge_inlinable_p): Declare.
5986 (cgraph_edge_recursive_p): New inline function.
5987 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5988 (cgraph_clone_edge): Copy it.
5989 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5990 Account for call stmt time.
5991 (cgraph_estimate_time_after_inlining): Take edge argument.
5992 (cgraph_estimate_edge_growth): Account call stmt size.
5993 (cgraph_estimate_size_after_inlining): Take edge argument.
5994 (cgraph_mark_inline_edge): Adjust.
5995 (cgraph_check_inline_limits): Likewise.
5996 (cgraph_recursive_inlining_p): Remove.
5997 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5998 (cgraph_decide_recursive_inlining): Take edge argument and
6000 (cgraph_decide_inlining_of_small_functions): Do not avoid
6001 diags for recursive inlining here.
6002 (cgraph_flatten): Adjust.
6003 (cgraph_decide_inlining_incrementally): Likewise.
6004 (estimate_function_body_sizes): Remove call cost handling.
6005 (compute_inline_parameters): Initialize caller edge call costs.
6006 (cgraph_estimate_edge_growth): New function.
6007 (cgraph_estimate_growth): Use it.
6008 (cgraph_edge_badness): Likewise.
6009 (cgraph_check_inline_limits): Take an edge argument.
6010 (cgraph_decide_inlining_of_small_functions): Adjust.
6011 (cgraph_decide_inlining): Likewise.
6012 * tree-inline.c (estimate_num_insns): Only account for call
6013 return value if it is used.
6014 (expand_call_inline): Avoid diagnostics on recursive inline
6016 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6017 (input_edge): Input edge call costs.
6019 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6021 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6023 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6025 * doc/invoke.texi (Spec Files): Fix typo.
6027 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6029 * profile.c (branch_prob): Move declaration of local variable. Remove
6030 obsolete ??? comment. Expand the location explicitly instead of using
6031 the LOCATION_FILE and LOCATION_LINE macros.
6033 2011-04-06 Wei Guozhi <carrot@google.com>
6036 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6037 (arm_cond_branch): Likewise.
6038 (arm_cond_branch_reversed): Likewise.
6039 (arm_jump): Likewise.
6040 (push_multi): Likewise.
6041 * config/arm/constraints.md (Py): New constraint.
6043 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6046 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6048 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6049 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6050 #ifdef DBX_DEBUGGING_INFO.
6052 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6055 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6056 if old and new states differ.
6058 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6060 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6061 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6062 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6063 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6064 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6066 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6067 ColdFire options to -mcpu= options.
6069 2011-04-05 Jeff Law <law@redhat.com>
6071 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6072 check if BB is a successor of LOOP->header and return
6073 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6075 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6077 * cprop.c (struct reg_use): Remove.
6078 (reg_use_table): Make an array of RTX.
6079 (find_used_regs, constprop_register, local_cprop_pass,
6080 bypass_block): Simplify users of reg_use_table.
6081 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6082 on one of the uses found by find_used_regs.
6084 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6087 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6090 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6092 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6094 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6096 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6099 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6101 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6103 * combine.c: Include obstack.h.
6104 (struct insn_link): Define.
6105 (uid_log_links): Adjust type.
6106 (FOR_EACH_LOG_LINK): New macro.
6107 (insn_link_obstack): Declare.
6108 (alloc_insn_link): Define.
6109 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6110 type of link variables.
6111 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6112 (try_combine, record_promoted_values, distribute_notes): Likewise.
6113 (distribute_links): Likewise. Tweak prototype.
6114 (clear_log_links): Delete.
6115 (adjust_for_new_dest): Call alloc_insn_link.
6116 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6118 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6120 * gcse.c (modify_mem_list): Convert to an array of VECs.
6121 (canon_modify_mem_list, compute_transp): Tweak formatting.
6122 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6123 (load_killed_in_block_p): Likewise.
6124 (record_last_mem_set_info): Likewise.
6125 (clear_modify_mem_tables): Likewise.
6127 2011-04-05 Tom de Vries <tom@codesourcery.com>
6130 * function.c (emit_use_return_register_into_block): Only define if
6133 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6135 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6137 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6139 * config/rx/rx-opts.h: New.
6140 * config/rx/rx.c (rx_cpu_type): Remove.
6141 (rx_handle_option): Don't assert that global structures are in
6142 use. Access variables via opts pointer. Defer most handling of
6143 OPT_mint_register_. Use error_at.
6144 (rx_option_override): Handle deferred OPT_mint_register_ here.
6145 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6146 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6147 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6148 (rx_cpu_types): New Enum and EnumValue entries.
6149 (mint-register=): Use Defer and use Var accordingly.
6151 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6153 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6154 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6155 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6157 (debug_free_queue, debug_nesting, symbol_queue_index):
6159 * dbxout.c: ...to here. Make static.
6161 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6163 * gcse.c (modify_pair): Define. Define a VEC of it.
6164 (canon_modify_mem_list): Convert to an array of VECs.
6165 (free_insn_expr_list_list): Delete.
6166 (clear_modify_mem_tables): Call VEC_free instead.
6167 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6168 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6169 (canon_list_insert, compute_transp): Likewise.
6171 2011-04-05 Tom de Vries <tom@codesourcery.com>
6174 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6177 2011-04-05 Tom de Vries <tom@codesourcery.com>
6180 * function.c (emit_use_return_register_into_block): New function.
6181 (thread_prologue_and_epilogue_insns): Use
6182 emit_use_return_register_into_block.
6184 2011-04-05 Tom de Vries <tom@codesourcery.com>
6187 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6190 2011-04-05 Tom de Vries <tom@codesourcery.com>
6192 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6194 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6196 * config/arm/arm.md (define_constants for unspec): Replace with
6198 (define_constants for unspecv): Replace with define_c_enum.
6199 * config/arm/neon.md (define_constants for unspec): Replace with
6202 2011-04-04 Richard Henderson <rth@redhat.com>
6205 * dwarf2out.c (output_line_info): Always emit line info from
6206 at least one section.
6207 (dwarf2out_init): Create text_section_line_info here ...
6208 (set_cur_line_info_table): ... not here.
6210 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6213 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6216 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6218 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6220 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6221 (expr_equiv_p): Remove.
6222 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6223 (hash_scan_set): Update call to insert_set_in_table.
6224 (dump_hash_table): Dump <dest, src> pair.
6225 (lookup_set): Simplify. Lookup <dest, src> pair.
6226 (compute_transp): Remove, fold heavily simplified code into...
6227 (compute_local_properties): ...here. Expect COMP and TRANSP
6229 (find_avail_set): Take set directly from struct expr.
6230 (find_bypass-set): Likewise.
6231 (bypass_block): Likewise.
6232 (cprop_insn): Likewise. Remove redundant INSN_P test.
6234 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6235 checks on form of COND from find_implicit_sets to here.
6236 (find_implicit_sets): Cleanup control flow. Split critical edges
6237 if it exposes implicit sets. Allocate/resize implicit_sets as
6239 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6240 changed something. Run df_analyze after find_implicit_sets if any
6241 edges were split. Do not allocate implicit_sets here.
6243 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6244 (gcse_obstack): Renamed to cprop_obstack.
6245 (GNEW, GNEWVEC, GNEWVAR): Remove.
6247 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6248 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6249 (gcse_alloc): Likewise, and rename to cprop_alloc.
6250 (alloc_gcse_men, free_gcse_mem): Remove.
6251 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6252 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6253 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6255 * cprop.c (oprs_not_set_p): Remove.
6256 (mark_set, mark_clobber): Remove.
6257 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6258 (reg_not_set_p): New function.
6259 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6260 (cprop_insn): Likewise.
6261 (cprop_jump): Use FOR_EACH_EDGE.
6263 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6266 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6267 (rank_for_schedule): Use scheduled_insns vector instead of
6268 last_scheduled_insn.
6269 (ok_for_early_queue_removal): Likewise.
6270 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6272 (choose_ready): Likewise.
6273 (commit_schedule): Use VEC_iterate.
6274 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6275 a dbg_cnt, use it and ensure the first insn is in the ready list.
6276 (haifa_sched_init): Allocate scheduled_insns.
6277 (sched_extend_ready_list): Don't allocate it; reserve space.
6278 (haifa_sched_finish): Free it.
6280 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6282 * optc-gen.awk: Always remove type from Variable entry before
6283 recording in var_seen.
6285 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6287 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6288 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6289 call to tidy_fallthru_edges.
6291 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6293 * doc/options.texi (ToLower): Document.
6294 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6295 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6296 * opts.h (cl_option): Add cl_tolower field.
6297 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6298 arguments with lowercase strings.
6299 * config/rx/rx.opt (mcpu=): Add ToLower.
6300 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6303 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6305 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6307 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6309 * config/vax/vax.c: Include reload.h.
6311 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6313 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6314 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6315 (sparc_preferred_reload_class): New function.
6317 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6320 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6321 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6323 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6325 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6326 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6328 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6330 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6331 (ASM_OUTPUT_ALIGNED_BSS): Define.
6333 2011-04-03 Michael Matz <matz@suse.de>
6335 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6336 and next_slot members.
6337 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6338 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6339 (lto_streamer_cache_append): Declare.
6340 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6341 unsigned index, remove offset parameter, ensure that we append
6342 or update existing entries.
6343 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6344 parameter, update next_slot for append.
6345 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6347 (lto_streamer_cache_insert_at): Likewise.
6348 (lto_streamer_cache_append): New function.
6349 (lto_streamer_cache_lookup): Use unsigned index.
6350 (lto_streamer_cache_get): Likewise.
6351 (lto_record_common_node): Don't test tree_node_can_be_shared.
6352 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6353 (lto_streamer_cache_delete): Don't free offsets member.
6354 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6355 (lto_output_string_with_length): Use lto_output_data_stream.
6356 (lto_output_tree_header): Remove ix parameter, don't write it.
6357 (lto_output_builtin_tree): Likewise.
6358 (lto_write_tree): Adjust callers to above, don't track and write
6359 offset, write unsigned index.
6360 (output_unreferenced_globals): Don't emit all global vars.
6361 (write_global_references): Use unsigned indices.
6362 (lto_output_decl_state_refs): Likewise.
6363 (write_symbol): Likewise.
6364 * lto-streamer-in.c (lto_input_chain): Move earlier.
6365 (input_function): Use unsigned index.
6366 (input_alias_pairs): Don't read and then ignore all global vars.
6367 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6368 don't pass it back, use lto_streamer_cache_append.
6369 (lto_register_var_decl_in_symtab): Use unsigned index.
6370 (lto_register_function_decl_in_symtab): Likewise.
6371 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6373 (lto_get_builtin_tree): Don't read index, use
6374 lto_streamer_cache_append.
6375 (lto_read_tree): Adjust call to lto_materialize_tree.
6377 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6378 don't use function calls in arguments to MIN.
6380 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6383 * gimple.c (gimple_type_leader_entry): Mark deletable.
6385 2011-04-03 Alan Modra <amodra@gmail.com>
6387 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6389 2011-04-03 Michael Matz <matz@suse.de>
6391 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6393 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6395 2011-04-03 Michael Matz <matz@suse.de>
6397 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6398 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6399 without function context.
6400 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6401 current_function_decl and cfun.
6403 2011-04-03 Michael Matz <matz@suse.de>
6405 * tree.c (decl_init_priority_insert): Don't create entry for
6407 (decl_fini_priority_insert): Ditto.
6408 (fields_compatible_p, find_compatible_field): Remove.
6409 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6410 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6412 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6414 * combine.c (try_combine): Remove useless local variable.
6416 2011-04-03 Richard Guenther <rguenther@suse.de>
6417 Ira Rosen <ira.rosen@linaro.org>
6419 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6420 non-variable offsets and compare the remaining bases of the two
6421 accesses instead of looking for exact same data-ref.
6423 2011-04-02 Kai Tietz <ktietz@redhat.com>
6426 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6428 * i386.c (ix86_is_msabi_thiscall): New helper function.
6429 (ix86_is_type_thiscall): New helper function.
6430 (ix86_comp_type_attributes): Handle thiscall for method-functions
6432 (init_cumulative_args): Likewise.
6433 (find_drap_reg): Likewise.
6434 (ix86_static_chain): Likewise.
6435 (x86_this_parameter): Likewise.
6436 (x86_output_mi_thunk): Likewise.
6438 2011-04-01 Olivier Hainque <hainque@adacore.com>
6439 Nicolas Setton <setton@adacore.com>
6440 Eric Botcazou <ebotcazou@adacore.com>
6442 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6443 (add_gnat_descriptive_type_attribute): New function.
6444 (gen_array_type_die): Call it.
6445 (gen_enumeration_type_die): Likewise.
6446 (gen_struct_or_union_type_die): Likewise.
6447 (modified_type_die): Likewise.
6448 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6449 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6450 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6452 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6455 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6456 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6459 2011-03-17 Richard Guenther <rguenther@suse.de>
6462 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6463 origin for decls in other ltrans units.
6464 (input_varpool_node): Likewise.
6466 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6469 * expr.c (expand_assignment): Handle all possibilities
6470 if TO_RTX is CONCAT.
6471 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6472 (store_split_bit_field): If SUBREG_REG (op0) or
6473 op0 itself has smaller mode than word, return it
6474 for offset 0 and const0_rtx for out-of-bounds stores.
6475 If word is const0_rtx, skip it.
6477 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6479 * config/h8300/h8300.c (print_operand_address): Rename to...
6480 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6481 Call h8300_print_operand and h8300_print_operand_address instead of
6482 print_operand and print_operand_address. Declare.
6483 (print_operand): Renake to...
6484 (h8300_print_operand): ...this. Make static. Adjust comments.
6485 Call h8300_print_operand instead of print_operand. Declare.
6486 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6487 (h8300_register_move_cost): Likewise.
6488 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6489 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6490 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6491 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6492 * config/h8300/h8300-protos.h (print_operand): Delete.
6493 (print_operand_address): Delete.
6495 2011-04-01 Richard Henderson <rth@redhat.com>
6498 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6499 in strict mode before dwarf4. Re-order tests to early out
6500 before switching sections.
6502 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6504 * config/h8300/constraints.md: New file.
6505 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6506 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6507 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6508 * config/h8300/predicates.md (bit_operand): Likewise.
6509 (incdec_operand): Use satisfies_constraint_M and
6510 satisfies_constraint_O. Don't use C code block.
6511 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6512 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6513 (compute_mov_length): Use satisfies_constraint_G.
6514 (fix_bit_operand): Use satisfies_constraint_U.
6515 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6516 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6517 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6518 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6519 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6520 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6521 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6522 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6523 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6524 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6525 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6526 (EXTRA_MEMORY_CONSTRAINT): Delete.
6528 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6529 Michael Meissner <meissner@linux.vnet.ibm.com>
6532 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6533 operands, as per the specifications.
6535 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6536 (vec_extract_evenv4sf): Ditto.
6537 (vec_extract_evenv8hi): Ditto.
6538 (vec_extract_evenv16qi): Ditto.
6539 (vec_extract_oddv4si): Ditto.
6541 2011-03-31 Mark Wielaard <mjw@redhat.com>
6543 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6544 high_pc attribute if the CU has no associated code. Only output
6545 DW_AT_entry_pc for CU if not generating strict dwarf and
6548 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6550 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6551 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6553 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6554 * final.c (final_start_function): Call the new function rather
6555 than using a NULL argument for dwarf2out_frame_debug.
6557 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6558 that contains the prologue.
6560 * haifa-sched.c (queue_insn): New arg REASON. All callers
6561 changed. Print it in debugging output.
6563 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6565 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6566 Split most of the code into...
6567 (begin_move_insn): ... here. New function.
6568 (ebb_sched_info): Add a pointer to it.
6569 * haifa-sched.c (scheduled_insns): New static variable.
6570 (sched_extend_ready_list): Allocate it.
6571 (schedule_block): Use it to record the order of scheduled insns.
6572 Perform RTL changes to move insns only after all scheduling
6573 decisions have been made.
6574 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6575 begin_move_insn field.
6576 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6577 * sched-int.h (struct haifa_sched_info): Remove second argument
6578 from begin_schedule_ready hook. Add new member begin_move_insn.
6579 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6580 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6582 * haifa-sched.c (prune_ready_list): New function, broken out of
6584 (schedule_block): Use it.
6586 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6588 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6590 2011-04-01 Kai Tietz <ktietz@redhat.com>
6592 * config.gcc (*-*-mingw*): Allow as option the
6593 posix threading model.
6594 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6595 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6597 (CPP_SPEC): Add pthread/no-pthread handling.
6598 (LIB_SPEC): Likewise.
6599 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6600 (LIB_SPEC): Likewise.
6601 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6602 flag to pass -pthread option for shared libgcc build.
6603 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6604 for shared libgcc build.
6605 * config/i386/t-mingw-pthread: New file.
6606 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6607 New define to enable use of library pthread by default.
6608 * config/i386/mingw.opt (pthread): New driver option.
6609 (no-pthread): New driver option.
6610 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6611 * config/i386/mingw-w64.opt: Likewise.
6613 2011-04-01 Gary Funck <gary@intrepid.com>
6615 * c-decl.c (grokdeclarator): Fix formatting.
6617 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6619 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6620 instead of n_operands.
6621 (set_storage_via_setmem): Likewise.
6622 * optabs.c (maybe_gen_insn): Likewise.
6623 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6624 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6625 (mips_expand_builtin_direct): Likewise.
6626 * config/spu/spu.c (expand_builtin_args): Likewise.
6628 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6630 * recog.h (insn_data_d): Add n_generator_args.
6631 * genoutput.c (data): Likewise.
6632 (output_insn_data): Print it.
6633 (max_opno, num_dups): Delete.
6634 (scan_operands): Just fill in "d->operand[...]".
6635 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6637 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6639 * gensupport.h (pattern_stats): New structure.
6640 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6641 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6642 (max_operand_1, max_operand_vec): Delete.
6643 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6645 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6647 * emit-rtl.c (emit_pattern_after_setloc): New function.
6648 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6649 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6650 (emit_pattern_after): New function.
6651 (emit_insn_after, emit_jump_insn_after): Call it.
6652 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6653 (emit_pattern_before_setloc): New function.
6654 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6655 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6657 (emit_pattern_before): New function.
6658 (emit_insn_before, emit_jump_insn_before): Call it.
6659 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6661 2011-03-31 Richard Henderson <rth@redhat.com>
6663 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6664 (dw_separate_line_info_entry): Remove.
6665 (enum dw_line_info_opcode): New.
6666 (dw_line_info_entry): Use it.
6667 (dw_line_info_table, dw_line_info_table_p): New.
6668 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6669 (line_info_table, line_info_label_num): Remove.
6670 (line_info_table_in_use): Remove.
6671 (separate_line_info_table): Remove.
6672 (separate_line_info_table_allocated): Remove.
6673 (separate_line_info_table_in_use): Remove.
6674 (LINE_INFO_TABLE_INCREMENT): Remove.
6675 (line_info_label_num): New.
6676 (cur_line_info_table): New.
6677 (text_section_line_info, cold_text_section_line_info): New.
6678 (separate_line_info): New.
6679 (SEPARATE_LINE_CODE_LABEL): Remove.
6680 (print_dwarf_line_table): Remove.
6681 (debug_dwarf): Don't dump it.
6682 (output_one_line_info_table): New.
6683 (output_line_info): Use it.
6684 (new_line_info_table): New.
6685 (set_cur_line_info_table): New.
6686 (dwarf2out_switch_text_section): Use it.
6687 (dwarf2out_begin_function): Likewise.
6688 (push_dw_line_info_entry): New.
6689 (dwarf2out_source_line): Rewrite for new line info tables.
6690 (dwarf2out_init): Remove dead initailizations.
6692 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6694 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6696 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6697 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6698 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6699 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6700 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6701 * opt-functions.awk (flag_init, switch_bit_fields): New.
6702 (switch_flags): Don't handle flags moved to bit-fields. Don't
6703 generate CL_MISSING_OK or CL_SAVE.
6704 * optc-gen.awk: Update to generate bit-field output as well as
6706 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6707 bit-field instead of CL_REJECT_DRIVER flag.
6708 * opts-common.c (generate_canonical_option,
6709 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6710 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6711 instead of CL_REJECT_NEGATIVE flag.
6712 * toplev.c (print_switch_values): Use cl_report bit-field instead
6715 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6717 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6718 a zero minimum index only if it is redundant.
6720 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6722 PR rtl-optimization/48381
6723 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6724 instead of ira_class_hard_reg_index for calculating conflicting
6727 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6729 * cprop.c: Clean up hash table building.
6730 (reg_avail_info): Remove.
6731 (oprs_available_p): Remove.
6732 (record_last_reg_set_info): Remove.
6733 (record_last_set_info): Remove.
6734 (reg_available_p): New function.
6735 (gcse_constant_p): Do not treat unfolded conditions as constants.
6736 (make_set_regs_unavailable): New function.
6737 (hash_scan_set): Simplify with new reg_available_p.
6738 (compute_hash_table_work): Traverse insns stream only once.
6739 Do not compute reg_avail_info. Traverse insns in reverse order.
6740 Record implicit sets after recording explicit sets from the block.
6742 2011-03-31 Michael Matz <matz@suse.de>
6744 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6746 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6748 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6749 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6750 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6751 (h8300_mode_dependent_address_p): New function.
6752 (h8300_get_index): Make static.
6754 2011-03-31 Jeff Law <law@redhat.com>
6756 * reload1.c (elimination_effects): Fix typo in recent change.
6758 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6759 typo potentially leading to null pointer dereference.
6761 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6762 (setup_save_areas): Corresponding changes to avoid useless
6765 * jump.c (reversed_comparison_code_parts): Avoid successive return
6766 statements when REVERSE_CONDITION is defined.
6768 * expr.c (expand_assignment): Avoid useless assignments.
6769 (expand_expr_real_1): Likewise.
6770 (expand_expr_real_2): Avoid useless statements.
6772 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6774 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6776 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6779 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6781 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6784 * doc/tm.texi.in (TARGET_VERSION): Remove.
6785 * doc/tm.texi: Regenerate.
6786 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6787 * collect2.c (main): Don't use TARGET_VERSION.
6788 * mips-tdump.c (main): Don't use TARGET_VERSION.
6789 * mips-tfile.c (main): Don't use TARGET_VERSION.
6790 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6791 * config/rs6000/vxworksae.h: Remove.
6792 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6793 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6794 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6795 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6796 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6797 * config/arm/arm.h (TARGET_VERSION): Remove.
6798 * config/arm/coff.h (TARGET_VERSION): Remove.
6799 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6800 * config/arm/elf.h (TARGET_VERSION): Remove.
6801 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6802 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6803 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6804 * config/arm/pe.h (TARGET_VERSION): Remove.
6805 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6806 * config/arm/semi.h (TARGET_VERSION): Remove.
6807 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6808 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6809 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6810 * config/avr/avr.h (TARGET_VERSION): Remove.
6811 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6812 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6813 * config/frv/frv.h (TARGET_VERSION): Remove.
6814 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6815 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6816 * config/i386/darwin.h (TARGET_VERSION): Remove.
6817 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6818 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6819 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6820 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6821 * config/i386/gnu.h (TARGET_VERSION): Remove.
6822 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6823 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6824 * config/i386/linux.h (TARGET_VERSION): Remove.
6825 * config/i386/linux64.h (TARGET_VERSION): Remove.
6826 * config/i386/lynx.h (TARGET_VERSION): Remove.
6827 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6828 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6829 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6830 * config/i386/netware.h (TARGET_VERSION): Remove.
6831 * config/i386/nto.h (TARGET_VERSION): Remove.
6832 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6833 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6834 * config/ia64/elf.h (TARGET_VERSION): Remove.
6835 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6836 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6837 * config/ia64/linux.h (TARGET_VERSION): Remove.
6838 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6839 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6840 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6841 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6842 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6843 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6844 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6845 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6846 * config/m68k/linux.h (TARGET_VERSION): Remove.
6847 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6848 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6849 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6850 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6851 * config/mep/mep.h (TARGET_VERSION): Remove.
6852 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6853 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6854 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6855 * config/mips/linux.h (TARGET_VERSION): Remove.
6856 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6857 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6858 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6859 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6860 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6861 * config/pa/pa.h (TARGET_VERSION): Remove.
6862 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6863 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6864 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6865 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6866 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6867 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6868 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6869 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6870 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6871 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6872 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6873 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6874 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6875 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6876 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6877 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6878 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6879 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6880 * config/s390/linux.h (TARGET_VERSION): Remove.
6881 * config/s390/s390.h (TARGET_VERSION): Remove.
6882 * config/s390/tpf.h (TARGET_VERSION): Remove.
6883 * config/score/score.h (TARGET_VERSION): Remove.
6884 * config/sh/linux.h (TARGET_VERSION): Remove.
6885 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6886 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6887 * config/sh/sh.h (TARGET_VERSION): Remove.
6888 * config/sh/sh64.h (TARGET_VERSION): Remove.
6889 * config/sh/superh.h (TARGET_VERSION): Remove.
6890 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6891 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6892 * config/sparc/linux.h (TARGET_VERSION): Remove.
6893 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6894 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6895 TARGET_NAME32, TARGET_NAME): Remove.
6896 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6897 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6898 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6899 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6900 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6901 * config/spu/spu.h (TARGET_VERSION): Remove.
6902 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6903 * config/v850/v850.h (TARGET_VERSION): Remove.
6904 * config/vax/linux.h (TARGET_VERSION): Remove.
6905 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6906 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6907 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6909 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6912 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6913 frame-related from frame-unrelated adjustments to the stack pointer.
6915 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6917 * common.opt (fdebug-types-section): Move earlier.
6918 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6920 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6922 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6925 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6927 * tree.h (CASE_CHAIN): Define.
6928 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6929 (gimple_redirect_edge_and_branch): Likewise.
6931 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6934 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6937 2011-03-30 Jeff Law <law@redhat.com>
6939 * PR bootstrap/48371
6940 * reload1.c (reload): Fix botch in last change.
6942 * reload.h (struct reload): Fix typo introduced in last change.
6944 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6946 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6947 Undocumented. Remove help text.
6948 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6951 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6953 * doc/options.texi (NegativeAlias): Document.
6954 (Alias): Mention NegativeAlias.
6955 * opt-functions.awk: Handle NegativeAlias.
6956 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6957 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6958 * opts.h (CL_NEGATIVE_ALIAS): Define.
6959 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6960 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6962 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6964 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6965 mno-spe and mno-isel instead of mspe=no and -misel=no.
6967 2011-03-29 Mark Wielaard <mjw@redhat.com>
6969 * common.opt (fdebug-types-section): New flag.
6970 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6971 * dwarf2out.c (use_debug_types): New define.
6972 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6973 (print_die): Guard output of type unit signatures using
6975 (build_abbrev_table): Replace assert of dwarf_version >= 4
6976 with assert on use_debug_types.
6977 (size_of_die): Likewise.
6978 (unmark_dies): Likewise.
6979 (value_format): Decide AT_ref_external form on use_debug_types.
6980 (output_die): Replace dwarf_version version check guard with
6981 use_debug_types where appropriate.
6982 (modified_type_die): Likewise.
6983 (gen_reference_type_die): Likewise.
6984 (dwarf2out_start_source_file): Likewise.
6985 (dwarf2out_end_source_file): Likewise.
6986 (prune_unused_types_walk_attribs): Likewise.
6987 (dwarf2out_finish): Likewise.
6989 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6991 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6993 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6995 PR rtl-optimization/48332
6996 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6997 mode of input operand N and modeN to its actual mode.
6999 2011-03-30 Jeff Law <law@redhat.com>
7001 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7002 define accessor macro.
7003 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7004 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7005 (reg_equiv_init): Likewise.
7006 (reg_equivs_size): New variable.
7007 (reg_equiv_init_size): Remove.
7008 (allocate_initial_values): Move prototype to here from....
7009 * integrate.h (allocate_initial_values): Remove prototype.
7010 * integrate.c: Include reload.h.
7011 (allocate_initial_values): Corresponding changes.
7012 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7013 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7014 (update_equiv_regs): Corresponding changes.
7015 (ira): Corresponding changes.
7016 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7017 (push_secondary_reload): Corresponding changes.
7018 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7019 (make_memloc, find_reloads_address): Corresponding changes.
7020 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7021 (find_reloads_address_1): Corresponding changes.
7022 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7023 (refers_to_regno_for_reload_p): Corresponding changes.
7024 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7025 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7026 * reload1.c: Include ggc.h.
7027 (grow_reg_equivs): New function.
7028 (replace_pseudos_in, reload): Corresponding changes.
7029 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7030 (eliminate_regs_1, elimination_effects): Corresponding changes.
7031 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7032 (delete_output_reload): Likewise.
7033 * caller-save.c (mark_referenced_regs): Corresponding changes.
7034 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7035 * frv/predicates.md (frv_load_operand): Corresponding changes.
7036 * microblaze/microblaze.c (double_memory_operand): Corresponding
7038 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7039 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7040 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7041 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7042 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7044 * pa/pa.c (emit_move_sequence): Corresponding changes.
7045 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7047 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7050 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7051 structure modes. Don't check neon_vector_mem_operand for
7052 vector or structure modes.
7054 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7055 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7058 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7059 operand 1 and reshuffle the operands to match.
7060 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7062 2011-03-30 Christian Schüler <cschueler@gmx.de>
7065 * config/c.opt (F): Added 'Driver' to -F option.
7068 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7070 * config/darwin.opt: Added '-arch' option.
7072 2011-03-30 Nick Clifton <nickc@redhat.com>
7074 * config/rx/rx.md: Add peepholes and patterns to combine
7075 extending loads and simple arithmetic instructions.
7076 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7077 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7078 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7079 modes to use pre-decrement and post-increment addressing.
7080 (rx_is_restricted_memory_address): Add range checking of REG+INT
7082 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7083 (rx_memory_move_cost): Adjust cost of stores.
7084 (rx_adjust_insn_length): New function.
7086 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7089 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7090 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7091 matching arg00/arg01 types.
7093 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7095 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7096 last_location to UNKNOWN_LOCATION.
7098 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7101 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7104 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7105 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7108 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7110 (sparc_cpu): Likewise.
7111 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7114 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7118 PR rtl-optimization/48345
7119 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7120 hard regs for given mode from profitable regs when doing secondary
7123 2011-03-29 Jeff Law <law@redhat.com>
7126 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7127 do_not_duplicate field.
7128 (lookup_redirection_data): Corresponding changes.
7129 (create_duplicates): Always create a template block.
7130 (redirect_edges): Remove code which reused the original block
7131 when it was going to become unreachable code.
7132 (thread_block): Don't set do_not_duplicate field.
7134 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7136 * lto-opts.c (register_user_option_p, lto_register_user_option):
7137 Make type argument unsigned.
7138 * lto-streamer.h (lto_register_user_option): Make type argument
7140 * opth-gen.awk: Make CL_* macros unsigned.
7141 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7142 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7143 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7144 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7145 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7146 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7147 (find_opt): Make lang_mask argument unsigned.
7149 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7151 PR rtl-optimization/48331
7152 PR rtl-optimization/48334
7153 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7154 for any used algorithm.
7156 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7158 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7161 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7163 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7164 (alpha_option_override): Don't set alpha_sr_alias_set.
7165 (emit_frame_store_1): Use gen_frame_mem rather than calling
7167 (alpha_expand_epilogue): Ditto.
7169 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7171 PR tree-optimization/48290
7172 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7173 vectorization, check that relevant phis in the basic block after
7174 the inner loop are really inner loop's exit phis.
7176 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7179 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7180 (cached_dw_loc_list_def): New structure.
7181 (cached_dw_loc_list): New typedef.
7182 (cached_dw_loc_list_table): New variable.
7183 (cached_dw_loc_list_table_hash): New function.
7184 (cached_dw_loc_list_table_eq): Likewise.
7185 (add_location_or_const_value_attribute): Take a bool cache_p.
7186 Cache the list when the parameter is true.
7187 (gen_formal_parameter_die): Update caller.
7188 (gen_variable_die): Likewise.
7189 (dwarf2out_finish): Likewise.
7190 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7191 while generating debug info for the decl.
7192 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7193 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7194 (resolve_addr): Cache the result of resolving a chain of
7197 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7199 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7200 conflict object hard regset nodes have intersecting hard reg sets.
7202 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7203 after regstat_init_n_sets_and_refs.
7205 * ira.c: Add more comments at the top.
7206 (setup_stack_reg_pressure_class, setup_pressure_classes):
7207 Add comments how we compute the register pressure classes.
7208 (setup_allocno_and_important_classes): Add more comments.
7209 (setup_class_translate_array, reorder_important_classes)
7210 (setup_reg_class_relations): Add comments.
7212 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7215 * ira-color.c: Add 2011 to the Copyright line.
7216 (assign_hard_reg): Add more comments.
7217 (improve_allocation): Ditto.
7219 * ira-costs.c: Add 2011 to the Copyright line.
7220 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7222 (setup_regno_cost_classes_by_mode): Ditto.
7224 Initial patches from ira-improv branch:
7226 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7228 * ira-build.c (ira_create_object): Remove initialization of
7229 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7230 (ira_create_allocno): Remove initialization of
7231 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7232 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7233 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7234 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7235 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7236 Initialize ALLOCNO_ADD_DATA.
7237 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7238 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7240 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7241 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7243 * ira.c (ira_reallocate): Remove.
7244 (setup_pressure_classes): Call
7245 ira_init_register_move_cost_if_necessary. Use
7246 ira_register_move_cost instead of ira_get_register_move_cost.
7247 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7248 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7250 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7251 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7252 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7253 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7254 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7255 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7257 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7258 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7259 (struct allocno_color_data): New.
7260 (allocno_color_data_t): New typedef.
7261 (allocno_color_data): New definition.
7262 (ALLOCNO_COLOR_DATA): New macro.
7263 (struct object_color_data): New.
7264 (object_color_data_t): New typedef.
7265 (object_color_data): New definition.
7266 (OBJECT_COLOR_DATA): New macro.
7267 (update_copy_costs, calculate_allocno_spill_cost): Call
7268 ira_init_register_move_cost_if_necessary. Use
7269 ira_register_move_cost instead of ira_get_register_move_cost.
7270 (move_spill_restore, update_curr_costs): Ditto.
7271 (allocno_spill_priority): Make it inline.
7272 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7273 (struct coalesce_data, coalesce_data_t): New.
7274 (allocno_coalesce_data): New definition.
7275 (ALLOCNO_COALESCE_DATA): New macro.
7276 (merge_allocnos, coalesced_allocno_conflict_p): Use
7277 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7278 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7279 (coalesce_allocnos): Ditto.
7280 (setup_coalesced_allocno_costs_and_nums): Ditto.
7281 (collect_spilled_coalesced_allocnos): Ditto.
7282 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7283 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7284 (coalesce_spill_slots): Ditto.
7285 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7286 free allocno_coalesce_data.
7288 * ira-conflicts.c: Fix formatting.
7289 (process_regs_for_copy): Call
7290 ira_init_register_move_cost_if_necessary. Use
7291 ira_register_move_cost instead of ira_get_register_move_cost.
7292 (build_object_conflicts): Optimize.
7294 * ira-costs.c (record_reg_classes): Optimize. Call
7295 ira_init_register_move_cost_if_necessary. Use
7296 ira_register_move_cost, ira_may_move_in_cost, and
7297 ira_may_move_out_cost instead of ira_get_register_move_cost and
7298 ira_get_may_move_cost.
7299 (record_address_regs): Ditto.
7300 (scan_one_insn): Optimize.
7301 (find_costs_and_classes): Optimize.
7302 (process_bb_node_for_hard_reg_moves): Call
7303 ira_init_register_move_cost_if_necessary. Use
7304 ira_register_move_cost instead of ira_get_register_move_cost.
7306 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7307 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7308 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7309 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7311 (ira_initiate_emit_data, ira_finish_emit_data)
7312 (create_new_allocno): New functions.
7313 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7314 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7315 Use ira_register_move_cost instead of ira_get_register_move_cost.
7317 * ira-int.h: Fix some comments.
7318 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7319 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7320 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7321 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7323 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7324 bitfield after mode. Make hard_regno a short int. Make
7325 hard_regno short. Remove first_coalesced_allocno and
7326 next_coalesced_allocno. Move mem_optimized_dest_p,
7327 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7328 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7329 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7330 temp, colorable_p. Add new member add_data.
7331 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7332 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7333 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7334 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7335 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7336 (ALLOCNO_ADD_DATA): New macro.
7337 (ira_emit_data_t): New typedef.
7338 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7339 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7340 from struct ira_allocno.
7341 (ALLOCNO_EMIT_DATA): New macro.
7342 (ira_allocno_emit_data, allocno_emit_reg): New.
7343 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7344 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7345 (OBJECT_ADD_DATA): New macro.
7346 (ira_reallocate): Remove.
7347 (ira_initiate_emit_data, ira_finish_emit_data): New.
7348 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7349 (ira_init_register_move_cost_if_necessary): New.
7350 (ira_object_conflict_iter_next): Merge into
7351 ira_object_conflict_iter_cond.
7352 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7354 * ira-live.c (process_single_reg_class_operands): Call
7355 ira_init_register_move_cost_if_necessary. Use
7356 ira_register_move_cost instead of ira_get_register_move_cost.
7358 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7360 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7362 * ira-costs.c: Fix formatting.
7363 (cost_classes, cost_classes_num): Remove.
7364 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7365 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7366 (cost_classes_del, cost_classes_htab): New.
7367 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7368 (initiate_regno_cost_classes, setup_cost_classes): New.
7369 (setup_regno_cost_classes_by_aclass): New.
7370 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7371 (record_reg_classes): Use regno_cost_classes instead of
7372 cost_classes. Move checking opposite operand up.
7373 (record_address_regs): Use regno_cost_classes
7374 instead of cost_classes.
7375 (scan_one_insn): Ditto. Use always general register.
7376 (print_allocno_costs): Use regno_cost_classes instead of
7378 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7379 (find_costs_and_classes): Set up cost classes for each registers.
7380 Use also their mode for this. Use regno_cost_classes instead of
7382 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7384 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7385 (ira_costs, ira_set_pseudo_classes): Call
7386 initiate_regno_cost_classes and finish_regno_cost_classes.
7388 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7390 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7392 * target.def (ira_cover_classes): Remove.
7394 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7396 * doc/tm.texi.in: Ditto.
7398 * ira-conflicts.c: Remove mentioning cover classes from the file.
7399 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7400 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7402 * targhooks.c (default_ira_cover_classes): Remove.
7404 * targhooks.h (default_ira_cover_classes): Ditto.
7406 * haifa-sched.c: Remove mentioning cover classes from the file.
7407 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7408 ira_pressure_classes and ira_pressure_classes_num instead of
7409 ira_reg_class_cover_size and ira_reg_class_cover. Use
7410 sched_regno_pressure_class instead of sched_regno_cover_class.
7411 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7412 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7414 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7415 classes from the file.
7416 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7417 (struct object_hard_regs, struct object_hard_regs_node): New.
7418 (struct ira_object): New members profitable_hard_regs,
7419 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7420 (struct ira_allocno): Rename cover_class to aclass. Rename
7421 cover_class_cost and updated_cover_class_cost to class_cost and
7422 updated_class_cost. Remove splay_removed_p and
7423 left_conflict_size. Add new members colorable_p.
7424 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7425 (ALLOCNO_COLORABLE_P): New macro.
7426 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7427 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7428 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7429 (OBJECT_...): Rename parameter C to O.
7430 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7431 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7432 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7433 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7434 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7435 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7436 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7437 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7438 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7439 x_ira_reg_class_subunion.
7440 (ira_max_memory_move_cost, ira_max_register_move_cost)
7441 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7442 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7443 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7444 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7445 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7446 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7447 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7448 (ira_tune_allocno_costs_and_cover_classes): Rename to
7449 ira_tune_allocno_costs.
7450 (ira_debug_hard_regs_forest): New.
7451 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7452 (ira_object_conflict_iter_next): Fix comments.
7453 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7454 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7455 cover_class to aclass.
7456 (ira_allocate_and_accumulate_costs): Ditto.
7457 (ira_allocate_and_set_or_copy_costs): Ditto.
7459 * opts.c (decode_options): Remove ira_cover_class check.
7461 * ira-color.c: Remove mentioning cover classes from the file. Use
7462 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7463 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7464 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7465 (splay-tree.h): Remove include.
7466 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7467 before copy_freq_compare_func.
7468 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7469 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7471 (hard_regs_roots, hard_regs_node_vec): Ditto.
7472 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7473 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7474 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7475 (create_new_object_hard_regs_node): Ditto.
7476 (add_new_object_hard_regs_node_to_forest): Ditto.
7477 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7478 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7480 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7481 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7482 (remove_unused_object_hard_regs_nodes): Ditto.
7483 (enumerate_object_hard_regs_nodes): Ditto.
7484 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7485 (object_hard_regs_subnode_t): Ditto.
7486 (struct object_hard_regs_subnode): Ditto.
7487 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7488 (setup_object_hard_regs_subnode_index): Ditto.
7489 (get_object_hard_regs_subnodes_num): Ditto.
7490 (form_object_hard_regs_nodes_forest): Ditto.
7491 (finish_object_hard_regs_nodes_tree): Ditto.
7492 (finish_object_hard_regs_nodes_forest): Ditto.
7493 (allocnos_have_intersected_live_ranges_p): Rename to
7494 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7495 (pseudos_have_intersected_live_ranges_p): Rename to
7496 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7497 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7498 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7499 (update_copy_costs): Remove assert. Skip cost update if the hard
7500 reg does not belong the class.
7501 (assign_hard_reg): Process only profitable hard regs.
7502 (uncolorable_allocnos_num): Make it scalar.
7503 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7504 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7505 and ira_reg_class_max_nregs.
7506 (bucket_allocno_compare_func): Check frequency first.
7507 (sort_bucket): Add compare function as a parameter.
7508 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7509 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7510 (push_allocno_to_stack): Rewrite for checking new allocno
7512 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7513 (push_only_colorable): Pass new parameter to sort_bucket.
7514 (push_allocno_to_spill): Remove.
7515 (allocno_spill_priority_compare): Make it inline and rewrite.
7516 (splay_tree_allocate, splay_tree_free): Remove.
7517 (allocno_spill_sort_compare): New function.
7518 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7519 build and use splay tree. Choose first allocno in uncolorable
7520 allocno bucket to spill. Remove setting spill cost.
7521 (all_conflicting_hard_regs): Remove.
7522 (setup_allocno_available_regs_num): Check only profitable hard
7523 regs. Print info about hard regs nodes.
7524 (setup_allocno_left_conflicts_size): Remove.
7525 (put_allocno_into_bucket): Don't call
7526 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7527 (improve_allocation): New.
7528 (color_allocnos): Call setup_profitable_hard_regs,
7529 form_object_hard_regs_nodes_forest, improve_allocation,
7530 finish_object_hard_regs_nodes_forest. Setup spill cost.
7531 (print_loop_title): Use pressure classes.
7532 (color_allocnso): Ditto.
7533 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7534 and allocnos_for_spilling.
7535 (ira_sort_regnos_for_alter_reg): Don't setup members
7536 {first,next}_coalesced_allocno.
7537 (color): Remove allocating and freeing removed_splay_allocno_vec.
7538 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7539 prohibited_class_mode_regs.
7541 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7543 (update_allocno_pressure_excess_length): Use pressure classes.
7544 (inc_register_pressure, dec_register_pressure): Check for pressure
7546 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7547 pressure class. Use ira_reg_class_nregs instead of
7548 ira_reg_class_max_nregs.
7549 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7550 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7551 (single_reg_class): Use ira_reg_class_nregs instead of
7552 ira_reg_class_max_nregs.
7553 (process_bb_node_lives): Use pressure classes.
7555 * ira-emit.c: Remove mentioning cover classes from the file. Use
7556 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7557 (change_loop): Use pressure classes.
7558 (modify_move_list): Call ira_set_allocno_class instead of
7559 ira_set_allocno_cover_class.
7561 * ira-build.c: Remove mentioning cover classes from the file. Use
7562 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7563 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7564 ALLOCNO_UPDATED_CLASS_COST instead of
7565 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7566 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7567 (ira_create_allocno): Remove initialization of
7568 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7569 ALLOCNO_COLORABLE_P.
7570 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7571 Update conflict regs for the objects.
7572 (create_cap_allocno): Remove assert. Don't propagate
7573 ALLOCNO_AVAILABLE_REGS_NUM.
7574 (ira_free_allocno_costs): New function.
7575 (finish_allocno): Change a part of code into call of
7576 ira_free_allocno_costs.
7577 (low_pressure_loop_node_p): Use pressure classes.
7578 (object_range_compare_func): Don't compare classes.
7579 (setup_min_max_conflict_allocno_ids): Ditto.
7581 * loop-invariant.c: Remove mentioning cover classes from the file.
7582 Use ira_pressure_classes and ira_pressure_classes_num instead of
7583 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7584 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7585 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7586 Use reg_allocno_class instead of reg_cover_class.
7587 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7588 STACK_REG_COVER_CLASS.
7589 (get_regno_cover_class): Rename to get_regno_pressure_class.
7590 (move_loop_invariants): Initialize and finalize regstat.
7592 * ira.c: Remove mentioning cover classes from the file. Add
7593 comments about coloring without cover classes. Use ALLOCNO_CLASS
7594 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7595 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7596 setup_class_subset_and_memory_move_costs.
7597 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7598 (setup_cover_and_important_classes): Rename to
7599 setup_allocno_and_important_classes.
7600 (setup_class_translate_array): New.
7601 (setup_class_translate): Call it for allocno and pressure classes.
7602 (cover_class_order): Rename to allocno_class_order.
7603 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7604 of ira_class_translate.
7605 (reorder_important_classes): Set up ira_important_class_nums.
7606 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7607 (print_class_cover): Rename to print_classes. Add parameter.
7608 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7609 Print pressure classes too.
7610 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7611 setup_reg_subclasses.
7612 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7613 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7614 (setup_prohibited_class_mode_regs): Use
7615 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7616 (clarify_prohibited_class_mode_regs): New function.
7617 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7618 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7619 (ira_init_once): Initialize them.
7620 (free_register_move_costs): Process them.
7621 (ira_init): Move calls of find_reg_classes and
7622 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7623 Call clarify_prohibited_class_mode_regs.
7624 (ira_no_alloc_reg): Remove.
7625 (too_high_register_pressure_p): Use pressure classes.
7627 * sched-deps.c: Remove mentioning cover classes from the file.
7628 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7629 ira_pressure_classes and ira_pressure_classes_num instead of
7630 ira_reg_class_cover_size and ira_reg_class_cover.
7631 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7632 sched_regno_pressure_class instead of sched_regno_cover_class.
7633 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7634 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7636 * ira.h: Add 2010 to Copyright.
7637 (ira_no_alloc_reg): Remove external.
7638 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7639 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7640 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7641 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7642 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7643 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7644 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7645 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7646 x_ira_no_alloc_regs.
7647 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7648 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7649 ira_allocno_classes_num and ira_allocno_classes.
7650 (ira_class_translate): Rename to ira_allocno_class_translate.
7651 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7652 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7653 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7654 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7655 (ira_no_alloc_regs): New.
7657 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7658 classes from the file. Use ALLOCNO_CLASS instead of
7659 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7660 ALLOCNO_COVER_CLASS_COST.
7661 (regno_cover_class): Rename to regno_aclass.
7662 (record_reg_classes): Use ira_reg_class_subunion instead of
7663 ira_reg_class_union.
7664 (record_address_regs): Check overflow.
7665 (scan_one_insn): Ditto.
7666 (print_allocno_costs): Print total mem cost fore regional allocation.
7667 (print_pseudo_costs): Use REG_N_REFS.
7668 (find_costs_and_classes): Use classes intersected with them on the
7669 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7670 ira_reg_class_union. Use ira_allocno_class_translate and
7671 regno_aclass instead of ira_class_translate and regno_cover_class.
7672 Modify code for finding regno_aclass. Setup preferred classes for
7674 (setup_allocno_cover_class_and_costs): Rename to
7675 setup_allocno_class_and_costs. Use regno_aclass instead of
7676 regno_cover_class. Use ira_set_allocno_class instead of
7677 ira_set_allocno_cover_class.
7678 (init_costs, finish_costs): Use regno_aclass instead of
7680 (ira_costs): Use setup_allocno_class_and_costs instead of
7681 setup_allocno_cover_class_and_costs.
7682 (ira_tune_allocno_costs_and_cover_classes): Rename to
7683 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7684 by processing objects. Use ira_reg_class_max_nregs instead of
7685 ira_reg_class_nregs.
7687 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7689 * sched-int.h: Remove mentioning cover classes from the file.
7690 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7692 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7693 classes from the file.
7694 (struct reg_pref): Rename coverclass into allocnoclass.
7695 (reg_cover_class): Rename to reg_allocno_class.
7697 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7699 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7701 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7703 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7705 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7707 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7709 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7711 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7713 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7715 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7717 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7718 (i386_ira_cover_classes): Ditto.
7720 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7722 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7724 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7726 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7728 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7730 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7732 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7733 (mips_ira_cover_classes): Ditto.
7735 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7737 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7739 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7741 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7743 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7745 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7746 (IRA_COVER_CLASSES_VSX): Ditto.
7748 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7749 (rs6000_ira_cover_classes): Ditto.
7751 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7753 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7755 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7757 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7759 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7761 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7763 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7765 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7767 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7769 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7771 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7774 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7775 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7776 dw_fde_unlikely_section_end_label, cold_in_std_section,
7777 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7778 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7780 (output_fde): Use dw_fde_second_{begin,end} if second is
7781 true, otherwise dw_fde_{begin,end}.
7782 (output_call_frame_info): Test dw_fde_second_begin != NULL
7783 instead of dw_fde_switched_sections.
7784 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7785 fields, initialize new fields. Initialize in_std_section
7786 unconditionally from the first partition.
7787 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7788 dw_fde_second_begin is non-NULL.
7789 (dwarf2out_switch_text_section): Stop initializing removed
7790 dw_fde_struct fields, initialize new fields, initialize
7791 also dw_fde_end here. Set dw_fde_switch_cfi even when
7792 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7793 (struct var_loc_list_def): Add last_before_switch field.
7794 (arange_table, arange_table_allocated, arange_table_in_use,
7795 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7796 (size_of_aranges): Count !in_std_section and !second_in_std_section
7797 hunks in fdes, instead of looking at arange_table_in_use.
7798 (output_aranges): Add aranges_length argument, don't call
7799 size_of_aranges here. Instead of using aranges_table*
7800 emit ranges for fdes when !in_std_section resp.
7801 !second_in_std_section.
7802 (dw_loc_list): Break ranges crossing section switch.
7803 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7804 use dw_fde_second_end instead of dw_fde_end as end of last range.
7805 (gen_subprogram_die): Don't call add_arange. Use
7806 dw_fde_{begin,end} for first partition and if switched
7807 section dw_fde_second_{begin,end} for the second.
7808 (var_location_switch_text_section_1,
7809 var_location_switch_text_section): New functions.
7810 (dwarf2out_begin_function): Initialize cold_text_section even
7811 when function_section () isn't text_section.
7812 (prune_unused_types): Don't walk arange_table.
7813 (dwarf2out_finish): Don't needlessly test
7814 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7815 If info_section_emitted, call size_of_aranges and if it indicates
7816 non-empty .debug_aranges, call output_aranges with the computed
7817 size. Stop using removed dw_fde_struct fields, use
7818 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7822 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7823 create ENTRY_VALUE if incoming or address of incoming's MEM
7825 * dwarf2out.c (mem_loc_descriptor): Don't emit
7826 DW_OP_GNU_entry_value of DW_OP_fbreg.
7827 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7828 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7829 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7830 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7832 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7833 is a REG_P or MEM_P with REG_P address, compute hash directly
7834 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7835 (preserve_only_constants): Don't clear VALUES forwaring
7836 ENTRY_VALUE to some other VALUE.
7838 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7840 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7843 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7845 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7846 block before expanding the statement.
7847 (expand_gimple_stmt_1): Likewise. Set them here...
7848 (expand_gimple_stmt): ...and not here. Tidy.
7849 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7852 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7854 * Makefile.in: New rule for cprop.o.
7855 * gcse.c: Move constant/copy propagation to cprop.c.
7856 (compute_local_properties): Only handle expression tables.
7857 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7858 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7859 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7860 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7861 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7862 compute_cprop_data, find_used_regs, try_replace_reg,
7863 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7864 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7865 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7866 find_bypass_set, reg_killed_on_edge, bypass_block,
7867 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7868 execute_rtl_cprop, pass_rtl_cprop): Move to...
7869 * cprop.c: ...here. New file, constant/copy propagation for RTL
7870 moved from gcse.c to here with minor cleanups in duplicated code.
7872 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7874 * config/i386/i386.c (flag_opts): Fix a typo in
7875 -mavx256-split-unaligned-store.
7877 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7879 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7880 LIBCALL_VALUE): Remove macros.
7881 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7882 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7883 (h8300_function_value, h8300_libcall_value,
7884 h8300_function_value_regno_p): New functions.
7886 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7888 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7890 2011-03-28 Jeff Law <law@redhat.com>
7892 * tree-ssa-threadupdate.c (redirect_edges): Call
7893 create_edge_and_update_destination_phis as needed.
7894 (create_edge_and_update_destination_phis): Accept new BB argument.
7895 All callers updated.
7896 (thread_block): Do not update the profile when threading around
7897 intermediate blocks.
7898 (thread_single_edge): Likewise.
7899 (determine_bb_domination_status): If BB is not a successor of the
7900 loop header, return NONDOMINATING.
7901 (register_jump_thread): Note when we register a jump thread around
7902 an intermediate block.
7903 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7904 (thread_across_edge): Use it.
7906 2011-03-28 Tristan Gingold <gingold@adacore.com>
7908 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7909 when for_return is 2.
7911 2011-03-28 Jeff Law <law@redhat.com>
7913 * var-tracking.c (canonicalize_values_mark): Delete unused
7915 (canonicalize_values_star, set_variable_part): Likewise.
7916 (clobber_variable_part, delete_variable_part): Likewise.
7918 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7920 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7922 2011-03-28 Martin Jambor <mjambor@suse.cz>
7924 * tree-inline.c (expand_call_inline): Do not check that destination
7926 (optimize_inline_calls): Assert that destination node is analyzed.
7927 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7928 not call tree_lowering_passes.
7929 * cgraph.h (cgraph_analyze_function): Declare.
7930 * cgraphunit.c (cgraph_analyze_function): Make public.
7932 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7934 * config/sparc/sparc-opts.h: New.
7935 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7936 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7937 (sparc_option_override): Store processor_type enumeration rather
7938 than string in cpu_default. Remove name and enumeration from
7939 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7940 without using sparc_select. Use target_flags_explicit instead of
7942 * config/sparc/sparc.h (enum processor_type): Move to
7944 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7945 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7946 HeaderInclude entry.
7947 (mcpu=, mtune=): Use Var and Enum.
7948 (sparc_processor_type): New Enum and EnumValue entries.
7950 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7951 Iain Sandoe <iains@gcc.gnu.org>
7954 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7956 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7958 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7959 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7960 Insert new statements at it in lieu of STMT.
7961 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7962 * tree-vect-stmts.c (vectorizable_store): Likewise.
7963 (vectorizable_load): Likewise.
7965 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7967 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7972 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7974 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7975 unaligned 256bit load/store.
7976 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7977 (*avx_movdqu<avxmodesuffix>): Likewise.
7979 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7982 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7983 * config/pa/pa.md (iordi3): Use new predicate in expander.
7986 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7988 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7989 FUNCTION_VALUE_REGNO_P): Remove macros.
7990 * config/mips/mips-protos.h (mips_function_value): Remove.
7991 * config/mips/mips.c (mips_function_value): Rename to...
7992 (mips_function_value_1): ... this. Make static. Handle receiving
7993 the function type in 'fn_decl_or_type' argument.
7994 (mips_function_value, mips_libcall_value,
7995 mips_function_value_regno_p): New function.
7996 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7997 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7999 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8001 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8002 and -mavx256-split-unaligned-store.
8003 (ix86_option_override_internal): Split 32-byte AVX unaligned
8004 load/store by default.
8005 (ix86_avx256_split_vector_move_misalign): New.
8006 (ix86_expand_vector_move_misalign): Use it.
8008 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8009 -mavx256-split-unaligned-store.
8011 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8012 256bit load/store. Generate unaligned store on misaligned memory
8014 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8016 (*avx_movdqu<avxmodesuffix>): Likewise.
8018 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8019 -mavx256-split-unaligned-store.
8021 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8024 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8027 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8029 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8030 opno arguments with an expand_operand. Use create_input_operand.
8031 (mips_prepare_builtin_target): Delete.
8032 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8034 (mips_expand_builtin_direct): Use create_output_operand and
8035 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8036 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8037 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8039 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8041 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8043 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8045 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8047 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8048 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8049 basic blocks and call commit_edge_insertions directly.
8050 (fixup_abnormal_edges): Move from here to...
8051 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8052 on the edges and return whether some have actually been inserted.
8053 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8056 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8058 PR rtl-optimization/48144
8059 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8060 (merge_expr_data): ... here.
8061 (av_set_intersect): Rename to av_set_code_motion_filter.
8062 Update all callers. Call merge_history_vect when an expression
8063 is found in both sets.
8064 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8066 2011-03-26 Alan Modra <amodra@gmail.com>
8068 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8069 cmodel medium addresses.
8070 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8071 64-bit gpr loads and stores.
8072 (rs6000_secondary_reload_ppc64): New function.
8073 * config/rs6000/rs6000-protos.h: Declare it.
8074 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8076 2011-03-26 Alan Modra <amodra@gmail.com>
8079 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8080 GNU Go in traceback table.
8082 2011-03-25 Richard Henderson <rth@redhat.com>
8084 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8085 if there are exactly 6 operands.
8086 (set_storage_via_setmem): Similarly.
8088 2011-03-25 Kai Tietz <ktietz@redhat.com>
8090 * collect2.c (write_c_file_stat): Handle backslash
8091 as right-hand directory separator.
8092 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8093 checking just for slash.
8094 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8095 instead of checking for trailing slash.
8096 * gcc.c (record_temp_file): Use filename_cmp instead
8098 (do_spec_1): Likewise.
8099 (replace_outfile_spec_function): Likewise.
8100 (is_directory): Use filename_ncmp instead of strncmp.
8101 (print_multilib_info): Likewise.
8102 * gcov.c (find_source): Use filename_cmp instead
8104 (make_gcov_file_name): Fix order of slash/backslash
8106 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8107 (add_standard_paths): Likewise.
8108 * mips-tfile.c (saber_stop): Handle backslash.
8109 * prefix.c (update_path): Use filename_ncmp instead of
8111 * profile.c (output_location): Use filename_cmp instead
8113 * read-md.c (handle_toplevel_file): Handle backslash.
8114 * tlink.c (frob_extension): Likewise.
8115 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8117 * tree-dump.c (dequeue_and_dump): Handle backslash.
8118 * tree.c (get_file_function_name): Likewise.
8119 * gengtype.c (read_input_list): Likewise.
8120 (get_file_realbasename): Likewise.
8121 (get_output_file_with_visibility): Use filename_cmp
8124 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8126 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8129 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8131 * fold-const.c (expr_location_or): New function.
8132 (fold_truth_not_expr): Call it.
8134 2011-03-25 Jeff Law <law@redhat.com>
8136 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8138 * c-family/c-common.c (def_fn_type): Likewise.
8139 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8140 * emit-rtl.c (gen_rtvec): Likewise.
8141 * lto/lto-lang.c (def_fn_type): Likewise.
8143 2011-03-25 Richard Guenther <rguenther@suse.de>
8145 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8146 also generate copies.
8147 (fini_copy_prop): Handle constant values properly.
8149 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8151 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8152 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8153 (hash_loc_operands, compare_loc_operands): Handle
8154 DW_OP_GNU_entry_value.
8156 2011-03-25 Kai Tietz <ktietz@redhat.com>
8158 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8159 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8160 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8161 comment and use macro TARGET_64BIT_MS_ABI instead.
8162 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8163 and change default behavior for 32-bit MS_ABI.
8164 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8165 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8167 (ix86_cfun_abi): Likewise.
8168 (ix86_maybe_switch_abi): Adjust comment.
8169 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8170 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8171 instead of checking for SYSV_ABI.
8172 (ix86_nsaved_sseregs): Likewise.
8173 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8175 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8176 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8177 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8178 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8179 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8181 2011-03-25 Richard Guenther <rguenther@suse.de>
8183 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8184 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8185 (verify_gimple): Remove.
8186 * tree-cfg.c (verify_gimple_call): Merge verification
8188 (verify_gimple_phi): Merge verification from verify_stmts.
8189 (verify_gimple_label): New function.
8190 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8191 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8192 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8193 (verify_stmts): Rename to verify_gimple_in_cfg.
8194 (verify_gimple_in_cfg): New function.
8195 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8196 * tree-ssa.c (verify_ssa): Likewise.
8197 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8199 2011-03-25 Richard Guenther <rguenther@suse.de>
8201 * passes.c (init_optimization_passes): Add FRE pass after
8204 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8205 Andrew Stubbs <ams@codesourcery.com>
8207 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8209 (arm_movdi_vfp_cortexa8): New pattern.
8210 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8211 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8212 instructions when tuning for Cortex-A8. Set attribute "arch".
8213 * config/arm/arm.md: Move include arm-tune.md up a bit.
8214 (define_attr "arch"): Add "onlya8" and "nota8" values.
8215 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8217 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8221 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8223 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8224 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8225 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8226 * passes.c (init_optimization_passes): Move
8227 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8229 2011-03-25 Kai Tietz <ktietz@redhat.com>
8231 * c-typeck.c (comptypes_internal): Replace target
8232 hook call of comp_type_attributes by version in tree.c file.
8233 * gimple.c (gimple_types_compatible_p_1): Likewise.
8234 * tree-ssa.c (useless_type_conversion_p): Likewise.
8235 * tree.c (build_type_attribute_qual_variant): Likewise.
8236 (attribute_value_equal): New static helper function.
8237 (comp_type_attributes): New function.
8238 (merge_attributes): Use attribute_value_equal for comparison.
8239 (attribute_list_contained): Likewise.
8240 * tree.h (comp_type_attributes): New prototype.
8242 2011-03-25 Richard Guenther <rguenther@suse.de>
8244 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8245 of complex types at -O0.
8246 (verify_gimple_assign_binary): Likewise.
8247 (verify_gimple_assign_ternary): Likewise.
8249 2011-03-24 Mark Wielaard <mjw@redhat.com>
8251 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8252 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8254 2011-03-24 Mark Wielaard <mjw@redhat.com>
8257 * dwarf2out.c (output_abbrev_section): Only write table when
8258 abbrev_die_table_in_use > 1.
8260 2011-02-24 Richard Henderson <rth@redhat.com>
8262 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8263 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8264 (alpha_expand_unaligned_load_words): Use extql.
8265 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8266 (emit_insxl): Handle all modes for consistency.
8268 2011-02-24 Richard Henderson <rth@redhat.com>
8270 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8271 (alpha_expand_unaligned_load): Likewise.
8272 (alpha_expand_unaligned_store): Likewise.
8273 (alpha_expand_unaligned_load_words): Likewise.
8274 (alpha_expand_unaligned_store_words): Likewise.
8275 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8276 (alpha_split_lock_test_and_set_12): Likewise.
8277 (print_operand, alpha_fold_builtin_extxx): Likewise.
8278 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8279 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8280 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8281 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8282 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8283 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8284 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8285 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8286 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8287 (extwl, extll, extql): Similarly.
8288 (inswh, inslh, insqh): Similarly.
8289 (mskbl, mskwl, mskll, mskql): Similarly.
8290 (mskwh, msklh, mskqh): Similarly.
8292 2011-02-24 Richard Henderson <rth@redhat.com>
8294 * config/alpha/alpha.md (attribute isa): Add er, ner.
8295 (attribute enabled): Handle them.
8296 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8298 2011-02-24 Richard Henderson <rth@redhat.com>
8300 * config/alpha/alpha.md (attribute isa): Add vms.
8301 (attribute enabled): Handle it.
8302 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8303 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8304 (*movtf): Rename from *movtf_internal for consistency.
8305 (*movsi): Merge with *movsi_nt_vms.
8306 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8307 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8308 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8309 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8311 2011-02-24 Richard Henderson <rth@redhat.com>
8313 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8314 (extendqisi2, extendhisi2): Likewise.
8315 (extendqidi2): Simplify BWX/non-BWX expansions.
8316 (extendhidi2): Similarly.
8318 2011-02-24 Richard Henderson <rth@redhat.com>
8320 * config/alpha/alpha.md (attribute isa): New.
8321 (attribute enabled): New.
8322 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8323 (zero_extendqisi2, zero_extendqidi2): Similarly.
8324 (zero_extendhisi2, zero_extendhidi2): Similarly.
8325 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8327 2011-02-24 Richard Henderson <rth@redhat.com>
8329 * config/alpha/predicates.md (input_operand): Revert last change;
8330 update comment to mention 32-bit VMS rather than Windows.
8332 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8334 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8335 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8336 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8337 * passes.c (init_optimization_passes): Move
8338 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8340 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8342 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8344 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8346 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8349 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8352 * simplify-rtx.c (simplify_const_unary_operation): Call
8353 real_convert when changing mode class with FLOAT_EXTEND.
8355 2011-03-24 Nick Clifton <nickc@redhat.com>
8357 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8358 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8359 * config/rx/rx.c (rx_option_override): Set align_jumps,
8360 align_loops and align_labels if not set by the user.
8361 (rx_align_for_label): New function.
8362 (rx_max_skip_for_label): New function.
8363 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8364 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8365 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8366 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8367 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8369 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8371 PR rtl-optimization/48263
8372 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8373 and original commutative_p handling. Use maybe_gen_insn.
8375 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8377 * reload.c (find_reloads_subreg_address): Add address_reloaded
8378 parameter and return true there if the full address has been
8380 (find_reloads_toplev): Pass address_reloaded flag.
8381 (find_reloads_address_1): Don't use address_reloaded parameter.
8383 2011-03-24 Jeff Law <law@redhat.com>
8385 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8386 unused variable "ann".
8387 (remove_unused_locals): Likewise.
8389 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8392 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8395 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8397 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8398 for invalid symbolic addresses.
8399 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8402 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8404 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8405 the argument in calls to fold_truth_not_expr.
8407 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8409 * tree.c (record_node_allocation_statistics): New function.
8410 (make_node_stat, copy_node_stat, build_string): Call it.
8411 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8412 (build1_stat, build_omp_clause): Likewise.
8414 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8416 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8419 2011-03-24 Richard Guenther <rguenther@suse.de>
8421 PR tree-optimization/48271
8422 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8423 blocks that still exist.
8425 2011-03-24 Richard Guenther <rguenther@suse.de>
8427 PR tree-optimization/48270
8428 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8429 not free datarefs before ddrs.
8431 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8433 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8434 from the address built for a reference with variable offset.
8436 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8439 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8440 alternatives that can be handled with movq or movabsq insn.
8441 (*movdf_internal): Disable for !TARGET_64BIT.
8442 (*movdf_internal_nointeger): Ditto.
8443 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8445 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8447 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8448 (FUNCTION_ARG_ADVANCE): Likewise.
8449 * tm.texi.in: Change references to them to hook references.
8450 * tm.texi: Regenerate.
8451 * targhooks.c (default_function_arg): Eliminate check for target macro.
8452 (default_function_incoming_arg): Likewise.
8453 (default_function_arg_advance): Likewise.
8454 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8455 (function_arg_advance): Likewise.
8456 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8458 2011-03-24 Richard Guenther <rguenther@suse.de>
8461 * tree-object-size.c (addr_object_size): Do not double-account
8462 for MEM_REF offsets.
8464 2011-03-24 Diego Novillo <dnovillo@google.com>
8466 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8467 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8468 (lto_input_data_block): Move from lto-opts.c. Make extern.
8470 (lto_input_string): Rename from input_string. Make extern.
8472 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8473 output_string_with_length.
8474 Output 0 to indicate a non-NULL string. Update all callers to
8476 (lto_output_string): Rename from output_string. Make extern.
8478 (lto_output_decl_state_streams): Make extern.
8479 (lto_output_decl_state_refs): Make extern.
8480 * lto-streamer.h (lto_input_string): Declare.
8481 (lto_input_data_block): Declare.
8482 (lto_output_string): Declare.
8483 (lto_output_string_with_length): Declare.
8484 (lto_output_decl_state_streams): Declare.
8485 (lto_output_decl_state_refs): Declare.
8487 2011-03-24 Richard Guenther <rguenther@suse.de>
8489 PR tree-optimization/46562
8490 * tree.c (build_invariant_address): New function.
8491 * tree.h (build_invariant_address): Declare.
8492 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8493 a renamed function moved ...
8494 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8495 Take valueization callback parameter.
8496 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8497 * gimple-fold.h: New file.
8498 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8499 (ccp_fold, fold_const_aggregate_ref,
8500 fold_ctor_reference, fold_nonarray_ctor_reference,
8501 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8502 get_base_constructor): Move ...
8503 * gimple-fold.c: ... here.
8504 (gimple_fold_stmt_to_constant_1): New function
8505 split out from ccp_fold. Take a valueization callback parameter.
8506 Valueize all operands.
8507 (gimple_fold_stmt_to_constant): New wrapper function.
8508 (fold_const_aggregate_ref_1): New function split out from
8509 fold_const_aggregate_ref. Take a valueization callback parameter.
8510 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8511 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8512 invariant POINTER_PLUS_EXPRs to invariant form.
8513 (vn_valueize): New function.
8514 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8515 * tree-vrp.c (vrp_valueize): New function.
8516 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8517 to fold statements to constants.
8518 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8519 function declarations.
8520 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8521 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8523 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8525 * config/h8300/predicates.md (jump_address_operand): Fix register
8528 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8530 * doc/invoke.texi (max-stores-to-sink): Document.
8531 * params.h (MAX_STORES_TO_SINK): Define.
8532 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8533 if either vectorization or if-conversion is disabled.
8534 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8535 tree-vect-data-refs.c vect_equal_offsets.
8536 (dr_equal_offsets_p): New function.
8537 (find_data_references_in_bb): Remove static.
8538 * tree-data-ref.h (find_data_references_in_bb): Declare.
8539 (dr_equal_offsets_p): Likewise.
8540 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8541 (vect_drs_dependent_in_basic_block): Update calls to
8543 (vect_check_interleaving): Likewise.
8544 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8545 (cond_if_else_store_replacement): Rename to...
8546 (cond_if_else_store_replacement_1): ... this. Change arguments and
8548 (cond_if_else_store_replacement): New function.
8549 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8550 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8552 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8555 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8556 to subtract lower bound instead of GEN_INT().
8558 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8563 * doc/extend.texi (Alignment): Move section to match order in TOC.
8564 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8565 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8567 2011-03-23 Jeff Law <law@redhat.com>
8569 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8570 before removing the edge.
8572 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8573 it may have been freed by redirect_branch_edge or
8574 redirect_edge_succ_nodup.
8576 2011-03-23 Richard Guenther <rguenther@suse.de>
8578 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8579 (check_va_list_escapes): Likewise.
8580 (check_all_va_list_escapes): Likewise.
8582 2011-03-23 Richard Guenther <rguenther@suse.de>
8584 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8585 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8586 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8587 (alias.o): Likewise.
8588 (ipa-type-escape.o): Remove.
8589 (ipa-struct-reorg.o): Likewise.
8590 (GTFILES): Remove ipa-struct-reorg.c.
8591 * alias.c: Do not include ipa-type-escape.h.
8592 * tree-ssa-alias.c: Likewise.
8593 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8594 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8595 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8596 and ipa-type-escape passes.
8597 * tree-pass.h (pass_ipa_type_escape): Remove.
8598 (pass_ipa_struct_reorg): Likewise.
8599 * ipa-struct-reorg.h: Remove.
8600 * ipa-struct-reorg.c: Likewise.
8601 * ipa-type-escape.h: Likewise.
8602 * ipa-type-escape.c: Likewise.
8603 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8604 (--param struct-reorg-cold-struct-ratio): Likewise.
8605 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8606 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8607 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8609 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8611 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8612 cpu attribute value.
8613 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8614 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8615 * config/s390/s390.c (processor_flags_table): New constant array.
8616 (s390_handle_arch_option): Remove.
8617 (s390_handle_option): Remove s390_handle_arch_option invocations
8618 and OPT_mwarn_framesize_ handling.
8619 (s390_option_override): Remove s390_handle_arch_option invocation.
8620 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8622 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8623 * config/s390/s390.opt (s390_tune, s390_arch)
8624 (march=): Replace s390_arch_option enum and values with
8625 processor_type. Set variable name to s390_arch. Set
8626 initialization value.
8627 (mtune=): Replace s390_arch_option with processor_type. Set
8628 variable name to s390_tune. Set initialization value.
8630 2011-03-23 Julian Brown <julian@codesourcery.com>
8632 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8633 accesses which are not naturally aligned.
8635 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8638 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8640 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8642 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8643 parameter from "int" to "enum insn_code".
8644 (expand_operand_type): New enum.
8645 (expand_operand): New structure.
8646 (create_expand_operand): New function.
8647 (create_fixed_operand, create_output_operand): Likewise
8648 (create_input_operand, create_convert_operand_to): Likewise.
8649 (create_convert_operand_from, create_address_operand): Likewise.
8650 (create_integer_operand): Likewise.
8651 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8652 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8653 (expand_insn, expand_jump_insn): Likewise.
8654 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8655 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8656 (expand_movstr, expand_builtin___clear_cache): Likewise.
8657 (expand_builtin_lock_release): Likewise.
8658 * explow.c (allocate_dynamic_stack_space): Likewise.
8659 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8660 and use the default handling in that case.
8661 * expmed.c (check_predicate_volatile_ok): Delete.
8662 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8663 (emit_cstore): Likewise.
8664 * expr.c (emit_block_move_via_movmem): Likewise.
8665 (set_storage_via_setmem, expand_assignment): Likewise.
8666 (emit_storent_insn, try_casesi): Likewise.
8667 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8668 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8669 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8670 (expand_twoval_unop, expand_twoval_binop): Likewise.
8671 (expand_unop_direct, emit_indirect_jump): Likewise.
8672 (emit_conditional_move, vector_compare_rtx): Likewise.
8673 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8674 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8675 (expand_sync_lock_test_and_set): Likewise.
8676 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8677 (emit_unop_insn): Likewise.
8678 (expand_copysign_absneg): Change icode to an insn_code.
8679 (create_convert_operand_from_type): New function.
8680 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8681 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8682 (expand_insn, expand_jump_insn): Likewise.
8683 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8684 than const_int_operand for operand 2.
8686 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8688 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8691 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8693 * emit-rtl.c (emit_pattern_before_noloc): New function.
8694 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8695 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8696 (emit_pattern_after_noloc): New function.
8697 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8698 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8700 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8702 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8703 (__ffsDI2): Likewise.
8705 2011-03-22 Richard Henderson <rth@redhat.com>
8707 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8708 of !TARGET_ABI_OPEN_VMS.
8709 (alpha_trampoline_init, alpha_start_function): Likewise.
8710 (alpha_expand_epilogue, alpha_file_start): Likewise.
8711 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8712 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8713 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8714 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8715 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8719 * config/s390/s390-opts.h: New.
8720 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8721 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8722 s390_stack_guard): Remove.
8723 (s390_handle_arch_option): Return void. Take enum
8724 s390_arch_option value instead of string and searching array.
8725 (s390_handle_option): Don't assert that global structures are in
8726 use. Access variables via opts pointer. Use error_at. Don't use
8727 sscanf for -mstack-guard= or -mstack-size=. Update call to
8728 s390_handle_arch_option.
8729 (s390_option_override): Update call to s390_handle_arch_option.
8730 (s390_emit_prologue): Use %d format for s390_stack_size in
8731 diagnostic. Use %wd for HOST_WIDE_INT.
8732 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8733 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8734 * config/s390/s390.opt (config/s390/s390-opts.h): New
8735 HeaderInclude entry.
8736 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8737 s390_arch_flags, s390_warn_framesize): New Variable entries.
8738 (s390_arch_option): New Enum and EnumValue entries.
8739 (march=): Use Enum instead of Var.
8740 (mstack-guard=, mstack-size=): Use UInteger and Var.
8743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8745 * config/score/score.c (score_handle_option): Don't assert that
8746 global structures are in use. Access target_flags via opts
8747 pointer. Use value of -march= option to determine target_flags
8749 * config/score/score.opt (march=): Use Enum.
8750 (score_arch): New Enum and EnumValue entries.
8752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8754 * config/mep/mep.c (option_mtiny_specified): Remove.
8755 (mep_option_override): Move register handling for -mivc2 from
8756 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8757 instead of option_mtiny_specified.
8758 (mep_handle_option): Access target_flags via opts pointer. Don't
8759 assert that global structures are in use. Defer part of -mivc2
8760 handling and move it to mep_option_override.
8761 * config/mep/mep.opt (IVC2): New Mask entry.
8762 (mivc2): Use Var and Defer instead of Mask.
8764 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8766 * config/v850/v850-opts.h: New.
8767 * config/v850/v850.c (small_memory): Replace with
8768 small_memory_physical_max array. Make that array static const.
8769 (v850_handle_memory_option): Take integer value of argument. Take
8770 gcc_options pointer, option text and location. Return void.
8771 Update for changes to small memory structures.
8772 (v850_handle_option): Access target_flags via opts pointer. Don't
8773 assert that global structures are in use. Update calls to
8774 v850_handle_memory_option.
8775 (v850_encode_data_area): Update references to small memory settings.
8776 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8777 (enum small_memory_type): Move to v850-opts.h.
8778 * config/v850/v850.opt (config/v850/v850-opts.h): New
8779 HeaderInclude entry.
8780 (small_memory_max): New Variable entry.
8781 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8782 (mtda, mzda): Likewise.
8784 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8786 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8787 pointer. Don't assert that global structures are in use.
8789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8791 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8792 via opts pointer. Don't assert that global structures are in use.
8794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8796 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8797 (munix=93): Use Var.
8798 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8799 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8800 * config/pa/pa-opts.h: New.
8801 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8802 (pa_handle_option): Don't assert that global structures are in
8803 use. Access target_flags via opts pointer. Don't handle
8804 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8806 (pa_option_override): Handle deferred OPT_mfixed_range_.
8808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8810 * config/mn10300/mn10300-opts.h: New.
8811 * config/mn10300/mn10300.c (mn10300_processor,
8812 mn10300_tune_string): Remove.
8813 (mn10300_handle_option): Don't assert that global structures are
8814 in use. Access mn10300_processor via opts pointer. Don't handle
8816 * config/mn10300/mn10300.h (enum processor_type): Move to
8818 (mn10300_processor): Remove.
8819 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8820 HeaderInclude entry.
8821 (mn10300_processor): New Variable entry.
8824 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8826 * config/microblaze/microblaze.c: Don't include opts.h.
8827 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8828 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8829 (mno-clearbss): Use Var and Warn.
8831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8833 * config/m32r/m32r-opts.h: New.
8834 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8835 (m32r_handle_option): Don't assert that global structures are in
8836 use. Access target_flags and m32r_cache_flush_func via opts
8837 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8838 OPT_mno_flush_trap here.
8839 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8840 include of m32r-opts.h.
8841 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8842 HeaderInclude entry.
8843 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8844 (mmodel=): Use Enum and Var.
8845 (m32r_model): New Enum and EnumValue entries.
8846 (mno-flush-trap): Use Var.
8847 (msdata=): Use Enum and Var.
8848 (m32r_sdata): New Enum and EnumValue entries.
8850 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8852 * config/m32c/m32c.c: Don't include opts.h.
8853 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8854 m32c_handle_option): Remove.
8855 (m32c_option_override): Check global_options_set.x_target_memregs
8856 instead of target_memregs_set.
8857 * config/m32c/m32c.h (target_memregs): Remove.
8858 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8861 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8863 * config/iq2000/iq2000-opts.h: New.
8864 * config/iq2000/iq2000.c: Don't include opts.h.
8865 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8866 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8867 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8868 HeaderInclude entry.
8869 (iq2000_tune): New Variable entry.
8870 (march=): Add comment. Use Enum.
8871 (iq2000_arch): New Enum and EnumValue entries.
8872 (mcpu=): Use Enum and Var.
8873 (iq2000_tune): New Enum and EnumValue entries.
8875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8877 * config/ia64/ia64-opts.h: New.
8878 * config/ia64/ia64.c (ia64_tune): Remove.
8879 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8881 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8882 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8883 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8884 HeaderInclude entry.
8885 (ia64_tune): New Variable entry.
8886 (mfixed-range=): Use Defer and Var.
8887 (mtune=): Use Enum and Var.
8888 (ia64_tune): New Enum and EnumValue entries.
8890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8892 * config/frv/frv-opts.h: New.
8893 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8895 (frv_cpu_type): Remove.
8896 * config/frv/frv.c: Don't include opts.h.
8897 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8898 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8899 (frv_cpu_type): New Variable entry.
8900 (frv_cpu): New Enum and EnumValue entries.
8902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8904 * config/cris/cris.c (cris_handle_option): Access target_flags via
8905 opts pointer. Don't assert that global structures are in use.
8906 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8907 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8911 * config/bfin/bfin-opts.h: New.
8912 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8913 bfin_si_revision, bfin_workarounds): Remove.
8914 (bfin_cpus): Make static const.
8915 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8916 not bfin_lib_id_given.
8917 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8918 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8919 pointer. Use error_at. Don't assert that global structures are in use.
8920 * config/bfin/bfin.h: Include bfin-opts.h.
8921 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8922 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8923 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8924 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8929 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8930 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8931 or -msoft-float here.
8932 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8933 -msoft-float and -mhard-float.
8934 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8935 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8937 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8939 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8940 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8942 (LIBGCC_SPEC): Don't handle -msoft-float.
8943 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8945 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8947 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8948 -mfloat-abi=*, not -msoft-float and -mhard-float.
8949 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8951 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8952 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8953 mhard-float and msoft-float.
8954 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8955 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8956 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8957 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8959 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8960 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8962 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8964 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8967 2011-03-22 Richard Henderson <rth@redhat.com>
8969 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8970 TARGET_ABI_WINDOWS_NT.
8971 (alpha_output_function_end_prologue): Likewise.
8972 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8973 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8974 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8975 (trap, *movsi_nt_vms): Likewise.
8976 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8977 (*tablejump_osf_nt_internal): Remove.
8978 * config/alpha/predicates.md (input_operand): Only test Pmode.
8980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8982 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8983 via opts pointer. Use error_at. Don't assert that global
8984 structures are in use.
8986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8988 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8989 (ix86_handle_option): Access ix86_isa_flags and
8990 ix86_isa_flags_explicit via opts pointer. Don't assert that
8991 global structures are in use.
8992 (ix86_function_specific_save, ix86_function_specific_restore):
8993 Update ix86_isa_flags_explicit field name.
8994 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8995 (ix86_isa_flags_explicit): Rename TargetSave entry to
8996 x_ix86_isa_flags_explicit.
8998 2011-03-22 Richard Henderson <rth@redhat.com>
9000 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9001 (alpha_option_override, direct_return): Likewise.
9002 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9003 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9004 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9005 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9006 (alpha_expand_epilogue, alpha_end_function): Likewise.
9007 (alpha_init_libfuncs): Likewise.
9008 (struct machine_function): Remove unicosmk members.
9009 (print_operand) ['t']: Remove.
9010 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9011 unicosmk_output_module_name, unicosmk_output_common,
9012 current_section_align, unicosmk_output_text_section_asm_op,
9013 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9014 unicosmk_section_type_flags, unicosmk_unique_section,
9015 unicosmk_asm_named_section, unicosmk_insert_attributes,
9016 unicosmk_output_align, unicosmk_defer_case_vector,
9017 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9018 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9019 unicosmk_output_ssib, unicosmk_add_call_info_word,
9020 unicosmk_extern_head, unicosmk_output_default_externs,
9021 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9022 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9023 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9024 * config/alpha/alpha-protos.h: Update.
9025 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9026 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9027 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9028 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9029 (*mulsi_se, mulvsi3): Likewise.
9030 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9031 (*divmodsi_internal, call, call_value, realign): Likewise.
9032 (moddi3, umoddi3): Likewise; remove duplicate expander.
9033 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9034 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9035 (*movdi_nofix): Remove r/U alternative.
9036 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9037 * config/alpha/constraints.md ("U"): Remove.
9038 * config/alpha/predicates.md (call_operand"): Don't test
9039 TARGET_ABI_UNICOSMK.
9041 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9043 * target.def (handle_option): Take gcc_options and
9044 cl_decoded_option pointers and location_t.
9045 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9046 * doc/tm.texi: Regenerate.
9047 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9048 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9049 * lto-opts.c (lto_reissue_options): Generate option structure for
9050 targetm.handle_option call.
9051 * opts.c (target_handle_option): Update call to
9052 targetm.handle_option. Remove assertions about values now passed
9054 * targhooks.c (default_target_handle_option): New.
9055 * targhooks.h (default_target_handle_option): Declare.
9056 * config/alpha/alpha.c: Include opts.h.
9057 (alpha_handle_option): Update to new hook interface.
9058 * config/arm/arm.c: Include opts.h.
9059 (arm_handle_option): Update to new hook interface.
9060 * config/arm/t-arm (arm.o): Update dependencies.
9061 * config/bfin/bfin.c: Include opts.h.
9062 (bfin_handle_option): Update to new hook interface.
9063 * config/cris/cris.c: Include opts.h.
9064 (cris_handle_option): Update to new hook interface.
9065 * config/frv/frv.c: Include opts.h.
9066 (frv_handle_option): Update to new hook interface.
9067 * config/i386/i386.c: Include opts.h.
9068 (ix86_handle_option): Update to new hook interface.
9069 (ix86_valid_target_attribute_inner_p): Generate option structure
9070 for call to ix86_handle_option.
9071 * config/i386/t-i386 (i386.o): Update dependencies.
9072 * config/ia64/ia64.c: Include opts.h.
9073 (ia64_handle_option): Update to new hook interface.
9074 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9075 * config/iq2000/iq2000.c: Include opts.h.
9076 (iq2000_handle_option): Update to new hook interface.
9077 * config/m32c/m32c.c: Include opts.h.
9078 (m32c_handle_option): Update to new hook interface.
9079 * config/m32r/m32r.c: Include opts.h.
9080 (m32r_handle_option): Update to new hook interface.
9081 * config/m68k/m68k.c: Include opts.h.
9082 (m68k_handle_option): Update to new hook interface.
9083 * config/mep/mep.c: Include opts.h.
9084 (mep_handle_option): Update to new hook interface.
9085 * config/microblaze/microblaze.c: Include opts.h.
9086 (microblaze_handle_option): Update to new hook interface.
9087 * config/mips/mips.c: Include opts.h.
9088 (mips_handle_option): Update to new hook interface.
9089 * config/mn10300/mn10300.c: Include opts.h.
9090 (mn10300_handle_option): Update to new hook interface.
9091 * config/pa/pa.c: Include opts.h.
9092 (pa_handle_option): Update to new hook interface.
9093 * config/pdp11/pdp11.c: Include opts.h.
9094 (pdp11_handle_option): Update to new hook interface.
9095 * config/rs6000/rs6000.c: Include opts.h.
9096 (rs6000_handle_option): Update to new hook interface.
9097 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9098 * config/rx/rx.c: Include opts.h.
9099 (rx_handle_option): Update to new hook interface.
9100 * config/s390/s390.c: Include opts.h.
9101 (s390_handle_option): Update to new hook interface.
9102 * config/score/score.c: Include opts.h.
9103 (score_handle_option): Update to new hook interface.
9104 * config/sh/sh.c: Include opts.h.
9105 (sh_handle_option): Update to new hook interface.
9106 * config/sparc/sparc.c: Include opts.h.
9107 (sparc_handle_option): Update to new hook interface.
9108 * config/v850/v850.c: Include opts.h.
9109 (v850_handle_option): Update to new hook interface.
9111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9113 * gcc.c (driver_unknown_option_callback): Only permit and save
9114 unknown -Wno- options.
9115 (driver_wrong_lang_callback): Save options directly instead of via
9116 driver_unknown_option_callback.
9118 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9120 * combine.c (simplify_set): Try harder to find the best CC mode when
9121 simplifying a nested COMPARE on the RHS.
9123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9125 * config/alpha/gnu.h: Remove.
9126 * config/arc: Remove directory.
9127 * config/arm/netbsd.h: Remove.
9128 * config/arm/t-pe: Remove.
9129 * config/crx: Remove directory.
9130 * config/i386/netbsd.h: Remove.
9131 * config/m68hc11: Remove directory.
9132 * config/m68k/uclinux-oldabi.h: Remove.
9133 * config/mcore/mcore-pe.h: Remove.
9134 * config/mcore/t-mcore-pe: Remove.
9135 * config/netbsd-aout.h: Remove.
9136 * config/rs6000/gnu.h: Remove.
9137 * config/sh/sh-symbian.h: Remove.
9138 * config/sh/symbian-base.c: Remove.
9139 * config/sh/symbian-c.c: Remove.
9140 * config/sh/symbian-cxx.c: Remove.
9141 * config/sh/symbian-post.h: Remove.
9142 * config/sh/symbian-pre.h: Remove.
9143 * config/sh/t-symbian: Remove.
9144 * config/svr3.h: Remove.
9145 * config/vax/netbsd.h: Remove.
9146 * config.build: Don't handle i[34567]86-*-pe.
9147 * config.gcc: Remove handling of deprecations for most deprecated
9149 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9150 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9151 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9152 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9153 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9154 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9156 * config.host: Don't handle i[34567]86-*-pe.
9157 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9158 (ASM_SPEC32): Don't handle -mcall-gnu.
9159 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9161 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9162 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9163 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9164 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9165 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9166 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9167 conditional on SYMBIAN.
9168 * configure.ac: Don't handle powerpc*-*-gnu*.
9169 * configure: Regenerate.
9170 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9171 * doc/install-old.texi (m6811, m6812): Don't mention.
9172 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9173 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9174 (m68k-uclinuxoldabi): Don't mention.
9175 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9177 (-mcall-gnu): Remove.
9178 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9179 families): Remove constraint documentation.
9181 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9183 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9184 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9185 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9187 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9190 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9191 vector when peeking at the next token for vector, don't expand the
9194 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9196 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9197 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9198 * config/avr/avr.c (init_cumulative_args)
9199 (avr_function_arg_advance): Use it.
9200 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9202 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9203 (avr_function_ok_for_sibcall): ...this new function.
9204 (avr_lookup_function_attribute1): New static Function.
9205 (avr_naked_function_p, interrupt_function_p)
9206 (signal_function_p, avr_OS_task_function_p)
9207 (avr_OS_main_function_p): Use it.
9208 * config/avr/avr.md ("sibcall", "sibcall_value")
9209 ("sibcall_epilogue"): New expander.
9210 ("*call_insn", "*call_value_insn"): New insn.
9211 ("call_insn", "call_value_insn"): Remove
9212 ("call", "call_value", "epilogue"): Change expander to handle
9215 2011-03-21 Nick Clifton <nickc@redhat.com>
9217 * doc/invoke.texi (Overall Options): Move closing brace to end of
9219 (Optimization Options): Add missing @gol.
9220 (Directory Options): Likewise.
9221 (i386 and x86-64 Options): Likewise.
9222 (RS6000 and PowerPC Options): Likewise.
9223 (i386 and x86-64 Windows Options): Likewise.
9224 (V850 Options): Add text missing from descriptions.
9226 2011-03-22 Richard Henderson <rth@redhat.com>
9228 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9229 (avr_incoming_return_addr_rtx): New.
9230 (emit_push_byte): New.
9231 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9232 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9233 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9234 (emit_pop_byte): New.
9235 (expand_epilogue): Use it. Pop frame pointer by bytes.
9236 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9237 (INCOMING_RETURN_ADDR_RTX): New.
9238 (INCOMING_FRAME_SP_OFFSET): New.
9239 (ARG_POINTER_CFA_OFFSET): New.
9240 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9241 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9244 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9246 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9248 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9249 (FUNCTION_ARG_ADVANCE): Likewise.
9250 * tm.texi.in: Change references to them to hook references.
9251 * tm.texi: Regenerate.
9252 * targhooks.c (default_function_arg): Eliminate check for target
9254 (default_function_incoming_arg): Likewise.
9255 (default_function_arg_advance): Likewise.
9256 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9257 (function_arg_advance): Likewise.
9258 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9260 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9262 * tree.c (build_call_1): New function.
9263 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9265 2011-03-22 Richard Guenther <rguenther@suse.de>
9267 PR tree-optimization/48228
9268 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9269 for single-arg PHIs.
9271 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9273 PR rtl-optimization/48143
9274 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9275 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9276 sse2_cvtps2pd): Likewise.
9278 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9280 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9282 2011-03-22 Richard Guenther <rguenther@suse.de>
9284 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9285 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9286 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9287 and REALIGN_LOAD_EXPR.
9288 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9289 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9290 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9291 DOT_PROD_EXPR case ...
9292 (expand_expr_real_2): ... here.
9293 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9294 and REALIGN_LOAD_EXPR.
9295 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9296 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9297 (vect_create_epilog_for_reduction): Likewise.
9298 (vectorizable_reduction): Likewise.
9299 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9300 * tree-vect-stmts.c (vectorizable_load): Likewise.
9302 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9304 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9306 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9308 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9309 handling for PLTOFF/GOTOFF.
9311 2011-03-22 Nick Clifton <nickc@redhat.com>
9313 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9314 trailing backslash from the end of the macro definition.
9316 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9318 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9321 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9323 * expr.h (prepare_operand): Move to...
9324 * optabs.h (prepare_operand): ...here and change the insn code
9325 parameter from "int" to "enum insn_code".
9326 (insn_operand_matches): Declare.
9327 * expr.c (init_expr_target): Use insn_operand_matches.
9328 (compress_float_constant): Likewise.
9329 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9330 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9331 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9332 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9334 (gen_cond_trap): Likewise.
9335 (prepare_operand): Likewise. Change icode to an insn_code.
9336 (insn_operand_matches): New function.
9337 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9338 * reload1.c (gen_reload): Likewise.
9339 * targhooks.c (default_secondary_reload): Likewise.
9341 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9343 * config/alpha/alpha.md (unspec): New define_c_enum.
9346 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9349 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9350 between a call and its CALL_ARG_LOCATION note.
9352 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9354 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9356 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9360 * c-common.c (shorten_compare): If primopN is first sign-extended
9361 to opN and then zero-extended to result type, set primopN to opN.
9363 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9365 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9366 for barrier handlers.
9368 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9370 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9371 UNSPEC constants to be in the unspec enumeration, and redefine
9372 all UNSPECV constants to be in the unspecv enumeration, so that
9373 dumps print which unspec/unspec_volatile this is.
9374 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9375 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9376 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9377 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9378 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9380 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9381 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9382 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9383 * config/rs6000/sync.md (isync, lwsync): Ditto.
9385 2011-03-21 Richard Guenther <rguenther@suse.de>
9387 * params.def (lto-min-partition): Fix typo.
9389 2011-03-21 Richard Guenther <rguenther@suse.de>
9392 * c-decl.c (grokdeclarator): Drop to the main variant only
9393 for array types. Drop flag_gen_aux_info check.
9395 2011-03-21 Richard Guenther <rguenther@suse.de>
9397 PR translation/47911
9398 * params.def (lto-partitions): Fix typo.
9399 (lto-min-partition): Fix wording.
9401 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9403 * config/rs6000/t-freebsd: Remove duplication from file.
9405 2011-03-21 Richard Guenther <rguenther@suse.de>
9408 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9410 2011-03-21 Richard Guenther <rguenther@suse.de>
9413 * params.def (lto-partitions): Require at least 1 partition.
9415 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9417 * gthr-solaris.h: Remove.
9418 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9419 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9420 (LIB_SPEC): Likewise.
9421 * config/sol2.opt (threads): Remove.
9422 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9423 (sparc*-*-solaris2*): Likewise.
9424 * configure.ac (enable_threads): Enable solaris support.
9425 * configure: Regenerate.
9426 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9427 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9430 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9432 * config.gcc: Obsolete *-*-solaris2.8*.
9433 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9435 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9438 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9439 reference. Solaris 8 perl works.
9441 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9444 * doc/install.texi (Prerequisites): Move jar etc. up.
9445 Explain support library version requirements.
9447 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9450 * doc/install.texi (Prerequisites): Move Perl to build
9451 requirements. Always necessary on Solaris 2 with Sun ld.
9453 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9455 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9457 (Specific, i?86-*-solaris2.[89]): Likewise.
9458 (Specific, i?86-*-solaris2.10): Likewise.
9459 (Specific, mips-sgi-irix6): Likewise.
9460 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9461 Update for binutils 2.21.
9463 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9465 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9466 Allow -fuse-linker-plugin for non-default plugin linker.
9467 * configure: Regenerate.
9469 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9472 * gengtype.c (files_rules): Added rule for cp/parser.h.
9474 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9477 * config/s390/s390.c (s390_delegitimize_address): Don't call
9478 lowpart_subreg if orig_x has BLKmode.
9480 2011-03-21 Kai Tietz <ktietz@redhat.com>
9483 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9484 * tree.h (attribute_spec): Add new member affects_type_identity.
9485 * attribs.c (empty_attribute_table): Adjust attribute_spec
9487 * config/alpha/alpha.c: Likewise.
9488 * config/arc/arc.c: Likewise.
9489 * config/arm/arm.c: Likewise.
9490 * config/avr/avr.c: Likewise.
9491 * config/bfin/bfin.c: Likewise.
9492 * config/crx/crx.c: Likewise.
9493 * config/darwin.h: Likewise.
9494 * config/h8300/h8300.c: Likewise.
9495 * config/i386/cygming.h: Likewise.
9496 * config/i386/i386.c: Likewise.
9497 * config/ia64/ia64.c: Likewise.
9498 * config/m32c/m32c.c: Likewise.
9499 * config/m32r/m32r.c: Likewise.
9500 * config/m68hc11/m68hc11.c: Likewise.
9501 * config/m68k/m68k.c: Likewise.
9502 * config/mcore/mcore.c: Likewise.
9503 * config/mep/mep.c: Likewise.
9504 * config/microblaze/microblaze.c: Likewise.
9505 * config/mips/mips.c: Likewise.
9506 * config/rs6000/rs6000.c: Likewise.
9507 * config/rx/rx.c: Likewise.
9508 * config/sh/sh.c: Likewise.
9509 * config/sol2.h: Likewise.
9510 * config/sparc/sparc.c: Likewise.
9511 * config/spu/spu.c: Likewise.
9512 * config/stormy16/stormy16.c: Likewise.
9513 * config/v850/v850.c: Likewise.
9515 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9517 * simplify-rtx.c (simplify_binary_operation_1): Handle
9518 (xor (and A B) C) case when B and C are both constants.
9520 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9522 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9524 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9527 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9529 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9531 PR rtl-optimization/48156
9532 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9533 assume df and df_lr are not NULL.
9535 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9538 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9539 between a call and its CALL_ARG_LOCATION note.
9541 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9544 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9545 between a call and its corresponding CALL_ARG_LOCATION note.
9547 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9549 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9550 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9551 * haifa-sched.c (setup_ref_regs): Ditto.
9552 * caller-save.c (add_used_regs_1): Ditto.
9553 * dse.c (look_for_hardregs): Ditto.
9554 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9555 * sched-rgn.c (check_live_1): Ditto.
9557 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9559 * c-decl.c (diagnose_mismatched_decls): Give an error for
9560 redefining a typedef with variably modified type.
9562 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9564 * c-decl.c (grokfield): Don't allow typedefs for structures or
9565 unions with no tag by default.
9566 * doc/extend.texi (Unnamed Fields): Update.
9568 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9570 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9571 Rewrite using indirect functions.
9572 (lwp_slwpcb): Ditto.
9573 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9574 (avx_vinsertf128<mode>): Ditto.
9576 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9578 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9581 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9583 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9584 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9586 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9588 PR rtl-optimization/48170
9589 * gcse.c (hoist_code): Remove bogus asserts.
9591 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9593 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9594 computation for prologue/epilogue.
9596 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9598 * Makefile.in (check-consistency): Remove.
9600 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9603 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9604 arange_table_in_use is 0, but either text_section_used or
9605 cold_text_section_used is true. Don't call it if
9606 !info_section_emitted.
9608 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9610 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9611 FUNCTION_VALUE_REGNO_P): Remove.
9612 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9614 * config/avr/avr.c (avr_ret_register): Make static inline.
9615 (avr_function_value_regno_p): New function.
9616 (avr_libcall_value): Make static. Add 'func' argument.
9617 (avr_function_value): Make static. Rename 'func' argument to
9618 'fn_decl_or_type', forward it to avr_libcall_value. Call
9619 avr_ret_register function instead of RET_REGISTER macro.
9620 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9622 2011-03-18 Jason Merrill <jason@redhat.com>
9625 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9627 2011-03-18 Richard Guenther <rguenther@suse.de>
9629 * doc/install.texi (--enable-gold): Remove.
9630 (--with-plugin-ld): Document.
9631 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9633 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9636 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9637 again after expansion changes.
9639 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9641 * combine.c (try_combine): Do simplification only call of
9642 subst() on i2 even when i1 is present. Update comments.
9644 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9646 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9647 and UNSPEC_PCREL_SYMOFF.
9649 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9651 * config/s390/s390.md: Use define_c_enum for the unspec constant
9654 2011-03-18 Richard Henderson <rth@redhat.com>
9655 Jakub Jelinek <jakub@redhat.com>
9658 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9659 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9661 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9664 * combine.c (cant_combine_insn_p): Don't check zero/sign
9665 extended hard registers.
9667 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9670 * combine.c (cant_combine_insn_p): Check zero/sign extended
9673 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9675 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9676 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9677 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9678 Change return type to bool.
9679 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9681 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9684 * var-tracking.c (prepare_call_arguments): If CALL target
9685 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9686 pc instead of looking it up using cselib_lookup and use
9687 Pmode for it if x has VOIDmode.
9688 * dwarf2out.c (gen_subprogram_die): If also both first and
9689 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9692 * function.c (assign_parms): For data.passed_pointer parms
9693 use MEM of data.entry_parm instead of data.entry_parm itself
9694 as DECL_INCOMING_RTL.
9695 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9696 also when passed and declared mode is the same, DECL_RTL
9697 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9700 2011-03-16 Jeff Law <law@redhat.com>
9702 PR rtl-optimization/37273
9703 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9704 handle them like argument loads from stack slots. Do not double
9705 count memory for memory constants and argument loads from stack slots.
9707 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9710 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9712 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9715 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9717 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9720 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9722 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9723 Clear call_arg_locations and call_arg_loc_last always.
9726 * var-tracking.c (prepare_call_arguments): If argument needs to be
9727 passed by reference, adjust argtype and mode.
9729 2011-03-17 Richard Guenther <rguenther@suse.de>
9732 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9733 a value make sure to fold the statement.
9735 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9738 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9739 return condition with !cfun->calls_alloca.
9741 2011-03-17 Richard Guenther <rguenther@suse.de>
9744 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9745 origin for decls in other ltrans units.
9746 (input_varpool_node): Likewise.
9748 2011-03-17 Richard Guenther <rguenther@suse.de>
9751 * tree-object-size.c (compute_object_offset): Properly return
9752 the offset operand of MEM_REFs as sizetype.
9754 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9756 PR rtl-optimization/48141
9757 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9758 * dse.c: Include params.h.
9759 (active_local_stores_len): New variable.
9760 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9762 (record_store, check_mem_read_rtx): Decrease it when removing
9764 (scan_insn): Likewise. Increase it when adding to chain, if it
9765 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9766 set active_local_stores to NULL before the addition.
9767 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9769 PR rtl-optimization/48141
9770 * dse.c (record_store): If no positions are needed in an insn
9771 that cannot be deleted, at least unchain it from active_local_stores.
9773 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9776 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9777 (lookup_type_die_strip_naming_typedef): ... here.
9778 (get_context_die): Use it.
9779 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9780 the anonymous struct named by the naming typedef.
9782 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9785 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9786 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9788 2011-03-16 Jeff Law <law@redhat.com>
9790 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9791 check for operands of conditional. Allow type to be a pointer.
9793 2011-03-16 Richard Guenther <rguenther@suse.de>
9795 PR tree-optimization/48149
9796 * fold-const.c (fold_binary_loc): Fold
9797 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9799 2011-03-16 Richard Guenther <rguenther@suse.de>
9801 PR tree-optimization/26134
9802 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9803 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9804 (non_rewritable_mem_ref_base): Handle complex type component
9805 accesses, constrain offsets for vector and complex extracts
9808 2011-03-16 Richard Guenther <rguenther@suse.de>
9810 PR tree-optimization/48146
9811 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9812 operands avoiding the need for renaming.
9814 2011-03-16 Richard Guenther <rguenther@suse.de>
9816 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9817 constant folding. Move MEM_REF canonicalization first.
9818 Rely on fold_const_aggregate_ref for initializer folding.
9819 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9821 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9824 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9825 arg0/arg1 or their arguments are always fold converted to matching
9828 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9831 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9834 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9835 Handle in-tree gold.
9836 (ld_vers): Extract binutils version for gold.
9837 (gcc_cv_ld_hidden): Handle gold here.
9838 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9839 * configure: Regenerate.
9840 * config.in: Regenerate.
9841 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9842 -fuse-linker-plugin otherwise.
9843 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9844 (LINK_COMMAND_SPEC): Use it.
9845 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9847 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9849 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9850 * calls.c: Remove debug.h include.
9851 (emit_call_1): Don't call virtual_call_token debug hook.
9852 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9853 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9854 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9855 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9856 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9857 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9858 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9859 dwarf2out_virtual_call): Remove.
9860 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9861 copy_call_info and virtual_call hooks.
9862 (dwarf2out_init): Don't initialize vcall_insn_table,
9863 debug_dcall_section and debug_vcall_section.
9864 (prune_unused_types): Don't mark nodes from dcall_table.
9865 (dwarf2out_finish): Don't output dcall or vcall tables.
9866 * final.c (final_scan_insn): Don't call direct_call or
9867 virtual_call debug hooks.
9868 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9869 virtual_call_token, copy_call_info and virtual_call hooks.
9870 (debug_nothing_uid): Remove prototype.
9871 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9872 copy_call_info and virtual_call hooks.
9873 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9874 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9875 * debug.c (do_nothing_debug_hooks): Likewise.
9876 (debug_nothing_uid): Remove.
9877 * doc/invoke.texi (-fenable-icf-debug): Remove.
9878 * common.opt (-fenable-icf-debug): Likewise.
9880 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9881 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9882 call's MEM. Handle functions returning aggregate through a hidden
9883 first pointer. For virtual calls add clobbered pc to call arguments
9885 * dwarf2out.c (gen_subprogram_die): Emit
9886 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9890 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9891 * rtl.h (ENTRY_VALUE_EXP): Define.
9892 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9893 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9894 * print-rtl.c (print_rtx): Likewise.
9895 * gengtype.c (adjust_field_rtx_def): Likewise.
9896 * var-tracking.c (vt_add_function_parameter): Adjust
9897 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9898 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9899 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9900 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9901 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9903 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9904 Call var_location debug hook even on CALL_INSNs.
9905 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9906 * rtl.def (ENTRY_VALUE): New.
9907 * dwarf2out.c: Include cfglayout.h.
9908 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9909 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9910 (struct call_arg_loc_node): New type.
9911 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9912 tail_call_site_count): New variables.
9913 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9914 DW_TAG_GNU_call_site_parameter.
9915 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9916 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9917 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9918 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9919 and DW_AT_GNU_all_source_call_sites.
9920 (mem_loc_descriptor): Handle ENTRY_VALUE.
9921 (add_src_coords_attributes): Don't add enything if
9922 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9923 (dwarf2out_abstract_function): Save and clear call_arg_location,
9924 call_site_count and tail_call_site_count around dwarf2out_decl call.
9925 (gen_call_site_die): New function.
9926 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9927 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9928 (dwarf2out_function_decl): Clear call_arg_locations,
9929 call_arg_loc_last, set call_site_count and tail_call_site_count
9930 to -1 and free block_map.
9931 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9932 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9933 followed by any real instructions.
9934 (dwarf2out_begin_function): Set call_site_count and
9935 tail_call_site_count to 0.
9936 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9937 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9938 attempt to force a DIE for it and worst case remove the attribute.
9939 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9940 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9942 * var-tracking.c: Include tm_p.h.
9943 (vt_stack_adjustments): For calls call note_register_arguments.
9944 (argument_reg_set): New variable.
9945 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9946 ensure the VALUE is resolved.
9947 (call_arguments): New variable.
9948 (prepare_call_arguments): New function.
9949 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9950 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9951 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9952 always use the best expression.
9953 (vt_expand_loc): Add ignore_cur_loc argument.
9954 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9955 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9956 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9958 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9959 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9960 argument. Don't call cselib_preserve_only_values and
9962 (note_register_arguments): New function.
9963 (vt_initialize): Compute argument_reg_set. Call
9964 vt_add_function_parameters before processing basic blocks instead of
9965 afterwards. For calls call prepare_call_arguments before calling
9966 cselib_process_insn.
9967 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9968 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9969 (var-tracking.o): Depend on $(TM_P_H).
9970 * cfglayout.h (insn_scope): New prototype.
9971 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9972 * cfglayout.c (insn_scope): No longer static.
9973 * insn-notes.def (CALL_ARG_LOCATION): New.
9974 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9975 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9976 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9977 nothing for DECL_EXTERNAL BLOCK_VARS.
9979 2011-03-16 Alan Modra <amodra@gmail.com>
9982 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9983 create invalid offset address for vsx splat insn.
9984 * config/rs6000/predicates.md (splat_input_operand): New.
9985 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9987 2011-03-15 Xinliang David Li <davidxl@google.com>
9990 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9991 (normalize_preds): New function.
9992 (is_use_properly_guarded): Normalize def predicates.
9994 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9997 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9998 in the output template.
10000 2011-03-15 Richard Guenther <rguenther@suse.de>
10002 PR middle-end/47650
10003 * tree-pretty-print.c (dump_function_declaration): Properly
10004 dump unprototyped and varargs function types.
10006 2011-03-15 Richard Guenther <rguenther@suse.de>
10008 PR tree-optimization/13954
10009 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10012 2011-03-15 Richard Guenther <rguenther@suse.de>
10014 PR tree-optimization/48037
10015 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10016 selects into BIT_FIELD_REFs.
10017 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10020 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10022 PR tree-optimization/48129
10023 * builtins.c (fold_builtin_snprintf): Convert to type of
10024 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10025 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10027 2011-03-15 Richard Guenther <rguenther@suse.de>
10029 PR tree-optimization/41490
10030 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10031 value but with VUSE.
10032 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10034 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10035 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10036 * tree-tailcall.c (find_tail_calls): Ignore returns.
10038 2011-03-15 Richard Guenther <rguenther@suse.de>
10040 PR middle-end/48031
10041 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10042 or variable-indexed array accesses when in gimple form.
10044 2011-03-15 Richard Guenther <rguenther@suse.de>
10046 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10048 2011-03-15 Alan Modra <amodra@gmail.com>
10051 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10052 presume symbol_refs without a symbol_ref_decl are suitably
10053 aligned, nor other trees we may see here. Handle anchor symbols.
10054 (legitimate_constant_pool_address_p): Comment. Add mode param.
10055 Check cmodel=medium addresses. Adjust all calls.
10056 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10057 creating cmodel=medium optimized access to locals.
10058 * config/rs6000/constraints.md (R): Pass QImode to
10059 legitimate_constant_pool_address_p.
10060 * config/rs6000/predicates.md (input_operand): Pass mode to
10061 legitimate_constant_pool_address_p.
10062 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10065 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10068 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10069 64-bit constants being loaded into registers other than GPRs such
10070 as loading 0 into a VSX register.
10072 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10074 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10076 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10078 PR middle-end/47917
10079 * builtins.c (fold_builtin_snprintf): New function.
10080 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10081 (fold_builtin_4): Likewise.
10083 PR middle-end/38878
10084 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10085 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10086 and C - X == X also strip nops from +/-/p+ operand.
10087 When optimizing -X == C, fold C to arg0's type.
10090 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10091 emit it as add_AT_int instead of add_AT_unsigned.
10093 2011-03-14 Tom Tromey <tromey@redhat.com>
10095 * unwind-dw2.c: Include sys/sdt.h if it exists.
10096 (_Unwind_DebugHook): Use STAP_PROBE2.
10097 * config.in, configure: Rebuild.
10098 * configure.ac: Check for sys/sdt.h.
10100 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10102 * config/i386/i386.md (ROUND_FLOOR): New constant.
10103 (ROUND_CEIL): Ditto.
10104 (ROUND_TRUNC): Ditto.
10105 (ROUND_MXCSR): Ditto.
10106 (ROUND_NO_EXC): Ditto.
10107 (rint<mode>2): Use new defines instead of numerical constants.
10108 (floor<mode>2): Ditto.
10109 (ceil<mode>2): Ditto.
10110 (btrunc<mode>2): Ditto.
10111 * config/i386/i386-builtin-types.def: Define ROUND function type
10113 * config/i386/i386.c (enum ix86_builtins): Add
10114 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10115 (struct builtin_description): Add
10116 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10117 (ix86_expand_sse_round): New static function.
10118 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10120 (ix86_builtin_vectorized_function): Handle
10121 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10123 2011-03-14 Tom Tromey <tromey@redhat.com>
10125 * c-parser.c (c_parser_asm_string_literal): Clear
10126 warn_overlength_strings.
10128 2011-03-14 Tom Tromey <tromey@redhat.com>
10130 * c-parser.c (disable_extension_diagnostics): Save
10131 warn_overlength_strings.
10132 (restore_extension_diagnostics): Restore warn_overlength_strings.
10134 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10136 * BASE-VER: Change to 4.7.0.
10138 2011-03-14 Richard Guenther <rguenther@suse.de>
10140 PR middle-end/48098
10141 * tree.c (build_vector_from_val): Adjust assert to requirements
10144 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10147 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10149 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10151 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10152 terms of target_flags_explicit. Adjust copyright year.
10154 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10155 * config/rs6000/t-freebsd: New file. Add override for
10158 2011-03-13 Chris Demetriou <cgd@google.com>
10160 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10161 (-fno-diagnostics-show-option): this, to reflect current default.
10162 (-Werror=): Update text about -fno-diagnostics-show-option.
10164 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10167 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10168 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10169 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10170 mode is not V2DImode or V2DFmode.
10171 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10172 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10173 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10175 (movdi_internal64): Likewise.
10177 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10179 PR tree-optimization/47127
10180 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10182 (set_cloog_options): Same.
10183 (scop_to_clast): Same.
10184 (print_clast_stmt): Do not call cloog_state_malloc and
10186 (print_generated_program): Same.
10188 * graphite-clast-to-gimple.h (cloog_state): Declared.
10189 (scop_to_clast): Adjust declaration.
10190 * graphite.c (cloog_state): Defined here.
10191 (graphite_initialize): Call cloog_state_malloc.
10192 (graphite_finalize): Call cloog_state_free.
10194 2011-03-11 Jason Merrill <jason@redhat.com>
10196 * attribs.c (lookup_attribute_spec): Take const_tree.
10199 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10201 * config/sparc/sparc.c (sparc_option_override): Use
10202 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10204 2011-03-11 Richard Guenther <rguenther@suse.de>
10206 PR tree-optimization/48067
10207 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10208 multiplication result will be only used once on the target
10211 2011-03-11 Richard Guenther <rguenther@suse.de>
10213 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10215 2011-03-11 Richard Guenther <rguenther@suse.de>
10218 * tree.c (find_decls_types_r): Do not walk types only reachable
10219 from IDENTIFIER_NODEs.
10221 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10223 PR middle-end/48044
10224 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10225 all vnode->force_output nodes as needed.
10227 2011-03-11 Jason Merrill <jason@redhat.com>
10230 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10231 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10233 2011-03-11 Martin Jambor <mjambor@suse.cz>
10235 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10238 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10240 PR tree-optimization/48063
10241 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10242 inline functions called once if !tree_can_inline_p (node->callers).
10244 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10246 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10248 * config/score/score3.c: Delete.
10249 * config/score/score3.h: Delete.
10250 * config/score/mul-div.S: Delete.
10251 * config/score/sfp-machine.h: Add new file.
10252 * config/score/constraints.md: Add new file.
10253 * config/score/t-score-softfp: Add new file.
10254 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10255 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10256 (score7_extra_constraint): Delete.
10257 (score7_option_override): Remove unused code.
10258 * config/score/score.c: Remove score3 and score5 define and code.
10259 * config/score/score.h: Remove score3 and score5 define and code.
10260 * config/score/score.md: Remove score3 template and unusual insn.
10261 * config/score/score.opt: Remove score3 and score5 options.
10263 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10265 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10266 when _HPUX_SOURCE is defined.
10267 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10269 2011-03-10 Jason Merrill <jason@redhat.com>
10272 * stor-layout.c (layout_type): Don't set structural equality
10273 on arrays of incomplete type.
10274 * tree.c (type_hash_eq): Handle comparing them properly.
10276 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10279 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10280 result mode matches original rtl mode.
10282 2011-03-10 Nick Clifton <nickc@redhat.com>
10284 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10285 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10287 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10289 PR rtl-optimization/47866
10290 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10291 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10292 if target wasn't scalar.
10293 * function.c (assign_stack_temp_for_type): Assert that neither
10294 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10295 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10297 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10299 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10301 * config/s390/s390-protos.h (s390_label_align): New prototype.
10302 * config/s390/s390.c (s390_label_align): New function.
10303 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10305 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10308 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10309 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10310 (output_vec_const_move): Ditto.
10312 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10314 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10315 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10316 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10317 Change 'rclass' argument and result type to reg_class_t.
10318 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10320 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10322 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10323 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10324 (TARGET_MEMORY_MOVE_COST): Define.
10325 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10327 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10330 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10333 PR tree-optimization/48022
10334 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10337 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10340 * var-tracking.c (find_use_val): Return NULL for
10341 cui->sets && cui->store_p BLKmode MEMs.
10343 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10345 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10347 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10348 xstormy16_print_operand_address): Remove.
10349 * config/stormy16/stormy16.c (xstormy16_print_operand,
10350 xstormy16_print_operand_address): Make static.
10351 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10353 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10356 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10357 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10360 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10363 * cfgloopmanip.c (fix_bb_placements): Return immediately
10364 if FROM is BASE_LOOP's header.
10366 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10368 * gimplify.c (gimplify_function_tree): Fix building calls
10369 to __builtin_return_address.
10371 2011-03-07 Alan Modra <amodra@gmail.com>
10373 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10374 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10375 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10376 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10378 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10379 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10380 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10381 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10382 * config/rs6000/rs6000.c
10383 (rs6000_elf_end_indicate_exec_stack): Rename to..
10384 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10385 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10386 (rs6000_file_start): ..here.
10387 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10388 file scope variables.
10389 (call_ABI_of_interest): New function.
10390 (init_cumulative_args): Set above vars when function return value
10391 is a float, vector, or small struct.
10392 (rs6000_function_arg_advance_1): Likewise for function args.
10393 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10394 references float args.
10396 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10398 * doc/cfg.texi: Remove "See" before @ref.
10399 * doc/invoke.texi: Likewise.
10401 2011-03-05 Jason Merrill <jason@redhat.com>
10403 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10405 2011-03-05 Anthony Green <green@moxielogic.com>
10407 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10409 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10411 PR rtl-optimization/47899
10412 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10413 to flow_loop_nested_p when moving the loop upward.
10415 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10418 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10420 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10422 PR tree-optimization/47967
10423 * ipa-cp.c (build_const_val): Return NULL instead of creating
10424 VIEW_CONVERT_EXPR for mismatching sizes.
10425 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10426 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10427 give up on versioning.
10429 2011-03-05 Alan Modra <amodra@gmail.com>
10432 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10433 full cmodel medium/large lo_sum + high addresses.
10435 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10437 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10438 pool references in UNSPEC_LTREL_OFFSET.
10440 2011-03-04 Jan Hubicka <jh@suse.cz>
10443 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10444 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10445 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10447 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10448 cgraph_add_thunk): Add node pointers.
10449 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10450 associated to right node.
10451 (input_node): Update use of cgraph_same_body_alias
10452 and cgraph_add_thunk.
10454 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10456 * config/i386/i386.opt (mprefer-avx128): New flag.
10457 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10458 modes when the flag -mprefer-avx128 is on.
10460 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10462 * dwarf2out.c (compare_loc_operands): Fix address handling.
10464 2011-03-04 Alan Modra <amodra@gmail.com>
10466 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10468 2011-03-04 Richard Guenther <rguenther@suse.de>
10470 PR middle-end/47968
10471 * expmed.c (extract_bit_field_1): Prefer vector modes that
10472 vec_extract patterns can handle.
10474 2011-03-04 Richard Guenther <rguenther@suse.de>
10476 PR middle-end/47975
10477 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10479 2011-03-04 Richard Henderson <rth@redhat.com>
10481 * explow.c (emit_stack_save): Remove 'after' parameter.
10482 (emit_stack_restore): Likewise.
10483 * expr.h: Update to match.
10484 * builtins.c, calls.c, stmt.c: Likewise.
10485 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10486 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10487 * function.c (expand_function_end): Insert the emit_stack_save
10488 sequence before parm_birth_insn instead of after.
10490 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10492 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10493 (ssse3_pmaddubsw128): Ditto.
10494 (ssse3_pmaddubsw): Ditto.
10496 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10498 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10500 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10503 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10504 on TYPE_SIZE_UNIT if it is a DECL.
10507 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10508 first operand is not is_gimple_mem_ref_addr, try to fold it.
10509 If the operand still isn't is_gimple_mem_ref_addr, clear
10512 2011-03-03 Richard Guenther <rguenther@suse.de>
10514 PR middle-end/47283
10515 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10517 (refs_may_alias_p_1): For release branches return true if
10518 we are confused by our input.
10520 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10522 * config/s390/s390.c (s390_function_value): Rename to ...
10523 (s390_function_and_libcall_value): ... this.
10524 (s390_function_value): New function.
10525 (s390_libcall_value): New function.
10526 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10527 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10528 target macro definitions.
10529 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10531 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10533 * config/i386/freebsd64.h (CC1_SPEC): Define.
10534 * config/i386/linux64.h (CC1_SPEC): Define.
10535 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10537 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10539 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10541 * config/stormy16/stormy16.c: Include reload.h.
10542 (xstormy16_memory_move_cost): New function.
10543 (TARGET_MEMORY_MOVE_COST): Define.
10545 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10547 PR rtl-optimization/47925
10548 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10549 with side effects. Remove the more-specific check for volatile asms.
10551 2011-03-02 Alan Modra <amodra@gmail.com>
10554 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10555 toc relative addresses for valid offsets.
10557 2011-03-01 Richard Guenther <rguenther@suse.de>
10559 PR tree-optimization/47890
10560 * tree-vect-loop.c (get_initial_def_for_induction): Set
10561 related stmt properly.
10563 2011-03-01 Richard Guenther <rguenther@suse.de>
10566 * lto-streamer.c (lto_record_common_node): Also register
10567 the canonical type.
10569 2011-03-01 Richard Guenther <rguenther@suse.de>
10572 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10573 Do not stream DECL_ABSTRACT_ORIGIN.
10574 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10575 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10576 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10577 Do not stream DECL_ABSTRACT_ORIGIN.
10578 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10579 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10581 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10583 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10584 FUNCTION_VALUE_REGNO_P): Remove.
10585 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10586 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10587 Add 'outgoing' argument.
10588 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10590 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10591 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10593 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10596 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10597 (lookup_filename): Likewise.
10598 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10600 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10601 Jakub Jelinek <jakub@redhat.com>
10603 PR middle-end/47893
10604 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10605 (assign_stack_local_1): Change last argument type to int.
10606 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10607 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10608 don't record padding space into frame_space_list nor use those areas.
10609 (assign_stack_local): Adjust caller.
10610 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10611 of assign_stack_local, pass 0 as last argument.
10612 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10615 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10618 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10619 Use target address_mode and pointer_mode hooks instead of hardcoded
10620 Pmode and ptr_mode. Handle some simple cases of extending if
10621 POINTERS_EXTEND_UNSIGNED < 0.
10622 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10623 Call convert_debug_memory_address.
10624 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10625 convert_debug_memory_address.
10627 PR middle-end/46790
10628 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10629 * configure: Regenerated.
10630 * config.in: Regenerated.
10631 * varasm.c (default_function_section): Return NULL
10632 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10634 2011-02-28 Martin Jambor <mjambor@suse.cz>
10636 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10637 the description to match the printed values.
10639 2011-02-28 Richard Guenther <rguenther@suse.de>
10641 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10642 of the copied scope tree.
10644 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10646 * doc/extend.texi (Function Attributes): Avoid deeply (and
10647 wrongly) nested tables.
10649 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10651 PR middle-end/47903
10652 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10653 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10654 r isn't op0 nor op1.
10656 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10658 * config/avr/avr.md: Remove magic comment for emacs.
10660 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10663 * config/avr/avr.c (avr_option_override): Use error on bad options.
10664 (avr_help): New function.
10665 (TARGET_HELP): Define.
10667 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10670 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10671 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10673 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10675 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10676 (ARM Options): Ditto.
10677 (i386 and x86-64 Options): Ditto.
10678 (RX Options): Ditto.
10679 (SPARC Options): Ditto.
10681 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10683 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10684 FreeBSD 6 and later. Generally use cpu generic.
10686 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10688 * doc/cpp.texi: Update copyright years.
10690 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10693 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10695 2011-02-25 Jon Beniston <jon@beniston.com>
10698 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10699 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10700 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10701 (lm32_block_move_inline): Add type cast to remove warning.
10702 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10703 (gen_int_relational): Move declarations to start of function.
10705 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10707 PR tree-optimization/45470
10708 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10709 can throw internally only.
10710 * tree-vect-stmts.c (vectorizable_call): Likewise.
10712 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10714 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10715 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10716 * config/stormy16/stormy16-protos.h
10717 (xstormy16_preferred_reload_class): Remove.
10718 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10719 static. Change 'rclass' argument and return type to reg_class_t.
10720 (TARGET_PREFERRED_RELOAD_CLASS,
10721 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10723 2011-02-24 Richard Guenther <rguenther@suse.de>
10725 * lto-streamer-in.c (input_bb): Do not find referenced vars
10726 in debug statements.
10728 2011-02-23 Jason Merrill <jason@redhat.com>
10730 * common.opt (fabi-version): Document v5 and v6.
10732 2011-02-23 Richard Guenther <rguenther@suse.de>
10734 PR tree-optimization/47849
10735 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10737 2011-02-23 Jie Zhang <jie@codesourcery.com>
10739 * opts-common.c (decode_cmdline_option): Print empty string
10740 argument as "" in decoded->orig_option_with_args_text.
10741 * gcc.c (execute): Print empty string argument as ""
10742 in the verbose output.
10743 (do_spec_1): Keep empty string argument.
10745 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10747 * config.gcc: Declare score-* and crx-* obsolete.
10749 2011-02-23 Jie Zhang <jie@codesourcery.com>
10751 PR rtl-optimization/47763
10752 * web.c (web_main): Ignore naked clobber when replacing register.
10754 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10756 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10759 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10762 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10764 2011-02-22 Mike Stump <mikestump@comcast.net>
10766 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10768 * configure: Regenerate.
10770 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10772 PR rtl-optimization/46002
10773 * ira-color.c (update_copy_costs): Change class intersection
10774 test to reg_class_contents[] test of 'hard_regno'.
10776 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10778 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10779 than Driver option.
10780 * config/hpux11.opt (mt): Likewise.
10781 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10782 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10783 * config/vax/elf.opt (mno-asm-pic): Likewise.
10784 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10786 2011-02-21 Mike Stump <mikestump@comcast.net>
10789 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10790 tree so we can get save the type.
10791 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10792 for CFString instead of trying to use past the end of the builtins.
10793 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10794 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10795 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10796 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10797 Rename to darwin_builtin_cfstring.
10798 (darwin_init_cfstring_builtins): Return the built type.
10800 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10803 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10804 (_mm256_insert_epi64): Use _mm_insert_epi64.
10806 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10808 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10809 * config/stormy16/stormy16-protos.h
10810 (xstormy16_mode_dependent_address_p): Remove.
10811 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10812 Make static. Change return type to bool. Change argument type to
10813 const_rtx. Remove dead code.
10814 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10816 2011-02-21 Richard Guenther <rguenther@suse.de>
10819 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10820 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10821 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10823 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10824 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10826 2011-02-20 Richard Guenther <rguenther@suse.de>
10829 * tree.c (free_lang_data_in_decl): Clean builtins from
10830 the TU decl BLOCK_VARS.
10832 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10836 * haifa-sched.c (fix_tick_ready): Skip tick computation
10839 2011-02-19 Richard Guenther <rguenther@suse.de>
10842 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10843 Remove lazy BLOCK_VARS streaming.
10844 (lto_input_ts_block_tree_pointers): Likewise.
10845 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10847 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10849 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10851 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10853 * config/i386/biarch32.h, config/i386/mach.h,
10854 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10856 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10859 * config/i386/i386.md (peephole2 for shift and plus): Use
10860 operands[1] original mode in the first insn.
10862 2011-02-18 Mike Stump <mikestump@comcast.net>
10864 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10866 2011-02-18 Jan Hubicka <jh@suse.cz>
10868 PR middle-end/47788
10869 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10870 to zero when the function is not inlinable at all.
10872 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10874 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10875 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10876 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10877 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10878 * config/pa/t-pa64: Likewise.
10879 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10881 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10884 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10886 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10889 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10891 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10893 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10894 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10895 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10896 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10897 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10898 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10899 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10900 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10901 m32r_legitimate_address_p): New functions.
10902 * config/m32r/constraints.md (constraint "S"): Don't use
10903 STORE_PREINC_PREDEC_P.
10904 (constraint "U"): Don't use LOAD_POSTINC_P.
10906 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10908 PR rtl-optimization/46178
10909 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10910 compute ira_hard_regno_cover_class[].
10912 2011-02-18 Richard Guenther <rguenther@suse.de>
10915 * lto-streamer.h (lto_global_var_decls): Declare.
10916 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10917 statics for global var processing.
10919 2011-02-18 Richard Guenther <rguenther@suse.de>
10921 PR tree-optimization/47737
10922 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10923 edge dominance check.
10925 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10928 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10929 avoid invalid rtx sharing.
10931 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10933 * doc/cpp.texi (Obsolete Features): Add background on the
10934 origin of assertions.
10936 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10938 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10940 * config/darwin.c (output_objc_section_asm_op): Added support for
10942 (is_objc_metadata): New.
10943 (darwin_objc2_section): New.
10944 (darwin_objc1_section): New.
10945 (machopic_select_section): Added support for ABI v1 and v2.
10946 (darwin_emit_objc_zeroed): New.
10947 (darwin_output_aligned_bss): Detect objc metadata and treat it
10949 (darwin_asm_output_aligned_decl_common): Same.
10950 (darwin_asm_output_aligned_decl_local): Same.
10951 * config/darwin-sections.def: Updated for ABI v1 and v2.
10952 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10953 compiling Objective-C code for the NeXT runtime, default to using
10954 ABI version 0 for 32-bit, and version 2 for 64-bit.
10956 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10958 * common.opt (optimize_fast): New Variable.
10959 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10960 instead of local variable ofast.
10962 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10964 * doc/invoke.texi (fobjc-abi-version): Documented.
10965 (fobjc-nilcheck): Documented.
10966 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10969 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10972 * common.opt (export-dynamic): New Driver option.
10973 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10975 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10977 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10979 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10980 Jan Hubicka <jh@suse.cz>
10984 * cfgexpand.c (account_used_vars_for_block): Remove.
10985 (estimated_stack_frame_size): Use referenced vars.
10986 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10987 that were referenced in the original function. Test src_fn
10988 rather than cfun. Drop redundant get_var_ann.
10989 (setup_one_parameter): Drop redundant get_var_ann.
10990 (declare_return_variable): Likewise.
10991 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10992 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10993 * ipa-inline.c (compute_inline_parameters): Do not compute
10994 disregard_inline_limits here.
10995 (compute_inlinable_for_current, pass_inlinable): New.
10996 (pass_inline_parameters): Require PROP_referenced_vars.
10997 * cgraphunit.c (cgraph_process_new_functions): Don't run
10998 compute_inline_parameters explicitly unless function is in SSA form.
10999 (cgraph_analyze_function): Set .disregard_inline_limits.
11000 * tree-sra.c (convert_callers): Compute inliner parameters
11001 only for functions already in SSA form.
11003 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11005 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11006 -mlittle-endian-data.
11008 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11010 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11011 -mno-fpu, not -fpu and -no-fpu.
11012 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11013 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11015 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11018 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11019 input reload with PLUS RTX.
11021 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11023 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11024 of InverseVar(MDMX).
11026 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11028 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11031 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11033 * config/mn10300/mn10300.opt (mno-crt0): New.
11035 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11037 * config/m68k/uclinux.opt (static-libc): New Driver option.
11039 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11041 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11043 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11045 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11046 %{muser-extend-enabled}.
11048 2011-02-16 Richard Guenther <rguenther@suse.de>
11050 PR tree-optimization/47738
11051 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11052 the TODO from tree_predictive_commoning.
11054 2011-02-15 Jeff Law <law@redhat.com>
11057 2011-01-25 Jeff Law <law@redhat.com>
11059 PR rtl-optimization/37273
11060 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11061 handle them like argument loads from stack slots. Do not double
11062 count memory for memory constants and argument loads from stack slots.
11064 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11066 PR middle-end/47725
11067 * combine.c (cant_combine_insn_p): Revert the last change.
11069 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11072 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11073 mode for vector constants. Remove code that checks for TImode.
11075 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11079 * cgraph.h (compute_inline_parameters): Return void.
11080 * ipa-inline.c (compute_inline_parameters): Adjust.
11082 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11086 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11088 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11089 * ipa-inline.c (compute_inline_parameters): Adjust.
11091 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11095 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11096 Adjust all users. Pass FN to...
11097 * tree-flow-inline.h (first_referenced_var): ... this. Add
11099 * ipa-struct-reorg.c: Adjust.
11100 * tree-dfa.c: Adjust.
11101 * tree-into-ssa.c: Adjust.
11102 * tree-sra.c: Adjust.
11103 * tree-ssa-alias.c: Adjust.
11104 * tree-ssa-live.c: Adjust.
11105 * tree-ssa.c: Adjust.
11106 * tree-ssanames.c: Adjust.
11107 * tree-tailcall.c: Adjust.
11109 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11113 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11114 Adjust all callers.
11115 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11116 * tree-flow-inline.h: Adjust.
11117 * gimple-pretty-print.c: Adjust.
11118 * tree-into-ssa.c: Adjust.
11119 * tree-ssa.c: Adjust.
11120 * cfgexpand.c: Adjust.
11122 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11124 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11125 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11126 (EXTRA_CONSTRAINT): Delete.
11127 * config/iq2000/constraints.md: New file.
11128 * config/iq2000/iq2000.md: Include it.
11129 (define_insn ""): Delete.
11130 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11131 unsupported constraint letters from patterns.
11132 (call_value, call_value_internal1): Likewise.
11133 (call_value_multiple_internal1): Likewise.
11135 2011-02-15 Nick Clifton <nickc@redhat.com>
11137 * config/mn10300/mn10300.c: Include tm-constrs.h.
11138 (struct liw_data): New data structure describing an LIW candidate
11140 (extract_bundle): Use struct liw_data. Allow small integer
11141 operands for some instructions.
11142 (check_liw_constraints): Use struct liw_data. Remove swapped
11143 parameter. Add comments describing the checks. Fix bug when
11144 assigning the source of liw1 to the source of liw2.
11145 (liw_candidate): Delete. Code moved into extract_bundle.
11146 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11148 * config/mn10300/predicates.md (liw_operand): New predicate.
11149 Allows registers and small integer constants.
11150 * config/mn10300/constraints.md (O): New constraint. Accetps
11151 integers in the range -8 to +7 inclusive.
11152 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11153 for moving a small integer into a register. Give this alternative
11155 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11156 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11157 using the J,K,L and M constraints,
11158 (liw): Remove SI mode on second operands to allow for HI and QI
11160 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11163 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11165 PR middle-end/47725
11166 * combine.c (cant_combine_insn_p): Check zero/sign extended
11169 2011-02-15 Richard Guenther <rguenther@suse.de>
11171 PR tree-optimization/47743
11172 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11173 for a non-type-compatible VN lookup bail out.
11175 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11177 * config/fr30/constraints.md: New file.
11178 * config/fr30/fr30.md: Include it.
11179 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11180 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11181 (EXTRA_CONSTRAINT): Delete.
11183 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11185 * config/frv/constraints.md: New file.
11186 * config/frv/predicates.md: Include it.
11187 * config/frv/frv.c (reg_class_from_letter): Delete.
11188 (frv_option_override): Don't initialize it.
11189 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11190 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11191 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11192 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11193 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11194 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11195 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11196 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11197 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11198 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11199 (REG_CLASS_FROM_CONSTRAINT): Delete.
11201 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11203 PR middle-end/47581
11204 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11205 if frame size is 0 in a leaf function.
11207 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11210 * config/alpha/host-osf.c: New file.
11211 * config/alpha/x-osf: New file.
11212 * config.host (alpha*-dec-osf*): Use it.
11214 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11216 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11217 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11218 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11219 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11221 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11223 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11225 * config/stormy16/constraints.md: New file.
11226 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11227 Use satisfies_constraint_Q and satisfies_constraint_R.
11228 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11230 (xstormy16_legitiamte_address_p): Declare.
11231 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11232 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11233 (EXTRA_CONSTRAINT): Delete.
11234 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11236 (xstormy16_extra_constraint_p): Delete.
11238 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11240 PR tree-optimization/46494
11241 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11242 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11243 (pass_rtl_loop_done): Add TODO_verify_flow.
11244 * fwprop.c (pass_rtl_fwprop): Likewise.
11245 * modulo-sched.c (pass_sms): Likewise.
11246 * tree-ssa-dom.c (pass_dominator): Likewise.
11247 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11248 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11249 (pass_tree_loop_done): Likewise.
11250 * tree-ssa-pre.c (execute_pre): Likewise.
11251 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11252 * tree-ssa-sink.c (pass_sink_code): Likewise.
11253 * tree-vrp.c (pass_vrp): Likewise.
11255 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11257 * config/v850/constraints.md: New file.
11258 * config/v850/v850.md: Include it.
11259 * config/v850/predicates.md (reg_or_0_operand): Use
11260 satisfies_constraint_G.
11261 (special_symbolref_operand): Use satisfies_constraint_K.
11262 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11263 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11264 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11265 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11266 (EXTRA_CONSTRAINT): Delete.
11267 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11268 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11269 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11271 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11274 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11277 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11279 * config/mcore/constraints.md: New file.
11280 * config/mcore/mcore.md: Include it.
11281 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11282 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11283 (REG_CLASS_FROM_LETTER): Delete.
11284 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11285 insn_const_int_ok_for_constraint.
11286 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11287 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11288 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11289 (EXTRA_CONSTRAINT): Delete.
11291 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11294 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11295 (IS_SIGHANDLER): Define.
11296 (sparc64_is_sighandler): New function, split off from
11297 sparc64_fallback_frame_state.
11298 (sparc_is_sighandler): New function, split off from
11299 sparc_fallback_frame_state.
11300 (sparc64_fallback_frame_state): Merge with ...
11301 (sparc_fallback_frame_state): ... this into ...
11302 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11303 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11304 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11305 stack instead of hardcoded offsets.
11307 2011-02-14 Andriy Gapon <avg@freebsd.org>
11310 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11312 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11314 * configure: Regenerate.
11316 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11319 * gcc.c (asm_options): Correct spec matching --target-help.
11321 2011-02-12 Martin Jambor <mjambor@suse.cz>
11323 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11324 to gimple call error.
11326 2011-02-12 Mike Stump <mikestump@comcast.net>
11328 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11329 comments in backslash regions.
11331 2011-02-12 Mike Stump <mikestump@comcast.net>
11332 Jakub Jelinek <jakub@redhat.com>
11333 Iain Sandoe <iains@gcc.gnu.org>
11336 * dwarf2out.c (output_cfa_loc): When required, apply the
11337 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11338 (output_loc_sequence): Likewise.
11339 (output_loc_operands_raw): Likewise.
11340 (output_loc_sequence_raw): Likewise.
11341 (output_cfa_loc): Likewise.
11342 (output_loc_list): Suppress register number adjustment when
11343 calling output_loc_sequence()
11344 (output_die): Likewise.
11346 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11348 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11350 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11351 xtensa_memory_move_cost): New functions.
11352 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11354 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11357 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11358 in the current directory.
11359 * configure: Rebuilt.
11361 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11363 * config/darwin.c (darwin_override_options): Add a hunk missed
11364 from the commit of r168571. Trim comment line lengths and
11365 correct indents of the preceding block.
11367 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11369 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11372 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11374 * common.opt (nostartfiles): New Driver option.
11376 2011-02-11 Xinliang David Li <davidxl@google.com>
11378 PR tree-optimization/47707
11379 * tree-chrec.c (convert_affine_scev): Keep type precision.
11381 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11383 PR tree-optimization/47420
11384 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11386 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11388 PR rtl-optimization/47614
11389 * rtl.h (check_for_inc_dec): Declare.
11390 * dse.c (check_for_inc_dec): Externalize...
11391 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11392 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11394 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11397 * gcc.c (main): Do not compile inputs if there were errors in
11399 * opts-common.c (read_cmdline_option): Check for wrong language
11400 after other error checks.
11402 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11404 * cgraph.c: Fix comment typos.
11405 * cgraph.h: Likewise.
11406 * cgraphunit.c: Likewise.
11407 * ipa-cp.c: Likewise.
11408 * ipa-inline.c: Likewise.
11409 * ipa-prop.c: Likewise.
11410 * ipa-pure-const.c: Likewise.
11411 * ipa-ref.c: Likewise.
11412 * ipa-reference.c: Likewise.
11414 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11417 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11419 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11422 * doc/sourcebuild.texi (Require Support): Document
11423 dg-require-ascii-locale.
11425 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11427 * doc/lto.texi (Write summary): Fix missing parentheses.
11429 2011-02-10 DJ Delorie <dj@redhat.com>
11431 * config/m32c/m32c.c (m32c_option_override): Disable
11432 -fcombine-stack-adjustments until flag value tracking and compare
11433 optimization can be rewritten.
11435 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11437 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11439 (PROCESSOR_DEFAULT64): Likewise.
11441 2011-02-10 Richard Henderson <rth@redhat.com>
11443 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11444 change from 2011-02-03.
11445 * config/rx/rx.c (flags_from_code): Likewise.
11446 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11447 is valid, n/pz otherwise.
11448 (rx_select_cc_mode): Return CCmode if Y is not zero.
11450 2011-02-10 Richard Guenther <rguenther@suse.de>
11452 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11454 2011-02-10 Richard Guenther <rguenther@suse.de>
11456 PR tree-optimization/47677
11457 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11459 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11462 * combine.c (make_compound_operation): Only change shifts into
11463 multiplication for SCALAR_INT_MODE_P.
11465 2011-02-10 Jie Zhang <jie@codesourcery.com>
11469 2011-02-05 Jie Zhang <jie@codesourcery.com>
11471 * web.c (entry_register): Don't clobber the number of the
11472 first uninitialized reference in used[].
11474 2011-02-09 Richard Guenther <rguenther@suse.de>
11476 PR tree-optimization/47664
11477 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11480 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11484 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11486 (PROCESSOR_DEFAULT64): Same.
11487 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11489 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11491 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11493 2011-02-09 Martin Jambor <mjambor@suse.cz>
11495 PR middle-end/45505
11496 * tree-sra.c (struct access): New flags grp_scalar_read and
11497 grp_scalar_write. Changed description of assignment read and write
11499 (dump_access): Dump new flags, reorder all of them.
11500 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11501 to detect multiple scalar reads.
11502 (analyze_access_subtree): Use the new scalar read write flags instead
11503 of the old flags. Adjusted comments.
11505 2011-02-08 DJ Delorie <dj@redhat.com>
11508 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11511 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11513 * config/m68k/uclinux.opt: New.
11514 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11516 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11518 * config/cris/elf.opt (sim): New Driver option.
11520 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11522 * config/xtensa/elf.opt: New.
11523 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11525 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11527 * config/vax/elf.opt: New.
11528 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11530 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11532 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11534 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11536 * config/gnu-user.opt: New.
11537 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11538 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11539 *-*-uclinux*): Use gnu-user.opt.
11541 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11543 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11544 * config/i386/gnu.h (CPP_SPEC): Likewise.
11546 2011-02-08 Ian Lance Taylor <iant@google.com>
11548 * common.opt (fcx-limited-range): Add SetByCombined flag.
11549 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11550 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11551 (fassociative-math, freciprocal-math): Likewise.
11552 (funsafe-math-optimizations): Likewise.
11553 * opth-gen.awk: Handle SetByCombined.
11554 * optc-gen.awk: Likewise.
11555 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11556 (set_unsafe_math_optimizations_flags): Likewise.
11557 * doc/options.texi (Option properties): Document SetByCombined.
11559 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11561 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11562 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11563 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11564 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11565 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11567 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11569 PR tree-optimization/46834
11570 PR tree-optimization/46994
11571 PR tree-optimization/46995
11572 * graphite-sese-to-poly.c (used_outside_reduction): New.
11573 (detect_commutative_reduction): Call used_outside_reduction.
11574 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11575 translate_scalar_reduction_to_array only when at least one
11576 loop-phi/close-phi tuple has been detected.
11578 2011-02-08 Richard Guenther <rguenther@suse.de>
11580 PR middle-end/47639
11581 * tree-vect-generic.c (expand_vector_operations_1): Update
11583 (expand_vector_operations): ... not here. Cleanup EH info
11584 and the CFG if required.
11586 2011-02-08 Richard Guenther <rguenther@suse.de>
11588 PR tree-optimization/47641
11589 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11590 require type compatibility.
11592 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11594 * gimple-low.c (lower_function_body): Don't remove the location of
11595 the return statement here.
11596 (lower_gimple_return): Do it here instead but only if the return
11597 statement is actually used twice.
11599 2011-02-08 Richard Guenther <rguenther@suse.de>
11601 PR tree-optimization/47632
11602 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11603 unused up_to_stmt parameter, return whether cfg-cleanup is
11604 necessary, remove EH info properly.
11605 (forward_propagate_into_gimple_cond): Adjust caller.
11606 (forward_propagate_into_cond): Likewise.
11607 (forward_propagate_comparison): Likewise.
11608 (tree_ssa_forward_propagate_single_use_vars): Make
11609 forward_propagate_comparison case similar to the two others.
11611 2011-02-08 Nick Clifton <nickc@redhat.com>
11613 * config/mn10300/mn10300.opt (mliw): New command line option.
11614 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11615 (liw_bundling): New automaton.
11616 (liw): New attribute.
11617 (liw_op): New attribute.
11618 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11619 (movsi_internal): Add LIW attributes.
11620 (andsi3): Likewise.
11621 (iorsi3): Likewise.
11622 (xorsi3): Likewise.
11623 (addsi3): Separate register and immediate alternatives.
11624 Add LIW attributes.
11625 (subsi3): Likewise.
11627 (aslsi3): Likewise.
11628 (lshrsi3): Likewise.
11629 (ashrsi3): Likewise.
11630 (liw): New pattern.
11631 * config/mn10300/mn10300.c (liw_op_names): New
11632 (mn10300_print_operand): Handle 'W' operand descriptor.
11633 (extract_bundle): New function.
11634 (check_liw_constraints): New function.
11635 (liw_candidate): New function.
11636 (mn10300_bundle_liw): New function.
11637 (mn10300_reorg): New function.
11638 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11639 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11640 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11641 __LIW__ or __NO_LIW__.
11642 * doc/invoke.texi: Describe the -mliw command line option.
11644 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11646 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11647 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11648 pthread_mutex_unlock): Remove.
11649 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11650 * config/pa/t-pa64: Likewise.
11651 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11652 shared libc if not linking against libpthread.
11653 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11655 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11658 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11659 on 10.6 and later to ensure that we always use the unwinder from
11660 the system. Only add -no_compact_unwind when tarteting darwin
11663 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11666 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11667 (vec_interleave_lowv2sf): Ditto.
11668 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11669 (vec_extract_oddv2sf): Ditto.
11671 2011-02-07 Mike Stump <mikestump@comcast.net>
11674 Add __ieee_divdc3 entry point.
11675 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11677 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11678 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11679 * config/darwin.c (darwin_rename_builtins): Add.
11680 * config/darwin-protos.h (darwin_rename_builtins): Add.
11682 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11685 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11688 2011-02-07 Mike Stump <mikestump@comcast.net>
11690 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11692 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11695 * config/avr/libgcc.S (exit): Move .endfunc
11697 2011-02-07 Richard Guenther <rguenther@suse.de>
11699 PR tree-optimization/47615
11700 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11701 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11702 (run_scc_vn): Initialize it.
11703 (visit_reference_op_load): Use it.
11704 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11706 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11708 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11709 DImode trapping arithmetic libfuncs.
11711 2011-02-07 Richard Guenther <rguenther@suse.de>
11713 PR tree-optimization/47621
11714 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11716 (execute_update_addresses_taken): ... here. Make it more
11717 conservative in what we accept.
11719 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11721 * config/sparc/freebsd.h (ASM_SPEC): Define.
11722 * config/sparc/vxworks.h (ASM_SPEC): Define.
11724 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11726 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11728 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11730 * doc/invoke.texi: Remove reference to compiler internals from
11731 user documentation.
11733 * reg-notes.def: Remove REG_VALUE_PROFILE.
11734 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11736 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11738 PR middle-end/47610
11739 * varasm.c (default_section_type_flags): If decl is NULL,
11740 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11742 2011-02-05 Jie Zhang <jie@codesourcery.com>
11745 * web.c (entry_register): Don't clobber the number of the
11746 first uninitialized reference in used[].
11748 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11750 PR tree-optimization/46194
11751 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11752 (build_classic_dist_vector_1): Do not represent classic distance
11753 vectors when the access functions are variating in different loops.
11755 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11757 * config/mips/iris6.opt: New.
11758 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11760 2011-02-04 Richard Henderson <rth@redhat.com>
11761 Steve Ellcey <sje@cup.hp.com>
11764 * config/ia64/predicates.md (mux1_brcst_element): New.
11765 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11766 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11767 (ia64_unpack_sign): New.
11768 (ia64_expand_unpack): Rewrite using new routines.
11769 (ia64_expand_widen_sum): Ditto.
11770 (ia64_expand_dot_prod_v8qi): Ditto.
11771 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11772 routines, add endian check.
11773 (pmpy2_even): Rename from pmpy2_r, add endian check.
11774 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11775 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11776 (vec_widen_smult_hi_v4hi): Ditto.
11777 (vec_widen_umult_lo_v4hi): Ditto.
11778 (vec_widen_umult_hi_v4hi): Ditto.
11779 (mulv2si3): Change endian checks.
11780 (sdot_prodv4hi): Rewrite with new calls.
11781 (udot_prodv4hi): New.
11782 (vec_pack_ssat_v4hi): Add endian check.
11783 (vec_pack_usat_v4hi): Ditto.
11784 (vec_pack_ssat_v2si): Ditto.
11785 (max1_even): Rename from max1_r, add endian check.
11786 (max1_odd): Rename from max1_l, add endian check.
11787 (*mux1_rev): Format change.
11788 (*mux1_mix): Ditto.
11789 (*mux1_shuf): Ditto.
11790 (*mux1_alt): Ditto.
11791 (*mux1_brcst_v8qi): Use new predicate.
11792 (vec_extract_evenv8qi): Remove endian check.
11793 (vec_extract_oddv8qi): Ditto.
11794 (vec_interleave_lowv4hi): Format change.
11795 (vec_interleave_highv4hi): Ditto.
11796 (mix2_even): Rename from mix2_r, add endian check.
11797 (mix2_odd): Rename from mux2_l, add endian check.
11798 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11799 (vec_extract_evenodd_helper): Format change.
11800 (vec_extract_evenv4hi): Remove endian check.
11801 (vec_extract_oddv4hi): Remove endian check.
11802 (vec_interleave_lowv2si): Format change.
11803 (vec_interleave_highv2si): Format change.
11804 (vec_initv2si): Remove endian check.
11805 (vecinit_v2si): Add endian check.
11806 (reduc_splus_v2sf): Add endian check.
11807 (reduc_smax_v2sf): Ditto.
11808 (reduc_smin_v2sf): Ditto.
11809 (vec_initv2sf): Remove endian check.
11810 (fpack): Add endian check.
11811 (fswap): Add endian check.
11812 (vec_interleave_highv2sf): Add endian check.
11813 (vec_interleave_lowv2sf): Add endian check.
11814 (fmix_lr): Add endian check.
11815 (vec_setv2sf): Format change.
11816 (*vec_extractv2sf_0_be): Use shift to extract operand.
11817 (*vec_extractv2sf_1_be): New.
11818 (vec_pack_trunc_v4hi): Add endian check.
11819 (vec_pack_trunc_v2si): Format change.
11821 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11823 PR inline-asm/23200
11824 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11825 do bb, locus and block comparison and disallow loads if it is not set.
11826 (stmt_is_replaceable_p): New function.
11827 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11829 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11830 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11832 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11834 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11836 * config/rs6000/xilinx.opt: New.
11837 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11839 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11841 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11843 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11845 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11846 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11847 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11848 secondary_reload_info, xtensa_secondary_reload): Remove.
11849 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11850 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11851 (xtensa_preferred_reload_class): Make static. Change return and
11852 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11853 Use CONST_DOUBLE_P predicate.
11854 (xtensa_preferred_output_reload_class): New function.
11855 (xtensa_secondary_reload): Make static.
11857 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11859 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11860 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11861 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11863 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11865 PR middle-end/31490
11866 * output.h (SECTION_RELRO): Define.
11867 (SECTION_MACH_DEP): Adjust.
11868 (get_variable_section): New prototype.
11869 * varpool.c (varpool_finalize_named_section_flags): New function.
11870 (varpool_assemble_pending_decls): Call it.
11871 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11872 * cgraphunit.c (cgraph_output_in_order): Call
11873 varpool_finalize_named_section_flags.
11874 * varasm.c (get_section): Allow section flags conflicts between
11875 relro and read-only sections if the section hasn't been declared yet.
11876 Set SECTION_OVERRIDE after diagnosing section type conflict.
11877 (get_variable_section): No longer static.
11878 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11879 readonly sections that need relocations.
11880 (decl_readonly_section_1): New function.
11881 (decl_readonly_section): Use it.
11884 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11885 Steve Ellcey <sje@cup.hp.com>
11887 PR middle-end/31490
11888 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11889 if section attribute used.
11891 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11893 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11894 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11895 (darwin_init_sections): Remove assertion.
11897 2011-02-03 Nick Clifton <nickc@redhat.com>
11899 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11901 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11902 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11903 instead of "n" and "pz".
11904 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11907 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11910 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11911 fma, expand FMA_EXPR as fma{,f,l} call.
11914 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11915 copy them into a unsigned char variable and pass address of it to
11916 lto_output_data_stream.
11919 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11920 around backend_init_target and lang_dependent_init_target calls.
11921 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11922 (verify_cgraph_node): Don't call set_cfun here. Use
11923 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11924 Set error_found for incorrectly represented calls to thunks.
11926 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11929 PR rtl-optimization/43494
11930 * rtl.h (for_each_inc_dec_fn): New type.
11931 (for_each_inc_dec): Declare.
11932 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11933 (for_each_inc_dec_find_inc_dec): New fn.
11934 (for_each_inc_dec_find_mem): New fn.
11935 (for_each_inc_dec): New fn.
11936 * dse.c (struct insn_size): Remove.
11937 (replace_inc_dec, replace_inc_dec_mem): Remove.
11938 (emit_inc_dec_insn_before): New fn.
11939 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11940 (canon_address): Pass mem modes to cselib_lookup.
11941 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11942 (cselib_lookup_from_insn): Likewise.
11943 (cselib_subst_to_values): Likewise.
11944 * cselib.c (find_slot_memmode): New var.
11945 (cselib_find_slot): New fn. Use it instead of
11946 htab_find_slot_with_hash everywhere.
11947 (entry_and_rtx_equal_p): Use find_slot_memmode.
11948 (autoinc_split): New fn.
11949 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11950 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11951 Deal with autoinc. Special-case recursion into MEMs.
11952 (cselib_hash_rtx): Likewise.
11953 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11954 address and MEM modes.
11955 (cselib_subst_to_values): Add memmode, pass it on.
11957 (cselib_lookup): Add memmode argument, pass it on.
11958 (cselib_lookup_from_insn): Add memmode.
11959 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11960 (struct cselib_record_autoinc_data): New.
11961 (cselib_record_autoinc_cb): New fn.
11962 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11963 mode to cselib_lookup. Reset autoinced REGs here instead of...
11964 (cselib_process_insn): ... here.
11965 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11967 (add_uses): Likewise, also to cselib_subst_to_values.
11968 (add_stores): Likewise.
11969 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11970 cselib_subst_to_values.
11971 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11972 * gcse.c (do_local_cprop): Adjusted.
11973 * postreload.c (reload_cse_simplify_set): Adjusted.
11974 (reload_cse_simplify_operands): Adjusted.
11975 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11977 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11979 PR tree-optimization/45122
11980 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11981 unsafe assumptions when there's more than one loop exit.
11983 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11986 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11987 Document using vector double with the load/store builtins, and
11988 that the load/store builtins always use Altivec instructions.
11990 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11991 to use altivec memory instructions, even on VSX.
11992 (vector_altivec_store_<mode>): Ditto.
11994 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11997 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11998 V2DF, V2DI support to load/store overloaded builtins.
12000 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12001 altivec load/store builtins for V2DF/V2DI types.
12003 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12004 set avoid indexed addresses on power6 if -maltivec.
12005 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12006 vector_altivec_load/vector_altivec_store builtins.
12007 (altivec_expand_st_builtin): Ditto.
12008 (altivec_expand_builtin): Add VSX memory builtins.
12009 (rs6000_init_builtins): Add V2DI types to internal types.
12010 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12011 load/store builtins.
12012 (rs6000_address_for_altivec): Insure memory address is appropriate
12015 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12016 vec_vsx_ld and vec_vsx_st.
12017 (vsx_store_<mode>): Ditto.
12019 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12020 variables to hold long long types for VSX vector memory builtins.
12021 (RS6000_BTI_unsigned_long_long): Ditto.
12022 (long_long_integer_type_internal_node): Ditti.
12023 (long_long_unsigned_type_internal_node): Ditti.
12025 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12026 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12027 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12029 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12031 (vec_vsx_st): Ditto.
12033 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12035 * config/pa/pa-hpux10.opt: New.
12036 * config/hpux11.opt (pthread): New Driver option.
12037 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12038 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12040 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12042 * config/ia64/vms.opt: New.
12043 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12045 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12048 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12049 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12050 generator functions.
12051 (vsx_floatuns<VSi><mode>2): Ditto.
12052 (vsx_fix_trunc<mode><VSi>2): Ditto.
12053 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12055 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12057 * config/i386/djgpp.opt (posix): New Driver option.
12059 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12061 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12062 Move to the unsupported targets list.
12064 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12066 PR rtl-optimization/47525
12067 * df-scan.c: Update copyright years.
12068 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12069 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12071 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12073 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12074 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12075 (ASM_OUTPUT_ASCII): Remove.
12076 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12078 2011-02-02 Jeff Law <law@redhat.com>
12080 PR middle-end/47543
12081 * reload.c (find_reloads_address): Handle reg+d address where both
12082 components are invalid by reloading the entire address.
12084 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12085 Richard Guenther <rguenther@suse.de>
12087 PR tree-optimization/40979
12089 * passes.c (init_optimization_passes): After LIM call copy_prop
12090 and DCE to clean up.
12091 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12093 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12095 PR tree-optimization/47576
12096 PR tree-optimization/47555
12097 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12098 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12099 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12100 * tree-scalar-evolution.c (follow_ssa_edge): Use
12101 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12103 2011-02-02 Richard Guenther <rguenther@suse.de>
12105 PR tree-optimization/47566
12106 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12108 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12112 * tree-inline.c (declare_return_variable): Remove unused caller
12117 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12118 * cfgexpand.c (account_used_vars_for_block): Use them.
12119 * tree-nrv.c (tree_nrv): Likewise.
12120 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12121 (dump_scope_block): Likewise.
12122 (remove_unused_locals): Likewise.
12126 * tree-inline.c (declare_return_variable): Add result decl to
12127 local decls only once.
12128 * gimple-low.c (record_vars_into): Mark newly-created variables
12131 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12137 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12139 (no_real_insns_p, schedule_block, set_priorities): Drop special
12140 treatment of boundary debug insns.
12141 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12142 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12143 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12144 (BOUNDARY_DEBUG_INSN_P): Likewise.
12145 (SCHEDULE_DEBUG_INSN_P): Likewise.
12146 * sched-rgn.c (init_ready_list): Drop special treatment of
12147 boundary debug insns.
12148 * final.c (rest_of_clean_state): Clear notes' BB.
12150 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12152 * config/openbsd.opt (assert=): New Driver option.
12154 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12156 * config/i386/nto.opt: New.
12157 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12159 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12161 * config/i386/netware.opt: New.
12162 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12164 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12166 * config/interix.opt (posix): New Driver option.
12168 2011-02-01 DJ Delorie <dj@redhat.com>
12170 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12172 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12175 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12177 PR tree-optimization/47561
12178 * toplev.c (process_options): Print the Graphite flags. Add
12179 flag_loop_flatten to the list of options requiring Graphite.
12181 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12183 * config/i386/cygming.opt (posix): New Driver option.
12185 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12187 * config/arm/vxworks.opt: New.
12188 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12190 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12192 * config/alpha/elf.opt: New.
12193 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12194 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12196 2011-02-01 Richard Guenther <rguenther@suse.de>
12198 PR tree-optimization/47559
12199 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12200 store-motion on references that can throw.
12202 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12204 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12205 * tree-pass.h (TDF_CSELIB): New macro.
12206 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12207 cselib_lookup): Check for it rather than for TDF_DETAILS.
12209 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12212 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12213 is HOST_BIT_BUCKET.
12215 * opts.c (finish_options): Don't add x_aux_base_name if it is
12218 2011-02-01 Richard Guenther <rguenther@suse.de>
12220 PR tree-optimization/47555
12222 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12224 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12226 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12229 * config/lm32/t-lm32: Add multilib for all CPU options.
12231 2011-02-01 Richard Guenther <rguenther@suse.de>
12233 PR tree-optimization/47541
12234 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12235 sure to have a field at offset zero.
12237 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12239 * config/arc/arc.opt (EB, EL): New Driver options.
12241 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12243 * config/alpha/osf5.opt: New.
12244 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12246 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12248 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12250 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12252 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12253 -floop-interchange.
12254 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12255 is an alias of -floop-interchange and that it requires the
12256 Graphite infrastructure.
12257 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12258 flag_loop_interchange based on the value of flag_tree_loop_linear.
12260 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12261 Richard Guenther <rguenther@suse.de>
12263 PR tree-optimization/47538
12264 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12265 type instead of r1type, except for comparisons. For right
12266 shifts and comparisons punt if there are mismatches in
12267 sizetype vs. non-sizetype types.
12269 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12271 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12274 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12276 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12278 * configure: Regenerate.
12280 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12282 * configure.ac (gcc_cv_ld_static_option): Define.
12283 (gcc_cv_ld_dynamic_option): Define.
12284 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12286 (HAVE_LD_STATIC_DYNAMIC): Update message.
12287 (LD_STATIC_OPTION): Define.
12288 (LD_DYNAMIC_OPTION): Define.
12289 * configure: Regenerate.
12290 * config.in: Regenerate.
12291 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12292 HAVE_LD_STATIC_DYNAMIC]: Use them.
12294 2011-01-31 Nick Clifton <nickc@redhat.com>
12296 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12297 registers inside interrupt handlers if the handler is not a leaf
12300 2011-01-31 Nick Clifton <nickc@redhat.com>
12302 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12303 reg_renumber returning an INVALID_REGNUM.
12305 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12308 * doc/install.texi: Document host options discarded when cross
12309 configuring target libraries.
12311 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12314 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12317 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12319 (no_real_insns_p, schedule_block, set_priorities): Drop special
12320 treatment of boundary debug insns.
12321 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12322 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12323 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12324 (BOUNDARY_DEBUG_INSN_P): Likewise.
12325 (SCHEDULE_DEBUG_INSN_P): Likewise.
12326 * sched-rgn.c (init_ready_list): Drop special treatment of
12327 boundary debug insns.
12328 * final.c (rest_of_clean-state): Clear notes' BB.
12330 2011-01-31 Alan Modra <amodra@gmail.com>
12332 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12333 toc relative expressions as we do in print_operand_address.
12335 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12337 * doc/extend.texi: Follow spelling conventions.
12338 * doc/invoke.texi: Fix a typo.
12340 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12342 * config/hpux11.opt: New.
12343 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12344 ia64*-*-hpux*): Use hpux11.opt.
12346 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12348 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12351 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12353 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12356 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12358 * doc/install.texi (Binaries): Remove outdated reference for
12359 Motorola 68HC11/68HC12 downloads.
12361 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12363 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12366 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12369 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12372 2011-01-28 Ahmad Sharif <asharif@google.com>
12374 * value-prof.c (check_counter): Corrected error message.
12376 2011-01-29 Jie Zhang <jie@codesourcery.com>
12378 * config/arm/arm.c (arm_legitimize_reload_address): New.
12379 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12380 arm_legitimize_reload_address.
12381 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12383 2011-01-28 Ian Lance Taylor <iant@google.com>
12385 * godump.c (go_define): Ignore macros whose definitions include
12386 two adjacent operands.
12388 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12391 * varasm.c (force_const_mem): Store copy of x in desc->constant
12392 instead of x itself.
12393 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12394 itself into REG_EQUAL note.
12396 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12398 * config/freebsd.opt (posix, rdynamic): New Driver options.
12400 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12402 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12403 -Bstatic/-Bdynamic.
12404 * configure: Regenerate.
12406 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12408 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12409 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12411 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12413 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12414 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12415 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12416 (s390_preferred_reload_class): Make static. Change return and
12417 'rclass' argument type to reg_class_t.
12419 2011-01-27 Jan Hubicka <jh@suse.cz>
12421 PR middle-end/46949
12422 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12423 (process_function_and_variable_attributes): Check defined weakrefs.
12425 2011-01-27 Martin Jambor <mjambor@suse.cz>
12427 PR tree-optimization/47228
12428 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12429 build_ref_for_offset.
12431 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12433 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12435 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12437 PR rtl-optimization/46856
12438 * postreload.c (reload_combine_recognize_const_pattern): Do not
12439 separate cc0 setter and user on cc0 targets.
12441 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12444 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12445 passed a VOID_TYPE expression, immediately emit an error and
12446 return error_mark_node.
12448 2011-01-26 Jeff Law <law@redhat.com>
12450 PR rtl-optimization/47464
12451 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12452 rather than may_trap_p as needed.
12454 2011-01-26 DJ Delorie <dj@redhat.com>
12456 PR rtl-optimization/46878
12457 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12458 setter/user dependency as well.
12460 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12462 PR rtl-optimization/44469
12463 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12464 after removing trivially dead basic blocks.
12466 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12468 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12469 * config/frv/frv.h (LINK_SPEC): Likewise.
12470 * config/i386/netware.h (LINK_SPEC): Likewise.
12471 * config/m68k/linux.h (ASM_SPEC): Likewise.
12472 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12473 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12474 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12475 * config/sparc/linux.h (ASM_SPEC): Likewise.
12476 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12477 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12479 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12481 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12482 * config/frv/frv.h (ASM_SPEC): Likewise.
12483 * config/m68k/linux.h (ASM_SPEC): Likewise.
12484 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12485 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12486 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12487 * config/sparc/linux.h (ASM_SPEC): Likewise.
12488 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12489 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12491 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12493 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12494 * config/frv/frv.h (LINK_SPEC): Likewise.
12495 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12497 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12499 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12500 * config/frv/frv.h (ASM_SPEC): Likewise.
12501 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12502 * config/m68k/linux.h (ASM_SPEC): Likewise.
12503 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12504 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12505 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12506 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12507 * config/sparc/linux.h (ASM_SPEC): Likewise.
12508 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12509 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12510 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12512 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12515 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12517 (vec_extract_evenodd_help): Ditto.
12518 (vec_extract_evenv4hi): Ditto.
12519 (vec_extract_oddv4hi): Ditto.
12520 (vec_interleave_lowv2si): Ditto.
12521 (vec_interleave_highv2si): Ditto.
12522 (vec_extract_evenv2si): Ditto.
12523 (vec_extract_oddv2si: Ditto.
12524 (vec_pack_trunc_v2si): Ditto.
12526 2011-01-22 Jan Hubicka <jh@suse.cz>
12529 * cgraph.h (cgraph_local_info): New field can_change_signature.
12530 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12531 signature can change.
12532 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12534 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12535 (cgraph_function_versioning): We can not change signature of functions
12536 that don't allow that.
12537 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12538 (lto_input_node): Likewise.
12539 * ipa-inline.c (compute_inline_parameters): Compute
12540 local.can_change_signature.
12541 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12542 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12543 functions that can not change signature.
12544 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12545 init_cumulative_args): Do not use local calling conventions
12546 for functions that can not change signature.
12548 2011-01-22 Jan Hubicka <jh@suse.cz>
12550 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12552 2011-01-26 Richard Guenther <rguenther@suse.de>
12554 PR tree-optimization/47190
12555 * cgraphunit.c (process_common_attributes): New function.
12556 (process_function_and_variable_attributes): Use it.
12558 2011-01-26 Richard Guenther <rguenther@suse.de>
12561 * cgraphbuild.c (record_eh_tables): Record reference to personality
12564 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12567 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12568 non-debug insns from moving up.
12570 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12573 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12574 t-dlldir{,-x} fragment for build and add it to tmake_file.
12575 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12576 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12577 * config/i386/t-dlldir: New file.
12578 (SHLIB_DLLDIR): Define.
12579 * config/i386/t-dlldir-x: New file.
12580 (SHLIB_DLLDIR): Define.
12581 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12582 (SHLIB_INSTALL): Use it.
12584 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12587 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12588 lower bound of the allowed Thumb-2 coprocessor load/store
12589 index range to -256. Add explaining comment.
12591 2011-01-25 Ian Lance Taylor <iant@google.com>
12593 * godump.c (go_define): Improve lexing of macro expansion to only
12594 accept expressions which match Go spec.
12596 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12599 * tree.c (handle_dll_attribute): Handle it.
12600 * doc/extend.texi (@item dllexport): Mention it.
12601 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12603 2011-01-25 Ian Lance Taylor <iant@google.com>
12605 PR tree-optimization/26854
12606 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12607 (decl_jump_unsafe): Move higher in file, with no other change.
12608 (bind): Set has_jump_unsafe_decl if appropriate.
12609 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12610 (check_earlier_gotos): Likewise.
12611 (c_check_switch_jump_warnings): Likewise.
12613 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12615 * doc/invoke.texi (Warning Options): Add missing hyphen.
12616 (-fprofile-dir): Minor grammatical fixes.
12617 (-fbranch-probabilities): Likewise.
12619 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12623 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12625 (no_real_insns_p, schedule_block, set_priorities): Drop special
12626 treatment of boundary debug insns.
12627 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12628 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12629 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12630 (BOUNDARY_DEBUG_INSN_P): Likewise.
12631 (SCHEDULE_DEBUG_INSN_P): Likewise.
12632 * sched-rgn.c (init_ready_list): Drop special treatment of
12633 boundary debug insns.
12634 * final.c (rest_of_clean-state): Clear notes' BB.
12636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12638 * Makefile.in (LAMBDA_H): Removed.
12639 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12640 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12641 lambda-trans.o, and tree-loop-linear.o.
12642 (lto-symtab.o): Remove dependence on LAMBDA_H.
12643 (tree-loop-linear.o): Remove rule.
12644 (lambda-mat.o): Same.
12645 (lambda-trans.o): Same.
12646 (lambda-code.o): Same.
12647 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12648 (tree-vect-slp.o): Same.
12649 * hwint.h (gcd): Moved here.
12650 (least_common_multiple): Same.
12651 * lambda-code.c: Removed.
12652 * lambda-mat.c: Removed.
12653 * lambda-trans.c: Removed.
12654 * lambda.h: Removed.
12655 * tree-loop-linear.c: Removed.
12656 * lto-symtab.c: Do not include lambda.h.
12657 * omega.c (gcd): Removed.
12658 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12659 * tree-data-ref.c (print_lambda_vector): Moved here.
12660 (lambda_vector_copy): Same.
12661 (lambda_matrix_copy): Same.
12662 (lambda_matrix_id): Same.
12663 (lambda_vector_first_nz): Same.
12664 (lambda_matrix_row_add): Same.
12665 (lambda_matrix_row_exchange): Same.
12666 (lambda_vector_mult_const): Same.
12667 (lambda_vector_negate): Same.
12668 (lambda_matrix_row_negate): Same.
12669 (lambda_vector_equal): Same.
12670 (lambda_matrix_right_hermite): Same.
12671 * tree-data-ref.h: Do not include lambda.h.
12672 (lambda_vector): Moved here.
12673 (lambda_matrix): Same.
12674 (dependence_level): Same.
12675 (lambda_transform_legal_p): Removed declaration.
12676 (lambda_collect_parameters): Same.
12677 (lambda_compute_access_matrices): Same.
12678 (lambda_vector_gcd): Same.
12679 (lambda_vector_new): Same.
12680 (lambda_vector_clear): Same.
12681 (lambda_vector_lexico_pos): Same.
12682 (lambda_vector_zerop): Same.
12683 (lambda_matrix_new): Same.
12684 * tree-flow.h (least_common_multiple): Removed declaration.
12685 * tree-parloops.c (lambda_trans_matrix): Moved here.
12686 (LTM_MATRIX): Same.
12687 (LTM_ROWSIZE): Same.
12688 (LTM_COLSIZE): Same.
12689 (LTM_DENOMINATOR): Same.
12690 (lambda_trans_matrix_new): Same.
12691 (lambda_matrix_vector_mult): Same.
12692 (lambda_transform_legal_p): Same.
12693 * tree-pass.h (pass_linear_transform): Removed declaration.
12694 * tree-ssa-loop.c (tree_linear_transform): Removed.
12695 (gate_tree_linear_transform): Removed.
12696 (pass_linear_transform): Removed.
12697 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12698 flag_loop_interchange.
12700 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12702 PR tree-optimization/47265
12703 PR tree-optimization/47443
12704 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12705 if name still has some uses.
12707 2011-01-25 Martin Jambor <mjambor@suse.cz>
12709 PR tree-optimization/47382
12710 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12711 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12713 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12715 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12716 sjlj_except_unwind_info.
12718 2011-01-25 Richard Guenther <rguenther@suse.de>
12720 PR tree-optimization/47426
12721 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12722 visible functions results escape.
12724 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12727 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12728 (arm_get_frame_offsets): Use it.
12730 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12731 Jakub Jelinek <jakub@redhat.com>
12733 PR tree-optimization/47271
12734 * tree-if-conv.c (bb_postdominates_preds): New.
12735 (if_convertible_bb_p): Call bb_postdominates_preds.
12736 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12737 (predicate_scalar_phi): Call bb_postdominates_preds.
12739 2011-01-25 Nick Clifton <nickc@redhat.com>
12741 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12742 * config/rx/rx.c (rx_function_value): Likewise.
12743 (rx_promote_function_mode): Likewise.
12744 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12745 in order to make it legitimate.
12746 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12747 make sure that the first operand is the same as the result register.
12748 (addsi3_unspec): Delete.
12749 (subdi3): Do not accept immediate operands.
12750 (subdi3_internal): Likewise.
12752 2011-01-25 Jeff Law <law@redhat.com>
12754 PR rtl-optimization/37273
12755 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12756 handle them like argument loads from stack slots. Do not double
12757 count memory for memory constants and argument loads from stack slots.
12759 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12761 PR tree-optimization/47427
12762 PR tree-optimization/47428
12763 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12764 coalesce if the new root var would be TREE_READONLY.
12766 2011-01-25 Richard Guenther <rguenther@suse.de>
12768 PR middle-end/47414
12769 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12770 correct type for TBAA.
12772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12774 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12775 (close_phi_written_to_memory): Call for_each_index with
12776 dr_indices_valid_in_loop.
12778 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12780 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12781 when it is initialized.
12783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12785 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12786 call to graphite_find_data_references_in_stmt.
12787 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12788 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12789 call to graphite_find_data_references_in_stmt.
12790 (analyze_drs_in_stmts): Same.
12791 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12792 in which the scalar analysis of indices is performed.
12793 (create_data_ref): Same. Update call to dr_analyze_indices.
12794 (find_data_references_in_stmt): Update call to create_data_ref.
12795 (graphite_find_data_references_in_stmt): Same.
12796 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12798 (create_data_ref): Same.
12799 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12800 call to create_data_ref.
12802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12804 * graphite-sese-to-poly.c (build_poly_scop): Move
12805 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12809 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12810 VAR_DECL, PARM_DECL, and RESULT_DECL.
12812 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12814 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12815 in a reduction PBB.
12816 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12817 that have already been marked as PBB_IS_REDUCTION.
12819 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12821 * graphite-scop-detection.c (same_close_phi_node): New.
12822 (remove_duplicate_close_phi): New.
12823 (make_close_phi_nodes_unique): New.
12824 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12828 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12829 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12830 of both data references to be the same.
12832 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12834 * graphite-dependences.c (build_lexicographical_constraint): Remove
12835 the gdim parameter.
12836 (build_lexicographical_constraint): Adjust call to
12837 ppl_powerset_is_empty.
12838 (dependence_polyhedron): Same.
12839 (graphite_legal_transform_dr): Same.
12840 (graphite_carried_dependence_level_k): Same.
12841 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12843 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12845 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12847 * graphite-sese-to-poly.c
12848 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12849 (close_phi_written_to_memory): New.
12850 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12855 * doc/install.texi: Update the expected version number of PPL to 0.11.
12856 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12857 #if PPL_VERSION_MINOR < 11.
12859 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12861 * graphite-dependences.c: Include graphite-cloog-util.h.
12862 (new_poly_ddr): Inlined into dependence_polyhedron.
12863 (free_poly_ddr): Moved close by new_poly_ddr.
12864 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12865 Early return NULL when ppl_powerset_is_empty returns true.
12866 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12867 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12868 (graphite_legal_transform_dr): Call new_poly_ddr.
12869 (graphite_carried_dependence_level_k): Same.
12870 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12871 (dot_transformed_deps_stmt_1): Removed.
12872 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12873 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12874 (dot_deps_1): Call dot_deps_2.
12875 * Makefile.in (graphite-dependences.o): Add missing dependence on
12876 graphite-cloog-util.h.
12878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12880 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12881 (build_lexicographical_constraint): Same.
12882 (dependence_polyhedron_1): Same.
12883 (graphite_legal_transform_dr): Same.
12884 (graphite_carried_dependence_level_k): Same.
12885 * graphite-ppl.c (ppl_powerset_is_empty): New.
12886 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12887 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12891 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12892 the "a followed by b" relation and document it.
12894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12896 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12897 iteration when the bag of constraints is empty.
12899 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12901 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12905 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12906 nest and two loop depths as parameters.
12907 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12908 lst_perfect_nestify.
12910 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12912 * graphite-dependences.c (print_pddr): Call
12913 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12915 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12917 * graphite-ppl.c (debug_gmp_value): New.
12918 * graphite-ppl.h (debug_gmp_value): Declared.
12920 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12922 * doc/install.texi: Document availability of cloog-0.16.
12924 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12926 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12927 invalid postdominance info.
12929 2011-01-24 Jan Hubicka <jh@suse.cz>
12932 * doc/extend.texi (weak pragma): Drop claim that it must
12933 appear before definition.
12934 * varasm.c (merge_weak, declare_weak): Only sanity check
12935 that DECL is not output at a time it is declared weak.
12937 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12939 * machmode.def: Fixed comments.
12941 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12943 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12945 2011-01-24 Paul Koning <ni1d@arrl.net>
12947 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12950 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12953 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12954 (block_info): Add scanned and prev.
12955 (move_or_delete_vzeroupper_2): Return if the basic block
12956 has been scanned and the upper 128bit state is unchanged
12957 from the last scan.
12958 (move_or_delete_vzeroupper_1): Return true if the exit
12960 (move_or_delete_vzeroupper): Visit basic blocks using the
12961 work-list based algorithm based on vt_find_locations in
12964 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12966 2011-01-24 Nick Clifton <nickc@redhat.com>
12968 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12969 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12970 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12971 then define __v850e1__.
12972 * doc/invoke.texi: Document -mv850es.
12974 2011-01-24 Richard Henderson <rth@redhat.com>
12976 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12977 compound unordered comparisons.
12978 * config/rx/rx.c (rx_split_fp_compare): Remove.
12979 * config/rx/rx-protos.h: Update.
12980 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12981 (cbranchsf4): Don't call rx_split_fp_compare.
12982 (*cbranchsf4): Use rx_split_cbranch.
12983 (*cmpsf): Don't accept "i" constraint.
12984 (*conditional_branch): Only valid after reload.
12985 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12987 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12990 * config/rs6000/altivec.md (vector constant splitters): Add
12991 support for creating vector single precision constants if -mvsx is
12992 used and we would create the constant using Altivec primitives.
12994 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12995 Richard Sandiford <rdsandiford@googlemail.com>
12997 PR rtl-optimization/47166
12998 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12999 mechanism for PRE_MODIFY and POST_MODIFY.
13000 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13003 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13005 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13007 2011-01-22 Jan Hubicka <jh@suse.cz>
13010 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13012 2011-01-22 Jan Hubicka <jh@suse.cz>
13014 PR tree-optimization/43884
13016 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13017 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13019 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13021 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13022 * config/s390/s390.c (s390_register_move_cost,
13023 s390_memory_move_cost): New.
13024 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13026 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13028 PR middle-end/47401
13029 * except.c (sjlj_assign_call_site_values): Move setting the
13030 crtl->uses_eh_lsda flag to ...
13031 (sjlj_mark_call_sites): ... here.
13032 (sjlj_emit_function_enter): Support NULL dispatch label.
13033 (sjlj_build_landing_pads): In a function with no landing pads
13034 that still has must-not-throw regions, generate code to register
13035 a personality function with empty LSDA.
13037 2011-01-21 Richard Henderson <rth@redhat.com>
13039 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13041 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13043 * compare-elim.c: New file.
13044 * Makefile.in (OBJS-common): Add it.
13045 (compare-elim.o): New.
13046 * common.opt (fcompare-elim): New.
13047 * opts.c (default_options_table): Add OPT_fcompare_elim.
13048 * tree-pass.h (pass_compare_elim_after_reload): New.
13049 * passes.c (init_optimization_passes): Add it.
13050 * recog.h: Protect against re-inclusion.
13051 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13052 * doc/invoke.texi (-fcompare-elim): Document it.
13053 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13054 * doc/tm.texi: Rebuild.
13056 2011-01-22 Nick Clifton <nickc@redhat.com>
13058 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13059 rx_split_fp_compare.
13061 2011-01-22 Nick Clifton <nickc@redhat.com>
13063 * config/rx/rx.md (UNSPEC_CONST): New.
13064 (deallocate_and_return): Wrap the amount popped off the stack in
13065 an UNSPEC_CONST in order to stop it being rejected by
13066 -mmax-constant-size.
13067 (pop_and_return): Add a "(return)" rtx.
13068 (call): Drop the immediate operand.
13069 (call_internal): Likewise.
13070 (call_value): Likewise.
13071 (call_value_internal): Likewise.
13072 (sibcall_internal): Likewise.
13073 (sibcall_value_internal): Likewise.
13074 (sibcall): Likewise. Generate an explicit call using
13076 (sibcall_value): Likewise.
13077 (mov<>): FAIL if a constant operand is not legitimate.
13078 (addsi3_unpsec): New pattern.
13080 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13081 (ok_for_max_constant): New function.
13082 (gen_safe_add): New function.
13083 (rx_expand_prologue): Use gen_safe_add.
13084 (rx_expand_epilogue): Likewise.
13085 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13088 2011-01-21 Jeff Law <law@redhat.com>
13090 PR tree-optimization/47053
13091 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13092 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13093 statements are deleted.
13094 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13095 is nonempty, then purge dead edges and cleanup the CFG.
13097 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13100 Temporarily revert:
13101 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13103 * tree-dfa.c (create_var_ann): Mark variable as used.
13105 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13107 PR middle-end/45566
13108 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13109 notes from other section in hot/cold partitioning even if
13110 last_action is -3. Increment call_site_base.
13112 PR rtl-optimization/47366
13113 * fwprop.c (forward_propagate_into): Return bool. If
13114 any changes are made, -fnon-call-exceptions is used and
13115 REG_EH_REGION note is present, call purge_dead_edges
13116 and return true if it purged anything.
13117 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13118 any EH edges were purged.
13120 2011-01-21 Jeff Law <law@redhat.com>
13122 PR rtl-optimization/41619
13123 * caller-save.c (setup_save_areas): Break out code to determine
13124 which hard regs are live across calls by examining the reload chains
13125 so that it is always used.
13126 Eliminate code which checked REG_N_CALLS_CROSSED.
13128 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13130 PR tree-optimization/47355
13131 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13132 NOP has non-debug uses beyond PHIs in new_bb.
13134 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13137 * cfgexpand.c (account_used_vars_for_block): Only account vars
13138 that are annotated as used.
13139 (estimated_stack_frame_size): Don't set TREE_USED.
13140 * tree-dfa.c (create_var_ann): Mark variable as used.
13142 2011-01-21 Richard Guenther <rguenther@suse.de>
13144 PR middle-end/47395
13145 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13147 2011-01-21 Richard Guenther <rguenther@suse.de>
13149 PR tree-optimization/47365
13150 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13151 (vn_reference_lookup_pieces): Adjust.
13152 (vn_reference_lookup): Likewise.
13153 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13154 (vn_reference_lookup_3): Only look through kills if in
13155 VN_WALKREWRITE mode.
13156 (vn_reference_lookup_pieces): Adjust.
13157 (vn_reference_lookup): Likewise.
13158 (visit_reference_op_load): Likewise.
13159 (visit_reference_op_store): Likewise.
13160 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13161 (compute_avail): Likewise.
13162 (eliminate): Likewise.
13164 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13166 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13167 DECL_IGNORED_P non-reg vars if they are used.
13169 PR tree-optimization/47391
13170 * varpool.c (const_value_known_p): Return false if
13173 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13176 * config/i386/i386.c (ix86_local_alignment): Handle
13177 case for va_list_type_node is nil.
13178 (ix86_canonical_va_list_type): Likewise.
13180 2011-01-21 Alan Modra <amodra@gmail.com>
13182 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13183 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13185 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13187 * config/arm/arm.md (define_attr type): Rename f_load
13188 and f_store to f_fpa_load and f_fpa_store. Update.
13189 (write_conflict): Deal with rename fallout.
13190 (*push_fp_multi): Likewise.
13191 * config/arm/fpa.md (f_load): Use f_fpa_load.
13192 (f_store): Use f_fpa_store.
13193 (*movsf_fpa): Likewise.
13194 (*movdf_fpa): Likewise.
13195 (*movxf_fpa): Likewise.
13196 (*thumb2_movsf_fpa): Likewise.
13197 (*thumb2_movdf_fpa): Likewise.
13198 (*thumb2_movxf_fpa): Likewise.
13199 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13200 f_loadd and f_stored.
13201 (*thumb2_movdi_vfp): Likewise.
13202 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13203 (*thumb2_movsi_vfp): Likewise.
13204 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13205 Use f_loads instead of f_load.
13206 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13208 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13210 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13211 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13212 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13213 (xtensa_mode_dependent_address_p): New function.
13214 (constantpool_address_p): Make static. Change return type to bool.
13215 Change argument type to const_rtx. Use CONST_INT_P predicate.
13217 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13220 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13222 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13225 * cfgexpand.c (expand_debug_expr): Instead of generating
13226 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13229 2011-01-20 Richard Guenther <rguenther@suse.de>
13231 PR middle-end/47370
13232 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13233 the pointer operand of MEM_REFs.
13235 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13237 PR tree-optimization/46130
13238 * ipa-split.c (consider_split): If return_bb contains non-virtual
13239 PHIs other than for retval or if split_function would not adjust it,
13242 2011-01-20 Richard Guenther <rguenther@suse.de>
13244 PR tree-optimization/47167
13245 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13246 Revert previous change, only avoid enumeral type changes.
13248 2011-01-19 Mike Stump <mikestump@comcast.net>
13250 * doc/tm.texi.in (BRANCH_COST): Englishify.
13251 * doc/tm.texi (BRANCH_COST): Likewise.
13253 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13256 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13257 (gen_scheduled_generic_parms_dies): New functions.
13258 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13259 generation for the end of CU compilation.
13260 (dwarf2out_finish): Generate template parameters DIEs here.
13262 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13265 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13266 debug bind stmt on merge edges.
13268 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13272 * function.c (instantiate_expr): Instantiate incoming rtl of
13273 implicit arguments, and recurse on VALUE_EXPRs.
13274 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13275 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13277 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13279 * c-parser.c (c_parser_for_statement): Initialize
13280 collection_expression.
13282 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13284 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13286 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13288 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13289 (LINK_SHLIB_SPEC): Don't use %(link_path).
13290 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13292 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13294 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13295 (NO_SHARED_LIB_SUPPORT): Remove.
13296 (LINK_SHLIB_SPEC): Remove one conditional definition.
13298 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13300 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13302 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13303 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13304 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13305 %{call_shared} and conditionals on these options not being passed.
13306 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13309 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13311 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13314 * ipa-split.c: Spelling fixes.
13316 2011-01-19 Richard Henderson <rth@redhat.com>
13318 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13319 (*mulsi3): Likewise.
13321 * longlong.h [__mn10300__] (count_leading_zeros): New.
13322 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13323 [__mn10300__] (add_ssaaaa, subddmmss): New.
13324 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13325 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13327 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13329 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13331 2011-01-19 Richard Henderson <rth@redhat.com>
13333 * config/mn10300/mn10300.md (addsi3_flags): New.
13334 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13335 (subsi3_flags, subc_internal, subdi3): New.
13336 (subdi3_internal, *subdi3_degenerate): New.
13337 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13339 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13340 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13341 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13342 * config/mn10300/mn10300-protos.h: Update.
13343 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13344 (return_ret): Likewise. Rename from return_internal_regs.
13345 (return_internal): Remove.
13347 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13348 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13349 (mn10300_legitimate_constant_p): Likewise.
13350 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13351 (mn10300_frame_size): New.
13352 (mn10300_expand_prologue): Use it.
13353 (mn10300_expand_epilogue): Likewise.
13354 (mn10300_initial_offset): Likewise.
13355 * config/mn10300/mn10300-protos.h: Update.
13356 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13357 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13358 (prologue, epilogue, return_internal): Tidy output code.
13359 (mn10300_store_multiple_operation, return): Likewise.
13360 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13361 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13362 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13363 (load_pic, am33_load_pic): New.
13364 (mn10300_load_pic0, mn10300_load_pic1): New.
13366 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13367 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13368 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13369 (cc_flags_for_mode, cc_flags_for_code): New.
13370 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13371 overflow flag is not valid. Validate that the flags we need
13372 for the comparison are valid.
13373 (mn10300_output_cmp): Remove.
13374 (mn10300_output_add): New.
13375 (mn10300_select_cc_mode): Use cc_flags_for_code.
13376 (mn10300_split_cbranch): New.
13377 (mn10300_match_ccmode): New.
13378 (mn10300_split_and_operand_count): New.
13379 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13381 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13382 (addsi3): ... here. Use mn10300_output_add.
13383 (*addsi3_flags): New.
13384 (*am33_subsi3, *mn10300_subsi3): Merge...
13385 (subsi3): ... here. Use attribute isa.
13386 (*subsi3_flags): New.
13387 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13389 (*am33_andsi3, *mn10300_andsi3): Merge...
13390 (andsi3): ... here.
13391 (*andsi3_flags): New.
13392 (andsi3 splitters): New.
13393 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13394 (iorsi3): ... here.
13395 (*iorsi3_flags): New.
13396 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13397 (xorsi3): ... here.
13398 (*xorsi3_flags): New.
13399 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13400 (one_cmplsi2): ... here.
13401 (*one_cmplsi2_flags): New.
13402 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13403 instead of "dax" in constraints. Use mn10300_split_cbranch.
13404 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13405 use matching constraints to eliminate a self-comparison.
13406 (*integer_conditional_branch): Rename from integer_conditional_branch.
13407 Use int_mode_flags to match CC_REG.
13408 (*cbranchsi4_btst, *btstsi): New.
13409 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13410 mn10300_split_cbranch.
13411 (*am33_cmpsf): Rename from am33_cmpsf.
13412 (*float_conditional_branch): Rename from float_conditional_branch.
13413 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13414 (zero_extendqisi2): ... here.
13415 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13416 (zero_extendhisi2): ... here.
13417 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13418 (extendqisi2): ... here.
13419 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13420 (extendhisi2): ... here.
13421 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13422 (ashlsi3): ... here.
13423 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13424 (lshrsi3): ... here.
13425 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13426 (ashrsi3): ... here.
13427 (consecutive add peephole): Remove.
13428 * config/mn10300/predicates.md (label_ref_operand): New.
13429 (int_mode_flags): New.
13430 (CCZN_comparison_operator): New.
13432 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13433 (throughput_42_latency_43): New reservation.
13434 (mulsidi3, umulsidi3): New expanders.
13435 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13436 the MDR register to allocation; separately allocate the low and
13437 high parts of the DImode result.
13438 (umulsidi3_internal): Similarly.
13439 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13440 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13441 (udivsi3, umodsi3): Remove.
13442 (udivmodsi4, divmodsi4): New expanders.
13443 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13444 (*divmodsi4): Simiarly.
13445 (ext_internal): New.
13447 * config/mn10300/constraints.md ("z"): New constraint.
13448 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13449 (FIXED_REGISTERS): Don't fix MDR.
13450 (CALL_USED_REGSITERS): Reformat nicely.
13451 (REG_ALLOC_ORDER): Add MDR.
13452 (enum regclass): Add MDR_REGS.
13453 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13454 (IRA_COVER_CLASSES): Add MDR_REGS.
13455 (REGNO_REG_CLASS): Handle MDR_REG.
13456 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13457 (mn10300_register_move_cost): Likewise.
13458 * config/mn10300/mn10300.md (MDR_REG): New.
13459 (*movsi_internal): Handle moves to/from MDR_REGS.
13461 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13463 (mn10300_secondary_reload): Tidy combination reload classes.
13464 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13465 addresses for AM33. Allow symbolic offsets for reg+imm.
13466 (mn10300_regno_in_class_p): New.
13467 (mn10300_legitimize_reload_address): New.
13468 * config/mn10300/mn10300.h (enum reg_class): Remove
13469 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13470 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13471 SP_OR_GENERAL_REGS.
13472 (REG_CLASS_NAMES): Update to match.
13473 (REG_CLASS_CONTENTS): Likewise.
13474 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13475 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13476 (REGNO_IN_RANGE_P): Remove.
13477 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13478 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13479 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13480 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13481 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13482 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13483 (REGNO_GENERAL_P): New.
13484 (HAVE_POST_MODIFY_DISP): New.
13485 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13486 (LEGITIMIZE_RELOAD_ADDRESS): New.
13487 * config/mn10300/mn10300-protos.h: Update.
13489 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13490 DATA_REGS for AM33 stack-pointer destination.
13491 (mn10300_preferred_output_reload_class): Likewise.
13492 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13493 into a form appropriate for ...
13494 (TARGET_SECONDARY_RELOAD): New.
13495 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13496 * config/mn10300/mn10300-protos.h: Update.
13497 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13498 reload_insi; use the "A" constraint for the scratch; handle AM33
13499 moves of sp to non-address registers.
13501 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13502 (*movqi_internal): ... here.
13503 (*am33_movhi, *mn10300_movhi): Merge into...
13504 (*movhi_internal): ... here.
13505 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13506 as the source/destination of moves from/to SP.
13507 (movsf): Only allow for AM33-2.
13508 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13509 any integer constant constraint. Only allow for AM33-2. Tidy
13510 all of the alternative outputs.
13511 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13512 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13514 (udivsi3, umodsi3): New patterns for MN103 only.
13516 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13518 * doc/tm.texi.in: Spell out that a lack of register class unions
13520 * doc/tm.texi: Regenerate.
13522 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13524 PR rtl-optimization/47337
13525 * dce.c (check_argument_store): New function.
13526 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13528 PR tree-optimization/47290
13529 * tree-eh.c (infinite_empty_loop_p): New function.
13530 (cleanup_empty_eh): Use it.
13532 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13535 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13536 (a64_expand_widen_sum): Ditto.
13537 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13538 (vec_extract_evenodd_help): Ditto.
13539 (vec_extract_evenv4hi): Ditto.
13540 (vec_extract_oddv4hi): Ditto.
13541 (vec_extract_evenv2si): Ditto.
13542 (vec_extract_oddv2si): Ditto.
13543 (vec_extract_evenv2sf): Ditto.
13544 (vec_extract_oddv2sf): Ditto.
13545 (vec_pack_trunc_v4hi: Ditto.
13546 (vec_pack_trunc_v2si): Ditto.
13547 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13548 (vec_interleave_highv8qi): Ditto.
13550 (vec_extract_oddv8qi): Ditto.
13551 (vec_interleave_lowv4hi): Ditto.
13552 (vec_interleave_highv4hi): Ditto.
13553 (vec_interleave_lowv2si): Ditto.
13554 (vec_interleave_highv2si): Ditto.
13556 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13558 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13559 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13560 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13561 (pa_c_mode_for_suffix): New.
13562 (TARGET_EXPAND_BUILTIN): Define.
13563 (TARGET_C_MODE_FOR_SUFFIX): Define.
13564 (pa_builtins): Define.
13565 (pa_init_builtins): Register __float128 type and init new support
13567 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13568 * config/pa/quadlib.c (_U_Qfcopysign): New.
13570 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13572 PR middle-end/46894
13573 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13574 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13577 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13579 PR tree-optimization/47179
13580 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13581 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13583 2011-01-18 Richard Guenther <rguenther@suse.de>
13585 PR rtl-optimization/47216
13586 * emit-rtl.c: Include tree-flow.h.
13587 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13588 of replicating it with different semantics.
13589 * Makefile.in (emit-rtl.o): Adjust.
13591 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13593 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13594 (cortex_a9_dp): Handle neon types correctly.
13596 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13598 PR rtl-optimization/47299
13599 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13600 subtarget. Use normal multiplication if both operands are constants.
13601 * expmed.c (expand_widening_mult): Don't try to optimize constant
13602 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13605 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13607 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13608 spacing after 'e.g.', typos, comma, hyphenation.
13610 2011-01-17 Richard Henderson <rth@redhat.com>
13612 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13613 (rx_restricted_mem_operand): New.
13614 (rx_shift_operand): Use register_operand.
13615 (rx_source_operand, rx_compare_operand): Likewise.
13616 * config/rx/rx.md (addsi3_flags): New expander.
13617 (adddi3): Rewrite as expander.
13618 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13619 (subsi3_flags): New expander.
13620 (subdi3): Rewrite as expander.
13621 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13623 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13624 (rx_init_builtins): Remove sat builtin.
13625 (rx_expand_builtin): Likewise.
13626 * config/rx/rx.md (ssaddsi3): New.
13627 (*sat): Rename from sat. Represent the CC_REG input.
13629 * config/rx/predicates.md (rshift_operator): New.
13630 * config/rx/rx.c (rx_expand_insv): Remove.
13631 * config/rx/rx-protos.h: Update.
13632 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13633 operand to the canonical position.
13634 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13635 (*bitclr, *bitclr_in_memory): Similarly.
13636 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13637 (insv): Retain the zero_extract in the expansion.
13639 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13640 (bswaphi2, bitinvert, revw): Likewise.
13642 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13643 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13644 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13645 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13646 (bitset, bitset_in_memory): Likewise.
13647 (bitinvert, bitinvert_in_memory): Likewise.
13648 (bitclr, bitclr_in_memory): Likewise.
13649 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13650 (rx_strend, rx_cmpstrn): Likewise.
13651 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13652 (bitop peep2 patterns): Remove.
13654 * config/rx/rx.c (rx_match_ccmode): New.
13655 * config/rx/rx-protos.h: Update.
13656 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13657 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13658 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13659 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13660 (fix_truncsfsi2, floatsisf2): Likewise.
13661 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13662 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13663 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13664 (*subsi3_flags, *xorsi3_flags): New.
13666 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13668 * config/rx/rx.c (rx_print_operand): Remove workaround for
13669 unsplit comparison operations.
13671 * config/rx/rx.md (movsicc): Split after reload.
13672 (*movsicc): Merge *movsieq and *movsine via match_operator.
13673 (*stcc): New pattern.
13675 * config/rx/rx.c (rx_float_compare_mode): Remove.
13676 * config/rx/rx.h (rx_float_compare_mode): Remove.
13677 * config/rx/rx.md (cstoresi4): Split after reload.
13678 (*sccc): New pattern.
13680 * config/rx/predicates.md (label_ref_operand): New.
13681 (rx_z_comparison_operator): New.
13682 (rx_zs_comparison_operator): New.
13683 (rx_fp_comparison_operator): New.
13684 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13685 Validate that the flags are set properly for the comparison.
13686 (rx_gen_cond_branch_template): Remove.
13687 (rx_cc_modes_compatible): Remove.
13688 (mode_from_flags): New.
13689 (flags_from_code): Rename from flags_needed_for_conditional.
13690 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13691 (rx_select_cc_mode): Likewise.
13692 (rx_split_fp_compare): New.
13693 (rx_split_cbranch): New.
13694 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13695 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13696 (*cbranchsf4): Similarly.
13697 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13698 match_operator and rx_split_cbranch.
13699 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13700 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13701 (*cmpsi): Rename from cmpsi.
13702 (*tstsi): Rename from tstsi.
13703 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13704 (*conditional_branch): Rename from conditional_branch.
13705 (*reveresed_conditional_branch): Remove.
13706 (b<code>): Remove expander.
13707 * config/rx/rx-protos.h: Update.
13709 * config/rx/rx.c (rx_compare_redundant): Remove.
13710 * config/rx/rx.md (cmpsi): Don't use it.
13711 * config/rx/rx-protos.h: Update.
13713 * config/rx/rx-modes.def (CC_F): New mode.
13714 * config/rx/rx.c (rx_select_cc_mode): New.
13715 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13716 * config/rx/rx-protos.h: Update.
13718 2011-01-17 Richard Henderson <rth@redhat.com>
13720 * except.c (dump_eh_tree): Fix stray ; after for statement.
13722 2011-01-17 Richard Guenther <rguenther@suse.de>
13724 PR tree-optimization/47313
13725 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13726 handling before copying the body. Properly deal with
13727 by-reference result in SSA form.
13729 2011-01-17 Ian Lance Taylor <iant@google.com>
13732 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13733 (struct_value_alias_set): Don't define.
13734 (sparc_option_override): Don't set sparc_sr_alias_set and
13735 struct_value_alias_set.
13736 (save_or_restore_regs): Use gen_frame_mem rather than calling
13738 (sparc_struct_value_rtx): Likewise.
13740 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13743 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13744 (_mm_maskstore_pd): Likewise.
13745 (_mm_maskload_ps): Likewise.
13746 (_mm_maskstore_ps): Likewise.
13747 (_mm256_maskload_pd): Change mask to __m256i.
13748 (_mm256_maskstore_pd): Likewise.
13749 (_mm256_maskload_ps): Likewise.
13750 (_mm256_maskstore_ps): Likewise.
13752 * config/i386/i386-builtin-types.def: Updated.
13753 (ix86_expand_special_args_builtin): Likewise.
13755 * config/i386/i386.c (bdesc_special_args): Update
13756 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13757 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13758 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13759 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13761 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13762 Use <avxpermvecmode> on mask register.
13763 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13765 2011-01-17 Olivier Hainque <hainque@adacore.com>
13766 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13767 Eric Botcazou <ebotcazou@adacore.com>
13770 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13771 if <= USHRT_MAX in 32-bit mode.
13773 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13775 * doc/install.texi (Configuration, Specific): Wrap long
13776 lines in examples. Allow line wrapping in long options
13777 and URLs where beneficial for PDF output.
13779 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13781 * config/mips/mips.c (mips_classify_symbol): Don't return
13782 SYMBOL_PC_RELATIVE for nonlocal labels.
13784 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13786 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13788 2011-01-15 Jan Hubicka <jh@suse.cz>
13790 PR tree-optimization/47276
13791 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13792 declarations as needed.
13794 2011-01-15 Martin Jambor <mjambor@suse.cz>
13796 * common.opt (fdevirtualize): New flag.
13797 * doc/invoke.texi (Option Summary): Document it.
13798 * opts.c (default_options_table): Add devirtualize flag.
13799 * ipa-prop.c (detect_type_change): Return immediately if
13800 devirtualize flag is not set.
13801 (detect_type_change_ssa): Likewise.
13802 (compute_known_type_jump_func): Likewise.
13803 (ipa_analyze_virtual_call_uses): Likewise.
13805 2011-01-14 Martin Jambor <mjambor@suse.cz>
13807 PR tree-optimization/45934
13808 PR tree-optimization/46302
13809 * ipa-prop.c (type_change_info): New type.
13810 (stmt_may_be_vtbl_ptr_store): New function.
13811 (check_stmt_for_type_change): Likewise.
13812 (detect_type_change): Likewise.
13813 (detect_type_change_ssa): Likewise.
13814 (compute_complex_assign_jump_func): Check for dynamic type change.
13815 (compute_complex_ancestor_jump_func): Likewise.
13816 (compute_known_type_jump_func): Likewise.
13817 (compute_scalar_jump_functions): Likewise.
13818 (ipa_analyze_virtual_call_uses): Likewise.
13819 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13823 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13824 * config/i386/i386.opt (msse5): New Alias.
13826 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13828 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13829 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13830 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13831 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13835 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13837 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13838 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13839 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13840 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13842 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13844 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13846 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13848 2011-01-14 Mike Stump <mikestump@comcast.net>
13850 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13851 * config/fr30/fr30.md: Likweise
13852 (movsi_push): Likewise.
13853 (movsi_pop): Likewise.
13854 (enter_func): Likewise.
13855 * config/moxie/moxie.md (movsi_push): Likewise.
13856 (movsi_pop): Likewise.
13858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13860 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13861 %{no_archive} %{exact_version}.
13862 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13863 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13864 %{no_archive} %{exact_version}.
13865 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13866 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13867 * config/mips/vxworks.h: Likewise.
13869 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13871 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13873 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13875 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13876 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13878 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13880 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13883 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13885 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13887 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13888 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13890 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13891 Don't handle -shlib.
13893 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13895 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13896 (CC1_SPEC): Don't handle -profile.
13898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13900 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13901 * config/mips/mips.h (CC1_SPEC): Likewise.
13903 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13905 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13906 * config/mips/mips.h (CC1_SPEC): Likewise.
13908 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13910 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13911 * config/m32r/linux.h (LINK_SPEC): Likewise.
13912 * config/mips/linux.h (LINK_SPEC): Likewise.
13913 * config/mips/linux64.h (LINK_SPEC): Likewise.
13914 * config/sparc/linux.h (LINK_SPEC): Likewise.
13915 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13916 LINK_SPEC): Likewise.
13917 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13919 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13921 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13923 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13925 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13927 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13928 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13930 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13932 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13934 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13936 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13937 supports -Bstatic/-Bdynamic.
13938 * configure: Regenerate.
13940 2011-01-14 Jan Hubicka <jh@suse.cz>
13941 Jack Howarth <howarth@bromo.med.uc.edu>
13944 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13945 when checking debug_info_level. Test write_symbols instead of
13946 debug_hooks->var_location when setting flag_var_tracking_uninit.
13948 2011-01-14 Richard Guenther <rguenther@suse.de>
13950 PR tree-optimization/47179
13951 * target.def (ref_may_alias_errno): New target hook.
13952 * targhooks.h (default_ref_may_alias_errno): Declare.
13953 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13954 (default_ref_may_alias_errno): New function.
13955 * target.h (struct ao_ref_s): Declare.
13956 * tree-ssa-alias.c: Include target.h.
13957 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13958 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13959 (targhooks.o): Likewise.
13960 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13961 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13963 2011-01-14 Richard Guenther <rguenther@suse.de>
13965 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13967 2011-01-14 Richard Guenther <rguenther@suse.de>
13969 PR tree-optimization/47280
13970 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13971 return CFG changes.
13972 (tree_ssa_forward_propagate_single_use_vars): Deal with
13973 CFG changes from associate_plusminus.
13975 2011-01-14 Richard Guenther <rguenther@suse.de>
13977 PR middle-end/47281
13979 2011-01-11 Richard Guenther <rguenther@suse.de>
13981 PR tree-optimization/46076
13982 * tree-ssa.c (useless_type_conversion_p): Conversions from
13983 unprototyped to empty argument list function types are useless.
13985 2011-01-14 Richard Guenther <rguenther@suse.de>
13987 PR tree-optimization/47286
13988 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13990 2011-01-14 Martin Jambor <mjambor@suse.cz>
13992 PR middle-end/46823
13993 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13995 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13997 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13998 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13999 * config/xtensa/xtensa.c (xtensa_libcall_value,
14000 xtensa_function_value_regno_p): New functions.
14001 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14003 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14006 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14008 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14009 New function prototype.
14010 * config/i386/winnt.c (i386_pe_assemble_visibility):
14011 Warn only if attribute was specified by user.
14013 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14016 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14018 (floatunsdidf2_fcfidu): Ditto.
14020 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14022 * config/s390/s390.c (print_operand_address): Replace 'error' with
14023 'output_operand_lossage'.
14024 (print_operand): Likewise.
14026 2011-01-13 Jeff Law <law@redhat.com>
14028 PR rtl-optimization/39077
14029 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14030 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14031 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14032 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14033 * gcse.c (prune_insertions_deletions): New function.
14034 (compute_pre_data): Use it.
14036 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14039 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14041 (prune_unused_types_mark): Use it.
14043 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14045 PR rtl-optimization/45352
14046 * sel-sched.c: Update copyright years.
14047 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14048 in the advancing loop when we have issued issue_rate insns.
14050 2011-01-12 Richard Henderson <rth@redhat.com>
14052 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14053 (TARGET_MD_ASM_CLOBBERS): New.
14055 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14056 (TARGET_DELEGITIMIZE_ADDRESS): New.
14058 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14059 (clzsi2, *bsch): New patterns.
14061 * config/mn10300/mn10300.md (INT): New mode iterator.
14062 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14064 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14065 flag_split_wide_types.
14067 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14068 (mn10300_trampoline_init): Rewrite without a template, an immediate
14069 load and a direct branch.
14070 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14072 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14074 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14075 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14076 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14077 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14079 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14082 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14085 2011-01-12 Jan Hubicka <jh@suse.cz>
14088 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14089 (PLUGIN_COND_CLOSE): New macro.
14090 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14092 2011-01-12 Richard Guenther <rguenther@suse.de>
14095 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14096 register variables in a MEM_REF.
14098 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14100 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14101 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14102 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14103 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14104 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14105 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14106 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14107 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14108 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14109 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14110 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14111 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14112 * config/gnu-user.h: New. Copied from linux.h.
14113 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14114 GNU_USER_TARGET_STARTFILE_SPEC.
14115 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14116 GNU_USER_TARGET_ENDFILE_SPEC.
14117 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14118 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14119 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14120 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14121 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14122 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14123 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14124 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14125 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14126 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14127 * config/arm/linux-eabi.h (CC1_SPEC): Use
14128 GNU_USER_TARGET_CC1_SPEC.
14129 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14130 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14131 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14132 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14133 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14134 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14135 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14136 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14138 2011-01-12 Richard Guenther <rguenther@suse.de>
14141 * doc/invoke.texi (ffast-math): Document it is turned on
14144 2011-01-12 Jan Hubicka <jh@suse.cz>
14146 PR tree-optimization/47233
14147 * opts.c (common_handle_option): Disable ipa-reference with profile
14150 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14152 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14155 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14157 * c-parser.c (c_lex_one_token): Updated and reindented some
14158 comments. No changes in code.
14160 2011-01-11 Ian Lance Taylor <iant@google.com>
14162 * godump.c (go_output_var): Don't output the variable if there is
14163 already a type with the same name.
14165 2011-01-11 Ian Lance Taylor <iant@google.com>
14167 * godump.c (go_format_type): Don't generate float80.
14169 2011-01-11 Richard Henderson <rth@redhat.com>
14171 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14172 declaration. Rewrite for both speed and size.
14173 (mn10300_address_cost_1): Remove.
14174 (mn10300_register_move_cost): New.
14175 (mn10300_memory_move_cost): New.
14176 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14177 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14178 extensions, shifts, BSWAP, CLZ.
14179 (mn10300_wide_const_load_uses_clr): Remove.
14180 (TARGET_REGISTER_MOVE_COST): New.
14181 (TARGET_MEMORY_MOVE_COST): New.
14182 * config/mn10300/mn10300-protos.h: Update.
14183 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14185 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14186 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14187 * config/mn10300/mn10300-protos.h: Update.
14188 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14189 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14190 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14191 (*test_int_bitfield, *test_byte_bitfield): Remove.
14192 (*bit_test, *subreg_bit_test): Remove.
14193 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14195 * config/mn10300/constraints.md ("c"): Rename from "A".
14196 ("A", "D"): New constraint letters.
14197 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14198 (fmssf4, fnmasf4, fnmssf4): Likewise.
14200 * config/mn10300/mn10300.md (isa): New attribute.
14201 (enabled): New attribute.
14203 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14204 (abssf2, negsf2): Define only for hardware fp.
14205 (sqrtsf2): Reformat.
14206 (addsf3, subsf3, mulsf3): Merge expander and insn.
14208 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14209 (DEBUGGER_AUTO_OFFSET): Remove.
14210 (DEBUGGER_ARG_OFFSET): Remove.
14212 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14213 Emit register stores with the same offsets as the hardware.
14214 (mn10300_store_multiple_operation): Don't check that the register
14215 save offsets are monotonic.
14216 * config/mn10300/mn10300-protos.h: Update.
14218 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14220 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14221 in terms of the value on the stack, not the MDR register.
14223 2011-01-11 Jan Hubicka <jh@suse.cz>
14227 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14228 (symbol_alias_set_destroy, symbol_alias_set_contains,
14229 propagate_aliases_backward): Declare.
14230 * lto-streamer-out.c (struct sets): New sturcture.
14231 (trivally_defined_alias): New function.
14232 (output_alias_pair_p): Rewrite.
14233 (output_unreferenced_globals): Fix output of alias pairs.
14234 (produce_symtab): Likewise.
14235 * ipa.c (function_and_variable_visibility): Set weak alias destination
14237 * varasm.c (symbol_alias_set_t): Remove.
14238 (symbol_alias_set_destroy): Export.
14239 (propagate_aliases_forward, propagate_aliases_backward): New functions
14241 (compute_visible_aliases): ... this one; remove.
14242 (trivially_visible_alias): New
14243 (trivially_defined_alias): New.
14244 (remove_unreachable_alias_pairs): Rewrite.
14245 (finish_aliases_1): Reorganize code checking if alias is defined.
14246 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14249 2011-01-11 Richard Guenther <rguenther@suse.de>
14251 PR tree-optimization/46076
14252 * tree-ssa.c (useless_type_conversion_p): Conversions from
14253 unprototyped to empty argument list function types are useless.
14255 2011-01-11 Richard Guenther <rguenther@suse.de>
14257 PR middle-end/45235
14258 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14259 volatile MEMs as MEM_READONLY_P.
14261 2011-01-11 Richard Guenther <rguenther@suse.de>
14263 PR tree-optimization/47239
14264 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14266 2011-01-11 Jeff Law <law@redhat.com>
14268 PR tree-optimization/47086
14269 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14270 IVs from statements that might throw.
14272 2011-01-10 Jan Hubicka <jh@suse.cz>
14275 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14277 2011-01-10 Jan Hubicka <jh@suse.cz>
14280 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14281 when correcting profile.
14283 2011-01-10 Jan Hubicka <jh@suse.cz>
14286 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14287 DECL_FINI_PRIORITY.
14288 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14289 Restore DECL_FINI_PRIORITY.
14291 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14293 * doc/gimple.texi: Fix quoting of multi-word return values in
14294 @deftypefn statements. Ensure presence of return value. Wrap
14295 overlong @deftypefn lines.
14296 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14297 descriptions of removed functions.
14298 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14299 of multi-word return value in @deftypefn statement.
14301 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14303 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14304 (Conditional Expressions, Logical Operators)
14305 (Statement and operand traversals): Do not indent smallexample
14306 code. Fix duplicate function argument in example.
14308 2011-01-10 Jeff Law <law@redhat.com>
14310 PR tree-optimization/47141
14311 * ipa-split.c (split_function): Handle case where we are
14312 returning a value and the return block has a virtual operand phi.
14314 2011-01-10 Jan Hubicka <jh@suse.cz>
14316 PR tree-optimization/47234
14317 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14318 (pass_feedback_split_functions): Declare.
14319 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14321 * ipa-split.c (gate_split_functions): Update comments; disable
14322 split-functions for profile_arc_flag and branch_probabilities.
14323 (gate_feedback_split_functions): New function.
14324 (execute_feedback_split_functions): New function.
14325 (pass_feedback_split_functions): New global var.
14327 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14330 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14331 calling gimple_call_set_cannot_inline.
14333 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14335 * config/darwin-sections.def: Remove unused section.
14337 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14340 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14342 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14345 * c-parser.c (c_parser_declaration_or_fndef): Improved
14348 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14350 * config/i386/winnt.c (i386_pe_start_function): Make sure
14351 to switch back to function's section.
14353 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14357 * plugin.c: Move include of dlfcn.h from here...
14358 * system.h: ... to here.
14360 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14362 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14364 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14365 two extra empty pages in PDF output.
14367 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14370 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14371 for error recovery purposes behave as if it was not specified so
14372 that the default type is usd.
14374 2011-01-07 Jan Hubicka <jh@suse.cz>
14376 PR tree-optmization/46469
14377 * ipa.c (function_and_variable_visibility): Clear needed flags on
14378 nodes with external decls; handle weakrefs merging correctly.
14380 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14382 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14385 2011-01-07 Jan Hubicka <jh@suse.cz>
14387 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14388 and no longer claim that gold is required for linker plugin.
14389 * configure: Regenerate.
14390 * gcc.c (PLUGIN_COND): New macro.
14391 (LINK_COMMAND_SPEC): Use it.
14392 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14393 * config.in (HAVE_LTO_PLUGIN): New.
14394 * configure.ac (--with-lto-plugin): New parameter; autodetect
14397 2011-01-07 Jan Hubicka <jh@suse.cz>
14399 PR tree-optimization/46367
14400 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14401 when we can update original.
14402 (cgraph_mark_inline_edge): Sanity check.
14403 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14405 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14407 * config/spu/spu.h (ASM_COMMENT_START): Define.
14409 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14412 * gcc.c (%>S): New.
14413 (SWITCH_KEEP_FOR_GCC): Likewise.
14414 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14415 (do_spec_1): Handle "%>".
14417 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14419 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14422 * config/i386/i386.c (ix86_delegitimize_address): If
14423 simplify_gen_subreg fails, return orig_x.
14426 * value-prof.c (gimple_stringop_fixed_value): Handle
14427 lhs of the call properly.
14429 2011-01-07 Jan Hubicka <jh@suse.cz>
14432 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14434 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14436 * target.def (function_switched_text_sections): New hook.
14437 * doc/tm.texi: Regenerated.
14438 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14439 * final.c (default_function_switched_text_sections): New.
14440 (final_scan_insn): Call function_switched_text_sections when a
14441 mid-function section change occurs.
14442 * output.h (default_function_switched_text_sections): Declare.
14443 * config/darwin-protos.h (darwin_function_switched_text_sections):
14445 * config/darwin.c (darwin_function_switched_text_sections): New.
14446 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14448 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14450 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14451 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14452 the secondary code fragment when outputting for DWARF == 2.
14454 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14456 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14457 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14459 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14460 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14462 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14465 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14466 when it is not empty.
14468 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14471 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14472 (case ${target}): Add btver1.
14473 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14474 -march=native recognize btver1 processors.
14475 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14476 btver1 def_and_undef
14477 * config/i386/i386.c (struct processor_costs btver1_cost): New
14479 (m_BTVER1): New definition.
14480 (m_AMD_MULTIPLE): Includes m_BTVER1.
14481 (initial_ix86_tune_features): Add btver1 tune.
14482 (processor_target_table): Add btver1 entry.
14483 (static const char *const cpu_names): Add btver1 entry.
14484 (software_prefetching_beneficial_p): Add btver1.
14485 (ix86_option_override_internal): Add btver1 instruction sets.
14486 (ix86_issue_rate): Add btver1.
14487 (ix86_adjust_cost): Add btver1.
14488 * config/i386/i386.h (TARGET_BTVER1): New definition.
14489 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14490 (enum processor_type): Add PROCESSOR_BTVER1.
14491 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14493 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14496 * config/i386/i386.c (legitimize_tls_address)
14497 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14498 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14499 (tls_initial_exec_64_sun): New pattern.
14501 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14503 * doc/invoke.texi (Overall Options): Improve wording and markup
14504 of the description of -wrapper.
14506 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14508 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14509 rdynamic, threads): New Driver options.
14511 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14514 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14515 if coming from .tdata.
14516 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14518 2011-01-06 Jan Hubicka <jh@suse.cz>
14521 * collect2.c (main): Do not enable LTOmode when plugin is active.
14523 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14526 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14527 --version output if supported.
14528 * configure: Regenerate.
14530 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14532 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14535 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14538 * c-convert.c (convert): When converting a complex expression
14539 other than COMPLEX_EXPR to a different complex type, ensure
14540 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14541 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14542 when converting COMPLEX_TYPE.
14544 2011-01-06 Ira Rosen <irar@il.ibm.com>
14546 PR tree-optimization/47139
14547 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14548 only the last reduction value is used outside the loop. Update
14551 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14553 * config/rtems.opt: New.
14554 * config.gcc (*-*-rtems*): Use rtems.opt.
14556 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14558 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14559 processors do not support 3DNow instructions.
14561 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14563 * config/spu/spu.c (spu_option_override): Set parameter
14564 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14566 2011-01-05 Jan Hubicka <jh@suse.cz>
14568 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14569 at the command line.
14571 2011-01-05 Martin Jambor <mjambor@suse.cz>
14574 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14575 deltas on streamed outgoing edges.
14576 (output_node_opt_summary): Output info for outgoing edges only when
14577 the node is in new parameter set.
14578 (output_cgraph_opt_summary): New parameter set, passed to the two
14579 aforementioned functions. Update its forward declaration and its
14582 2011-01-05 Tom Tromey <tromey@redhat.com>
14584 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14585 operator to c_finish_omp_atomic.
14586 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14587 (build_unary_op): Update.
14588 (build_modify_expr): Update.
14589 (build_asm_expr): Update.
14591 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14593 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14594 newly inserted insns.
14595 (pad_bb): Likewise.
14596 (spu_emit_branch_hint): Likewise.
14597 (insert_hbrp_for_ilb_runout): Likewise.
14598 (spu_machine_dependent_reorg): Call df_finish_pass after
14599 schedule_insns returns.
14601 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14603 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14605 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14607 PR tree-optimization/47005
14608 * tree-sra.c (struct access): Add 'non_addressable' bit.
14609 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14610 (decide_one_param_reduction): Return 0 if the parameter is passed by
14611 reference and one of the accesses in the group is non_addressable.
14613 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14615 PR tree-optimization/47056
14616 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14617 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14618 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14620 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14622 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14623 initializer. Skip view conversions from aggregate types.
14625 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14628 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14630 2011-01-04 Philipp Thomas <pth@suse.de>
14632 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14635 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14637 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14638 on empty epilogue sequences.
14640 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14642 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14643 non-static): New Driver options.
14645 2011-01-04 Jie Zhang <jie@codesourcery.com>
14648 * gcc.c (default_compilers[]): Set combinable field to 0
14649 for all assembly languages.
14651 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14653 * config/mips/loongson3a.md: New file.
14654 * config/mips/mips.md: Include loongson3a.md.
14655 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14658 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14660 PR middle-end/47017
14661 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14662 instead of convert_memory_address_addr_space on the base expression.
14664 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14666 * config/spu/spu.c (spu_option_override): Update error text
14667 for bad -march= / -mtune= values.
14669 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14671 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14672 if branch-hint optimization will be performed.
14674 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14676 PR tree-optimization/47148
14677 * ipa-split.c (split_function): Convert arguments to
14678 DECL_ARG_TYPE if possible.
14680 PR tree-optimization/47155
14681 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14682 when computing uns.
14684 PR rtl-optimization/47157
14685 * combine.c (try_combine): If undobuf.other_insn becomes
14686 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14687 and set *new_direct_jump_p too.
14689 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14691 PR tree-optimization/47021
14692 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14694 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14696 * gcc.c (process_command): Update copyright notice dates.
14697 * gcov.c (print_version): Likewise.
14698 * gcov-dump.c (print_version): Likewise.
14699 * mips-tfile.c (main): Likewise.
14700 * mips-tdump.c (main): Likewise.
14702 2011-01-03 Martin Jambor <mjambor@suse.cz>
14704 PR tree-optimization/46801
14705 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14706 aggregate fields start at byte boundary instead of the bit-field flag.
14708 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14711 * gcc.c (main): Revert revision 168407.
14713 2011-01-03 Martin Jambor <mjambor@suse.cz>
14715 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14717 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14719 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14720 vector optab to expand vector/scalar shift, update gimple to vector.
14722 2011-01-03 Martin Jambor <mjambor@suse.cz>
14724 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14727 2011-01-03 Martin Jambor <mjambor@suse.cz>
14729 PR tree-optimization/46984
14730 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14732 (cgraph_create_indirect_edge): Fixed line length.
14733 (cgraph_indirect_call_info): Declare.
14734 (cgraph_make_edge_direct) Update declaration.
14735 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14736 (cgraph_create_indirect_edge): Use it.
14737 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14739 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14740 the new thunk_delta representation.
14741 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14743 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14744 (ipa_read_indirect_edge_info): Likewise.
14745 * lto-cgraph.c (output_edge_opt_summary): New function.
14746 (output_node_opt_summary): Call it on all outgoing edges.
14747 (input_edge_opt_summary): New function.
14748 (input_node_opt_summary): Call it on all outgoing edges.
14750 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14753 * gcc.c (main): Don't check have_o when settting combine_inputs.
14755 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14757 * regrename.c: Add general comment describing the pass.
14758 (struct du_head): Remove 'length' field.
14759 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14760 (regrename_optimize): Do not sort chains. Rework comments, add others.
14761 Force renaming to the preferred class (if any) in the first pass and do
14762 not consider registers that belong to it in the second pass.
14763 (create_new_chain): Do not set 'length' field.
14764 (scan_rtx_reg): Likewise.
14766 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14768 PR tree-optimization/47140
14769 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14770 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14771 to bit_value_binop.
14773 PR rtl-optimization/47028
14774 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14775 parm_birth_insn instead of at the beginning of first bb.
14777 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14779 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14780 Remove the word "see" before "@pxref".
14781 * doc/rtl.texi: Remove the word "see" before "@pxref".
14783 2011-01-01 Jan Hubicka <jh@suse.cz>
14785 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14788 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14791 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14794 Copyright (C) 2011 Free Software Foundation, Inc.
14796 Copying and distribution of this file, with or without modification,
14797 are permitted in any medium without royalty provided the copyright
14798 notice and this notice are preserved.