1 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3 * collect2.c: Include diagnostic.h.
4 (fatal_perror, fatal, error, fancy_abort): Remove.
5 (main): Set progname. Call xmalloc_set_program_name and
7 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
8 scan_libraries, resolve_lib_name): Call fatal_error instead of
9 fatal and fatal_perror.
10 * collect2.h (error, fatal, fatal_perror): Don't declare.
11 * tlink.c: Include diagnostic-core.h.
12 (recompile_files): Call fatal_error instead of fatal_perror.
13 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
14 pretty-print.o and input.o.
15 (collect2.o, tlink.o): Update dependencies.
17 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
21 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
25 COMDAT group syntax, both SPARC and x86 variants.
26 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
27 * configure: Regenerate.
28 * config/sol2.h (TARGET_SOLARIS): Define.
29 (PUSHSECTION_FORMAT): Remove.
30 (SECTION_NAME_FORMAT): Define.
31 * config/sol2.c: Include hashtab.h.
32 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
33 expansion, using SECTION_NAME_FORMAT.
34 (solaris_comdat_htab): New variable.
35 (struct comdat_entry): Define.
36 (comdat_hash): New function.
37 (comdat_eq): New function.
38 (solaris_elf_asm_comdat_section): New function.
39 (solaris_define_comdat_signature): New function.
40 (solaris_code_end): New function.
41 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
42 (solaris_code_end): Declare.
43 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
44 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
46 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
47 Remove ATTRIBUTE_UNUSED.
48 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
49 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
50 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
52 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
53 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
54 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
55 (PUSHSECTION_FORMAT): Remove.
56 (SECTION_NAME_FORMAT): Redefine.
58 2011-05-19 Kai Tietz <ktietz@redhat.com>
60 * tree-cfg.c (verify_gimple_assign_binary): Barf on
61 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
62 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
64 2011-05-19 Anatoly Sokolov <aesok@post.ru>
65 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
67 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
69 2011-05-19 Richard Guenther <rguenther@suse.de>
72 * tree-object-size.c (addr_object_size): If the pointed-to
73 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
75 2011-05-19 Richard Guenther <rguenther@suse.de>
77 * gimple.c (gimple_types_compatible_p_1): Compare names of
79 (iterative_hash_gimple_type): And hash them that way.
80 (gimple_register_type_1): If we register a main variant properly
81 initialize the leader to ourselves.
83 2011-05-19 Tom de Vries <tom@codesourcery.com>
86 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
87 get_loop_invariant_expr_id.
88 (get_loop_invariant_expr_id): Use get_expr_id.
89 (parm_decl_cost): New function.
90 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
91 Improve bound cost estimation. Use different inv_expr_id for elim and
94 2011-05-19 Tom de Vries <tom@codesourcery.com>
97 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
100 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
103 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
104 Properly handle load cast.
106 2011-05-18 Jakub Jelinek <jakub@redhat.com>
108 PR tree-optimization/49039
109 * tree-vrp.c (extract_range_from_binary_expr): For
110 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
111 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
113 2011-05-18 Tom de Vries <tom@codesourcery.com>
116 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
118 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
120 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
121 (*tls_global_dynamic_64): Ditto.
122 (*tls_local_dynamic_base_32_gnu): Ditto.
123 (*tls_local_dynamic_base_64): Ditto.
124 (tls_initial_exec_64_sun): Ditto.
126 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
128 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
129 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
131 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
132 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
133 * config/bfin/bfin.c (bfin_cpus): Add bf592.
134 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
135 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
136 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
137 * config/bfin/elf.h (LIB_SPEC): Add bf592.
139 2011-05-18 Joseph Myers <joseph@codesourcery.com>
141 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
142 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
143 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
144 target_thread_pointer, arm_structure_size_boundary, struct
145 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
146 struct abi_name, arm_all_abis): Remove.
147 (arm_option_override) Don't process most enumerated option values here.
148 Don't process target_fpe_name here. Work with integer not string for
149 structure size boundary; use separate diagnostics for each case.
150 * config/arm/arm.h (enum float_abi_type, enum
151 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
153 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
154 arm_structure_size_boundary): Remove.
155 * config/arm/arm.opt (mabi=): Use Enum and Init.
156 (arm_abi_type): New Enum and EnumValue entries.
157 (mfloat-abi=): Use Enum and Init.
158 (float_abi_type): New Enum and EnumValue entries.
159 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
160 (mfp16-format=): Use Enum and Init.
161 (arm_fp16_format_type): New Enum and EnumValue entries.
162 (mstructure-size-boundary=): Use UInteger and Init.
163 (mtp=): Use Enum and Init.
164 (arm_tp_type): New Enum and EnumValue entries.
166 2011-05-18 Richard Guenther <rguenther@suse.de>
168 PR tree-optimization/49018
169 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
170 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
171 gimple_has_side_effects.
173 2011-05-18 Richard Guenther <rguenther@suse.de>
175 * gimple.c (gimple_register_type_1): New function, split out from ...
176 (gimple_register_type): ... here. Avoid infinite recursion.
178 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
180 PR tree-optimization/41881
181 * tree-vectorizer.h (struct _loop_vec_info): Add new field
182 reduction_chains along with a macro for its access.
183 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
184 (destroy_loop_vec_info): Free reduction chains.
185 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
186 (vect_is_slp_reduction): New function.
187 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
188 (vect_create_epilog_for_reduction): Support SLP reduction chains.
189 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
190 definition types for reduction chains.
191 (vect_supported_load_permutation_p): Don't allow permutations for
193 (vect_analyze_slp_instance): Support reduction chains.
194 (vect_analyze_slp): Try to build SLP instance from reduction chains.
195 (vect_get_constant_vectors): Handle reduction chains.
196 (vect_schedule_slp_instance): Mark the first statement of the
197 reduction chain as reduction.
199 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
201 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
202 names for group elements access.
203 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
204 reduction chains as well. Remove data reference and interleaving
205 related words from the fields names.
206 * tree-vect-loop.c (vect_transform_loop): Use new names for group
208 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
209 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
210 vect_update_interleaving_chain, vect_same_range_drs,
211 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
212 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
213 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
214 vect_analyze_group_access, vect_analyze_data_ref_access,
215 vect_create_data_ref_ptr, vect_transform_strided_load,
216 vect_record_strided_load_vectors): Likewise.
217 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
218 vect_model_load_cost, vectorizable_store, vectorizable_load,
219 vect_remove_stores, new_stmt_vec_info): Likewise.
220 * tree-vect-slp.c (vect_build_slp_tree,
221 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
223 2011-05-18 Richard Guenther <rguenther@suse.de>
226 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
227 operand verification.
228 (verify_gimple_assign_binary): Likewise.
229 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
230 to non-1-precision BOOLEAN_TYPEs.
232 2011-05-18 Tom de Vries <tom@codesourcery.com>
235 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
237 2011-05-18 Jakub Jelinek <jakub@redhat.com>
239 PR tree-optimization/49000
240 * tree-ssa.c (execute_update_addresses_taken): Call
241 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
242 be rewritten and decl has been marked for renaming, reset
245 2011-05-17 Joseph Myers <joseph@codesourcery.com>
247 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
248 enum_opts_set when testing if attributes have set -mfpmath=.
250 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
252 * config/mips/mips.c (mips_handle_option): Remove unused variable.
254 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
256 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
258 * tree-inline.c (maybe_inline_call_in_expr): Initialize
259 id.transform_lang_insert_block with NULL.
261 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
263 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
264 (output_fp_compare): Change args 3 and 4 to bool.
265 (ix86_expand_call): Change arg 6 to bool.
266 (ix86_attr_length_immediate_default): Change arg 2 to bool.
267 (ix86_attr_length_vex_default): Change arg 3 to bool.
268 * config/i386/i386.md: Update all uses.
269 * config/i386/i386.c: Ditto.
270 (ix86_flags_dependent): Change return type to bool.
272 2011-05-17 Richard Guenther <rguenther@suse.de>
274 * gimple.c (type_hash_pair_compare): Fix comparison.
276 2011-05-17 Richard Guenther <rguenther@suse.de>
278 * gimple.c (iterative_hash_gimple_type): Simplify singleton
279 case some more, fix final hash value of the non-singleton case.
281 2011-05-17 Richard Guenther <rguenther@suse.de>
285 2011-05-16 Richard Guenther <rguenther@suse.de>
287 * gimple.c (gimple_types_compatible_p_1): Use names of the
288 type itself, not its main variant.
289 (iterative_hash_gimple_type): Likewise.
291 2011-05-17 Richard Guenther <rguenther@suse.de>
293 * gimple.c (gimple_register_canonical_type): Use the main-variant
294 leader for computing the canonical type.
296 2011-05-17 Nick Clifton <nickc@redhat.com>
298 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
301 * config/rx/rx.md: Add peephole to remove redundant extensions
303 (bitset_in_memory): Use rx_restricted_mem_operand.
304 (bitinvert_in_memory): Likewise.
305 (bitclr_in_memory): Likewise.
307 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
308 Nick Clifton <nickc@redhat.com>
310 * config/rx/rx.md: Add peepholes to match a register move followed
311 by a comparison of the moved register. Replace these with an
312 addition of zero that does both actions in one instruction.
314 2011-05-17 Jakub Jelinek <jakub@redhat.com>
317 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
318 predicate to allow CONST_INT.
319 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
321 2011-05-16 Joseph Myers <joseph@codesourcery.com>
323 * opts-common.c (opt_enum_arg_to_value): New.
324 * opts.h (opt_enum_arg_to_value): Declare.
325 * config/i386/i386.opt (fpmath): Remove.
326 (mfpmath=): Use Enum, Init and Save.
327 (fpmath_unit): New Enum and EnumValue entries.
328 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
329 name for function fpmath state.
330 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
331 * config/i386/i386.c: Include diagnostic.h.
332 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
333 (ix86_target_string): Take enum fpmath_unit value instead of string.
334 (ix86_debug_options): Update call to ix86_target_string.
335 (ix86_option_override_internal): Don't process fpmath strings here.
336 (x86_function_specific_save, ix86_function_specific_restore):
337 Don't handle fpmath state specially.
338 (ix86_function_specific_print): Pass fpmath state to
339 ix86_target_string instead of printing in this function.
340 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
341 Handle enum attributes.
342 (IX86_ATTR_ENUM, ix86_opt_enum): New.
343 (ix86_valid_target_attribute_tree): Update option_strings
344 handling. Handle fpmath as enum option.
345 (ix86_can_inline_p): Update field names for function fpmath state.
346 (ix86_expand_builtin): Update call to ix86_target_string.
347 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
348 (ix86_fpmath): Remove.
349 * config/i386/t-i386 (i386.o): Update dependencies.
351 2011-05-16 Joseph Myers <joseph@codesourcery.com>
353 PR preprocessor/48677
354 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
355 from decoded_options[0], not from itself.
357 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
359 * config/i386/constraints.md (z): New constraint.
360 * config/i386/i386.c (c): New mode attribute.
361 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
362 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
363 constraint for operand 0.
364 (*call_vzeroupper): Ditto.
365 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
366 (*call_rex64_ms_sysv_vzeroupper): Ditto.
367 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
368 Use "lzm" constraint for operand 0.
369 (*call_pop_vzeroupper): Ditto.
370 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
371 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
372 constraint for operand 0.
373 (*sibcall_vzeroupper): Ditto.
374 (*sibcall_rex64_ms_sysv): Ditto.
375 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
376 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
377 *sibcall_pop_1. Use "Uz" constraint for operand 0.
378 (*sibcall_pop_vzeroupper): Ditto.
379 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
380 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
381 mode iterator. Use "<c>zm" constraint for operand 1.
382 (*call_value_vzeroupper): Ditto.
383 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
385 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
386 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
387 *call_value_pop_1. Use "lzm" constraint for operand 1.
388 (*call_value_pop_vzeroupper): Ditto.
389 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
390 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
391 mode iterator. Use "Uz" constraint for operand 1.
392 (*sibcall_value_vzeroupper): Ditto.
393 (*sibcall_value_rex64_ms_sysv): Ditto.
394 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
395 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
396 constraint for operand 1.
397 (*sibcall_value_pop_vzeroupper): Ditto.
398 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
399 and "z" constraint for operand 2.
400 (*tls_global_dynamic_32_gnu): Ditto.
401 (*tls_local_dynamic_base_32_gnu): Ditto.
402 (*tls_local_dynamic_base_64): Ditto.
403 (*tls_local_dynamic_32_once): Ditto.
404 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
406 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
408 2011-05-16 Richard Guenther <rguenther@suse.de>
410 * gimple.c (gimple_types_compatible_p_1): Use names of the
411 type itself, not its main variant.
412 (iterative_hash_gimple_type): Likewise.
414 2011-05-16 Richard Guenther <rguenther@suse.de>
416 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
417 always visit pointer target and function result and argument types.
419 2011-05-16 Jason Merrill <jason@redhat.com>
422 * tree-inline.c (copy_statement_list): Put back recursion.
424 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
428 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
429 * config/avr/avr.md ("*ior<mode>qi.byte0",
430 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
432 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
435 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
436 register is needed for a function argument.
438 2011-05-16 Richard Guenther <rguenther@suse.de>
440 * gimple.c (struct type_hash_pair): New type.
441 (type_hash_pair_compare): New function.
442 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
444 2011-05-16 Revital Eres <revital.eres@linaro.org>
446 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
448 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
450 * config/i386/i386.md (floating point move splitters): Fix
451 usage of standard_80387_constant_p.
452 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
454 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
456 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
458 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
460 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
461 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
462 (tree_ssa_lim_finalize): Likewise.
464 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
466 * config/i386/constraint.md (Yd, Yx): New register constraints.
467 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
468 Yd conditional register constraint.
469 (*movtf_internal): Use standard_sse_constant_opcode.
470 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
471 Yx conditional register constraint.
472 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
473 Yd conditional register constraint. Use standard_sse_constant_p to
474 check for valid SSE constants and call standard_sse_constant_opcode to
476 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
477 constants and call standard_sse_constant_opcode to output SSE insn.
478 * config/i386/i386.c (ix86_option_ovverride_internal): Set
479 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
480 optimize_size is set.
481 (standard_sse_constant_opcode): Output conditional AVX insn templates.
483 2011-05-14 Tobias Burnus <burnus@net-b.de>
485 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
487 2011-05-13 Martin Jambor <mjambor@suse.cz>
489 * ipa-prop.c (ipa_cst_from_jfunc): New function.
490 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
491 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
492 (evaluate_conditions_for_ipcp_clone): Removed.
493 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
494 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
495 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
497 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
499 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
500 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
501 lieu of MAY_HAVE_DEBUG_STMTS.
502 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
503 debug statements if !MAY_HAVE_DEBUG_STMTS.
505 2011-05-13 Martin Thuresson <martint@google.com>
507 PR gcov-profile/47793
508 * libgcov.c (gcov_exit): Support relative profile paths.
509 * doc/invoke.texi (-fprofile-dir): Update for above change.
511 2011-05-13 Richard Guenther <rguenther@suse.de>
513 * gimple.c (gimple_canonical_types_compatible_p): Do not use
514 type-pair caching, do not compare hashes.
516 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
519 * tree-cfg.c (edge_to_cases_cleanup): Return true.
520 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
522 2011-05-13 Kai Tietz <ktietz@redhat.com>
524 * gimplify.c (gimplify_expr): Make sure operand is boolified.
525 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
526 compatible type for TRUTH_NOT_EXPR.
528 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
530 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
531 (ix86_hard_regno_mode_ok): Change return value to bool. Use
532 can_create_pseudo_p ().
534 2011-05-13 Richard Guenther <rguenther@suse.de>
537 * gimple.c (iterative_hash_gimple_type): Revert change in
538 pointer target and function result and argument hashing.
540 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
542 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
543 (*movxf_internal_nointeger): Ditto.
544 (*movdf_internal_rex64): Ditto.
545 (*movdf_internal): Ditto.
546 (*movdf_internal_nointeger): Ditto.
547 (*movsf_internal): Ditto.
548 (sincos splitters): Use can_create_pseudo ().
550 2011-05-13 Joseph Myers <joseph@codesourcery.com>
552 * config/i386/i386-opts.h: New.
553 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
554 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
555 ix86_section_threshold): Remove.
556 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
557 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
559 (ix86_option_override_internal): Don't decode strings for options
560 other than -march=, -mtune= and -mfpmath=. Don't allow for
561 __attribute__ uses in remaining diagnostics for options with
562 string arguments. Don't check for integer arguments being negative.
563 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
564 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
565 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
566 ix86_branch_cost, ix86_section_threshold): Remove.
567 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
569 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
571 (masm=): Use Enum and Init.
572 (asm_dialect): New Enum and EnumValue entries.
573 (mbranch-cost=): Use UInteger.
574 (mlarge-data-threshold=): Use UInteger and Init.
575 (mcmodel=): Use Enum and Init.
576 (cmodel): New Enum and EnumValue entries.
577 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
578 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
579 mregparm=): Use UInteger.
580 (mstringop-strategy=): Use Enum and Init.
581 (stringop_alg): New Enum and EnumValue entries.
582 (mtls-dialect=): Use Enum and Init.
583 (tls_dialect): New Enum and EnumValue entries.
584 (mabi=): Use Enum and Init.
585 (calling_abi): New Enum and EnumValue entries.
586 (mveclibabi=): Use Enum and Init.
587 (ix86_veclibabi): New Enum and EnumValue entries.
589 2011-05-13 Nick Clifton <nickc@redhat.com>
591 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
592 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
594 2011-05-13 Kai Tietz <ktietz@redhat.com>
597 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
598 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
599 (gimple_boolify): Check for cast for boolean_type_node instead for
602 2011-05-13 Richard Guenther <rguenther@suse.de>
604 PR tree-optimization/48172
605 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
606 multiplying by number of iterations for equal step.
607 (vect_create_cond_for_alias_checks): Likewise.
609 2011-05-13 Andreas Schwab <schwab@redhat.com>
611 * configure.ac: Use AS_HELP_STRING throughout.
612 * configure: Regenerate.
614 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
616 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
617 (ix86_emit_restore_regs_using_mov): Likewise.
618 (ix86_emit_restore_sse_regs_using_mov): Likewise.
620 2011-05-12 Anatoly Sokolov <aesok@post.ru>
622 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
623 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
624 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
625 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
626 RTX_OK_FOR_OLO10_P): ...here.
627 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
630 2011-05-12 Kai Tietz <ktietz@redhat.com>
632 * gimplify.c (gimple_boolify): Re-boolify expression
633 arguments even if expression type is of kind BOOLEAN_TYPE.
634 (gimplify_boolean_expr): Removed.
635 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
636 and XOR. Additional take care that we keep expression's type.
637 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
638 of TRUTH_AND|OR|XOR_EXPR.
640 2011-05-12 Jakub Jelinek <jakub@redhat.com>
642 PR tree-optimization/48975
643 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
644 on all bbs here and free and clear ifc_bbs at the end.
646 2011-05-12 Richard Guenther <rguenther@suse.de>
648 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
649 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
650 until after simple checks.
651 (gimple_types_compatible_p): Likewise.
652 (iterative_hash_gimple_type): Always hash pointer targets
653 and function return and argument types.
654 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
655 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
656 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
657 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
658 completely in the simple compare section.
659 (gimple_register_canonical_type): Query the cache again after
662 2011-05-12 Richard Guenther <rguenther@suse.de>
664 PR tree-optimization/48172
665 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
666 the number of iterations from the segment size calculation.
667 (vect_create_cond_for_alias_checks): Adjust.
669 2011-05-12 Jakub Jelinek <jakub@redhat.com>
672 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
673 if validate_subreg fails.
675 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
677 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
678 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
681 2011-05-12 DJ Delorie <dj@redhat.com>
683 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
684 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
685 created builtin into rx_builtins array.
686 (rx_builtin_decl): New function.
687 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
689 2011-05-12 DJ Delorie <dj@redhat.com>
690 Nick Clifton <nickc@redhat.com>
692 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
693 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
694 (rx_is_legitimate_address): Add pre-decrement and post-increment
695 addressing in HImode and QImode. Fix test for out of range
697 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
698 (rx_align_for_label): Test label before extracting its usage count.
699 (rx_adjust_insn_lengths): Fix selection of insn codes.
700 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
702 2011-05-11 Jason Merrill <jason@redhat.com>
704 * tree.c (type_hash_canon): Use struct tree_type_non_common.
706 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
708 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
709 reindent the subsequent block.
711 2011-05-11 Satoru Takabayashi <satorux@google.com>
712 Paul Pluzhnikov <ppluzhnikov@google.com>
714 * doc/install.texi (Configuration): Document --with-linker-hash-style.
715 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
716 * config.in: Add LINKER_HASH_STYLE.
717 * configure.ac: Add --with-linker-hash-style.
718 * configure: Regenerate.
720 2011-05-11 Richard Guenther <rguenther@suse.de>
723 * gimple.c (iterative_hash_canonical_type): Fix typo.
725 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
727 * config/i386/i386.c (legitimize_tls_address)
728 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
729 expanders directly for TARGET_GNU2_TLS. Determine pic and
730 __tls_get_addr symbol reference here. Update call to
731 gen_tls_global_dynamic_{32,64} for added arguments.
732 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
733 expanders directly for TARGET_GNU2_TLS. Determine
734 __tls_get_addr symbol reference here. Update call to
735 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
736 unique UNSPEC REG_EQUIV to libcall block.
737 (ix86_tls_get_addr): Declare static.
738 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
739 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
740 Do not determine pic and __tls_get_addr symbol reference here. Do not
741 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
742 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
743 (tls_global_dynamic_64): Add operand 2. Do not determine
744 __tls_get_addr symbol reference here. Do not call
745 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
746 (tls_local_dynamic_base64): Ditto for operand 1.
748 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
750 * function.c (expand_function_start): Initialize stack_check_probe_note
751 only if the generic stack checking mechanism is used.
753 2011-05-11 Richard Guenther <rguenther@suse.de>
755 PR tree-optimization/15256
756 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
757 (A & B) | C, combine (A op CST1) op CST2.
758 (tree_ssa_forward_propagate_single_use_vars): Only bother to
759 visit assigns that have uses.
761 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
763 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
764 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
765 (unpack_ts_type_common_value_fields): ...this. Update comment.
766 (unpack_value_fields): Adjust for renaming.
767 (lto_input_ts_type_tree_pointers): Split into...
768 (lto_input_ts_type_common_tree_pointer): ...this and...
769 (lto_input_ts_type_non_common_tree_pointers): ...this.
770 (lto_input_tree_pointers): Adjust for above split.
771 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
772 (pack_ts_type_common_value_fields): ...this. Update comment.
773 (lto_output_ts_type_tree_pointers): Split into...
774 (lto_output_ts_type_common_tree_pointers): ...this and...
775 (lto_output_ts_type_non_common_tree_pointers): ...this.
776 (lto_output_tree_pointers): Adjust for above split.
777 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
778 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
779 * stor-layout.c (vector_type_mode): Adjust location of mode field.
780 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
782 (struct tree_type): Split into...
783 (struct tree_type_common: ...this and...
784 (struct tree_type_with_lang_specific): ...this and...
785 (struct tree_type_non_common): ...this. Adjust accessor macros
787 (TYPE_VALUES_RAW): Define.
788 (union tree_node): Update for above changes.
789 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
791 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
792 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
793 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
794 * treestructu.def (TS_TYPE): Remove.
795 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
798 2011-05-11 Jakub Jelinek <jakub@redhat.com>
801 * tree-ssa.c (reset_debug_uses): New function.
802 * tree-flow.h (reset_debug_uses): New prototype.
803 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
804 * tree-loop-distribution.c (generate_loops_for_partition): Call
805 reset_debug_uses on the stmts that will be removed. Keep around
806 all debug stmts, don't count them as bits in partition bitmap.
807 (generate_builtin): Don't count debug stmts or labels as bits in
810 2011-05-11 Richard Guenther <rguenther@suse.de>
812 * gimple.c (gimple_type_hash_1): Merge with ...
813 (gimple_type_hash): ... this.
814 (gtc_visit): Remove mode parameter and simplify accordingly.
815 (gimple_types_compatible_p_1): Likewise.
816 (gimple_types_compatible_p): Likewise.
817 (iterative_hash_gimple_type): Likewise.
819 (gimple_type_eq): Adjust.
821 2011-05-11 Revital Eres <revital.eres@linaro.org>
823 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
824 enters the branch create an anti edge in the opposite direction
825 to prevent the creation of reg-moves.
826 * modulo-sched.c: Adjust comment to reflect the fact we are
827 scheduling closing branch.
828 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
829 (stage_count): New field in struct partial_schedule.
830 (calculate_stage_count): New function.
831 (normalize_sched_times): Rename to reset_sched_times and handle
832 incrementing the sched time of the nodes by a constant value
834 (duplicate_insns_of_cycles): Skip closing branch.
835 (sms_schedule_by_order): Schedule closing branch.
836 (ps_insn_find_column): Handle closing branch.
837 (sms_schedule): Call reset_sched_times and adjust the code to
838 support scheduling of the closing branch.
839 (ps_insert_empty_row): Update calls to normalize_sched_times
840 and rotate_partial_schedule functions.
842 2011-05-11 Richard Guenther <rguenther@suse.de>
845 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
847 2011-05-11 Joseph Myers <joseph@codesourcery.com>
849 * opts.c (finish_options): Move warning settings from process_options.
850 * toplev.c (process_options): Move warning settings to finish_options.
852 2011-05-11 Richard Guenther <rguenther@suse.de>
854 PR tree-optimization/18041
855 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
856 (simplify_bitwise_binary): ... this. Handle operand conversions
857 by applying them to the result instead.
858 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
860 2011-05-11 Richard Guenther <rguenther@suse.de>
862 * gimple.c (gimple_canonical_types_compatible_p): Split out
863 from gimple_types_compatible_p and friends. Do not recurse
865 (gimple_canonical_type_eq): Use it.
866 (iterative_hash_canonical_type): Split out from
867 iterative_hash_gimple_type and friends. Do not recurse
869 (gimple_canonical_type_hash): Use it, allocate the hash here.
871 2011-05-11 Revital Eres <revital.eres@linaro.org>
873 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
876 2011-05-11 Revital Eres <revital.eres@linaro.org>
878 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
879 instead of PREV_INSN.
881 2011-05-11 Revital Eres <revital.eres@linaro.org>
883 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
884 * loop-doloop.c (doloop_condition_get): Likewise.
885 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
887 * config/arm/arm.md (*addsi3_compare0): Remove "*".
889 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
891 * tree.def (CASE_LABEL_EXPR): Add an operand.
892 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
894 2011-05-10 Joseph Myers <joseph@codesourcery.com>
896 * c-decl.c (c_override_global_bindings_to_false): Remove.
897 (global_bindings_p): Don't check
898 c_override_global_bindings_to_false.
899 * c-tree.h (c_override_global_bindings_to_false): Remove.
900 * c-typeck.c (composite_type): Don't set
901 c_override_global_bindings_to_false.
903 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
905 PR target/48857, 48495
906 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
908 (VSX_MOVE_MODE): Ditto.
909 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
910 VSX vector types. Add V2DImode.
911 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
912 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
913 (MODES_TIEABLE_P): Ditto.
915 * config/rs6000/rs6000.c (rs6000_emit_move): Use
916 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
918 (init_cumulative_args): Ditto.
919 (rs6000_function_arg_boundary): Ditto.
920 (rs6000_function_arg_advance_1): Ditto.
921 (rs6000_function_arg): Ditto.
922 (rs6000_function_ok_for_sibcall): Ditto.
923 (emit_frame_save): Ditto.
924 (rs6000_function_value): Ditto.
925 (rs6000_libcall_value): Ditto.
927 2011-05-10 Joseph Myers <joseph@codesourcery.com>
929 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
930 i386/darwin-lib.h to $libgcc_tm_file.
931 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
933 2011-05-10 Joseph Myers <joseph@codesourcery.com>
935 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
937 2011-05-10 Joseph Myers <joseph@codesourcery.com>
939 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
940 * config/rs6000/rs6000-tables.opt: New file (generated).
941 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
942 rs6000/rs6000-tables.opt to extra_options.
943 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
944 * config/rs6000/rs6000.c (rs6000_select): Remove.
945 (processor_target_table): Move contents to rs6000-cpus.def.
946 (darwin_rs6000_override_options): Check
947 global_options_set.x_rs6000_cpu_index instead of
948 rs6000_select[1].string.
949 (rs6000_option_override_internal): Likewise.
950 (rs6000_handle_option): Don't assert that global structures are in
951 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
952 (rs6000_default_cpu): New variable.
953 (rs6000_file_start): Set it instead of local default_cpu. Check
954 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
955 global_options_set.x_rs6000_tune_index instead of rs6000_select.
956 (rs6000_darwin_file_start): Check rs6000_default_cpu and
957 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
958 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
959 rs6000_select): Remove.
960 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
962 (mcpu=, mtune=): Use Var, Init, Enum and Save.
963 * config/rs6000/t-rs6000
964 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
965 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
966 global_options_set.x_rs6000_cpu_index instead of
967 rs6000_select[1].string.
968 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
969 global_options_set.x_rs6000_cpu_index instead of
970 rs6000_select[1].string.
972 2011-05-10 Joseph Myers <joseph@codesourcery.com>
974 * config.gcc (libgcc_tm_file): Define instead of including files
975 from ../../libgcc/config/ in tm_file.
976 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
977 * configure: Regenerate.
978 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
979 libgcc_tm.h, cs-libgcc_tm.h): New.
980 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
981 (clean): Remove libgcc_tm.h.
982 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
983 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
984 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
986 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
989 * config/avr/avr.c (avr_ret_register): Return unsigned int
991 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
992 it to avr_libcall_value.
993 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
995 (avr_expand_binop_builtin): Ditto.
996 (avr_expand_unop_builtin): Ditto.
998 2011-05-10 DJ Delorie <dj@redhat.com>
1000 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1001 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1002 * config/rx/rx.c (rx_align_for_label): Add label and
1003 uses_threshold parameters. Do not align when the label is not
1005 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1007 2011-05-10 Richard Guenther <rguenther@suse.de>
1009 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1010 a series of conversions and apply foldings similar to what
1012 (tree_ssa_forward_propagate_single_use_vars): Call it.
1014 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1016 PR tree-optimization/48611
1017 PR tree-optimization/48794
1018 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1019 referenced from RESX or EH_DISPATCH arguments.
1022 * dfp.c (decimal_to_decnumber): Handle conversion from
1023 dconst{1,2,m1,half}.
1025 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1027 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1028 for !flag_prefer_avx128.
1029 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1031 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1033 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1034 (fold_ternary_loc): Use expr_location_or.
1036 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1039 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1040 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1041 Pmode and mem_mode is not VOIDmode.
1043 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1045 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1046 TYPE_QUAL_RESTRICT): Convert to enum.
1048 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1051 (const_pow2_1_to_8_operand): Ditto.
1052 (const_pow2_1_to_128_operand): Ditto.
1053 (const_pow2_1_to_32768_operand): Ditto.
1054 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1055 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1056 in insn constraint to check integer value of operand 3.
1057 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1059 (PINSR_MODE): New mode iterator.
1060 (sse2p4_1): New mode attribute.
1061 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1062 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1063 iterator. Use const_int_operand instead of
1064 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1065 exact_log2 in insn constraint to check integer value of operand 3.
1067 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1069 * config/i386/sse.md (blendbits): Remove mode attribute.
1070 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1071 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1072 Check integer value of operand 3 in insn constraint.
1074 2011-05-09 Richard Guenther <rguenther@suse.de>
1076 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1078 (lto_symtab_merge): Likewise. Do not register types here.
1079 (lto_symtab_merge_decls_2): Likewise.
1080 (lto_symtab_merge_decls_1): Likewise.
1081 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1082 * gimple.c (enum gtc_mode): Declare.
1083 (gimple_types_compatible_p): Make static.
1085 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1087 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1088 temporary register to match Pmode.
1090 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1092 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1093 and *vec_concatv4si_1_avx.
1095 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1097 PR rtl-optimization/48927
1098 * ira-conflicts.c (commutative_constraint_p): Use
1099 recog_data.alternative_enabled_p to disable alternatives where
1100 "enabled" attribute is false.
1101 (get_dup_num): Ditto.
1102 * ira-lives.c (single_reg_class): Ditto.
1103 (ira_implicitly_set_insn_hard_regs): Ditto.
1105 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1107 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1108 (dataflow_set_preserve_mem_locs): Likewise.
1110 2011-05-09 Philipp Thomas <pth@suse.de>
1112 * config/mep/mep.c (mep_validate_vliw): Syntax description
1113 should not be translated.
1115 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1117 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1118 * config/mips/mips-tables.opt: New file (generated).
1119 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1120 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1121 MIPS_ARCH_OPTION_NATIVE): Define.
1122 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1124 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1125 mips_parse_cpu): Remove.
1126 (mips_cpu_info_from_opt, mips_default_arch): New.
1127 (mips_handle_option): Don't assert that global structures are in
1128 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1129 (mips_option_override): Use new variables and functions to set
1130 state of these options. Use strcmp to check for individual CPU names.
1131 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1133 * config/mips/mips.opt (march=): Use ToLower and Enum.
1134 (mips): Use ToLower, Enum and Var.
1135 (mtune=): Use ToLower and Enum.
1136 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1138 2011-05-08 Jan Hubicka <jh@suse.cz>
1140 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1141 Arrange type pairs to be UID ordered.
1142 (gimple_lookup_type_leader): Make inline.
1144 2011-05-09 Nick Clifton <nickc@redhat.com>
1147 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1151 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1154 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1156 * combine.c (simplify_comparison): Abstract out parts into...
1157 (simplify_compare_const): ... new function.
1158 (try_combine): Generalize parallel arithmetic/compare combining
1159 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1161 2011-05-08 Jan Hubicka <jh@suse.cz>
1163 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1164 (cgraph_create_virtual_clone): Call hooks once virtual clone
1166 * cgraph.h (cgraph_clone_node): Update prototype.
1167 * ipa-cp.c (ipcp_estimate_growth): Use
1168 estimate_ipcp_clone_size_and_time.
1169 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1170 * lto-cgraph.c (input_node): Update.
1171 * ipa-inline.c (recursive_inlining): Update.
1172 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1173 (evaluate_conditions_for_known_args): Break out from ...
1174 (evaluate_conditions_for_edge): ... here.
1175 (evaluate_conditions_for_ipcp_clone): New function.
1176 (inline_node_duplication_hook): Update clone summary based
1178 (estimate_callee_size_and_time): Rename to ...
1179 (estimate_node_size_and_time): take NODE instead of EDGE;
1180 take POSSIBLE_TRUTHS as argument.
1181 (estimate_callee_size_and_time): Update.
1182 (estimate_ipcp_clone_size_and_time): New function.
1183 (do_estimate_edge_time): Update.
1185 2011-05-08 Richard Guenther <rguenther@suse.de>
1189 * expmed.c (expand_shift_1): Compute adjusted constant shift
1192 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1194 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1196 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1198 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1200 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1202 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1204 2011-05-07 Jan Hubicka <jh@suse.cz>
1206 * ipa-inline-transform.c (inline_call): Account when program size
1208 * ipa-inline.c (relative_time_benefit): New function.
1209 (edge_badness): Reorganize to be power 2 based; fix thinko when
1210 computing badness for negative growth; update comments to match
1211 reality; better dumps.
1213 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1215 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1216 type to bool and adjust comment.
1217 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1218 (fold_mathfn_compare): Remove calls to global_bindings_p.
1219 (fold_inf_compare): Likewise.
1220 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1221 * c-tree.h (global_bindings_p): Adjust prototype.
1222 * c-decl.c (global_bindings_p): Return bool and simplify.
1224 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1226 PR tree-optimization/48837
1227 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1228 when accumulator transformation is performed.
1230 2011-05-06 Jan Hubicka <jh@suse.cz>
1232 * i386.h (ix86_tune_indices): Add
1233 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1234 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1235 * i386.c (initial_ix86_tune_features): Add
1236 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1237 (software_prefetching_beneficial_p): Remove predicate.
1238 (ix86_option_override_internal): Use new macro.
1240 2011-05-06 Jan Hubicka <jh@suse.cz>
1242 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1244 2011-05-06 Jan Hubicka <jh@suse.cz>
1246 * cgraph.c (cgraph_add_thunk): Create real function node instead
1247 of alias node; finalize it and mark needed/reachale; arrange visibility
1248 to be right and add it into the corresponding same comdat group list.
1249 (dump_cgraph_node): Dump thunks.
1250 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1251 cgraph_function_with_gimple_body_p,
1252 cgraph_first_function_with_gimple_body,
1253 cgraph_next_function_with_gimple_body): New functions.
1254 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1256 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1257 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1258 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1259 devirtualization when optimizing.
1260 (verify_cgraph_node): Verify thunks.
1261 (cgraph_analyze_function): Analyze thunks.
1262 (cgraph_mark_functions_to_output): Output thunks only in combination
1263 with function they are assigned to.
1264 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1265 alias into normal node.
1266 (assemble_thunks): New functoin.
1267 (cgraph_expand_function): Use it.
1268 * lto-cgraph.c (lto_output_node): Stream thunks.
1269 (input_overwrite_node): Stream in thunks.
1270 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1271 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1272 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1273 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1274 (inline_analyze_function): Do not care about thunk jump functions.
1275 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1276 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1277 cgraph_function_with_gimple_body_p.
1278 * passes.c (do_per_function_toporder): Use
1279 cgraph_function_with_gimple_body_p.
1280 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1281 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1282 (function_called_by_processed_nodes_p): Likewise.
1284 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1286 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1287 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1289 (mabi=): Replace with separate entries for mabi=altivec,
1290 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1291 mabi=ieeelongdouble and mabi=ibmlongdouble.
1292 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1293 check for -mabi=spe without SPE ABI support here.
1294 (rs6000_handle_option): Replace OPT_mabi_ handling with
1295 OPT_mabi_altivec and OPT_mabi_spe handling.
1297 2011-05-06 Cary Coutant <ccoutant@google.com>
1299 * dwarf2out.c (contains_subprogram_definition): New function.
1300 (should_move_die_to_comdat): Call it.
1302 2011-05-06 Jeff Law <law@redhat.com>
1304 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1305 remove_ctrl_stmt_and_useless_edges.
1306 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1307 (fixup_template_block, thread_single_edge): Likewise.
1308 (mark_threaded_blocks): Use THREAD_TARGET.
1310 2011-05-06 Alan Modra <amodra@gmail.com>
1313 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1314 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1316 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1318 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1319 constraint modifier to "r".
1321 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1323 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1324 fall through for OPT_mcmodel_.
1326 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1328 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1330 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1332 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1335 * config/arm/arm.opt (marm): Document it.
1336 (mthumb): Reject negative variant.
1338 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1341 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1342 Fix typo in "ccvt" variable name.
1344 2011-05-06 Tristan Gingold <gingold@adacore.com>
1347 * config/vms/vms-ar.c (main): Remove cwd variable.
1349 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1352 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1354 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1356 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1357 * gimplify.c (gimplify_switch_expr): Likewise.
1358 * omp-low.c (expand_omp_sections): Likewise.
1359 * tree-eh.c (lower_try_finally_switch): Likewise.
1360 (lower_eh_dispatch): Likewise.
1361 * tree.h (build_case_label): Declare.
1362 * tree.c (build_case_label): Define.
1364 2011-05-05 Jason Merrill <jason@redhat.com>
1367 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1368 (copy_statement_list): Don't recurse.
1369 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1372 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1374 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1375 through from -mfpu= handling.
1376 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1378 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1380 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1383 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1385 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1387 (hppa[12]*-*-hpux11*): Ditto.
1388 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1389 * config/ia64/hpux-unix2003.h: New.
1390 * config/pa/pa-hpux1131.opt: New.
1391 * config/pa/pa-hpux1131.h: New.
1392 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1393 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1394 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1396 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1399 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1400 instead of mode as 3rd argument to recursive call.
1401 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1402 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1404 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1405 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1406 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1407 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1409 2011-05-05 Julian Brown <julian@codesourcery.com>
1411 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1412 parenthesis in D-register case.
1414 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1416 * opt-functions.awk (var_type_struct): Handle Enum options.
1417 * optc-gen.awk: Don't check range of variables of character type.
1418 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1419 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1420 rs6000_sdata_name, rs6000_explicit_options): Remove.
1421 (rs6000_option_override_internal): Check for -malign-power here.
1422 Use global_options_set instead of rs6000_explicit_options.
1423 (rs6000_parse_fpu_option): Remove.
1424 (rs6000_handle_option): Access variables via opts and opts_set
1425 pointers. Use error_at and warning_at. Add fall-through
1426 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1427 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1428 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1429 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1430 here. Don't use rs6000_parse_fpu_option.
1431 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1432 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1433 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1435 (mspe): Use Var and Save.
1436 (mtraceback=): Use Enum and Var.
1437 (rs6000_traceback_type): New Enum and EnumValue entries.
1438 (mfloat-gprs=): Use Enum, Var and Save.
1439 (rs6000_float_gprs): New Enum and EnumValue entries.
1440 (mlong-double-): use Var and Save.
1441 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1442 (malign-): Use Enum and Var.
1443 (rs6000_alignment_flags): New Enum and EnumValue entries.
1445 (fpu_type_t): New Enum and EnumValue entries.
1446 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1447 global_options_set instead of rs6000_explicit_options.
1448 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1449 global_options_set instead of rs6000_explicit_options.
1450 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1451 global_options_set instead of rs6000_explicit_options.
1452 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1453 global_options_set instead of rs6000_explicit_options.
1454 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1455 global_options_set instead of rs6000_explicit_options.
1456 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1457 global_options_set instead of rs6000_explicit_options.
1458 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1460 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1461 global_options_set instead of rs6000_explicit_options.
1462 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1463 (rs6000_cmodel): New Enum and EnumValue entries.
1464 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1465 global_options_set instead of rs6000_explicit_options.
1466 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1467 (mtls-size=): Use Enum and Var.
1468 (rs6000_tls_size): New Enum and EnumValue entries.
1470 2011-05-05 Michael Matz <matz@suse.de>
1472 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1473 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1474 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1475 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1476 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1477 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1478 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1479 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1480 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1481 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1482 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1483 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1484 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1485 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1486 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1487 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1489 2011-05-05 Richard Guenther <rguenther@suse.de>
1491 * expmed.c (expand_variable_shift): Rename to ...
1492 (expand_shift_1): ... this. Take an expanded shift amount.
1493 For rotates recurse directly not building trees for the shift amount.
1494 (expand_variable_shift): Wrap around expand_shift_1.
1495 (expand_shift): Adjust.
1497 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1499 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1501 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1503 * tree.h (get_pending_sizes): Remove prototype.
1504 (put_pending_size): Likewise.
1505 (put_pending_sizes): Likewise.
1506 * stor-layout.c (pending_sizes): Delete.
1507 (get_pending_sizes): Likewise.
1508 (put_pending_size): Likewise.
1509 (put_pending_sizes): Likewise.
1510 (variable_size): Do not call put_pending_size and tidy up.
1511 * function.h (struct function): Remove dont_save_pending_sizes_p.
1512 * lto-streamer-in.c (input_function): Do not stream it.
1513 * lto-streamer-out.c (output_function): Likewise.
1514 * tree-inline.c (initialize_cfun): Do not copy it.
1515 * c-decl.c (store_parm_decls): Do not set it.
1516 * omp-low.c (create_task_copyfn): Likewise.
1517 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1519 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1521 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1523 (*movdf_internal): Ditto.
1524 (*movdf_internal_nointeger): Ditto.
1525 (*movsf_internal): Ditto.
1527 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1529 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1530 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1531 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1532 (c_variable_size): Remove.
1533 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1534 call put_pending_sizes.
1535 (get_parm_info): Add parameter expr. Use it to set
1536 arg_info->pending_sizes.
1537 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1539 * c-parser.c (c_parser_parms_declarator): Update call to
1540 c_parser_parms_list_declarator.
1541 (c_parser_parms_list_declarator): Take parameter expr. Update
1542 call to push_parm_decl. Update recursive call. Don't call
1543 get_pending_sizes. Update calls to get_parm_info.
1544 (c_parser_objc_method_definition): Update calls to
1545 c_parser_objc_method_decl and objc_start_method_definition.
1546 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1547 (c_parser_objc_method_decl): Add parameter expr. Update call to
1549 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1550 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1551 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1553 2011-05-05 Michael Hope <michael.hope@linaro.org>
1556 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1559 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1561 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1562 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1563 (spu_output_mi_thunk): New function.
1565 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1567 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1568 targetm.asm_out.print_operand.
1569 * config/sol2.c: Include target.h.
1571 2011-05-04 Jan Hubicka <jh@suse.cz>
1573 * ipa-inline.c (reset_edge_caches): New function.
1574 (update_caller_keys): Add check_inlinablity_for; do not
1575 reset edge caches; remove now unnecesary loop.
1576 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1577 (update_all_callee_keys): Likewise.
1578 (inline_small_functions): Sanity check cache; update code
1581 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1583 PR rtl-optimization/47612
1584 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1585 as the last insn of the sequence to be moved.
1587 2011-05-04 Tobias Burnus <burnus@net-b.de>
1590 * doc/invoke.texi (Ofast): Document that it
1591 enables Fortran's -fno-protect-parens.
1593 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1595 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1597 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1599 * stor-layout.c (variable_size): Do not issue errors.
1601 2011-05-04 Richard Guenther <rguenther@suse.de>
1603 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1604 for array-ref indices.
1605 (tree_coverage_counter_addr): Likewise.
1606 (build_fn_info_type): Use size_int for index types.
1607 (build_gcov_info): Likewise.
1609 2011-05-04 Richard Guenther <rguenther@suse.de>
1611 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1613 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1614 for constructor indices.
1615 (push_init_level): Likewise.
1617 2011-05-04 Richard Guenther <rguenther@suse.de>
1619 * explow.c (promote_mode): Move variable declarations before code.
1621 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1623 * tree.h (build_function_type_array): Declare.
1624 (build_varargs_function_type_array): Declare.
1625 (build_function_type_vec, build_varargs_function_type_vec): Define.
1626 * tree.c (build_function_type_array_1): New function.
1627 (build_function_type_array): New function.
1628 (build_varargs_function_type_array): New function.
1630 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1632 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1633 before setting STMT_VINFO_TYPE.
1635 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1637 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1638 instead of spu_pass_by_reference.
1640 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1642 * calls.c (emit_library_call_value_1): Invoke
1643 promote_function_mode hook on libcall arguments.
1644 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1645 argument being NULL.
1646 * targhooks.c (default_promote_function_mode): Lisewise.
1647 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1648 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1650 * doc/tm.texi: Document that TYPE argument might be NULL.
1652 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1654 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1656 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1659 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1661 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1663 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1664 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1666 * mips-tfile.c: ... here.
1667 Don't include coretypes.h, tm.h, filenames.h.
1668 (saber_stop): Remove definition and all calls.
1669 [__SABER__]: Remove.
1670 (__LINE__): Remove default.
1671 (Size_t, Ptrdiff_t): Remove definitions.
1672 Replace by size_t, ptrdiff_t.
1673 [!MIPS_DEBUGGING_INFO]: Remove.
1674 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1675 (progname): Add const.
1677 Replace all uses by static.
1678 (ALIGN_SYMTABLE_OFFSET): Remove default.
1679 * mips-tdump.c: Don't include coretypes.h, tm.h.
1680 Remove !MIPS_IS_STAB guard.
1681 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1682 $(TM_H), filenames.h dependencies.
1683 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1685 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1688 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1689 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1691 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1694 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1695 account and save/restore RETS.
1696 (PROFILE_BEFORE_PROLOGUE): Define.
1697 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1698 the push insn to use predecrement.
1700 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1703 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1705 2011-05-04 Nick Clifton <nickc@redhat.com>
1707 * config/mn10300/mn10300.c: Include cfgloop.h.
1709 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1710 Lcc or a FLcc insn into the instruction stream.
1711 (mn10300_block_contains_call): New function. Returns true if the
1712 given basic block contains a CALL insn.
1713 (mn10300_loop_contains_call_insn): New function. Returns true if
1714 the given loop contains a CALL insn.
1715 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1716 to use the SETLB and Lcc or FLcc insns.
1717 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1718 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1719 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1720 disable the SETLB optimization.
1721 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1722 __SETLB__ or __NO_SETLB__.
1723 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1724 (movsf_internal): Handle MDR register.
1725 (cmpsi): Make visible.
1726 (setlb): New pattern.
1728 (FLcc): New pattern.
1730 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1733 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1734 for reg<->xmm moves.
1735 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1736 (vec_concatv2di_rex64_sse): Ditto.
1737 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1738 (*vec_extractv2di_1_rex64): Ditto.
1741 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1743 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1745 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1747 2011-05-04 Richard Guenther <rguenther@suse.de>
1749 * tree.h (int_const_binop): Remove notrunc argument.
1750 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1751 create integer constants that are properly truncated.
1752 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1753 (const_binop): Remove zero notrunc argument to int_const_binop.
1754 (size_binop_loc): Likewise.
1755 (fold_div_compare): Likewise.
1756 (maybe_canonicalize_comparison_1): Likewise.
1757 (fold_comparison): Likewise.
1758 (fold_binary_loc): Likewise.
1759 (multiple_of_p): Likewise.
1760 * expr.c (store_constructor): Likewise.
1761 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1762 (maybe_fold_stmt_addition): Likewise.
1763 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1764 * stor-layout.c (layout_type): Likewise.
1765 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1766 * tree-sra.c (build_ref_for_offset): Likewise.
1767 (build_user_friendly_ref_for_offset): Likewise.
1768 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1769 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1770 * tree-ssa-loop-niter.c (inverse): Likewise.
1771 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1772 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1773 * tree-switch-conversion.c (check_range): Likewise.
1774 (build_constructors): Likewise.
1775 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1776 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1777 (extract_range_from_assert): Likewise.
1778 (vrp_int_const_binop): Likewise.
1779 (extract_range_from_binary_expr): Likewise.
1780 (extract_range_from_unary_expr): Likewise.
1781 (check_array_ref): Likewise.
1782 (find_case_label_range): Likewise.
1783 (simplify_div_or_mod_using_ranges): Likewise.
1784 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1785 comparing case labels for merging.
1787 2011-05-03 Mark Wielaard <mjw@redhat.com>
1789 * dwarf2out.c (debug_str_hash_forced): Removed.
1790 (gen_label_for_indirect_string): Removed.
1791 (get_debug_string_label): Removed.
1792 (AT_string_form): Generate label directly.
1793 (output_indirect_string): Test indirect_string_node for
1794 DW_FORM_strp instead of checking label and refcount.
1795 (prune_indirect_string): Removed.
1796 (prune_unused_types): Don't check debug_str_hash_forced or
1797 call prune_indirect_string.
1799 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1802 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1804 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1808 * combine.c (try_combine): Skip debug insns at m_split tests.
1810 2011-04-26 Mark Wielaard <mjw@redhat.com>
1813 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1814 when info_section_emitted.
1816 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1818 * config/mips/mips-opts.h: New.
1819 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1821 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1822 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1823 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1825 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1827 (mips_abi, mips_code_readable): Don't declare.
1828 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1829 (mabi=): Use Enum and Var.
1830 (mips_abi): New Enum and EnumValue entries.
1831 (mcode-readable=): Use Enum and Var.
1832 (mips_code_readable_setting): New Enum and EnumValue entries.
1833 (mr10k-cache-barrier=): Use Enum and Var.
1834 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1836 2011-05-03 Jan Hubicka <jh@suse.cz>
1838 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1839 replace hash by pointer map.
1840 (cgraph_node_set_element_def, cgraph_node_set_element,
1841 const_cgraph_node_set_element, varpool_node_set_element_def,
1842 varpool_node_set_element, const_varpool_node_set_element): Remove.
1843 (free_cgraph_node_set, free_varpool_node_set): New function.
1844 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1845 * tree-emutls.c: Free varpool node set.
1846 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1847 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1848 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1849 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1850 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1851 Move here from ipa.c; implement using pointer_map
1852 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1853 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1854 debug_cgraph_node_set, varpool_node_set_new,
1855 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1856 dump_varpool_node_set, debug_varpool_node_set):
1857 Move to ipa-uitls.c.
1858 * passes.c (ipa_write_summaries): Update.
1860 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1862 From Mike Frysinger:
1863 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1864 bf542/bf544/bf547/bf548/bf549.
1866 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1868 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1870 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1873 * config/bfin/bfin.md (MOVCC): New mode_macro.
1874 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1875 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1876 comments from generated assembly.
1878 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1881 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1882 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1883 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1884 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1885 * config/bfin/lib1funcs.asm (___muldi3): New function.
1887 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1889 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1890 build_function_type_list instead of build_function_type.
1891 Rearrange initialization of `args' to do so.
1893 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1895 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1896 instead of build_function_type.
1898 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1900 * config/rs6000/rs6000.c (spe_init_builtins): Call
1901 build_function_type_list instead of build_function_type.
1902 (paired_init_builtins, altivec_init_builtins): Likewise.
1903 (builtin_function_type): Likewise.
1905 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1907 * config/sh/sh.c (sh_media_init_builtins): Call
1908 build_function_type_list instead of build_function_type.
1910 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1912 * config/sparc/sparc.c (sparc_file_end): Call
1913 build_function_type_list instead of build_function_type.
1915 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1917 * config/alpha/alpha.c (alpha_init_builtins): Call
1918 build_function_type_list instead of build_function_type.
1920 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1922 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1923 build_function_type_list instead of build_function_type.
1925 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1927 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1928 build_function_type_list instead of build_function_type.
1929 Delete `endlink' variable.
1931 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1933 * config/avr/avr.c (avr_init_builtins): Call
1934 build_function_type_list instead of build_function_type.
1936 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1938 * config/picochip/picochip.c (picochip_init_builtins): Call
1939 build_function_type_list instead of build_function_type.
1940 Delete `endlink' variable.
1942 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1944 * config/bfin/bfin.c (bfin_init_builtins): Call
1945 build_function_type_list instead of build_function_type.
1947 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1950 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1951 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1953 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1956 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1957 libbffastfp overrides libgcc when -mfast-fp.
1959 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1961 Originally from Bernd Schmidt
1962 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1963 * config/bfin/bfin.c (override_options): Test it and error if
1966 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1968 Originally From Bernd Schmidt
1969 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1972 2011-05-03 Jeff Law <law@redhat.com>
1974 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1975 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1976 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1977 than accessing AUX field directly. Free the AUX field before
1979 (thread_block, thread_through_loop_header): Likewise.
1980 (thread_single_edge, mark_threaded_blocks): Likewise.
1981 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1982 (register_jump_thread): Do not attempt to thread to a NULL edge.
1984 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1986 * function.c (init_function_start): Call decide_function_section.
1987 * varasm.c (decide_function_section): New function.
1988 (assemble_start_function): When not using
1989 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1990 or first_function_block_is_cold.
1991 * rtl.h (decide_function_section): Declare.
1993 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1994 Jakub Jelinek <jakub@redhat.com>
1997 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1998 only succeed if req_mode is the same as set_mode.
2000 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2002 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2003 * genemit.c (gen_exp): Handle RETURN.
2004 * emit-rtl.c (verify_rtx_sharing): Likewise.
2005 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2006 * rtl.c (copy_rtx): RETURN is shared.
2007 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2009 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2010 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2011 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2012 * config/cris/cris.c (cris_expand_return): Likewise.
2013 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2014 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2015 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2016 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2017 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2019 * config/v850/v850.c (expand_epilogue): Likewise.
2020 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2021 * config/arm/arm.md (epilogue): Likewise.
2022 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2023 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2024 variable to ret_reg.
2026 2011-05-03 Richard Guenther <rguenther@suse.de>
2029 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2030 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2031 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2033 2011-05-03 Richard Guenther <rguenther@suse.de>
2035 * c-decl.c (grokdeclarator): Instead of looking at
2036 TREE_OVERFLOW check if the constant fits in the index type.
2038 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2040 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2041 (vec_store_lanes<mode><mode>): Likewise.
2043 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2045 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2046 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2047 convert_optab_index values.
2048 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2049 * genopinit.c (optabs): Initialize the new optabs.
2050 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2051 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2052 (expand_STORE_LANES): New functions.
2053 * tree.h (build_array_type_nelts): Declare.
2054 * tree.c (build_array_type_nelts): New function.
2055 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2056 (vect_model_load_cost): Likewise.
2057 (vect_store_lanes_supported, vect_load_lanes_supported)
2058 (vect_record_strided_load_vectors): Declare.
2059 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2060 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2061 (vect_transform_strided_load): Split out statement recording into...
2062 (vect_record_strided_load_vectors): ...this new function.
2063 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2064 (write_vector_array, create_array_ref): New functions.
2065 (vect_model_store_cost): Add store_lanes_p argument.
2066 (vect_model_load_cost): Add load_lanes_p argument.
2067 (vectorizable_store): Try to use store-lanes functions for
2069 (vectorizable_load): Likewise load-lanes and loads.
2070 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2071 to vect_model_store_cost.
2072 (vect_build_slp_tree): Likewise vect_model_load_cost.
2074 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2076 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2077 * hooks.c (hook_bool_mode_uhwi_false): New function.
2078 * target.def (array_mode_supported_p): New hook.
2079 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2080 * doc/tm.texi: Regenerate.
2081 * stor-layout.c (mode_for_array): New function.
2082 (layout_type): Use it.
2083 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2084 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2086 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2089 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2090 for -fstack-check if the size to allocate is negative.
2092 2011-05-02 Lawrence Crowl <crowl@google.com>
2094 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2095 (timevar_cond_start): New for starting a timer only when it is not
2097 (timevar_cond_stop): New for stopping a timer when it was not already
2100 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2101 (timevar_cond_start): New as above.
2102 (timevar_cond_stop): New as above.
2104 * timevar.def: Add start/stop timers for compiler phases,
2105 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2106 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2107 and TV_PHASE_FINALIZE.
2108 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2109 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2110 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2111 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2112 Make unused TV_OVERLOAD into a start/stop timer.
2114 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2115 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2116 to indicate that they are start/stop timers.
2118 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2119 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2120 Move initialization to do_compile.
2121 (do_compile): Add initialization from above.
2122 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2124 * c-decl.c (c_write_global_declarations): Add start/stop of
2125 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2127 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2128 or TV_PARSE_INLINE, as appropriate.
2129 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2130 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2132 2011-05-02 Jason Merrill <jason@redhat.com>
2135 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2137 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2140 * c-decl.c (finish_decl): Only create a composite if the types are
2143 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2145 * config/fr30/fr30-protos.h (Mmode): Don't define.
2146 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2147 definition where used.
2148 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2149 define. Expand definitions where used.
2150 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2151 Expand definitions where used.
2152 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2153 rx_function_arg, rx_function_arg_advance,
2154 rx_function_arg_boundary): Expand definitions of those macros.
2155 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2156 definition where used.
2158 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2160 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2162 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2163 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2164 with *movv2sf_internal_rex64_avx.
2165 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2166 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2167 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2168 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2169 "vex" in "prefix" attribute calculation.
2170 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2172 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2175 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2176 inputs match the output.
2178 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2181 * config/m68k/m68k.c (m68k_expand_prologue): Set
2182 current_function_static_stack_size.
2184 2011-05-02 Jan Hubicka <jh@suse.cz>
2186 * lto-streamer.c (lto_streamer_cache_insert_1,
2187 lto_streamer_cache_lookup, lto_streamer_cache_create,
2188 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2189 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2191 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2193 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2194 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2195 config/m68k/t-opts: New files.
2196 * config/m68k/m68k-tables.opt: New file (generated).
2197 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2198 extra_options and m68k/t-opts to tmake_file.
2199 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2200 (all_isas): Initialize using m68k-isas.def.
2201 (all_microarchs): Initialize using m68k-microarchs.def.
2202 (m68k_find_selection): Remove.
2203 (m68k_handle_option): Don't assert that global structures are in
2204 use. Use error_at. Access variables via opts pointer. Don't
2205 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2206 directly for -m68020-40 and -m68020-60.
2207 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2208 m68k_tune_entry here.
2209 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2211 (m68k_library_id_string): Remove declaration.
2212 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2213 (m68k_library_id_string): New Variable.
2214 (march=, mcpu=, mtune=): Use Enum and Var.
2216 2011-05-02 Richard Guenther <rguenther@suse.de>
2218 * varasm.c (output_constructor_regular_field): Compute zero-based
2219 index with double-ints. Make sure to ICE instead of producing
2221 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2222 in asserts. Properly use a signed type.
2224 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2226 * config/i386/sse.md (V): New mode iterator.
2227 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2229 (V_256): Rename from AVX256MODE.
2230 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2231 condition to all users.
2233 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2234 condition to all users.
2235 (VF_128): Make V4SF mode unconditional.
2236 (VF_256): Rename from AVX256MODEF2P.
2237 (VI4F_128): Rename from SSEMODE4S.
2238 (VI8F_128): Rename from SSEMODE2D.
2239 (VI4F_256): Rename from AVX256MODE8P.
2240 (VI8F_256): Rename from AVX256MODE4P.
2241 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2242 (ssescalarmodesuffix): Remove SF and DF modes.
2243 (SSEMODE124): Remove.
2244 (SSEMODE1248): Ditto.
2245 (SSEMODEF2P): Ditto.
2246 (AVXMODEF2P): Ditto.
2247 (AVXMODEFDP): Ditto.
2248 (AVXMODEFSP): Ditto.
2249 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2251 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2253 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2254 xop_pcmov_<mode>256. Use V mode iterator.
2256 Adjust RTX patterns globally for renamed mode attributes.
2258 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2260 * haifa-sched.c (sched_emit_insn): Emit insn before first
2261 non-scheduled insn. Inform back-end about new insn. Add
2262 new insn to scheduled_insns list.
2264 2011-05-02 Richard Guenther <rguenther@suse.de>
2266 PR tree-optimization/48822
2267 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2268 (process_scc): Indicate which iteration we start.
2270 2011-05-02 Jan Hubicka <jh@suse.cz>
2272 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2273 (lto_section_overrun): New.
2274 * lto-section-out.c (append_block): Rename to ...
2275 (lto_append_block): ... this one; export.
2276 (lto_output_1_stream): Move lto lto-streamer.h
2277 (lto_output_data_stream): Update.
2278 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2279 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2282 2011-05-02 Richard Guenther <rguenther@suse.de>
2284 * tree.c (tree_code_counts): New global array.
2285 (record_node_allocation_statistics): Count individual tree codes.
2286 (dump_tree_statistics): Dump individual code stats.
2288 2011-05-01 Jan Hubicka <jh@suse.cz>
2290 * ipa-inline.c (caller_growth_limits): Fix thinko when
2291 looking for largest stack frame.
2292 * ipa-inline.h (dump_inline_summary): Declare.
2293 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2295 (dump_inline_summary): Export.
2296 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2298 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2300 * reginfo.c (memory_move_cost): Change rclass argument type form
2301 'enum reg_class' to reg_class_t.
2302 * reload.h (memory_move_cost): Update prototype.
2303 * postreload.c reload_cse_simplify_set): Change type dclass var to
2305 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2307 (ira_allocate_and_set_costs): Change aclass argument type form
2308 'enum reg_class' to reg_class_t.
2309 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2310 Change aclass argument type to reg_class_t.
2311 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2313 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2314 memory_move_cost call.
2316 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2317 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2318 Change type tmp var to reg_class_t.
2320 2011-04-30 Jan Hubicka <jh@suse.cz>
2322 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2323 inlining into function with flatten attribute.
2324 (want_inline_small_function_p): Be more realistic about inlining
2325 cold calls where callee size grows.
2327 2011-04-30 Jan Hubicka <jh@suse.cz>
2329 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2332 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2334 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2335 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2336 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2337 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2338 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2339 (print_operand): Rename to...
2340 (sparc_print_operand): ...this. Make static. Adjust
2341 sparc_print_operand function call.
2342 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2345 2011-04-30 Jan Hubicka <jh@suse.cz>
2348 * ipa-inline.c (early_inliner): Disable when doing late
2349 addition of function.
2351 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2353 * dwarf2out.c (get_address_mode): New inline.
2354 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2355 if not dwarf_strict emit
2356 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2357 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2358 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2359 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2360 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2361 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2362 mem_loc_descriptor callers.
2363 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2364 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2365 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2366 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2367 (base_types): New variable.
2368 (get_base_type_offset, calc_base_type_die_sizes,
2369 base_type_for_mode, mark_base_types, base_type_cmp,
2370 move_marked_base_types): New functions.
2371 (calc_die_sizes): Assert that die_offset is 0 or equal to
2373 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2374 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2375 callers. If not dwarf_strict, call mem_loc_descriptor even for
2376 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2377 (gen_subprogram_die): Don't give up on call site parameters
2378 with non-integral or large integral modes. Adjust
2379 mem_loc_descriptor callers.
2380 (prune_unused_types): Call prune_unused_types_mark on base_types
2382 (resolve_addr): Call mark_base_types.
2383 (dwarf2out_finish): Call move_marked_base_types.
2385 PR tree-optimization/48809
2386 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2388 (gen_inbound_check): Don't compute index_expr - range_min in utype
2389 again, instead reuse SSA_NAME initialized in build_arrays.
2390 Remove two useless gsi_for_stmt calls.
2392 2011-04-29 Jeff Law <law@redhat.com>
2394 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2396 2011-04-29 Martin Jambor <mjambor@suse.cz>
2398 * cgraph.h (cgraph_postorder): Remove declaration.
2399 * ipa-utils.h (ipa_free_postorder_info): Declare.
2400 (ipa_reverse_postorder): Likewise.
2401 * cgraphunit.c: Include ipa-utils.h.
2402 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2403 * ipa-inline.c: Include ipa-utils.h.
2404 (ipa_inline): Update call to ipa_reverse_postorder.
2405 * ipa-pure-const.c (propagate_pure_const): Update call to
2406 ipa_reduced_postorder and ipa_print_order. Call
2407 ipa_free_postorder_info to clean up.
2408 (propagate_nothrow): Likewise.
2409 * ipa-reference.c (propagate): Removed a useless call to
2410 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2411 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2412 * ipa.c: Include ipa-utils.h.
2413 (ipa_profile): Update call to ipa_reverse_postorder.
2414 (cgraph_postorder): Moved to...
2415 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2416 (ipa_utils_print_order): Renamed to ipa_print_order.
2417 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2419 (ipa_free_postorder_info): New function.
2420 * passes.c: Include ipa-utils.h.
2421 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2422 (ipa_write_summaries): Likewise.
2423 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2424 (cgraphunit.o): Likewise.
2426 (ipa-inline.o): Likewise.
2428 2011-04-29 Jan Hubicka <jh@suse.cz>
2430 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2431 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2432 * ipa-inline.h (clause_t): Turn into unsigned int.
2433 * ipa-inline-analysis.c (add_clause): Do more simplification.
2434 (and_predicates): Shortcut more cases.
2435 (predicates_equal_p): Move forward; check that clauses are properly
2437 (or_predicates): Shortcut more cases.
2438 (edge_execution_predicate): Rewrite as...
2439 (set_cond_stmt_execution_predicate): ... this function; handle
2440 __builtin_constant_p.
2441 (set_switch_stmt_execution_predicate): New .
2442 (compute_bb_predicates): New.
2443 (will_be_nonconstant_predicate): Update TODO.
2444 (estimate_function_body_sizes): Use compute_bb_predicates
2445 and free them later, always try to estimate if stmt is constant.
2446 (estimate_time_after_inlining, estimate_size_after_inlining):
2447 Gracefully handle optimized out edges.
2448 (read_predicate): Fix off by one error.
2450 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2452 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2454 2011-04-27 Xinliang David Li <davidxl@google.com>
2456 * tree-profile.c (init_ic_make_global_vars): Set
2457 tls attribute on ic vars.
2458 * coverage.c (coverage_end_function): Initialize
2459 function_list with zero.
2461 2011-04-29 Richard Guenther <rguenther@suse.de>
2463 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2464 for the type of the result.
2465 (fold_builtin_isascii): Likewise.
2466 (fold_builtin_toascii): Use integer_type_node where appropriate.
2467 (fold_builtin_logb): Likewise.
2468 (fold_builtin_frexp): Likewise.
2469 (fold_builtin_strstr): Likewise.
2470 (fold_builtin_strpbrk): Likewise.
2471 (fold_builtin_fputs): Likewise.
2472 (fold_builtin_sprintf): Likewise.
2473 (fold_builtin_snprintf): Likewise.
2474 (fold_builtin_printf): Likewise.
2475 (do_mpfr_remquo): Use a proper type for the assigned constant.
2476 (do_mpfr_lgamma_r): Likewise.
2477 * dwarf2out.c (resolve_one_addr): Use size_int.
2478 * except.c (init_eh): Likewise.
2479 (assign_filter_values): Use integer_type_node for filter values.
2480 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2482 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2483 for EH region numbers.
2484 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2485 for the shift amount.
2487 2011-04-29 Richard Guenther <rguenther@suse.de>
2489 * expr.h (expand_shift): Rename to ...
2490 (expand_variable_shift): ... this.
2491 (expand_shift): Take a constant shift amount.
2492 * expmed.c (expand_shift): Rename to ...
2493 (expand_variable_shift): ... this.
2494 (expand_shift): New wrapper around expand_variable_shift.
2495 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2496 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2497 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2498 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2499 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2500 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2501 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2502 emit_store_flag_1, emit_store_flag): Likewise.
2503 * builtins.c (expand_builtin_signbit): Likewise.
2504 * calls.c (load_register_parameters): Likewise.
2505 * function.c (assign_parm_setup_block): Likewise.
2506 * lower-subreg.c (resolve_shift_zext): Likewise.
2507 * optabs.c (widen_bswap, expand_abs_nojump,
2508 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2509 * spu/spu.c (spu_expand_extv): Likewise.
2510 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2512 2011-04-29 Richard Guenther <rguenther@suse.de>
2514 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2515 for the remapped region number.
2516 * predict.c (build_predict_expr): Use integer_type_node for the
2518 * fold-const.c (fold_binary_loc): Use integer_type_node for
2519 the shift amount. Use a proper type for the PLUS_EXPR operand.
2521 2011-04-29 Michael Matz <matz@suse.de>
2523 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2524 other trees that just builtins.
2525 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2527 2011-04-29 Richard Guenther <rguenther@suse.de>
2529 * tree-nested.c (get_trampoline_type): Use size_int.
2530 (get_nl_goto_field): Likewise.
2531 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2533 (lower_eh_constructs_2): Likewise.
2534 (lower_resx): Likewise.
2535 (lower_eh_dispatch): Likewise.
2536 * tree-mudflap.c (mf_build_string): Use size_int.
2537 (mudflap_register_call): Use integer_type_node for the flag.
2538 (mudflap_enqueue_constant): Use size_int.
2539 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2540 instead of rebuilding it.
2542 2011-04-29 Richard Guenther <rguenther@suse.de>
2544 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2545 Handle OBJ_TYPE_REF.
2546 (find_func_aliases_for_call): Use it more consistently.
2548 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2550 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2551 (rank_for_schedule): Use it.
2552 (schedule_block): Set it.
2554 2011-04-28 David Li <davidxl@google.com>
2556 * tree.c (crc32_string): Use crc32_byte.
2557 (crc32_byte): New function.
2558 * tree.h (crc32_byte): New function.
2559 * gcov.c (read_graph_file): Handle new cfg_cksum.
2560 (read_count_file): Ditto.
2561 * profile.c (instrument_values): Ditto.
2562 (get_exec_counts): Ditto.
2563 (read_profile_edge_counts): Ditto.
2564 (compute_branch_probabilities): Ditto.
2565 (compute_value_histograms): Ditto.
2566 (branch_prob): Ditto.
2567 (end_branch_prob): Ditto.
2568 * coverage.c (read_counts_file): Ditto.
2569 (get_coverage_counts): Ditto.
2570 (tree_coverage_counter_addr): Ditto.
2571 (coverage_checksum_string): Ditto.
2572 (coverage_begin_output): Ditto.
2573 (coverage_end_function): Ditto.
2574 (build_fn_info_type): Ditto.
2575 (build_fn_info_value): Ditto.
2576 * libgcov.c (gcov_exit): Ditto.
2577 * gcov-dump.c (tag_function): Ditto.
2578 (compute_checksum): Remove.
2580 2011-04-29 Alan Modra <amodra@gmail.com>
2582 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2583 unspec plus offset. Tidy macho code.
2585 2011-04-29 Martin Jambor <mjambor@suse.cz>
2587 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2588 node instead of a decl. Update all callers.
2589 * cgraph.h: Update declaration.
2591 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2593 PR tree-optimization/48765
2594 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2595 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2596 to indicate if loop aware SLP is being used. Scan the statements
2597 and update the vectorization factor according to the type of
2598 vectorization before statement analysis.
2599 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2600 pass it to vect_analyze_loop_operations.
2601 (vectorizable_reduction): Set number of copies to 1 in case of pure
2603 * tree-vect-stmts.c (vectorizable_conversion,
2604 vectorizable_assignment, vectorizable_shift,
2605 vectorizable_operation, vectorizable_type_demotion,
2606 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2608 (vectorizable_condition): Move the check that it is not SLP
2609 vectorization before the number of copies check.
2610 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2611 to vectorize the loop using SLP.
2613 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2616 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2619 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2621 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2622 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2623 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2624 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2625 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2627 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2628 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2629 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2630 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2631 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2632 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2634 * config/i386/linux.h (REG_NAME): Don't define.
2635 * config/i386/linux64.h (REG_NAME): Don't define.
2636 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2637 Undefine before defining.
2639 2011-04-28 Jan Hubicka <jh@suse.cz>
2641 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2642 nonconstant_names array.
2643 (estimate_function_body_sizes): Build nonconstant_names array; handle
2644 BUILT_IN_CONSTANT_P.
2646 2011-04-28 Richard Guenther <rguenther@suse.de>
2650 2011-04-28 Richard Guenther <rguenther@suse.de>
2652 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2653 as late as possible.
2655 2011-04-28 Richard Guenther <rguenther@suse.de>
2657 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2658 (debug_constraint): Do it here.
2659 (dump_constraints): And here.
2660 (rewrite_constraints): And here.
2661 (dump_constraint_edge): Remove.
2662 (dump_constraint_graph): Rewrite to produce DOT output.
2663 (solve_constraints): Build succ graph as late as possible.
2664 Dump constraint graphs before and after solving.
2666 2011-04-28 Richard Guenther <rguenther@suse.de>
2668 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2669 New function split out from ...
2670 (find_func_aliases): ... here. Call it.
2671 (find_func_aliases_for_call): Likewise.
2673 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2675 * internal-fn.h (internal_fn_name_array): Declare.
2676 (internal_fn_flags_array): Likewise.
2678 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2680 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2681 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2683 (ssemodefsuffix): Remove.
2684 (ssevecmodesuffix): New mode attribute.
2685 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2686 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2687 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2688 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2689 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2690 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2691 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2692 ssemodesuffix mode attribute.
2693 (float splitters): Use ssevecmodesuffix mode attribute.
2694 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2695 (sseinsmode): Rename from avxvecmode.
2696 (avxsizesuffix): Rename from avxmodesuffix.
2697 (sseintvecmode): Rename from avxpermvecmode.
2698 (ssedoublevecmode): Rename from ssedoublesizemode.
2699 (ssehalfvecmode): Rename from avxhalfvecmode.
2700 (ssescalarmode): Rename from avxscalarmode.
2701 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2702 templates for ssemodesuffix mode attribute.
2703 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2706 Adjust RTX patterns globally for renamed mode attributes.
2708 2011-04-27 Jan Hubcika <jh@suse.cz>
2710 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2711 * ipa-inline-analysis.c: Include alloc-pool.h.
2712 (edge_predicate_pool): New.
2713 (trye_predicate_p): New function
2714 (false_predicate_p): New function.
2715 (add_clause): Sanity check that false clauses are "optimized";
2716 never add clauses to predicate that is already known to be false.
2717 (and_predicate): Use flase_predicate_p.
2718 (evaulate_predicate): Rename to ...
2719 (evaluate_predicate): ... this one; update all callers; assert
2720 that false is not listed among possible truths.
2721 (dump_predicate): Use true_predicate_p.
2722 (account_size_time): Use false_predicate_p.
2723 (evaulate_conditions_for_edge): Rename to ...
2724 (evaluate_conditions_for_edge) ... this one.
2725 (edge_set_predicate): New function.
2726 (inline_edge_duplication_hook): Duplicate edge predicates.
2727 (inline_edge_removal_hook): Free edge predicates.
2728 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2729 (dump_inline_summary): Update.
2730 (estimate_function_body_sizes): Set edge predicates.
2731 (estimate_calls_size_and_time): Handle predicates.
2732 (estimate_callee_size_and_time): Update.
2733 (remap_predicate): Add toplev_predicate; update comment.
2734 (remap_edge_predicates): New function.
2735 (inline_merge_summary): Compute toplev predicate; update.
2736 (read_predicate): New function.
2737 (read_inline_edge_summary): Use it.
2738 (inline_read_section): Likewise.
2739 (write_predicate): New function.
2740 (write_inline_edge_summary): Use it.
2741 (inline_write_summary): Likewise.
2742 (inline_free_summary): Free alloc pool and edge summary vec.
2744 2011-04-27 Richard Guenther <rguenther@suse.de>
2746 * tree-ssa-structalias.c (changed_count): Remove.
2747 (changed): Use a bitmap.
2748 (unify_nodes): Adjust.
2749 (do_sd_constraint): Likewise.
2750 (do_ds_constraint): Likewise.
2751 (do_complex_constraint): Likewise.
2752 (solve_graph): Likewise.
2754 2011-04-27 Jan Hubicka <jh@suse.cz>
2756 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2758 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2760 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2761 (avx_vperm2f128_*_operand): Ditto.
2762 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2763 Use avx_vpermilp_parallel in insn condition.
2764 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2765 Use avx_vperm2f128_parallel in insn condition.
2767 2011-04-27 Richard Guenther <rguenther@suse.de>
2769 * Makefile.in (tree-ssa-structalias.o): Remove
2770 gt-tree-ssa-structalias.h dependency.
2771 (GTFILES): Remove tree-ssa-structalias.c.
2772 * tree.c (allocate_decl_uid): New function.
2773 (make_node_stat): Use it.
2774 (copy_node_stat): Likewise.
2775 * tree.h (allocate_decl_uid): Declare.
2776 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2777 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2778 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2779 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2780 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2781 (struct heapvar_map): Likewise.
2782 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2783 heapvar_insert): Likewise.
2784 (make_heapvar_for): Rename to ...
2785 (make_heapvar): ... this. Simplify.
2786 (fake_var_decl_obstack): New global var.
2787 (build_fake_var_decl): New function.
2788 (make_constraint_from_heapvar): Adjust.
2789 (handle_lhs_call): Likewise.
2790 (create_function_info_for): Likewise.
2791 (intra_create_variable_infos): Likewise.
2792 (init_alias_vars): Allocate fake_var_decl_obstack.
2793 (init_alias_heapvars, delete_alias_heapvars): Remove.
2794 (compute_points_to_sets): Do not call init_alias_heapvars.
2795 (ipa_pta_execute): Likewise.
2796 (delete_points_to_sets): Free fake_var_decl_obstack.
2798 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2800 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2801 (si_from_UTItype, si_to_UTItype): New functions.
2802 (__udivmodti4): Use them to implement type-punning.
2803 * config/spu/multi3.c (union qword_TItype): New data type.
2804 (si_from_TItype, si_to_TItype): New functions.
2805 (__multi3): Use them to implement type-punning.
2807 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2809 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2811 2011-04-27 Jan Hubicka <jh@suse.cz>
2813 * ipa-prop.c (function_insertion_hook_holder): New holder.
2814 (ipa_add_new_function): New function.
2815 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2816 Register/deregister holder.
2818 2011-04-27 Richard Guenther <rguenther@suse.de>
2820 PR tree-optimization/48772
2821 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2823 2011-04-27 Richard Guenther <rguenther@suse.de>
2825 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2826 TARGET_MEM_REF handling.
2828 2011-04-27 Nick Clifton <nickc@redhat.com>
2830 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2831 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2832 (REG_CLASS_NAMES): Likewise.
2833 (REG_CLASS_CONTENTS): Likewise.
2834 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2835 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2836 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2837 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2838 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2839 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2840 duplicate register classes.
2841 (frv_class_likely_spilled_p): Likewise.
2842 (frv_register_move_cost): Likewise.
2844 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2845 end of the regno_reg_class array.
2847 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2850 * c-typeck.c (build_binary_op): Don't wrap arguments if
2851 int_operands is true.
2853 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2856 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2857 targetm.calls.must_pass_in_stack for void type.
2859 2011-04-26 Jan Hubicka <jh@suse.cz>
2861 * cgraphbuild.c (build_cgraph_edges): Update call
2862 of cgraph_create_edge and cgraph_create_indirect_edge.
2863 * cgraph.c (cgraph_create_edge_including_clones,
2864 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2865 cgraph_update_edges_for_call_stmt_node): Do not take nest
2866 argument; do not initialize call_stmt_size/time.
2867 (dump_cgraph_node): Do not dump nest.
2868 (cgraph_clone_edge): Do not take loop_nest argument;
2869 do not propagate it; do not clone call_stmt_size/time.
2870 (cgraph_clone_node): Likewise.
2871 (cgraph_create_virtual_clone): Update.
2872 * cgraph.h (struct cgraph_edge): Remove
2873 call_stmt_size/call_stmt_time/loop_nest.
2874 (cgraph_create_edge, cgraph_create_indirect_edge,
2875 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2877 * tree-emutls.c (gen_emutls_addr): Update.
2878 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2879 loop_nest; handle indirect calls, too.
2880 (clone_inlined_nodes): Do not care about updating inline summaries.
2881 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2882 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2883 stream call_stmt_size/call_stmt_time/loop_nest.
2884 * ipa-inline.c (edge_badness): Update.
2885 (ipa_inline): dump summaries after inlining.
2886 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2888 (inline_edge_summary): New function.
2889 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2890 (inline_edge_removal_hook): Handle edge summaries.
2891 (inline_edge_duplication_hook): New hook.
2892 (inline_summary_alloc): Alloc hooks.
2893 (initialize_growth_caches): Do not register removal hooks.
2894 (free_growth_caches); Do not free removal hook.
2895 (dump_inline_edge_summary): New function.
2896 (dump_inline_summary): Use it.
2897 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2898 (inline_update_callee_summaries): New function.
2899 (inline_merge_summary): Use it.
2900 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2901 (read_inline_edge_summary): New function.
2902 (inline_read_section): Use it.
2903 (write_inline_edge_summary): New function.
2904 (inline_write_summary): Use it.
2905 (inline_free_summary): Free edge new holders.
2906 * tree-inline.c (copy_bb): Update.
2908 2011-04-26 Jason Merrill <jason@redhat.com>
2910 * tree-eh.c (lower_try_finally_switch): Create the label along with
2911 the CASE_LABEL_EXPR.
2913 2011-04-26 David S. Miller <davem@davemloft.net>
2914 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2916 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2917 * configure: Regenerate.
2919 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2922 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2924 (VEC_reduc): New code iterator and splitters for vector reduction.
2925 (VEC_reduc_name): Ditto.
2926 (VEC_reduc_rtx): Ditto.
2927 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2928 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2930 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2931 support for extracting SF on VSX.
2933 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2934 generating xscvspdp.
2935 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2936 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2937 double add, minimum, maximum vector reduction.
2938 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2939 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2940 optimize double vector reduction.
2941 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2943 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2945 * config/fr30/fr30.h (inhibit_libc): Don't define.
2946 * config/m32r/m32r-protos.h: Correct comment.
2947 * config/v850/v850.h (GHS_default_section_names,
2948 GHS_current_section_names): Use tree, not union tree_node *.
2950 2011-04-26 Xinliang David Li <davidxl@google.com>
2952 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2953 * c-family/c-opts.c (c_common_handle_option): Set
2954 warn_maybe_uninitialized.
2955 * opts.c (common_handle_option): Ditto.
2956 * common.opt: New option.
2957 * tree-ssa.c (warn_uninit): Add one more parameter.
2958 (warn_uninitialized_var): Pass warning code.
2959 * tree-flow.h: Interface change.
2962 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2964 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2965 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2966 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2968 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2970 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2971 * config/mips/mips.opt (mmips-tfile): Remove.
2973 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2974 mips-tdump reference to ...
2975 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2976 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2977 reference by Tru64 UNIX.
2979 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2982 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2983 is error_mark_node, set value to NULL.
2985 PR tree-optimization/48734
2986 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2987 if return value from maybe_fold_*_comparsions isn't something
2988 the code is prepared to handle.
2990 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2992 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2994 (ext_QIreg_nomode_operands): Remove.
2995 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2999 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3001 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3003 2011-04-26 Richard Guenther <rguenther@suse.de>
3005 * c-typeck.c (build_unary_op): Do not expand array-refs via
3006 pointer arithmetic. Only adjust qualifiers for function types.
3008 2011-04-26 Richard Guenther <rguenther@suse.de>
3011 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3012 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3013 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3014 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3016 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3018 * doc/extend.texi: Document __underlying_type.
3020 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3022 * config/rs6000/titan.md (automata_option "progress"): Remove.
3024 2011-04-25 Jeff Law <law@redhat.com>
3026 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3028 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3030 * system.h (ENUM_BITFIELD): Remove.
3032 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3033 Eric Botcazou <ebotcazou@adacore.com>
3035 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3036 for STORE_FLAG_VALUE==-1 case.
3038 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3041 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3042 LEGITIMATE_PIC_OPERAND_P.
3044 2011-04-24 Jan Hubicka <jh@suse.cz>
3046 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3048 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3049 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3050 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3051 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3052 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3053 Sanity check predicate length.
3054 (remap_predicate): Likewise; sanity check jump functions.
3055 (inline_read_section, inline_write_summary): Sanity check
3058 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3061 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3062 __is_literal_type, and __is_trivial; update throughout about
3063 possibly cv-qualified void types.
3065 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3067 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3068 testsuite and make it version agnostic.
3070 2011-04-22 Jan Hubicka <jh@suse.cz>
3072 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3074 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3077 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3078 to VOID_TYPE even around MODIFY_EXPR.
3080 2011-04-22 Mike Stump <mikestump@comcast.net>
3082 * gensupport.c (read_md_rtx): Fix typo in comment.
3083 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3086 2011-04-22 Jan Hubicka <jh@suse.cz>
3088 * gengtype.c (open_base_files): Add ipa-inline.h include.
3089 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3090 ipa-prop.c; update all uses.
3091 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3092 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3093 merge summary of inlined function into former caller.
3094 * ipa-inline.c (max_benefit): Remove.
3095 (edge_badness): Compensate for removal of benefits.
3096 (update_caller_keys): Use
3097 reset_node_growth_cache/reset_edge_growth_cache.
3098 (update_callee_keys): Likewise.
3099 (update_all_callee_keys): Likewise.
3100 (inline_small_functions): Do not collect max_benefit; do not reset
3101 estimated_growth; call free_growth_caches and initialize_growth_caches.
3102 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3103 struct size_time_entry): New structures.
3104 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3105 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3106 and estimated_growth.
3107 (edge_growth_cache_entry): New structure.
3108 (node_growth_cache, edge_growth_cache): New global vars.
3109 (estimate_growth): Turn into inline.
3110 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3111 initialize_growth_caches, free_growth_caches): Declare.
3112 (estimate_edge_growth): Rewrite.
3113 (estimate_edge_time): Implement as inline cache lookup.
3114 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3116 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3117 (NUM_CONDITIONS): New constant.
3118 (predicate_conditions): New enum.
3119 (IS_NOT_CONSTANT): New constant.
3120 (edge_removal_hook_holder): New var.
3121 (node_growth_cache, edge_growth_cache): New global vars.
3122 (true_predicate, single_cond_predicate, false_predicate,
3123 not_inlined_predicate, add_condition, add_clause, and_predicates,
3124 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3125 dump_clause, dump_predicate, account_size_time,
3126 evaulate_conditions_for_edge): New functions.
3127 (inline_summary_alloc): Move to heap.
3128 (inline_node_removal_hook): Clear condition and entry vectors.
3129 (inline_edge_removal_hook): New function.
3130 (initialize_growth_caches, free_growth_caches): New function.
3131 (dump_inline_summary): Update.
3132 (edge_execution_predicate): New function.
3133 (will_be_nonconstant_predicate): New function.
3134 (estimate_function_body_sizes): Compute BB and constantness predicates.
3135 (compute_inline_parameters): Do not clear estimated_growth.
3136 (estimate_edge_size_and_time): New function.
3137 (estimate_calls_size_and_time): New function.
3138 (estimate_callee_size_and_time): New function.
3139 (remap_predicate): New function.
3140 (inline_merge_summary): New function.
3141 (do_estimate_edge_time): New function based on...
3142 (estimate_edge_time): ... this one.
3143 (do_estimate_edge_growth): New function.
3144 (do_estimate_growth): New function based on....
3145 (estimate_growth): ... this one.
3146 (inline_analyze_function): Analyze after deciding on jump functions.
3147 (inline_read_section): New function.
3148 (inline_read_summary): Use it.
3149 (inline_write_summary): Write all the new data.
3150 * ipa-prop.c (ipa_get_param_decl_index): Export.
3151 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3152 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3154 (ipa_get_lattice): Move here from ipa-cp.c
3155 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3156 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3157 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3158 cgraph_edge_inlinable_p): Remove.
3159 * cgraphunit.c: Include ipainline.h
3160 (cgraph_process_new_functions): Update call of
3161 compute_inline_parameters.
3163 2011-04-22 Richard Guenther <rguenther@suse.de>
3165 * tree.c (build_int_cst): Properly create canonicalized integer
3167 (build_int_cst_type): Remove scary comments.
3169 2011-04-22 Xinliang David Li <davidxl@google.com>
3171 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3172 by default when -Wno-error is not specified.
3173 * opts-global.c (decode_options): Remove call to
3174 control_warning_options.
3176 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3178 PR tree-optimization/48717
3179 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3180 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3182 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3184 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3185 definition where used.
3187 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3190 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3191 TREE_STATIC variables declared inside of some OpenMP construct.
3193 2011-04-22 Martin Jambor <mjambor@suse.cz>
3196 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3198 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3201 * c-typeck.c (pop_init_level): Do not warn about initializing
3204 2011-04-22 Alan Modra <amodra@gmail.com>
3206 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3207 when returning call_cookie.
3208 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3209 pointers, to functions with no more vector args than the current
3210 function, and some non-local calls for ABI_V4.
3211 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3212 sibcall_nonlocal_aix64): Combine to ..
3213 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3214 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3215 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3216 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3217 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3219 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3220 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3221 sibcall_value_symbolic_64): Delete.
3223 2011-04-21 Xinliang David Li <davidxl@google.com>
3225 * cgraph.h: Remove pid.
3226 * cgraph.c: Remove pid.
3227 * value-prof.c (init_node_map): New function.
3228 (del_node_map): New function.
3229 (find_func_by_funcdef_no): New function.
3230 (gimple_ic_transform): Call new function.
3231 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3232 * function.c (get_last_funcdef_no): New function.
3233 * function.h (get_last_funcdef_no): New function.
3234 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3235 to libgcov function.
3236 (tree-profiling): Call node map init and delete function.
3238 2011-04-21 Ian Lance Taylor <iant@google.com>
3240 * godump.c (go_format_type): Use exported Go name for anonymous
3243 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3245 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3246 Call builtin_function_type_list instead of builtin_function_type.
3247 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3249 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3251 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3252 build_function_type_list instead of build_function_type.
3253 Delete variable `endlink'.
3255 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3257 * config/s390/s390.c (s390_init_builtins): Call
3258 build_function_type_list instead of build_function_type.
3260 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3262 * config/ia64/ia64.c (ia64_init_builtins): Call
3263 build_function_type_list instead of builtin_function_type.
3265 2011-04-21 Easwaran Raman <eraman@google.com>
3267 * cfgexpand.c (stack_var): Remove OFFSET...
3268 (add_stack_var): ...and its reference here...
3269 (expand_stack_vars): ...and here.
3270 (stack_var_cmp): Sort by descending order of size.
3271 (partition_stack_vars): Change heuristic.
3272 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3273 (dump_stack_var_partition): Add newline after each partition.
3275 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3276 Jeff Law <law@redhat.com>
3278 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3279 * gengtype.c (matching_file_name_substitute): Likewise.
3281 2011-04-21 Richard Guenther <rguenther@suse.de>
3284 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3286 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3288 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3290 2011-04-21 Richard Guenther <rguenther@suse.de>
3292 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3295 2011-04-21 Richard Guenther <rguenther@suse.de>
3297 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3298 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3299 Use DECL_P, not SSA_VAR_P.
3300 (ptr_derefs_may_alias_p): Likewise.
3301 (ptr_deref_may_alias_ref_p_1): Likewise.
3302 (decl_refs_may_alias_p): Likewise.
3303 (refs_may_alias_p_1): Likewise.
3304 (ref_maybe_used_by_call_p_1): Likewise.
3305 (call_may_clobber_ref_p_1): Likewise.
3306 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3307 are either MEM_REF or TARGET_MEM_REF.
3308 (indirect_refs_may_alias_p): Likewise.
3309 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3310 for MEM_EXPR of indirect calls.
3312 2011-04-21 Tristan Gingold <gingold@adacore.com>
3314 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3315 (dst_file_info_struct): Remove flen field.
3316 (lookup_filename): Remove code that set flen field.
3318 2011-04-21 Tristan Gingold <gingold@adacore.com>
3320 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3322 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3325 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3326 vec_extract and vec_concat for non-SSE4_1 targets.
3328 2011-04-21 Richard Guenther <rguenther@suse.de>
3330 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3333 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3335 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3337 (FILE): Don't undefine.
3339 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3341 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3343 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3345 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3346 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3347 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3349 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3350 definitions where used.
3351 * config/microblaze/microblaze.h (struct microblaze_args): Use
3352 rtx, not struct rtx_def *.
3353 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3355 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3356 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3357 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3358 not struct rtx_def *.
3359 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3361 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3363 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3365 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3367 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3368 operand_equal_p to compare DR_BASE_ADDRESSes.
3369 (vect_check_interleaving): Likewise.
3371 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3374 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3375 for all Neon struct constants.
3377 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3379 * target.def (legitimate_constant_p): New hook.
3380 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3381 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3382 * doc/tm.texi: Regenerate.
3383 * hooks.h (hook_bool_mode_rtx_true): Declare.
3384 * hooks.c (hook_bool_mode_rtx_true): Define.
3385 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3386 * calls.c (precompute_register_parameters): Replace uses of
3387 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3388 (emit_library_call_value_1): Likewise.
3389 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3390 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3391 * ira-costs.c (scan_one_insn): Likewise.
3392 * recog.c (general_operand, immediate_operand): Likewise.
3393 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3394 * reload1.c (init_eliminable_invariants): Likewise.
3396 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3398 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3399 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3401 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3402 * config/alpha/predicates.md (input_operand): Update call to
3403 alpha_legitimate_constant_p.
3405 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3406 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3407 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3408 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3409 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3410 (arm_legitimate_constant_p): New functions.
3411 (arm_cannot_force_const_mem): Make static.
3413 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3415 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3416 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3417 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3418 instead of bfin_legitimate_constant_p.
3419 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3420 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3422 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3424 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3426 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3427 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3428 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3429 (frv_legitimate_constant_p): Make static. Add a mode argument.
3431 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3432 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3433 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3435 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3436 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3437 * config/i386/i386.c (legitimate_constant_p): Rename to...
3438 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3440 (ix86_cannot_force_const_mem): Update accordingly.
3441 (ix86_legitimate_address_p): Likewise.
3442 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3443 * config/i386/i386.md: Update commentary.
3445 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3446 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3447 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3448 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3450 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3452 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3453 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3454 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3455 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3457 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3458 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3459 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3461 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3462 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3463 (m32r_legitimate_constant_p): New function.
3465 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3466 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3467 LEGITIMATE_CONSTANT_P.
3468 (LEGITIMATE_CONSTANT_P): Delete.
3469 * config/m68k/m68k.c (m68k_expand_prologue): Call
3470 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3471 (m68k_legitimate_constant_p): New function.
3472 * config/m68k/m68k.md: Update comments.
3474 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3475 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3476 (mcore_legitimate_constant_p): New function.
3478 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3479 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3480 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3481 Add a mode argument.
3482 (mep_legitimate_address): Update accordingly.
3483 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3485 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3487 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3488 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3489 static. Check OP's mode for VOIDmode.
3490 (microblaze_legitimate_constant_p): New function.
3491 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3493 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3494 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3495 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3496 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3497 * config/mips/predicates.md: Update comments.
3499 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3500 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3501 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3502 (mmix_legitimate_constant_p): Make static, return a bool, and take
3504 (mmix_print_operand_address): Update accordingly.
3506 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3508 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3509 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3510 static. Add a mode argument.
3511 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3513 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3515 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3516 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3517 (pa_legitimate_constant_p): New function.
3519 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3521 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3522 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3523 (pdp11_legitimate_constant_p): New function.
3525 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3526 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3527 (rs6000_legitimate_constant_p): New function.
3529 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3530 (rx_legitimate_constant_p): ...this.
3531 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3532 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3533 (rx_legitimate_constant_p): ...this.
3534 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3535 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3537 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3538 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3539 * config/s390/s390.c (legitimate_constant_p): Rename to...
3540 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3541 and add a mode argument.
3542 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3544 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3546 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3547 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3548 (sh_legitimate_constant_p): New function.
3550 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3551 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3552 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3553 (legitimate_constant_p): Rename to...
3554 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3556 (constant_address_p): Update accordingly.
3558 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3559 argument and return a bool.
3560 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3561 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3562 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3563 (spu_rtx_costs): Update accordingly.
3564 * config/spu/predicates.md (vec_imm_operand): Likewise.
3566 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3568 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3569 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3570 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3572 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3573 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3574 * config/vax/vax.c (legitimate_constant_p): Likewise.
3576 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3577 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3578 (xtensa_legitimate_constant_p): New function.
3580 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3582 * target.def (cannot_force_const_mem): Add a mode argument.
3583 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3584 * doc/tm.texi: Regenerate.
3585 * hooks.h (hook_bool_mode_rtx_false): Declare.
3586 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3587 (hook_bool_mode_const_rtx_true): Likewise.
3588 (hook_bool_mode_rtx_false): New function.
3589 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3590 to be non-VOID. Update call to cannot_force_const_mem.
3591 (find_reloads): Update accordingly.
3592 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3593 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3595 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3596 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3597 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3598 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3599 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3600 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3601 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3602 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3603 (m68k_cannot_force_const_mem): ...this new function.
3604 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3606 (mips_const_insns, mips_legitimize_const_move): Update calls.
3607 (mips_secondary_reload_class): Likewise.
3608 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3609 (pa_cannot_force_const_mem): ...this new function.
3610 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3611 (rs6000_cannot_force_const_mem): ...this new function.
3612 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3614 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3615 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3617 (xtensa_cannot_force_const_mem): ...this new function.
3619 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3621 * config/mips/mips.c (mips16_build_function_stub): Call
3622 build_function_type_list instead of build_function_type.
3623 (mips16_build_call_stub): Likewise.
3625 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3627 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3628 instead of build_function_type.
3630 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3632 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3633 instead of build_function_type.
3635 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3638 * config/i386/i386.md (insv): Change operand 0 constraint to
3639 "register_operand". Change operand 1 and 2 constraint to
3640 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3641 * config/i386/sse.md (sse4_1_pinsrb): Export.
3642 (sse2_pinsrw): Ditto.
3643 (sse4_1_pinsrd): Ditto.
3644 (sse4_1_pinsrq): Ditto.
3645 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3646 * config/i386/i386.c (ix86_expand_pinsr): New.
3648 2011-04-20 Easwaran Raman <eraman@google.com>
3650 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3651 containing union type only with -fstrict-aliasing.
3653 2011-04-20 Jim Meyering <meyering@redhat.com>
3655 Remove useless if-before-free tests.
3656 * calls.c (expand_call, save_area): Likewise.
3657 * cfgcleanup.c (try_forward_edges): Likewise.
3658 * collect2.c (collect_execute): Likewise.
3659 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3660 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3661 * coverage.c (coverage_checksum_string): Likewise.
3662 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3663 * cselib.c (cselib_init): Likewise.
3664 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3665 (df_set_clean_cfg): Likewise.
3666 * function.c (free_after_compilation): Likewise.
3667 * gcc.c (do_spec_1, main): Likewise.
3668 * gcov.c (create_file_names): Likewise.
3669 * gensupport.c (identify_predicable_attribute): Likewise.
3670 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3671 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3672 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3673 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3674 * ipa-pure-const.c (local_pure_const): Likewise.
3675 * ipa-reference.c (propagate): Likewise.
3676 * ira-costs.c (free_ira_costs): Likewise.
3677 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3678 * matrix-reorg.c (mat_free): Likewise.
3679 * prefix.c (get_key_value): Likewise.
3680 * profile.c (compute_value_histograms): Likewise.
3681 * reload1.c (free_reg_equiv): Likewise.
3682 * sched-deps.c (free_deps): Likewise.
3683 * sel-sched-ir.c (fence_clear): Likewise.
3684 * sese.c (set_rename, if_region_set_false_region): Likewise.
3685 * tree-data-ref.c (free_rdg): Likewise.
3686 * tree-eh.c (lower_try_finally): Likewise.
3687 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3688 * tree-ssa-live.c (delete_var_map): Likewise.
3689 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3690 * tree-ssa-pre.c (phi_trans_add): Likewise.
3692 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3694 PR tree-optimization/48611
3695 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3696 beyond ERT_MUST_NOT_THROW region.
3698 2011-04-20 Catherine Moore <clm@codesourcery.com>
3700 * config/mips/mips.opt (mfix-24k): New.
3701 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3702 * config/mips/mips.md (length): Increase by 4 for stores if
3704 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3705 all noreorder if fixing 24K errata.
3706 * doc/invoke.texi: Document mfix-24k.
3708 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3710 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3711 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3713 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3715 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3716 (const_ok_for_op): ... to here.
3718 2011-04-20 Kai Tietz <ktietz@redhat.com>
3720 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3721 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3723 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3725 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3727 2011-04-20 Richard Guenther <rguenther@suse.de>
3729 PR tree-optimization/47892
3730 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3733 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3735 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3737 2011-04-20 Tristan Gingold <gingold@adacore.com>
3739 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3741 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3745 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3746 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3747 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3748 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3749 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3751 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3754 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3755 (avr_asm_named_section, avr_asm_output_aligned_common,
3756 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3757 New functions to update...
3758 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3759 (avr_asm_init_sections): Overwrite section callbacks for
3760 data_section, bss_section.
3761 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3763 (avr_file_end): ...here.
3765 2011-04-20 Richard Guenther <rguenther@suse.de>
3768 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3769 objects and types here. Adjust for their offset before comparing.
3771 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3773 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3776 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3778 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3779 (GIMPLE_H): Include $(INTERNAL_FN_H).
3780 (OBJS-common): Add internal-fn.o.
3781 (internal-fn.o): New rule.
3782 * internal-fn.def: New file.
3783 * internal-fn.h: Likewise.
3784 * internal-fn.c: Likewise.
3785 * gimple.h: Include internal-fn.h.
3786 (GF_CALL_INTERNAL): New gf_mask.
3787 (gimple_statement_call): Put fntype into a union with a new
3789 (gimple_build_call_internal): Declare.
3790 (gimple_build_call_internal_vec): Likewise.
3791 (gimple_call_same_target_p): Likewise.
3792 (gimple_call_internal_p): New function.
3793 (gimple_call_internal_fn): Likewise.
3794 (gimple_call_fntype): Return null for internal calls.
3795 (gimple_call_set_fntype): Assert that the function is not internal.
3796 (gimple_call_set_fn): Likewise.
3797 (gimple_call_set_fndecl): Likewise.
3798 (gimple_call_set_internal_fn): New function.
3799 (gimple_call_addr_fndecl): Handle null functions.
3800 (gimple_call_return_type): Likewise null types.
3801 * gimple.c (gimple_build_call_internal_1): New function.
3802 (gimple_build_call_internal): Likewise.
3803 (gimple_build_call_internal_vec): Likewise.
3804 (gimple_call_same_target_p): Likewise.
3805 (gimple_call_flags): Handle calls to internal functions.
3806 (gimple_call_fnspec): New function.
3807 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3808 (gimple_has_side_effects): Handle null functions.
3809 (gimple_rhs_has_side_effects): Likewise.
3810 (gimple_call_copy_skip_args): Handle calls to internal functions.
3811 * cfgexpand.c (expand_call_stmt): Likewise.
3812 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3813 * gimple-fold.c (gimple_fold_call): Handle null functions.
3814 (gimple_fold_stmt_to_constant_1): Don't fold
3815 calls to internal functions.
3816 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3818 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3819 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3820 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3821 (do_warn_unused_result): Likewise.
3822 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3823 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3824 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3825 the target of a call.
3826 (initialize_hash_element): Update accordingly.
3827 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3828 (iterative_hash_hashable_expr): Handle calls to internal functions.
3829 (print_expr_hash_elt): Likewise.
3830 * tree-ssa-pre.c (can_value_number_call): Likewise.
3831 (eliminate): Handle null functions.
3832 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3833 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3834 (find_func_aliases): Likewise.
3835 * value-prof.c (gimple_ic_transform): Likewise.
3836 (gimple_indirect_call_to_profile): Likewise.
3837 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3838 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3840 2011-04-19 Jan Hubicka <jh@suse.cz>
3842 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3843 * ipa-inline.c (inline_small_functions): Compute summaries first,
3844 populate heap later.
3846 2011-04-19 Jan Hubicka <jh@suse.cz>
3848 * cgraph.h (save_inline_function_body): Remove.
3849 * ipa-inline-transform.c: New file, broke out of...
3850 * ipa-inline.c: ... this one; Update toplevel comment.
3851 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3853 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3854 (cgraph_mark_inline_edge): Rename to inline_call; move to
3855 ipa-inline-transform.c.
3856 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3857 move to ipa-inline-transform.c
3858 (recursive_inlining, inline_small_functions, flatten_function,
3859 ipa_inline, inline_always_inline_functions,
3860 early_inline_small_functions): Update.
3861 (inline_transform): Move to ipa-inline-transform.c.
3862 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3864 * Makefile.in (ipa-inline-transform.o): New file.
3865 * cgraphunit.c (save_inline_function_body): Move to
3866 ipa-inline-transform.c
3868 2011-04-19 DJ Delorie <dj@redhat.com>
3870 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3871 registers if we already know there aren't any.
3872 (m32c_emit_epilogue): Don't emit a barrier here.
3873 (m32c_emit_eh_epilogue): Likewise.
3874 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3875 operands at expand time.
3876 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3878 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3879 duplicates. Provide aliases instead.
3880 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3881 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3884 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3886 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3887 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3888 (general_or_i64_p, sparc_register_move_cost): New function.
3890 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3892 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3893 Add lynx, mipssde. Sort table.
3895 2011-04-19 Xinliang David Li <davidxl@google.com>
3897 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3900 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3903 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3904 is a SUBREG with non-MODE_INT mode inside of it.
3906 2011-04-19 Martin Jambor <mjambor@suse.cz>
3908 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3909 also according to actual contants.
3910 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3911 (gimple_fold_call): Use it.
3912 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3914 2011-04-19 Martin Jambor <mjambor@suse.cz>
3916 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3917 non-pointer assignments.
3919 2011-04-19 Martin Jambor <mjambor@suse.cz>
3921 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3922 account anc_offset and otr_type from the indirect edge info.
3923 * ipa-prop.c (get_ancestor_addr_info): New function.
3924 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3925 get_ancestor_addr_info, call it.
3926 (ipa_note_param_call): Do not initialize information about polymorphic
3927 calls, return the indirect call graph edge. Remove the last
3928 parameter, adjust all callers.
3929 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3930 parameters. Initialize polymorphic information in the indirect edge.
3932 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3935 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3936 the types if they have different enumeration identifiers.
3938 2011-04-19 Jan Hubicka <jh@suse.cz>
3940 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3941 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3942 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3943 (optimize_function_for_size_p) ... here.
3945 2011-04-19 Richard Guenther <rguenther@suse.de>
3948 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3951 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3953 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3954 if DECL_NO_INLINE_WARNING_P is set on the function.
3956 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3959 * reload1.c (inc_for_reload): Return void. All callers changed.
3960 (emit_input_reload_insns): Don't try to delete previous output
3961 reloads to a register, or record spill_reg_store for autoincs.
3963 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3965 * gengtype.h: Updated copyright year.
3966 (struct input_file_st): Add inpisplugin field.
3967 (type_fileloc): New function.
3969 (write_typed_struct_alloc_def): Add gcc_assert.
3970 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3971 (write_typed_alloc_defns): Don't output for plugin files.
3972 (input_file_by_name): Clear inpisplugin field.
3973 (main): Set inpisplugin field for plugin files.
3975 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3977 * gengtype-state.c (string_eq): New.
3978 (read_state): Use string_eq instead of strcmp when creating the
3981 2011-04-19 Wei Guozhi <carrot@google.com>
3984 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3985 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3987 * config/arm/constraints.md (Uu): New constraint.
3988 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3990 2011-04-19 Tristan Gingold <gingold@adacore.com>
3992 * config.gcc (-*-*-*vms): Added.
3993 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3995 * config/vms/vms-ld.c: New file.
3996 * config/vms/vms-ar.c: New file.
3997 * config/vms/t-vmsnative: New file.
3999 2011-04-18 Xinliang David Li <davidxl@google.com>
4001 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4003 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4006 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4007 if TREE_TYPE (v) is non-NULL.
4009 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4010 gimple_get_virt_mehtod_for_binfo.
4011 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4012 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4014 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4016 2011-04-18 Michael Matz <matz@suse.de>
4017 Steve Ellcey <sje@cup.hp.com>
4019 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4020 use its mode as source mode if it isn't VOIDmode.
4022 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4024 * doc/passes.texi: Fill crossref nodes.
4026 2011-04-18 Jim Meyering <meyering@redhat.com>
4028 Fix doubled-word typos in comments and strings
4029 * config/alpha/vms-unwind.h: s/for for/for/
4030 * config/arm/unwind-arm.h: Likewise.
4031 * config/microblaze/microblaze.c: Likewise.
4032 * config/sh/constraints.md: s/in in/in/
4033 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4035 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4037 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4038 (AVX_FLOAT_MODE_P): Ditto.
4039 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4040 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4041 (AVX_VEC_FLOAT_MODE_P): Ditto.
4042 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4043 (UNSPEC_MASKSTORE): Ditto.
4044 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4045 Merge from <sse>_movmsk<ssemodesuffix> and
4046 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4047 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4049 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4050 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4051 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4053 2011-04-18 Jan Hubicka <jh@suse.cz>
4055 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4057 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4058 (want_inline_function_called_once_p): Break out the logic from
4060 (edge_badness): Ensure that profile is not misupdated.
4061 (lookup_recursive_calls): Prioritize by call frequencies.
4062 (inline_small_functions): Move program size estimates here;
4063 actually process whole queue even when unit growth has been
4064 met. (to properly compute inline_failed reasons and for the
4065 case unit size decrease.) Revisit comments on recursive inlining.
4066 (ipa_inline): Remove unit summary code; first inline hot calls
4067 of functions called once, cold calls next.
4068 (order, nnodes): Remove unused variables.
4069 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4070 (GTFILES): Remove ipa-inline.c
4071 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4073 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4075 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4077 2011-04-18 Jie Zhang <jie@codesourcery.com>
4078 Richard Earnshaw <rearnsha@arm.com>
4080 * arm.c (neon_builtin_type_bits): Remove.
4081 (typedef enum neon_builtin_mode): New.
4082 (T_MAX): Don't define.
4083 (typedef enum neon_builtin_datum): Remove bits, codes[],
4084 num_vars and base_fcode. Add mode, code and fcode.
4085 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4086 VAR10): Change accordingly.
4087 (neon_builtin_data[]): Change accordingly
4088 (arm_init_neon_builtins): Change accordingly.
4089 (neon_builtin_compare): Remove.
4090 (locate_neon_builtin_icode): Remove.
4091 (arm_expand_neon_builtin): Change accordingly.
4093 * arm.h (enum arm_builtins): Move to ...
4094 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4096 * arm.c (arm_builtin_decl): Declare.
4097 (TARGET_BUILTIN_DECL): Define.
4098 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4099 (arm_builtin_decls[]): New.
4100 (arm_init_neon_builtins): Store builtin declarations in
4101 arm_builtin_decls[].
4102 (arm_init_tls_builtins): Likewise.
4103 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4104 (arm_builtin_decl): New.
4106 2011-04-18 Richard Guenther <rguenther@suse.de>
4108 * tree.c (upper_bound_in_type): Build properly canonicalized
4110 (lower_bound_in_type): Likewise.
4112 2011-04-18 Richard Guenther <rguenther@suse.de>
4114 * gimple.h (gimple_call_addr_fndecl): New function.
4115 (gimple_call_fndecl): Use it.
4116 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4118 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4119 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4121 2011-04-18 Richard Guenther <rguenther@suse.de>
4124 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4126 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4129 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4130 DECL_IN_CONSTANT_POOL without RTL.
4132 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4133 Ira Rosen <ira.rosen@linaro.org>
4136 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4137 to match neon_vzip/vuzp/vtrn_internal.
4138 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4139 outputs explicitly dependent on both inputs.
4140 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4142 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4144 PR tree-optimization/48616
4145 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4146 whether the shift is by scalar or vector based on whether all SLP
4147 scalar stmts have the same rhs.
4149 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4151 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4154 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4156 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4159 2011-04-17 Jan Hubicka <jh@suse.cz>
4161 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4162 * cgrpahunit.c (cgraph_finalize_function): Do not set
4163 finalized_by_frontend.
4164 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4165 finalized_by_frontend.
4167 2011-04-17 Jan Hubicka <jh@suse.cz>
4169 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4170 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4171 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4172 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4174 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4176 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4178 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4181 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4182 is non-null before accessing it.
4183 (input_cgraph): Remove trailing spaces.
4185 2011-04-17 Revital Eres <revital.eres@linaro.org>
4187 * params.def (sms-min-sc): New param flag.
4188 * modulo-sched.c (sms_schedule): Use it.
4189 * doc/invoke.texi (sms-min-sc): Document it.
4191 2011-04-17 Jan Hubicka <jh@suse.cz>
4193 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4194 present, also set gimple_call_set_cannot_inline.
4195 * ipa-inline.c: Update toplevel comment.
4197 (cgraph_clone_inlined_nodes): Fix linebreaks.
4198 (cgraph_check_inline_limits): Restructure to ...
4199 (caller_growth_limits): ... this one; be more tolerant
4200 on growth in nested inline chains; add explanatory comment;
4201 fix stack accounting thinko introduced by previous patch.
4202 (cgraph_default_inline_p): Remove.
4203 (report_inline_failed_reason): New function.
4204 (can_inline_edge_p): New function.
4205 (can_early_inline_edge_p): New function.
4206 (leaf_node_p): Move upwards in file.
4207 (want_early_inline_function_p): New function.
4208 (want_inline_small_function_p): New function.
4209 (want_inline_self_recursive_call_p): New function.
4210 (cgraph_edge_badness): Rename to ...
4211 (edge_badness) ... this one; fix linebreaks.
4212 (update_edge_key): Update call of edge_baddness; add
4213 detailed dump about queue updates.
4214 (update_caller_keys): Use can_inline_edge_p and
4215 want_inline_small_function_p.
4216 (cgraph_decide_recursive_inlining): Rename to...
4217 (recursive_inlining): Use can_inline_edge_p and
4218 want_inline_self_recursive_call_p; simplify and remove no longer
4220 (cgraph_set_inline_failed): Remove.
4221 (add_new_edges_to_heap): Use can_inline_edge_p and
4222 want_inline_small_function_p.
4223 (cgraph_decide_inlining_of_small_functions): Rename to ...
4224 (inline_small_functions): ... this one; cleanup; use
4225 can/want predicates; cleanup debug ouput; work edges till fibheap
4226 is exhausted and do not stop once unit growth is reached; remove
4227 later loop processing remaining edges.
4228 (cgraph_flatten): Rename to ...
4229 (flatten_function): ... this one; use can_inline_edge_p
4230 and can_early_inline_edge_p predicates.
4231 (cgraph_decide_inlining): Rename to ...
4232 (ipa_inline): ... this one; remove unreachable nodes before
4233 inlining functions called once; simplify the pass.
4234 (cgraph_perform_always_inlining): Rename to ...
4235 (inline_always_inline_functions): ... this one; use
4236 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4237 (cgraph_decide_inlining_incrementally): Rename to ...
4238 (early_inline_small_functions): ... this one; simplify
4239 using new predicates; cleanup; make dumps prettier.
4240 (cgraph_early_inlining): Rename to ...
4241 (early_inliner): newer inline regular functions into always-inlines;
4242 fix updating of call stmt summaries.
4243 (pass_early_inline): Update for new names.
4244 (inline_transform): Fix formating.
4245 (gate_cgraph_decide_inlining): Rename to ...
4246 (pass_ipa_inline): ... this one.
4247 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4248 * ipa-inline-analysis.c (dump_inline_summary): Update.
4249 (compute_inline_parameters): Do not compute disregard_inline_limits;
4250 look for mismatching arguments.
4251 (estimate_growth): Fix handlig of non-trivial self recursion.
4252 (inline_read_summary): Do not read info->disregard_inline_limits.
4253 (inline_write_summary): Do not write info->disregard_inline_limits.
4254 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4255 and move all checks into can_inline_edge_p predicate; re-enable code
4256 comparing optimization levels.
4257 (expand_call_inline): Do not test inline_forbidden_into_p.
4258 * Makefile.in (ipa-inline.o): Update arguments.
4260 2011-04-17 Revital Eres <revital.eres@linaro.org>
4262 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4264 2011-04-17 Revital Eres <revital.eres@linaro.org>
4266 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4268 2011-04-17 Michael Matz <matz@suse.de>
4270 PR tree-optimization/48622
4272 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4273 in same order as they're written.
4275 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4277 * config/pa/predicates.md: Reorganize and simplify predicates.
4278 Eliminate duplicate code checks.
4279 (arith_operand): Rename to arith14_operand
4280 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4281 * config/pa/pa.md: Use renamed operands.
4282 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4283 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4284 arith11_operand, adddi3_operand, indexed_memory_operand,
4285 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4286 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4287 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4288 move_dest_operand, move_src_operand, prefetch_cc_operand,
4289 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4290 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4291 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4292 div_operand, int5_operand, movb_comparison_operator,
4293 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4294 arith_double_operand, ireg_operand, lhs_lshift_operand,
4295 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4296 integer_store_memory_operand): Likewise.
4297 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4298 (integer_store_memory_operand, read_only_operand,
4299 function_label_operand, borx_reg_operand,
4300 non_hard_reg_operand): Likewise.
4301 (eq_neq_comparison_operator): Delete unused operator.
4302 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4303 function_label_operand.
4304 (emit_move_sequence): Likewise.
4306 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4308 * config/i386/sse.md (sseunpackmode): New mode attribute.
4309 (ssepackmode): Ditto.
4310 (vec_pack_trunc_<mode>): Macroize expander from
4311 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4312 (vec_unpacks_lo_<mode>): Macroize expander from
4313 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4314 (vec_unpacks_hi_<mode>): Macroize expander from
4315 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4316 (vec_unpacku_lo_<mode>): Macroize expander from
4317 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4318 (vec_unpacku_hi_<mode>): Macroize expander from
4319 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4320 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4321 ix86_expand_sse4_unpack.
4322 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4324 2011-04-16 Jan Hubicka <jh@suse.cz>
4326 * cgraphbuild.c: Include ipa-inline.h.
4327 (reset_inline_failed): Use initialize_inline_failed.
4328 * cgraph.c: Include ipa-inline.h.
4329 (cgraph_create_node_1): Do not initialize estimated_growth.
4330 (initialize_inline_failed): More to ipa-inline-analysis.c
4331 (dump_cgraph_node): Do not dump inline flags.
4332 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4333 and disregard_inline_limits flags.
4334 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4335 time, size, estimated_growth.
4336 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4338 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4339 DECL_DISREGARD_INLINE_LIMITS.
4340 (cgraph_analyze_function): Do not initialize
4341 node->local.disregard_inline_limits.
4342 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4343 inlinable, versionable and disregard_inline_limits.
4344 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4345 cgraph_check_inline_limits, cgraph_default_inline_p,
4346 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4347 add_new_edges_to_heap): Update.
4348 (cgraph_decide_inlining_of_small_function): Update; set
4349 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4350 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4351 cgraph_decide_inlining_incrementally): Update.
4352 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4353 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4354 time, size and estimated_growth parameters.
4355 (estimate_edge_growth): Update.
4356 (initialize_inline_failed): Declare.
4357 * ipa-split.c: Include ipa-inline.h
4358 (execute_split_functions): Update.
4359 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4360 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4361 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4362 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4363 estimated_growth to INT_MIN.
4364 (inline_node_duplication_hook): Likewise.
4365 (dump_inline_summary): Dump new fields.
4366 (compute_inline_parameters): Update.
4367 (estimate_edge_time, estimate_time_after_inlining,
4368 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4369 inline_write_summary):
4370 (initialize_inline_failed): Move here from cgraph.c.
4371 * tree-sra.c: Include ipa-inline.h.
4372 (ipa_sra_preliminary_function_checks): Update.
4373 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4376 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4378 * config/i386/sse.md (V16): New mode iterator.
4380 (AVXMODEQI, AVXMODEDI): Remove.
4381 (sse2, sse3): New mode attribute.
4382 (mov<mode>): Use V16 mode iterator.
4383 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4384 (push<mode>1): Use V16 mode iterator.
4385 (movmisalign<mode>): Ditto.
4386 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4387 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4388 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4389 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4390 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4391 avx_movdqu<avxmodesuffix>.
4392 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4393 *avx_movdqu<avxmodesuffix>.
4394 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4395 avx_lddqu<avxmodesuffix>.
4396 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4397 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4398 avx_movnt<AVXMODEDI:mode>.
4399 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4400 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4402 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4405 * haifa-sched.c (prune_ready_list, schedule_block): Use
4406 sched_pressure_p rather than flag_sched_pressure.
4408 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4410 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4411 cgraph_get_node instead of cgraph_get_create_node.
4413 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4415 * cfgexpand.c (expand_debug_expr): Use
4416 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4418 2011-04-15 Michael Matz <matz@suse.de>
4420 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4421 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4422 * function.c (gimplify_parameters): Ditto.
4423 * gimplify.c (gimplify_vla_decl): Ditto.
4425 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4426 (gimple_call_set_alloca_for_var): New inline function.
4427 (gimple_call_alloca_for_var_p): Ditto.
4428 * gimple.c (gimple_build_call_from_tree): Remember
4429 CALL_ALLOCA_FOR_VAR_P state.
4430 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4432 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4433 calls if they were for VLA objects.
4435 2011-04-15 Martin Jambor <mjambor@suse.cz>
4437 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4440 2011-04-15 Martin Jambor <mjambor@suse.cz>
4443 * tree-emutls.c (lower_emutls_function_body): Call
4444 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4447 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4449 * c-decl.c (detect_field_duplicates): Call
4450 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4452 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4454 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4455 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4456 * ipa-pure-const.c (check_stmt): Call it.
4457 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4459 2011-04-15 Richard Guenther <rguenther@suse.de>
4461 PR tree-optimization/48290
4462 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4463 Properly decide inhibiting propagation based on the valueized
4464 operand. Do loop-closed SSA form preserving here ...
4465 (init_copy_prop): ... not here.
4467 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4470 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4471 (*ieee_smax<mode>3): Likewise.
4473 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4475 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4476 Replace match_operand with match_dup for the third operand in
4479 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4481 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4482 to track processing of conditionals. Update all callers.
4483 (try_combine, simplify_if_then_else): Update.
4485 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4487 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4490 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4492 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4493 instead of match_operand for operand 3.
4495 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4497 * recog.h (insn_operand_data): Add an "allows_mem" field.
4498 * genoutput.c (output_operand_data): Initialize it.
4499 * optabs.c (maybe_legitimize_operand_same_code): New function.
4500 (maybe_legitimize_operand): Use it when matching the original
4503 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4505 * gimplify.c: Fix issues in comments throughout.
4506 (voidify_wrapper_expr): Fix long line.
4507 (build_stack_save_restore): Likewise.
4508 (gimplify_loop_expr): Likewise.
4509 (gimplify_compound_lval): Likewise.
4510 (gimplify_init_ctor_eval): Likewise.
4511 (gimplify_modify_expr_rhs): Likewise.
4512 (omp_notice_threadprivate_variable): Likewise.
4514 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4516 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4517 original one if this is not a builtin function.
4519 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4522 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4523 offset it as needed based on top 2 bits in operands[3], change
4524 MEM mode to SFmode and mask those 2 bits away from operands[3].
4526 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4528 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4529 change from objc_declare_protocols() to objc_declare_protocol().
4531 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4533 * config/i386/sse.md (sse4_1): New mode attribute.
4534 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4535 avx_blend<ssemodesuffix><avxmodesuffix> and
4536 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4537 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4538 avx_blendv<ssemodesuffix><avxmodesuffix> and
4539 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4540 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4541 avx_dp<ssemodesuffix><avxmodesuffix> and
4542 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4543 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4544 (sse4_1_packusdw): Merge with *avx_packusdw.
4545 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4546 (sse4_1_pblendw): Merge with *avx_pblendw.
4547 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4548 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4549 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4551 (sse4_1_round<ssescalarmodesuffix>): Merge with
4552 *avx_round<ssescalarmodesuffix>.
4553 (aesenc): Merge with *avx_aesenc.
4554 (aesenclast): Merge with *avx_aesenclast.
4555 (aesdec): Merge with *avx_aesdec.
4556 (aesdeclast): Merge with *avx_aesdeclast.
4557 (pclmulqdq): Merge with *pclmulqdq.
4558 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4560 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4562 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4565 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4566 (align_local_variable): This. Update DECL_ALIGN.
4567 (add_stack_var): Updated.
4568 (expand_one_stack_var): Likewise.
4570 2011-04-14 Richard Guenther <rguenther@suse.de>
4572 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4574 (dse_initialize_block_local_data, dse_leave_block,
4575 record_voperand_set, get_stmt_uid): Likewise.
4576 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4577 (dse_optimize_stmt): Remove voperand set handling code.
4578 Simplify and improve to handle any kind of killing stmt.
4579 (dse_record_phi): Remove.
4580 (dse_enter_block): Simplify.
4581 (tree_ssa_dse): Likewise.
4582 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4584 2011-04-14 Jan Hubicka <jh@suse.cz>
4586 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4587 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4588 (cgraph_local_info): Remove inline_summary.
4589 * ipa-cp.c: Include ipa-inline.h.
4590 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4591 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4593 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4594 (input_overwrite_node): Do not set inline summary.
4595 (input_node): Do not stream inline summary.
4596 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4597 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4598 growth; we do not have inline parameters computed for that anyway.
4599 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4600 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4601 (inline_summary_t): New type and VECtor.
4602 (debug_inline_summary, dump_inline_summaries): Declare.
4603 (inline_summary): Use VOCtor.
4604 (estimate_edge_growth): Kill hack computing call stmt size directly.
4605 * lto-section-in.c (lto_section_name): Add inline section.
4606 * ipa-inline-analysis.c: Include lto-streamer.h
4607 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4608 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4609 (inline_summary_vec): Define.
4610 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4611 dump_inline_summaries): New functions.
4612 (estimate_function_body_sizes): Properly compute size/time of outgoing
4614 (compute_inline_parameters): Alloc inline_summary; do not compute
4615 size/time of incomming calls.
4616 (estimate_edge_time): Avoid missing time summary hack.
4617 (inline_read_summary): Read inline summary info.
4618 (inline_write_summary): Write inline summary info.
4619 (inline_free_summary): Free all hooks and inline summary vector.
4620 * lto-streamer.h: Add LTO_section_inline_summary section.
4621 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4622 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4624 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4626 * tree-vectorizer.h (vect_strided_store_supported): Add a
4627 HOST_WIDE_INT argument.
4628 (vect_strided_load_supported): Likewise.
4629 (vect_permute_store_chain): Return void.
4630 (vect_transform_strided_load): Likewise.
4631 (vect_permute_load_chain): Delete.
4632 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4633 count argument. Check that the count is a power of two.
4634 (vect_strided_load_supported): Likewise.
4635 (vect_permute_store_chain): Return void. Update after above changes.
4636 Assert that the access is supported.
4637 (vect_permute_load_chain): Likewise.
4638 (vect_transform_strided_load): Return void.
4639 * tree-vect-stmts.c (vectorizable_store): Update calls after
4640 above interface changes.
4641 (vectorizable_load): Likewise.
4642 (vect_analyze_stmt): Don't check for strided powers of two here.
4644 2011-04-14 Richard Guenther <rguenther@suse.de>
4646 PR tree-optimization/48590
4647 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4648 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4649 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4650 BUILT_IN_STACK_SAVE.
4651 * tree-ssa-dce.c (propagate_necessity): Handle
4652 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4654 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4656 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4659 2011-04-14 Richard Guenther <rguenther@suse.de>
4661 * tree.h (get_object_alignment_1): Declare.
4662 * builtins.c (get_object_alignment_1): Split out worker from ...
4663 (get_object_alignment): ... here.
4664 * fold-const.c (get_pointer_modulus_and_residue): Use
4665 get_object_alignment_1.
4667 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4669 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4671 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4672 parameter. Generalise code to handle arrays as well as vectors.
4673 (vect_setup_realignment): Update accordingly.
4674 * tree-vect-stmts.c (vectorizable_store): Likewise.
4675 (vectorizable_load): Likewise.
4677 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4679 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4680 within the per-copy loop.
4682 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4684 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4687 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4689 * doc/options.texi (Negative): Explicitly mention that the
4690 Negative chain must be circular.
4692 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4694 * function.h (block_chainon): Declare.
4695 * function.c (block_chainon): Define.
4697 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4698 Eric Weddington <eric.weddington@atmel.com>
4699 Georg-Johann Lay <avr@gjlay.de>
4701 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4703 (avr_init_builtins, avr_expand_builtin,
4704 avr_expand_delay_cycles, avr_expand_unop_builtin,
4705 avr_expand_binop_builtin ): New functions.
4706 (avr_builtin_id): New enum
4707 (struct avr_builtin_description): New struct
4708 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4709 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4711 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4712 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4713 UNSPECV_DELAY_CYCLES): new enumeration values
4714 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4715 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4716 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4717 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4718 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4719 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4720 "fmulsu"): New insns
4722 * config/avr/avr-c.c: fix line endings
4723 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4724 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4725 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4726 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4727 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4729 * doc/extend.texi (AVR Built-in Functions): New node
4730 (Target Builtins): Add documentation of AVR
4733 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4736 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4737 alone. Error if non-const data has attribute progmem.
4739 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4741 * tree.h (struct tree_constructor): Include tree_typed instead of
4743 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4744 TS_TYPED instead of TS_COMMON.
4746 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4748 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4749 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4750 (sse2_psadbw): Merge with *avx_psadbw.
4751 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4752 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4753 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4754 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4755 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4756 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4757 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4758 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4759 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4760 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4761 (ssse3_palignrti): Merge with *avx_palignrti.
4763 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4765 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4766 * tree-ssanames.c (fini_ssanames): VEC_free it.
4767 (make_ssa_name_fn): Update for VECness of free_ssanames.
4768 (release_ssa_name, release_dead_ssa_names): Likewise.
4769 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4771 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4772 TS_TYPED instead of TS_COMMON.
4774 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4776 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4777 statistics_counter_event.
4778 * tree-ssa-copyrename.c (stats): Define.
4779 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4780 statistics_counter_event.
4781 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4782 (bswap_stats, widen_mul_stats): Define.
4783 (insert_reciprocals): Increment rdivs_inserted.
4784 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4785 rfuncs_inserted. Add calls to statistics_counter_event.
4786 (execute_cse_sincos_1): Increment inserted.
4787 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4788 statistics_counter_event.
4789 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4790 of bswap_stats. Add calls to statistics_counter_event.
4791 (convert_mult_to_widen): Increment widen_mults_inserted.
4792 (convert_plusminus_to_widen): Increment maccs_inserted.
4793 (convert_mult_to_fma): Increment fmas_inserted.
4794 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4795 calls to statistics_counter_event.
4797 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4799 PR rtl-optimization/48455
4800 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4801 `temp_costs->mem_cost'.
4803 2011-04-13 Jan Hubicka <jh@suse.cz>
4805 * ipa-inline.h: New file.
4806 * ipa-inline-analysis.c: New file. Broken out of ...
4807 * ipa-inline.c: ... this file; update toplevel comment;
4808 include ipa-inline.h
4809 (inline_summary): Move to ipa-inline.h
4810 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4811 ipa-inline-analysis.c.
4812 (cgraph_estimate_time_after_inlining): Rename to
4813 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4814 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4815 to estimate_edge_growth.
4816 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4817 rename to estimate_size_after_inlining.
4818 (cgraph_mark_inline_edge): Update for new naming convention.
4819 (cgraph_check_inline_limits): Likewise.
4820 (cgraph_edge_badness): Likewise.
4821 (cgraph_decide_recursive_inlining): Likewise.
4822 (cgraph_decide_inlining_of_small_functions): Likewise.
4823 (cgraph_decide_inlining_incrementally): Likewise.
4824 (cgraph_estimate_growth): Rename to estimate_growth; move to
4825 ipa-inline-analysis.c.
4826 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4827 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4828 (compute_inline_parameters): Likewise.
4829 (compute_inline_parameters_for_current): Likewise.
4830 (pass_inline_parameters): Likewise.
4831 (inline_indirect_intraprocedural_analysis): Likewise.
4832 (analyze_function): Rename to inline_analyze_function; likewise.
4833 (add_new_function): Move to ipa-inline-analysis.c.
4834 (inline_generate_summary): Likewise.
4835 (inline_read_summary): Likewise.
4836 (inline_write_summary): Likewise.
4837 * Makefile.in (ipa-inline-analysis.c): New file.
4839 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4841 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4842 * configure: Regenerate.
4844 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4846 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4847 instead of tree_common.
4848 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4850 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4851 TS_TYPED rather than TS_COMMON.
4852 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4854 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4857 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4858 r20 around calls of __tablejump_elpm__
4860 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4863 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4865 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4867 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4869 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4870 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4871 (cfi_vec): New typedef.
4872 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4873 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4874 (cie_cfi_vec): New static variable.
4875 (cie_cfi_head): Delete.
4876 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4877 declaration changed. Use vector rather than list operations.
4878 (new_cfi): Don't initialize the dw_cfi_next field.
4879 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4880 rather than list operations.
4881 (lookup_cfa): Use vector rather than list operations.
4882 (output_cfis): New argument upto. Accept a cfi_vec rather than
4883 a dw_cfi_ref list head as argument. All callers changed.
4884 Iterate over the vector using upto as a maximum index.
4885 (output_all_cfis): New static function.
4886 (output_fde): Use vector rather than list operations. Use the
4887 new upto argument for output_cfis rather than manipulating a
4889 (dwarf2out_begin_prologue): Change initializations to match
4891 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4892 from the vector length rather than searching for the end of a list.
4893 Use output_all_cfis.
4894 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4896 2011-04-13 Nick Clifton <nickc@redhat.com>
4898 * config/rx/rx.md (movmemsi): Do not use this pattern when
4899 volatile pointers are involved.
4901 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4903 * config/i386/sse.md (pinsrbits): Remove.
4904 (sse2_packsswb): Merge with *avx_packsswb.
4905 (sse2_packssdw): Merge with *avx_packssdw.
4906 (sse2_packuswb): Merge with *avx_packuswb.
4907 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4908 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4909 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4910 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4911 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4912 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4913 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4914 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4915 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4916 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4917 (sse2_loadld): Merge with *avx_loadld.
4918 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4919 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4920 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4921 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4922 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4924 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4926 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4928 * print-tree.c (print_node): Likewise.
4929 * tree-inline.c (copy_tree_r): Likewise.
4930 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4931 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4932 instead of TS_COMMON.
4933 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4934 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4935 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4936 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4937 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4939 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4941 (TREE_CHAIN): Check for a TS_COMMON structure.
4942 (TREE_TYPE): Check for a TS_TYPED structure.
4944 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4946 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4947 cgraph_get_create_node instead of cgraph_node.
4949 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4951 * c-parser.c (c_parser_initelt): Updated call to
4952 objc_build_message_expr.
4953 (c_parser_postfix_expression): Likewise.
4955 2011-04-12 Kai Tietz <ktietz@redhat.com>
4957 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4958 MASK_MS_BITFIELD_LAYOUT bit.
4960 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4962 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4963 assert it is always true.
4964 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4967 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4969 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4970 compiling Objective-C to be more efficient.
4972 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4974 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4977 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4979 * recog.h, genoutput.c, optabs.c: Revert last patch.
4981 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4984 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4986 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4988 * recog.h (insn_operand_data): Add an "allows_mem" field.
4989 * genoutput.c (output_operand_data): Initialize it.
4990 * optabs.c (maybe_legitimize_operand_same_code): New function.
4991 (maybe_legitimize_operand): Use it when matching the original
4994 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4996 * genpreds.c (process_define_predicate): Move most processing
4997 to gensupport.c. Continue to validate the expression.
4998 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4999 (process_define_predicate): Move processing to gensupport.c.
5000 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5001 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5002 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5004 (valid_predicate_name_p): New function, split out from old
5005 genpreds.c:process_define_predicate.
5006 (process_define_predicate): New function, combining code from
5007 old genpreds.c and genrecog.c functions.
5008 (process_rtx): Call it for DEFINE_PREDICATE and
5009 DEFINE_SPECIAL_PREDICATE.
5011 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5013 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5014 size of a '%A' memory reference.
5015 (T_DREG, T_QREG): New neon_builtin_type_bits.
5016 (arm_init_neon_builtins): Assert that the load and store operands
5017 are neon_struct_operands.
5018 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5019 (NEON_ARG_MEMORY): New builtin_arg.
5020 (neon_dereference_pointer): New function.
5021 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5022 Handle NEON_ARG_MEMORY.
5023 (arm_expand_neon_builtin): Update after above interface changes.
5024 Use NEON_ARG_MEMORY for loads and stores.
5025 * config/arm/predicates.md (neon_struct_operand): New predicate.
5026 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5027 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5028 (V_four_elem): Tweak formatting.
5029 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5030 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5031 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5032 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5033 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5034 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5035 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5036 Use %A in the output template.
5037 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5038 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5039 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5040 the width of the memory access. Remove post-increment.
5041 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5043 2011-04-12 Nick Clifton <nickc@redhat.com>
5045 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5046 instruction for interrupt handlers if the target is the basic V850
5048 (expand_epilogue): Likewise.
5050 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5052 PR rtl-optimization/48549
5053 * combine.c (propagate_for_debug): Also stop after BB_END of
5054 this_basic_block. Process LAST and just stop processing after it.
5055 (combine_instructions): If last_combined_insn has been deleted,
5056 set last_combined_insn to its PREV_INSN.
5058 2011-04-12 Richard Guenther <rguenther@suse.de>
5060 PR tree-optimization/46076
5061 * gimple.h (struct gimple_statement_call): Add fntype field.
5062 (gimple_call_fntype): Adjust.
5063 (gimple_call_set_fntype): New function.
5064 * gimple.c (gimple_build_call_1): Set the call function type.
5065 * gimplify.c (gimplify_call_expr): Preserve the function
5066 type the frontend used for the call.
5067 (gimplify_modify_expr): Likewise.
5068 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5070 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5072 * tree-ssa.c (useless_type_conversion_p): Function pointer
5073 conversions are useless.
5075 2011-04-12 Martin Jambor <mjambor@suse.cz>
5077 * cgraph.h (cgraph_node): Remove function declaration.
5078 (cgraph_create_node): Declare.
5079 (cgraph_get_create_node): Likewise.
5080 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5081 Updated all callers.
5082 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5083 the decl does not already exist. Call cgraph_get_create_node instead
5085 (cgraph_get_create_node): New function.
5086 (cgraph_same_body_alias): Update comment.
5087 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5088 assert it does not return NULL.
5089 (cgraph_update_edges_for_call_stmt): Likewise.
5090 (cgraph_clone_edge): Likewise.
5091 (cgraph_create_virtual_clone): Likewise.
5092 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5093 instead of cgraph_node.
5094 (cgraph_add_new_function): Call cgraph_create_node or
5095 cgraph_get_create_node instead of cgraph_node.
5096 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5097 instead of cgraph_node.
5098 (record_eh_tables): Likewise.
5099 (mark_address): Likewise.
5100 (mark_load): Likewise.
5101 (build_cgraph_edges): Call cgraph_get_create_node instead
5103 (rebuild_cgraph_edges): Likewise.
5104 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5105 instead of cgraph_node.
5106 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5108 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5109 cgraph_create_node instead of cgraph_node.
5110 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5112 * lto-cgraph.c (input_node): Likewise.
5113 * lto-streamer-in.c (input_function): Likewise.
5114 * varasm.c (mark_decl_referenced): Likewise.
5115 (assemble_alias): Likewise.
5117 2011-04-12 Martin Jambor <mjambor@suse.cz>
5119 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5120 instead of cgraph_node and assert it does not return NULL.
5121 * lto-streamer-in.c (lto_read_body): Likewise.
5122 * omp-low.c (new_omp_context): Likewise.
5123 (create_task_copyfn): Likewise.
5124 * tree-emutls.c (lower_emutls_function_body): Likewise.
5125 * matrix-reorg.c (transform_allocation_sites): Likewise.
5127 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5130 * c-typeck.c (build_asm_expr): Error out on attempts to use
5131 void type outputs or inputs for constraints that allow reg or
5134 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5135 Richard Earnshaw <rearnsha@arm.com>
5138 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5139 to use sign-magnitude offsets. Reject unsupported unaligned
5140 cases. Add detailed description in comments.
5141 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5142 condition from TARGET_32BIT to TARGET_ARM.
5144 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5146 * tree.h (struct typed_tree): New.
5147 (struct tree_common): Include it instead of tree_base.
5148 (TREE_TYPE): Update for new location of type field.
5149 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5150 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5151 (union tree_node): Add typed field.
5152 * treestruct.def (TS_TYPED): New.
5153 * lto-streamer.c (check_handled_ts_structures): Handle it.
5154 * tree.c (MARK_TS_TYPED): New macro.
5155 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5157 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5159 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5160 (force_nonfallthru): Do not alter the loop nest if no basic block
5163 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5165 * config/i386/sse.md (VI): New mode iterator.
5167 (AVX256MODEI): Ditto.
5168 (AVXMODEF4P): Ditto.
5169 (avxvecpsmode): Ditto.
5170 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5171 (sse2_andnot<mode>3): New expander.
5172 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5173 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5174 (<any_logic:code><mode>3): Use VI mode iterator.
5175 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5176 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5177 (*andnottf3): Handle AVX three-operand constraints.
5178 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5180 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5181 Robert Millan <rmh@gnu.org>
5183 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5184 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5185 GNU_USER_DYNAMIC_LINKER64): Define.
5186 (REG_NAME): Don't undefine.
5187 (MD_UNWIND_SUPPORT): Undefine.
5188 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5189 (REG_NAME): Don't undefine.
5190 (MD_UNWIND_SUPPORT): Undefine.
5191 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5193 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5195 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5196 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5198 2011-04-11 Xinliang David Li <davidxl@google.com>
5200 * value-profile.c (check_ic_target): New function.
5201 (gimple_ic_transform): Sanity check indirect call target.
5202 * gimple-low.c (gimple_check_call_args): Interface change.
5203 (gimple_check_call_matching_types): New function.
5204 * tree-inline.c (tree_can_inline_p): Call new function.
5206 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5208 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5209 tree-pretty-print.h & realmpfr.h.
5211 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5214 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5215 (setup_allocno_and_important_classes): Ditto.
5217 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5219 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5220 GNU_USER_DYNAMIC_LINKER.
5221 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5222 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5223 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5224 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5225 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5226 GNU_USER_TARGET_OS_CPP_BUILTINS.
5227 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5228 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5229 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5230 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5231 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5232 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5233 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5234 GNU_USER_TARGET_OS_CPP_BUILTINS.
5235 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5236 GNU_USER_DYNAMIC_LINKER.
5237 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5238 GNU_USER_TARGET_OS_CPP_BUILTINS.
5239 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5241 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5242 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5243 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5244 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5245 GNU_USER_DYNAMIC_LINKER64): Remove.
5246 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5247 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5248 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5249 GNU_USER_DYNAMIC_LINKER.
5250 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5251 GNU_USER_TARGET_OS_CPP_BUILTINS.
5252 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5253 GNU_USER_TARGET_OS_CPP_BUILTINS.
5254 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5255 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5256 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5257 GNU_USER_TARGET_OS_CPP_BUILTINS.
5258 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5259 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5260 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5261 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5263 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5264 GNU_USER_DYNAMIC_LINKER.
5265 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5266 GNU_USER_TARGET_OS_CPP_BUILTINS.
5267 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5269 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5270 GNU_USER_DYNAMIC_LINKER.
5271 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5272 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5273 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5274 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5275 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5276 GNU_USER_DYNAMIC_LINKER.
5277 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5278 GNU_USER_DYNAMIC_LINKERN32.
5279 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5280 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5281 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5282 GNU_USER_DYNAMIC_LINKER32.
5283 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5285 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5286 GNU_USER_DYNAMIC_LINKER.
5287 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5288 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5289 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5290 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5291 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5292 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5293 GNU_USER_DYNAMIC_LINKER32.
5294 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5295 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5296 GNU_USER_DYNAMIC_LINKER.
5297 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5298 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5299 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5300 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5301 GNU_USER_DYNAMIC_LINKER64.
5302 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5304 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5305 GNU_USER_DYNAMIC_LINKER.
5306 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5307 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5308 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5309 GNU_USER_DYNAMIC_LINKER.
5310 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5311 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5312 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5313 GNU_USER_DYNAMIC_LINKER32.
5314 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5315 GNU_USER_DYNAMIC_LINKER64.
5316 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5317 GNU_USER_DYNAMIC_LINKER64.
5318 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5319 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5320 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5321 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5322 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5324 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5326 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5327 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5328 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5329 GNU_USER_DYNAMIC_LINKER.
5330 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5331 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5332 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5333 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5334 GNU_USER_DYNAMIC_LINKER64.
5335 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5336 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5337 GNU_USER_LINK_EMULATION.
5338 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5339 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5340 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5341 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5342 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5343 CPP_SPEC, CC1_SPEC): Remove.
5344 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5345 (GNU_USER_DYNAMIC_LINKER): Define.
5346 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5347 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5348 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5349 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5350 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5351 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5352 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5353 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5354 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5355 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5356 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5357 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5358 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5359 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5360 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5361 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5362 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5363 GNU_USER_DYNAMIC_LINKER.
5364 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5365 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5366 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5367 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5368 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5369 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5370 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5371 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5372 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5373 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5375 2011-04-11 Kai Tietz <ktietz@redhat.com>
5379 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5380 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5382 (ix86_is_msabi_thiscall): Removed.
5383 (ix86_is_type_thiscall): Likewise.
5384 (ix86_get_callcvt): New function.
5385 (ix86_comp_type_attributes): Simplify check.
5386 (ix86_function_regparm): Use ix86_get_callcvt for calling
5387 convention attribute checks.
5388 (ix86_return_pops_args): Likewise.
5389 (ix86_static_chain): Likewise.
5390 (x86_this_parameter): Likewise.
5391 (x86_output_mi_thunk): Likewise.
5392 (ix86_function_type_abi): Optimize check for types without attributes.
5393 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5394 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5395 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5397 (IX86_BASE_CALLCVT): Helper macro.
5398 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5399 Use ix86_get_callcvt for calling convention attribute checks and avoid
5400 symbol-decoration for stdcall in TARGET_RTD case.
5401 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5403 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5406 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5408 * config/i386/sse.md (VI_128): New mode iterator.
5409 (VI12_128): Rename from SSEMODE12.
5410 (VI14_128): Rename from SSEMODE14.
5411 (VI124_128): New mode iterator.
5412 (VI24_128): Rename from SSEMODE248.
5413 (VI248_128): Rename from SSEMODE248.
5414 (SSEMODE124C8): Remove.
5415 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5416 (*sse2_<plusminus_insn><mode>3): Merge with
5417 *avx_<plusminus_insn><mode>3.
5418 (*mulv8hi3): Merge with *avx_mulv8hi3.
5419 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5420 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5421 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5422 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5423 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5424 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5425 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5426 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5427 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5428 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5429 (*<smaxmin:code>v8hi3): Ditto.
5430 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5431 (*<smaxmin:code>v16qi3): Ditto.
5432 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5433 (*sse2_eq<mode>3): Ditto.
5434 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5435 (*sse2_gt<mode>3): Ditto.
5436 (vcondv2di): Split out of vcond<mode>.
5437 (vconduv2di): Split out of vcondu<mode>.
5439 2011-04-11 Richard Guenther <rguenther@suse.de>
5441 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5442 before calling tree_low_cst.
5444 2011-04-11 Richard Guenther <rguenther@suse.de>
5446 * stor-layout.c (layout_type): Compute all array index size operations
5447 in the original type.
5448 (initialize_sizetypes): Add comment.
5449 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5451 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5453 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5455 2011-04-11 Martin Jambor <mjambor@suse.cz>
5457 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5458 of cgraph_node, handle NULL return value.
5459 (cgraph_global_info): Likewise.
5460 (cgraph_rtl_info): Likewise.
5461 * tree-inline.c (estimate_num_insns): Likewise.
5462 * gimplify.c (unshare_body): Likewise.
5463 (unvisit_body): Likewise.
5464 (gimplify_body): Likewise.
5465 * predict.c (optimize_function_for_size_p): Likewise.
5466 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5467 (call_may_clobber_ref_p_1): Likewise.
5468 * varasm.c (function_section_1): Likewise.
5469 (assemble_start_function): Likewise.
5471 2011-04-11 Martin Jambor <mjambor@suse.cz>
5473 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5475 * final.c (rest_of_clean_state): Likewise.
5476 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5477 * passes.c (pass_init_dump_file): Likewise.
5478 (execute_all_ipa_transforms): Likewise.
5479 (function_called_by_processed_nodes_p): Likewise.
5480 * predict.c (maybe_hot_frequency_p): Likewise.
5481 (probably_never_executed_bb_p): Likewise.
5482 (compute_function_frequency): Likewise.
5483 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5484 (unnest_nesting_tree_1): Likewise.
5485 (lower_nested_functions): Likewise.
5486 * tree-optimize.c (execute_fixup_cfg): Likewise.
5487 (tree_rest_of_compilation): Likewise.
5488 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5489 * tree-sra.c (ipa_early_sra): Likewise.
5490 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5491 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5492 * ipa.c (record_cdtor_fn): Likewise.
5493 * ipa-inline.c (cgraph_early_inlining): Likewise.
5494 (compute_inline_parameters_for_current): Likewise.
5495 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5496 * ipa-pure-const.c (local_pure_const): Likewise.
5497 * ipa-split.c (split_function): Likewise.
5498 (execute_split_functions): Likewise.
5499 * cgraphbuild.c (build_cgraph_edges): Likewise.
5500 (rebuild_cgraph_edges): Likewise.
5501 (cgraph_rebuild_references): Likewise.
5502 (remove_cgraph_callee_edges): Likewise.
5503 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5504 (verify_cgraph_node): Likewise.
5505 (cgraph_analyze_functions): Likewise.
5506 (cgraph_preserve_function_body_p): Likewise.
5507 (save_inline_function_body): Likewise.
5508 (save_inline_function_body): Likewise.
5509 * tree-inline.c (copy_bb): Likewise.
5510 (optimize_inline_calls): Likewise.
5512 2011-04-11 Martin Jambor <mjambor@suse.cz>
5514 PR tree-optimization/48195
5515 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5516 ipa_check_create_edge_args.
5517 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5518 ipa_check_create_edge_args.
5519 * ipa-inline.c (inline_generate_summary): Do not call
5520 ipa_check_create_node_params and ipa_check_create_edge_args.
5521 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5522 ipa_check_create_edge_args.
5524 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5526 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5528 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5529 * function.c (record_hard_reg_sets): Likewise.
5530 * ira.c (compute_regs_asm_clobbered): Likewise.
5531 * sched-deps.c (sched_analyze_1): Likewise.
5532 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5534 2011-04-09 Xinliang David Li <davidxl@google.com>
5536 PR tree-optimization/PR48484
5537 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5538 has_valid_pred lazily
5540 2011-04-09 Duncan Sands <baldrick@free.fr>
5542 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5544 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5546 * combine.c (combine_validate_cost): Adjust comments. Set registered
5547 cost of I0 to zero at the end, if any.
5549 2011-04-08 Xinliang David Li <davidxl@google.com>
5551 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5552 to insane profile data.
5554 2011-04-08 Xinliang David Li <davidxl@google.com>
5556 * ipa-cp.c (ipcp_update_profiling): Correct
5557 negative scale factor due to insane profile data.
5559 2011-04-08 Xinliang David Li <davidxl@google.com>
5561 * final.c (dump_basic_block_info): New function.
5562 (final): Dump basic block.
5563 (final_scan_insn): Remove old dump.
5565 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5568 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5571 2011-04-08 Michael Matz <matz@suse.de>
5574 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5576 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5577 * rtl.h (rebuild_jump_labels_chain): Declare.
5578 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5579 insns inserted on edges.
5581 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5583 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5584 * config/arm/arm-arches.def: New.
5585 * config/arm/arm-opts.h: New.
5586 * config/arm/genopt.sh: New.
5587 * config/arm/arm-tables.opt: New (generated).
5588 * config/arm/arm.c (arm_handle_option, arm_target_help,
5589 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5590 (all_architectures): Get most table contents from arm-arches.def.
5591 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5592 arm_selected_tune here.
5593 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5594 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5595 (march=, mcpu=, mtune=): Use Enum and Var.
5596 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5597 (arm.o): Update dependencies.
5599 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5601 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5603 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5604 (write_typed_alloc_defns): Likewise.
5605 (main): Calls write_typed_alloc_defns with output_header.
5607 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5610 * ira-color.c (setup_profitable_hard_regs): Add comments.
5611 Don't take prohibited hard regs into account.
5612 (setup_conflict_profitable_regs): Rename to
5613 get_conflict_profitable_regs.
5614 (check_hard_reg_p): Check prohibited hard regs.
5616 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5618 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5619 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5620 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5622 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5625 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5626 move from floating point to shift amount register.
5627 (emit_move_sequence): Remove secondary reload support for floating
5628 point to shift amount amount register copies.
5629 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5630 amount register copies.
5631 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5632 register, return false if mode isn't a scalar integer mode.
5633 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5635 2011-04-08 Richard Guenther <rguenther@suse.de>
5637 * gimple.c (gimple_call_flags): Remove kludge.
5639 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5641 * sel-sched.c (sel_region_init): Move call to
5642 sel_setup_region_sched_flags after setup_current_loop_nest.
5644 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5646 PR rtl-optimization/48272
5647 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5648 init_insn_reg_pressure_info. Adjust a caller.
5649 * sched-int.h (init_insn_reg_pressure_info): Declare.
5650 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5651 when sched-pressure is enabled.
5653 2011-04-08 Richard Guenther <rguenther@suse.de>
5655 * gimple.c (gimple_set_modified): Do not queue calls to
5656 MODIFIED_NORETURN_CALLS here ...
5657 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5659 2011-04-08 Richard Guenther <rguenther@suse.de>
5662 * toplev.c (lang_dependent_init): Do not open asm_out_file
5663 in WPA mode, nor perform debug machinery initialization.
5664 (finalize): Do not unlink asm_out_file in WPA mode.
5666 2011-04-08 Richard Guenther <rguenther@suse.de>
5668 * gimple.h (gimple_call_fntype): New function.
5669 (gimple_call_return_type): Use it.
5670 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5671 * gimple-low.c (gimple_check_call_args): Likewise.
5672 * gimple.c (gimple_call_flags): Likewise.
5673 (gimple_call_arg_flags): Likewise.
5674 (gimple_call_return_flags): Likewise.
5675 * tree-cfg.c (verify_gimple_call): Likewise.
5676 (do_warn_unused_result): Likewise.
5677 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5678 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5680 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5682 PR rtl-optimization/48235
5683 * sel-sched.c (code_motion_process_successors): Recompute the last
5684 insn in basic block if control flow changed.
5685 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5686 Update condition for ilist_remove.
5688 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5690 PR rtl-optimization/48302
5691 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5692 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5693 it to record added preheader blocks.
5694 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5695 on to sel_add_loop_preheaders.
5696 (sel_region_init): Move call to setup_current_loop_nest after
5699 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5702 * cfgloop.h (loop_has_exit_edges): New helper.
5703 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5705 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5706 that have no exit edges.
5708 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5710 PR rtl-optimization/48442
5711 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5712 all callers. Adjust assert.
5714 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5716 PR tree-optimization/48377
5717 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5718 is_packed to true even for types with smaller TYPE_ALIGN than
5721 2011-04-08 Richard Guenther <rguenther@suse.de>
5724 * doc/tm.texi: Re-generate.
5726 2011-04-08 Wei Guozhi <carrot@google.com>
5729 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5730 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5731 * config/arm/arm.md (*push_multi): Change the length computation to
5734 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5736 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5737 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5738 * doc/tm.texi: Regenerate.
5739 * system.h (ASM_OUTPUT_BSS): Poison.
5740 * varasm.c (asm_output_bss): Remove function.
5741 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5743 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5744 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5745 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5746 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5748 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5750 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5752 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5754 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5756 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5759 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5761 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5762 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5763 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5765 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5766 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5767 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5768 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5769 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5770 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5771 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5772 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5773 options. Don't map other m68k options manually. Don't handle
5774 old-style options as canonical.
5775 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5776 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5778 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5780 * basic-block.h (force_nonfallthru): Move to...
5781 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5782 (force_nonfallthru): ...here.
5783 * cfghooks.c (force_nonfallthru): New function.
5784 * cfgrtl.c (force_nonfallthru): Rename into...
5785 (rtl_force_nonfallthru): ...this.
5786 (commit_one_edge_insertion): Do not set AUX field.
5787 (commit_edge_insertions): Do not discover new basic blocks.
5788 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5789 (cfg_layout_rtl_cfg_hooks): Likewise.
5790 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5791 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5792 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5794 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5796 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5799 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5801 * config/i386/sse.md: Update copyright year.
5802 (avxcvtvecmode): Remove.
5803 (sse_movhlps): Merge with *avx_movhlps.
5804 (sse_movlhps): Merge with *avx_movlhps.
5805 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5806 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5807 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5808 (sse_loadhps): Merge with *avx_loadhps.
5809 (sse_storelps): Merge with *avx_storelps.
5810 (sse_loadlps): Merge with *avx_loadlps.
5811 (sse_movss): Merge with *avx_movss.
5812 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5813 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5814 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5815 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5816 (vec_set<mode>_0): Ditto.
5817 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5818 (sse4_1_insertps): Merge with *avx_insertps.
5819 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5820 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5821 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5822 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5823 (sse2_storehpd): Merge with *avx_storehpd.
5824 (sse2_loadhpd): Merge with *avx_loadhpd.
5825 (sse2_loadlpd): Merge with *avx_loadlpd.
5826 (sse2_movsd): Merge with *avx_movsd.
5827 (*vec_concatv2df): Merge with *vec_concatv2df.
5829 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5832 * combine.c (combine_instructions): Add last_combined_insn,
5833 update it if insn is after it, pass it to all try_combine calls.
5834 (try_combine): Add last_combined_insn parameter, pass it instead of
5835 i3 to propagate_for_debug.
5837 2011-04-07 Nick Clifton <nickc@redhat.com>
5839 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5840 to handle MDR <-> data register transfers.
5841 (movhi_internal): Likewise.
5843 2011-04-07 Alan Modra <amodra@gmail.com>
5845 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5846 previous stack info.
5848 2011-04-07 Tom de Vries <tom@codesourcery.com>
5851 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5852 flow_find_cross_jump. Swap variables to implement backward replacement.
5853 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5855 2011-04-07 Tom de Vries <tom@codesourcery.com>
5858 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5859 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5861 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5862 src1 or src2. Redirect edges to the last basic block. Update
5863 frequency and count on multiple basic blocks in case of fallthru.
5865 2011-04-07 Tom de Vries <tom@codesourcery.com>
5868 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5870 (old_insns_match_p): Change return type. Replace return false/true
5871 with return dir_none/dir_both. Use can_replace_by.
5872 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5873 direction from dir_p. Register replacement direction in dir, last_dir
5874 and afterlast_dir. Handle new return type of old_insns_match_p using
5875 merge_dir. Return replacement direction in dir_p.
5876 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5877 return type of old_insns_match_p.
5878 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5879 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5880 flow_find_cross_jump.
5881 * basic-block.h (enum replace_direction): New type.
5882 (flow_find_cross_jump): Add parameter to declaration.
5884 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5886 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5887 (AVXMODEDCVTPS2DQ): Ditto.
5888 (VEC_FLOAT_MODE): Ditto.
5889 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5890 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5891 (<any_logic:code><mode>3): Use VF mode iterator.
5892 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5893 Use VF mode iterator.
5894 (copysign<mode>3): Use VF mode iterator.
5895 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5896 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5897 (*<any_logic:code><MODEF:mode>3): Merge with
5898 *avx_<any_logic:code><MODEF:mode>3.
5899 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5900 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5901 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5902 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5903 (sse2_cvtdq2ps): Use %v modifier.
5904 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5905 (avx_cvtps2dq<avxmodesuffix>): Remove.
5906 (sse2_cvtps2dq): Use %v modifier.
5907 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5908 (avx_cvttps2dq<avxmodesuffix>): Remove.
5909 (sse2_cvttps2dq): Use %v modifier.
5910 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5911 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5912 (sse2_cvtsd2siq): Fix insn template.
5913 (sse2_cvtsd2siq_2): Ditto.
5914 (sse2_cvttsd2siq): Ditto.
5915 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5916 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5918 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5920 * gcov-io.c: Use GCC Runtime Library Exception.
5922 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5925 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5926 as base_reg whatever register reg has been eliminated to, instead
5927 of hardcoding STACK_POINTER_REGNUM.
5929 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5931 * doc/tm.texi.in: Document C target hooks as separate from general
5933 * doc/tm.texi: Regenerate.
5934 * genhooks.c (struct hook_desc): Add docname field.
5935 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5937 (hook_array): Include c-target.def.
5938 (emit_documentation): Use docname field in output.
5939 (emit_init_macros): Take docname argument. Only emit definitions
5940 for hooks matching docname.
5941 (main): Expect additional arguments in all cases. Pass argument
5942 to emit_init_macros.
5943 * target.def: Move initial macro definitions and comments to
5944 target-hooks-macros.h.
5945 (gcc_targetcm): Move to c-family/c-target.def.
5946 * target.h (targetcm): Move declaration to c-family/c-target.h.
5947 * targhooks.c (default_handle_c_option): Move to
5949 * targhooks.h (default_handle_c_option): Move declaration to
5950 c-family/c-common.h.
5951 * target-hooks-macros.h: New file.
5952 * config.gcc (target_has_targetcm): Define and use to add to
5953 c_target_objs and cxx_target_objs.
5954 * config/default-c.c: New file.
5955 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5956 of target.h and target-def.h.
5957 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5958 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5959 darwin_check_cfstring_format_arg): Make static.
5960 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5961 TARGET_STRING_OBJECT_REF_TYPE_P,
5962 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5963 * config/darwin-protos.h (darwin_objc_construct_string,
5964 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5966 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5967 TARGET_STRING_OBJECT_REF_TYPE_P,
5968 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5969 * config/t-darwin (darwin-c.o): Update dependencies.
5970 * system.h (TARGET_HAS_TARGETCM): Poison.
5971 * Makefile.in (TARGET_H): Update.
5972 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5973 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5974 (default-c.o): New target.
5975 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5976 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5977 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5979 (build/genhooks.o): Update dependencies.
5981 2011-04-06 Richard Guenther <rguenther@suse.de>
5983 * ipa-inline.c (enum inlining_mode): Remove.
5984 (cgraph_flatten): Use some other token.
5985 (cgraph_edge_early_inlinable_p): New function, split out from ...
5986 (cgraph_perform_always_inlining): New function, split out from ...
5987 (cgraph_decide_inlining_incrementally): ... here.
5988 (cgraph_mark_inline_edge): Adjust.
5989 (cgraph_early_inlining): Re-structure.
5990 (pass_early_inline): Require SSA form.
5992 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5993 Julian Brown <julian@codesourcery.com>
5994 Mark Shinwell <shinwell@codesourcery.com>
5996 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5997 LO_REGS only for Thumb-1.
5998 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5999 be used in short instructions when optimising for size on Thumb-2.
6001 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6003 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6004 associated with user returns to be preserved.
6006 2011-04-06 Tristan Gingold <gingold@adacore.com>
6008 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6009 symbol_queue_size, DBXOUT_DECR_NESTING,
6010 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6011 if XCOFF_DEBUGGING_INFO.
6013 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6015 * config/i386/i386.md (attribute isa): New.
6016 (attribute enabled): New.
6017 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6018 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6019 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6020 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6021 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6022 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6023 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6024 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6026 * config/i386/sse.md (VF): New mode iterator.
6030 (SSEMODEF4): Remove.
6031 (attribute sse): Handle V8SF and V4DF modes.
6032 (<absneg:code><mode>2): Use VF mode iterator.
6033 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6035 (<plusminus_insn><mode>3): Use VF mode iterator.
6036 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6037 Use VF mode iterator.
6038 (<sse>_vm<plusminus_insn><mode>3): Merge with
6039 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6040 (mul<mode>3): Use VF mode iterator.
6041 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6042 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6044 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6045 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6046 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6047 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6049 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6050 Use VF1 mode iterator.
6051 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6052 (sqrt<VF2:mode>2): New expander.
6053 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6054 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6055 and sqrtv2df2. Use VF mode iterator.
6056 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6058 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6059 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6060 Use VF1 mode iterator.
6061 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6062 (<smaxmin:code><mode>3): Use VF mode iterator.
6063 (*<smaxmin:code><mode>3_finite): Merge with
6064 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6065 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6066 (<sse>_vm<smaxmin:code><mode>2): Merge with
6067 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6068 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6070 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6072 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6073 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6074 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6075 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6076 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6078 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6079 Use VF_128 mode iterator.
6080 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6082 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6083 VF_128 mode iterator.
6084 (vcond<mode>): Use VF mode iterator.
6085 * config/i386/predicates.md (sse_comparison_operator): Merge with
6086 avx_comparison_float_operator. Do not declare as special_predicate.
6087 * config/i386/i386.c (struct builtin_description): Update for renamed
6089 (ix86_expand_args_builtin): Ditto.
6090 (ix86_expand_sse_compare_mask): Ditto.
6092 2011-04-06 Richard Guenther <rguenther@suse.de>
6094 * tree-inline.c (estimate_num_insns): For calls simply account
6095 for all passed arguments and a used return value.
6097 2011-04-06 Richard Guenther <rguenther@suse.de>
6099 PR tree-optimization/47663
6100 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6101 call_stmt_time fields.
6102 (cgraph_edge_inlinable_p): Declare.
6103 (cgraph_edge_recursive_p): New inline function.
6104 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6105 (cgraph_clone_edge): Copy it.
6106 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6107 Account for call stmt time.
6108 (cgraph_estimate_time_after_inlining): Take edge argument.
6109 (cgraph_estimate_edge_growth): Account call stmt size.
6110 (cgraph_estimate_size_after_inlining): Take edge argument.
6111 (cgraph_mark_inline_edge): Adjust.
6112 (cgraph_check_inline_limits): Likewise.
6113 (cgraph_recursive_inlining_p): Remove.
6114 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6115 (cgraph_decide_recursive_inlining): Take edge argument and
6117 (cgraph_decide_inlining_of_small_functions): Do not avoid
6118 diags for recursive inlining here.
6119 (cgraph_flatten): Adjust.
6120 (cgraph_decide_inlining_incrementally): Likewise.
6121 (estimate_function_body_sizes): Remove call cost handling.
6122 (compute_inline_parameters): Initialize caller edge call costs.
6123 (cgraph_estimate_edge_growth): New function.
6124 (cgraph_estimate_growth): Use it.
6125 (cgraph_edge_badness): Likewise.
6126 (cgraph_check_inline_limits): Take an edge argument.
6127 (cgraph_decide_inlining_of_small_functions): Adjust.
6128 (cgraph_decide_inlining): Likewise.
6129 * tree-inline.c (estimate_num_insns): Only account for call
6130 return value if it is used.
6131 (expand_call_inline): Avoid diagnostics on recursive inline
6133 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6134 (input_edge): Input edge call costs.
6136 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6138 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6140 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6142 * doc/invoke.texi (Spec Files): Fix typo.
6144 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6146 * profile.c (branch_prob): Move declaration of local variable. Remove
6147 obsolete ??? comment. Expand the location explicitly instead of using
6148 the LOCATION_FILE and LOCATION_LINE macros.
6150 2011-04-06 Wei Guozhi <carrot@google.com>
6153 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6154 (arm_cond_branch): Likewise.
6155 (arm_cond_branch_reversed): Likewise.
6156 (arm_jump): Likewise.
6157 (push_multi): Likewise.
6158 * config/arm/constraints.md (Py): New constraint.
6160 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6163 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6165 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6166 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6167 #ifdef DBX_DEBUGGING_INFO.
6169 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6172 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6173 if old and new states differ.
6175 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6177 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6178 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6179 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6180 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6181 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6183 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6184 ColdFire options to -mcpu= options.
6186 2011-04-05 Jeff Law <law@redhat.com>
6188 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6189 check if BB is a successor of LOOP->header and return
6190 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6192 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6194 * cprop.c (struct reg_use): Remove.
6195 (reg_use_table): Make an array of RTX.
6196 (find_used_regs, constprop_register, local_cprop_pass,
6197 bypass_block): Simplify users of reg_use_table.
6198 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6199 on one of the uses found by find_used_regs.
6201 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6204 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6207 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6209 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6211 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6213 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6216 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6218 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6220 * combine.c: Include obstack.h.
6221 (struct insn_link): Define.
6222 (uid_log_links): Adjust type.
6223 (FOR_EACH_LOG_LINK): New macro.
6224 (insn_link_obstack): Declare.
6225 (alloc_insn_link): Define.
6226 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6227 type of link variables.
6228 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6229 (try_combine, record_promoted_values, distribute_notes): Likewise.
6230 (distribute_links): Likewise. Tweak prototype.
6231 (clear_log_links): Delete.
6232 (adjust_for_new_dest): Call alloc_insn_link.
6233 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6235 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6237 * gcse.c (modify_mem_list): Convert to an array of VECs.
6238 (canon_modify_mem_list, compute_transp): Tweak formatting.
6239 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6240 (load_killed_in_block_p): Likewise.
6241 (record_last_mem_set_info): Likewise.
6242 (clear_modify_mem_tables): Likewise.
6244 2011-04-05 Tom de Vries <tom@codesourcery.com>
6247 * function.c (emit_use_return_register_into_block): Only define if
6250 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6252 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6254 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6256 * config/rx/rx-opts.h: New.
6257 * config/rx/rx.c (rx_cpu_type): Remove.
6258 (rx_handle_option): Don't assert that global structures are in
6259 use. Access variables via opts pointer. Defer most handling of
6260 OPT_mint_register_. Use error_at.
6261 (rx_option_override): Handle deferred OPT_mint_register_ here.
6262 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6263 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6264 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6265 (rx_cpu_types): New Enum and EnumValue entries.
6266 (mint-register=): Use Defer and use Var accordingly.
6268 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6270 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6271 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6272 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6274 (debug_free_queue, debug_nesting, symbol_queue_index):
6276 * dbxout.c: ...to here. Make static.
6278 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6280 * gcse.c (modify_pair): Define. Define a VEC of it.
6281 (canon_modify_mem_list): Convert to an array of VECs.
6282 (free_insn_expr_list_list): Delete.
6283 (clear_modify_mem_tables): Call VEC_free instead.
6284 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6285 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6286 (canon_list_insert, compute_transp): Likewise.
6288 2011-04-05 Tom de Vries <tom@codesourcery.com>
6291 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6294 2011-04-05 Tom de Vries <tom@codesourcery.com>
6297 * function.c (emit_use_return_register_into_block): New function.
6298 (thread_prologue_and_epilogue_insns): Use
6299 emit_use_return_register_into_block.
6301 2011-04-05 Tom de Vries <tom@codesourcery.com>
6304 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6307 2011-04-05 Tom de Vries <tom@codesourcery.com>
6309 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6311 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6313 * config/arm/arm.md (define_constants for unspec): Replace with
6315 (define_constants for unspecv): Replace with define_c_enum.
6316 * config/arm/neon.md (define_constants for unspec): Replace with
6319 2011-04-04 Richard Henderson <rth@redhat.com>
6322 * dwarf2out.c (output_line_info): Always emit line info from
6323 at least one section.
6324 (dwarf2out_init): Create text_section_line_info here ...
6325 (set_cur_line_info_table): ... not here.
6327 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6330 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6333 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6335 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6337 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6338 (expr_equiv_p): Remove.
6339 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6340 (hash_scan_set): Update call to insert_set_in_table.
6341 (dump_hash_table): Dump <dest, src> pair.
6342 (lookup_set): Simplify. Lookup <dest, src> pair.
6343 (compute_transp): Remove, fold heavily simplified code into...
6344 (compute_local_properties): ...here. Expect COMP and TRANSP
6346 (find_avail_set): Take set directly from struct expr.
6347 (find_bypass-set): Likewise.
6348 (bypass_block): Likewise.
6349 (cprop_insn): Likewise. Remove redundant INSN_P test.
6351 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6352 checks on form of COND from find_implicit_sets to here.
6353 (find_implicit_sets): Cleanup control flow. Split critical edges
6354 if it exposes implicit sets. Allocate/resize implicit_sets as
6356 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6357 changed something. Run df_analyze after find_implicit_sets if any
6358 edges were split. Do not allocate implicit_sets here.
6360 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6361 (gcse_obstack): Renamed to cprop_obstack.
6362 (GNEW, GNEWVEC, GNEWVAR): Remove.
6364 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6365 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6366 (gcse_alloc): Likewise, and rename to cprop_alloc.
6367 (alloc_gcse_men, free_gcse_mem): Remove.
6368 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6369 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6370 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6372 * cprop.c (oprs_not_set_p): Remove.
6373 (mark_set, mark_clobber): Remove.
6374 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6375 (reg_not_set_p): New function.
6376 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6377 (cprop_insn): Likewise.
6378 (cprop_jump): Use FOR_EACH_EDGE.
6380 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6383 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6384 (rank_for_schedule): Use scheduled_insns vector instead of
6385 last_scheduled_insn.
6386 (ok_for_early_queue_removal): Likewise.
6387 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6389 (choose_ready): Likewise.
6390 (commit_schedule): Use VEC_iterate.
6391 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6392 a dbg_cnt, use it and ensure the first insn is in the ready list.
6393 (haifa_sched_init): Allocate scheduled_insns.
6394 (sched_extend_ready_list): Don't allocate it; reserve space.
6395 (haifa_sched_finish): Free it.
6397 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6399 * optc-gen.awk: Always remove type from Variable entry before
6400 recording in var_seen.
6402 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6404 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6405 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6406 call to tidy_fallthru_edges.
6408 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6410 * doc/options.texi (ToLower): Document.
6411 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6412 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6413 * opts.h (cl_option): Add cl_tolower field.
6414 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6415 arguments with lowercase strings.
6416 * config/rx/rx.opt (mcpu=): Add ToLower.
6417 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6420 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6422 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6424 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6426 * config/vax/vax.c: Include reload.h.
6428 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6430 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6431 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6432 (sparc_preferred_reload_class): New function.
6434 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6437 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6438 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6440 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6442 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6443 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6445 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6447 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6448 (ASM_OUTPUT_ALIGNED_BSS): Define.
6450 2011-04-03 Michael Matz <matz@suse.de>
6452 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6453 and next_slot members.
6454 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6455 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6456 (lto_streamer_cache_append): Declare.
6457 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6458 unsigned index, remove offset parameter, ensure that we append
6459 or update existing entries.
6460 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6461 parameter, update next_slot for append.
6462 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6464 (lto_streamer_cache_insert_at): Likewise.
6465 (lto_streamer_cache_append): New function.
6466 (lto_streamer_cache_lookup): Use unsigned index.
6467 (lto_streamer_cache_get): Likewise.
6468 (lto_record_common_node): Don't test tree_node_can_be_shared.
6469 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6470 (lto_streamer_cache_delete): Don't free offsets member.
6471 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6472 (lto_output_string_with_length): Use lto_output_data_stream.
6473 (lto_output_tree_header): Remove ix parameter, don't write it.
6474 (lto_output_builtin_tree): Likewise.
6475 (lto_write_tree): Adjust callers to above, don't track and write
6476 offset, write unsigned index.
6477 (output_unreferenced_globals): Don't emit all global vars.
6478 (write_global_references): Use unsigned indices.
6479 (lto_output_decl_state_refs): Likewise.
6480 (write_symbol): Likewise.
6481 * lto-streamer-in.c (lto_input_chain): Move earlier.
6482 (input_function): Use unsigned index.
6483 (input_alias_pairs): Don't read and then ignore all global vars.
6484 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6485 don't pass it back, use lto_streamer_cache_append.
6486 (lto_register_var_decl_in_symtab): Use unsigned index.
6487 (lto_register_function_decl_in_symtab): Likewise.
6488 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6490 (lto_get_builtin_tree): Don't read index, use
6491 lto_streamer_cache_append.
6492 (lto_read_tree): Adjust call to lto_materialize_tree.
6494 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6495 don't use function calls in arguments to MIN.
6497 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6500 * gimple.c (gimple_type_leader_entry): Mark deletable.
6502 2011-04-03 Alan Modra <amodra@gmail.com>
6504 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6506 2011-04-03 Michael Matz <matz@suse.de>
6508 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6510 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6512 2011-04-03 Michael Matz <matz@suse.de>
6514 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6515 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6516 without function context.
6517 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6518 current_function_decl and cfun.
6520 2011-04-03 Michael Matz <matz@suse.de>
6522 * tree.c (decl_init_priority_insert): Don't create entry for
6524 (decl_fini_priority_insert): Ditto.
6525 (fields_compatible_p, find_compatible_field): Remove.
6526 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6527 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6529 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6531 * combine.c (try_combine): Remove useless local variable.
6533 2011-04-03 Richard Guenther <rguenther@suse.de>
6534 Ira Rosen <ira.rosen@linaro.org>
6536 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6537 non-variable offsets and compare the remaining bases of the two
6538 accesses instead of looking for exact same data-ref.
6540 2011-04-02 Kai Tietz <ktietz@redhat.com>
6543 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6545 * i386.c (ix86_is_msabi_thiscall): New helper function.
6546 (ix86_is_type_thiscall): New helper function.
6547 (ix86_comp_type_attributes): Handle thiscall for method-functions
6549 (init_cumulative_args): Likewise.
6550 (find_drap_reg): Likewise.
6551 (ix86_static_chain): Likewise.
6552 (x86_this_parameter): Likewise.
6553 (x86_output_mi_thunk): Likewise.
6555 2011-04-01 Olivier Hainque <hainque@adacore.com>
6556 Nicolas Setton <setton@adacore.com>
6557 Eric Botcazou <ebotcazou@adacore.com>
6559 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6560 (add_gnat_descriptive_type_attribute): New function.
6561 (gen_array_type_die): Call it.
6562 (gen_enumeration_type_die): Likewise.
6563 (gen_struct_or_union_type_die): Likewise.
6564 (modified_type_die): Likewise.
6565 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6566 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6567 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6569 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6572 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6573 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6576 2011-03-17 Richard Guenther <rguenther@suse.de>
6579 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6580 origin for decls in other ltrans units.
6581 (input_varpool_node): Likewise.
6583 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6586 * expr.c (expand_assignment): Handle all possibilities
6587 if TO_RTX is CONCAT.
6588 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6589 (store_split_bit_field): If SUBREG_REG (op0) or
6590 op0 itself has smaller mode than word, return it
6591 for offset 0 and const0_rtx for out-of-bounds stores.
6592 If word is const0_rtx, skip it.
6594 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6596 * config/h8300/h8300.c (print_operand_address): Rename to...
6597 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6598 Call h8300_print_operand and h8300_print_operand_address instead of
6599 print_operand and print_operand_address. Declare.
6600 (print_operand): Renake to...
6601 (h8300_print_operand): ...this. Make static. Adjust comments.
6602 Call h8300_print_operand instead of print_operand. Declare.
6603 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6604 (h8300_register_move_cost): Likewise.
6605 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6606 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6607 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6608 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6609 * config/h8300/h8300-protos.h (print_operand): Delete.
6610 (print_operand_address): Delete.
6612 2011-04-01 Richard Henderson <rth@redhat.com>
6615 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6616 in strict mode before dwarf4. Re-order tests to early out
6617 before switching sections.
6619 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6621 * config/h8300/constraints.md: New file.
6622 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6623 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6624 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6625 * config/h8300/predicates.md (bit_operand): Likewise.
6626 (incdec_operand): Use satisfies_constraint_M and
6627 satisfies_constraint_O. Don't use C code block.
6628 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6629 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6630 (compute_mov_length): Use satisfies_constraint_G.
6631 (fix_bit_operand): Use satisfies_constraint_U.
6632 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6633 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6634 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6635 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6636 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6637 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6638 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6639 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6640 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6641 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6642 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6643 (EXTRA_MEMORY_CONSTRAINT): Delete.
6645 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6646 Michael Meissner <meissner@linux.vnet.ibm.com>
6649 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6650 operands, as per the specifications.
6652 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6653 (vec_extract_evenv4sf): Ditto.
6654 (vec_extract_evenv8hi): Ditto.
6655 (vec_extract_evenv16qi): Ditto.
6656 (vec_extract_oddv4si): Ditto.
6658 2011-03-31 Mark Wielaard <mjw@redhat.com>
6660 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6661 high_pc attribute if the CU has no associated code. Only output
6662 DW_AT_entry_pc for CU if not generating strict dwarf and
6665 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6667 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6668 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6670 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6671 * final.c (final_start_function): Call the new function rather
6672 than using a NULL argument for dwarf2out_frame_debug.
6674 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6675 that contains the prologue.
6677 * haifa-sched.c (queue_insn): New arg REASON. All callers
6678 changed. Print it in debugging output.
6680 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6682 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6683 Split most of the code into...
6684 (begin_move_insn): ... here. New function.
6685 (ebb_sched_info): Add a pointer to it.
6686 * haifa-sched.c (scheduled_insns): New static variable.
6687 (sched_extend_ready_list): Allocate it.
6688 (schedule_block): Use it to record the order of scheduled insns.
6689 Perform RTL changes to move insns only after all scheduling
6690 decisions have been made.
6691 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6692 begin_move_insn field.
6693 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6694 * sched-int.h (struct haifa_sched_info): Remove second argument
6695 from begin_schedule_ready hook. Add new member begin_move_insn.
6696 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6697 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6699 * haifa-sched.c (prune_ready_list): New function, broken out of
6701 (schedule_block): Use it.
6703 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6705 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6707 2011-04-01 Kai Tietz <ktietz@redhat.com>
6709 * config.gcc (*-*-mingw*): Allow as option the
6710 posix threading model.
6711 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6712 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6714 (CPP_SPEC): Add pthread/no-pthread handling.
6715 (LIB_SPEC): Likewise.
6716 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6717 (LIB_SPEC): Likewise.
6718 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6719 flag to pass -pthread option for shared libgcc build.
6720 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6721 for shared libgcc build.
6722 * config/i386/t-mingw-pthread: New file.
6723 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6724 New define to enable use of library pthread by default.
6725 * config/i386/mingw.opt (pthread): New driver option.
6726 (no-pthread): New driver option.
6727 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6728 * config/i386/mingw-w64.opt: Likewise.
6730 2011-04-01 Gary Funck <gary@intrepid.com>
6732 * c-decl.c (grokdeclarator): Fix formatting.
6734 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6736 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6737 instead of n_operands.
6738 (set_storage_via_setmem): Likewise.
6739 * optabs.c (maybe_gen_insn): Likewise.
6740 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6741 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6742 (mips_expand_builtin_direct): Likewise.
6743 * config/spu/spu.c (expand_builtin_args): Likewise.
6745 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6747 * recog.h (insn_data_d): Add n_generator_args.
6748 * genoutput.c (data): Likewise.
6749 (output_insn_data): Print it.
6750 (max_opno, num_dups): Delete.
6751 (scan_operands): Just fill in "d->operand[...]".
6752 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6754 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6756 * gensupport.h (pattern_stats): New structure.
6757 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6758 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6759 (max_operand_1, max_operand_vec): Delete.
6760 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6762 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6764 * emit-rtl.c (emit_pattern_after_setloc): New function.
6765 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6766 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6767 (emit_pattern_after): New function.
6768 (emit_insn_after, emit_jump_insn_after): Call it.
6769 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6770 (emit_pattern_before_setloc): New function.
6771 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6772 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6774 (emit_pattern_before): New function.
6775 (emit_insn_before, emit_jump_insn_before): Call it.
6776 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6778 2011-03-31 Richard Henderson <rth@redhat.com>
6780 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6781 (dw_separate_line_info_entry): Remove.
6782 (enum dw_line_info_opcode): New.
6783 (dw_line_info_entry): Use it.
6784 (dw_line_info_table, dw_line_info_table_p): New.
6785 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6786 (line_info_table, line_info_label_num): Remove.
6787 (line_info_table_in_use): Remove.
6788 (separate_line_info_table): Remove.
6789 (separate_line_info_table_allocated): Remove.
6790 (separate_line_info_table_in_use): Remove.
6791 (LINE_INFO_TABLE_INCREMENT): Remove.
6792 (line_info_label_num): New.
6793 (cur_line_info_table): New.
6794 (text_section_line_info, cold_text_section_line_info): New.
6795 (separate_line_info): New.
6796 (SEPARATE_LINE_CODE_LABEL): Remove.
6797 (print_dwarf_line_table): Remove.
6798 (debug_dwarf): Don't dump it.
6799 (output_one_line_info_table): New.
6800 (output_line_info): Use it.
6801 (new_line_info_table): New.
6802 (set_cur_line_info_table): New.
6803 (dwarf2out_switch_text_section): Use it.
6804 (dwarf2out_begin_function): Likewise.
6805 (push_dw_line_info_entry): New.
6806 (dwarf2out_source_line): Rewrite for new line info tables.
6807 (dwarf2out_init): Remove dead initailizations.
6809 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6811 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6813 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6814 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6815 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6816 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6817 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6818 * opt-functions.awk (flag_init, switch_bit_fields): New.
6819 (switch_flags): Don't handle flags moved to bit-fields. Don't
6820 generate CL_MISSING_OK or CL_SAVE.
6821 * optc-gen.awk: Update to generate bit-field output as well as
6823 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6824 bit-field instead of CL_REJECT_DRIVER flag.
6825 * opts-common.c (generate_canonical_option,
6826 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6827 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6828 instead of CL_REJECT_NEGATIVE flag.
6829 * toplev.c (print_switch_values): Use cl_report bit-field instead
6832 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6834 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6835 a zero minimum index only if it is redundant.
6837 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6839 PR rtl-optimization/48381
6840 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6841 instead of ira_class_hard_reg_index for calculating conflicting
6844 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6846 * cprop.c: Clean up hash table building.
6847 (reg_avail_info): Remove.
6848 (oprs_available_p): Remove.
6849 (record_last_reg_set_info): Remove.
6850 (record_last_set_info): Remove.
6851 (reg_available_p): New function.
6852 (gcse_constant_p): Do not treat unfolded conditions as constants.
6853 (make_set_regs_unavailable): New function.
6854 (hash_scan_set): Simplify with new reg_available_p.
6855 (compute_hash_table_work): Traverse insns stream only once.
6856 Do not compute reg_avail_info. Traverse insns in reverse order.
6857 Record implicit sets after recording explicit sets from the block.
6859 2011-03-31 Michael Matz <matz@suse.de>
6861 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6863 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6865 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6866 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6867 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6868 (h8300_mode_dependent_address_p): New function.
6869 (h8300_get_index): Make static.
6871 2011-03-31 Jeff Law <law@redhat.com>
6873 * reload1.c (elimination_effects): Fix typo in recent change.
6875 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6876 typo potentially leading to null pointer dereference.
6878 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6879 (setup_save_areas): Corresponding changes to avoid useless
6882 * jump.c (reversed_comparison_code_parts): Avoid successive return
6883 statements when REVERSE_CONDITION is defined.
6885 * expr.c (expand_assignment): Avoid useless assignments.
6886 (expand_expr_real_1): Likewise.
6887 (expand_expr_real_2): Avoid useless statements.
6889 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6891 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6893 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6896 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6898 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6901 * doc/tm.texi.in (TARGET_VERSION): Remove.
6902 * doc/tm.texi: Regenerate.
6903 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6904 * collect2.c (main): Don't use TARGET_VERSION.
6905 * mips-tdump.c (main): Don't use TARGET_VERSION.
6906 * mips-tfile.c (main): Don't use TARGET_VERSION.
6907 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6908 * config/rs6000/vxworksae.h: Remove.
6909 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6910 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6911 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6912 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6913 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6914 * config/arm/arm.h (TARGET_VERSION): Remove.
6915 * config/arm/coff.h (TARGET_VERSION): Remove.
6916 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6917 * config/arm/elf.h (TARGET_VERSION): Remove.
6918 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6919 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6920 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6921 * config/arm/pe.h (TARGET_VERSION): Remove.
6922 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6923 * config/arm/semi.h (TARGET_VERSION): Remove.
6924 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6925 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6926 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6927 * config/avr/avr.h (TARGET_VERSION): Remove.
6928 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6929 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6930 * config/frv/frv.h (TARGET_VERSION): Remove.
6931 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6932 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6933 * config/i386/darwin.h (TARGET_VERSION): Remove.
6934 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6935 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6936 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6937 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6938 * config/i386/gnu.h (TARGET_VERSION): Remove.
6939 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6940 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6941 * config/i386/linux.h (TARGET_VERSION): Remove.
6942 * config/i386/linux64.h (TARGET_VERSION): Remove.
6943 * config/i386/lynx.h (TARGET_VERSION): Remove.
6944 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6945 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6946 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6947 * config/i386/netware.h (TARGET_VERSION): Remove.
6948 * config/i386/nto.h (TARGET_VERSION): Remove.
6949 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6950 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6951 * config/ia64/elf.h (TARGET_VERSION): Remove.
6952 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6953 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6954 * config/ia64/linux.h (TARGET_VERSION): Remove.
6955 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6956 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6957 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6958 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6959 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6960 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6961 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6962 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6963 * config/m68k/linux.h (TARGET_VERSION): Remove.
6964 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6965 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6966 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6967 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6968 * config/mep/mep.h (TARGET_VERSION): Remove.
6969 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6970 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6971 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6972 * config/mips/linux.h (TARGET_VERSION): Remove.
6973 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6974 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6975 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6976 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6977 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6978 * config/pa/pa.h (TARGET_VERSION): Remove.
6979 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6980 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6981 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6982 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6983 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6984 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6985 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6986 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6987 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6988 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6989 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6990 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6991 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6992 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6993 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6994 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6995 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6996 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6997 * config/s390/linux.h (TARGET_VERSION): Remove.
6998 * config/s390/s390.h (TARGET_VERSION): Remove.
6999 * config/s390/tpf.h (TARGET_VERSION): Remove.
7000 * config/score/score.h (TARGET_VERSION): Remove.
7001 * config/sh/linux.h (TARGET_VERSION): Remove.
7002 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7003 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7004 * config/sh/sh.h (TARGET_VERSION): Remove.
7005 * config/sh/sh64.h (TARGET_VERSION): Remove.
7006 * config/sh/superh.h (TARGET_VERSION): Remove.
7007 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7008 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7009 * config/sparc/linux.h (TARGET_VERSION): Remove.
7010 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7011 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7012 TARGET_NAME32, TARGET_NAME): Remove.
7013 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7014 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7015 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7016 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7017 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7018 * config/spu/spu.h (TARGET_VERSION): Remove.
7019 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7020 * config/v850/v850.h (TARGET_VERSION): Remove.
7021 * config/vax/linux.h (TARGET_VERSION): Remove.
7022 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7023 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7024 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7026 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7029 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7030 frame-related from frame-unrelated adjustments to the stack pointer.
7032 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7034 * common.opt (fdebug-types-section): Move earlier.
7035 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7037 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7039 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7042 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7044 * tree.h (CASE_CHAIN): Define.
7045 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7046 (gimple_redirect_edge_and_branch): Likewise.
7048 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7051 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7054 2011-03-30 Jeff Law <law@redhat.com>
7056 * PR bootstrap/48371
7057 * reload1.c (reload): Fix botch in last change.
7059 * reload.h (struct reload): Fix typo introduced in last change.
7061 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7063 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7064 Undocumented. Remove help text.
7065 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7068 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7070 * doc/options.texi (NegativeAlias): Document.
7071 (Alias): Mention NegativeAlias.
7072 * opt-functions.awk: Handle NegativeAlias.
7073 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7074 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7075 * opts.h (CL_NEGATIVE_ALIAS): Define.
7076 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7077 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7079 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7081 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7082 mno-spe and mno-isel instead of mspe=no and -misel=no.
7084 2011-03-29 Mark Wielaard <mjw@redhat.com>
7086 * common.opt (fdebug-types-section): New flag.
7087 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7088 * dwarf2out.c (use_debug_types): New define.
7089 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7090 (print_die): Guard output of type unit signatures using
7092 (build_abbrev_table): Replace assert of dwarf_version >= 4
7093 with assert on use_debug_types.
7094 (size_of_die): Likewise.
7095 (unmark_dies): Likewise.
7096 (value_format): Decide AT_ref_external form on use_debug_types.
7097 (output_die): Replace dwarf_version version check guard with
7098 use_debug_types where appropriate.
7099 (modified_type_die): Likewise.
7100 (gen_reference_type_die): Likewise.
7101 (dwarf2out_start_source_file): Likewise.
7102 (dwarf2out_end_source_file): Likewise.
7103 (prune_unused_types_walk_attribs): Likewise.
7104 (dwarf2out_finish): Likewise.
7106 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7108 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7110 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7112 PR rtl-optimization/48332
7113 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7114 mode of input operand N and modeN to its actual mode.
7116 2011-03-30 Jeff Law <law@redhat.com>
7118 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7119 define accessor macro.
7120 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7121 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7122 (reg_equiv_init): Likewise.
7123 (reg_equivs_size): New variable.
7124 (reg_equiv_init_size): Remove.
7125 (allocate_initial_values): Move prototype to here from....
7126 * integrate.h (allocate_initial_values): Remove prototype.
7127 * integrate.c: Include reload.h.
7128 (allocate_initial_values): Corresponding changes.
7129 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7130 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7131 (update_equiv_regs): Corresponding changes.
7132 (ira): Corresponding changes.
7133 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7134 (push_secondary_reload): Corresponding changes.
7135 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7136 (make_memloc, find_reloads_address): Corresponding changes.
7137 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7138 (find_reloads_address_1): Corresponding changes.
7139 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7140 (refers_to_regno_for_reload_p): Corresponding changes.
7141 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7142 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7143 * reload1.c: Include ggc.h.
7144 (grow_reg_equivs): New function.
7145 (replace_pseudos_in, reload): Corresponding changes.
7146 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7147 (eliminate_regs_1, elimination_effects): Corresponding changes.
7148 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7149 (delete_output_reload): Likewise.
7150 * caller-save.c (mark_referenced_regs): Corresponding changes.
7151 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7152 * frv/predicates.md (frv_load_operand): Corresponding changes.
7153 * microblaze/microblaze.c (double_memory_operand): Corresponding
7155 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7156 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7157 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7158 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7159 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7161 * pa/pa.c (emit_move_sequence): Corresponding changes.
7162 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7164 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7167 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7168 structure modes. Don't check neon_vector_mem_operand for
7169 vector or structure modes.
7171 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7172 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7175 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7176 operand 1 and reshuffle the operands to match.
7177 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7179 2011-03-30 Christian Schüler <cschueler@gmx.de>
7182 * config/c.opt (F): Added 'Driver' to -F option.
7185 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7187 * config/darwin.opt: Added '-arch' option.
7189 2011-03-30 Nick Clifton <nickc@redhat.com>
7191 * config/rx/rx.md: Add peepholes and patterns to combine
7192 extending loads and simple arithmetic instructions.
7193 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7194 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7195 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7196 modes to use pre-decrement and post-increment addressing.
7197 (rx_is_restricted_memory_address): Add range checking of REG+INT
7199 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7200 (rx_memory_move_cost): Adjust cost of stores.
7201 (rx_adjust_insn_length): New function.
7203 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7206 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7207 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7208 matching arg00/arg01 types.
7210 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7212 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7213 last_location to UNKNOWN_LOCATION.
7215 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7218 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7221 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7222 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7225 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7227 (sparc_cpu): Likewise.
7228 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7231 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7235 PR rtl-optimization/48345
7236 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7237 hard regs for given mode from profitable regs when doing secondary
7240 2011-03-29 Jeff Law <law@redhat.com>
7243 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7244 do_not_duplicate field.
7245 (lookup_redirection_data): Corresponding changes.
7246 (create_duplicates): Always create a template block.
7247 (redirect_edges): Remove code which reused the original block
7248 when it was going to become unreachable code.
7249 (thread_block): Don't set do_not_duplicate field.
7251 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7253 * lto-opts.c (register_user_option_p, lto_register_user_option):
7254 Make type argument unsigned.
7255 * lto-streamer.h (lto_register_user_option): Make type argument
7257 * opth-gen.awk: Make CL_* macros unsigned.
7258 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7259 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7260 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7261 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7262 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7263 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7264 (find_opt): Make lang_mask argument unsigned.
7266 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7268 PR rtl-optimization/48331
7269 PR rtl-optimization/48334
7270 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7271 for any used algorithm.
7273 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7275 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7278 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7280 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7281 (alpha_option_override): Don't set alpha_sr_alias_set.
7282 (emit_frame_store_1): Use gen_frame_mem rather than calling
7284 (alpha_expand_epilogue): Ditto.
7286 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7288 PR tree-optimization/48290
7289 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7290 vectorization, check that relevant phis in the basic block after
7291 the inner loop are really inner loop's exit phis.
7293 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7296 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7297 (cached_dw_loc_list_def): New structure.
7298 (cached_dw_loc_list): New typedef.
7299 (cached_dw_loc_list_table): New variable.
7300 (cached_dw_loc_list_table_hash): New function.
7301 (cached_dw_loc_list_table_eq): Likewise.
7302 (add_location_or_const_value_attribute): Take a bool cache_p.
7303 Cache the list when the parameter is true.
7304 (gen_formal_parameter_die): Update caller.
7305 (gen_variable_die): Likewise.
7306 (dwarf2out_finish): Likewise.
7307 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7308 while generating debug info for the decl.
7309 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7310 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7311 (resolve_addr): Cache the result of resolving a chain of
7314 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7316 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7317 conflict object hard regset nodes have intersecting hard reg sets.
7319 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7320 after regstat_init_n_sets_and_refs.
7322 * ira.c: Add more comments at the top.
7323 (setup_stack_reg_pressure_class, setup_pressure_classes):
7324 Add comments how we compute the register pressure classes.
7325 (setup_allocno_and_important_classes): Add more comments.
7326 (setup_class_translate_array, reorder_important_classes)
7327 (setup_reg_class_relations): Add comments.
7329 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7332 * ira-color.c: Add 2011 to the Copyright line.
7333 (assign_hard_reg): Add more comments.
7334 (improve_allocation): Ditto.
7336 * ira-costs.c: Add 2011 to the Copyright line.
7337 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7339 (setup_regno_cost_classes_by_mode): Ditto.
7341 Initial patches from ira-improv branch:
7343 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7345 * ira-build.c (ira_create_object): Remove initialization of
7346 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7347 (ira_create_allocno): Remove initialization of
7348 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7349 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7350 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7351 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7352 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7353 Initialize ALLOCNO_ADD_DATA.
7354 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7355 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7357 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7358 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7360 * ira.c (ira_reallocate): Remove.
7361 (setup_pressure_classes): Call
7362 ira_init_register_move_cost_if_necessary. Use
7363 ira_register_move_cost instead of ira_get_register_move_cost.
7364 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7365 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7367 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7368 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7369 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7370 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7371 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7372 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7374 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7375 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7376 (struct allocno_color_data): New.
7377 (allocno_color_data_t): New typedef.
7378 (allocno_color_data): New definition.
7379 (ALLOCNO_COLOR_DATA): New macro.
7380 (struct object_color_data): New.
7381 (object_color_data_t): New typedef.
7382 (object_color_data): New definition.
7383 (OBJECT_COLOR_DATA): New macro.
7384 (update_copy_costs, calculate_allocno_spill_cost): Call
7385 ira_init_register_move_cost_if_necessary. Use
7386 ira_register_move_cost instead of ira_get_register_move_cost.
7387 (move_spill_restore, update_curr_costs): Ditto.
7388 (allocno_spill_priority): Make it inline.
7389 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7390 (struct coalesce_data, coalesce_data_t): New.
7391 (allocno_coalesce_data): New definition.
7392 (ALLOCNO_COALESCE_DATA): New macro.
7393 (merge_allocnos, coalesced_allocno_conflict_p): Use
7394 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7395 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7396 (coalesce_allocnos): Ditto.
7397 (setup_coalesced_allocno_costs_and_nums): Ditto.
7398 (collect_spilled_coalesced_allocnos): Ditto.
7399 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7400 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7401 (coalesce_spill_slots): Ditto.
7402 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7403 free allocno_coalesce_data.
7405 * ira-conflicts.c: Fix formatting.
7406 (process_regs_for_copy): Call
7407 ira_init_register_move_cost_if_necessary. Use
7408 ira_register_move_cost instead of ira_get_register_move_cost.
7409 (build_object_conflicts): Optimize.
7411 * ira-costs.c (record_reg_classes): Optimize. Call
7412 ira_init_register_move_cost_if_necessary. Use
7413 ira_register_move_cost, ira_may_move_in_cost, and
7414 ira_may_move_out_cost instead of ira_get_register_move_cost and
7415 ira_get_may_move_cost.
7416 (record_address_regs): Ditto.
7417 (scan_one_insn): Optimize.
7418 (find_costs_and_classes): Optimize.
7419 (process_bb_node_for_hard_reg_moves): Call
7420 ira_init_register_move_cost_if_necessary. Use
7421 ira_register_move_cost instead of ira_get_register_move_cost.
7423 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7424 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7425 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7426 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7428 (ira_initiate_emit_data, ira_finish_emit_data)
7429 (create_new_allocno): New functions.
7430 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7431 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7432 Use ira_register_move_cost instead of ira_get_register_move_cost.
7434 * ira-int.h: Fix some comments.
7435 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7436 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7437 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7438 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7440 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7441 bitfield after mode. Make hard_regno a short int. Make
7442 hard_regno short. Remove first_coalesced_allocno and
7443 next_coalesced_allocno. Move mem_optimized_dest_p,
7444 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7445 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7446 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7447 temp, colorable_p. Add new member add_data.
7448 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7449 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7450 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7451 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7452 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7453 (ALLOCNO_ADD_DATA): New macro.
7454 (ira_emit_data_t): New typedef.
7455 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7456 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7457 from struct ira_allocno.
7458 (ALLOCNO_EMIT_DATA): New macro.
7459 (ira_allocno_emit_data, allocno_emit_reg): New.
7460 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7461 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7462 (OBJECT_ADD_DATA): New macro.
7463 (ira_reallocate): Remove.
7464 (ira_initiate_emit_data, ira_finish_emit_data): New.
7465 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7466 (ira_init_register_move_cost_if_necessary): New.
7467 (ira_object_conflict_iter_next): Merge into
7468 ira_object_conflict_iter_cond.
7469 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7471 * ira-live.c (process_single_reg_class_operands): Call
7472 ira_init_register_move_cost_if_necessary. Use
7473 ira_register_move_cost instead of ira_get_register_move_cost.
7475 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7477 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7479 * ira-costs.c: Fix formatting.
7480 (cost_classes, cost_classes_num): Remove.
7481 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7482 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7483 (cost_classes_del, cost_classes_htab): New.
7484 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7485 (initiate_regno_cost_classes, setup_cost_classes): New.
7486 (setup_regno_cost_classes_by_aclass): New.
7487 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7488 (record_reg_classes): Use regno_cost_classes instead of
7489 cost_classes. Move checking opposite operand up.
7490 (record_address_regs): Use regno_cost_classes
7491 instead of cost_classes.
7492 (scan_one_insn): Ditto. Use always general register.
7493 (print_allocno_costs): Use regno_cost_classes instead of
7495 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7496 (find_costs_and_classes): Set up cost classes for each registers.
7497 Use also their mode for this. Use regno_cost_classes instead of
7499 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7501 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7502 (ira_costs, ira_set_pseudo_classes): Call
7503 initiate_regno_cost_classes and finish_regno_cost_classes.
7505 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7507 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7509 * target.def (ira_cover_classes): Remove.
7511 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7513 * doc/tm.texi.in: Ditto.
7515 * ira-conflicts.c: Remove mentioning cover classes from the file.
7516 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7517 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7519 * targhooks.c (default_ira_cover_classes): Remove.
7521 * targhooks.h (default_ira_cover_classes): Ditto.
7523 * haifa-sched.c: Remove mentioning cover classes from the file.
7524 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7525 ira_pressure_classes and ira_pressure_classes_num instead of
7526 ira_reg_class_cover_size and ira_reg_class_cover. Use
7527 sched_regno_pressure_class instead of sched_regno_cover_class.
7528 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7529 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7531 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7532 classes from the file.
7533 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7534 (struct object_hard_regs, struct object_hard_regs_node): New.
7535 (struct ira_object): New members profitable_hard_regs,
7536 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7537 (struct ira_allocno): Rename cover_class to aclass. Rename
7538 cover_class_cost and updated_cover_class_cost to class_cost and
7539 updated_class_cost. Remove splay_removed_p and
7540 left_conflict_size. Add new members colorable_p.
7541 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7542 (ALLOCNO_COLORABLE_P): New macro.
7543 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7544 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7545 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7546 (OBJECT_...): Rename parameter C to O.
7547 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7548 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7549 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7550 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7551 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7552 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7553 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7554 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7555 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7556 x_ira_reg_class_subunion.
7557 (ira_max_memory_move_cost, ira_max_register_move_cost)
7558 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7559 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7560 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7561 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7562 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7563 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7564 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7565 (ira_tune_allocno_costs_and_cover_classes): Rename to
7566 ira_tune_allocno_costs.
7567 (ira_debug_hard_regs_forest): New.
7568 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7569 (ira_object_conflict_iter_next): Fix comments.
7570 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7571 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7572 cover_class to aclass.
7573 (ira_allocate_and_accumulate_costs): Ditto.
7574 (ira_allocate_and_set_or_copy_costs): Ditto.
7576 * opts.c (decode_options): Remove ira_cover_class check.
7578 * ira-color.c: Remove mentioning cover classes from the file. Use
7579 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7580 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7581 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7582 (splay-tree.h): Remove include.
7583 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7584 before copy_freq_compare_func.
7585 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7586 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7588 (hard_regs_roots, hard_regs_node_vec): Ditto.
7589 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7590 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7591 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7592 (create_new_object_hard_regs_node): Ditto.
7593 (add_new_object_hard_regs_node_to_forest): Ditto.
7594 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7595 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7597 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7598 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7599 (remove_unused_object_hard_regs_nodes): Ditto.
7600 (enumerate_object_hard_regs_nodes): Ditto.
7601 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7602 (object_hard_regs_subnode_t): Ditto.
7603 (struct object_hard_regs_subnode): Ditto.
7604 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7605 (setup_object_hard_regs_subnode_index): Ditto.
7606 (get_object_hard_regs_subnodes_num): Ditto.
7607 (form_object_hard_regs_nodes_forest): Ditto.
7608 (finish_object_hard_regs_nodes_tree): Ditto.
7609 (finish_object_hard_regs_nodes_forest): Ditto.
7610 (allocnos_have_intersected_live_ranges_p): Rename to
7611 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7612 (pseudos_have_intersected_live_ranges_p): Rename to
7613 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7614 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7615 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7616 (update_copy_costs): Remove assert. Skip cost update if the hard
7617 reg does not belong the class.
7618 (assign_hard_reg): Process only profitable hard regs.
7619 (uncolorable_allocnos_num): Make it scalar.
7620 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7621 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7622 and ira_reg_class_max_nregs.
7623 (bucket_allocno_compare_func): Check frequency first.
7624 (sort_bucket): Add compare function as a parameter.
7625 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7626 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7627 (push_allocno_to_stack): Rewrite for checking new allocno
7629 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7630 (push_only_colorable): Pass new parameter to sort_bucket.
7631 (push_allocno_to_spill): Remove.
7632 (allocno_spill_priority_compare): Make it inline and rewrite.
7633 (splay_tree_allocate, splay_tree_free): Remove.
7634 (allocno_spill_sort_compare): New function.
7635 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7636 build and use splay tree. Choose first allocno in uncolorable
7637 allocno bucket to spill. Remove setting spill cost.
7638 (all_conflicting_hard_regs): Remove.
7639 (setup_allocno_available_regs_num): Check only profitable hard
7640 regs. Print info about hard regs nodes.
7641 (setup_allocno_left_conflicts_size): Remove.
7642 (put_allocno_into_bucket): Don't call
7643 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7644 (improve_allocation): New.
7645 (color_allocnos): Call setup_profitable_hard_regs,
7646 form_object_hard_regs_nodes_forest, improve_allocation,
7647 finish_object_hard_regs_nodes_forest. Setup spill cost.
7648 (print_loop_title): Use pressure classes.
7649 (color_allocnso): Ditto.
7650 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7651 and allocnos_for_spilling.
7652 (ira_sort_regnos_for_alter_reg): Don't setup members
7653 {first,next}_coalesced_allocno.
7654 (color): Remove allocating and freeing removed_splay_allocno_vec.
7655 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7656 prohibited_class_mode_regs.
7658 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7660 (update_allocno_pressure_excess_length): Use pressure classes.
7661 (inc_register_pressure, dec_register_pressure): Check for pressure
7663 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7664 pressure class. Use ira_reg_class_nregs instead of
7665 ira_reg_class_max_nregs.
7666 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7667 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7668 (single_reg_class): Use ira_reg_class_nregs instead of
7669 ira_reg_class_max_nregs.
7670 (process_bb_node_lives): Use pressure classes.
7672 * ira-emit.c: Remove mentioning cover classes from the file. Use
7673 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7674 (change_loop): Use pressure classes.
7675 (modify_move_list): Call ira_set_allocno_class instead of
7676 ira_set_allocno_cover_class.
7678 * ira-build.c: Remove mentioning cover classes from the file. Use
7679 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7680 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7681 ALLOCNO_UPDATED_CLASS_COST instead of
7682 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7683 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7684 (ira_create_allocno): Remove initialization of
7685 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7686 ALLOCNO_COLORABLE_P.
7687 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7688 Update conflict regs for the objects.
7689 (create_cap_allocno): Remove assert. Don't propagate
7690 ALLOCNO_AVAILABLE_REGS_NUM.
7691 (ira_free_allocno_costs): New function.
7692 (finish_allocno): Change a part of code into call of
7693 ira_free_allocno_costs.
7694 (low_pressure_loop_node_p): Use pressure classes.
7695 (object_range_compare_func): Don't compare classes.
7696 (setup_min_max_conflict_allocno_ids): Ditto.
7698 * loop-invariant.c: Remove mentioning cover classes from the file.
7699 Use ira_pressure_classes and ira_pressure_classes_num instead of
7700 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7701 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7702 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7703 Use reg_allocno_class instead of reg_cover_class.
7704 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7705 STACK_REG_COVER_CLASS.
7706 (get_regno_cover_class): Rename to get_regno_pressure_class.
7707 (move_loop_invariants): Initialize and finalize regstat.
7709 * ira.c: Remove mentioning cover classes from the file. Add
7710 comments about coloring without cover classes. Use ALLOCNO_CLASS
7711 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7712 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7713 setup_class_subset_and_memory_move_costs.
7714 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7715 (setup_cover_and_important_classes): Rename to
7716 setup_allocno_and_important_classes.
7717 (setup_class_translate_array): New.
7718 (setup_class_translate): Call it for allocno and pressure classes.
7719 (cover_class_order): Rename to allocno_class_order.
7720 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7721 of ira_class_translate.
7722 (reorder_important_classes): Set up ira_important_class_nums.
7723 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7724 (print_class_cover): Rename to print_classes. Add parameter.
7725 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7726 Print pressure classes too.
7727 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7728 setup_reg_subclasses.
7729 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7730 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7731 (setup_prohibited_class_mode_regs): Use
7732 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7733 (clarify_prohibited_class_mode_regs): New function.
7734 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7735 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7736 (ira_init_once): Initialize them.
7737 (free_register_move_costs): Process them.
7738 (ira_init): Move calls of find_reg_classes and
7739 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7740 Call clarify_prohibited_class_mode_regs.
7741 (ira_no_alloc_reg): Remove.
7742 (too_high_register_pressure_p): Use pressure classes.
7744 * sched-deps.c: Remove mentioning cover classes from the file.
7745 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7746 ira_pressure_classes and ira_pressure_classes_num instead of
7747 ira_reg_class_cover_size and ira_reg_class_cover.
7748 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7749 sched_regno_pressure_class instead of sched_regno_cover_class.
7750 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7751 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7753 * ira.h: Add 2010 to Copyright.
7754 (ira_no_alloc_reg): Remove external.
7755 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7756 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7757 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7758 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7759 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7760 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7761 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7762 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7763 x_ira_no_alloc_regs.
7764 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7765 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7766 ira_allocno_classes_num and ira_allocno_classes.
7767 (ira_class_translate): Rename to ira_allocno_class_translate.
7768 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7769 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7770 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7771 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7772 (ira_no_alloc_regs): New.
7774 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7775 classes from the file. Use ALLOCNO_CLASS instead of
7776 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7777 ALLOCNO_COVER_CLASS_COST.
7778 (regno_cover_class): Rename to regno_aclass.
7779 (record_reg_classes): Use ira_reg_class_subunion instead of
7780 ira_reg_class_union.
7781 (record_address_regs): Check overflow.
7782 (scan_one_insn): Ditto.
7783 (print_allocno_costs): Print total mem cost fore regional allocation.
7784 (print_pseudo_costs): Use REG_N_REFS.
7785 (find_costs_and_classes): Use classes intersected with them on the
7786 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7787 ira_reg_class_union. Use ira_allocno_class_translate and
7788 regno_aclass instead of ira_class_translate and regno_cover_class.
7789 Modify code for finding regno_aclass. Setup preferred classes for
7791 (setup_allocno_cover_class_and_costs): Rename to
7792 setup_allocno_class_and_costs. Use regno_aclass instead of
7793 regno_cover_class. Use ira_set_allocno_class instead of
7794 ira_set_allocno_cover_class.
7795 (init_costs, finish_costs): Use regno_aclass instead of
7797 (ira_costs): Use setup_allocno_class_and_costs instead of
7798 setup_allocno_cover_class_and_costs.
7799 (ira_tune_allocno_costs_and_cover_classes): Rename to
7800 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7801 by processing objects. Use ira_reg_class_max_nregs instead of
7802 ira_reg_class_nregs.
7804 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7806 * sched-int.h: Remove mentioning cover classes from the file.
7807 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7809 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7810 classes from the file.
7811 (struct reg_pref): Rename coverclass into allocnoclass.
7812 (reg_cover_class): Rename to reg_allocno_class.
7814 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7816 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7818 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7820 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7822 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7824 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7826 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7828 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7830 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7832 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7834 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7835 (i386_ira_cover_classes): Ditto.
7837 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7839 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7841 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7843 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7845 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7847 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7849 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7850 (mips_ira_cover_classes): Ditto.
7852 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7854 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7856 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7858 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7860 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7862 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7863 (IRA_COVER_CLASSES_VSX): Ditto.
7865 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7866 (rs6000_ira_cover_classes): Ditto.
7868 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7870 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7872 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7874 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7876 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7878 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7880 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7882 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7884 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7886 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7888 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7891 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7892 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7893 dw_fde_unlikely_section_end_label, cold_in_std_section,
7894 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7895 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7897 (output_fde): Use dw_fde_second_{begin,end} if second is
7898 true, otherwise dw_fde_{begin,end}.
7899 (output_call_frame_info): Test dw_fde_second_begin != NULL
7900 instead of dw_fde_switched_sections.
7901 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7902 fields, initialize new fields. Initialize in_std_section
7903 unconditionally from the first partition.
7904 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7905 dw_fde_second_begin is non-NULL.
7906 (dwarf2out_switch_text_section): Stop initializing removed
7907 dw_fde_struct fields, initialize new fields, initialize
7908 also dw_fde_end here. Set dw_fde_switch_cfi even when
7909 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7910 (struct var_loc_list_def): Add last_before_switch field.
7911 (arange_table, arange_table_allocated, arange_table_in_use,
7912 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7913 (size_of_aranges): Count !in_std_section and !second_in_std_section
7914 hunks in fdes, instead of looking at arange_table_in_use.
7915 (output_aranges): Add aranges_length argument, don't call
7916 size_of_aranges here. Instead of using aranges_table*
7917 emit ranges for fdes when !in_std_section resp.
7918 !second_in_std_section.
7919 (dw_loc_list): Break ranges crossing section switch.
7920 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7921 use dw_fde_second_end instead of dw_fde_end as end of last range.
7922 (gen_subprogram_die): Don't call add_arange. Use
7923 dw_fde_{begin,end} for first partition and if switched
7924 section dw_fde_second_{begin,end} for the second.
7925 (var_location_switch_text_section_1,
7926 var_location_switch_text_section): New functions.
7927 (dwarf2out_begin_function): Initialize cold_text_section even
7928 when function_section () isn't text_section.
7929 (prune_unused_types): Don't walk arange_table.
7930 (dwarf2out_finish): Don't needlessly test
7931 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7932 If info_section_emitted, call size_of_aranges and if it indicates
7933 non-empty .debug_aranges, call output_aranges with the computed
7934 size. Stop using removed dw_fde_struct fields, use
7935 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7939 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7940 create ENTRY_VALUE if incoming or address of incoming's MEM
7942 * dwarf2out.c (mem_loc_descriptor): Don't emit
7943 DW_OP_GNU_entry_value of DW_OP_fbreg.
7944 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7945 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7946 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7947 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7949 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7950 is a REG_P or MEM_P with REG_P address, compute hash directly
7951 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7952 (preserve_only_constants): Don't clear VALUES forwaring
7953 ENTRY_VALUE to some other VALUE.
7955 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7957 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7960 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7962 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7963 block before expanding the statement.
7964 (expand_gimple_stmt_1): Likewise. Set them here...
7965 (expand_gimple_stmt): ...and not here. Tidy.
7966 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7969 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7971 * Makefile.in: New rule for cprop.o.
7972 * gcse.c: Move constant/copy propagation to cprop.c.
7973 (compute_local_properties): Only handle expression tables.
7974 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7975 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7976 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7977 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7978 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7979 compute_cprop_data, find_used_regs, try_replace_reg,
7980 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7981 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7982 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7983 find_bypass_set, reg_killed_on_edge, bypass_block,
7984 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7985 execute_rtl_cprop, pass_rtl_cprop): Move to...
7986 * cprop.c: ...here. New file, constant/copy propagation for RTL
7987 moved from gcse.c to here with minor cleanups in duplicated code.
7989 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7991 * config/i386/i386.c (flag_opts): Fix a typo in
7992 -mavx256-split-unaligned-store.
7994 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7996 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7997 LIBCALL_VALUE): Remove macros.
7998 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7999 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8000 (h8300_function_value, h8300_libcall_value,
8001 h8300_function_value_regno_p): New functions.
8003 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8005 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8007 2011-03-28 Jeff Law <law@redhat.com>
8009 * tree-ssa-threadupdate.c (redirect_edges): Call
8010 create_edge_and_update_destination_phis as needed.
8011 (create_edge_and_update_destination_phis): Accept new BB argument.
8012 All callers updated.
8013 (thread_block): Do not update the profile when threading around
8014 intermediate blocks.
8015 (thread_single_edge): Likewise.
8016 (determine_bb_domination_status): If BB is not a successor of the
8017 loop header, return NONDOMINATING.
8018 (register_jump_thread): Note when we register a jump thread around
8019 an intermediate block.
8020 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8021 (thread_across_edge): Use it.
8023 2011-03-28 Tristan Gingold <gingold@adacore.com>
8025 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8026 when for_return is 2.
8028 2011-03-28 Jeff Law <law@redhat.com>
8030 * var-tracking.c (canonicalize_values_mark): Delete unused
8032 (canonicalize_values_star, set_variable_part): Likewise.
8033 (clobber_variable_part, delete_variable_part): Likewise.
8035 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8037 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8039 2011-03-28 Martin Jambor <mjambor@suse.cz>
8041 * tree-inline.c (expand_call_inline): Do not check that destination
8043 (optimize_inline_calls): Assert that destination node is analyzed.
8044 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8045 not call tree_lowering_passes.
8046 * cgraph.h (cgraph_analyze_function): Declare.
8047 * cgraphunit.c (cgraph_analyze_function): Make public.
8049 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8051 * config/sparc/sparc-opts.h: New.
8052 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8053 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8054 (sparc_option_override): Store processor_type enumeration rather
8055 than string in cpu_default. Remove name and enumeration from
8056 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8057 without using sparc_select. Use target_flags_explicit instead of
8059 * config/sparc/sparc.h (enum processor_type): Move to
8061 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8062 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8063 HeaderInclude entry.
8064 (mcpu=, mtune=): Use Var and Enum.
8065 (sparc_processor_type): New Enum and EnumValue entries.
8067 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8068 Iain Sandoe <iains@gcc.gnu.org>
8071 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8073 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8075 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8076 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8077 Insert new statements at it in lieu of STMT.
8078 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8079 * tree-vect-stmts.c (vectorizable_store): Likewise.
8080 (vectorizable_load): Likewise.
8082 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8084 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8089 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8091 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8092 unaligned 256bit load/store.
8093 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8094 (*avx_movdqu<avxmodesuffix>): Likewise.
8096 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8099 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8100 * config/pa/pa.md (iordi3): Use new predicate in expander.
8103 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8105 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8106 FUNCTION_VALUE_REGNO_P): Remove macros.
8107 * config/mips/mips-protos.h (mips_function_value): Remove.
8108 * config/mips/mips.c (mips_function_value): Rename to...
8109 (mips_function_value_1): ... this. Make static. Handle receiving
8110 the function type in 'fn_decl_or_type' argument.
8111 (mips_function_value, mips_libcall_value,
8112 mips_function_value_regno_p): New function.
8113 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8114 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8116 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8118 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8119 and -mavx256-split-unaligned-store.
8120 (ix86_option_override_internal): Split 32-byte AVX unaligned
8121 load/store by default.
8122 (ix86_avx256_split_vector_move_misalign): New.
8123 (ix86_expand_vector_move_misalign): Use it.
8125 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8126 -mavx256-split-unaligned-store.
8128 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8129 256bit load/store. Generate unaligned store on misaligned memory
8131 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8133 (*avx_movdqu<avxmodesuffix>): Likewise.
8135 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8136 -mavx256-split-unaligned-store.
8138 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8141 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8144 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8146 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8147 opno arguments with an expand_operand. Use create_input_operand.
8148 (mips_prepare_builtin_target): Delete.
8149 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8151 (mips_expand_builtin_direct): Use create_output_operand and
8152 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8153 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8154 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8156 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8158 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8160 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8162 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8164 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8165 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8166 basic blocks and call commit_edge_insertions directly.
8167 (fixup_abnormal_edges): Move from here to...
8168 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8169 on the edges and return whether some have actually been inserted.
8170 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8173 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8175 PR rtl-optimization/48144
8176 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8177 (merge_expr_data): ... here.
8178 (av_set_intersect): Rename to av_set_code_motion_filter.
8179 Update all callers. Call merge_history_vect when an expression
8180 is found in both sets.
8181 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8183 2011-03-26 Alan Modra <amodra@gmail.com>
8185 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8186 cmodel medium addresses.
8187 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8188 64-bit gpr loads and stores.
8189 (rs6000_secondary_reload_ppc64): New function.
8190 * config/rs6000/rs6000-protos.h: Declare it.
8191 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8193 2011-03-26 Alan Modra <amodra@gmail.com>
8196 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8197 GNU Go in traceback table.
8199 2011-03-25 Richard Henderson <rth@redhat.com>
8201 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8202 if there are exactly 6 operands.
8203 (set_storage_via_setmem): Similarly.
8205 2011-03-25 Kai Tietz <ktietz@redhat.com>
8207 * collect2.c (write_c_file_stat): Handle backslash
8208 as right-hand directory separator.
8209 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8210 checking just for slash.
8211 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8212 instead of checking for trailing slash.
8213 * gcc.c (record_temp_file): Use filename_cmp instead
8215 (do_spec_1): Likewise.
8216 (replace_outfile_spec_function): Likewise.
8217 (is_directory): Use filename_ncmp instead of strncmp.
8218 (print_multilib_info): Likewise.
8219 * gcov.c (find_source): Use filename_cmp instead
8221 (make_gcov_file_name): Fix order of slash/backslash
8223 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8224 (add_standard_paths): Likewise.
8225 * mips-tfile.c (saber_stop): Handle backslash.
8226 * prefix.c (update_path): Use filename_ncmp instead of
8228 * profile.c (output_location): Use filename_cmp instead
8230 * read-md.c (handle_toplevel_file): Handle backslash.
8231 * tlink.c (frob_extension): Likewise.
8232 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8234 * tree-dump.c (dequeue_and_dump): Handle backslash.
8235 * tree.c (get_file_function_name): Likewise.
8236 * gengtype.c (read_input_list): Likewise.
8237 (get_file_realbasename): Likewise.
8238 (get_output_file_with_visibility): Use filename_cmp
8241 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8243 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8246 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8248 * fold-const.c (expr_location_or): New function.
8249 (fold_truth_not_expr): Call it.
8251 2011-03-25 Jeff Law <law@redhat.com>
8253 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8255 * c-family/c-common.c (def_fn_type): Likewise.
8256 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8257 * emit-rtl.c (gen_rtvec): Likewise.
8258 * lto/lto-lang.c (def_fn_type): Likewise.
8260 2011-03-25 Richard Guenther <rguenther@suse.de>
8262 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8263 also generate copies.
8264 (fini_copy_prop): Handle constant values properly.
8266 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8268 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8269 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8270 (hash_loc_operands, compare_loc_operands): Handle
8271 DW_OP_GNU_entry_value.
8273 2011-03-25 Kai Tietz <ktietz@redhat.com>
8275 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8276 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8277 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8278 comment and use macro TARGET_64BIT_MS_ABI instead.
8279 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8280 and change default behavior for 32-bit MS_ABI.
8281 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8282 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8284 (ix86_cfun_abi): Likewise.
8285 (ix86_maybe_switch_abi): Adjust comment.
8286 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8287 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8288 instead of checking for SYSV_ABI.
8289 (ix86_nsaved_sseregs): Likewise.
8290 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8292 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8293 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8294 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8295 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8296 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8298 2011-03-25 Richard Guenther <rguenther@suse.de>
8300 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8301 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8302 (verify_gimple): Remove.
8303 * tree-cfg.c (verify_gimple_call): Merge verification
8305 (verify_gimple_phi): Merge verification from verify_stmts.
8306 (verify_gimple_label): New function.
8307 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8308 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8309 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8310 (verify_stmts): Rename to verify_gimple_in_cfg.
8311 (verify_gimple_in_cfg): New function.
8312 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8313 * tree-ssa.c (verify_ssa): Likewise.
8314 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8316 2011-03-25 Richard Guenther <rguenther@suse.de>
8318 * passes.c (init_optimization_passes): Add FRE pass after
8321 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8322 Andrew Stubbs <ams@codesourcery.com>
8324 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8326 (arm_movdi_vfp_cortexa8): New pattern.
8327 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8328 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8329 instructions when tuning for Cortex-A8. Set attribute "arch".
8330 * config/arm/arm.md: Move include arm-tune.md up a bit.
8331 (define_attr "arch"): Add "onlya8" and "nota8" values.
8332 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8334 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8338 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8340 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8341 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8342 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8343 * passes.c (init_optimization_passes): Move
8344 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8346 2011-03-25 Kai Tietz <ktietz@redhat.com>
8348 * c-typeck.c (comptypes_internal): Replace target
8349 hook call of comp_type_attributes by version in tree.c file.
8350 * gimple.c (gimple_types_compatible_p_1): Likewise.
8351 * tree-ssa.c (useless_type_conversion_p): Likewise.
8352 * tree.c (build_type_attribute_qual_variant): Likewise.
8353 (attribute_value_equal): New static helper function.
8354 (comp_type_attributes): New function.
8355 (merge_attributes): Use attribute_value_equal for comparison.
8356 (attribute_list_contained): Likewise.
8357 * tree.h (comp_type_attributes): New prototype.
8359 2011-03-25 Richard Guenther <rguenther@suse.de>
8361 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8362 of complex types at -O0.
8363 (verify_gimple_assign_binary): Likewise.
8364 (verify_gimple_assign_ternary): Likewise.
8366 2011-03-24 Mark Wielaard <mjw@redhat.com>
8368 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8369 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8371 2011-03-24 Mark Wielaard <mjw@redhat.com>
8374 * dwarf2out.c (output_abbrev_section): Only write table when
8375 abbrev_die_table_in_use > 1.
8377 2011-02-24 Richard Henderson <rth@redhat.com>
8379 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8380 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8381 (alpha_expand_unaligned_load_words): Use extql.
8382 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8383 (emit_insxl): Handle all modes for consistency.
8385 2011-02-24 Richard Henderson <rth@redhat.com>
8387 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8388 (alpha_expand_unaligned_load): Likewise.
8389 (alpha_expand_unaligned_store): Likewise.
8390 (alpha_expand_unaligned_load_words): Likewise.
8391 (alpha_expand_unaligned_store_words): Likewise.
8392 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8393 (alpha_split_lock_test_and_set_12): Likewise.
8394 (print_operand, alpha_fold_builtin_extxx): Likewise.
8395 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8396 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8397 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8398 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8399 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8400 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8401 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8402 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8403 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8404 (extwl, extll, extql): Similarly.
8405 (inswh, inslh, insqh): Similarly.
8406 (mskbl, mskwl, mskll, mskql): Similarly.
8407 (mskwh, msklh, mskqh): Similarly.
8409 2011-02-24 Richard Henderson <rth@redhat.com>
8411 * config/alpha/alpha.md (attribute isa): Add er, ner.
8412 (attribute enabled): Handle them.
8413 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8415 2011-02-24 Richard Henderson <rth@redhat.com>
8417 * config/alpha/alpha.md (attribute isa): Add vms.
8418 (attribute enabled): Handle it.
8419 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8420 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8421 (*movtf): Rename from *movtf_internal for consistency.
8422 (*movsi): Merge with *movsi_nt_vms.
8423 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8424 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8425 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8426 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8428 2011-02-24 Richard Henderson <rth@redhat.com>
8430 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8431 (extendqisi2, extendhisi2): Likewise.
8432 (extendqidi2): Simplify BWX/non-BWX expansions.
8433 (extendhidi2): Similarly.
8435 2011-02-24 Richard Henderson <rth@redhat.com>
8437 * config/alpha/alpha.md (attribute isa): New.
8438 (attribute enabled): New.
8439 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8440 (zero_extendqisi2, zero_extendqidi2): Similarly.
8441 (zero_extendhisi2, zero_extendhidi2): Similarly.
8442 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8444 2011-02-24 Richard Henderson <rth@redhat.com>
8446 * config/alpha/predicates.md (input_operand): Revert last change;
8447 update comment to mention 32-bit VMS rather than Windows.
8449 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8451 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8452 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8453 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8454 * passes.c (init_optimization_passes): Move
8455 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8457 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8459 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8461 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8463 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8466 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8469 * simplify-rtx.c (simplify_const_unary_operation): Call
8470 real_convert when changing mode class with FLOAT_EXTEND.
8472 2011-03-24 Nick Clifton <nickc@redhat.com>
8474 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8475 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8476 * config/rx/rx.c (rx_option_override): Set align_jumps,
8477 align_loops and align_labels if not set by the user.
8478 (rx_align_for_label): New function.
8479 (rx_max_skip_for_label): New function.
8480 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8481 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8482 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8483 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8484 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8486 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8488 PR rtl-optimization/48263
8489 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8490 and original commutative_p handling. Use maybe_gen_insn.
8492 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8494 * reload.c (find_reloads_subreg_address): Add address_reloaded
8495 parameter and return true there if the full address has been
8497 (find_reloads_toplev): Pass address_reloaded flag.
8498 (find_reloads_address_1): Don't use address_reloaded parameter.
8500 2011-03-24 Jeff Law <law@redhat.com>
8502 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8503 unused variable "ann".
8504 (remove_unused_locals): Likewise.
8506 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8509 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8512 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8514 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8515 for invalid symbolic addresses.
8516 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8519 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8521 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8522 the argument in calls to fold_truth_not_expr.
8524 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8526 * tree.c (record_node_allocation_statistics): New function.
8527 (make_node_stat, copy_node_stat, build_string): Call it.
8528 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8529 (build1_stat, build_omp_clause): Likewise.
8531 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8533 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8536 2011-03-24 Richard Guenther <rguenther@suse.de>
8538 PR tree-optimization/48271
8539 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8540 blocks that still exist.
8542 2011-03-24 Richard Guenther <rguenther@suse.de>
8544 PR tree-optimization/48270
8545 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8546 not free datarefs before ddrs.
8548 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8550 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8551 from the address built for a reference with variable offset.
8553 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8556 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8557 alternatives that can be handled with movq or movabsq insn.
8558 (*movdf_internal): Disable for !TARGET_64BIT.
8559 (*movdf_internal_nointeger): Ditto.
8560 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8562 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8564 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8565 (FUNCTION_ARG_ADVANCE): Likewise.
8566 * tm.texi.in: Change references to them to hook references.
8567 * tm.texi: Regenerate.
8568 * targhooks.c (default_function_arg): Eliminate check for target macro.
8569 (default_function_incoming_arg): Likewise.
8570 (default_function_arg_advance): Likewise.
8571 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8572 (function_arg_advance): Likewise.
8573 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8575 2011-03-24 Richard Guenther <rguenther@suse.de>
8578 * tree-object-size.c (addr_object_size): Do not double-account
8579 for MEM_REF offsets.
8581 2011-03-24 Diego Novillo <dnovillo@google.com>
8583 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8584 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8585 (lto_input_data_block): Move from lto-opts.c. Make extern.
8587 (lto_input_string): Rename from input_string. Make extern.
8589 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8590 output_string_with_length.
8591 Output 0 to indicate a non-NULL string. Update all callers to
8593 (lto_output_string): Rename from output_string. Make extern.
8595 (lto_output_decl_state_streams): Make extern.
8596 (lto_output_decl_state_refs): Make extern.
8597 * lto-streamer.h (lto_input_string): Declare.
8598 (lto_input_data_block): Declare.
8599 (lto_output_string): Declare.
8600 (lto_output_string_with_length): Declare.
8601 (lto_output_decl_state_streams): Declare.
8602 (lto_output_decl_state_refs): Declare.
8604 2011-03-24 Richard Guenther <rguenther@suse.de>
8606 PR tree-optimization/46562
8607 * tree.c (build_invariant_address): New function.
8608 * tree.h (build_invariant_address): Declare.
8609 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8610 a renamed function moved ...
8611 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8612 Take valueization callback parameter.
8613 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8614 * gimple-fold.h: New file.
8615 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8616 (ccp_fold, fold_const_aggregate_ref,
8617 fold_ctor_reference, fold_nonarray_ctor_reference,
8618 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8619 get_base_constructor): Move ...
8620 * gimple-fold.c: ... here.
8621 (gimple_fold_stmt_to_constant_1): New function
8622 split out from ccp_fold. Take a valueization callback parameter.
8623 Valueize all operands.
8624 (gimple_fold_stmt_to_constant): New wrapper function.
8625 (fold_const_aggregate_ref_1): New function split out from
8626 fold_const_aggregate_ref. Take a valueization callback parameter.
8627 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8628 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8629 invariant POINTER_PLUS_EXPRs to invariant form.
8630 (vn_valueize): New function.
8631 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8632 * tree-vrp.c (vrp_valueize): New function.
8633 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8634 to fold statements to constants.
8635 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8636 function declarations.
8637 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8638 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8640 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8642 * config/h8300/predicates.md (jump_address_operand): Fix register
8645 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8647 * doc/invoke.texi (max-stores-to-sink): Document.
8648 * params.h (MAX_STORES_TO_SINK): Define.
8649 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8650 if either vectorization or if-conversion is disabled.
8651 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8652 tree-vect-data-refs.c vect_equal_offsets.
8653 (dr_equal_offsets_p): New function.
8654 (find_data_references_in_bb): Remove static.
8655 * tree-data-ref.h (find_data_references_in_bb): Declare.
8656 (dr_equal_offsets_p): Likewise.
8657 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8658 (vect_drs_dependent_in_basic_block): Update calls to
8660 (vect_check_interleaving): Likewise.
8661 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8662 (cond_if_else_store_replacement): Rename to...
8663 (cond_if_else_store_replacement_1): ... this. Change arguments and
8665 (cond_if_else_store_replacement): New function.
8666 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8667 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8669 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8672 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8673 to subtract lower bound instead of GEN_INT().
8675 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8680 * doc/extend.texi (Alignment): Move section to match order in TOC.
8681 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8682 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8684 2011-03-23 Jeff Law <law@redhat.com>
8686 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8687 before removing the edge.
8689 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8690 it may have been freed by redirect_branch_edge or
8691 redirect_edge_succ_nodup.
8693 2011-03-23 Richard Guenther <rguenther@suse.de>
8695 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8696 (check_va_list_escapes): Likewise.
8697 (check_all_va_list_escapes): Likewise.
8699 2011-03-23 Richard Guenther <rguenther@suse.de>
8701 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8702 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8703 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8704 (alias.o): Likewise.
8705 (ipa-type-escape.o): Remove.
8706 (ipa-struct-reorg.o): Likewise.
8707 (GTFILES): Remove ipa-struct-reorg.c.
8708 * alias.c: Do not include ipa-type-escape.h.
8709 * tree-ssa-alias.c: Likewise.
8710 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8711 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8712 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8713 and ipa-type-escape passes.
8714 * tree-pass.h (pass_ipa_type_escape): Remove.
8715 (pass_ipa_struct_reorg): Likewise.
8716 * ipa-struct-reorg.h: Remove.
8717 * ipa-struct-reorg.c: Likewise.
8718 * ipa-type-escape.h: Likewise.
8719 * ipa-type-escape.c: Likewise.
8720 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8721 (--param struct-reorg-cold-struct-ratio): Likewise.
8722 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8723 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8724 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8726 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8728 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8729 cpu attribute value.
8730 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8731 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8732 * config/s390/s390.c (processor_flags_table): New constant array.
8733 (s390_handle_arch_option): Remove.
8734 (s390_handle_option): Remove s390_handle_arch_option invocations
8735 and OPT_mwarn_framesize_ handling.
8736 (s390_option_override): Remove s390_handle_arch_option invocation.
8737 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8739 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8740 * config/s390/s390.opt (s390_tune, s390_arch)
8741 (march=): Replace s390_arch_option enum and values with
8742 processor_type. Set variable name to s390_arch. Set
8743 initialization value.
8744 (mtune=): Replace s390_arch_option with processor_type. Set
8745 variable name to s390_tune. Set initialization value.
8747 2011-03-23 Julian Brown <julian@codesourcery.com>
8749 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8750 accesses which are not naturally aligned.
8752 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8755 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8757 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8759 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8760 parameter from "int" to "enum insn_code".
8761 (expand_operand_type): New enum.
8762 (expand_operand): New structure.
8763 (create_expand_operand): New function.
8764 (create_fixed_operand, create_output_operand): Likewise
8765 (create_input_operand, create_convert_operand_to): Likewise.
8766 (create_convert_operand_from, create_address_operand): Likewise.
8767 (create_integer_operand): Likewise.
8768 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8769 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8770 (expand_insn, expand_jump_insn): Likewise.
8771 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8772 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8773 (expand_movstr, expand_builtin___clear_cache): Likewise.
8774 (expand_builtin_lock_release): Likewise.
8775 * explow.c (allocate_dynamic_stack_space): Likewise.
8776 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8777 and use the default handling in that case.
8778 * expmed.c (check_predicate_volatile_ok): Delete.
8779 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8780 (emit_cstore): Likewise.
8781 * expr.c (emit_block_move_via_movmem): Likewise.
8782 (set_storage_via_setmem, expand_assignment): Likewise.
8783 (emit_storent_insn, try_casesi): Likewise.
8784 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8785 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8786 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8787 (expand_twoval_unop, expand_twoval_binop): Likewise.
8788 (expand_unop_direct, emit_indirect_jump): Likewise.
8789 (emit_conditional_move, vector_compare_rtx): Likewise.
8790 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8791 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8792 (expand_sync_lock_test_and_set): Likewise.
8793 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8794 (emit_unop_insn): Likewise.
8795 (expand_copysign_absneg): Change icode to an insn_code.
8796 (create_convert_operand_from_type): New function.
8797 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8798 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8799 (expand_insn, expand_jump_insn): Likewise.
8800 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8801 than const_int_operand for operand 2.
8803 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8805 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8808 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8810 * emit-rtl.c (emit_pattern_before_noloc): New function.
8811 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8812 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8813 (emit_pattern_after_noloc): New function.
8814 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8815 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8817 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8819 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8820 (__ffsDI2): Likewise.
8822 2011-03-22 Richard Henderson <rth@redhat.com>
8824 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8825 of !TARGET_ABI_OPEN_VMS.
8826 (alpha_trampoline_init, alpha_start_function): Likewise.
8827 (alpha_expand_epilogue, alpha_file_start): Likewise.
8828 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8829 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8830 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8831 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8832 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8836 * config/s390/s390-opts.h: New.
8837 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8838 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8839 s390_stack_guard): Remove.
8840 (s390_handle_arch_option): Return void. Take enum
8841 s390_arch_option value instead of string and searching array.
8842 (s390_handle_option): Don't assert that global structures are in
8843 use. Access variables via opts pointer. Use error_at. Don't use
8844 sscanf for -mstack-guard= or -mstack-size=. Update call to
8845 s390_handle_arch_option.
8846 (s390_option_override): Update call to s390_handle_arch_option.
8847 (s390_emit_prologue): Use %d format for s390_stack_size in
8848 diagnostic. Use %wd for HOST_WIDE_INT.
8849 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8850 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8851 * config/s390/s390.opt (config/s390/s390-opts.h): New
8852 HeaderInclude entry.
8853 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8854 s390_arch_flags, s390_warn_framesize): New Variable entries.
8855 (s390_arch_option): New Enum and EnumValue entries.
8856 (march=): Use Enum instead of Var.
8857 (mstack-guard=, mstack-size=): Use UInteger and Var.
8860 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8862 * config/score/score.c (score_handle_option): Don't assert that
8863 global structures are in use. Access target_flags via opts
8864 pointer. Use value of -march= option to determine target_flags
8866 * config/score/score.opt (march=): Use Enum.
8867 (score_arch): New Enum and EnumValue entries.
8869 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8871 * config/mep/mep.c (option_mtiny_specified): Remove.
8872 (mep_option_override): Move register handling for -mivc2 from
8873 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8874 instead of option_mtiny_specified.
8875 (mep_handle_option): Access target_flags via opts pointer. Don't
8876 assert that global structures are in use. Defer part of -mivc2
8877 handling and move it to mep_option_override.
8878 * config/mep/mep.opt (IVC2): New Mask entry.
8879 (mivc2): Use Var and Defer instead of Mask.
8881 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8883 * config/v850/v850-opts.h: New.
8884 * config/v850/v850.c (small_memory): Replace with
8885 small_memory_physical_max array. Make that array static const.
8886 (v850_handle_memory_option): Take integer value of argument. Take
8887 gcc_options pointer, option text and location. Return void.
8888 Update for changes to small memory structures.
8889 (v850_handle_option): Access target_flags via opts pointer. Don't
8890 assert that global structures are in use. Update calls to
8891 v850_handle_memory_option.
8892 (v850_encode_data_area): Update references to small memory settings.
8893 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8894 (enum small_memory_type): Move to v850-opts.h.
8895 * config/v850/v850.opt (config/v850/v850-opts.h): New
8896 HeaderInclude entry.
8897 (small_memory_max): New Variable entry.
8898 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8899 (mtda, mzda): Likewise.
8901 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8903 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8904 pointer. Don't assert that global structures are in use.
8906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8908 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8909 via opts pointer. Don't assert that global structures are in use.
8911 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8913 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8914 (munix=93): Use Var.
8915 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8916 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8917 * config/pa/pa-opts.h: New.
8918 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8919 (pa_handle_option): Don't assert that global structures are in
8920 use. Access target_flags via opts pointer. Don't handle
8921 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8923 (pa_option_override): Handle deferred OPT_mfixed_range_.
8925 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8927 * config/mn10300/mn10300-opts.h: New.
8928 * config/mn10300/mn10300.c (mn10300_processor,
8929 mn10300_tune_string): Remove.
8930 (mn10300_handle_option): Don't assert that global structures are
8931 in use. Access mn10300_processor via opts pointer. Don't handle
8933 * config/mn10300/mn10300.h (enum processor_type): Move to
8935 (mn10300_processor): Remove.
8936 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8937 HeaderInclude entry.
8938 (mn10300_processor): New Variable entry.
8941 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8943 * config/microblaze/microblaze.c: Don't include opts.h.
8944 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8945 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8946 (mno-clearbss): Use Var and Warn.
8948 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8950 * config/m32r/m32r-opts.h: New.
8951 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8952 (m32r_handle_option): Don't assert that global structures are in
8953 use. Access target_flags and m32r_cache_flush_func via opts
8954 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8955 OPT_mno_flush_trap here.
8956 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8957 include of m32r-opts.h.
8958 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8959 HeaderInclude entry.
8960 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8961 (mmodel=): Use Enum and Var.
8962 (m32r_model): New Enum and EnumValue entries.
8963 (mno-flush-trap): Use Var.
8964 (msdata=): Use Enum and Var.
8965 (m32r_sdata): New Enum and EnumValue entries.
8967 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8969 * config/m32c/m32c.c: Don't include opts.h.
8970 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8971 m32c_handle_option): Remove.
8972 (m32c_option_override): Check global_options_set.x_target_memregs
8973 instead of target_memregs_set.
8974 * config/m32c/m32c.h (target_memregs): Remove.
8975 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8978 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8980 * config/iq2000/iq2000-opts.h: New.
8981 * config/iq2000/iq2000.c: Don't include opts.h.
8982 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8983 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8984 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8985 HeaderInclude entry.
8986 (iq2000_tune): New Variable entry.
8987 (march=): Add comment. Use Enum.
8988 (iq2000_arch): New Enum and EnumValue entries.
8989 (mcpu=): Use Enum and Var.
8990 (iq2000_tune): New Enum and EnumValue entries.
8992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8994 * config/ia64/ia64-opts.h: New.
8995 * config/ia64/ia64.c (ia64_tune): Remove.
8996 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8998 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8999 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9000 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9001 HeaderInclude entry.
9002 (ia64_tune): New Variable entry.
9003 (mfixed-range=): Use Defer and Var.
9004 (mtune=): Use Enum and Var.
9005 (ia64_tune): New Enum and EnumValue entries.
9007 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9009 * config/frv/frv-opts.h: New.
9010 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9012 (frv_cpu_type): Remove.
9013 * config/frv/frv.c: Don't include opts.h.
9014 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9015 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9016 (frv_cpu_type): New Variable entry.
9017 (frv_cpu): New Enum and EnumValue entries.
9019 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9021 * config/cris/cris.c (cris_handle_option): Access target_flags via
9022 opts pointer. Don't assert that global structures are in use.
9023 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9024 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9026 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9028 * config/bfin/bfin-opts.h: New.
9029 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9030 bfin_si_revision, bfin_workarounds): Remove.
9031 (bfin_cpus): Make static const.
9032 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9033 not bfin_lib_id_given.
9034 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9035 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9036 pointer. Use error_at. Don't assert that global structures are in use.
9037 * config/bfin/bfin.h: Include bfin-opts.h.
9038 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9039 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9040 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9041 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9044 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9046 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9047 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9048 or -msoft-float here.
9049 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9050 -msoft-float and -mhard-float.
9051 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9052 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9054 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9056 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9057 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9059 (LIBGCC_SPEC): Don't handle -msoft-float.
9060 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9062 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9064 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9065 -mfloat-abi=*, not -msoft-float and -mhard-float.
9066 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9068 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9069 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9070 mhard-float and msoft-float.
9071 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9072 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9073 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9074 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9076 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9077 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9079 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9081 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9084 2011-03-22 Richard Henderson <rth@redhat.com>
9086 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9087 TARGET_ABI_WINDOWS_NT.
9088 (alpha_output_function_end_prologue): Likewise.
9089 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9090 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9091 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9092 (trap, *movsi_nt_vms): Likewise.
9093 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9094 (*tablejump_osf_nt_internal): Remove.
9095 * config/alpha/predicates.md (input_operand): Only test Pmode.
9097 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9099 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9100 via opts pointer. Use error_at. Don't assert that global
9101 structures are in use.
9103 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9105 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9106 (ix86_handle_option): Access ix86_isa_flags and
9107 ix86_isa_flags_explicit via opts pointer. Don't assert that
9108 global structures are in use.
9109 (ix86_function_specific_save, ix86_function_specific_restore):
9110 Update ix86_isa_flags_explicit field name.
9111 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9112 (ix86_isa_flags_explicit): Rename TargetSave entry to
9113 x_ix86_isa_flags_explicit.
9115 2011-03-22 Richard Henderson <rth@redhat.com>
9117 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9118 (alpha_option_override, direct_return): Likewise.
9119 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9120 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9121 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9122 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9123 (alpha_expand_epilogue, alpha_end_function): Likewise.
9124 (alpha_init_libfuncs): Likewise.
9125 (struct machine_function): Remove unicosmk members.
9126 (print_operand) ['t']: Remove.
9127 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9128 unicosmk_output_module_name, unicosmk_output_common,
9129 current_section_align, unicosmk_output_text_section_asm_op,
9130 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9131 unicosmk_section_type_flags, unicosmk_unique_section,
9132 unicosmk_asm_named_section, unicosmk_insert_attributes,
9133 unicosmk_output_align, unicosmk_defer_case_vector,
9134 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9135 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9136 unicosmk_output_ssib, unicosmk_add_call_info_word,
9137 unicosmk_extern_head, unicosmk_output_default_externs,
9138 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9139 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9140 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9141 * config/alpha/alpha-protos.h: Update.
9142 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9143 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9144 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9145 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9146 (*mulsi_se, mulvsi3): Likewise.
9147 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9148 (*divmodsi_internal, call, call_value, realign): Likewise.
9149 (moddi3, umoddi3): Likewise; remove duplicate expander.
9150 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9151 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9152 (*movdi_nofix): Remove r/U alternative.
9153 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9154 * config/alpha/constraints.md ("U"): Remove.
9155 * config/alpha/predicates.md (call_operand"): Don't test
9156 TARGET_ABI_UNICOSMK.
9158 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9160 * target.def (handle_option): Take gcc_options and
9161 cl_decoded_option pointers and location_t.
9162 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9163 * doc/tm.texi: Regenerate.
9164 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9165 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9166 * lto-opts.c (lto_reissue_options): Generate option structure for
9167 targetm.handle_option call.
9168 * opts.c (target_handle_option): Update call to
9169 targetm.handle_option. Remove assertions about values now passed
9171 * targhooks.c (default_target_handle_option): New.
9172 * targhooks.h (default_target_handle_option): Declare.
9173 * config/alpha/alpha.c: Include opts.h.
9174 (alpha_handle_option): Update to new hook interface.
9175 * config/arm/arm.c: Include opts.h.
9176 (arm_handle_option): Update to new hook interface.
9177 * config/arm/t-arm (arm.o): Update dependencies.
9178 * config/bfin/bfin.c: Include opts.h.
9179 (bfin_handle_option): Update to new hook interface.
9180 * config/cris/cris.c: Include opts.h.
9181 (cris_handle_option): Update to new hook interface.
9182 * config/frv/frv.c: Include opts.h.
9183 (frv_handle_option): Update to new hook interface.
9184 * config/i386/i386.c: Include opts.h.
9185 (ix86_handle_option): Update to new hook interface.
9186 (ix86_valid_target_attribute_inner_p): Generate option structure
9187 for call to ix86_handle_option.
9188 * config/i386/t-i386 (i386.o): Update dependencies.
9189 * config/ia64/ia64.c: Include opts.h.
9190 (ia64_handle_option): Update to new hook interface.
9191 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9192 * config/iq2000/iq2000.c: Include opts.h.
9193 (iq2000_handle_option): Update to new hook interface.
9194 * config/m32c/m32c.c: Include opts.h.
9195 (m32c_handle_option): Update to new hook interface.
9196 * config/m32r/m32r.c: Include opts.h.
9197 (m32r_handle_option): Update to new hook interface.
9198 * config/m68k/m68k.c: Include opts.h.
9199 (m68k_handle_option): Update to new hook interface.
9200 * config/mep/mep.c: Include opts.h.
9201 (mep_handle_option): Update to new hook interface.
9202 * config/microblaze/microblaze.c: Include opts.h.
9203 (microblaze_handle_option): Update to new hook interface.
9204 * config/mips/mips.c: Include opts.h.
9205 (mips_handle_option): Update to new hook interface.
9206 * config/mn10300/mn10300.c: Include opts.h.
9207 (mn10300_handle_option): Update to new hook interface.
9208 * config/pa/pa.c: Include opts.h.
9209 (pa_handle_option): Update to new hook interface.
9210 * config/pdp11/pdp11.c: Include opts.h.
9211 (pdp11_handle_option): Update to new hook interface.
9212 * config/rs6000/rs6000.c: Include opts.h.
9213 (rs6000_handle_option): Update to new hook interface.
9214 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9215 * config/rx/rx.c: Include opts.h.
9216 (rx_handle_option): Update to new hook interface.
9217 * config/s390/s390.c: Include opts.h.
9218 (s390_handle_option): Update to new hook interface.
9219 * config/score/score.c: Include opts.h.
9220 (score_handle_option): Update to new hook interface.
9221 * config/sh/sh.c: Include opts.h.
9222 (sh_handle_option): Update to new hook interface.
9223 * config/sparc/sparc.c: Include opts.h.
9224 (sparc_handle_option): Update to new hook interface.
9225 * config/v850/v850.c: Include opts.h.
9226 (v850_handle_option): Update to new hook interface.
9228 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9230 * gcc.c (driver_unknown_option_callback): Only permit and save
9231 unknown -Wno- options.
9232 (driver_wrong_lang_callback): Save options directly instead of via
9233 driver_unknown_option_callback.
9235 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9237 * combine.c (simplify_set): Try harder to find the best CC mode when
9238 simplifying a nested COMPARE on the RHS.
9240 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9242 * config/alpha/gnu.h: Remove.
9243 * config/arc: Remove directory.
9244 * config/arm/netbsd.h: Remove.
9245 * config/arm/t-pe: Remove.
9246 * config/crx: Remove directory.
9247 * config/i386/netbsd.h: Remove.
9248 * config/m68hc11: Remove directory.
9249 * config/m68k/uclinux-oldabi.h: Remove.
9250 * config/mcore/mcore-pe.h: Remove.
9251 * config/mcore/t-mcore-pe: Remove.
9252 * config/netbsd-aout.h: Remove.
9253 * config/rs6000/gnu.h: Remove.
9254 * config/sh/sh-symbian.h: Remove.
9255 * config/sh/symbian-base.c: Remove.
9256 * config/sh/symbian-c.c: Remove.
9257 * config/sh/symbian-cxx.c: Remove.
9258 * config/sh/symbian-post.h: Remove.
9259 * config/sh/symbian-pre.h: Remove.
9260 * config/sh/t-symbian: Remove.
9261 * config/svr3.h: Remove.
9262 * config/vax/netbsd.h: Remove.
9263 * config.build: Don't handle i[34567]86-*-pe.
9264 * config.gcc: Remove handling of deprecations for most deprecated
9266 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9267 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9268 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9269 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9270 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9271 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9273 * config.host: Don't handle i[34567]86-*-pe.
9274 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9275 (ASM_SPEC32): Don't handle -mcall-gnu.
9276 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9278 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9279 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9280 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9281 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9282 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9283 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9284 conditional on SYMBIAN.
9285 * configure.ac: Don't handle powerpc*-*-gnu*.
9286 * configure: Regenerate.
9287 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9288 * doc/install-old.texi (m6811, m6812): Don't mention.
9289 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9290 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9291 (m68k-uclinuxoldabi): Don't mention.
9292 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9294 (-mcall-gnu): Remove.
9295 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9296 families): Remove constraint documentation.
9298 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9300 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9301 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9302 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9304 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9307 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9308 vector when peeking at the next token for vector, don't expand the
9311 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9313 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9314 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9315 * config/avr/avr.c (init_cumulative_args)
9316 (avr_function_arg_advance): Use it.
9317 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9319 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9320 (avr_function_ok_for_sibcall): ...this new function.
9321 (avr_lookup_function_attribute1): New static Function.
9322 (avr_naked_function_p, interrupt_function_p)
9323 (signal_function_p, avr_OS_task_function_p)
9324 (avr_OS_main_function_p): Use it.
9325 * config/avr/avr.md ("sibcall", "sibcall_value")
9326 ("sibcall_epilogue"): New expander.
9327 ("*call_insn", "*call_value_insn"): New insn.
9328 ("call_insn", "call_value_insn"): Remove
9329 ("call", "call_value", "epilogue"): Change expander to handle
9332 2011-03-21 Nick Clifton <nickc@redhat.com>
9334 * doc/invoke.texi (Overall Options): Move closing brace to end of
9336 (Optimization Options): Add missing @gol.
9337 (Directory Options): Likewise.
9338 (i386 and x86-64 Options): Likewise.
9339 (RS6000 and PowerPC Options): Likewise.
9340 (i386 and x86-64 Windows Options): Likewise.
9341 (V850 Options): Add text missing from descriptions.
9343 2011-03-22 Richard Henderson <rth@redhat.com>
9345 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9346 (avr_incoming_return_addr_rtx): New.
9347 (emit_push_byte): New.
9348 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9349 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9350 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9351 (emit_pop_byte): New.
9352 (expand_epilogue): Use it. Pop frame pointer by bytes.
9353 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9354 (INCOMING_RETURN_ADDR_RTX): New.
9355 (INCOMING_FRAME_SP_OFFSET): New.
9356 (ARG_POINTER_CFA_OFFSET): New.
9357 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9358 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9361 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9363 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9365 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9366 (FUNCTION_ARG_ADVANCE): Likewise.
9367 * tm.texi.in: Change references to them to hook references.
9368 * tm.texi: Regenerate.
9369 * targhooks.c (default_function_arg): Eliminate check for target
9371 (default_function_incoming_arg): Likewise.
9372 (default_function_arg_advance): Likewise.
9373 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9374 (function_arg_advance): Likewise.
9375 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9377 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9379 * tree.c (build_call_1): New function.
9380 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9382 2011-03-22 Richard Guenther <rguenther@suse.de>
9384 PR tree-optimization/48228
9385 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9386 for single-arg PHIs.
9388 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9390 PR rtl-optimization/48143
9391 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9392 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9393 sse2_cvtps2pd): Likewise.
9395 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9397 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9399 2011-03-22 Richard Guenther <rguenther@suse.de>
9401 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9402 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9403 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9404 and REALIGN_LOAD_EXPR.
9405 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9406 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9407 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9408 DOT_PROD_EXPR case ...
9409 (expand_expr_real_2): ... here.
9410 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9411 and REALIGN_LOAD_EXPR.
9412 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9413 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9414 (vect_create_epilog_for_reduction): Likewise.
9415 (vectorizable_reduction): Likewise.
9416 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9417 * tree-vect-stmts.c (vectorizable_load): Likewise.
9419 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9421 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9423 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9425 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9426 handling for PLTOFF/GOTOFF.
9428 2011-03-22 Nick Clifton <nickc@redhat.com>
9430 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9431 trailing backslash from the end of the macro definition.
9433 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9435 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9438 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9440 * expr.h (prepare_operand): Move to...
9441 * optabs.h (prepare_operand): ...here and change the insn code
9442 parameter from "int" to "enum insn_code".
9443 (insn_operand_matches): Declare.
9444 * expr.c (init_expr_target): Use insn_operand_matches.
9445 (compress_float_constant): Likewise.
9446 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9447 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9448 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9449 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9451 (gen_cond_trap): Likewise.
9452 (prepare_operand): Likewise. Change icode to an insn_code.
9453 (insn_operand_matches): New function.
9454 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9455 * reload1.c (gen_reload): Likewise.
9456 * targhooks.c (default_secondary_reload): Likewise.
9458 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9460 * config/alpha/alpha.md (unspec): New define_c_enum.
9463 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9466 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9467 between a call and its CALL_ARG_LOCATION note.
9469 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9471 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9473 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9477 * c-common.c (shorten_compare): If primopN is first sign-extended
9478 to opN and then zero-extended to result type, set primopN to opN.
9480 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9482 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9483 for barrier handlers.
9485 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9487 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9488 UNSPEC constants to be in the unspec enumeration, and redefine
9489 all UNSPECV constants to be in the unspecv enumeration, so that
9490 dumps print which unspec/unspec_volatile this is.
9491 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9492 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9493 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9494 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9495 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9497 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9498 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9499 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9500 * config/rs6000/sync.md (isync, lwsync): Ditto.
9502 2011-03-21 Richard Guenther <rguenther@suse.de>
9504 * params.def (lto-min-partition): Fix typo.
9506 2011-03-21 Richard Guenther <rguenther@suse.de>
9509 * c-decl.c (grokdeclarator): Drop to the main variant only
9510 for array types. Drop flag_gen_aux_info check.
9512 2011-03-21 Richard Guenther <rguenther@suse.de>
9514 PR translation/47911
9515 * params.def (lto-partitions): Fix typo.
9516 (lto-min-partition): Fix wording.
9518 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9520 * config/rs6000/t-freebsd: Remove duplication from file.
9522 2011-03-21 Richard Guenther <rguenther@suse.de>
9525 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9527 2011-03-21 Richard Guenther <rguenther@suse.de>
9530 * params.def (lto-partitions): Require at least 1 partition.
9532 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9534 * gthr-solaris.h: Remove.
9535 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9536 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9537 (LIB_SPEC): Likewise.
9538 * config/sol2.opt (threads): Remove.
9539 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9540 (sparc*-*-solaris2*): Likewise.
9541 * configure.ac (enable_threads): Enable solaris support.
9542 * configure: Regenerate.
9543 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9544 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9547 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9549 * config.gcc: Obsolete *-*-solaris2.8*.
9550 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9552 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9555 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9556 reference. Solaris 8 perl works.
9558 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9561 * doc/install.texi (Prerequisites): Move jar etc. up.
9562 Explain support library version requirements.
9564 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9567 * doc/install.texi (Prerequisites): Move Perl to build
9568 requirements. Always necessary on Solaris 2 with Sun ld.
9570 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9572 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9574 (Specific, i?86-*-solaris2.[89]): Likewise.
9575 (Specific, i?86-*-solaris2.10): Likewise.
9576 (Specific, mips-sgi-irix6): Likewise.
9577 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9578 Update for binutils 2.21.
9580 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9582 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9583 Allow -fuse-linker-plugin for non-default plugin linker.
9584 * configure: Regenerate.
9586 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9589 * gengtype.c (files_rules): Added rule for cp/parser.h.
9591 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9594 * config/s390/s390.c (s390_delegitimize_address): Don't call
9595 lowpart_subreg if orig_x has BLKmode.
9597 2011-03-21 Kai Tietz <ktietz@redhat.com>
9600 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9601 * tree.h (attribute_spec): Add new member affects_type_identity.
9602 * attribs.c (empty_attribute_table): Adjust attribute_spec
9604 * config/alpha/alpha.c: Likewise.
9605 * config/arc/arc.c: Likewise.
9606 * config/arm/arm.c: Likewise.
9607 * config/avr/avr.c: Likewise.
9608 * config/bfin/bfin.c: Likewise.
9609 * config/crx/crx.c: Likewise.
9610 * config/darwin.h: Likewise.
9611 * config/h8300/h8300.c: Likewise.
9612 * config/i386/cygming.h: Likewise.
9613 * config/i386/i386.c: Likewise.
9614 * config/ia64/ia64.c: Likewise.
9615 * config/m32c/m32c.c: Likewise.
9616 * config/m32r/m32r.c: Likewise.
9617 * config/m68hc11/m68hc11.c: Likewise.
9618 * config/m68k/m68k.c: Likewise.
9619 * config/mcore/mcore.c: Likewise.
9620 * config/mep/mep.c: Likewise.
9621 * config/microblaze/microblaze.c: Likewise.
9622 * config/mips/mips.c: Likewise.
9623 * config/rs6000/rs6000.c: Likewise.
9624 * config/rx/rx.c: Likewise.
9625 * config/sh/sh.c: Likewise.
9626 * config/sol2.h: Likewise.
9627 * config/sparc/sparc.c: Likewise.
9628 * config/spu/spu.c: Likewise.
9629 * config/stormy16/stormy16.c: Likewise.
9630 * config/v850/v850.c: Likewise.
9632 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9634 * simplify-rtx.c (simplify_binary_operation_1): Handle
9635 (xor (and A B) C) case when B and C are both constants.
9637 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9639 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9641 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9644 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9646 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9648 PR rtl-optimization/48156
9649 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9650 assume df and df_lr are not NULL.
9652 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9655 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9656 between a call and its CALL_ARG_LOCATION note.
9658 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9661 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9662 between a call and its corresponding CALL_ARG_LOCATION note.
9664 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9666 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9667 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9668 * haifa-sched.c (setup_ref_regs): Ditto.
9669 * caller-save.c (add_used_regs_1): Ditto.
9670 * dse.c (look_for_hardregs): Ditto.
9671 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9672 * sched-rgn.c (check_live_1): Ditto.
9674 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9676 * c-decl.c (diagnose_mismatched_decls): Give an error for
9677 redefining a typedef with variably modified type.
9679 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9681 * c-decl.c (grokfield): Don't allow typedefs for structures or
9682 unions with no tag by default.
9683 * doc/extend.texi (Unnamed Fields): Update.
9685 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9687 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9688 Rewrite using indirect functions.
9689 (lwp_slwpcb): Ditto.
9690 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9691 (avx_vinsertf128<mode>): Ditto.
9693 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9695 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9698 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9700 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9701 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9703 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9705 PR rtl-optimization/48170
9706 * gcse.c (hoist_code): Remove bogus asserts.
9708 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9710 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9711 computation for prologue/epilogue.
9713 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9715 * Makefile.in (check-consistency): Remove.
9717 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9720 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9721 arange_table_in_use is 0, but either text_section_used or
9722 cold_text_section_used is true. Don't call it if
9723 !info_section_emitted.
9725 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9727 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9728 FUNCTION_VALUE_REGNO_P): Remove.
9729 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9731 * config/avr/avr.c (avr_ret_register): Make static inline.
9732 (avr_function_value_regno_p): New function.
9733 (avr_libcall_value): Make static. Add 'func' argument.
9734 (avr_function_value): Make static. Rename 'func' argument to
9735 'fn_decl_or_type', forward it to avr_libcall_value. Call
9736 avr_ret_register function instead of RET_REGISTER macro.
9737 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9739 2011-03-18 Jason Merrill <jason@redhat.com>
9742 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9744 2011-03-18 Richard Guenther <rguenther@suse.de>
9746 * doc/install.texi (--enable-gold): Remove.
9747 (--with-plugin-ld): Document.
9748 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9750 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9753 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9754 again after expansion changes.
9756 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9758 * combine.c (try_combine): Do simplification only call of
9759 subst() on i2 even when i1 is present. Update comments.
9761 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9763 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9764 and UNSPEC_PCREL_SYMOFF.
9766 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9768 * config/s390/s390.md: Use define_c_enum for the unspec constant
9771 2011-03-18 Richard Henderson <rth@redhat.com>
9772 Jakub Jelinek <jakub@redhat.com>
9775 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9776 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9778 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9781 * combine.c (cant_combine_insn_p): Don't check zero/sign
9782 extended hard registers.
9784 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9787 * combine.c (cant_combine_insn_p): Check zero/sign extended
9790 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9792 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9793 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9794 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9795 Change return type to bool.
9796 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9798 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9801 * var-tracking.c (prepare_call_arguments): If CALL target
9802 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9803 pc instead of looking it up using cselib_lookup and use
9804 Pmode for it if x has VOIDmode.
9805 * dwarf2out.c (gen_subprogram_die): If also both first and
9806 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9809 * function.c (assign_parms): For data.passed_pointer parms
9810 use MEM of data.entry_parm instead of data.entry_parm itself
9811 as DECL_INCOMING_RTL.
9812 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9813 also when passed and declared mode is the same, DECL_RTL
9814 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9817 2011-03-16 Jeff Law <law@redhat.com>
9819 PR rtl-optimization/37273
9820 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9821 handle them like argument loads from stack slots. Do not double
9822 count memory for memory constants and argument loads from stack slots.
9824 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9827 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9829 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9832 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9834 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9837 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9839 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9840 Clear call_arg_locations and call_arg_loc_last always.
9843 * var-tracking.c (prepare_call_arguments): If argument needs to be
9844 passed by reference, adjust argtype and mode.
9846 2011-03-17 Richard Guenther <rguenther@suse.de>
9849 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9850 a value make sure to fold the statement.
9852 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9855 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9856 return condition with !cfun->calls_alloca.
9858 2011-03-17 Richard Guenther <rguenther@suse.de>
9861 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9862 origin for decls in other ltrans units.
9863 (input_varpool_node): Likewise.
9865 2011-03-17 Richard Guenther <rguenther@suse.de>
9868 * tree-object-size.c (compute_object_offset): Properly return
9869 the offset operand of MEM_REFs as sizetype.
9871 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9873 PR rtl-optimization/48141
9874 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9875 * dse.c: Include params.h.
9876 (active_local_stores_len): New variable.
9877 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9879 (record_store, check_mem_read_rtx): Decrease it when removing
9881 (scan_insn): Likewise. Increase it when adding to chain, if it
9882 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9883 set active_local_stores to NULL before the addition.
9884 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9886 PR rtl-optimization/48141
9887 * dse.c (record_store): If no positions are needed in an insn
9888 that cannot be deleted, at least unchain it from active_local_stores.
9890 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9893 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9894 (lookup_type_die_strip_naming_typedef): ... here.
9895 (get_context_die): Use it.
9896 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9897 the anonymous struct named by the naming typedef.
9899 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9902 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9903 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9905 2011-03-16 Jeff Law <law@redhat.com>
9907 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9908 check for operands of conditional. Allow type to be a pointer.
9910 2011-03-16 Richard Guenther <rguenther@suse.de>
9912 PR tree-optimization/48149
9913 * fold-const.c (fold_binary_loc): Fold
9914 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9916 2011-03-16 Richard Guenther <rguenther@suse.de>
9918 PR tree-optimization/26134
9919 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9920 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9921 (non_rewritable_mem_ref_base): Handle complex type component
9922 accesses, constrain offsets for vector and complex extracts
9925 2011-03-16 Richard Guenther <rguenther@suse.de>
9927 PR tree-optimization/48146
9928 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9929 operands avoiding the need for renaming.
9931 2011-03-16 Richard Guenther <rguenther@suse.de>
9933 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9934 constant folding. Move MEM_REF canonicalization first.
9935 Rely on fold_const_aggregate_ref for initializer folding.
9936 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9938 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9941 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9942 arg0/arg1 or their arguments are always fold converted to matching
9945 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9948 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9951 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9952 Handle in-tree gold.
9953 (ld_vers): Extract binutils version for gold.
9954 (gcc_cv_ld_hidden): Handle gold here.
9955 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9956 * configure: Regenerate.
9957 * config.in: Regenerate.
9958 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9959 -fuse-linker-plugin otherwise.
9960 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9961 (LINK_COMMAND_SPEC): Use it.
9962 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9964 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9966 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9967 * calls.c: Remove debug.h include.
9968 (emit_call_1): Don't call virtual_call_token debug hook.
9969 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9970 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9971 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9972 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9973 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9974 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9975 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9976 dwarf2out_virtual_call): Remove.
9977 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9978 copy_call_info and virtual_call hooks.
9979 (dwarf2out_init): Don't initialize vcall_insn_table,
9980 debug_dcall_section and debug_vcall_section.
9981 (prune_unused_types): Don't mark nodes from dcall_table.
9982 (dwarf2out_finish): Don't output dcall or vcall tables.
9983 * final.c (final_scan_insn): Don't call direct_call or
9984 virtual_call debug hooks.
9985 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9986 virtual_call_token, copy_call_info and virtual_call hooks.
9987 (debug_nothing_uid): Remove prototype.
9988 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9989 copy_call_info and virtual_call hooks.
9990 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9991 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9992 * debug.c (do_nothing_debug_hooks): Likewise.
9993 (debug_nothing_uid): Remove.
9994 * doc/invoke.texi (-fenable-icf-debug): Remove.
9995 * common.opt (-fenable-icf-debug): Likewise.
9997 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9998 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9999 call's MEM. Handle functions returning aggregate through a hidden
10000 first pointer. For virtual calls add clobbered pc to call arguments
10002 * dwarf2out.c (gen_subprogram_die): Emit
10003 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10007 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10008 * rtl.h (ENTRY_VALUE_EXP): Define.
10009 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10010 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10011 * print-rtl.c (print_rtx): Likewise.
10012 * gengtype.c (adjust_field_rtx_def): Likewise.
10013 * var-tracking.c (vt_add_function_parameter): Adjust
10014 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10015 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10016 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10017 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10018 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10020 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10021 Call var_location debug hook even on CALL_INSNs.
10022 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10023 * rtl.def (ENTRY_VALUE): New.
10024 * dwarf2out.c: Include cfglayout.h.
10025 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10026 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10027 (struct call_arg_loc_node): New type.
10028 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10029 tail_call_site_count): New variables.
10030 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10031 DW_TAG_GNU_call_site_parameter.
10032 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10033 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10034 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10035 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10036 and DW_AT_GNU_all_source_call_sites.
10037 (mem_loc_descriptor): Handle ENTRY_VALUE.
10038 (add_src_coords_attributes): Don't add enything if
10039 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10040 (dwarf2out_abstract_function): Save and clear call_arg_location,
10041 call_site_count and tail_call_site_count around dwarf2out_decl call.
10042 (gen_call_site_die): New function.
10043 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10044 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10045 (dwarf2out_function_decl): Clear call_arg_locations,
10046 call_arg_loc_last, set call_site_count and tail_call_site_count
10047 to -1 and free block_map.
10048 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10049 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10050 followed by any real instructions.
10051 (dwarf2out_begin_function): Set call_site_count and
10052 tail_call_site_count to 0.
10053 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10054 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10055 attempt to force a DIE for it and worst case remove the attribute.
10056 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10057 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10059 * var-tracking.c: Include tm_p.h.
10060 (vt_stack_adjustments): For calls call note_register_arguments.
10061 (argument_reg_set): New variable.
10062 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10063 ensure the VALUE is resolved.
10064 (call_arguments): New variable.
10065 (prepare_call_arguments): New function.
10066 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10067 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10068 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10069 always use the best expression.
10070 (vt_expand_loc): Add ignore_cur_loc argument.
10071 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10072 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10073 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10074 note for all calls.
10075 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10076 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10077 argument. Don't call cselib_preserve_only_values and
10078 cselib_reset_table.
10079 (note_register_arguments): New function.
10080 (vt_initialize): Compute argument_reg_set. Call
10081 vt_add_function_parameters before processing basic blocks instead of
10082 afterwards. For calls call prepare_call_arguments before calling
10083 cselib_process_insn.
10084 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10085 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10086 (var-tracking.o): Depend on $(TM_P_H).
10087 * cfglayout.h (insn_scope): New prototype.
10088 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10089 * cfglayout.c (insn_scope): No longer static.
10090 * insn-notes.def (CALL_ARG_LOCATION): New.
10091 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10092 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10093 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10094 nothing for DECL_EXTERNAL BLOCK_VARS.
10096 2011-03-16 Alan Modra <amodra@gmail.com>
10099 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10100 create invalid offset address for vsx splat insn.
10101 * config/rs6000/predicates.md (splat_input_operand): New.
10102 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10104 2011-03-15 Xinliang David Li <davidxl@google.com>
10107 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10108 (normalize_preds): New function.
10109 (is_use_properly_guarded): Normalize def predicates.
10111 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10114 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10115 in the output template.
10117 2011-03-15 Richard Guenther <rguenther@suse.de>
10119 PR middle-end/47650
10120 * tree-pretty-print.c (dump_function_declaration): Properly
10121 dump unprototyped and varargs function types.
10123 2011-03-15 Richard Guenther <rguenther@suse.de>
10125 PR tree-optimization/13954
10126 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10129 2011-03-15 Richard Guenther <rguenther@suse.de>
10131 PR tree-optimization/48037
10132 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10133 selects into BIT_FIELD_REFs.
10134 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10137 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10139 PR tree-optimization/48129
10140 * builtins.c (fold_builtin_snprintf): Convert to type of
10141 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10142 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10144 2011-03-15 Richard Guenther <rguenther@suse.de>
10146 PR tree-optimization/41490
10147 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10148 value but with VUSE.
10149 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10151 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10152 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10153 * tree-tailcall.c (find_tail_calls): Ignore returns.
10155 2011-03-15 Richard Guenther <rguenther@suse.de>
10157 PR middle-end/48031
10158 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10159 or variable-indexed array accesses when in gimple form.
10161 2011-03-15 Richard Guenther <rguenther@suse.de>
10163 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10165 2011-03-15 Alan Modra <amodra@gmail.com>
10168 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10169 presume symbol_refs without a symbol_ref_decl are suitably
10170 aligned, nor other trees we may see here. Handle anchor symbols.
10171 (legitimate_constant_pool_address_p): Comment. Add mode param.
10172 Check cmodel=medium addresses. Adjust all calls.
10173 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10174 creating cmodel=medium optimized access to locals.
10175 * config/rs6000/constraints.md (R): Pass QImode to
10176 legitimate_constant_pool_address_p.
10177 * config/rs6000/predicates.md (input_operand): Pass mode to
10178 legitimate_constant_pool_address_p.
10179 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10182 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10185 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10186 64-bit constants being loaded into registers other than GPRs such
10187 as loading 0 into a VSX register.
10189 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10191 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10193 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10195 PR middle-end/47917
10196 * builtins.c (fold_builtin_snprintf): New function.
10197 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10198 (fold_builtin_4): Likewise.
10200 PR middle-end/38878
10201 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10202 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10203 and C - X == X also strip nops from +/-/p+ operand.
10204 When optimizing -X == C, fold C to arg0's type.
10207 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10208 emit it as add_AT_int instead of add_AT_unsigned.
10210 2011-03-14 Tom Tromey <tromey@redhat.com>
10212 * unwind-dw2.c: Include sys/sdt.h if it exists.
10213 (_Unwind_DebugHook): Use STAP_PROBE2.
10214 * config.in, configure: Rebuild.
10215 * configure.ac: Check for sys/sdt.h.
10217 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10219 * config/i386/i386.md (ROUND_FLOOR): New constant.
10220 (ROUND_CEIL): Ditto.
10221 (ROUND_TRUNC): Ditto.
10222 (ROUND_MXCSR): Ditto.
10223 (ROUND_NO_EXC): Ditto.
10224 (rint<mode>2): Use new defines instead of numerical constants.
10225 (floor<mode>2): Ditto.
10226 (ceil<mode>2): Ditto.
10227 (btrunc<mode>2): Ditto.
10228 * config/i386/i386-builtin-types.def: Define ROUND function type
10230 * config/i386/i386.c (enum ix86_builtins): Add
10231 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10232 (struct builtin_description): Add
10233 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10234 (ix86_expand_sse_round): New static function.
10235 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10237 (ix86_builtin_vectorized_function): Handle
10238 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10240 2011-03-14 Tom Tromey <tromey@redhat.com>
10242 * c-parser.c (c_parser_asm_string_literal): Clear
10243 warn_overlength_strings.
10245 2011-03-14 Tom Tromey <tromey@redhat.com>
10247 * c-parser.c (disable_extension_diagnostics): Save
10248 warn_overlength_strings.
10249 (restore_extension_diagnostics): Restore warn_overlength_strings.
10251 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10253 * BASE-VER: Change to 4.7.0.
10255 2011-03-14 Richard Guenther <rguenther@suse.de>
10257 PR middle-end/48098
10258 * tree.c (build_vector_from_val): Adjust assert to requirements
10261 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10264 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10266 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10268 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10269 terms of target_flags_explicit. Adjust copyright year.
10271 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10272 * config/rs6000/t-freebsd: New file. Add override for
10275 2011-03-13 Chris Demetriou <cgd@google.com>
10277 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10278 (-fno-diagnostics-show-option): this, to reflect current default.
10279 (-Werror=): Update text about -fno-diagnostics-show-option.
10281 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10284 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10285 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10286 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10287 mode is not V2DImode or V2DFmode.
10288 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10289 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10290 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10292 (movdi_internal64): Likewise.
10294 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10296 PR tree-optimization/47127
10297 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10299 (set_cloog_options): Same.
10300 (scop_to_clast): Same.
10301 (print_clast_stmt): Do not call cloog_state_malloc and
10303 (print_generated_program): Same.
10305 * graphite-clast-to-gimple.h (cloog_state): Declared.
10306 (scop_to_clast): Adjust declaration.
10307 * graphite.c (cloog_state): Defined here.
10308 (graphite_initialize): Call cloog_state_malloc.
10309 (graphite_finalize): Call cloog_state_free.
10311 2011-03-11 Jason Merrill <jason@redhat.com>
10313 * attribs.c (lookup_attribute_spec): Take const_tree.
10316 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10318 * config/sparc/sparc.c (sparc_option_override): Use
10319 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10321 2011-03-11 Richard Guenther <rguenther@suse.de>
10323 PR tree-optimization/48067
10324 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10325 multiplication result will be only used once on the target
10328 2011-03-11 Richard Guenther <rguenther@suse.de>
10330 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10332 2011-03-11 Richard Guenther <rguenther@suse.de>
10335 * tree.c (find_decls_types_r): Do not walk types only reachable
10336 from IDENTIFIER_NODEs.
10338 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10340 PR middle-end/48044
10341 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10342 all vnode->force_output nodes as needed.
10344 2011-03-11 Jason Merrill <jason@redhat.com>
10347 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10348 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10350 2011-03-11 Martin Jambor <mjambor@suse.cz>
10352 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10355 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10357 PR tree-optimization/48063
10358 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10359 inline functions called once if !tree_can_inline_p (node->callers).
10361 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10363 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10365 * config/score/score3.c: Delete.
10366 * config/score/score3.h: Delete.
10367 * config/score/mul-div.S: Delete.
10368 * config/score/sfp-machine.h: Add new file.
10369 * config/score/constraints.md: Add new file.
10370 * config/score/t-score-softfp: Add new file.
10371 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10372 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10373 (score7_extra_constraint): Delete.
10374 (score7_option_override): Remove unused code.
10375 * config/score/score.c: Remove score3 and score5 define and code.
10376 * config/score/score.h: Remove score3 and score5 define and code.
10377 * config/score/score.md: Remove score3 template and unusual insn.
10378 * config/score/score.opt: Remove score3 and score5 options.
10380 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10382 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10383 when _HPUX_SOURCE is defined.
10384 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10386 2011-03-10 Jason Merrill <jason@redhat.com>
10389 * stor-layout.c (layout_type): Don't set structural equality
10390 on arrays of incomplete type.
10391 * tree.c (type_hash_eq): Handle comparing them properly.
10393 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10396 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10397 result mode matches original rtl mode.
10399 2011-03-10 Nick Clifton <nickc@redhat.com>
10401 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10402 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10404 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10406 PR rtl-optimization/47866
10407 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10408 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10409 if target wasn't scalar.
10410 * function.c (assign_stack_temp_for_type): Assert that neither
10411 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10412 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10414 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10416 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10418 * config/s390/s390-protos.h (s390_label_align): New prototype.
10419 * config/s390/s390.c (s390_label_align): New function.
10420 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10422 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10425 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10426 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10427 (output_vec_const_move): Ditto.
10429 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10431 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10432 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10433 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10434 Change 'rclass' argument and result type to reg_class_t.
10435 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10437 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10439 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10440 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10441 (TARGET_MEMORY_MOVE_COST): Define.
10442 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10444 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10447 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10450 PR tree-optimization/48022
10451 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10454 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10457 * var-tracking.c (find_use_val): Return NULL for
10458 cui->sets && cui->store_p BLKmode MEMs.
10460 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10462 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10464 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10465 xstormy16_print_operand_address): Remove.
10466 * config/stormy16/stormy16.c (xstormy16_print_operand,
10467 xstormy16_print_operand_address): Make static.
10468 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10470 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10473 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10474 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10477 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10480 * cfgloopmanip.c (fix_bb_placements): Return immediately
10481 if FROM is BASE_LOOP's header.
10483 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10485 * gimplify.c (gimplify_function_tree): Fix building calls
10486 to __builtin_return_address.
10488 2011-03-07 Alan Modra <amodra@gmail.com>
10490 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10491 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10492 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10493 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10495 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10496 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10497 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10498 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10499 * config/rs6000/rs6000.c
10500 (rs6000_elf_end_indicate_exec_stack): Rename to..
10501 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10502 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10503 (rs6000_file_start): ..here.
10504 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10505 file scope variables.
10506 (call_ABI_of_interest): New function.
10507 (init_cumulative_args): Set above vars when function return value
10508 is a float, vector, or small struct.
10509 (rs6000_function_arg_advance_1): Likewise for function args.
10510 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10511 references float args.
10513 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10515 * doc/cfg.texi: Remove "See" before @ref.
10516 * doc/invoke.texi: Likewise.
10518 2011-03-05 Jason Merrill <jason@redhat.com>
10520 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10522 2011-03-05 Anthony Green <green@moxielogic.com>
10524 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10526 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10528 PR rtl-optimization/47899
10529 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10530 to flow_loop_nested_p when moving the loop upward.
10532 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10535 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10537 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10539 PR tree-optimization/47967
10540 * ipa-cp.c (build_const_val): Return NULL instead of creating
10541 VIEW_CONVERT_EXPR for mismatching sizes.
10542 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10543 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10544 give up on versioning.
10546 2011-03-05 Alan Modra <amodra@gmail.com>
10549 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10550 full cmodel medium/large lo_sum + high addresses.
10552 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10554 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10555 pool references in UNSPEC_LTREL_OFFSET.
10557 2011-03-04 Jan Hubicka <jh@suse.cz>
10560 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10561 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10562 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10564 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10565 cgraph_add_thunk): Add node pointers.
10566 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10567 associated to right node.
10568 (input_node): Update use of cgraph_same_body_alias
10569 and cgraph_add_thunk.
10571 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10573 * config/i386/i386.opt (mprefer-avx128): New flag.
10574 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10575 modes when the flag -mprefer-avx128 is on.
10577 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10579 * dwarf2out.c (compare_loc_operands): Fix address handling.
10581 2011-03-04 Alan Modra <amodra@gmail.com>
10583 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10585 2011-03-04 Richard Guenther <rguenther@suse.de>
10587 PR middle-end/47968
10588 * expmed.c (extract_bit_field_1): Prefer vector modes that
10589 vec_extract patterns can handle.
10591 2011-03-04 Richard Guenther <rguenther@suse.de>
10593 PR middle-end/47975
10594 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10596 2011-03-04 Richard Henderson <rth@redhat.com>
10598 * explow.c (emit_stack_save): Remove 'after' parameter.
10599 (emit_stack_restore): Likewise.
10600 * expr.h: Update to match.
10601 * builtins.c, calls.c, stmt.c: Likewise.
10602 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10603 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10604 * function.c (expand_function_end): Insert the emit_stack_save
10605 sequence before parm_birth_insn instead of after.
10607 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10609 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10610 (ssse3_pmaddubsw128): Ditto.
10611 (ssse3_pmaddubsw): Ditto.
10613 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10615 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10617 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10620 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10621 on TYPE_SIZE_UNIT if it is a DECL.
10624 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10625 first operand is not is_gimple_mem_ref_addr, try to fold it.
10626 If the operand still isn't is_gimple_mem_ref_addr, clear
10629 2011-03-03 Richard Guenther <rguenther@suse.de>
10631 PR middle-end/47283
10632 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10634 (refs_may_alias_p_1): For release branches return true if
10635 we are confused by our input.
10637 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10639 * config/s390/s390.c (s390_function_value): Rename to ...
10640 (s390_function_and_libcall_value): ... this.
10641 (s390_function_value): New function.
10642 (s390_libcall_value): New function.
10643 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10644 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10645 target macro definitions.
10646 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10648 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10650 * config/i386/freebsd64.h (CC1_SPEC): Define.
10651 * config/i386/linux64.h (CC1_SPEC): Define.
10652 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10654 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10656 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10658 * config/stormy16/stormy16.c: Include reload.h.
10659 (xstormy16_memory_move_cost): New function.
10660 (TARGET_MEMORY_MOVE_COST): Define.
10662 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10664 PR rtl-optimization/47925
10665 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10666 with side effects. Remove the more-specific check for volatile asms.
10668 2011-03-02 Alan Modra <amodra@gmail.com>
10671 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10672 toc relative addresses for valid offsets.
10674 2011-03-01 Richard Guenther <rguenther@suse.de>
10676 PR tree-optimization/47890
10677 * tree-vect-loop.c (get_initial_def_for_induction): Set
10678 related stmt properly.
10680 2011-03-01 Richard Guenther <rguenther@suse.de>
10683 * lto-streamer.c (lto_record_common_node): Also register
10684 the canonical type.
10686 2011-03-01 Richard Guenther <rguenther@suse.de>
10689 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10690 Do not stream DECL_ABSTRACT_ORIGIN.
10691 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10692 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10693 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10694 Do not stream DECL_ABSTRACT_ORIGIN.
10695 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10696 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10698 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10700 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10701 FUNCTION_VALUE_REGNO_P): Remove.
10702 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10703 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10704 Add 'outgoing' argument.
10705 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10707 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10708 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10710 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10713 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10714 (lookup_filename): Likewise.
10715 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10717 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10718 Jakub Jelinek <jakub@redhat.com>
10720 PR middle-end/47893
10721 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10722 (assign_stack_local_1): Change last argument type to int.
10723 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10724 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10725 don't record padding space into frame_space_list nor use those areas.
10726 (assign_stack_local): Adjust caller.
10727 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10728 of assign_stack_local, pass 0 as last argument.
10729 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10732 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10735 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10736 Use target address_mode and pointer_mode hooks instead of hardcoded
10737 Pmode and ptr_mode. Handle some simple cases of extending if
10738 POINTERS_EXTEND_UNSIGNED < 0.
10739 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10740 Call convert_debug_memory_address.
10741 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10742 convert_debug_memory_address.
10744 PR middle-end/46790
10745 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10746 * configure: Regenerated.
10747 * config.in: Regenerated.
10748 * varasm.c (default_function_section): Return NULL
10749 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10751 2011-02-28 Martin Jambor <mjambor@suse.cz>
10753 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10754 the description to match the printed values.
10756 2011-02-28 Richard Guenther <rguenther@suse.de>
10758 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10759 of the copied scope tree.
10761 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10763 * doc/extend.texi (Function Attributes): Avoid deeply (and
10764 wrongly) nested tables.
10766 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10768 PR middle-end/47903
10769 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10770 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10771 r isn't op0 nor op1.
10773 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10775 * config/avr/avr.md: Remove magic comment for emacs.
10777 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10780 * config/avr/avr.c (avr_option_override): Use error on bad options.
10781 (avr_help): New function.
10782 (TARGET_HELP): Define.
10784 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10787 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10788 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10790 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10792 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10793 (ARM Options): Ditto.
10794 (i386 and x86-64 Options): Ditto.
10795 (RX Options): Ditto.
10796 (SPARC Options): Ditto.
10798 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10800 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10801 FreeBSD 6 and later. Generally use cpu generic.
10803 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10805 * doc/cpp.texi: Update copyright years.
10807 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10810 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10812 2011-02-25 Jon Beniston <jon@beniston.com>
10815 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10816 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10817 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10818 (lm32_block_move_inline): Add type cast to remove warning.
10819 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10820 (gen_int_relational): Move declarations to start of function.
10822 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10824 PR tree-optimization/45470
10825 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10826 can throw internally only.
10827 * tree-vect-stmts.c (vectorizable_call): Likewise.
10829 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10831 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10832 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10833 * config/stormy16/stormy16-protos.h
10834 (xstormy16_preferred_reload_class): Remove.
10835 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10836 static. Change 'rclass' argument and return type to reg_class_t.
10837 (TARGET_PREFERRED_RELOAD_CLASS,
10838 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10840 2011-02-24 Richard Guenther <rguenther@suse.de>
10842 * lto-streamer-in.c (input_bb): Do not find referenced vars
10843 in debug statements.
10845 2011-02-23 Jason Merrill <jason@redhat.com>
10847 * common.opt (fabi-version): Document v5 and v6.
10849 2011-02-23 Richard Guenther <rguenther@suse.de>
10851 PR tree-optimization/47849
10852 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10854 2011-02-23 Jie Zhang <jie@codesourcery.com>
10856 * opts-common.c (decode_cmdline_option): Print empty string
10857 argument as "" in decoded->orig_option_with_args_text.
10858 * gcc.c (execute): Print empty string argument as ""
10859 in the verbose output.
10860 (do_spec_1): Keep empty string argument.
10862 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10864 * config.gcc: Declare score-* and crx-* obsolete.
10866 2011-02-23 Jie Zhang <jie@codesourcery.com>
10868 PR rtl-optimization/47763
10869 * web.c (web_main): Ignore naked clobber when replacing register.
10871 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10873 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10876 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10879 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10881 2011-02-22 Mike Stump <mikestump@comcast.net>
10883 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10885 * configure: Regenerate.
10887 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10889 PR rtl-optimization/46002
10890 * ira-color.c (update_copy_costs): Change class intersection
10891 test to reg_class_contents[] test of 'hard_regno'.
10893 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10895 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10896 than Driver option.
10897 * config/hpux11.opt (mt): Likewise.
10898 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10899 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10900 * config/vax/elf.opt (mno-asm-pic): Likewise.
10901 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10903 2011-02-21 Mike Stump <mikestump@comcast.net>
10906 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10907 tree so we can get save the type.
10908 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10909 for CFString instead of trying to use past the end of the builtins.
10910 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10911 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10912 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10913 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10914 Rename to darwin_builtin_cfstring.
10915 (darwin_init_cfstring_builtins): Return the built type.
10917 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10920 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10921 (_mm256_insert_epi64): Use _mm_insert_epi64.
10923 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10925 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10926 * config/stormy16/stormy16-protos.h
10927 (xstormy16_mode_dependent_address_p): Remove.
10928 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10929 Make static. Change return type to bool. Change argument type to
10930 const_rtx. Remove dead code.
10931 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10933 2011-02-21 Richard Guenther <rguenther@suse.de>
10936 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10937 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10938 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10940 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10941 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10943 2011-02-20 Richard Guenther <rguenther@suse.de>
10946 * tree.c (free_lang_data_in_decl): Clean builtins from
10947 the TU decl BLOCK_VARS.
10949 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10953 * haifa-sched.c (fix_tick_ready): Skip tick computation
10956 2011-02-19 Richard Guenther <rguenther@suse.de>
10959 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10960 Remove lazy BLOCK_VARS streaming.
10961 (lto_input_ts_block_tree_pointers): Likewise.
10962 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10964 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10966 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10968 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10970 * config/i386/biarch32.h, config/i386/mach.h,
10971 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10973 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10976 * config/i386/i386.md (peephole2 for shift and plus): Use
10977 operands[1] original mode in the first insn.
10979 2011-02-18 Mike Stump <mikestump@comcast.net>
10981 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10983 2011-02-18 Jan Hubicka <jh@suse.cz>
10985 PR middle-end/47788
10986 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10987 to zero when the function is not inlinable at all.
10989 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10991 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10992 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10993 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10994 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10995 * config/pa/t-pa64: Likewise.
10996 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10998 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11001 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11003 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11006 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11008 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11010 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11011 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11012 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11013 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11014 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11015 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11016 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11017 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11018 m32r_legitimate_address_p): New functions.
11019 * config/m32r/constraints.md (constraint "S"): Don't use
11020 STORE_PREINC_PREDEC_P.
11021 (constraint "U"): Don't use LOAD_POSTINC_P.
11023 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11025 PR rtl-optimization/46178
11026 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11027 compute ira_hard_regno_cover_class[].
11029 2011-02-18 Richard Guenther <rguenther@suse.de>
11032 * lto-streamer.h (lto_global_var_decls): Declare.
11033 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11034 statics for global var processing.
11036 2011-02-18 Richard Guenther <rguenther@suse.de>
11038 PR tree-optimization/47737
11039 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11040 edge dominance check.
11042 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11045 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11046 avoid invalid rtx sharing.
11048 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11050 * doc/cpp.texi (Obsolete Features): Add background on the
11051 origin of assertions.
11053 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11055 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11057 * config/darwin.c (output_objc_section_asm_op): Added support for
11059 (is_objc_metadata): New.
11060 (darwin_objc2_section): New.
11061 (darwin_objc1_section): New.
11062 (machopic_select_section): Added support for ABI v1 and v2.
11063 (darwin_emit_objc_zeroed): New.
11064 (darwin_output_aligned_bss): Detect objc metadata and treat it
11066 (darwin_asm_output_aligned_decl_common): Same.
11067 (darwin_asm_output_aligned_decl_local): Same.
11068 * config/darwin-sections.def: Updated for ABI v1 and v2.
11069 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11070 compiling Objective-C code for the NeXT runtime, default to using
11071 ABI version 0 for 32-bit, and version 2 for 64-bit.
11073 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11075 * common.opt (optimize_fast): New Variable.
11076 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11077 instead of local variable ofast.
11079 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11081 * doc/invoke.texi (fobjc-abi-version): Documented.
11082 (fobjc-nilcheck): Documented.
11083 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11086 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11089 * common.opt (export-dynamic): New Driver option.
11090 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11092 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11094 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11096 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11097 Jan Hubicka <jh@suse.cz>
11101 * cfgexpand.c (account_used_vars_for_block): Remove.
11102 (estimated_stack_frame_size): Use referenced vars.
11103 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11104 that were referenced in the original function. Test src_fn
11105 rather than cfun. Drop redundant get_var_ann.
11106 (setup_one_parameter): Drop redundant get_var_ann.
11107 (declare_return_variable): Likewise.
11108 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11109 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11110 * ipa-inline.c (compute_inline_parameters): Do not compute
11111 disregard_inline_limits here.
11112 (compute_inlinable_for_current, pass_inlinable): New.
11113 (pass_inline_parameters): Require PROP_referenced_vars.
11114 * cgraphunit.c (cgraph_process_new_functions): Don't run
11115 compute_inline_parameters explicitly unless function is in SSA form.
11116 (cgraph_analyze_function): Set .disregard_inline_limits.
11117 * tree-sra.c (convert_callers): Compute inliner parameters
11118 only for functions already in SSA form.
11120 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11122 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11123 -mlittle-endian-data.
11125 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11127 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11128 -mno-fpu, not -fpu and -no-fpu.
11129 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11130 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11132 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11135 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11136 input reload with PLUS RTX.
11138 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11140 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11141 of InverseVar(MDMX).
11143 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11145 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11148 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11150 * config/mn10300/mn10300.opt (mno-crt0): New.
11152 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11154 * config/m68k/uclinux.opt (static-libc): New Driver option.
11156 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11158 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11160 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11162 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11163 %{muser-extend-enabled}.
11165 2011-02-16 Richard Guenther <rguenther@suse.de>
11167 PR tree-optimization/47738
11168 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11169 the TODO from tree_predictive_commoning.
11171 2011-02-15 Jeff Law <law@redhat.com>
11174 2011-01-25 Jeff Law <law@redhat.com>
11176 PR rtl-optimization/37273
11177 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11178 handle them like argument loads from stack slots. Do not double
11179 count memory for memory constants and argument loads from stack slots.
11181 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11183 PR middle-end/47725
11184 * combine.c (cant_combine_insn_p): Revert the last change.
11186 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11189 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11190 mode for vector constants. Remove code that checks for TImode.
11192 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11196 * cgraph.h (compute_inline_parameters): Return void.
11197 * ipa-inline.c (compute_inline_parameters): Adjust.
11199 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11203 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11205 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11206 * ipa-inline.c (compute_inline_parameters): Adjust.
11208 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11212 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11213 Adjust all users. Pass FN to...
11214 * tree-flow-inline.h (first_referenced_var): ... this. Add
11216 * ipa-struct-reorg.c: Adjust.
11217 * tree-dfa.c: Adjust.
11218 * tree-into-ssa.c: Adjust.
11219 * tree-sra.c: Adjust.
11220 * tree-ssa-alias.c: Adjust.
11221 * tree-ssa-live.c: Adjust.
11222 * tree-ssa.c: Adjust.
11223 * tree-ssanames.c: Adjust.
11224 * tree-tailcall.c: Adjust.
11226 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11230 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11231 Adjust all callers.
11232 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11233 * tree-flow-inline.h: Adjust.
11234 * gimple-pretty-print.c: Adjust.
11235 * tree-into-ssa.c: Adjust.
11236 * tree-ssa.c: Adjust.
11237 * cfgexpand.c: Adjust.
11239 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11241 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11242 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11243 (EXTRA_CONSTRAINT): Delete.
11244 * config/iq2000/constraints.md: New file.
11245 * config/iq2000/iq2000.md: Include it.
11246 (define_insn ""): Delete.
11247 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11248 unsupported constraint letters from patterns.
11249 (call_value, call_value_internal1): Likewise.
11250 (call_value_multiple_internal1): Likewise.
11252 2011-02-15 Nick Clifton <nickc@redhat.com>
11254 * config/mn10300/mn10300.c: Include tm-constrs.h.
11255 (struct liw_data): New data structure describing an LIW candidate
11257 (extract_bundle): Use struct liw_data. Allow small integer
11258 operands for some instructions.
11259 (check_liw_constraints): Use struct liw_data. Remove swapped
11260 parameter. Add comments describing the checks. Fix bug when
11261 assigning the source of liw1 to the source of liw2.
11262 (liw_candidate): Delete. Code moved into extract_bundle.
11263 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11265 * config/mn10300/predicates.md (liw_operand): New predicate.
11266 Allows registers and small integer constants.
11267 * config/mn10300/constraints.md (O): New constraint. Accetps
11268 integers in the range -8 to +7 inclusive.
11269 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11270 for moving a small integer into a register. Give this alternative
11272 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11273 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11274 using the J,K,L and M constraints,
11275 (liw): Remove SI mode on second operands to allow for HI and QI
11277 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11280 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11282 PR middle-end/47725
11283 * combine.c (cant_combine_insn_p): Check zero/sign extended
11286 2011-02-15 Richard Guenther <rguenther@suse.de>
11288 PR tree-optimization/47743
11289 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11290 for a non-type-compatible VN lookup bail out.
11292 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11294 * config/fr30/constraints.md: New file.
11295 * config/fr30/fr30.md: Include it.
11296 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11297 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11298 (EXTRA_CONSTRAINT): Delete.
11300 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11302 * config/frv/constraints.md: New file.
11303 * config/frv/predicates.md: Include it.
11304 * config/frv/frv.c (reg_class_from_letter): Delete.
11305 (frv_option_override): Don't initialize it.
11306 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11307 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11308 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11309 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11310 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11311 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11312 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11313 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11314 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11315 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11316 (REG_CLASS_FROM_CONSTRAINT): Delete.
11318 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11320 PR middle-end/47581
11321 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11322 if frame size is 0 in a leaf function.
11324 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11327 * config/alpha/host-osf.c: New file.
11328 * config/alpha/x-osf: New file.
11329 * config.host (alpha*-dec-osf*): Use it.
11331 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11333 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11334 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11335 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11336 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11338 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11340 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11342 * config/stormy16/constraints.md: New file.
11343 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11344 Use satisfies_constraint_Q and satisfies_constraint_R.
11345 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11347 (xstormy16_legitiamte_address_p): Declare.
11348 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11349 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11350 (EXTRA_CONSTRAINT): Delete.
11351 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11353 (xstormy16_extra_constraint_p): Delete.
11355 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11357 PR tree-optimization/46494
11358 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11359 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11360 (pass_rtl_loop_done): Add TODO_verify_flow.
11361 * fwprop.c (pass_rtl_fwprop): Likewise.
11362 * modulo-sched.c (pass_sms): Likewise.
11363 * tree-ssa-dom.c (pass_dominator): Likewise.
11364 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11365 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11366 (pass_tree_loop_done): Likewise.
11367 * tree-ssa-pre.c (execute_pre): Likewise.
11368 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11369 * tree-ssa-sink.c (pass_sink_code): Likewise.
11370 * tree-vrp.c (pass_vrp): Likewise.
11372 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11374 * config/v850/constraints.md: New file.
11375 * config/v850/v850.md: Include it.
11376 * config/v850/predicates.md (reg_or_0_operand): Use
11377 satisfies_constraint_G.
11378 (special_symbolref_operand): Use satisfies_constraint_K.
11379 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11380 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11381 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11382 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11383 (EXTRA_CONSTRAINT): Delete.
11384 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11385 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11386 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11388 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11391 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11394 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11396 * config/mcore/constraints.md: New file.
11397 * config/mcore/mcore.md: Include it.
11398 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11399 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11400 (REG_CLASS_FROM_LETTER): Delete.
11401 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11402 insn_const_int_ok_for_constraint.
11403 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11404 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11405 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11406 (EXTRA_CONSTRAINT): Delete.
11408 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11411 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11412 (IS_SIGHANDLER): Define.
11413 (sparc64_is_sighandler): New function, split off from
11414 sparc64_fallback_frame_state.
11415 (sparc_is_sighandler): New function, split off from
11416 sparc_fallback_frame_state.
11417 (sparc64_fallback_frame_state): Merge with ...
11418 (sparc_fallback_frame_state): ... this into ...
11419 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11420 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11421 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11422 stack instead of hardcoded offsets.
11424 2011-02-14 Andriy Gapon <avg@freebsd.org>
11427 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11429 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11431 * configure: Regenerate.
11433 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11436 * gcc.c (asm_options): Correct spec matching --target-help.
11438 2011-02-12 Martin Jambor <mjambor@suse.cz>
11440 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11441 to gimple call error.
11443 2011-02-12 Mike Stump <mikestump@comcast.net>
11445 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11446 comments in backslash regions.
11448 2011-02-12 Mike Stump <mikestump@comcast.net>
11449 Jakub Jelinek <jakub@redhat.com>
11450 Iain Sandoe <iains@gcc.gnu.org>
11453 * dwarf2out.c (output_cfa_loc): When required, apply the
11454 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11455 (output_loc_sequence): Likewise.
11456 (output_loc_operands_raw): Likewise.
11457 (output_loc_sequence_raw): Likewise.
11458 (output_cfa_loc): Likewise.
11459 (output_loc_list): Suppress register number adjustment when
11460 calling output_loc_sequence()
11461 (output_die): Likewise.
11463 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11465 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11467 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11468 xtensa_memory_move_cost): New functions.
11469 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11471 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11474 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11475 in the current directory.
11476 * configure: Rebuilt.
11478 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11480 * config/darwin.c (darwin_override_options): Add a hunk missed
11481 from the commit of r168571. Trim comment line lengths and
11482 correct indents of the preceding block.
11484 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11486 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11489 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11491 * common.opt (nostartfiles): New Driver option.
11493 2011-02-11 Xinliang David Li <davidxl@google.com>
11495 PR tree-optimization/47707
11496 * tree-chrec.c (convert_affine_scev): Keep type precision.
11498 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11500 PR tree-optimization/47420
11501 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11503 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11505 PR rtl-optimization/47614
11506 * rtl.h (check_for_inc_dec): Declare.
11507 * dse.c (check_for_inc_dec): Externalize...
11508 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11509 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11511 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11514 * gcc.c (main): Do not compile inputs if there were errors in
11516 * opts-common.c (read_cmdline_option): Check for wrong language
11517 after other error checks.
11519 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11521 * cgraph.c: Fix comment typos.
11522 * cgraph.h: Likewise.
11523 * cgraphunit.c: Likewise.
11524 * ipa-cp.c: Likewise.
11525 * ipa-inline.c: Likewise.
11526 * ipa-prop.c: Likewise.
11527 * ipa-pure-const.c: Likewise.
11528 * ipa-ref.c: Likewise.
11529 * ipa-reference.c: Likewise.
11531 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11534 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11536 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11539 * doc/sourcebuild.texi (Require Support): Document
11540 dg-require-ascii-locale.
11542 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11544 * doc/lto.texi (Write summary): Fix missing parentheses.
11546 2011-02-10 DJ Delorie <dj@redhat.com>
11548 * config/m32c/m32c.c (m32c_option_override): Disable
11549 -fcombine-stack-adjustments until flag value tracking and compare
11550 optimization can be rewritten.
11552 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11554 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11556 (PROCESSOR_DEFAULT64): Likewise.
11558 2011-02-10 Richard Henderson <rth@redhat.com>
11560 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11561 change from 2011-02-03.
11562 * config/rx/rx.c (flags_from_code): Likewise.
11563 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11564 is valid, n/pz otherwise.
11565 (rx_select_cc_mode): Return CCmode if Y is not zero.
11567 2011-02-10 Richard Guenther <rguenther@suse.de>
11569 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11571 2011-02-10 Richard Guenther <rguenther@suse.de>
11573 PR tree-optimization/47677
11574 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11576 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11579 * combine.c (make_compound_operation): Only change shifts into
11580 multiplication for SCALAR_INT_MODE_P.
11582 2011-02-10 Jie Zhang <jie@codesourcery.com>
11586 2011-02-05 Jie Zhang <jie@codesourcery.com>
11588 * web.c (entry_register): Don't clobber the number of the
11589 first uninitialized reference in used[].
11591 2011-02-09 Richard Guenther <rguenther@suse.de>
11593 PR tree-optimization/47664
11594 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11597 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11601 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11603 (PROCESSOR_DEFAULT64): Same.
11604 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11606 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11608 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11610 2011-02-09 Martin Jambor <mjambor@suse.cz>
11612 PR middle-end/45505
11613 * tree-sra.c (struct access): New flags grp_scalar_read and
11614 grp_scalar_write. Changed description of assignment read and write
11616 (dump_access): Dump new flags, reorder all of them.
11617 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11618 to detect multiple scalar reads.
11619 (analyze_access_subtree): Use the new scalar read write flags instead
11620 of the old flags. Adjusted comments.
11622 2011-02-08 DJ Delorie <dj@redhat.com>
11625 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11628 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11630 * config/m68k/uclinux.opt: New.
11631 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11633 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11635 * config/cris/elf.opt (sim): New Driver option.
11637 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11639 * config/xtensa/elf.opt: New.
11640 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11642 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11644 * config/vax/elf.opt: New.
11645 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11647 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11649 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11651 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11653 * config/gnu-user.opt: New.
11654 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11655 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11656 *-*-uclinux*): Use gnu-user.opt.
11658 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11660 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11661 * config/i386/gnu.h (CPP_SPEC): Likewise.
11663 2011-02-08 Ian Lance Taylor <iant@google.com>
11665 * common.opt (fcx-limited-range): Add SetByCombined flag.
11666 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11667 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11668 (fassociative-math, freciprocal-math): Likewise.
11669 (funsafe-math-optimizations): Likewise.
11670 * opth-gen.awk: Handle SetByCombined.
11671 * optc-gen.awk: Likewise.
11672 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11673 (set_unsafe_math_optimizations_flags): Likewise.
11674 * doc/options.texi (Option properties): Document SetByCombined.
11676 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11678 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11679 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11680 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11681 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11682 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11684 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11686 PR tree-optimization/46834
11687 PR tree-optimization/46994
11688 PR tree-optimization/46995
11689 * graphite-sese-to-poly.c (used_outside_reduction): New.
11690 (detect_commutative_reduction): Call used_outside_reduction.
11691 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11692 translate_scalar_reduction_to_array only when at least one
11693 loop-phi/close-phi tuple has been detected.
11695 2011-02-08 Richard Guenther <rguenther@suse.de>
11697 PR middle-end/47639
11698 * tree-vect-generic.c (expand_vector_operations_1): Update
11700 (expand_vector_operations): ... not here. Cleanup EH info
11701 and the CFG if required.
11703 2011-02-08 Richard Guenther <rguenther@suse.de>
11705 PR tree-optimization/47641
11706 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11707 require type compatibility.
11709 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11711 * gimple-low.c (lower_function_body): Don't remove the location of
11712 the return statement here.
11713 (lower_gimple_return): Do it here instead but only if the return
11714 statement is actually used twice.
11716 2011-02-08 Richard Guenther <rguenther@suse.de>
11718 PR tree-optimization/47632
11719 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11720 unused up_to_stmt parameter, return whether cfg-cleanup is
11721 necessary, remove EH info properly.
11722 (forward_propagate_into_gimple_cond): Adjust caller.
11723 (forward_propagate_into_cond): Likewise.
11724 (forward_propagate_comparison): Likewise.
11725 (tree_ssa_forward_propagate_single_use_vars): Make
11726 forward_propagate_comparison case similar to the two others.
11728 2011-02-08 Nick Clifton <nickc@redhat.com>
11730 * config/mn10300/mn10300.opt (mliw): New command line option.
11731 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11732 (liw_bundling): New automaton.
11733 (liw): New attribute.
11734 (liw_op): New attribute.
11735 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11736 (movsi_internal): Add LIW attributes.
11737 (andsi3): Likewise.
11738 (iorsi3): Likewise.
11739 (xorsi3): Likewise.
11740 (addsi3): Separate register and immediate alternatives.
11741 Add LIW attributes.
11742 (subsi3): Likewise.
11744 (aslsi3): Likewise.
11745 (lshrsi3): Likewise.
11746 (ashrsi3): Likewise.
11747 (liw): New pattern.
11748 * config/mn10300/mn10300.c (liw_op_names): New
11749 (mn10300_print_operand): Handle 'W' operand descriptor.
11750 (extract_bundle): New function.
11751 (check_liw_constraints): New function.
11752 (liw_candidate): New function.
11753 (mn10300_bundle_liw): New function.
11754 (mn10300_reorg): New function.
11755 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11756 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11757 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11758 __LIW__ or __NO_LIW__.
11759 * doc/invoke.texi: Describe the -mliw command line option.
11761 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11763 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11764 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11765 pthread_mutex_unlock): Remove.
11766 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11767 * config/pa/t-pa64: Likewise.
11768 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11769 shared libc if not linking against libpthread.
11770 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11772 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11775 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11776 on 10.6 and later to ensure that we always use the unwinder from
11777 the system. Only add -no_compact_unwind when tarteting darwin
11780 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11783 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11784 (vec_interleave_lowv2sf): Ditto.
11785 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11786 (vec_extract_oddv2sf): Ditto.
11788 2011-02-07 Mike Stump <mikestump@comcast.net>
11791 Add __ieee_divdc3 entry point.
11792 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11794 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11795 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11796 * config/darwin.c (darwin_rename_builtins): Add.
11797 * config/darwin-protos.h (darwin_rename_builtins): Add.
11799 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11802 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11805 2011-02-07 Mike Stump <mikestump@comcast.net>
11807 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11809 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11812 * config/avr/libgcc.S (exit): Move .endfunc
11814 2011-02-07 Richard Guenther <rguenther@suse.de>
11816 PR tree-optimization/47615
11817 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11818 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11819 (run_scc_vn): Initialize it.
11820 (visit_reference_op_load): Use it.
11821 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11823 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11825 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11826 DImode trapping arithmetic libfuncs.
11828 2011-02-07 Richard Guenther <rguenther@suse.de>
11830 PR tree-optimization/47621
11831 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11833 (execute_update_addresses_taken): ... here. Make it more
11834 conservative in what we accept.
11836 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11838 * config/sparc/freebsd.h (ASM_SPEC): Define.
11839 * config/sparc/vxworks.h (ASM_SPEC): Define.
11841 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11843 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11845 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11847 * doc/invoke.texi: Remove reference to compiler internals from
11848 user documentation.
11850 * reg-notes.def: Remove REG_VALUE_PROFILE.
11851 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11853 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11855 PR middle-end/47610
11856 * varasm.c (default_section_type_flags): If decl is NULL,
11857 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11859 2011-02-05 Jie Zhang <jie@codesourcery.com>
11862 * web.c (entry_register): Don't clobber the number of the
11863 first uninitialized reference in used[].
11865 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11867 PR tree-optimization/46194
11868 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11869 (build_classic_dist_vector_1): Do not represent classic distance
11870 vectors when the access functions are variating in different loops.
11872 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11874 * config/mips/iris6.opt: New.
11875 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11877 2011-02-04 Richard Henderson <rth@redhat.com>
11878 Steve Ellcey <sje@cup.hp.com>
11881 * config/ia64/predicates.md (mux1_brcst_element): New.
11882 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11883 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11884 (ia64_unpack_sign): New.
11885 (ia64_expand_unpack): Rewrite using new routines.
11886 (ia64_expand_widen_sum): Ditto.
11887 (ia64_expand_dot_prod_v8qi): Ditto.
11888 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11889 routines, add endian check.
11890 (pmpy2_even): Rename from pmpy2_r, add endian check.
11891 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11892 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11893 (vec_widen_smult_hi_v4hi): Ditto.
11894 (vec_widen_umult_lo_v4hi): Ditto.
11895 (vec_widen_umult_hi_v4hi): Ditto.
11896 (mulv2si3): Change endian checks.
11897 (sdot_prodv4hi): Rewrite with new calls.
11898 (udot_prodv4hi): New.
11899 (vec_pack_ssat_v4hi): Add endian check.
11900 (vec_pack_usat_v4hi): Ditto.
11901 (vec_pack_ssat_v2si): Ditto.
11902 (max1_even): Rename from max1_r, add endian check.
11903 (max1_odd): Rename from max1_l, add endian check.
11904 (*mux1_rev): Format change.
11905 (*mux1_mix): Ditto.
11906 (*mux1_shuf): Ditto.
11907 (*mux1_alt): Ditto.
11908 (*mux1_brcst_v8qi): Use new predicate.
11909 (vec_extract_evenv8qi): Remove endian check.
11910 (vec_extract_oddv8qi): Ditto.
11911 (vec_interleave_lowv4hi): Format change.
11912 (vec_interleave_highv4hi): Ditto.
11913 (mix2_even): Rename from mix2_r, add endian check.
11914 (mix2_odd): Rename from mux2_l, add endian check.
11915 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11916 (vec_extract_evenodd_helper): Format change.
11917 (vec_extract_evenv4hi): Remove endian check.
11918 (vec_extract_oddv4hi): Remove endian check.
11919 (vec_interleave_lowv2si): Format change.
11920 (vec_interleave_highv2si): Format change.
11921 (vec_initv2si): Remove endian check.
11922 (vecinit_v2si): Add endian check.
11923 (reduc_splus_v2sf): Add endian check.
11924 (reduc_smax_v2sf): Ditto.
11925 (reduc_smin_v2sf): Ditto.
11926 (vec_initv2sf): Remove endian check.
11927 (fpack): Add endian check.
11928 (fswap): Add endian check.
11929 (vec_interleave_highv2sf): Add endian check.
11930 (vec_interleave_lowv2sf): Add endian check.
11931 (fmix_lr): Add endian check.
11932 (vec_setv2sf): Format change.
11933 (*vec_extractv2sf_0_be): Use shift to extract operand.
11934 (*vec_extractv2sf_1_be): New.
11935 (vec_pack_trunc_v4hi): Add endian check.
11936 (vec_pack_trunc_v2si): Format change.
11938 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11940 PR inline-asm/23200
11941 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11942 do bb, locus and block comparison and disallow loads if it is not set.
11943 (stmt_is_replaceable_p): New function.
11944 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11946 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11947 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11949 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11951 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11953 * config/rs6000/xilinx.opt: New.
11954 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11956 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11958 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11960 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11962 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11963 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11964 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11965 secondary_reload_info, xtensa_secondary_reload): Remove.
11966 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11967 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11968 (xtensa_preferred_reload_class): Make static. Change return and
11969 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11970 Use CONST_DOUBLE_P predicate.
11971 (xtensa_preferred_output_reload_class): New function.
11972 (xtensa_secondary_reload): Make static.
11974 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11976 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11977 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11978 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11980 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11982 PR middle-end/31490
11983 * output.h (SECTION_RELRO): Define.
11984 (SECTION_MACH_DEP): Adjust.
11985 (get_variable_section): New prototype.
11986 * varpool.c (varpool_finalize_named_section_flags): New function.
11987 (varpool_assemble_pending_decls): Call it.
11988 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11989 * cgraphunit.c (cgraph_output_in_order): Call
11990 varpool_finalize_named_section_flags.
11991 * varasm.c (get_section): Allow section flags conflicts between
11992 relro and read-only sections if the section hasn't been declared yet.
11993 Set SECTION_OVERRIDE after diagnosing section type conflict.
11994 (get_variable_section): No longer static.
11995 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11996 readonly sections that need relocations.
11997 (decl_readonly_section_1): New function.
11998 (decl_readonly_section): Use it.
12001 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12002 Steve Ellcey <sje@cup.hp.com>
12004 PR middle-end/31490
12005 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12006 if section attribute used.
12008 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12010 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12011 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12012 (darwin_init_sections): Remove assertion.
12014 2011-02-03 Nick Clifton <nickc@redhat.com>
12016 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12018 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12019 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12020 instead of "n" and "pz".
12021 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12024 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12027 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12028 fma, expand FMA_EXPR as fma{,f,l} call.
12031 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12032 copy them into a unsigned char variable and pass address of it to
12033 lto_output_data_stream.
12036 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12037 around backend_init_target and lang_dependent_init_target calls.
12038 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12039 (verify_cgraph_node): Don't call set_cfun here. Use
12040 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12041 Set error_found for incorrectly represented calls to thunks.
12043 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12046 PR rtl-optimization/43494
12047 * rtl.h (for_each_inc_dec_fn): New type.
12048 (for_each_inc_dec): Declare.
12049 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12050 (for_each_inc_dec_find_inc_dec): New fn.
12051 (for_each_inc_dec_find_mem): New fn.
12052 (for_each_inc_dec): New fn.
12053 * dse.c (struct insn_size): Remove.
12054 (replace_inc_dec, replace_inc_dec_mem): Remove.
12055 (emit_inc_dec_insn_before): New fn.
12056 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12057 (canon_address): Pass mem modes to cselib_lookup.
12058 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12059 (cselib_lookup_from_insn): Likewise.
12060 (cselib_subst_to_values): Likewise.
12061 * cselib.c (find_slot_memmode): New var.
12062 (cselib_find_slot): New fn. Use it instead of
12063 htab_find_slot_with_hash everywhere.
12064 (entry_and_rtx_equal_p): Use find_slot_memmode.
12065 (autoinc_split): New fn.
12066 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12067 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12068 Deal with autoinc. Special-case recursion into MEMs.
12069 (cselib_hash_rtx): Likewise.
12070 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12071 address and MEM modes.
12072 (cselib_subst_to_values): Add memmode, pass it on.
12074 (cselib_lookup): Add memmode argument, pass it on.
12075 (cselib_lookup_from_insn): Add memmode.
12076 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12077 (struct cselib_record_autoinc_data): New.
12078 (cselib_record_autoinc_cb): New fn.
12079 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12080 mode to cselib_lookup. Reset autoinced REGs here instead of...
12081 (cselib_process_insn): ... here.
12082 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12084 (add_uses): Likewise, also to cselib_subst_to_values.
12085 (add_stores): Likewise.
12086 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12087 cselib_subst_to_values.
12088 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12089 * gcse.c (do_local_cprop): Adjusted.
12090 * postreload.c (reload_cse_simplify_set): Adjusted.
12091 (reload_cse_simplify_operands): Adjusted.
12092 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12094 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12096 PR tree-optimization/45122
12097 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12098 unsafe assumptions when there's more than one loop exit.
12100 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12103 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12104 Document using vector double with the load/store builtins, and
12105 that the load/store builtins always use Altivec instructions.
12107 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12108 to use altivec memory instructions, even on VSX.
12109 (vector_altivec_store_<mode>): Ditto.
12111 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12114 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12115 V2DF, V2DI support to load/store overloaded builtins.
12117 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12118 altivec load/store builtins for V2DF/V2DI types.
12120 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12121 set avoid indexed addresses on power6 if -maltivec.
12122 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12123 vector_altivec_load/vector_altivec_store builtins.
12124 (altivec_expand_st_builtin): Ditto.
12125 (altivec_expand_builtin): Add VSX memory builtins.
12126 (rs6000_init_builtins): Add V2DI types to internal types.
12127 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12128 load/store builtins.
12129 (rs6000_address_for_altivec): Insure memory address is appropriate
12132 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12133 vec_vsx_ld and vec_vsx_st.
12134 (vsx_store_<mode>): Ditto.
12136 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12137 variables to hold long long types for VSX vector memory builtins.
12138 (RS6000_BTI_unsigned_long_long): Ditto.
12139 (long_long_integer_type_internal_node): Ditti.
12140 (long_long_unsigned_type_internal_node): Ditti.
12142 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12143 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12144 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12146 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12148 (vec_vsx_st): Ditto.
12150 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12152 * config/pa/pa-hpux10.opt: New.
12153 * config/hpux11.opt (pthread): New Driver option.
12154 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12155 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12157 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12159 * config/ia64/vms.opt: New.
12160 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12162 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12165 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12166 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12167 generator functions.
12168 (vsx_floatuns<VSi><mode>2): Ditto.
12169 (vsx_fix_trunc<mode><VSi>2): Ditto.
12170 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12172 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12174 * config/i386/djgpp.opt (posix): New Driver option.
12176 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12178 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12179 Move to the unsupported targets list.
12181 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12183 PR rtl-optimization/47525
12184 * df-scan.c: Update copyright years.
12185 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12186 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12188 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12190 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12191 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12192 (ASM_OUTPUT_ASCII): Remove.
12193 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12195 2011-02-02 Jeff Law <law@redhat.com>
12197 PR middle-end/47543
12198 * reload.c (find_reloads_address): Handle reg+d address where both
12199 components are invalid by reloading the entire address.
12201 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12202 Richard Guenther <rguenther@suse.de>
12204 PR tree-optimization/40979
12206 * passes.c (init_optimization_passes): After LIM call copy_prop
12207 and DCE to clean up.
12208 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12210 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12212 PR tree-optimization/47576
12213 PR tree-optimization/47555
12214 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12215 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12216 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12217 * tree-scalar-evolution.c (follow_ssa_edge): Use
12218 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12220 2011-02-02 Richard Guenther <rguenther@suse.de>
12222 PR tree-optimization/47566
12223 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12225 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12229 * tree-inline.c (declare_return_variable): Remove unused caller
12234 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12235 * cfgexpand.c (account_used_vars_for_block): Use them.
12236 * tree-nrv.c (tree_nrv): Likewise.
12237 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12238 (dump_scope_block): Likewise.
12239 (remove_unused_locals): Likewise.
12243 * tree-inline.c (declare_return_variable): Add result decl to
12244 local decls only once.
12245 * gimple-low.c (record_vars_into): Mark newly-created variables
12248 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12254 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12256 (no_real_insns_p, schedule_block, set_priorities): Drop special
12257 treatment of boundary debug insns.
12258 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12259 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12260 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12261 (BOUNDARY_DEBUG_INSN_P): Likewise.
12262 (SCHEDULE_DEBUG_INSN_P): Likewise.
12263 * sched-rgn.c (init_ready_list): Drop special treatment of
12264 boundary debug insns.
12265 * final.c (rest_of_clean_state): Clear notes' BB.
12267 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12269 * config/openbsd.opt (assert=): New Driver option.
12271 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12273 * config/i386/nto.opt: New.
12274 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12276 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12278 * config/i386/netware.opt: New.
12279 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12281 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12283 * config/interix.opt (posix): New Driver option.
12285 2011-02-01 DJ Delorie <dj@redhat.com>
12287 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12289 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12292 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12294 PR tree-optimization/47561
12295 * toplev.c (process_options): Print the Graphite flags. Add
12296 flag_loop_flatten to the list of options requiring Graphite.
12298 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12300 * config/i386/cygming.opt (posix): New Driver option.
12302 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12304 * config/arm/vxworks.opt: New.
12305 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12307 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12309 * config/alpha/elf.opt: New.
12310 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12311 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12313 2011-02-01 Richard Guenther <rguenther@suse.de>
12315 PR tree-optimization/47559
12316 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12317 store-motion on references that can throw.
12319 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12321 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12322 * tree-pass.h (TDF_CSELIB): New macro.
12323 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12324 cselib_lookup): Check for it rather than for TDF_DETAILS.
12326 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12329 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12330 is HOST_BIT_BUCKET.
12332 * opts.c (finish_options): Don't add x_aux_base_name if it is
12335 2011-02-01 Richard Guenther <rguenther@suse.de>
12337 PR tree-optimization/47555
12339 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12341 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12343 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12346 * config/lm32/t-lm32: Add multilib for all CPU options.
12348 2011-02-01 Richard Guenther <rguenther@suse.de>
12350 PR tree-optimization/47541
12351 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12352 sure to have a field at offset zero.
12354 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12356 * config/arc/arc.opt (EB, EL): New Driver options.
12358 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12360 * config/alpha/osf5.opt: New.
12361 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12363 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12365 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12367 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12369 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12370 -floop-interchange.
12371 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12372 is an alias of -floop-interchange and that it requires the
12373 Graphite infrastructure.
12374 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12375 flag_loop_interchange based on the value of flag_tree_loop_linear.
12377 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12378 Richard Guenther <rguenther@suse.de>
12380 PR tree-optimization/47538
12381 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12382 type instead of r1type, except for comparisons. For right
12383 shifts and comparisons punt if there are mismatches in
12384 sizetype vs. non-sizetype types.
12386 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12388 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12391 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12393 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12395 * configure: Regenerate.
12397 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12399 * configure.ac (gcc_cv_ld_static_option): Define.
12400 (gcc_cv_ld_dynamic_option): Define.
12401 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12403 (HAVE_LD_STATIC_DYNAMIC): Update message.
12404 (LD_STATIC_OPTION): Define.
12405 (LD_DYNAMIC_OPTION): Define.
12406 * configure: Regenerate.
12407 * config.in: Regenerate.
12408 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12409 HAVE_LD_STATIC_DYNAMIC]: Use them.
12411 2011-01-31 Nick Clifton <nickc@redhat.com>
12413 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12414 registers inside interrupt handlers if the handler is not a leaf
12417 2011-01-31 Nick Clifton <nickc@redhat.com>
12419 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12420 reg_renumber returning an INVALID_REGNUM.
12422 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12425 * doc/install.texi: Document host options discarded when cross
12426 configuring target libraries.
12428 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12431 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12434 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12436 (no_real_insns_p, schedule_block, set_priorities): Drop special
12437 treatment of boundary debug insns.
12438 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12439 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12440 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12441 (BOUNDARY_DEBUG_INSN_P): Likewise.
12442 (SCHEDULE_DEBUG_INSN_P): Likewise.
12443 * sched-rgn.c (init_ready_list): Drop special treatment of
12444 boundary debug insns.
12445 * final.c (rest_of_clean-state): Clear notes' BB.
12447 2011-01-31 Alan Modra <amodra@gmail.com>
12449 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12450 toc relative expressions as we do in print_operand_address.
12452 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12454 * doc/extend.texi: Follow spelling conventions.
12455 * doc/invoke.texi: Fix a typo.
12457 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12459 * config/hpux11.opt: New.
12460 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12461 ia64*-*-hpux*): Use hpux11.opt.
12463 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12465 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12468 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12470 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12473 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12475 * doc/install.texi (Binaries): Remove outdated reference for
12476 Motorola 68HC11/68HC12 downloads.
12478 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12480 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12483 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12486 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12489 2011-01-28 Ahmad Sharif <asharif@google.com>
12491 * value-prof.c (check_counter): Corrected error message.
12493 2011-01-29 Jie Zhang <jie@codesourcery.com>
12495 * config/arm/arm.c (arm_legitimize_reload_address): New.
12496 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12497 arm_legitimize_reload_address.
12498 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12500 2011-01-28 Ian Lance Taylor <iant@google.com>
12502 * godump.c (go_define): Ignore macros whose definitions include
12503 two adjacent operands.
12505 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12508 * varasm.c (force_const_mem): Store copy of x in desc->constant
12509 instead of x itself.
12510 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12511 itself into REG_EQUAL note.
12513 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12515 * config/freebsd.opt (posix, rdynamic): New Driver options.
12517 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12519 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12520 -Bstatic/-Bdynamic.
12521 * configure: Regenerate.
12523 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12525 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12526 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12528 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12530 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12531 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12532 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12533 (s390_preferred_reload_class): Make static. Change return and
12534 'rclass' argument type to reg_class_t.
12536 2011-01-27 Jan Hubicka <jh@suse.cz>
12538 PR middle-end/46949
12539 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12540 (process_function_and_variable_attributes): Check defined weakrefs.
12542 2011-01-27 Martin Jambor <mjambor@suse.cz>
12544 PR tree-optimization/47228
12545 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12546 build_ref_for_offset.
12548 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12550 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12552 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12554 PR rtl-optimization/46856
12555 * postreload.c (reload_combine_recognize_const_pattern): Do not
12556 separate cc0 setter and user on cc0 targets.
12558 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12561 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12562 passed a VOID_TYPE expression, immediately emit an error and
12563 return error_mark_node.
12565 2011-01-26 Jeff Law <law@redhat.com>
12567 PR rtl-optimization/47464
12568 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12569 rather than may_trap_p as needed.
12571 2011-01-26 DJ Delorie <dj@redhat.com>
12573 PR rtl-optimization/46878
12574 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12575 setter/user dependency as well.
12577 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12579 PR rtl-optimization/44469
12580 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12581 after removing trivially dead basic blocks.
12583 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12585 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12586 * config/frv/frv.h (LINK_SPEC): Likewise.
12587 * config/i386/netware.h (LINK_SPEC): Likewise.
12588 * config/m68k/linux.h (ASM_SPEC): Likewise.
12589 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12590 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12591 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12592 * config/sparc/linux.h (ASM_SPEC): Likewise.
12593 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12594 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12596 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12598 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12599 * config/frv/frv.h (ASM_SPEC): Likewise.
12600 * config/m68k/linux.h (ASM_SPEC): Likewise.
12601 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12602 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12603 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12604 * config/sparc/linux.h (ASM_SPEC): Likewise.
12605 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12606 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12608 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12610 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12611 * config/frv/frv.h (LINK_SPEC): Likewise.
12612 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12614 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12616 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12617 * config/frv/frv.h (ASM_SPEC): Likewise.
12618 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12619 * config/m68k/linux.h (ASM_SPEC): Likewise.
12620 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12621 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12622 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12623 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12624 * config/sparc/linux.h (ASM_SPEC): Likewise.
12625 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12626 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12627 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12629 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12632 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12634 (vec_extract_evenodd_help): Ditto.
12635 (vec_extract_evenv4hi): Ditto.
12636 (vec_extract_oddv4hi): Ditto.
12637 (vec_interleave_lowv2si): Ditto.
12638 (vec_interleave_highv2si): Ditto.
12639 (vec_extract_evenv2si): Ditto.
12640 (vec_extract_oddv2si: Ditto.
12641 (vec_pack_trunc_v2si): Ditto.
12643 2011-01-22 Jan Hubicka <jh@suse.cz>
12646 * cgraph.h (cgraph_local_info): New field can_change_signature.
12647 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12648 signature can change.
12649 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12651 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12652 (cgraph_function_versioning): We can not change signature of functions
12653 that don't allow that.
12654 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12655 (lto_input_node): Likewise.
12656 * ipa-inline.c (compute_inline_parameters): Compute
12657 local.can_change_signature.
12658 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12659 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12660 functions that can not change signature.
12661 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12662 init_cumulative_args): Do not use local calling conventions
12663 for functions that can not change signature.
12665 2011-01-22 Jan Hubicka <jh@suse.cz>
12667 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12669 2011-01-26 Richard Guenther <rguenther@suse.de>
12671 PR tree-optimization/47190
12672 * cgraphunit.c (process_common_attributes): New function.
12673 (process_function_and_variable_attributes): Use it.
12675 2011-01-26 Richard Guenther <rguenther@suse.de>
12678 * cgraphbuild.c (record_eh_tables): Record reference to personality
12681 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12684 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12685 non-debug insns from moving up.
12687 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12690 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12691 t-dlldir{,-x} fragment for build and add it to tmake_file.
12692 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12693 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12694 * config/i386/t-dlldir: New file.
12695 (SHLIB_DLLDIR): Define.
12696 * config/i386/t-dlldir-x: New file.
12697 (SHLIB_DLLDIR): Define.
12698 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12699 (SHLIB_INSTALL): Use it.
12701 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12704 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12705 lower bound of the allowed Thumb-2 coprocessor load/store
12706 index range to -256. Add explaining comment.
12708 2011-01-25 Ian Lance Taylor <iant@google.com>
12710 * godump.c (go_define): Improve lexing of macro expansion to only
12711 accept expressions which match Go spec.
12713 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12716 * tree.c (handle_dll_attribute): Handle it.
12717 * doc/extend.texi (@item dllexport): Mention it.
12718 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12720 2011-01-25 Ian Lance Taylor <iant@google.com>
12722 PR tree-optimization/26854
12723 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12724 (decl_jump_unsafe): Move higher in file, with no other change.
12725 (bind): Set has_jump_unsafe_decl if appropriate.
12726 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12727 (check_earlier_gotos): Likewise.
12728 (c_check_switch_jump_warnings): Likewise.
12730 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12732 * doc/invoke.texi (Warning Options): Add missing hyphen.
12733 (-fprofile-dir): Minor grammatical fixes.
12734 (-fbranch-probabilities): Likewise.
12736 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12740 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12742 (no_real_insns_p, schedule_block, set_priorities): Drop special
12743 treatment of boundary debug insns.
12744 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12745 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12746 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12747 (BOUNDARY_DEBUG_INSN_P): Likewise.
12748 (SCHEDULE_DEBUG_INSN_P): Likewise.
12749 * sched-rgn.c (init_ready_list): Drop special treatment of
12750 boundary debug insns.
12751 * final.c (rest_of_clean-state): Clear notes' BB.
12753 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12755 * Makefile.in (LAMBDA_H): Removed.
12756 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12757 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12758 lambda-trans.o, and tree-loop-linear.o.
12759 (lto-symtab.o): Remove dependence on LAMBDA_H.
12760 (tree-loop-linear.o): Remove rule.
12761 (lambda-mat.o): Same.
12762 (lambda-trans.o): Same.
12763 (lambda-code.o): Same.
12764 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12765 (tree-vect-slp.o): Same.
12766 * hwint.h (gcd): Moved here.
12767 (least_common_multiple): Same.
12768 * lambda-code.c: Removed.
12769 * lambda-mat.c: Removed.
12770 * lambda-trans.c: Removed.
12771 * lambda.h: Removed.
12772 * tree-loop-linear.c: Removed.
12773 * lto-symtab.c: Do not include lambda.h.
12774 * omega.c (gcd): Removed.
12775 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12776 * tree-data-ref.c (print_lambda_vector): Moved here.
12777 (lambda_vector_copy): Same.
12778 (lambda_matrix_copy): Same.
12779 (lambda_matrix_id): Same.
12780 (lambda_vector_first_nz): Same.
12781 (lambda_matrix_row_add): Same.
12782 (lambda_matrix_row_exchange): Same.
12783 (lambda_vector_mult_const): Same.
12784 (lambda_vector_negate): Same.
12785 (lambda_matrix_row_negate): Same.
12786 (lambda_vector_equal): Same.
12787 (lambda_matrix_right_hermite): Same.
12788 * tree-data-ref.h: Do not include lambda.h.
12789 (lambda_vector): Moved here.
12790 (lambda_matrix): Same.
12791 (dependence_level): Same.
12792 (lambda_transform_legal_p): Removed declaration.
12793 (lambda_collect_parameters): Same.
12794 (lambda_compute_access_matrices): Same.
12795 (lambda_vector_gcd): Same.
12796 (lambda_vector_new): Same.
12797 (lambda_vector_clear): Same.
12798 (lambda_vector_lexico_pos): Same.
12799 (lambda_vector_zerop): Same.
12800 (lambda_matrix_new): Same.
12801 * tree-flow.h (least_common_multiple): Removed declaration.
12802 * tree-parloops.c (lambda_trans_matrix): Moved here.
12803 (LTM_MATRIX): Same.
12804 (LTM_ROWSIZE): Same.
12805 (LTM_COLSIZE): Same.
12806 (LTM_DENOMINATOR): Same.
12807 (lambda_trans_matrix_new): Same.
12808 (lambda_matrix_vector_mult): Same.
12809 (lambda_transform_legal_p): Same.
12810 * tree-pass.h (pass_linear_transform): Removed declaration.
12811 * tree-ssa-loop.c (tree_linear_transform): Removed.
12812 (gate_tree_linear_transform): Removed.
12813 (pass_linear_transform): Removed.
12814 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12815 flag_loop_interchange.
12817 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12819 PR tree-optimization/47265
12820 PR tree-optimization/47443
12821 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12822 if name still has some uses.
12824 2011-01-25 Martin Jambor <mjambor@suse.cz>
12826 PR tree-optimization/47382
12827 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12828 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12830 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12832 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12833 sjlj_except_unwind_info.
12835 2011-01-25 Richard Guenther <rguenther@suse.de>
12837 PR tree-optimization/47426
12838 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12839 visible functions results escape.
12841 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12844 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12845 (arm_get_frame_offsets): Use it.
12847 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12848 Jakub Jelinek <jakub@redhat.com>
12850 PR tree-optimization/47271
12851 * tree-if-conv.c (bb_postdominates_preds): New.
12852 (if_convertible_bb_p): Call bb_postdominates_preds.
12853 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12854 (predicate_scalar_phi): Call bb_postdominates_preds.
12856 2011-01-25 Nick Clifton <nickc@redhat.com>
12858 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12859 * config/rx/rx.c (rx_function_value): Likewise.
12860 (rx_promote_function_mode): Likewise.
12861 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12862 in order to make it legitimate.
12863 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12864 make sure that the first operand is the same as the result register.
12865 (addsi3_unspec): Delete.
12866 (subdi3): Do not accept immediate operands.
12867 (subdi3_internal): Likewise.
12869 2011-01-25 Jeff Law <law@redhat.com>
12871 PR rtl-optimization/37273
12872 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12873 handle them like argument loads from stack slots. Do not double
12874 count memory for memory constants and argument loads from stack slots.
12876 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12878 PR tree-optimization/47427
12879 PR tree-optimization/47428
12880 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12881 coalesce if the new root var would be TREE_READONLY.
12883 2011-01-25 Richard Guenther <rguenther@suse.de>
12885 PR middle-end/47414
12886 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12887 correct type for TBAA.
12889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12891 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12892 (close_phi_written_to_memory): Call for_each_index with
12893 dr_indices_valid_in_loop.
12895 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12897 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12898 when it is initialized.
12900 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12902 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12903 call to graphite_find_data_references_in_stmt.
12904 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12905 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12906 call to graphite_find_data_references_in_stmt.
12907 (analyze_drs_in_stmts): Same.
12908 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12909 in which the scalar analysis of indices is performed.
12910 (create_data_ref): Same. Update call to dr_analyze_indices.
12911 (find_data_references_in_stmt): Update call to create_data_ref.
12912 (graphite_find_data_references_in_stmt): Same.
12913 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12915 (create_data_ref): Same.
12916 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12917 call to create_data_ref.
12919 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12921 * graphite-sese-to-poly.c (build_poly_scop): Move
12922 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12926 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12927 VAR_DECL, PARM_DECL, and RESULT_DECL.
12929 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12931 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12932 in a reduction PBB.
12933 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12934 that have already been marked as PBB_IS_REDUCTION.
12936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12938 * graphite-scop-detection.c (same_close_phi_node): New.
12939 (remove_duplicate_close_phi): New.
12940 (make_close_phi_nodes_unique): New.
12941 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12943 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12945 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12946 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12947 of both data references to be the same.
12949 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12951 * graphite-dependences.c (build_lexicographical_constraint): Remove
12952 the gdim parameter.
12953 (build_lexicographical_constraint): Adjust call to
12954 ppl_powerset_is_empty.
12955 (dependence_polyhedron): Same.
12956 (graphite_legal_transform_dr): Same.
12957 (graphite_carried_dependence_level_k): Same.
12958 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12960 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12962 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12964 * graphite-sese-to-poly.c
12965 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12966 (close_phi_written_to_memory): New.
12967 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12972 * doc/install.texi: Update the expected version number of PPL to 0.11.
12973 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12974 #if PPL_VERSION_MINOR < 11.
12976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12978 * graphite-dependences.c: Include graphite-cloog-util.h.
12979 (new_poly_ddr): Inlined into dependence_polyhedron.
12980 (free_poly_ddr): Moved close by new_poly_ddr.
12981 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12982 Early return NULL when ppl_powerset_is_empty returns true.
12983 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12984 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12985 (graphite_legal_transform_dr): Call new_poly_ddr.
12986 (graphite_carried_dependence_level_k): Same.
12987 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12988 (dot_transformed_deps_stmt_1): Removed.
12989 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12990 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12991 (dot_deps_1): Call dot_deps_2.
12992 * Makefile.in (graphite-dependences.o): Add missing dependence on
12993 graphite-cloog-util.h.
12995 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12997 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12998 (build_lexicographical_constraint): Same.
12999 (dependence_polyhedron_1): Same.
13000 (graphite_legal_transform_dr): Same.
13001 (graphite_carried_dependence_level_k): Same.
13002 * graphite-ppl.c (ppl_powerset_is_empty): New.
13003 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13004 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13006 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13008 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13009 the "a followed by b" relation and document it.
13011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13013 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13014 iteration when the bag of constraints is empty.
13016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13018 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13020 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13022 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13023 nest and two loop depths as parameters.
13024 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13025 lst_perfect_nestify.
13027 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13029 * graphite-dependences.c (print_pddr): Call
13030 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13034 * graphite-ppl.c (debug_gmp_value): New.
13035 * graphite-ppl.h (debug_gmp_value): Declared.
13037 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13039 * doc/install.texi: Document availability of cloog-0.16.
13041 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13043 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13044 invalid postdominance info.
13046 2011-01-24 Jan Hubicka <jh@suse.cz>
13049 * doc/extend.texi (weak pragma): Drop claim that it must
13050 appear before definition.
13051 * varasm.c (merge_weak, declare_weak): Only sanity check
13052 that DECL is not output at a time it is declared weak.
13054 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13056 * machmode.def: Fixed comments.
13058 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13060 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13062 2011-01-24 Paul Koning <ni1d@arrl.net>
13064 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13067 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13070 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13071 (block_info): Add scanned and prev.
13072 (move_or_delete_vzeroupper_2): Return if the basic block
13073 has been scanned and the upper 128bit state is unchanged
13074 from the last scan.
13075 (move_or_delete_vzeroupper_1): Return true if the exit
13077 (move_or_delete_vzeroupper): Visit basic blocks using the
13078 work-list based algorithm based on vt_find_locations in
13081 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13083 2011-01-24 Nick Clifton <nickc@redhat.com>
13085 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13086 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13087 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13088 then define __v850e1__.
13089 * doc/invoke.texi: Document -mv850es.
13091 2011-01-24 Richard Henderson <rth@redhat.com>
13093 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13094 compound unordered comparisons.
13095 * config/rx/rx.c (rx_split_fp_compare): Remove.
13096 * config/rx/rx-protos.h: Update.
13097 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13098 (cbranchsf4): Don't call rx_split_fp_compare.
13099 (*cbranchsf4): Use rx_split_cbranch.
13100 (*cmpsf): Don't accept "i" constraint.
13101 (*conditional_branch): Only valid after reload.
13102 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13104 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13107 * config/rs6000/altivec.md (vector constant splitters): Add
13108 support for creating vector single precision constants if -mvsx is
13109 used and we would create the constant using Altivec primitives.
13111 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13112 Richard Sandiford <rdsandiford@googlemail.com>
13114 PR rtl-optimization/47166
13115 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13116 mechanism for PRE_MODIFY and POST_MODIFY.
13117 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13120 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13122 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13124 2011-01-22 Jan Hubicka <jh@suse.cz>
13127 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13129 2011-01-22 Jan Hubicka <jh@suse.cz>
13131 PR tree-optimization/43884
13133 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13134 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13136 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13138 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13139 * config/s390/s390.c (s390_register_move_cost,
13140 s390_memory_move_cost): New.
13141 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13143 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13145 PR middle-end/47401
13146 * except.c (sjlj_assign_call_site_values): Move setting the
13147 crtl->uses_eh_lsda flag to ...
13148 (sjlj_mark_call_sites): ... here.
13149 (sjlj_emit_function_enter): Support NULL dispatch label.
13150 (sjlj_build_landing_pads): In a function with no landing pads
13151 that still has must-not-throw regions, generate code to register
13152 a personality function with empty LSDA.
13154 2011-01-21 Richard Henderson <rth@redhat.com>
13156 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13158 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13160 * compare-elim.c: New file.
13161 * Makefile.in (OBJS-common): Add it.
13162 (compare-elim.o): New.
13163 * common.opt (fcompare-elim): New.
13164 * opts.c (default_options_table): Add OPT_fcompare_elim.
13165 * tree-pass.h (pass_compare_elim_after_reload): New.
13166 * passes.c (init_optimization_passes): Add it.
13167 * recog.h: Protect against re-inclusion.
13168 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13169 * doc/invoke.texi (-fcompare-elim): Document it.
13170 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13171 * doc/tm.texi: Rebuild.
13173 2011-01-22 Nick Clifton <nickc@redhat.com>
13175 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13176 rx_split_fp_compare.
13178 2011-01-22 Nick Clifton <nickc@redhat.com>
13180 * config/rx/rx.md (UNSPEC_CONST): New.
13181 (deallocate_and_return): Wrap the amount popped off the stack in
13182 an UNSPEC_CONST in order to stop it being rejected by
13183 -mmax-constant-size.
13184 (pop_and_return): Add a "(return)" rtx.
13185 (call): Drop the immediate operand.
13186 (call_internal): Likewise.
13187 (call_value): Likewise.
13188 (call_value_internal): Likewise.
13189 (sibcall_internal): Likewise.
13190 (sibcall_value_internal): Likewise.
13191 (sibcall): Likewise. Generate an explicit call using
13193 (sibcall_value): Likewise.
13194 (mov<>): FAIL if a constant operand is not legitimate.
13195 (addsi3_unpsec): New pattern.
13197 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13198 (ok_for_max_constant): New function.
13199 (gen_safe_add): New function.
13200 (rx_expand_prologue): Use gen_safe_add.
13201 (rx_expand_epilogue): Likewise.
13202 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13205 2011-01-21 Jeff Law <law@redhat.com>
13207 PR tree-optimization/47053
13208 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13209 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13210 statements are deleted.
13211 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13212 is nonempty, then purge dead edges and cleanup the CFG.
13214 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13217 Temporarily revert:
13218 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13220 * tree-dfa.c (create_var_ann): Mark variable as used.
13222 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13224 PR middle-end/45566
13225 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13226 notes from other section in hot/cold partitioning even if
13227 last_action is -3. Increment call_site_base.
13229 PR rtl-optimization/47366
13230 * fwprop.c (forward_propagate_into): Return bool. If
13231 any changes are made, -fnon-call-exceptions is used and
13232 REG_EH_REGION note is present, call purge_dead_edges
13233 and return true if it purged anything.
13234 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13235 any EH edges were purged.
13237 2011-01-21 Jeff Law <law@redhat.com>
13239 PR rtl-optimization/41619
13240 * caller-save.c (setup_save_areas): Break out code to determine
13241 which hard regs are live across calls by examining the reload chains
13242 so that it is always used.
13243 Eliminate code which checked REG_N_CALLS_CROSSED.
13245 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13247 PR tree-optimization/47355
13248 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13249 NOP has non-debug uses beyond PHIs in new_bb.
13251 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13254 * cfgexpand.c (account_used_vars_for_block): Only account vars
13255 that are annotated as used.
13256 (estimated_stack_frame_size): Don't set TREE_USED.
13257 * tree-dfa.c (create_var_ann): Mark variable as used.
13259 2011-01-21 Richard Guenther <rguenther@suse.de>
13261 PR middle-end/47395
13262 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13264 2011-01-21 Richard Guenther <rguenther@suse.de>
13266 PR tree-optimization/47365
13267 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13268 (vn_reference_lookup_pieces): Adjust.
13269 (vn_reference_lookup): Likewise.
13270 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13271 (vn_reference_lookup_3): Only look through kills if in
13272 VN_WALKREWRITE mode.
13273 (vn_reference_lookup_pieces): Adjust.
13274 (vn_reference_lookup): Likewise.
13275 (visit_reference_op_load): Likewise.
13276 (visit_reference_op_store): Likewise.
13277 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13278 (compute_avail): Likewise.
13279 (eliminate): Likewise.
13281 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13283 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13284 DECL_IGNORED_P non-reg vars if they are used.
13286 PR tree-optimization/47391
13287 * varpool.c (const_value_known_p): Return false if
13290 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13293 * config/i386/i386.c (ix86_local_alignment): Handle
13294 case for va_list_type_node is nil.
13295 (ix86_canonical_va_list_type): Likewise.
13297 2011-01-21 Alan Modra <amodra@gmail.com>
13299 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13300 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13302 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13304 * config/arm/arm.md (define_attr type): Rename f_load
13305 and f_store to f_fpa_load and f_fpa_store. Update.
13306 (write_conflict): Deal with rename fallout.
13307 (*push_fp_multi): Likewise.
13308 * config/arm/fpa.md (f_load): Use f_fpa_load.
13309 (f_store): Use f_fpa_store.
13310 (*movsf_fpa): Likewise.
13311 (*movdf_fpa): Likewise.
13312 (*movxf_fpa): Likewise.
13313 (*thumb2_movsf_fpa): Likewise.
13314 (*thumb2_movdf_fpa): Likewise.
13315 (*thumb2_movxf_fpa): Likewise.
13316 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13317 f_loadd and f_stored.
13318 (*thumb2_movdi_vfp): Likewise.
13319 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13320 (*thumb2_movsi_vfp): Likewise.
13321 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13322 Use f_loads instead of f_load.
13323 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13325 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13327 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13328 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13329 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13330 (xtensa_mode_dependent_address_p): New function.
13331 (constantpool_address_p): Make static. Change return type to bool.
13332 Change argument type to const_rtx. Use CONST_INT_P predicate.
13334 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13337 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13339 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13342 * cfgexpand.c (expand_debug_expr): Instead of generating
13343 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13346 2011-01-20 Richard Guenther <rguenther@suse.de>
13348 PR middle-end/47370
13349 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13350 the pointer operand of MEM_REFs.
13352 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13354 PR tree-optimization/46130
13355 * ipa-split.c (consider_split): If return_bb contains non-virtual
13356 PHIs other than for retval or if split_function would not adjust it,
13359 2011-01-20 Richard Guenther <rguenther@suse.de>
13361 PR tree-optimization/47167
13362 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13363 Revert previous change, only avoid enumeral type changes.
13365 2011-01-19 Mike Stump <mikestump@comcast.net>
13367 * doc/tm.texi.in (BRANCH_COST): Englishify.
13368 * doc/tm.texi (BRANCH_COST): Likewise.
13370 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13373 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13374 (gen_scheduled_generic_parms_dies): New functions.
13375 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13376 generation for the end of CU compilation.
13377 (dwarf2out_finish): Generate template parameters DIEs here.
13379 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13382 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13383 debug bind stmt on merge edges.
13385 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13389 * function.c (instantiate_expr): Instantiate incoming rtl of
13390 implicit arguments, and recurse on VALUE_EXPRs.
13391 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13392 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13394 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13396 * c-parser.c (c_parser_for_statement): Initialize
13397 collection_expression.
13399 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13401 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13403 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13405 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13406 (LINK_SHLIB_SPEC): Don't use %(link_path).
13407 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13409 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13411 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13412 (NO_SHARED_LIB_SUPPORT): Remove.
13413 (LINK_SHLIB_SPEC): Remove one conditional definition.
13415 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13417 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13419 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13420 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13421 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13422 %{call_shared} and conditionals on these options not being passed.
13423 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13426 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13428 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13431 * ipa-split.c: Spelling fixes.
13433 2011-01-19 Richard Henderson <rth@redhat.com>
13435 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13436 (*mulsi3): Likewise.
13438 * longlong.h [__mn10300__] (count_leading_zeros): New.
13439 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13440 [__mn10300__] (add_ssaaaa, subddmmss): New.
13441 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13442 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13444 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13446 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13448 2011-01-19 Richard Henderson <rth@redhat.com>
13450 * config/mn10300/mn10300.md (addsi3_flags): New.
13451 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13452 (subsi3_flags, subc_internal, subdi3): New.
13453 (subdi3_internal, *subdi3_degenerate): New.
13454 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13456 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13457 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13458 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13459 * config/mn10300/mn10300-protos.h: Update.
13460 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13461 (return_ret): Likewise. Rename from return_internal_regs.
13462 (return_internal): Remove.
13464 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13465 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13466 (mn10300_legitimate_constant_p): Likewise.
13467 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13468 (mn10300_frame_size): New.
13469 (mn10300_expand_prologue): Use it.
13470 (mn10300_expand_epilogue): Likewise.
13471 (mn10300_initial_offset): Likewise.
13472 * config/mn10300/mn10300-protos.h: Update.
13473 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13474 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13475 (prologue, epilogue, return_internal): Tidy output code.
13476 (mn10300_store_multiple_operation, return): Likewise.
13477 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13478 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13479 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13480 (load_pic, am33_load_pic): New.
13481 (mn10300_load_pic0, mn10300_load_pic1): New.
13483 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13484 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13485 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13486 (cc_flags_for_mode, cc_flags_for_code): New.
13487 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13488 overflow flag is not valid. Validate that the flags we need
13489 for the comparison are valid.
13490 (mn10300_output_cmp): Remove.
13491 (mn10300_output_add): New.
13492 (mn10300_select_cc_mode): Use cc_flags_for_code.
13493 (mn10300_split_cbranch): New.
13494 (mn10300_match_ccmode): New.
13495 (mn10300_split_and_operand_count): New.
13496 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13498 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13499 (addsi3): ... here. Use mn10300_output_add.
13500 (*addsi3_flags): New.
13501 (*am33_subsi3, *mn10300_subsi3): Merge...
13502 (subsi3): ... here. Use attribute isa.
13503 (*subsi3_flags): New.
13504 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13506 (*am33_andsi3, *mn10300_andsi3): Merge...
13507 (andsi3): ... here.
13508 (*andsi3_flags): New.
13509 (andsi3 splitters): New.
13510 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13511 (iorsi3): ... here.
13512 (*iorsi3_flags): New.
13513 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13514 (xorsi3): ... here.
13515 (*xorsi3_flags): New.
13516 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13517 (one_cmplsi2): ... here.
13518 (*one_cmplsi2_flags): New.
13519 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13520 instead of "dax" in constraints. Use mn10300_split_cbranch.
13521 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13522 use matching constraints to eliminate a self-comparison.
13523 (*integer_conditional_branch): Rename from integer_conditional_branch.
13524 Use int_mode_flags to match CC_REG.
13525 (*cbranchsi4_btst, *btstsi): New.
13526 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13527 mn10300_split_cbranch.
13528 (*am33_cmpsf): Rename from am33_cmpsf.
13529 (*float_conditional_branch): Rename from float_conditional_branch.
13530 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13531 (zero_extendqisi2): ... here.
13532 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13533 (zero_extendhisi2): ... here.
13534 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13535 (extendqisi2): ... here.
13536 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13537 (extendhisi2): ... here.
13538 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13539 (ashlsi3): ... here.
13540 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13541 (lshrsi3): ... here.
13542 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13543 (ashrsi3): ... here.
13544 (consecutive add peephole): Remove.
13545 * config/mn10300/predicates.md (label_ref_operand): New.
13546 (int_mode_flags): New.
13547 (CCZN_comparison_operator): New.
13549 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13550 (throughput_42_latency_43): New reservation.
13551 (mulsidi3, umulsidi3): New expanders.
13552 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13553 the MDR register to allocation; separately allocate the low and
13554 high parts of the DImode result.
13555 (umulsidi3_internal): Similarly.
13556 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13557 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13558 (udivsi3, umodsi3): Remove.
13559 (udivmodsi4, divmodsi4): New expanders.
13560 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13561 (*divmodsi4): Simiarly.
13562 (ext_internal): New.
13564 * config/mn10300/constraints.md ("z"): New constraint.
13565 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13566 (FIXED_REGISTERS): Don't fix MDR.
13567 (CALL_USED_REGSITERS): Reformat nicely.
13568 (REG_ALLOC_ORDER): Add MDR.
13569 (enum regclass): Add MDR_REGS.
13570 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13571 (IRA_COVER_CLASSES): Add MDR_REGS.
13572 (REGNO_REG_CLASS): Handle MDR_REG.
13573 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13574 (mn10300_register_move_cost): Likewise.
13575 * config/mn10300/mn10300.md (MDR_REG): New.
13576 (*movsi_internal): Handle moves to/from MDR_REGS.
13578 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13580 (mn10300_secondary_reload): Tidy combination reload classes.
13581 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13582 addresses for AM33. Allow symbolic offsets for reg+imm.
13583 (mn10300_regno_in_class_p): New.
13584 (mn10300_legitimize_reload_address): New.
13585 * config/mn10300/mn10300.h (enum reg_class): Remove
13586 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13587 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13588 SP_OR_GENERAL_REGS.
13589 (REG_CLASS_NAMES): Update to match.
13590 (REG_CLASS_CONTENTS): Likewise.
13591 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13592 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13593 (REGNO_IN_RANGE_P): Remove.
13594 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13595 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13596 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13597 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13598 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13599 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13600 (REGNO_GENERAL_P): New.
13601 (HAVE_POST_MODIFY_DISP): New.
13602 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13603 (LEGITIMIZE_RELOAD_ADDRESS): New.
13604 * config/mn10300/mn10300-protos.h: Update.
13606 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13607 DATA_REGS for AM33 stack-pointer destination.
13608 (mn10300_preferred_output_reload_class): Likewise.
13609 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13610 into a form appropriate for ...
13611 (TARGET_SECONDARY_RELOAD): New.
13612 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13613 * config/mn10300/mn10300-protos.h: Update.
13614 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13615 reload_insi; use the "A" constraint for the scratch; handle AM33
13616 moves of sp to non-address registers.
13618 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13619 (*movqi_internal): ... here.
13620 (*am33_movhi, *mn10300_movhi): Merge into...
13621 (*movhi_internal): ... here.
13622 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13623 as the source/destination of moves from/to SP.
13624 (movsf): Only allow for AM33-2.
13625 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13626 any integer constant constraint. Only allow for AM33-2. Tidy
13627 all of the alternative outputs.
13628 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13629 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13631 (udivsi3, umodsi3): New patterns for MN103 only.
13633 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13635 * doc/tm.texi.in: Spell out that a lack of register class unions
13637 * doc/tm.texi: Regenerate.
13639 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13641 PR rtl-optimization/47337
13642 * dce.c (check_argument_store): New function.
13643 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13645 PR tree-optimization/47290
13646 * tree-eh.c (infinite_empty_loop_p): New function.
13647 (cleanup_empty_eh): Use it.
13649 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13652 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13653 (a64_expand_widen_sum): Ditto.
13654 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13655 (vec_extract_evenodd_help): Ditto.
13656 (vec_extract_evenv4hi): Ditto.
13657 (vec_extract_oddv4hi): Ditto.
13658 (vec_extract_evenv2si): Ditto.
13659 (vec_extract_oddv2si): Ditto.
13660 (vec_extract_evenv2sf): Ditto.
13661 (vec_extract_oddv2sf): Ditto.
13662 (vec_pack_trunc_v4hi: Ditto.
13663 (vec_pack_trunc_v2si): Ditto.
13664 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13665 (vec_interleave_highv8qi): Ditto.
13667 (vec_extract_oddv8qi): Ditto.
13668 (vec_interleave_lowv4hi): Ditto.
13669 (vec_interleave_highv4hi): Ditto.
13670 (vec_interleave_lowv2si): Ditto.
13671 (vec_interleave_highv2si): Ditto.
13673 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13675 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13676 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13677 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13678 (pa_c_mode_for_suffix): New.
13679 (TARGET_EXPAND_BUILTIN): Define.
13680 (TARGET_C_MODE_FOR_SUFFIX): Define.
13681 (pa_builtins): Define.
13682 (pa_init_builtins): Register __float128 type and init new support
13684 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13685 * config/pa/quadlib.c (_U_Qfcopysign): New.
13687 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13689 PR middle-end/46894
13690 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13691 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13694 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13696 PR tree-optimization/47179
13697 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13698 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13700 2011-01-18 Richard Guenther <rguenther@suse.de>
13702 PR rtl-optimization/47216
13703 * emit-rtl.c: Include tree-flow.h.
13704 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13705 of replicating it with different semantics.
13706 * Makefile.in (emit-rtl.o): Adjust.
13708 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13710 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13711 (cortex_a9_dp): Handle neon types correctly.
13713 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13715 PR rtl-optimization/47299
13716 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13717 subtarget. Use normal multiplication if both operands are constants.
13718 * expmed.c (expand_widening_mult): Don't try to optimize constant
13719 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13722 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13724 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13725 spacing after 'e.g.', typos, comma, hyphenation.
13727 2011-01-17 Richard Henderson <rth@redhat.com>
13729 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13730 (rx_restricted_mem_operand): New.
13731 (rx_shift_operand): Use register_operand.
13732 (rx_source_operand, rx_compare_operand): Likewise.
13733 * config/rx/rx.md (addsi3_flags): New expander.
13734 (adddi3): Rewrite as expander.
13735 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13736 (subsi3_flags): New expander.
13737 (subdi3): Rewrite as expander.
13738 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13740 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13741 (rx_init_builtins): Remove sat builtin.
13742 (rx_expand_builtin): Likewise.
13743 * config/rx/rx.md (ssaddsi3): New.
13744 (*sat): Rename from sat. Represent the CC_REG input.
13746 * config/rx/predicates.md (rshift_operator): New.
13747 * config/rx/rx.c (rx_expand_insv): Remove.
13748 * config/rx/rx-protos.h: Update.
13749 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13750 operand to the canonical position.
13751 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13752 (*bitclr, *bitclr_in_memory): Similarly.
13753 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13754 (insv): Retain the zero_extract in the expansion.
13756 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13757 (bswaphi2, bitinvert, revw): Likewise.
13759 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13760 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13761 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13762 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13763 (bitset, bitset_in_memory): Likewise.
13764 (bitinvert, bitinvert_in_memory): Likewise.
13765 (bitclr, bitclr_in_memory): Likewise.
13766 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13767 (rx_strend, rx_cmpstrn): Likewise.
13768 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13769 (bitop peep2 patterns): Remove.
13771 * config/rx/rx.c (rx_match_ccmode): New.
13772 * config/rx/rx-protos.h: Update.
13773 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13774 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13775 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13776 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13777 (fix_truncsfsi2, floatsisf2): Likewise.
13778 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13779 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13780 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13781 (*subsi3_flags, *xorsi3_flags): New.
13783 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13785 * config/rx/rx.c (rx_print_operand): Remove workaround for
13786 unsplit comparison operations.
13788 * config/rx/rx.md (movsicc): Split after reload.
13789 (*movsicc): Merge *movsieq and *movsine via match_operator.
13790 (*stcc): New pattern.
13792 * config/rx/rx.c (rx_float_compare_mode): Remove.
13793 * config/rx/rx.h (rx_float_compare_mode): Remove.
13794 * config/rx/rx.md (cstoresi4): Split after reload.
13795 (*sccc): New pattern.
13797 * config/rx/predicates.md (label_ref_operand): New.
13798 (rx_z_comparison_operator): New.
13799 (rx_zs_comparison_operator): New.
13800 (rx_fp_comparison_operator): New.
13801 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13802 Validate that the flags are set properly for the comparison.
13803 (rx_gen_cond_branch_template): Remove.
13804 (rx_cc_modes_compatible): Remove.
13805 (mode_from_flags): New.
13806 (flags_from_code): Rename from flags_needed_for_conditional.
13807 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13808 (rx_select_cc_mode): Likewise.
13809 (rx_split_fp_compare): New.
13810 (rx_split_cbranch): New.
13811 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13812 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13813 (*cbranchsf4): Similarly.
13814 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13815 match_operator and rx_split_cbranch.
13816 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13817 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13818 (*cmpsi): Rename from cmpsi.
13819 (*tstsi): Rename from tstsi.
13820 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13821 (*conditional_branch): Rename from conditional_branch.
13822 (*reveresed_conditional_branch): Remove.
13823 (b<code>): Remove expander.
13824 * config/rx/rx-protos.h: Update.
13826 * config/rx/rx.c (rx_compare_redundant): Remove.
13827 * config/rx/rx.md (cmpsi): Don't use it.
13828 * config/rx/rx-protos.h: Update.
13830 * config/rx/rx-modes.def (CC_F): New mode.
13831 * config/rx/rx.c (rx_select_cc_mode): New.
13832 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13833 * config/rx/rx-protos.h: Update.
13835 2011-01-17 Richard Henderson <rth@redhat.com>
13837 * except.c (dump_eh_tree): Fix stray ; after for statement.
13839 2011-01-17 Richard Guenther <rguenther@suse.de>
13841 PR tree-optimization/47313
13842 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13843 handling before copying the body. Properly deal with
13844 by-reference result in SSA form.
13846 2011-01-17 Ian Lance Taylor <iant@google.com>
13849 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13850 (struct_value_alias_set): Don't define.
13851 (sparc_option_override): Don't set sparc_sr_alias_set and
13852 struct_value_alias_set.
13853 (save_or_restore_regs): Use gen_frame_mem rather than calling
13855 (sparc_struct_value_rtx): Likewise.
13857 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13860 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13861 (_mm_maskstore_pd): Likewise.
13862 (_mm_maskload_ps): Likewise.
13863 (_mm_maskstore_ps): Likewise.
13864 (_mm256_maskload_pd): Change mask to __m256i.
13865 (_mm256_maskstore_pd): Likewise.
13866 (_mm256_maskload_ps): Likewise.
13867 (_mm256_maskstore_ps): Likewise.
13869 * config/i386/i386-builtin-types.def: Updated.
13870 (ix86_expand_special_args_builtin): Likewise.
13872 * config/i386/i386.c (bdesc_special_args): Update
13873 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13874 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13875 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13876 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13878 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13879 Use <avxpermvecmode> on mask register.
13880 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13882 2011-01-17 Olivier Hainque <hainque@adacore.com>
13883 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13884 Eric Botcazou <ebotcazou@adacore.com>
13887 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13888 if <= USHRT_MAX in 32-bit mode.
13890 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13892 * doc/install.texi (Configuration, Specific): Wrap long
13893 lines in examples. Allow line wrapping in long options
13894 and URLs where beneficial for PDF output.
13896 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13898 * config/mips/mips.c (mips_classify_symbol): Don't return
13899 SYMBOL_PC_RELATIVE for nonlocal labels.
13901 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13903 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13905 2011-01-15 Jan Hubicka <jh@suse.cz>
13907 PR tree-optimization/47276
13908 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13909 declarations as needed.
13911 2011-01-15 Martin Jambor <mjambor@suse.cz>
13913 * common.opt (fdevirtualize): New flag.
13914 * doc/invoke.texi (Option Summary): Document it.
13915 * opts.c (default_options_table): Add devirtualize flag.
13916 * ipa-prop.c (detect_type_change): Return immediately if
13917 devirtualize flag is not set.
13918 (detect_type_change_ssa): Likewise.
13919 (compute_known_type_jump_func): Likewise.
13920 (ipa_analyze_virtual_call_uses): Likewise.
13922 2011-01-14 Martin Jambor <mjambor@suse.cz>
13924 PR tree-optimization/45934
13925 PR tree-optimization/46302
13926 * ipa-prop.c (type_change_info): New type.
13927 (stmt_may_be_vtbl_ptr_store): New function.
13928 (check_stmt_for_type_change): Likewise.
13929 (detect_type_change): Likewise.
13930 (detect_type_change_ssa): Likewise.
13931 (compute_complex_assign_jump_func): Check for dynamic type change.
13932 (compute_complex_ancestor_jump_func): Likewise.
13933 (compute_known_type_jump_func): Likewise.
13934 (compute_scalar_jump_functions): Likewise.
13935 (ipa_analyze_virtual_call_uses): Likewise.
13936 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13938 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13940 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13941 * config/i386/i386.opt (msse5): New Alias.
13943 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13945 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13946 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13947 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13948 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13950 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13952 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13954 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13955 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13956 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13957 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13959 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13961 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13963 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13965 2011-01-14 Mike Stump <mikestump@comcast.net>
13967 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13968 * config/fr30/fr30.md: Likweise
13969 (movsi_push): Likewise.
13970 (movsi_pop): Likewise.
13971 (enter_func): Likewise.
13972 * config/moxie/moxie.md (movsi_push): Likewise.
13973 (movsi_pop): Likewise.
13975 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13977 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13978 %{no_archive} %{exact_version}.
13979 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13980 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13981 %{no_archive} %{exact_version}.
13982 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13983 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13984 * config/mips/vxworks.h: Likewise.
13986 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13988 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13990 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13992 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13993 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13995 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13997 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14000 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14002 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14004 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14005 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14007 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14008 Don't handle -shlib.
14010 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14012 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14013 (CC1_SPEC): Don't handle -profile.
14015 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14017 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14018 * config/mips/mips.h (CC1_SPEC): Likewise.
14020 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14022 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14023 * config/mips/mips.h (CC1_SPEC): Likewise.
14025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14027 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14028 * config/m32r/linux.h (LINK_SPEC): Likewise.
14029 * config/mips/linux.h (LINK_SPEC): Likewise.
14030 * config/mips/linux64.h (LINK_SPEC): Likewise.
14031 * config/sparc/linux.h (LINK_SPEC): Likewise.
14032 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14033 LINK_SPEC): Likewise.
14034 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14038 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14040 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14042 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14044 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14045 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14047 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14049 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14051 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14053 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14054 supports -Bstatic/-Bdynamic.
14055 * configure: Regenerate.
14057 2011-01-14 Jan Hubicka <jh@suse.cz>
14058 Jack Howarth <howarth@bromo.med.uc.edu>
14061 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14062 when checking debug_info_level. Test write_symbols instead of
14063 debug_hooks->var_location when setting flag_var_tracking_uninit.
14065 2011-01-14 Richard Guenther <rguenther@suse.de>
14067 PR tree-optimization/47179
14068 * target.def (ref_may_alias_errno): New target hook.
14069 * targhooks.h (default_ref_may_alias_errno): Declare.
14070 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14071 (default_ref_may_alias_errno): New function.
14072 * target.h (struct ao_ref_s): Declare.
14073 * tree-ssa-alias.c: Include target.h.
14074 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14075 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14076 (targhooks.o): Likewise.
14077 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14078 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14080 2011-01-14 Richard Guenther <rguenther@suse.de>
14082 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14084 2011-01-14 Richard Guenther <rguenther@suse.de>
14086 PR tree-optimization/47280
14087 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14088 return CFG changes.
14089 (tree_ssa_forward_propagate_single_use_vars): Deal with
14090 CFG changes from associate_plusminus.
14092 2011-01-14 Richard Guenther <rguenther@suse.de>
14094 PR middle-end/47281
14096 2011-01-11 Richard Guenther <rguenther@suse.de>
14098 PR tree-optimization/46076
14099 * tree-ssa.c (useless_type_conversion_p): Conversions from
14100 unprototyped to empty argument list function types are useless.
14102 2011-01-14 Richard Guenther <rguenther@suse.de>
14104 PR tree-optimization/47286
14105 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14107 2011-01-14 Martin Jambor <mjambor@suse.cz>
14109 PR middle-end/46823
14110 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14112 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14114 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14115 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14116 * config/xtensa/xtensa.c (xtensa_libcall_value,
14117 xtensa_function_value_regno_p): New functions.
14118 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14120 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14123 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14125 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14126 New function prototype.
14127 * config/i386/winnt.c (i386_pe_assemble_visibility):
14128 Warn only if attribute was specified by user.
14130 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14133 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14135 (floatunsdidf2_fcfidu): Ditto.
14137 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14139 * config/s390/s390.c (print_operand_address): Replace 'error' with
14140 'output_operand_lossage'.
14141 (print_operand): Likewise.
14143 2011-01-13 Jeff Law <law@redhat.com>
14145 PR rtl-optimization/39077
14146 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14147 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14148 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14149 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14150 * gcse.c (prune_insertions_deletions): New function.
14151 (compute_pre_data): Use it.
14153 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14156 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14158 (prune_unused_types_mark): Use it.
14160 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14162 PR rtl-optimization/45352
14163 * sel-sched.c: Update copyright years.
14164 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14165 in the advancing loop when we have issued issue_rate insns.
14167 2011-01-12 Richard Henderson <rth@redhat.com>
14169 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14170 (TARGET_MD_ASM_CLOBBERS): New.
14172 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14173 (TARGET_DELEGITIMIZE_ADDRESS): New.
14175 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14176 (clzsi2, *bsch): New patterns.
14178 * config/mn10300/mn10300.md (INT): New mode iterator.
14179 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14181 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14182 flag_split_wide_types.
14184 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14185 (mn10300_trampoline_init): Rewrite without a template, an immediate
14186 load and a direct branch.
14187 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14189 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14191 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14192 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14193 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14194 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14196 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14199 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14202 2011-01-12 Jan Hubicka <jh@suse.cz>
14205 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14206 (PLUGIN_COND_CLOSE): New macro.
14207 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14209 2011-01-12 Richard Guenther <rguenther@suse.de>
14212 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14213 register variables in a MEM_REF.
14215 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14217 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14218 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14219 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14220 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14221 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14222 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14223 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14224 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14225 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14226 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14227 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14228 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14229 * config/gnu-user.h: New. Copied from linux.h.
14230 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14231 GNU_USER_TARGET_STARTFILE_SPEC.
14232 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14233 GNU_USER_TARGET_ENDFILE_SPEC.
14234 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14235 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14236 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14237 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14238 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14239 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14240 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14241 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14242 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14243 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14244 * config/arm/linux-eabi.h (CC1_SPEC): Use
14245 GNU_USER_TARGET_CC1_SPEC.
14246 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14247 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14248 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14249 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14250 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14251 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14252 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14253 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14255 2011-01-12 Richard Guenther <rguenther@suse.de>
14258 * doc/invoke.texi (ffast-math): Document it is turned on
14261 2011-01-12 Jan Hubicka <jh@suse.cz>
14263 PR tree-optimization/47233
14264 * opts.c (common_handle_option): Disable ipa-reference with profile
14267 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14269 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14272 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14274 * c-parser.c (c_lex_one_token): Updated and reindented some
14275 comments. No changes in code.
14277 2011-01-11 Ian Lance Taylor <iant@google.com>
14279 * godump.c (go_output_var): Don't output the variable if there is
14280 already a type with the same name.
14282 2011-01-11 Ian Lance Taylor <iant@google.com>
14284 * godump.c (go_format_type): Don't generate float80.
14286 2011-01-11 Richard Henderson <rth@redhat.com>
14288 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14289 declaration. Rewrite for both speed and size.
14290 (mn10300_address_cost_1): Remove.
14291 (mn10300_register_move_cost): New.
14292 (mn10300_memory_move_cost): New.
14293 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14294 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14295 extensions, shifts, BSWAP, CLZ.
14296 (mn10300_wide_const_load_uses_clr): Remove.
14297 (TARGET_REGISTER_MOVE_COST): New.
14298 (TARGET_MEMORY_MOVE_COST): New.
14299 * config/mn10300/mn10300-protos.h: Update.
14300 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14302 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14303 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14304 * config/mn10300/mn10300-protos.h: Update.
14305 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14306 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14307 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14308 (*test_int_bitfield, *test_byte_bitfield): Remove.
14309 (*bit_test, *subreg_bit_test): Remove.
14310 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14312 * config/mn10300/constraints.md ("c"): Rename from "A".
14313 ("A", "D"): New constraint letters.
14314 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14315 (fmssf4, fnmasf4, fnmssf4): Likewise.
14317 * config/mn10300/mn10300.md (isa): New attribute.
14318 (enabled): New attribute.
14320 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14321 (abssf2, negsf2): Define only for hardware fp.
14322 (sqrtsf2): Reformat.
14323 (addsf3, subsf3, mulsf3): Merge expander and insn.
14325 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14326 (DEBUGGER_AUTO_OFFSET): Remove.
14327 (DEBUGGER_ARG_OFFSET): Remove.
14329 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14330 Emit register stores with the same offsets as the hardware.
14331 (mn10300_store_multiple_operation): Don't check that the register
14332 save offsets are monotonic.
14333 * config/mn10300/mn10300-protos.h: Update.
14335 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14337 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14338 in terms of the value on the stack, not the MDR register.
14340 2011-01-11 Jan Hubicka <jh@suse.cz>
14344 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14345 (symbol_alias_set_destroy, symbol_alias_set_contains,
14346 propagate_aliases_backward): Declare.
14347 * lto-streamer-out.c (struct sets): New sturcture.
14348 (trivally_defined_alias): New function.
14349 (output_alias_pair_p): Rewrite.
14350 (output_unreferenced_globals): Fix output of alias pairs.
14351 (produce_symtab): Likewise.
14352 * ipa.c (function_and_variable_visibility): Set weak alias destination
14354 * varasm.c (symbol_alias_set_t): Remove.
14355 (symbol_alias_set_destroy): Export.
14356 (propagate_aliases_forward, propagate_aliases_backward): New functions
14358 (compute_visible_aliases): ... this one; remove.
14359 (trivially_visible_alias): New
14360 (trivially_defined_alias): New.
14361 (remove_unreachable_alias_pairs): Rewrite.
14362 (finish_aliases_1): Reorganize code checking if alias is defined.
14363 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14366 2011-01-11 Richard Guenther <rguenther@suse.de>
14368 PR tree-optimization/46076
14369 * tree-ssa.c (useless_type_conversion_p): Conversions from
14370 unprototyped to empty argument list function types are useless.
14372 2011-01-11 Richard Guenther <rguenther@suse.de>
14374 PR middle-end/45235
14375 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14376 volatile MEMs as MEM_READONLY_P.
14378 2011-01-11 Richard Guenther <rguenther@suse.de>
14380 PR tree-optimization/47239
14381 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14383 2011-01-11 Jeff Law <law@redhat.com>
14385 PR tree-optimization/47086
14386 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14387 IVs from statements that might throw.
14389 2011-01-10 Jan Hubicka <jh@suse.cz>
14392 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14394 2011-01-10 Jan Hubicka <jh@suse.cz>
14397 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14398 when correcting profile.
14400 2011-01-10 Jan Hubicka <jh@suse.cz>
14403 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14404 DECL_FINI_PRIORITY.
14405 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14406 Restore DECL_FINI_PRIORITY.
14408 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14410 * doc/gimple.texi: Fix quoting of multi-word return values in
14411 @deftypefn statements. Ensure presence of return value. Wrap
14412 overlong @deftypefn lines.
14413 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14414 descriptions of removed functions.
14415 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14416 of multi-word return value in @deftypefn statement.
14418 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14420 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14421 (Conditional Expressions, Logical Operators)
14422 (Statement and operand traversals): Do not indent smallexample
14423 code. Fix duplicate function argument in example.
14425 2011-01-10 Jeff Law <law@redhat.com>
14427 PR tree-optimization/47141
14428 * ipa-split.c (split_function): Handle case where we are
14429 returning a value and the return block has a virtual operand phi.
14431 2011-01-10 Jan Hubicka <jh@suse.cz>
14433 PR tree-optimization/47234
14434 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14435 (pass_feedback_split_functions): Declare.
14436 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14438 * ipa-split.c (gate_split_functions): Update comments; disable
14439 split-functions for profile_arc_flag and branch_probabilities.
14440 (gate_feedback_split_functions): New function.
14441 (execute_feedback_split_functions): New function.
14442 (pass_feedback_split_functions): New global var.
14444 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14447 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14448 calling gimple_call_set_cannot_inline.
14450 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14452 * config/darwin-sections.def: Remove unused section.
14454 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14457 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14459 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14462 * c-parser.c (c_parser_declaration_or_fndef): Improved
14465 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14467 * config/i386/winnt.c (i386_pe_start_function): Make sure
14468 to switch back to function's section.
14470 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14474 * plugin.c: Move include of dlfcn.h from here...
14475 * system.h: ... to here.
14477 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14479 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14481 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14482 two extra empty pages in PDF output.
14484 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14487 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14488 for error recovery purposes behave as if it was not specified so
14489 that the default type is usd.
14491 2011-01-07 Jan Hubicka <jh@suse.cz>
14493 PR tree-optmization/46469
14494 * ipa.c (function_and_variable_visibility): Clear needed flags on
14495 nodes with external decls; handle weakrefs merging correctly.
14497 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14499 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14502 2011-01-07 Jan Hubicka <jh@suse.cz>
14504 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14505 and no longer claim that gold is required for linker plugin.
14506 * configure: Regenerate.
14507 * gcc.c (PLUGIN_COND): New macro.
14508 (LINK_COMMAND_SPEC): Use it.
14509 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14510 * config.in (HAVE_LTO_PLUGIN): New.
14511 * configure.ac (--with-lto-plugin): New parameter; autodetect
14514 2011-01-07 Jan Hubicka <jh@suse.cz>
14516 PR tree-optimization/46367
14517 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14518 when we can update original.
14519 (cgraph_mark_inline_edge): Sanity check.
14520 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14522 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14524 * config/spu/spu.h (ASM_COMMENT_START): Define.
14526 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14529 * gcc.c (%>S): New.
14530 (SWITCH_KEEP_FOR_GCC): Likewise.
14531 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14532 (do_spec_1): Handle "%>".
14534 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14536 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14539 * config/i386/i386.c (ix86_delegitimize_address): If
14540 simplify_gen_subreg fails, return orig_x.
14543 * value-prof.c (gimple_stringop_fixed_value): Handle
14544 lhs of the call properly.
14546 2011-01-07 Jan Hubicka <jh@suse.cz>
14549 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14551 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14553 * target.def (function_switched_text_sections): New hook.
14554 * doc/tm.texi: Regenerated.
14555 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14556 * final.c (default_function_switched_text_sections): New.
14557 (final_scan_insn): Call function_switched_text_sections when a
14558 mid-function section change occurs.
14559 * output.h (default_function_switched_text_sections): Declare.
14560 * config/darwin-protos.h (darwin_function_switched_text_sections):
14562 * config/darwin.c (darwin_function_switched_text_sections): New.
14563 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14565 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14567 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14568 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14569 the secondary code fragment when outputting for DWARF == 2.
14571 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14573 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14574 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14576 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14577 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14579 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14582 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14583 when it is not empty.
14585 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14588 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14589 (case ${target}): Add btver1.
14590 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14591 -march=native recognize btver1 processors.
14592 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14593 btver1 def_and_undef
14594 * config/i386/i386.c (struct processor_costs btver1_cost): New
14596 (m_BTVER1): New definition.
14597 (m_AMD_MULTIPLE): Includes m_BTVER1.
14598 (initial_ix86_tune_features): Add btver1 tune.
14599 (processor_target_table): Add btver1 entry.
14600 (static const char *const cpu_names): Add btver1 entry.
14601 (software_prefetching_beneficial_p): Add btver1.
14602 (ix86_option_override_internal): Add btver1 instruction sets.
14603 (ix86_issue_rate): Add btver1.
14604 (ix86_adjust_cost): Add btver1.
14605 * config/i386/i386.h (TARGET_BTVER1): New definition.
14606 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14607 (enum processor_type): Add PROCESSOR_BTVER1.
14608 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14610 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14613 * config/i386/i386.c (legitimize_tls_address)
14614 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14615 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14616 (tls_initial_exec_64_sun): New pattern.
14618 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14620 * doc/invoke.texi (Overall Options): Improve wording and markup
14621 of the description of -wrapper.
14623 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14625 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14626 rdynamic, threads): New Driver options.
14628 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14631 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14632 if coming from .tdata.
14633 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14635 2011-01-06 Jan Hubicka <jh@suse.cz>
14638 * collect2.c (main): Do not enable LTOmode when plugin is active.
14640 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14643 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14644 --version output if supported.
14645 * configure: Regenerate.
14647 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14649 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14652 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14655 * c-convert.c (convert): When converting a complex expression
14656 other than COMPLEX_EXPR to a different complex type, ensure
14657 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14658 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14659 when converting COMPLEX_TYPE.
14661 2011-01-06 Ira Rosen <irar@il.ibm.com>
14663 PR tree-optimization/47139
14664 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14665 only the last reduction value is used outside the loop. Update
14668 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14670 * config/rtems.opt: New.
14671 * config.gcc (*-*-rtems*): Use rtems.opt.
14673 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14675 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14676 processors do not support 3DNow instructions.
14678 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14680 * config/spu/spu.c (spu_option_override): Set parameter
14681 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14683 2011-01-05 Jan Hubicka <jh@suse.cz>
14685 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14686 at the command line.
14688 2011-01-05 Martin Jambor <mjambor@suse.cz>
14691 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14692 deltas on streamed outgoing edges.
14693 (output_node_opt_summary): Output info for outgoing edges only when
14694 the node is in new parameter set.
14695 (output_cgraph_opt_summary): New parameter set, passed to the two
14696 aforementioned functions. Update its forward declaration and its
14699 2011-01-05 Tom Tromey <tromey@redhat.com>
14701 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14702 operator to c_finish_omp_atomic.
14703 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14704 (build_unary_op): Update.
14705 (build_modify_expr): Update.
14706 (build_asm_expr): Update.
14708 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14710 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14711 newly inserted insns.
14712 (pad_bb): Likewise.
14713 (spu_emit_branch_hint): Likewise.
14714 (insert_hbrp_for_ilb_runout): Likewise.
14715 (spu_machine_dependent_reorg): Call df_finish_pass after
14716 schedule_insns returns.
14718 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14720 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14722 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14724 PR tree-optimization/47005
14725 * tree-sra.c (struct access): Add 'non_addressable' bit.
14726 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14727 (decide_one_param_reduction): Return 0 if the parameter is passed by
14728 reference and one of the accesses in the group is non_addressable.
14730 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14732 PR tree-optimization/47056
14733 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14734 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14735 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14737 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14739 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14740 initializer. Skip view conversions from aggregate types.
14742 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14745 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14747 2011-01-04 Philipp Thomas <pth@suse.de>
14749 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14752 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14754 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14755 on empty epilogue sequences.
14757 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14759 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14760 non-static): New Driver options.
14762 2011-01-04 Jie Zhang <jie@codesourcery.com>
14765 * gcc.c (default_compilers[]): Set combinable field to 0
14766 for all assembly languages.
14768 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14770 * config/mips/loongson3a.md: New file.
14771 * config/mips/mips.md: Include loongson3a.md.
14772 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14775 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14777 PR middle-end/47017
14778 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14779 instead of convert_memory_address_addr_space on the base expression.
14781 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14783 * config/spu/spu.c (spu_option_override): Update error text
14784 for bad -march= / -mtune= values.
14786 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14788 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14789 if branch-hint optimization will be performed.
14791 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14793 PR tree-optimization/47148
14794 * ipa-split.c (split_function): Convert arguments to
14795 DECL_ARG_TYPE if possible.
14797 PR tree-optimization/47155
14798 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14799 when computing uns.
14801 PR rtl-optimization/47157
14802 * combine.c (try_combine): If undobuf.other_insn becomes
14803 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14804 and set *new_direct_jump_p too.
14806 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14808 PR tree-optimization/47021
14809 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14811 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14813 * gcc.c (process_command): Update copyright notice dates.
14814 * gcov.c (print_version): Likewise.
14815 * gcov-dump.c (print_version): Likewise.
14816 * mips-tfile.c (main): Likewise.
14817 * mips-tdump.c (main): Likewise.
14819 2011-01-03 Martin Jambor <mjambor@suse.cz>
14821 PR tree-optimization/46801
14822 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14823 aggregate fields start at byte boundary instead of the bit-field flag.
14825 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14828 * gcc.c (main): Revert revision 168407.
14830 2011-01-03 Martin Jambor <mjambor@suse.cz>
14832 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14834 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14836 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14837 vector optab to expand vector/scalar shift, update gimple to vector.
14839 2011-01-03 Martin Jambor <mjambor@suse.cz>
14841 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14844 2011-01-03 Martin Jambor <mjambor@suse.cz>
14846 PR tree-optimization/46984
14847 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14849 (cgraph_create_indirect_edge): Fixed line length.
14850 (cgraph_indirect_call_info): Declare.
14851 (cgraph_make_edge_direct) Update declaration.
14852 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14853 (cgraph_create_indirect_edge): Use it.
14854 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14856 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14857 the new thunk_delta representation.
14858 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14860 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14861 (ipa_read_indirect_edge_info): Likewise.
14862 * lto-cgraph.c (output_edge_opt_summary): New function.
14863 (output_node_opt_summary): Call it on all outgoing edges.
14864 (input_edge_opt_summary): New function.
14865 (input_node_opt_summary): Call it on all outgoing edges.
14867 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14870 * gcc.c (main): Don't check have_o when settting combine_inputs.
14872 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14874 * regrename.c: Add general comment describing the pass.
14875 (struct du_head): Remove 'length' field.
14876 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14877 (regrename_optimize): Do not sort chains. Rework comments, add others.
14878 Force renaming to the preferred class (if any) in the first pass and do
14879 not consider registers that belong to it in the second pass.
14880 (create_new_chain): Do not set 'length' field.
14881 (scan_rtx_reg): Likewise.
14883 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14885 PR tree-optimization/47140
14886 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14887 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14888 to bit_value_binop.
14890 PR rtl-optimization/47028
14891 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14892 parm_birth_insn instead of at the beginning of first bb.
14894 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14896 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14897 Remove the word "see" before "@pxref".
14898 * doc/rtl.texi: Remove the word "see" before "@pxref".
14900 2011-01-01 Jan Hubicka <jh@suse.cz>
14902 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14905 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14908 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14911 Copyright (C) 2011 Free Software Foundation, Inc.
14913 Copying and distribution of this file, with or without modification,
14914 are permitted in any medium without royalty provided the copyright
14915 notice and this notice are preserved.