1 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3 PR tree-optimization/41881
4 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5 reduction_chains along with a macro for its access.
6 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7 (destroy_loop_vec_info): Free reduction chains.
8 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
9 (vect_is_slp_reduction): New function.
10 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11 (vect_create_epilog_for_reduction): Support SLP reduction chains.
12 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13 definition types for reduction chains.
14 (vect_supported_load_permutation_p): Don't allow permutations for
16 (vect_analyze_slp_instance): Support reduction chains.
17 (vect_analyze_slp): Try to build SLP instance from reduction chains.
18 (vect_get_constant_vectors): Handle reduction chains.
19 (vect_schedule_slp_instance): Mark the first statement of the
20 reduction chain as reduction.
22 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
24 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
25 names for group elements access.
26 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
27 reduction chains as well. Remove data reference and interleaving
28 related words from the fields names.
29 * tree-vect-loop.c (vect_transform_loop): Use new names for group
31 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
32 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
33 vect_update_interleaving_chain, vect_same_range_drs,
34 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
35 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
36 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
37 vect_analyze_group_access, vect_analyze_data_ref_access,
38 vect_create_data_ref_ptr, vect_transform_strided_load,
39 vect_record_strided_load_vectors): Likewise.
40 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
41 vect_model_load_cost, vectorizable_store, vectorizable_load,
42 vect_remove_stores, new_stmt_vec_info): Likewise.
43 * tree-vect-slp.c (vect_build_slp_tree,
44 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
46 2011-05-18 Richard Guenther <rguenther@suse.de>
49 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
51 (verify_gimple_assign_binary): Likewise.
52 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
53 to non-1-precision BOOLEAN_TYPEs.
55 2011-05-18 Tom de Vries <tom@codesourcery.com>
58 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
60 2011-05-18 Jakub Jelinek <jakub@redhat.com>
62 PR tree-optimization/49000
63 * tree-ssa.c (execute_update_addresses_taken): Call
64 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
65 be rewritten and decl has been marked for renaming, reset
68 2011-05-17 Joseph Myers <joseph@codesourcery.com>
70 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
71 enum_opts_set when testing if attributes have set -mfpmath=.
73 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
75 * config/mips/mips.c (mips_handle_option): Remove unused variable.
77 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
79 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
81 * tree-inline.c (maybe_inline_call_in_expr): Initialize
82 id.transform_lang_insert_block with NULL.
84 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
86 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
87 (output_fp_compare): Change args 3 and 4 to bool.
88 (ix86_expand_call): Change arg 6 to bool.
89 (ix86_attr_length_immediate_default): Change arg 2 to bool.
90 (ix86_attr_length_vex_default): Change arg 3 to bool.
91 * config/i386/i386.md: Update all uses.
92 * config/i386/i386.c: Ditto.
93 (ix86_flags_dependent): Change return type to bool.
95 2011-05-17 Richard Guenther <rguenther@suse.de>
97 * gimple.c (type_hash_pair_compare): Fix comparison.
99 2011-05-17 Richard Guenther <rguenther@suse.de>
101 * gimple.c (iterative_hash_gimple_type): Simplify singleton
102 case some more, fix final hash value of the non-singleton case.
104 2011-05-17 Richard Guenther <rguenther@suse.de>
108 2011-05-16 Richard Guenther <rguenther@suse.de>
110 * gimple.c (gimple_types_compatible_p_1): Use names of the
111 type itself, not its main variant.
112 (iterative_hash_gimple_type): Likewise.
114 2011-05-17 Richard Guenther <rguenther@suse.de>
116 * gimple.c (gimple_register_canonical_type): Use the main-variant
117 leader for computing the canonical type.
119 2011-05-17 Nick Clifton <nickc@redhat.com>
121 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
124 * config/rx/rx.md: Add peephole to remove redundant extensions
126 (bitset_in_memory): Use rx_restricted_mem_operand.
127 (bitinvert_in_memory): Likewise.
128 (bitclr_in_memory): Likewise.
130 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
131 Nick Clifton <nickc@redhat.com>
133 * config/rx/rx.md: Add peepholes to match a register move followed
134 by a comparison of the moved register. Replace these with an
135 addition of zero that does both actions in one instruction.
137 2011-05-17 Jakub Jelinek <jakub@redhat.com>
140 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
141 predicate to allow CONST_INT.
142 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
144 2011-05-16 Joseph Myers <joseph@codesourcery.com>
146 * opts-common.c (opt_enum_arg_to_value): New.
147 * opts.h (opt_enum_arg_to_value): Declare.
148 * config/i386/i386.opt (fpmath): Remove.
149 (mfpmath=): Use Enum, Init and Save.
150 (fpmath_unit): New Enum and EnumValue entries.
151 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
152 name for function fpmath state.
153 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
154 * config/i386/i386.c: Include diagnostic.h.
155 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
156 (ix86_target_string): Take enum fpmath_unit value instead of string.
157 (ix86_debug_options): Update call to ix86_target_string.
158 (ix86_option_override_internal): Don't process fpmath strings here.
159 (x86_function_specific_save, ix86_function_specific_restore):
160 Don't handle fpmath state specially.
161 (ix86_function_specific_print): Pass fpmath state to
162 ix86_target_string instead of printing in this function.
163 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
164 Handle enum attributes.
165 (IX86_ATTR_ENUM, ix86_opt_enum): New.
166 (ix86_valid_target_attribute_tree): Update option_strings
167 handling. Handle fpmath as enum option.
168 (ix86_can_inline_p): Update field names for function fpmath state.
169 (ix86_expand_builtin): Update call to ix86_target_string.
170 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
171 (ix86_fpmath): Remove.
172 * config/i386/t-i386 (i386.o): Update dependencies.
174 2011-05-16 Joseph Myers <joseph@codesourcery.com>
176 PR preprocessor/48677
177 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
178 from decoded_options[0], not from itself.
180 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
182 * config/i386/constraints.md (z): New constraint.
183 * config/i386/i386.c (c): New mode attribute.
184 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
185 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
186 constraint for operand 0.
187 (*call_vzeroupper): Ditto.
188 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
189 (*call_rex64_ms_sysv_vzeroupper): Ditto.
190 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
191 Use "lzm" constraint for operand 0.
192 (*call_pop_vzeroupper): Ditto.
193 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
194 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
195 constraint for operand 0.
196 (*sibcall_vzeroupper): Ditto.
197 (*sibcall_rex64_ms_sysv): Ditto.
198 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
199 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
200 *sibcall_pop_1. Use "Uz" constraint for operand 0.
201 (*sibcall_pop_vzeroupper): Ditto.
202 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
203 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
204 mode iterator. Use "<c>zm" constraint for operand 1.
205 (*call_value_vzeroupper): Ditto.
206 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
208 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
209 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
210 *call_value_pop_1. Use "lzm" constraint for operand 1.
211 (*call_value_pop_vzeroupper): Ditto.
212 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
213 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
214 mode iterator. Use "Uz" constraint for operand 1.
215 (*sibcall_value_vzeroupper): Ditto.
216 (*sibcall_value_rex64_ms_sysv): Ditto.
217 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
218 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
219 constraint for operand 1.
220 (*sibcall_value_pop_vzeroupper): Ditto.
221 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
222 and "z" constraint for operand 2.
223 (*tls_global_dynamic_32_gnu): Ditto.
224 (*tls_local_dynamic_base_32_gnu): Ditto.
225 (*tls_local_dynamic_base_64): Ditto.
226 (*tls_local_dynamic_32_once): Ditto.
227 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
229 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
231 2011-05-16 Richard Guenther <rguenther@suse.de>
233 * gimple.c (gimple_types_compatible_p_1): Use names of the
234 type itself, not its main variant.
235 (iterative_hash_gimple_type): Likewise.
237 2011-05-16 Richard Guenther <rguenther@suse.de>
239 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
240 always visit pointer target and function result and argument types.
242 2011-05-16 Jason Merrill <jason@redhat.com>
245 * tree-inline.c (copy_statement_list): Put back recursion.
247 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
251 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
252 * config/avr/avr.md ("*ior<mode>qi.byte0",
253 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
255 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
258 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
259 register is needed for a function argument.
261 2011-05-16 Richard Guenther <rguenther@suse.de>
263 * gimple.c (struct type_hash_pair): New type.
264 (type_hash_pair_compare): New function.
265 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
267 2011-05-16 Revital Eres <revital.eres@linaro.org>
269 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
271 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
273 * config/i386/i386.md (floating point move splitters): Fix
274 usage of standard_80387_constant_p.
275 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
277 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
279 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
281 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
283 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
284 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
285 (tree_ssa_lim_finalize): Likewise.
287 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
289 * config/i386/constraint.md (Yd, Yx): New register constraints.
290 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
291 Yd conditional register constraint.
292 (*movtf_internal): Use standard_sse_constant_opcode.
293 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
294 Yx conditional register constraint.
295 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
296 Yd conditional register constraint. Use standard_sse_constant_p to
297 check for valid SSE constants and call standard_sse_constant_opcode to
299 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
300 constants and call standard_sse_constant_opcode to output SSE insn.
301 * config/i386/i386.c (ix86_option_ovverride_internal): Set
302 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
303 optimize_size is set.
304 (standard_sse_constant_opcode): Output conditional AVX insn templates.
306 2011-05-14 Tobias Burnus <burnus@net-b.de>
308 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
310 2011-05-13 Martin Jambor <mjambor@suse.cz>
312 * ipa-prop.c (ipa_cst_from_jfunc): New function.
313 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
314 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
315 (evaluate_conditions_for_ipcp_clone): Removed.
316 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
317 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
318 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
320 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
322 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
323 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
324 lieu of MAY_HAVE_DEBUG_STMTS.
325 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
326 debug statements if !MAY_HAVE_DEBUG_STMTS.
328 2011-05-13 Martin Thuresson <martint@google.com>
330 PR gcov-profile/47793
331 * libgcov.c (gcov_exit): Support relative profile paths.
332 * doc/invoke.texi (-fprofile-dir): Update for above change.
334 2011-05-13 Richard Guenther <rguenther@suse.de>
336 * gimple.c (gimple_canonical_types_compatible_p): Do not use
337 type-pair caching, do not compare hashes.
339 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
342 * tree-cfg.c (edge_to_cases_cleanup): Return true.
343 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
345 2011-05-13 Kai Tietz <ktietz@redhat.com>
347 * gimplify.c (gimplify_expr): Make sure operand is boolified.
348 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
349 compatible type for TRUTH_NOT_EXPR.
351 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
353 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
354 (ix86_hard_regno_mode_ok): Change return value to bool. Use
355 can_create_pseudo_p ().
357 2011-05-13 Richard Guenther <rguenther@suse.de>
360 * gimple.c (iterative_hash_gimple_type): Revert change in
361 pointer target and function result and argument hashing.
363 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
365 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
366 (*movxf_internal_nointeger): Ditto.
367 (*movdf_internal_rex64): Ditto.
368 (*movdf_internal): Ditto.
369 (*movdf_internal_nointeger): Ditto.
370 (*movsf_internal): Ditto.
371 (sincos splitters): Use can_create_pseudo ().
373 2011-05-13 Joseph Myers <joseph@codesourcery.com>
375 * config/i386/i386-opts.h: New.
376 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
377 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
378 ix86_section_threshold): Remove.
379 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
380 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
382 (ix86_option_override_internal): Don't decode strings for options
383 other than -march=, -mtune= and -mfpmath=. Don't allow for
384 __attribute__ uses in remaining diagnostics for options with
385 string arguments. Don't check for integer arguments being negative.
386 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
387 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
388 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
389 ix86_branch_cost, ix86_section_threshold): Remove.
390 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
392 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
394 (masm=): Use Enum and Init.
395 (asm_dialect): New Enum and EnumValue entries.
396 (mbranch-cost=): Use UInteger.
397 (mlarge-data-threshold=): Use UInteger and Init.
398 (mcmodel=): Use Enum and Init.
399 (cmodel): New Enum and EnumValue entries.
400 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
401 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
402 mregparm=): Use UInteger.
403 (mstringop-strategy=): Use Enum and Init.
404 (stringop_alg): New Enum and EnumValue entries.
405 (mtls-dialect=): Use Enum and Init.
406 (tls_dialect): New Enum and EnumValue entries.
407 (mabi=): Use Enum and Init.
408 (calling_abi): New Enum and EnumValue entries.
409 (mveclibabi=): Use Enum and Init.
410 (ix86_veclibabi): New Enum and EnumValue entries.
412 2011-05-13 Nick Clifton <nickc@redhat.com>
414 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
415 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
417 2011-05-13 Kai Tietz <ktietz@redhat.com>
420 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
421 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
422 (gimple_boolify): Check for cast for boolean_type_node instead for
425 2011-05-13 Richard Guenther <rguenther@suse.de>
427 PR tree-optimization/48172
428 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
429 multiplying by number of iterations for equal step.
430 (vect_create_cond_for_alias_checks): Likewise.
432 2011-05-13 Andreas Schwab <schwab@redhat.com>
434 * configure.ac: Use AS_HELP_STRING throughout.
435 * configure: Regenerate.
437 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
439 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
440 (ix86_emit_restore_regs_using_mov): Likewise.
441 (ix86_emit_restore_sse_regs_using_mov): Likewise.
443 2011-05-12 Anatoly Sokolov <aesok@post.ru>
445 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
446 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
447 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
448 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
449 RTX_OK_FOR_OLO10_P): ...here.
450 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
453 2011-05-12 Kai Tietz <ktietz@redhat.com>
455 * gimplify.c (gimple_boolify): Re-boolify expression
456 arguments even if expression type is of kind BOOLEAN_TYPE.
457 (gimplify_boolean_expr): Removed.
458 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
459 and XOR. Additional take care that we keep expression's type.
460 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
461 of TRUTH_AND|OR|XOR_EXPR.
463 2011-05-12 Jakub Jelinek <jakub@redhat.com>
465 PR tree-optimization/48975
466 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
467 on all bbs here and free and clear ifc_bbs at the end.
469 2011-05-12 Richard Guenther <rguenther@suse.de>
471 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
472 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
473 until after simple checks.
474 (gimple_types_compatible_p): Likewise.
475 (iterative_hash_gimple_type): Always hash pointer targets
476 and function return and argument types.
477 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
478 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
479 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
480 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
481 completely in the simple compare section.
482 (gimple_register_canonical_type): Query the cache again after
485 2011-05-12 Richard Guenther <rguenther@suse.de>
487 PR tree-optimization/48172
488 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
489 the number of iterations from the segment size calculation.
490 (vect_create_cond_for_alias_checks): Adjust.
492 2011-05-12 Jakub Jelinek <jakub@redhat.com>
495 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
496 if validate_subreg fails.
498 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
500 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
501 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
504 2011-05-12 DJ Delorie <dj@redhat.com>
506 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
507 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
508 created builtin into rx_builtins array.
509 (rx_builtin_decl): New function.
510 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
512 2011-05-12 DJ Delorie <dj@redhat.com>
513 Nick Clifton <nickc@redhat.com>
515 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
516 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
517 (rx_is_legitimate_address): Add pre-decrement and post-increment
518 addressing in HImode and QImode. Fix test for out of range
520 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
521 (rx_align_for_label): Test label before extracting its usage count.
522 (rx_adjust_insn_lengths): Fix selection of insn codes.
523 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
525 2011-05-11 Jason Merrill <jason@redhat.com>
527 * tree.c (type_hash_canon): Use struct tree_type_non_common.
529 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
531 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
532 reindent the subsequent block.
534 2011-05-11 Satoru Takabayashi <satorux@google.com>
535 Paul Pluzhnikov <ppluzhnikov@google.com>
537 * doc/install.texi (Configuration): Document --with-linker-hash-style.
538 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
539 * config.in: Add LINKER_HASH_STYLE.
540 * configure.ac: Add --with-linker-hash-style.
541 * configure: Regenerate.
543 2011-05-11 Richard Guenther <rguenther@suse.de>
546 * gimple.c (iterative_hash_canonical_type): Fix typo.
548 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
550 * config/i386/i386.c (legitimize_tls_address)
551 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
552 expanders directly for TARGET_GNU2_TLS. Determine pic and
553 __tls_get_addr symbol reference here. Update call to
554 gen_tls_global_dynamic_{32,64} for added arguments.
555 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
556 expanders directly for TARGET_GNU2_TLS. Determine
557 __tls_get_addr symbol reference here. Update call to
558 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
559 unique UNSPEC REG_EQUIV to libcall block.
560 (ix86_tls_get_addr): Declare static.
561 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
562 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
563 Do not determine pic and __tls_get_addr symbol reference here. Do not
564 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
565 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
566 (tls_global_dynamic_64): Add operand 2. Do not determine
567 __tls_get_addr symbol reference here. Do not call
568 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
569 (tls_local_dynamic_base64): Ditto for operand 1.
571 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
573 * function.c (expand_function_start): Initialize stack_check_probe_note
574 only if the generic stack checking mechanism is used.
576 2011-05-11 Richard Guenther <rguenther@suse.de>
578 PR tree-optimization/15256
579 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
580 (A & B) | C, combine (A op CST1) op CST2.
581 (tree_ssa_forward_propagate_single_use_vars): Only bother to
582 visit assigns that have uses.
584 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
586 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
587 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
588 (unpack_ts_type_common_value_fields): ...this. Update comment.
589 (unpack_value_fields): Adjust for renaming.
590 (lto_input_ts_type_tree_pointers): Split into...
591 (lto_input_ts_type_common_tree_pointer): ...this and...
592 (lto_input_ts_type_non_common_tree_pointers): ...this.
593 (lto_input_tree_pointers): Adjust for above split.
594 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
595 (pack_ts_type_common_value_fields): ...this. Update comment.
596 (lto_output_ts_type_tree_pointers): Split into...
597 (lto_output_ts_type_common_tree_pointers): ...this and...
598 (lto_output_ts_type_non_common_tree_pointers): ...this.
599 (lto_output_tree_pointers): Adjust for above split.
600 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
601 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
602 * stor-layout.c (vector_type_mode): Adjust location of mode field.
603 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
605 (struct tree_type): Split into...
606 (struct tree_type_common: ...this and...
607 (struct tree_type_with_lang_specific): ...this and...
608 (struct tree_type_non_common): ...this. Adjust accessor macros
610 (TYPE_VALUES_RAW): Define.
611 (union tree_node): Update for above changes.
612 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
614 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
615 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
616 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
617 * treestructu.def (TS_TYPE): Remove.
618 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
621 2011-05-11 Jakub Jelinek <jakub@redhat.com>
624 * tree-ssa.c (reset_debug_uses): New function.
625 * tree-flow.h (reset_debug_uses): New prototype.
626 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
627 * tree-loop-distribution.c (generate_loops_for_partition): Call
628 reset_debug_uses on the stmts that will be removed. Keep around
629 all debug stmts, don't count them as bits in partition bitmap.
630 (generate_builtin): Don't count debug stmts or labels as bits in
633 2011-05-11 Richard Guenther <rguenther@suse.de>
635 * gimple.c (gimple_type_hash_1): Merge with ...
636 (gimple_type_hash): ... this.
637 (gtc_visit): Remove mode parameter and simplify accordingly.
638 (gimple_types_compatible_p_1): Likewise.
639 (gimple_types_compatible_p): Likewise.
640 (iterative_hash_gimple_type): Likewise.
642 (gimple_type_eq): Adjust.
644 2011-05-11 Revital Eres <revital.eres@linaro.org>
646 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
647 enters the branch create an anti edge in the opposite direction
648 to prevent the creation of reg-moves.
649 * modulo-sched.c: Adjust comment to reflect the fact we are
650 scheduling closing branch.
651 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
652 (stage_count): New field in struct partial_schedule.
653 (calculate_stage_count): New function.
654 (normalize_sched_times): Rename to reset_sched_times and handle
655 incrementing the sched time of the nodes by a constant value
657 (duplicate_insns_of_cycles): Skip closing branch.
658 (sms_schedule_by_order): Schedule closing branch.
659 (ps_insn_find_column): Handle closing branch.
660 (sms_schedule): Call reset_sched_times and adjust the code to
661 support scheduling of the closing branch.
662 (ps_insert_empty_row): Update calls to normalize_sched_times
663 and rotate_partial_schedule functions.
665 2011-05-11 Richard Guenther <rguenther@suse.de>
668 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
670 2011-05-11 Joseph Myers <joseph@codesourcery.com>
672 * opts.c (finish_options): Move warning settings from process_options.
673 * toplev.c (process_options): Move warning settings to finish_options.
675 2011-05-11 Richard Guenther <rguenther@suse.de>
677 PR tree-optimization/18041
678 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
679 (simplify_bitwise_binary): ... this. Handle operand conversions
680 by applying them to the result instead.
681 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
683 2011-05-11 Richard Guenther <rguenther@suse.de>
685 * gimple.c (gimple_canonical_types_compatible_p): Split out
686 from gimple_types_compatible_p and friends. Do not recurse
688 (gimple_canonical_type_eq): Use it.
689 (iterative_hash_canonical_type): Split out from
690 iterative_hash_gimple_type and friends. Do not recurse
692 (gimple_canonical_type_hash): Use it, allocate the hash here.
694 2011-05-11 Revital Eres <revital.eres@linaro.org>
696 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
699 2011-05-11 Revital Eres <revital.eres@linaro.org>
701 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
702 instead of PREV_INSN.
704 2011-05-11 Revital Eres <revital.eres@linaro.org>
706 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
707 * loop-doloop.c (doloop_condition_get): Likewise.
708 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
710 * config/arm/arm.md (*addsi3_compare0): Remove "*".
712 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
714 * tree.def (CASE_LABEL_EXPR): Add an operand.
715 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
717 2011-05-10 Joseph Myers <joseph@codesourcery.com>
719 * c-decl.c (c_override_global_bindings_to_false): Remove.
720 (global_bindings_p): Don't check
721 c_override_global_bindings_to_false.
722 * c-tree.h (c_override_global_bindings_to_false): Remove.
723 * c-typeck.c (composite_type): Don't set
724 c_override_global_bindings_to_false.
726 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
728 PR target/48857, 48495
729 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
731 (VSX_MOVE_MODE): Ditto.
732 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
733 VSX vector types. Add V2DImode.
734 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
735 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
736 (MODES_TIEABLE_P): Ditto.
738 * config/rs6000/rs6000.c (rs6000_emit_move): Use
739 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
741 (init_cumulative_args): Ditto.
742 (rs6000_function_arg_boundary): Ditto.
743 (rs6000_function_arg_advance_1): Ditto.
744 (rs6000_function_arg): Ditto.
745 (rs6000_function_ok_for_sibcall): Ditto.
746 (emit_frame_save): Ditto.
747 (rs6000_function_value): Ditto.
748 (rs6000_libcall_value): Ditto.
750 2011-05-10 Joseph Myers <joseph@codesourcery.com>
752 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
753 i386/darwin-lib.h to $libgcc_tm_file.
754 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
756 2011-05-10 Joseph Myers <joseph@codesourcery.com>
758 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
760 2011-05-10 Joseph Myers <joseph@codesourcery.com>
762 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
763 * config/rs6000/rs6000-tables.opt: New file (generated).
764 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
765 rs6000/rs6000-tables.opt to extra_options.
766 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
767 * config/rs6000/rs6000.c (rs6000_select): Remove.
768 (processor_target_table): Move contents to rs6000-cpus.def.
769 (darwin_rs6000_override_options): Check
770 global_options_set.x_rs6000_cpu_index instead of
771 rs6000_select[1].string.
772 (rs6000_option_override_internal): Likewise.
773 (rs6000_handle_option): Don't assert that global structures are in
774 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
775 (rs6000_default_cpu): New variable.
776 (rs6000_file_start): Set it instead of local default_cpu. Check
777 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
778 global_options_set.x_rs6000_tune_index instead of rs6000_select.
779 (rs6000_darwin_file_start): Check rs6000_default_cpu and
780 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
781 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
782 rs6000_select): Remove.
783 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
785 (mcpu=, mtune=): Use Var, Init, Enum and Save.
786 * config/rs6000/t-rs6000
787 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
788 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
789 global_options_set.x_rs6000_cpu_index instead of
790 rs6000_select[1].string.
791 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
792 global_options_set.x_rs6000_cpu_index instead of
793 rs6000_select[1].string.
795 2011-05-10 Joseph Myers <joseph@codesourcery.com>
797 * config.gcc (libgcc_tm_file): Define instead of including files
798 from ../../libgcc/config/ in tm_file.
799 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
800 * configure: Regenerate.
801 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
802 libgcc_tm.h, cs-libgcc_tm.h): New.
803 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
804 (clean): Remove libgcc_tm.h.
805 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
806 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
807 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
809 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
812 * config/avr/avr.c (avr_ret_register): Return unsigned int
814 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
815 it to avr_libcall_value.
816 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
818 (avr_expand_binop_builtin): Ditto.
819 (avr_expand_unop_builtin): Ditto.
821 2011-05-10 DJ Delorie <dj@redhat.com>
823 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
824 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
825 * config/rx/rx.c (rx_align_for_label): Add label and
826 uses_threshold parameters. Do not align when the label is not
828 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
830 2011-05-10 Richard Guenther <rguenther@suse.de>
832 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
833 a series of conversions and apply foldings similar to what
835 (tree_ssa_forward_propagate_single_use_vars): Call it.
837 2011-05-10 Jakub Jelinek <jakub@redhat.com>
839 PR tree-optimization/48611
840 PR tree-optimization/48794
841 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
842 referenced from RESX or EH_DISPATCH arguments.
845 * dfp.c (decimal_to_decnumber): Handle conversion from
848 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
850 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
851 for !flag_prefer_avx128.
852 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
854 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
856 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
857 (fold_ternary_loc): Use expr_location_or.
859 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
862 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
863 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
864 Pmode and mem_mode is not VOIDmode.
866 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
868 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
869 TYPE_QUAL_RESTRICT): Convert to enum.
871 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
873 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
874 (const_pow2_1_to_8_operand): Ditto.
875 (const_pow2_1_to_128_operand): Ditto.
876 (const_pow2_1_to_32768_operand): Ditto.
877 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
878 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
879 in insn constraint to check integer value of operand 3.
880 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
882 (PINSR_MODE): New mode iterator.
883 (sse2p4_1): New mode attribute.
884 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
885 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
886 iterator. Use const_int_operand instead of
887 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
888 exact_log2 in insn constraint to check integer value of operand 3.
890 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
892 * config/i386/sse.md (blendbits): Remove mode attribute.
893 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
894 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
895 Check integer value of operand 3 in insn constraint.
897 2011-05-09 Richard Guenther <rguenther@suse.de>
899 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
901 (lto_symtab_merge): Likewise. Do not register types here.
902 (lto_symtab_merge_decls_2): Likewise.
903 (lto_symtab_merge_decls_1): Likewise.
904 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
905 * gimple.c (enum gtc_mode): Declare.
906 (gimple_types_compatible_p): Make static.
908 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
910 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
911 temporary register to match Pmode.
913 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
915 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
916 and *vec_concatv4si_1_avx.
918 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
920 PR rtl-optimization/48927
921 * ira-conflicts.c (commutative_constraint_p): Use
922 recog_data.alternative_enabled_p to disable alternatives where
923 "enabled" attribute is false.
924 (get_dup_num): Ditto.
925 * ira-lives.c (single_reg_class): Ditto.
926 (ira_implicitly_set_insn_hard_regs): Ditto.
928 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
930 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
931 (dataflow_set_preserve_mem_locs): Likewise.
933 2011-05-09 Philipp Thomas <pth@suse.de>
935 * config/mep/mep.c (mep_validate_vliw): Syntax description
936 should not be translated.
938 2011-05-09 Joseph Myers <joseph@codesourcery.com>
940 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
941 * config/mips/mips-tables.opt: New file (generated).
942 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
943 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
944 MIPS_ARCH_OPTION_NATIVE): Define.
945 * config/mips/mips.c (mips_cpu_info_table): Move contents to
947 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
948 mips_parse_cpu): Remove.
949 (mips_cpu_info_from_opt, mips_default_arch): New.
950 (mips_handle_option): Don't assert that global structures are in
951 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
952 (mips_option_override): Use new variables and functions to set
953 state of these options. Use strcmp to check for individual CPU names.
954 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
956 * config/mips/mips.opt (march=): Use ToLower and Enum.
957 (mips): Use ToLower, Enum and Var.
958 (mtune=): Use ToLower and Enum.
959 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
961 2011-05-08 Jan Hubicka <jh@suse.cz>
963 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
964 Arrange type pairs to be UID ordered.
965 (gimple_lookup_type_leader): Make inline.
967 2011-05-09 Nick Clifton <nickc@redhat.com>
970 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
974 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
977 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
979 * combine.c (simplify_comparison): Abstract out parts into...
980 (simplify_compare_const): ... new function.
981 (try_combine): Generalize parallel arithmetic/compare combining
982 to call simplify_compare_const() and CANONICALIZE_COMPARE().
984 2011-05-08 Jan Hubicka <jh@suse.cz>
986 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
987 (cgraph_create_virtual_clone): Call hooks once virtual clone
989 * cgraph.h (cgraph_clone_node): Update prototype.
990 * ipa-cp.c (ipcp_estimate_growth): Use
991 estimate_ipcp_clone_size_and_time.
992 * ipa-inline-transform.c (clone_inlined_nodes): Update.
993 * lto-cgraph.c (input_node): Update.
994 * ipa-inline.c (recursive_inlining): Update.
995 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
996 (evaluate_conditions_for_known_args): Break out from ...
997 (evaluate_conditions_for_edge): ... here.
998 (evaluate_conditions_for_ipcp_clone): New function.
999 (inline_node_duplication_hook): Update clone summary based
1001 (estimate_callee_size_and_time): Rename to ...
1002 (estimate_node_size_and_time): take NODE instead of EDGE;
1003 take POSSIBLE_TRUTHS as argument.
1004 (estimate_callee_size_and_time): Update.
1005 (estimate_ipcp_clone_size_and_time): New function.
1006 (do_estimate_edge_time): Update.
1008 2011-05-08 Richard Guenther <rguenther@suse.de>
1012 * expmed.c (expand_shift_1): Compute adjusted constant shift
1015 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1017 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1019 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1021 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1023 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1025 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1027 2011-05-07 Jan Hubicka <jh@suse.cz>
1029 * ipa-inline-transform.c (inline_call): Account when program size
1031 * ipa-inline.c (relative_time_benefit): New function.
1032 (edge_badness): Reorganize to be power 2 based; fix thinko when
1033 computing badness for negative growth; update comments to match
1034 reality; better dumps.
1036 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1038 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1039 type to bool and adjust comment.
1040 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1041 (fold_mathfn_compare): Remove calls to global_bindings_p.
1042 (fold_inf_compare): Likewise.
1043 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1044 * c-tree.h (global_bindings_p): Adjust prototype.
1045 * c-decl.c (global_bindings_p): Return bool and simplify.
1047 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1049 PR tree-optimization/48837
1050 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1051 when accumulator transformation is performed.
1053 2011-05-06 Jan Hubicka <jh@suse.cz>
1055 * i386.h (ix86_tune_indices): Add
1056 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1057 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1058 * i386.c (initial_ix86_tune_features): Add
1059 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1060 (software_prefetching_beneficial_p): Remove predicate.
1061 (ix86_option_override_internal): Use new macro.
1063 2011-05-06 Jan Hubicka <jh@suse.cz>
1065 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1067 2011-05-06 Jan Hubicka <jh@suse.cz>
1069 * cgraph.c (cgraph_add_thunk): Create real function node instead
1070 of alias node; finalize it and mark needed/reachale; arrange visibility
1071 to be right and add it into the corresponding same comdat group list.
1072 (dump_cgraph_node): Dump thunks.
1073 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1074 cgraph_function_with_gimple_body_p,
1075 cgraph_first_function_with_gimple_body,
1076 cgraph_next_function_with_gimple_body): New functions.
1077 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1079 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1080 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1081 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1082 devirtualization when optimizing.
1083 (verify_cgraph_node): Verify thunks.
1084 (cgraph_analyze_function): Analyze thunks.
1085 (cgraph_mark_functions_to_output): Output thunks only in combination
1086 with function they are assigned to.
1087 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1088 alias into normal node.
1089 (assemble_thunks): New functoin.
1090 (cgraph_expand_function): Use it.
1091 * lto-cgraph.c (lto_output_node): Stream thunks.
1092 (input_overwrite_node): Stream in thunks.
1093 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1094 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1095 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1096 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1097 (inline_analyze_function): Do not care about thunk jump functions.
1098 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1099 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1100 cgraph_function_with_gimple_body_p.
1101 * passes.c (do_per_function_toporder): Use
1102 cgraph_function_with_gimple_body_p.
1103 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1104 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1105 (function_called_by_processed_nodes_p): Likewise.
1107 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1109 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1110 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1112 (mabi=): Replace with separate entries for mabi=altivec,
1113 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1114 mabi=ieeelongdouble and mabi=ibmlongdouble.
1115 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1116 check for -mabi=spe without SPE ABI support here.
1117 (rs6000_handle_option): Replace OPT_mabi_ handling with
1118 OPT_mabi_altivec and OPT_mabi_spe handling.
1120 2011-05-06 Cary Coutant <ccoutant@google.com>
1122 * dwarf2out.c (contains_subprogram_definition): New function.
1123 (should_move_die_to_comdat): Call it.
1125 2011-05-06 Jeff Law <law@redhat.com>
1127 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1128 remove_ctrl_stmt_and_useless_edges.
1129 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1130 (fixup_template_block, thread_single_edge): Likewise.
1131 (mark_threaded_blocks): Use THREAD_TARGET.
1133 2011-05-06 Alan Modra <amodra@gmail.com>
1136 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1137 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1139 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1141 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1142 constraint modifier to "r".
1144 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1146 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1147 fall through for OPT_mcmodel_.
1149 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1151 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1153 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1155 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1158 * config/arm/arm.opt (marm): Document it.
1159 (mthumb): Reject negative variant.
1161 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1164 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1165 Fix typo in "ccvt" variable name.
1167 2011-05-06 Tristan Gingold <gingold@adacore.com>
1170 * config/vms/vms-ar.c (main): Remove cwd variable.
1172 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1175 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1177 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1179 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1180 * gimplify.c (gimplify_switch_expr): Likewise.
1181 * omp-low.c (expand_omp_sections): Likewise.
1182 * tree-eh.c (lower_try_finally_switch): Likewise.
1183 (lower_eh_dispatch): Likewise.
1184 * tree.h (build_case_label): Declare.
1185 * tree.c (build_case_label): Define.
1187 2011-05-05 Jason Merrill <jason@redhat.com>
1190 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1191 (copy_statement_list): Don't recurse.
1192 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1195 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1197 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1198 through from -mfpu= handling.
1199 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1201 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1203 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1206 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1208 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1210 (hppa[12]*-*-hpux11*): Ditto.
1211 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1212 * config/ia64/hpux-unix2003.h: New.
1213 * config/pa/pa-hpux1131.opt: New.
1214 * config/pa/pa-hpux1131.h: New.
1215 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1216 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1217 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1219 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1222 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1223 instead of mode as 3rd argument to recursive call.
1224 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1225 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1227 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1228 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1229 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1230 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1232 2011-05-05 Julian Brown <julian@codesourcery.com>
1234 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1235 parenthesis in D-register case.
1237 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1239 * opt-functions.awk (var_type_struct): Handle Enum options.
1240 * optc-gen.awk: Don't check range of variables of character type.
1241 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1242 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1243 rs6000_sdata_name, rs6000_explicit_options): Remove.
1244 (rs6000_option_override_internal): Check for -malign-power here.
1245 Use global_options_set instead of rs6000_explicit_options.
1246 (rs6000_parse_fpu_option): Remove.
1247 (rs6000_handle_option): Access variables via opts and opts_set
1248 pointers. Use error_at and warning_at. Add fall-through
1249 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1250 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1251 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1252 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1253 here. Don't use rs6000_parse_fpu_option.
1254 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1255 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1256 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1258 (mspe): Use Var and Save.
1259 (mtraceback=): Use Enum and Var.
1260 (rs6000_traceback_type): New Enum and EnumValue entries.
1261 (mfloat-gprs=): Use Enum, Var and Save.
1262 (rs6000_float_gprs): New Enum and EnumValue entries.
1263 (mlong-double-): use Var and Save.
1264 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1265 (malign-): Use Enum and Var.
1266 (rs6000_alignment_flags): New Enum and EnumValue entries.
1268 (fpu_type_t): New Enum and EnumValue entries.
1269 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1270 global_options_set instead of rs6000_explicit_options.
1271 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1272 global_options_set instead of rs6000_explicit_options.
1273 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1274 global_options_set instead of rs6000_explicit_options.
1275 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1276 global_options_set instead of rs6000_explicit_options.
1277 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1278 global_options_set instead of rs6000_explicit_options.
1279 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1280 global_options_set instead of rs6000_explicit_options.
1281 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1283 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1284 global_options_set instead of rs6000_explicit_options.
1285 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1286 (rs6000_cmodel): New Enum and EnumValue entries.
1287 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1288 global_options_set instead of rs6000_explicit_options.
1289 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1290 (mtls-size=): Use Enum and Var.
1291 (rs6000_tls_size): New Enum and EnumValue entries.
1293 2011-05-05 Michael Matz <matz@suse.de>
1295 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1296 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1297 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1298 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1299 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1300 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1301 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1302 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1303 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1304 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1305 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1306 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1307 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1308 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1309 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1310 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1312 2011-05-05 Richard Guenther <rguenther@suse.de>
1314 * expmed.c (expand_variable_shift): Rename to ...
1315 (expand_shift_1): ... this. Take an expanded shift amount.
1316 For rotates recurse directly not building trees for the shift amount.
1317 (expand_variable_shift): Wrap around expand_shift_1.
1318 (expand_shift): Adjust.
1320 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1322 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1324 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1326 * tree.h (get_pending_sizes): Remove prototype.
1327 (put_pending_size): Likewise.
1328 (put_pending_sizes): Likewise.
1329 * stor-layout.c (pending_sizes): Delete.
1330 (get_pending_sizes): Likewise.
1331 (put_pending_size): Likewise.
1332 (put_pending_sizes): Likewise.
1333 (variable_size): Do not call put_pending_size and tidy up.
1334 * function.h (struct function): Remove dont_save_pending_sizes_p.
1335 * lto-streamer-in.c (input_function): Do not stream it.
1336 * lto-streamer-out.c (output_function): Likewise.
1337 * tree-inline.c (initialize_cfun): Do not copy it.
1338 * c-decl.c (store_parm_decls): Do not set it.
1339 * omp-low.c (create_task_copyfn): Likewise.
1340 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1342 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1344 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1346 (*movdf_internal): Ditto.
1347 (*movdf_internal_nointeger): Ditto.
1348 (*movsf_internal): Ditto.
1350 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1352 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1353 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1354 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1355 (c_variable_size): Remove.
1356 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1357 call put_pending_sizes.
1358 (get_parm_info): Add parameter expr. Use it to set
1359 arg_info->pending_sizes.
1360 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1362 * c-parser.c (c_parser_parms_declarator): Update call to
1363 c_parser_parms_list_declarator.
1364 (c_parser_parms_list_declarator): Take parameter expr. Update
1365 call to push_parm_decl. Update recursive call. Don't call
1366 get_pending_sizes. Update calls to get_parm_info.
1367 (c_parser_objc_method_definition): Update calls to
1368 c_parser_objc_method_decl and objc_start_method_definition.
1369 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1370 (c_parser_objc_method_decl): Add parameter expr. Update call to
1372 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1373 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1374 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1376 2011-05-05 Michael Hope <michael.hope@linaro.org>
1379 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1382 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1384 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1385 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1386 (spu_output_mi_thunk): New function.
1388 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1390 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1391 targetm.asm_out.print_operand.
1392 * config/sol2.c: Include target.h.
1394 2011-05-04 Jan Hubicka <jh@suse.cz>
1396 * ipa-inline.c (reset_edge_caches): New function.
1397 (update_caller_keys): Add check_inlinablity_for; do not
1398 reset edge caches; remove now unnecesary loop.
1399 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1400 (update_all_callee_keys): Likewise.
1401 (inline_small_functions): Sanity check cache; update code
1404 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1406 PR rtl-optimization/47612
1407 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1408 as the last insn of the sequence to be moved.
1410 2011-05-04 Tobias Burnus <burnus@net-b.de>
1413 * doc/invoke.texi (Ofast): Document that it
1414 enables Fortran's -fno-protect-parens.
1416 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1418 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1420 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1422 * stor-layout.c (variable_size): Do not issue errors.
1424 2011-05-04 Richard Guenther <rguenther@suse.de>
1426 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1427 for array-ref indices.
1428 (tree_coverage_counter_addr): Likewise.
1429 (build_fn_info_type): Use size_int for index types.
1430 (build_gcov_info): Likewise.
1432 2011-05-04 Richard Guenther <rguenther@suse.de>
1434 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1436 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1437 for constructor indices.
1438 (push_init_level): Likewise.
1440 2011-05-04 Richard Guenther <rguenther@suse.de>
1442 * explow.c (promote_mode): Move variable declarations before code.
1444 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1446 * tree.h (build_function_type_array): Declare.
1447 (build_varargs_function_type_array): Declare.
1448 (build_function_type_vec, build_varargs_function_type_vec): Define.
1449 * tree.c (build_function_type_array_1): New function.
1450 (build_function_type_array): New function.
1451 (build_varargs_function_type_array): New function.
1453 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1455 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1456 before setting STMT_VINFO_TYPE.
1458 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1460 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1461 instead of spu_pass_by_reference.
1463 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1465 * calls.c (emit_library_call_value_1): Invoke
1466 promote_function_mode hook on libcall arguments.
1467 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1468 argument being NULL.
1469 * targhooks.c (default_promote_function_mode): Lisewise.
1470 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1471 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1473 * doc/tm.texi: Document that TYPE argument might be NULL.
1475 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1477 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1479 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1482 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1484 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1486 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1487 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1489 * mips-tfile.c: ... here.
1490 Don't include coretypes.h, tm.h, filenames.h.
1491 (saber_stop): Remove definition and all calls.
1492 [__SABER__]: Remove.
1493 (__LINE__): Remove default.
1494 (Size_t, Ptrdiff_t): Remove definitions.
1495 Replace by size_t, ptrdiff_t.
1496 [!MIPS_DEBUGGING_INFO]: Remove.
1497 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1498 (progname): Add const.
1500 Replace all uses by static.
1501 (ALIGN_SYMTABLE_OFFSET): Remove default.
1502 * mips-tdump.c: Don't include coretypes.h, tm.h.
1503 Remove !MIPS_IS_STAB guard.
1504 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1505 $(TM_H), filenames.h dependencies.
1506 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1508 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1511 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1512 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1514 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1517 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1518 account and save/restore RETS.
1519 (PROFILE_BEFORE_PROLOGUE): Define.
1520 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1521 the push insn to use predecrement.
1523 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1526 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1528 2011-05-04 Nick Clifton <nickc@redhat.com>
1530 * config/mn10300/mn10300.c: Include cfgloop.h.
1532 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1533 Lcc or a FLcc insn into the instruction stream.
1534 (mn10300_block_contains_call): New function. Returns true if the
1535 given basic block contains a CALL insn.
1536 (mn10300_loop_contains_call_insn): New function. Returns true if
1537 the given loop contains a CALL insn.
1538 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1539 to use the SETLB and Lcc or FLcc insns.
1540 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1541 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1542 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1543 disable the SETLB optimization.
1544 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1545 __SETLB__ or __NO_SETLB__.
1546 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1547 (movsf_internal): Handle MDR register.
1548 (cmpsi): Make visible.
1549 (setlb): New pattern.
1551 (FLcc): New pattern.
1553 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1556 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1557 for reg<->xmm moves.
1558 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1559 (vec_concatv2di_rex64_sse): Ditto.
1560 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1561 (*vec_extractv2di_1_rex64): Ditto.
1564 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1566 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1568 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1570 2011-05-04 Richard Guenther <rguenther@suse.de>
1572 * tree.h (int_const_binop): Remove notrunc argument.
1573 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1574 create integer constants that are properly truncated.
1575 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1576 (const_binop): Remove zero notrunc argument to int_const_binop.
1577 (size_binop_loc): Likewise.
1578 (fold_div_compare): Likewise.
1579 (maybe_canonicalize_comparison_1): Likewise.
1580 (fold_comparison): Likewise.
1581 (fold_binary_loc): Likewise.
1582 (multiple_of_p): Likewise.
1583 * expr.c (store_constructor): Likewise.
1584 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1585 (maybe_fold_stmt_addition): Likewise.
1586 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1587 * stor-layout.c (layout_type): Likewise.
1588 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1589 * tree-sra.c (build_ref_for_offset): Likewise.
1590 (build_user_friendly_ref_for_offset): Likewise.
1591 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1592 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1593 * tree-ssa-loop-niter.c (inverse): Likewise.
1594 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1595 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1596 * tree-switch-conversion.c (check_range): Likewise.
1597 (build_constructors): Likewise.
1598 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1599 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1600 (extract_range_from_assert): Likewise.
1601 (vrp_int_const_binop): Likewise.
1602 (extract_range_from_binary_expr): Likewise.
1603 (extract_range_from_unary_expr): Likewise.
1604 (check_array_ref): Likewise.
1605 (find_case_label_range): Likewise.
1606 (simplify_div_or_mod_using_ranges): Likewise.
1607 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1608 comparing case labels for merging.
1610 2011-05-03 Mark Wielaard <mjw@redhat.com>
1612 * dwarf2out.c (debug_str_hash_forced): Removed.
1613 (gen_label_for_indirect_string): Removed.
1614 (get_debug_string_label): Removed.
1615 (AT_string_form): Generate label directly.
1616 (output_indirect_string): Test indirect_string_node for
1617 DW_FORM_strp instead of checking label and refcount.
1618 (prune_indirect_string): Removed.
1619 (prune_unused_types): Don't check debug_str_hash_forced or
1620 call prune_indirect_string.
1622 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1625 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1627 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1631 * combine.c (try_combine): Skip debug insns at m_split tests.
1633 2011-04-26 Mark Wielaard <mjw@redhat.com>
1636 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1637 when info_section_emitted.
1639 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1641 * config/mips/mips-opts.h: New.
1642 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1644 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1645 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1646 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1648 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1650 (mips_abi, mips_code_readable): Don't declare.
1651 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1652 (mabi=): Use Enum and Var.
1653 (mips_abi): New Enum and EnumValue entries.
1654 (mcode-readable=): Use Enum and Var.
1655 (mips_code_readable_setting): New Enum and EnumValue entries.
1656 (mr10k-cache-barrier=): Use Enum and Var.
1657 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1659 2011-05-03 Jan Hubicka <jh@suse.cz>
1661 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1662 replace hash by pointer map.
1663 (cgraph_node_set_element_def, cgraph_node_set_element,
1664 const_cgraph_node_set_element, varpool_node_set_element_def,
1665 varpool_node_set_element, const_varpool_node_set_element): Remove.
1666 (free_cgraph_node_set, free_varpool_node_set): New function.
1667 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1668 * tree-emutls.c: Free varpool node set.
1669 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1670 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1671 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1672 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1673 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1674 Move here from ipa.c; implement using pointer_map
1675 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1676 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1677 debug_cgraph_node_set, varpool_node_set_new,
1678 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1679 dump_varpool_node_set, debug_varpool_node_set):
1680 Move to ipa-uitls.c.
1681 * passes.c (ipa_write_summaries): Update.
1683 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1685 From Mike Frysinger:
1686 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1687 bf542/bf544/bf547/bf548/bf549.
1689 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1691 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1693 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1696 * config/bfin/bfin.md (MOVCC): New mode_macro.
1697 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1698 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1699 comments from generated assembly.
1701 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1704 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1705 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1706 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1707 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1708 * config/bfin/lib1funcs.asm (___muldi3): New function.
1710 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1712 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1713 build_function_type_list instead of build_function_type.
1714 Rearrange initialization of `args' to do so.
1716 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1718 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1719 instead of build_function_type.
1721 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1723 * config/rs6000/rs6000.c (spe_init_builtins): Call
1724 build_function_type_list instead of build_function_type.
1725 (paired_init_builtins, altivec_init_builtins): Likewise.
1726 (builtin_function_type): Likewise.
1728 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1730 * config/sh/sh.c (sh_media_init_builtins): Call
1731 build_function_type_list instead of build_function_type.
1733 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1735 * config/sparc/sparc.c (sparc_file_end): Call
1736 build_function_type_list instead of build_function_type.
1738 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1740 * config/alpha/alpha.c (alpha_init_builtins): Call
1741 build_function_type_list instead of build_function_type.
1743 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1745 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1746 build_function_type_list instead of build_function_type.
1748 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1750 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1751 build_function_type_list instead of build_function_type.
1752 Delete `endlink' variable.
1754 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1756 * config/avr/avr.c (avr_init_builtins): Call
1757 build_function_type_list instead of build_function_type.
1759 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1761 * config/picochip/picochip.c (picochip_init_builtins): Call
1762 build_function_type_list instead of build_function_type.
1763 Delete `endlink' variable.
1765 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1767 * config/bfin/bfin.c (bfin_init_builtins): Call
1768 build_function_type_list instead of build_function_type.
1770 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1773 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1774 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1776 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1779 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1780 libbffastfp overrides libgcc when -mfast-fp.
1782 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1784 Originally from Bernd Schmidt
1785 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1786 * config/bfin/bfin.c (override_options): Test it and error if
1789 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1791 Originally From Bernd Schmidt
1792 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1795 2011-05-03 Jeff Law <law@redhat.com>
1797 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1798 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1799 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1800 than accessing AUX field directly. Free the AUX field before
1802 (thread_block, thread_through_loop_header): Likewise.
1803 (thread_single_edge, mark_threaded_blocks): Likewise.
1804 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1805 (register_jump_thread): Do not attempt to thread to a NULL edge.
1807 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1809 * function.c (init_function_start): Call decide_function_section.
1810 * varasm.c (decide_function_section): New function.
1811 (assemble_start_function): When not using
1812 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1813 or first_function_block_is_cold.
1814 * rtl.h (decide_function_section): Declare.
1816 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1817 Jakub Jelinek <jakub@redhat.com>
1820 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1821 only succeed if req_mode is the same as set_mode.
1823 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1825 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1826 * genemit.c (gen_exp): Handle RETURN.
1827 * emit-rtl.c (verify_rtx_sharing): Likewise.
1828 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1829 * rtl.c (copy_rtx): RETURN is shared.
1830 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1832 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1833 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1834 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1835 * config/cris/cris.c (cris_expand_return): Likewise.
1836 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1837 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1838 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1839 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1840 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1842 * config/v850/v850.c (expand_epilogue): Likewise.
1843 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1844 * config/arm/arm.md (epilogue): Likewise.
1845 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1846 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1847 variable to ret_reg.
1849 2011-05-03 Richard Guenther <rguenther@suse.de>
1852 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1853 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1854 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1856 2011-05-03 Richard Guenther <rguenther@suse.de>
1858 * c-decl.c (grokdeclarator): Instead of looking at
1859 TREE_OVERFLOW check if the constant fits in the index type.
1861 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1863 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1864 (vec_store_lanes<mode><mode>): Likewise.
1866 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1868 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1869 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1870 convert_optab_index values.
1871 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1872 * genopinit.c (optabs): Initialize the new optabs.
1873 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1874 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1875 (expand_STORE_LANES): New functions.
1876 * tree.h (build_array_type_nelts): Declare.
1877 * tree.c (build_array_type_nelts): New function.
1878 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1879 (vect_model_load_cost): Likewise.
1880 (vect_store_lanes_supported, vect_load_lanes_supported)
1881 (vect_record_strided_load_vectors): Declare.
1882 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1883 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1884 (vect_transform_strided_load): Split out statement recording into...
1885 (vect_record_strided_load_vectors): ...this new function.
1886 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1887 (write_vector_array, create_array_ref): New functions.
1888 (vect_model_store_cost): Add store_lanes_p argument.
1889 (vect_model_load_cost): Add load_lanes_p argument.
1890 (vectorizable_store): Try to use store-lanes functions for
1892 (vectorizable_load): Likewise load-lanes and loads.
1893 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1894 to vect_model_store_cost.
1895 (vect_build_slp_tree): Likewise vect_model_load_cost.
1897 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1899 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1900 * hooks.c (hook_bool_mode_uhwi_false): New function.
1901 * target.def (array_mode_supported_p): New hook.
1902 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1903 * doc/tm.texi: Regenerate.
1904 * stor-layout.c (mode_for_array): New function.
1905 (layout_type): Use it.
1906 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1907 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1909 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1912 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1913 for -fstack-check if the size to allocate is negative.
1915 2011-05-02 Lawrence Crowl <crowl@google.com>
1917 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1918 (timevar_cond_start): New for starting a timer only when it is not
1920 (timevar_cond_stop): New for stopping a timer when it was not already
1923 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1924 (timevar_cond_start): New as above.
1925 (timevar_cond_stop): New as above.
1927 * timevar.def: Add start/stop timers for compiler phases,
1928 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1929 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1930 and TV_PHASE_FINALIZE.
1931 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1932 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1933 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1934 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1935 Make unused TV_OVERLOAD into a start/stop timer.
1937 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1938 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1939 to indicate that they are start/stop timers.
1941 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1942 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1943 Move initialization to do_compile.
1944 (do_compile): Add initialization from above.
1945 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1947 * c-decl.c (c_write_global_declarations): Add start/stop of
1948 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1950 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1951 or TV_PARSE_INLINE, as appropriate.
1952 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1953 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1955 2011-05-02 Jason Merrill <jason@redhat.com>
1958 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1960 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1963 * c-decl.c (finish_decl): Only create a composite if the types are
1966 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1968 * config/fr30/fr30-protos.h (Mmode): Don't define.
1969 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1970 definition where used.
1971 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1972 define. Expand definitions where used.
1973 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1974 Expand definitions where used.
1975 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1976 rx_function_arg, rx_function_arg_advance,
1977 rx_function_arg_boundary): Expand definitions of those macros.
1978 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1979 definition where used.
1981 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1983 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1985 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1986 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1987 with *movv2sf_internal_rex64_avx.
1988 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1989 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1990 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1991 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1992 "vex" in "prefix" attribute calculation.
1993 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1995 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1998 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1999 inputs match the output.
2001 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2004 * config/m68k/m68k.c (m68k_expand_prologue): Set
2005 current_function_static_stack_size.
2007 2011-05-02 Jan Hubicka <jh@suse.cz>
2009 * lto-streamer.c (lto_streamer_cache_insert_1,
2010 lto_streamer_cache_lookup, lto_streamer_cache_create,
2011 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2012 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2014 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2016 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2017 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2018 config/m68k/t-opts: New files.
2019 * config/m68k/m68k-tables.opt: New file (generated).
2020 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2021 extra_options and m68k/t-opts to tmake_file.
2022 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2023 (all_isas): Initialize using m68k-isas.def.
2024 (all_microarchs): Initialize using m68k-microarchs.def.
2025 (m68k_find_selection): Remove.
2026 (m68k_handle_option): Don't assert that global structures are in
2027 use. Use error_at. Access variables via opts pointer. Don't
2028 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2029 directly for -m68020-40 and -m68020-60.
2030 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2031 m68k_tune_entry here.
2032 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2034 (m68k_library_id_string): Remove declaration.
2035 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2036 (m68k_library_id_string): New Variable.
2037 (march=, mcpu=, mtune=): Use Enum and Var.
2039 2011-05-02 Richard Guenther <rguenther@suse.de>
2041 * varasm.c (output_constructor_regular_field): Compute zero-based
2042 index with double-ints. Make sure to ICE instead of producing
2044 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2045 in asserts. Properly use a signed type.
2047 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2049 * config/i386/sse.md (V): New mode iterator.
2050 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2052 (V_256): Rename from AVX256MODE.
2053 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2054 condition to all users.
2056 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2057 condition to all users.
2058 (VF_128): Make V4SF mode unconditional.
2059 (VF_256): Rename from AVX256MODEF2P.
2060 (VI4F_128): Rename from SSEMODE4S.
2061 (VI8F_128): Rename from SSEMODE2D.
2062 (VI4F_256): Rename from AVX256MODE8P.
2063 (VI8F_256): Rename from AVX256MODE4P.
2064 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2065 (ssescalarmodesuffix): Remove SF and DF modes.
2066 (SSEMODE124): Remove.
2067 (SSEMODE1248): Ditto.
2068 (SSEMODEF2P): Ditto.
2069 (AVXMODEF2P): Ditto.
2070 (AVXMODEFDP): Ditto.
2071 (AVXMODEFSP): Ditto.
2072 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2074 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2076 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2077 xop_pcmov_<mode>256. Use V mode iterator.
2079 Adjust RTX patterns globally for renamed mode attributes.
2081 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2083 * haifa-sched.c (sched_emit_insn): Emit insn before first
2084 non-scheduled insn. Inform back-end about new insn. Add
2085 new insn to scheduled_insns list.
2087 2011-05-02 Richard Guenther <rguenther@suse.de>
2089 PR tree-optimization/48822
2090 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2091 (process_scc): Indicate which iteration we start.
2093 2011-05-02 Jan Hubicka <jh@suse.cz>
2095 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2096 (lto_section_overrun): New.
2097 * lto-section-out.c (append_block): Rename to ...
2098 (lto_append_block): ... this one; export.
2099 (lto_output_1_stream): Move lto lto-streamer.h
2100 (lto_output_data_stream): Update.
2101 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2102 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2105 2011-05-02 Richard Guenther <rguenther@suse.de>
2107 * tree.c (tree_code_counts): New global array.
2108 (record_node_allocation_statistics): Count individual tree codes.
2109 (dump_tree_statistics): Dump individual code stats.
2111 2011-05-01 Jan Hubicka <jh@suse.cz>
2113 * ipa-inline.c (caller_growth_limits): Fix thinko when
2114 looking for largest stack frame.
2115 * ipa-inline.h (dump_inline_summary): Declare.
2116 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2118 (dump_inline_summary): Export.
2119 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2121 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2123 * reginfo.c (memory_move_cost): Change rclass argument type form
2124 'enum reg_class' to reg_class_t.
2125 * reload.h (memory_move_cost): Update prototype.
2126 * postreload.c reload_cse_simplify_set): Change type dclass var to
2128 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2130 (ira_allocate_and_set_costs): Change aclass argument type form
2131 'enum reg_class' to reg_class_t.
2132 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2133 Change aclass argument type to reg_class_t.
2134 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2136 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2137 memory_move_cost call.
2139 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2140 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2141 Change type tmp var to reg_class_t.
2143 2011-04-30 Jan Hubicka <jh@suse.cz>
2145 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2146 inlining into function with flatten attribute.
2147 (want_inline_small_function_p): Be more realistic about inlining
2148 cold calls where callee size grows.
2150 2011-04-30 Jan Hubicka <jh@suse.cz>
2152 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2155 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2157 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2158 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2159 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2160 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2161 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2162 (print_operand): Rename to...
2163 (sparc_print_operand): ...this. Make static. Adjust
2164 sparc_print_operand function call.
2165 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2168 2011-04-30 Jan Hubicka <jh@suse.cz>
2171 * ipa-inline.c (early_inliner): Disable when doing late
2172 addition of function.
2174 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2176 * dwarf2out.c (get_address_mode): New inline.
2177 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2178 if not dwarf_strict emit
2179 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2180 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2181 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2182 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2183 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2184 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2185 mem_loc_descriptor callers.
2186 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2187 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2188 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2189 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2190 (base_types): New variable.
2191 (get_base_type_offset, calc_base_type_die_sizes,
2192 base_type_for_mode, mark_base_types, base_type_cmp,
2193 move_marked_base_types): New functions.
2194 (calc_die_sizes): Assert that die_offset is 0 or equal to
2196 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2197 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2198 callers. If not dwarf_strict, call mem_loc_descriptor even for
2199 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2200 (gen_subprogram_die): Don't give up on call site parameters
2201 with non-integral or large integral modes. Adjust
2202 mem_loc_descriptor callers.
2203 (prune_unused_types): Call prune_unused_types_mark on base_types
2205 (resolve_addr): Call mark_base_types.
2206 (dwarf2out_finish): Call move_marked_base_types.
2208 PR tree-optimization/48809
2209 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2211 (gen_inbound_check): Don't compute index_expr - range_min in utype
2212 again, instead reuse SSA_NAME initialized in build_arrays.
2213 Remove two useless gsi_for_stmt calls.
2215 2011-04-29 Jeff Law <law@redhat.com>
2217 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2219 2011-04-29 Martin Jambor <mjambor@suse.cz>
2221 * cgraph.h (cgraph_postorder): Remove declaration.
2222 * ipa-utils.h (ipa_free_postorder_info): Declare.
2223 (ipa_reverse_postorder): Likewise.
2224 * cgraphunit.c: Include ipa-utils.h.
2225 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2226 * ipa-inline.c: Include ipa-utils.h.
2227 (ipa_inline): Update call to ipa_reverse_postorder.
2228 * ipa-pure-const.c (propagate_pure_const): Update call to
2229 ipa_reduced_postorder and ipa_print_order. Call
2230 ipa_free_postorder_info to clean up.
2231 (propagate_nothrow): Likewise.
2232 * ipa-reference.c (propagate): Removed a useless call to
2233 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2234 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2235 * ipa.c: Include ipa-utils.h.
2236 (ipa_profile): Update call to ipa_reverse_postorder.
2237 (cgraph_postorder): Moved to...
2238 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2239 (ipa_utils_print_order): Renamed to ipa_print_order.
2240 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2242 (ipa_free_postorder_info): New function.
2243 * passes.c: Include ipa-utils.h.
2244 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2245 (ipa_write_summaries): Likewise.
2246 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2247 (cgraphunit.o): Likewise.
2249 (ipa-inline.o): Likewise.
2251 2011-04-29 Jan Hubicka <jh@suse.cz>
2253 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2254 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2255 * ipa-inline.h (clause_t): Turn into unsigned int.
2256 * ipa-inline-analysis.c (add_clause): Do more simplification.
2257 (and_predicates): Shortcut more cases.
2258 (predicates_equal_p): Move forward; check that clauses are properly
2260 (or_predicates): Shortcut more cases.
2261 (edge_execution_predicate): Rewrite as...
2262 (set_cond_stmt_execution_predicate): ... this function; handle
2263 __builtin_constant_p.
2264 (set_switch_stmt_execution_predicate): New .
2265 (compute_bb_predicates): New.
2266 (will_be_nonconstant_predicate): Update TODO.
2267 (estimate_function_body_sizes): Use compute_bb_predicates
2268 and free them later, always try to estimate if stmt is constant.
2269 (estimate_time_after_inlining, estimate_size_after_inlining):
2270 Gracefully handle optimized out edges.
2271 (read_predicate): Fix off by one error.
2273 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2275 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2277 2011-04-27 Xinliang David Li <davidxl@google.com>
2279 * tree-profile.c (init_ic_make_global_vars): Set
2280 tls attribute on ic vars.
2281 * coverage.c (coverage_end_function): Initialize
2282 function_list with zero.
2284 2011-04-29 Richard Guenther <rguenther@suse.de>
2286 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2287 for the type of the result.
2288 (fold_builtin_isascii): Likewise.
2289 (fold_builtin_toascii): Use integer_type_node where appropriate.
2290 (fold_builtin_logb): Likewise.
2291 (fold_builtin_frexp): Likewise.
2292 (fold_builtin_strstr): Likewise.
2293 (fold_builtin_strpbrk): Likewise.
2294 (fold_builtin_fputs): Likewise.
2295 (fold_builtin_sprintf): Likewise.
2296 (fold_builtin_snprintf): Likewise.
2297 (fold_builtin_printf): Likewise.
2298 (do_mpfr_remquo): Use a proper type for the assigned constant.
2299 (do_mpfr_lgamma_r): Likewise.
2300 * dwarf2out.c (resolve_one_addr): Use size_int.
2301 * except.c (init_eh): Likewise.
2302 (assign_filter_values): Use integer_type_node for filter values.
2303 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2305 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2306 for EH region numbers.
2307 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2308 for the shift amount.
2310 2011-04-29 Richard Guenther <rguenther@suse.de>
2312 * expr.h (expand_shift): Rename to ...
2313 (expand_variable_shift): ... this.
2314 (expand_shift): Take a constant shift amount.
2315 * expmed.c (expand_shift): Rename to ...
2316 (expand_variable_shift): ... this.
2317 (expand_shift): New wrapper around expand_variable_shift.
2318 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2319 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2320 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2321 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2322 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2323 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2324 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2325 emit_store_flag_1, emit_store_flag): Likewise.
2326 * builtins.c (expand_builtin_signbit): Likewise.
2327 * calls.c (load_register_parameters): Likewise.
2328 * function.c (assign_parm_setup_block): Likewise.
2329 * lower-subreg.c (resolve_shift_zext): Likewise.
2330 * optabs.c (widen_bswap, expand_abs_nojump,
2331 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2332 * spu/spu.c (spu_expand_extv): Likewise.
2333 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2335 2011-04-29 Richard Guenther <rguenther@suse.de>
2337 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2338 for the remapped region number.
2339 * predict.c (build_predict_expr): Use integer_type_node for the
2341 * fold-const.c (fold_binary_loc): Use integer_type_node for
2342 the shift amount. Use a proper type for the PLUS_EXPR operand.
2344 2011-04-29 Michael Matz <matz@suse.de>
2346 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2347 other trees that just builtins.
2348 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2350 2011-04-29 Richard Guenther <rguenther@suse.de>
2352 * tree-nested.c (get_trampoline_type): Use size_int.
2353 (get_nl_goto_field): Likewise.
2354 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2356 (lower_eh_constructs_2): Likewise.
2357 (lower_resx): Likewise.
2358 (lower_eh_dispatch): Likewise.
2359 * tree-mudflap.c (mf_build_string): Use size_int.
2360 (mudflap_register_call): Use integer_type_node for the flag.
2361 (mudflap_enqueue_constant): Use size_int.
2362 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2363 instead of rebuilding it.
2365 2011-04-29 Richard Guenther <rguenther@suse.de>
2367 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2368 Handle OBJ_TYPE_REF.
2369 (find_func_aliases_for_call): Use it more consistently.
2371 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2373 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2374 (rank_for_schedule): Use it.
2375 (schedule_block): Set it.
2377 2011-04-28 David Li <davidxl@google.com>
2379 * tree.c (crc32_string): Use crc32_byte.
2380 (crc32_byte): New function.
2381 * tree.h (crc32_byte): New function.
2382 * gcov.c (read_graph_file): Handle new cfg_cksum.
2383 (read_count_file): Ditto.
2384 * profile.c (instrument_values): Ditto.
2385 (get_exec_counts): Ditto.
2386 (read_profile_edge_counts): Ditto.
2387 (compute_branch_probabilities): Ditto.
2388 (compute_value_histograms): Ditto.
2389 (branch_prob): Ditto.
2390 (end_branch_prob): Ditto.
2391 * coverage.c (read_counts_file): Ditto.
2392 (get_coverage_counts): Ditto.
2393 (tree_coverage_counter_addr): Ditto.
2394 (coverage_checksum_string): Ditto.
2395 (coverage_begin_output): Ditto.
2396 (coverage_end_function): Ditto.
2397 (build_fn_info_type): Ditto.
2398 (build_fn_info_value): Ditto.
2399 * libgcov.c (gcov_exit): Ditto.
2400 * gcov-dump.c (tag_function): Ditto.
2401 (compute_checksum): Remove.
2403 2011-04-29 Alan Modra <amodra@gmail.com>
2405 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2406 unspec plus offset. Tidy macho code.
2408 2011-04-29 Martin Jambor <mjambor@suse.cz>
2410 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2411 node instead of a decl. Update all callers.
2412 * cgraph.h: Update declaration.
2414 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2416 PR tree-optimization/48765
2417 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2418 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2419 to indicate if loop aware SLP is being used. Scan the statements
2420 and update the vectorization factor according to the type of
2421 vectorization before statement analysis.
2422 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2423 pass it to vect_analyze_loop_operations.
2424 (vectorizable_reduction): Set number of copies to 1 in case of pure
2426 * tree-vect-stmts.c (vectorizable_conversion,
2427 vectorizable_assignment, vectorizable_shift,
2428 vectorizable_operation, vectorizable_type_demotion,
2429 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2431 (vectorizable_condition): Move the check that it is not SLP
2432 vectorization before the number of copies check.
2433 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2434 to vectorize the loop using SLP.
2436 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2439 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2442 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2444 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2445 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2446 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2447 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2448 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2450 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2451 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2452 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2453 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2454 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2455 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2457 * config/i386/linux.h (REG_NAME): Don't define.
2458 * config/i386/linux64.h (REG_NAME): Don't define.
2459 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2460 Undefine before defining.
2462 2011-04-28 Jan Hubicka <jh@suse.cz>
2464 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2465 nonconstant_names array.
2466 (estimate_function_body_sizes): Build nonconstant_names array; handle
2467 BUILT_IN_CONSTANT_P.
2469 2011-04-28 Richard Guenther <rguenther@suse.de>
2473 2011-04-28 Richard Guenther <rguenther@suse.de>
2475 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2476 as late as possible.
2478 2011-04-28 Richard Guenther <rguenther@suse.de>
2480 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2481 (debug_constraint): Do it here.
2482 (dump_constraints): And here.
2483 (rewrite_constraints): And here.
2484 (dump_constraint_edge): Remove.
2485 (dump_constraint_graph): Rewrite to produce DOT output.
2486 (solve_constraints): Build succ graph as late as possible.
2487 Dump constraint graphs before and after solving.
2489 2011-04-28 Richard Guenther <rguenther@suse.de>
2491 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2492 New function split out from ...
2493 (find_func_aliases): ... here. Call it.
2494 (find_func_aliases_for_call): Likewise.
2496 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2498 * internal-fn.h (internal_fn_name_array): Declare.
2499 (internal_fn_flags_array): Likewise.
2501 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2503 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2504 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2506 (ssemodefsuffix): Remove.
2507 (ssevecmodesuffix): New mode attribute.
2508 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2509 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2510 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2511 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2512 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2513 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2514 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2515 ssemodesuffix mode attribute.
2516 (float splitters): Use ssevecmodesuffix mode attribute.
2517 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2518 (sseinsmode): Rename from avxvecmode.
2519 (avxsizesuffix): Rename from avxmodesuffix.
2520 (sseintvecmode): Rename from avxpermvecmode.
2521 (ssedoublevecmode): Rename from ssedoublesizemode.
2522 (ssehalfvecmode): Rename from avxhalfvecmode.
2523 (ssescalarmode): Rename from avxscalarmode.
2524 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2525 templates for ssemodesuffix mode attribute.
2526 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2529 Adjust RTX patterns globally for renamed mode attributes.
2531 2011-04-27 Jan Hubcika <jh@suse.cz>
2533 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2534 * ipa-inline-analysis.c: Include alloc-pool.h.
2535 (edge_predicate_pool): New.
2536 (trye_predicate_p): New function
2537 (false_predicate_p): New function.
2538 (add_clause): Sanity check that false clauses are "optimized";
2539 never add clauses to predicate that is already known to be false.
2540 (and_predicate): Use flase_predicate_p.
2541 (evaulate_predicate): Rename to ...
2542 (evaluate_predicate): ... this one; update all callers; assert
2543 that false is not listed among possible truths.
2544 (dump_predicate): Use true_predicate_p.
2545 (account_size_time): Use false_predicate_p.
2546 (evaulate_conditions_for_edge): Rename to ...
2547 (evaluate_conditions_for_edge) ... this one.
2548 (edge_set_predicate): New function.
2549 (inline_edge_duplication_hook): Duplicate edge predicates.
2550 (inline_edge_removal_hook): Free edge predicates.
2551 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2552 (dump_inline_summary): Update.
2553 (estimate_function_body_sizes): Set edge predicates.
2554 (estimate_calls_size_and_time): Handle predicates.
2555 (estimate_callee_size_and_time): Update.
2556 (remap_predicate): Add toplev_predicate; update comment.
2557 (remap_edge_predicates): New function.
2558 (inline_merge_summary): Compute toplev predicate; update.
2559 (read_predicate): New function.
2560 (read_inline_edge_summary): Use it.
2561 (inline_read_section): Likewise.
2562 (write_predicate): New function.
2563 (write_inline_edge_summary): Use it.
2564 (inline_write_summary): Likewise.
2565 (inline_free_summary): Free alloc pool and edge summary vec.
2567 2011-04-27 Richard Guenther <rguenther@suse.de>
2569 * tree-ssa-structalias.c (changed_count): Remove.
2570 (changed): Use a bitmap.
2571 (unify_nodes): Adjust.
2572 (do_sd_constraint): Likewise.
2573 (do_ds_constraint): Likewise.
2574 (do_complex_constraint): Likewise.
2575 (solve_graph): Likewise.
2577 2011-04-27 Jan Hubicka <jh@suse.cz>
2579 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2581 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2583 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2584 (avx_vperm2f128_*_operand): Ditto.
2585 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2586 Use avx_vpermilp_parallel in insn condition.
2587 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2588 Use avx_vperm2f128_parallel in insn condition.
2590 2011-04-27 Richard Guenther <rguenther@suse.de>
2592 * Makefile.in (tree-ssa-structalias.o): Remove
2593 gt-tree-ssa-structalias.h dependency.
2594 (GTFILES): Remove tree-ssa-structalias.c.
2595 * tree.c (allocate_decl_uid): New function.
2596 (make_node_stat): Use it.
2597 (copy_node_stat): Likewise.
2598 * tree.h (allocate_decl_uid): Declare.
2599 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2600 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2601 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2602 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2603 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2604 (struct heapvar_map): Likewise.
2605 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2606 heapvar_insert): Likewise.
2607 (make_heapvar_for): Rename to ...
2608 (make_heapvar): ... this. Simplify.
2609 (fake_var_decl_obstack): New global var.
2610 (build_fake_var_decl): New function.
2611 (make_constraint_from_heapvar): Adjust.
2612 (handle_lhs_call): Likewise.
2613 (create_function_info_for): Likewise.
2614 (intra_create_variable_infos): Likewise.
2615 (init_alias_vars): Allocate fake_var_decl_obstack.
2616 (init_alias_heapvars, delete_alias_heapvars): Remove.
2617 (compute_points_to_sets): Do not call init_alias_heapvars.
2618 (ipa_pta_execute): Likewise.
2619 (delete_points_to_sets): Free fake_var_decl_obstack.
2621 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2623 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2624 (si_from_UTItype, si_to_UTItype): New functions.
2625 (__udivmodti4): Use them to implement type-punning.
2626 * config/spu/multi3.c (union qword_TItype): New data type.
2627 (si_from_TItype, si_to_TItype): New functions.
2628 (__multi3): Use them to implement type-punning.
2630 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2632 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2634 2011-04-27 Jan Hubicka <jh@suse.cz>
2636 * ipa-prop.c (function_insertion_hook_holder): New holder.
2637 (ipa_add_new_function): New function.
2638 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2639 Register/deregister holder.
2641 2011-04-27 Richard Guenther <rguenther@suse.de>
2643 PR tree-optimization/48772
2644 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2646 2011-04-27 Richard Guenther <rguenther@suse.de>
2648 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2649 TARGET_MEM_REF handling.
2651 2011-04-27 Nick Clifton <nickc@redhat.com>
2653 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2654 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2655 (REG_CLASS_NAMES): Likewise.
2656 (REG_CLASS_CONTENTS): Likewise.
2657 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2658 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2659 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2660 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2661 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2662 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2663 duplicate register classes.
2664 (frv_class_likely_spilled_p): Likewise.
2665 (frv_register_move_cost): Likewise.
2667 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2668 end of the regno_reg_class array.
2670 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2673 * c-typeck.c (build_binary_op): Don't wrap arguments if
2674 int_operands is true.
2676 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2679 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2680 targetm.calls.must_pass_in_stack for void type.
2682 2011-04-26 Jan Hubicka <jh@suse.cz>
2684 * cgraphbuild.c (build_cgraph_edges): Update call
2685 of cgraph_create_edge and cgraph_create_indirect_edge.
2686 * cgraph.c (cgraph_create_edge_including_clones,
2687 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2688 cgraph_update_edges_for_call_stmt_node): Do not take nest
2689 argument; do not initialize call_stmt_size/time.
2690 (dump_cgraph_node): Do not dump nest.
2691 (cgraph_clone_edge): Do not take loop_nest argument;
2692 do not propagate it; do not clone call_stmt_size/time.
2693 (cgraph_clone_node): Likewise.
2694 (cgraph_create_virtual_clone): Update.
2695 * cgraph.h (struct cgraph_edge): Remove
2696 call_stmt_size/call_stmt_time/loop_nest.
2697 (cgraph_create_edge, cgraph_create_indirect_edge,
2698 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2700 * tree-emutls.c (gen_emutls_addr): Update.
2701 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2702 loop_nest; handle indirect calls, too.
2703 (clone_inlined_nodes): Do not care about updating inline summaries.
2704 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2705 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2706 stream call_stmt_size/call_stmt_time/loop_nest.
2707 * ipa-inline.c (edge_badness): Update.
2708 (ipa_inline): dump summaries after inlining.
2709 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2711 (inline_edge_summary): New function.
2712 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2713 (inline_edge_removal_hook): Handle edge summaries.
2714 (inline_edge_duplication_hook): New hook.
2715 (inline_summary_alloc): Alloc hooks.
2716 (initialize_growth_caches): Do not register removal hooks.
2717 (free_growth_caches); Do not free removal hook.
2718 (dump_inline_edge_summary): New function.
2719 (dump_inline_summary): Use it.
2720 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2721 (inline_update_callee_summaries): New function.
2722 (inline_merge_summary): Use it.
2723 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2724 (read_inline_edge_summary): New function.
2725 (inline_read_section): Use it.
2726 (write_inline_edge_summary): New function.
2727 (inline_write_summary): Use it.
2728 (inline_free_summary): Free edge new holders.
2729 * tree-inline.c (copy_bb): Update.
2731 2011-04-26 Jason Merrill <jason@redhat.com>
2733 * tree-eh.c (lower_try_finally_switch): Create the label along with
2734 the CASE_LABEL_EXPR.
2736 2011-04-26 David S. Miller <davem@davemloft.net>
2737 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2739 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2740 * configure: Regenerate.
2742 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2745 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2747 (VEC_reduc): New code iterator and splitters for vector reduction.
2748 (VEC_reduc_name): Ditto.
2749 (VEC_reduc_rtx): Ditto.
2750 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2751 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2753 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2754 support for extracting SF on VSX.
2756 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2757 generating xscvspdp.
2758 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2759 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2760 double add, minimum, maximum vector reduction.
2761 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2762 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2763 optimize double vector reduction.
2764 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2766 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2768 * config/fr30/fr30.h (inhibit_libc): Don't define.
2769 * config/m32r/m32r-protos.h: Correct comment.
2770 * config/v850/v850.h (GHS_default_section_names,
2771 GHS_current_section_names): Use tree, not union tree_node *.
2773 2011-04-26 Xinliang David Li <davidxl@google.com>
2775 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2776 * c-family/c-opts.c (c_common_handle_option): Set
2777 warn_maybe_uninitialized.
2778 * opts.c (common_handle_option): Ditto.
2779 * common.opt: New option.
2780 * tree-ssa.c (warn_uninit): Add one more parameter.
2781 (warn_uninitialized_var): Pass warning code.
2782 * tree-flow.h: Interface change.
2785 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2787 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2788 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2789 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2791 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2793 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2794 * config/mips/mips.opt (mmips-tfile): Remove.
2796 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2797 mips-tdump reference to ...
2798 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2799 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2800 reference by Tru64 UNIX.
2802 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2805 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2806 is error_mark_node, set value to NULL.
2808 PR tree-optimization/48734
2809 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2810 if return value from maybe_fold_*_comparsions isn't something
2811 the code is prepared to handle.
2813 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2815 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2817 (ext_QIreg_nomode_operands): Remove.
2818 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2822 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2824 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2826 2011-04-26 Richard Guenther <rguenther@suse.de>
2828 * c-typeck.c (build_unary_op): Do not expand array-refs via
2829 pointer arithmetic. Only adjust qualifiers for function types.
2831 2011-04-26 Richard Guenther <rguenther@suse.de>
2834 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2835 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2836 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2837 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2839 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2841 * doc/extend.texi: Document __underlying_type.
2843 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2845 * config/rs6000/titan.md (automata_option "progress"): Remove.
2847 2011-04-25 Jeff Law <law@redhat.com>
2849 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2851 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 * system.h (ENUM_BITFIELD): Remove.
2855 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2856 Eric Botcazou <ebotcazou@adacore.com>
2858 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2859 for STORE_FLAG_VALUE==-1 case.
2861 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2864 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2865 LEGITIMATE_PIC_OPERAND_P.
2867 2011-04-24 Jan Hubicka <jh@suse.cz>
2869 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2871 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2872 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2873 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2874 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2875 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2876 Sanity check predicate length.
2877 (remap_predicate): Likewise; sanity check jump functions.
2878 (inline_read_section, inline_write_summary): Sanity check
2881 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2884 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2885 __is_literal_type, and __is_trivial; update throughout about
2886 possibly cv-qualified void types.
2888 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2890 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2891 testsuite and make it version agnostic.
2893 2011-04-22 Jan Hubicka <jh@suse.cz>
2895 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2897 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2900 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2901 to VOID_TYPE even around MODIFY_EXPR.
2903 2011-04-22 Mike Stump <mikestump@comcast.net>
2905 * gensupport.c (read_md_rtx): Fix typo in comment.
2906 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2909 2011-04-22 Jan Hubicka <jh@suse.cz>
2911 * gengtype.c (open_base_files): Add ipa-inline.h include.
2912 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2913 ipa-prop.c; update all uses.
2914 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2915 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2916 merge summary of inlined function into former caller.
2917 * ipa-inline.c (max_benefit): Remove.
2918 (edge_badness): Compensate for removal of benefits.
2919 (update_caller_keys): Use
2920 reset_node_growth_cache/reset_edge_growth_cache.
2921 (update_callee_keys): Likewise.
2922 (update_all_callee_keys): Likewise.
2923 (inline_small_functions): Do not collect max_benefit; do not reset
2924 estimated_growth; call free_growth_caches and initialize_growth_caches.
2925 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2926 struct size_time_entry): New structures.
2927 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2928 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2929 and estimated_growth.
2930 (edge_growth_cache_entry): New structure.
2931 (node_growth_cache, edge_growth_cache): New global vars.
2932 (estimate_growth): Turn into inline.
2933 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2934 initialize_growth_caches, free_growth_caches): Declare.
2935 (estimate_edge_growth): Rewrite.
2936 (estimate_edge_time): Implement as inline cache lookup.
2937 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2939 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2940 (NUM_CONDITIONS): New constant.
2941 (predicate_conditions): New enum.
2942 (IS_NOT_CONSTANT): New constant.
2943 (edge_removal_hook_holder): New var.
2944 (node_growth_cache, edge_growth_cache): New global vars.
2945 (true_predicate, single_cond_predicate, false_predicate,
2946 not_inlined_predicate, add_condition, add_clause, and_predicates,
2947 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2948 dump_clause, dump_predicate, account_size_time,
2949 evaulate_conditions_for_edge): New functions.
2950 (inline_summary_alloc): Move to heap.
2951 (inline_node_removal_hook): Clear condition and entry vectors.
2952 (inline_edge_removal_hook): New function.
2953 (initialize_growth_caches, free_growth_caches): New function.
2954 (dump_inline_summary): Update.
2955 (edge_execution_predicate): New function.
2956 (will_be_nonconstant_predicate): New function.
2957 (estimate_function_body_sizes): Compute BB and constantness predicates.
2958 (compute_inline_parameters): Do not clear estimated_growth.
2959 (estimate_edge_size_and_time): New function.
2960 (estimate_calls_size_and_time): New function.
2961 (estimate_callee_size_and_time): New function.
2962 (remap_predicate): New function.
2963 (inline_merge_summary): New function.
2964 (do_estimate_edge_time): New function based on...
2965 (estimate_edge_time): ... this one.
2966 (do_estimate_edge_growth): New function.
2967 (do_estimate_growth): New function based on....
2968 (estimate_growth): ... this one.
2969 (inline_analyze_function): Analyze after deciding on jump functions.
2970 (inline_read_section): New function.
2971 (inline_read_summary): Use it.
2972 (inline_write_summary): Write all the new data.
2973 * ipa-prop.c (ipa_get_param_decl_index): Export.
2974 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2975 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2977 (ipa_get_lattice): Move here from ipa-cp.c
2978 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2979 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2980 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2981 cgraph_edge_inlinable_p): Remove.
2982 * cgraphunit.c: Include ipainline.h
2983 (cgraph_process_new_functions): Update call of
2984 compute_inline_parameters.
2986 2011-04-22 Richard Guenther <rguenther@suse.de>
2988 * tree.c (build_int_cst): Properly create canonicalized integer
2990 (build_int_cst_type): Remove scary comments.
2992 2011-04-22 Xinliang David Li <davidxl@google.com>
2994 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2995 by default when -Wno-error is not specified.
2996 * opts-global.c (decode_options): Remove call to
2997 control_warning_options.
2999 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3001 PR tree-optimization/48717
3002 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3003 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3005 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3007 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3008 definition where used.
3010 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3013 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3014 TREE_STATIC variables declared inside of some OpenMP construct.
3016 2011-04-22 Martin Jambor <mjambor@suse.cz>
3019 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3021 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3024 * c-typeck.c (pop_init_level): Do not warn about initializing
3027 2011-04-22 Alan Modra <amodra@gmail.com>
3029 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3030 when returning call_cookie.
3031 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3032 pointers, to functions with no more vector args than the current
3033 function, and some non-local calls for ABI_V4.
3034 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3035 sibcall_nonlocal_aix64): Combine to ..
3036 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3037 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3038 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3039 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3040 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3042 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3043 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3044 sibcall_value_symbolic_64): Delete.
3046 2011-04-21 Xinliang David Li <davidxl@google.com>
3048 * cgraph.h: Remove pid.
3049 * cgraph.c: Remove pid.
3050 * value-prof.c (init_node_map): New function.
3051 (del_node_map): New function.
3052 (find_func_by_funcdef_no): New function.
3053 (gimple_ic_transform): Call new function.
3054 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3055 * function.c (get_last_funcdef_no): New function.
3056 * function.h (get_last_funcdef_no): New function.
3057 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3058 to libgcov function.
3059 (tree-profiling): Call node map init and delete function.
3061 2011-04-21 Ian Lance Taylor <iant@google.com>
3063 * godump.c (go_format_type): Use exported Go name for anonymous
3066 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3068 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3069 Call builtin_function_type_list instead of builtin_function_type.
3070 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3072 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3074 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3075 build_function_type_list instead of build_function_type.
3076 Delete variable `endlink'.
3078 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3080 * config/s390/s390.c (s390_init_builtins): Call
3081 build_function_type_list instead of build_function_type.
3083 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3085 * config/ia64/ia64.c (ia64_init_builtins): Call
3086 build_function_type_list instead of builtin_function_type.
3088 2011-04-21 Easwaran Raman <eraman@google.com>
3090 * cfgexpand.c (stack_var): Remove OFFSET...
3091 (add_stack_var): ...and its reference here...
3092 (expand_stack_vars): ...and here.
3093 (stack_var_cmp): Sort by descending order of size.
3094 (partition_stack_vars): Change heuristic.
3095 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3096 (dump_stack_var_partition): Add newline after each partition.
3098 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3099 Jeff Law <law@redhat.com>
3101 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3102 * gengtype.c (matching_file_name_substitute): Likewise.
3104 2011-04-21 Richard Guenther <rguenther@suse.de>
3107 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3109 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3111 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3113 2011-04-21 Richard Guenther <rguenther@suse.de>
3115 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3118 2011-04-21 Richard Guenther <rguenther@suse.de>
3120 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3121 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3122 Use DECL_P, not SSA_VAR_P.
3123 (ptr_derefs_may_alias_p): Likewise.
3124 (ptr_deref_may_alias_ref_p_1): Likewise.
3125 (decl_refs_may_alias_p): Likewise.
3126 (refs_may_alias_p_1): Likewise.
3127 (ref_maybe_used_by_call_p_1): Likewise.
3128 (call_may_clobber_ref_p_1): Likewise.
3129 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3130 are either MEM_REF or TARGET_MEM_REF.
3131 (indirect_refs_may_alias_p): Likewise.
3132 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3133 for MEM_EXPR of indirect calls.
3135 2011-04-21 Tristan Gingold <gingold@adacore.com>
3137 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3138 (dst_file_info_struct): Remove flen field.
3139 (lookup_filename): Remove code that set flen field.
3141 2011-04-21 Tristan Gingold <gingold@adacore.com>
3143 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3145 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3148 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3149 vec_extract and vec_concat for non-SSE4_1 targets.
3151 2011-04-21 Richard Guenther <rguenther@suse.de>
3153 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3156 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3158 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3160 (FILE): Don't undefine.
3162 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3164 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3166 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3168 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3169 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3170 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3172 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3173 definitions where used.
3174 * config/microblaze/microblaze.h (struct microblaze_args): Use
3175 rtx, not struct rtx_def *.
3176 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3178 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3179 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3180 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3181 not struct rtx_def *.
3182 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3184 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3186 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3188 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3190 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3191 operand_equal_p to compare DR_BASE_ADDRESSes.
3192 (vect_check_interleaving): Likewise.
3194 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3197 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3198 for all Neon struct constants.
3200 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3202 * target.def (legitimate_constant_p): New hook.
3203 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3204 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3205 * doc/tm.texi: Regenerate.
3206 * hooks.h (hook_bool_mode_rtx_true): Declare.
3207 * hooks.c (hook_bool_mode_rtx_true): Define.
3208 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3209 * calls.c (precompute_register_parameters): Replace uses of
3210 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3211 (emit_library_call_value_1): Likewise.
3212 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3213 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3214 * ira-costs.c (scan_one_insn): Likewise.
3215 * recog.c (general_operand, immediate_operand): Likewise.
3216 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3217 * reload1.c (init_eliminable_invariants): Likewise.
3219 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3221 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3222 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3224 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3225 * config/alpha/predicates.md (input_operand): Update call to
3226 alpha_legitimate_constant_p.
3228 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3229 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3230 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3231 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3232 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3233 (arm_legitimate_constant_p): New functions.
3234 (arm_cannot_force_const_mem): Make static.
3236 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3238 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3239 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3240 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3241 instead of bfin_legitimate_constant_p.
3242 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3243 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3245 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3247 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3249 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3250 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3251 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3252 (frv_legitimate_constant_p): Make static. Add a mode argument.
3254 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3255 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3256 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3258 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3259 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3260 * config/i386/i386.c (legitimate_constant_p): Rename to...
3261 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3263 (ix86_cannot_force_const_mem): Update accordingly.
3264 (ix86_legitimate_address_p): Likewise.
3265 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3266 * config/i386/i386.md: Update commentary.
3268 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3269 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3270 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3271 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3273 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3275 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3276 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3277 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3278 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3280 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3281 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3282 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3284 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3285 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3286 (m32r_legitimate_constant_p): New function.
3288 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3289 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3290 LEGITIMATE_CONSTANT_P.
3291 (LEGITIMATE_CONSTANT_P): Delete.
3292 * config/m68k/m68k.c (m68k_expand_prologue): Call
3293 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3294 (m68k_legitimate_constant_p): New function.
3295 * config/m68k/m68k.md: Update comments.
3297 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3298 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3299 (mcore_legitimate_constant_p): New function.
3301 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3302 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3303 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3304 Add a mode argument.
3305 (mep_legitimate_address): Update accordingly.
3306 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3308 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3310 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3311 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3312 static. Check OP's mode for VOIDmode.
3313 (microblaze_legitimate_constant_p): New function.
3314 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3316 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3317 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3318 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3319 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3320 * config/mips/predicates.md: Update comments.
3322 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3323 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3324 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3325 (mmix_legitimate_constant_p): Make static, return a bool, and take
3327 (mmix_print_operand_address): Update accordingly.
3329 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3331 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3332 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3333 static. Add a mode argument.
3334 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3336 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3338 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3339 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3340 (pa_legitimate_constant_p): New function.
3342 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3344 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3345 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3346 (pdp11_legitimate_constant_p): New function.
3348 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3349 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3350 (rs6000_legitimate_constant_p): New function.
3352 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3353 (rx_legitimate_constant_p): ...this.
3354 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3355 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3356 (rx_legitimate_constant_p): ...this.
3357 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3358 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3360 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3361 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3362 * config/s390/s390.c (legitimate_constant_p): Rename to...
3363 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3364 and add a mode argument.
3365 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3367 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3369 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3370 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3371 (sh_legitimate_constant_p): New function.
3373 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3374 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3375 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3376 (legitimate_constant_p): Rename to...
3377 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3379 (constant_address_p): Update accordingly.
3381 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3382 argument and return a bool.
3383 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3384 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3385 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3386 (spu_rtx_costs): Update accordingly.
3387 * config/spu/predicates.md (vec_imm_operand): Likewise.
3389 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3391 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3392 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3393 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3395 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3396 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3397 * config/vax/vax.c (legitimate_constant_p): Likewise.
3399 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3400 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3401 (xtensa_legitimate_constant_p): New function.
3403 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3405 * target.def (cannot_force_const_mem): Add a mode argument.
3406 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3407 * doc/tm.texi: Regenerate.
3408 * hooks.h (hook_bool_mode_rtx_false): Declare.
3409 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3410 (hook_bool_mode_const_rtx_true): Likewise.
3411 (hook_bool_mode_rtx_false): New function.
3412 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3413 to be non-VOID. Update call to cannot_force_const_mem.
3414 (find_reloads): Update accordingly.
3415 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3416 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3418 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3419 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3420 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3421 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3422 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3423 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3424 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3425 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3426 (m68k_cannot_force_const_mem): ...this new function.
3427 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3429 (mips_const_insns, mips_legitimize_const_move): Update calls.
3430 (mips_secondary_reload_class): Likewise.
3431 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3432 (pa_cannot_force_const_mem): ...this new function.
3433 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3434 (rs6000_cannot_force_const_mem): ...this new function.
3435 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3437 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3438 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3440 (xtensa_cannot_force_const_mem): ...this new function.
3442 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3444 * config/mips/mips.c (mips16_build_function_stub): Call
3445 build_function_type_list instead of build_function_type.
3446 (mips16_build_call_stub): Likewise.
3448 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3450 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3451 instead of build_function_type.
3453 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3455 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3456 instead of build_function_type.
3458 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3461 * config/i386/i386.md (insv): Change operand 0 constraint to
3462 "register_operand". Change operand 1 and 2 constraint to
3463 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3464 * config/i386/sse.md (sse4_1_pinsrb): Export.
3465 (sse2_pinsrw): Ditto.
3466 (sse4_1_pinsrd): Ditto.
3467 (sse4_1_pinsrq): Ditto.
3468 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3469 * config/i386/i386.c (ix86_expand_pinsr): New.
3471 2011-04-20 Easwaran Raman <eraman@google.com>
3473 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3474 containing union type only with -fstrict-aliasing.
3476 2011-04-20 Jim Meyering <meyering@redhat.com>
3478 Remove useless if-before-free tests.
3479 * calls.c (expand_call, save_area): Likewise.
3480 * cfgcleanup.c (try_forward_edges): Likewise.
3481 * collect2.c (collect_execute): Likewise.
3482 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3483 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3484 * coverage.c (coverage_checksum_string): Likewise.
3485 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3486 * cselib.c (cselib_init): Likewise.
3487 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3488 (df_set_clean_cfg): Likewise.
3489 * function.c (free_after_compilation): Likewise.
3490 * gcc.c (do_spec_1, main): Likewise.
3491 * gcov.c (create_file_names): Likewise.
3492 * gensupport.c (identify_predicable_attribute): Likewise.
3493 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3494 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3495 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3496 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3497 * ipa-pure-const.c (local_pure_const): Likewise.
3498 * ipa-reference.c (propagate): Likewise.
3499 * ira-costs.c (free_ira_costs): Likewise.
3500 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3501 * matrix-reorg.c (mat_free): Likewise.
3502 * prefix.c (get_key_value): Likewise.
3503 * profile.c (compute_value_histograms): Likewise.
3504 * reload1.c (free_reg_equiv): Likewise.
3505 * sched-deps.c (free_deps): Likewise.
3506 * sel-sched-ir.c (fence_clear): Likewise.
3507 * sese.c (set_rename, if_region_set_false_region): Likewise.
3508 * tree-data-ref.c (free_rdg): Likewise.
3509 * tree-eh.c (lower_try_finally): Likewise.
3510 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3511 * tree-ssa-live.c (delete_var_map): Likewise.
3512 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3513 * tree-ssa-pre.c (phi_trans_add): Likewise.
3515 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3517 PR tree-optimization/48611
3518 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3519 beyond ERT_MUST_NOT_THROW region.
3521 2011-04-20 Catherine Moore <clm@codesourcery.com>
3523 * config/mips/mips.opt (mfix-24k): New.
3524 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3525 * config/mips/mips.md (length): Increase by 4 for stores if
3527 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3528 all noreorder if fixing 24K errata.
3529 * doc/invoke.texi: Document mfix-24k.
3531 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3533 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3534 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3536 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3538 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3539 (const_ok_for_op): ... to here.
3541 2011-04-20 Kai Tietz <ktietz@redhat.com>
3543 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3544 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3546 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3548 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3550 2011-04-20 Richard Guenther <rguenther@suse.de>
3552 PR tree-optimization/47892
3553 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3556 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3558 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3560 2011-04-20 Tristan Gingold <gingold@adacore.com>
3562 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3564 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3568 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3569 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3570 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3571 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3572 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3574 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3577 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3578 (avr_asm_named_section, avr_asm_output_aligned_common,
3579 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3580 New functions to update...
3581 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3582 (avr_asm_init_sections): Overwrite section callbacks for
3583 data_section, bss_section.
3584 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3586 (avr_file_end): ...here.
3588 2011-04-20 Richard Guenther <rguenther@suse.de>
3591 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3592 objects and types here. Adjust for their offset before comparing.
3594 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3596 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3599 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3601 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3602 (GIMPLE_H): Include $(INTERNAL_FN_H).
3603 (OBJS-common): Add internal-fn.o.
3604 (internal-fn.o): New rule.
3605 * internal-fn.def: New file.
3606 * internal-fn.h: Likewise.
3607 * internal-fn.c: Likewise.
3608 * gimple.h: Include internal-fn.h.
3609 (GF_CALL_INTERNAL): New gf_mask.
3610 (gimple_statement_call): Put fntype into a union with a new
3612 (gimple_build_call_internal): Declare.
3613 (gimple_build_call_internal_vec): Likewise.
3614 (gimple_call_same_target_p): Likewise.
3615 (gimple_call_internal_p): New function.
3616 (gimple_call_internal_fn): Likewise.
3617 (gimple_call_fntype): Return null for internal calls.
3618 (gimple_call_set_fntype): Assert that the function is not internal.
3619 (gimple_call_set_fn): Likewise.
3620 (gimple_call_set_fndecl): Likewise.
3621 (gimple_call_set_internal_fn): New function.
3622 (gimple_call_addr_fndecl): Handle null functions.
3623 (gimple_call_return_type): Likewise null types.
3624 * gimple.c (gimple_build_call_internal_1): New function.
3625 (gimple_build_call_internal): Likewise.
3626 (gimple_build_call_internal_vec): Likewise.
3627 (gimple_call_same_target_p): Likewise.
3628 (gimple_call_flags): Handle calls to internal functions.
3629 (gimple_call_fnspec): New function.
3630 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3631 (gimple_has_side_effects): Handle null functions.
3632 (gimple_rhs_has_side_effects): Likewise.
3633 (gimple_call_copy_skip_args): Handle calls to internal functions.
3634 * cfgexpand.c (expand_call_stmt): Likewise.
3635 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3636 * gimple-fold.c (gimple_fold_call): Handle null functions.
3637 (gimple_fold_stmt_to_constant_1): Don't fold
3638 calls to internal functions.
3639 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3641 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3642 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3643 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3644 (do_warn_unused_result): Likewise.
3645 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3646 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3647 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3648 the target of a call.
3649 (initialize_hash_element): Update accordingly.
3650 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3651 (iterative_hash_hashable_expr): Handle calls to internal functions.
3652 (print_expr_hash_elt): Likewise.
3653 * tree-ssa-pre.c (can_value_number_call): Likewise.
3654 (eliminate): Handle null functions.
3655 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3656 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3657 (find_func_aliases): Likewise.
3658 * value-prof.c (gimple_ic_transform): Likewise.
3659 (gimple_indirect_call_to_profile): Likewise.
3660 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3661 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3663 2011-04-19 Jan Hubicka <jh@suse.cz>
3665 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3666 * ipa-inline.c (inline_small_functions): Compute summaries first,
3667 populate heap later.
3669 2011-04-19 Jan Hubicka <jh@suse.cz>
3671 * cgraph.h (save_inline_function_body): Remove.
3672 * ipa-inline-transform.c: New file, broke out of...
3673 * ipa-inline.c: ... this one; Update toplevel comment.
3674 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3676 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3677 (cgraph_mark_inline_edge): Rename to inline_call; move to
3678 ipa-inline-transform.c.
3679 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3680 move to ipa-inline-transform.c
3681 (recursive_inlining, inline_small_functions, flatten_function,
3682 ipa_inline, inline_always_inline_functions,
3683 early_inline_small_functions): Update.
3684 (inline_transform): Move to ipa-inline-transform.c.
3685 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3687 * Makefile.in (ipa-inline-transform.o): New file.
3688 * cgraphunit.c (save_inline_function_body): Move to
3689 ipa-inline-transform.c
3691 2011-04-19 DJ Delorie <dj@redhat.com>
3693 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3694 registers if we already know there aren't any.
3695 (m32c_emit_epilogue): Don't emit a barrier here.
3696 (m32c_emit_eh_epilogue): Likewise.
3697 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3698 operands at expand time.
3699 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3701 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3702 duplicates. Provide aliases instead.
3703 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3704 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3707 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3709 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3710 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3711 (general_or_i64_p, sparc_register_move_cost): New function.
3713 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3715 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3716 Add lynx, mipssde. Sort table.
3718 2011-04-19 Xinliang David Li <davidxl@google.com>
3720 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3723 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3726 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3727 is a SUBREG with non-MODE_INT mode inside of it.
3729 2011-04-19 Martin Jambor <mjambor@suse.cz>
3731 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3732 also according to actual contants.
3733 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3734 (gimple_fold_call): Use it.
3735 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3737 2011-04-19 Martin Jambor <mjambor@suse.cz>
3739 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3740 non-pointer assignments.
3742 2011-04-19 Martin Jambor <mjambor@suse.cz>
3744 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3745 account anc_offset and otr_type from the indirect edge info.
3746 * ipa-prop.c (get_ancestor_addr_info): New function.
3747 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3748 get_ancestor_addr_info, call it.
3749 (ipa_note_param_call): Do not initialize information about polymorphic
3750 calls, return the indirect call graph edge. Remove the last
3751 parameter, adjust all callers.
3752 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3753 parameters. Initialize polymorphic information in the indirect edge.
3755 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3758 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3759 the types if they have different enumeration identifiers.
3761 2011-04-19 Jan Hubicka <jh@suse.cz>
3763 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3764 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3765 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3766 (optimize_function_for_size_p) ... here.
3768 2011-04-19 Richard Guenther <rguenther@suse.de>
3771 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3774 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3776 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3777 if DECL_NO_INLINE_WARNING_P is set on the function.
3779 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3782 * reload1.c (inc_for_reload): Return void. All callers changed.
3783 (emit_input_reload_insns): Don't try to delete previous output
3784 reloads to a register, or record spill_reg_store for autoincs.
3786 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3788 * gengtype.h: Updated copyright year.
3789 (struct input_file_st): Add inpisplugin field.
3790 (type_fileloc): New function.
3792 (write_typed_struct_alloc_def): Add gcc_assert.
3793 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3794 (write_typed_alloc_defns): Don't output for plugin files.
3795 (input_file_by_name): Clear inpisplugin field.
3796 (main): Set inpisplugin field for plugin files.
3798 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3800 * gengtype-state.c (string_eq): New.
3801 (read_state): Use string_eq instead of strcmp when creating the
3804 2011-04-19 Wei Guozhi <carrot@google.com>
3807 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3808 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3810 * config/arm/constraints.md (Uu): New constraint.
3811 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3813 2011-04-19 Tristan Gingold <gingold@adacore.com>
3815 * config.gcc (-*-*-*vms): Added.
3816 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3818 * config/vms/vms-ld.c: New file.
3819 * config/vms/vms-ar.c: New file.
3820 * config/vms/t-vmsnative: New file.
3822 2011-04-18 Xinliang David Li <davidxl@google.com>
3824 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3826 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3829 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3830 if TREE_TYPE (v) is non-NULL.
3832 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3833 gimple_get_virt_mehtod_for_binfo.
3834 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3835 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3837 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3839 2011-04-18 Michael Matz <matz@suse.de>
3840 Steve Ellcey <sje@cup.hp.com>
3842 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3843 use its mode as source mode if it isn't VOIDmode.
3845 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3847 * doc/passes.texi: Fill crossref nodes.
3849 2011-04-18 Jim Meyering <meyering@redhat.com>
3851 Fix doubled-word typos in comments and strings
3852 * config/alpha/vms-unwind.h: s/for for/for/
3853 * config/arm/unwind-arm.h: Likewise.
3854 * config/microblaze/microblaze.c: Likewise.
3855 * config/sh/constraints.md: s/in in/in/
3856 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3858 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3860 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3861 (AVX_FLOAT_MODE_P): Ditto.
3862 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3863 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3864 (AVX_VEC_FLOAT_MODE_P): Ditto.
3865 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3866 (UNSPEC_MASKSTORE): Ditto.
3867 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3868 Merge from <sse>_movmsk<ssemodesuffix> and
3869 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3870 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3872 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3873 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3874 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3876 2011-04-18 Jan Hubicka <jh@suse.cz>
3878 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3880 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3881 (want_inline_function_called_once_p): Break out the logic from
3883 (edge_badness): Ensure that profile is not misupdated.
3884 (lookup_recursive_calls): Prioritize by call frequencies.
3885 (inline_small_functions): Move program size estimates here;
3886 actually process whole queue even when unit growth has been
3887 met. (to properly compute inline_failed reasons and for the
3888 case unit size decrease.) Revisit comments on recursive inlining.
3889 (ipa_inline): Remove unit summary code; first inline hot calls
3890 of functions called once, cold calls next.
3891 (order, nnodes): Remove unused variables.
3892 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3893 (GTFILES): Remove ipa-inline.c
3894 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3896 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3898 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3900 2011-04-18 Jie Zhang <jie@codesourcery.com>
3901 Richard Earnshaw <rearnsha@arm.com>
3903 * arm.c (neon_builtin_type_bits): Remove.
3904 (typedef enum neon_builtin_mode): New.
3905 (T_MAX): Don't define.
3906 (typedef enum neon_builtin_datum): Remove bits, codes[],
3907 num_vars and base_fcode. Add mode, code and fcode.
3908 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3909 VAR10): Change accordingly.
3910 (neon_builtin_data[]): Change accordingly
3911 (arm_init_neon_builtins): Change accordingly.
3912 (neon_builtin_compare): Remove.
3913 (locate_neon_builtin_icode): Remove.
3914 (arm_expand_neon_builtin): Change accordingly.
3916 * arm.h (enum arm_builtins): Move to ...
3917 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3919 * arm.c (arm_builtin_decl): Declare.
3920 (TARGET_BUILTIN_DECL): Define.
3921 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3922 (arm_builtin_decls[]): New.
3923 (arm_init_neon_builtins): Store builtin declarations in
3924 arm_builtin_decls[].
3925 (arm_init_tls_builtins): Likewise.
3926 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3927 (arm_builtin_decl): New.
3929 2011-04-18 Richard Guenther <rguenther@suse.de>
3931 * tree.c (upper_bound_in_type): Build properly canonicalized
3933 (lower_bound_in_type): Likewise.
3935 2011-04-18 Richard Guenther <rguenther@suse.de>
3937 * gimple.h (gimple_call_addr_fndecl): New function.
3938 (gimple_call_fndecl): Use it.
3939 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3941 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3942 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3944 2011-04-18 Richard Guenther <rguenther@suse.de>
3947 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3949 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3952 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3953 DECL_IN_CONSTANT_POOL without RTL.
3955 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3956 Ira Rosen <ira.rosen@linaro.org>
3959 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3960 to match neon_vzip/vuzp/vtrn_internal.
3961 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3962 outputs explicitly dependent on both inputs.
3963 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3965 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3967 PR tree-optimization/48616
3968 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3969 whether the shift is by scalar or vector based on whether all SLP
3970 scalar stmts have the same rhs.
3972 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3974 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3977 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3979 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3982 2011-04-17 Jan Hubicka <jh@suse.cz>
3984 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3985 * cgrpahunit.c (cgraph_finalize_function): Do not set
3986 finalized_by_frontend.
3987 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3988 finalized_by_frontend.
3990 2011-04-17 Jan Hubicka <jh@suse.cz>
3992 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3993 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3994 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3995 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3997 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3999 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4001 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4004 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4005 is non-null before accessing it.
4006 (input_cgraph): Remove trailing spaces.
4008 2011-04-17 Revital Eres <revital.eres@linaro.org>
4010 * params.def (sms-min-sc): New param flag.
4011 * modulo-sched.c (sms_schedule): Use it.
4012 * doc/invoke.texi (sms-min-sc): Document it.
4014 2011-04-17 Jan Hubicka <jh@suse.cz>
4016 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4017 present, also set gimple_call_set_cannot_inline.
4018 * ipa-inline.c: Update toplevel comment.
4020 (cgraph_clone_inlined_nodes): Fix linebreaks.
4021 (cgraph_check_inline_limits): Restructure to ...
4022 (caller_growth_limits): ... this one; be more tolerant
4023 on growth in nested inline chains; add explanatory comment;
4024 fix stack accounting thinko introduced by previous patch.
4025 (cgraph_default_inline_p): Remove.
4026 (report_inline_failed_reason): New function.
4027 (can_inline_edge_p): New function.
4028 (can_early_inline_edge_p): New function.
4029 (leaf_node_p): Move upwards in file.
4030 (want_early_inline_function_p): New function.
4031 (want_inline_small_function_p): New function.
4032 (want_inline_self_recursive_call_p): New function.
4033 (cgraph_edge_badness): Rename to ...
4034 (edge_badness) ... this one; fix linebreaks.
4035 (update_edge_key): Update call of edge_baddness; add
4036 detailed dump about queue updates.
4037 (update_caller_keys): Use can_inline_edge_p and
4038 want_inline_small_function_p.
4039 (cgraph_decide_recursive_inlining): Rename to...
4040 (recursive_inlining): Use can_inline_edge_p and
4041 want_inline_self_recursive_call_p; simplify and remove no longer
4043 (cgraph_set_inline_failed): Remove.
4044 (add_new_edges_to_heap): Use can_inline_edge_p and
4045 want_inline_small_function_p.
4046 (cgraph_decide_inlining_of_small_functions): Rename to ...
4047 (inline_small_functions): ... this one; cleanup; use
4048 can/want predicates; cleanup debug ouput; work edges till fibheap
4049 is exhausted and do not stop once unit growth is reached; remove
4050 later loop processing remaining edges.
4051 (cgraph_flatten): Rename to ...
4052 (flatten_function): ... this one; use can_inline_edge_p
4053 and can_early_inline_edge_p predicates.
4054 (cgraph_decide_inlining): Rename to ...
4055 (ipa_inline): ... this one; remove unreachable nodes before
4056 inlining functions called once; simplify the pass.
4057 (cgraph_perform_always_inlining): Rename to ...
4058 (inline_always_inline_functions): ... this one; use
4059 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4060 (cgraph_decide_inlining_incrementally): Rename to ...
4061 (early_inline_small_functions): ... this one; simplify
4062 using new predicates; cleanup; make dumps prettier.
4063 (cgraph_early_inlining): Rename to ...
4064 (early_inliner): newer inline regular functions into always-inlines;
4065 fix updating of call stmt summaries.
4066 (pass_early_inline): Update for new names.
4067 (inline_transform): Fix formating.
4068 (gate_cgraph_decide_inlining): Rename to ...
4069 (pass_ipa_inline): ... this one.
4070 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4071 * ipa-inline-analysis.c (dump_inline_summary): Update.
4072 (compute_inline_parameters): Do not compute disregard_inline_limits;
4073 look for mismatching arguments.
4074 (estimate_growth): Fix handlig of non-trivial self recursion.
4075 (inline_read_summary): Do not read info->disregard_inline_limits.
4076 (inline_write_summary): Do not write info->disregard_inline_limits.
4077 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4078 and move all checks into can_inline_edge_p predicate; re-enable code
4079 comparing optimization levels.
4080 (expand_call_inline): Do not test inline_forbidden_into_p.
4081 * Makefile.in (ipa-inline.o): Update arguments.
4083 2011-04-17 Revital Eres <revital.eres@linaro.org>
4085 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4087 2011-04-17 Revital Eres <revital.eres@linaro.org>
4089 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4091 2011-04-17 Michael Matz <matz@suse.de>
4093 PR tree-optimization/48622
4095 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4096 in same order as they're written.
4098 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4100 * config/pa/predicates.md: Reorganize and simplify predicates.
4101 Eliminate duplicate code checks.
4102 (arith_operand): Rename to arith14_operand
4103 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4104 * config/pa/pa.md: Use renamed operands.
4105 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4106 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4107 arith11_operand, adddi3_operand, indexed_memory_operand,
4108 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4109 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4110 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4111 move_dest_operand, move_src_operand, prefetch_cc_operand,
4112 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4113 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4114 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4115 div_operand, int5_operand, movb_comparison_operator,
4116 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4117 arith_double_operand, ireg_operand, lhs_lshift_operand,
4118 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4119 integer_store_memory_operand): Likewise.
4120 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4121 (integer_store_memory_operand, read_only_operand,
4122 function_label_operand, borx_reg_operand,
4123 non_hard_reg_operand): Likewise.
4124 (eq_neq_comparison_operator): Delete unused operator.
4125 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4126 function_label_operand.
4127 (emit_move_sequence): Likewise.
4129 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4131 * config/i386/sse.md (sseunpackmode): New mode attribute.
4132 (ssepackmode): Ditto.
4133 (vec_pack_trunc_<mode>): Macroize expander from
4134 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4135 (vec_unpacks_lo_<mode>): Macroize expander from
4136 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4137 (vec_unpacks_hi_<mode>): Macroize expander from
4138 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4139 (vec_unpacku_lo_<mode>): Macroize expander from
4140 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4141 (vec_unpacku_hi_<mode>): Macroize expander from
4142 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4143 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4144 ix86_expand_sse4_unpack.
4145 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4147 2011-04-16 Jan Hubicka <jh@suse.cz>
4149 * cgraphbuild.c: Include ipa-inline.h.
4150 (reset_inline_failed): Use initialize_inline_failed.
4151 * cgraph.c: Include ipa-inline.h.
4152 (cgraph_create_node_1): Do not initialize estimated_growth.
4153 (initialize_inline_failed): More to ipa-inline-analysis.c
4154 (dump_cgraph_node): Do not dump inline flags.
4155 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4156 and disregard_inline_limits flags.
4157 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4158 time, size, estimated_growth.
4159 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4161 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4162 DECL_DISREGARD_INLINE_LIMITS.
4163 (cgraph_analyze_function): Do not initialize
4164 node->local.disregard_inline_limits.
4165 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4166 inlinable, versionable and disregard_inline_limits.
4167 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4168 cgraph_check_inline_limits, cgraph_default_inline_p,
4169 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4170 add_new_edges_to_heap): Update.
4171 (cgraph_decide_inlining_of_small_function): Update; set
4172 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4173 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4174 cgraph_decide_inlining_incrementally): Update.
4175 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4176 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4177 time, size and estimated_growth parameters.
4178 (estimate_edge_growth): Update.
4179 (initialize_inline_failed): Declare.
4180 * ipa-split.c: Include ipa-inline.h
4181 (execute_split_functions): Update.
4182 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4183 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4184 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4185 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4186 estimated_growth to INT_MIN.
4187 (inline_node_duplication_hook): Likewise.
4188 (dump_inline_summary): Dump new fields.
4189 (compute_inline_parameters): Update.
4190 (estimate_edge_time, estimate_time_after_inlining,
4191 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4192 inline_write_summary):
4193 (initialize_inline_failed): Move here from cgraph.c.
4194 * tree-sra.c: Include ipa-inline.h.
4195 (ipa_sra_preliminary_function_checks): Update.
4196 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4199 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4201 * config/i386/sse.md (V16): New mode iterator.
4203 (AVXMODEQI, AVXMODEDI): Remove.
4204 (sse2, sse3): New mode attribute.
4205 (mov<mode>): Use V16 mode iterator.
4206 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4207 (push<mode>1): Use V16 mode iterator.
4208 (movmisalign<mode>): Ditto.
4209 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4210 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4211 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4212 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4213 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4214 avx_movdqu<avxmodesuffix>.
4215 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4216 *avx_movdqu<avxmodesuffix>.
4217 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4218 avx_lddqu<avxmodesuffix>.
4219 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4220 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4221 avx_movnt<AVXMODEDI:mode>.
4222 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4223 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4225 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4228 * haifa-sched.c (prune_ready_list, schedule_block): Use
4229 sched_pressure_p rather than flag_sched_pressure.
4231 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4233 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4234 cgraph_get_node instead of cgraph_get_create_node.
4236 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4238 * cfgexpand.c (expand_debug_expr): Use
4239 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4241 2011-04-15 Michael Matz <matz@suse.de>
4243 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4244 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4245 * function.c (gimplify_parameters): Ditto.
4246 * gimplify.c (gimplify_vla_decl): Ditto.
4248 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4249 (gimple_call_set_alloca_for_var): New inline function.
4250 (gimple_call_alloca_for_var_p): Ditto.
4251 * gimple.c (gimple_build_call_from_tree): Remember
4252 CALL_ALLOCA_FOR_VAR_P state.
4253 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4255 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4256 calls if they were for VLA objects.
4258 2011-04-15 Martin Jambor <mjambor@suse.cz>
4260 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4263 2011-04-15 Martin Jambor <mjambor@suse.cz>
4266 * tree-emutls.c (lower_emutls_function_body): Call
4267 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4270 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4272 * c-decl.c (detect_field_duplicates): Call
4273 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4275 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4277 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4278 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4279 * ipa-pure-const.c (check_stmt): Call it.
4280 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4282 2011-04-15 Richard Guenther <rguenther@suse.de>
4284 PR tree-optimization/48290
4285 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4286 Properly decide inhibiting propagation based on the valueized
4287 operand. Do loop-closed SSA form preserving here ...
4288 (init_copy_prop): ... not here.
4290 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4293 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4294 (*ieee_smax<mode>3): Likewise.
4296 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4298 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4299 Replace match_operand with match_dup for the third operand in
4302 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4304 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4305 to track processing of conditionals. Update all callers.
4306 (try_combine, simplify_if_then_else): Update.
4308 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4310 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4313 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4315 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4316 instead of match_operand for operand 3.
4318 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4320 * recog.h (insn_operand_data): Add an "allows_mem" field.
4321 * genoutput.c (output_operand_data): Initialize it.
4322 * optabs.c (maybe_legitimize_operand_same_code): New function.
4323 (maybe_legitimize_operand): Use it when matching the original
4326 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4328 * gimplify.c: Fix issues in comments throughout.
4329 (voidify_wrapper_expr): Fix long line.
4330 (build_stack_save_restore): Likewise.
4331 (gimplify_loop_expr): Likewise.
4332 (gimplify_compound_lval): Likewise.
4333 (gimplify_init_ctor_eval): Likewise.
4334 (gimplify_modify_expr_rhs): Likewise.
4335 (omp_notice_threadprivate_variable): Likewise.
4337 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4339 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4340 original one if this is not a builtin function.
4342 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4345 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4346 offset it as needed based on top 2 bits in operands[3], change
4347 MEM mode to SFmode and mask those 2 bits away from operands[3].
4349 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4351 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4352 change from objc_declare_protocols() to objc_declare_protocol().
4354 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4356 * config/i386/sse.md (sse4_1): New mode attribute.
4357 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4358 avx_blend<ssemodesuffix><avxmodesuffix> and
4359 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4360 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4361 avx_blendv<ssemodesuffix><avxmodesuffix> and
4362 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4363 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4364 avx_dp<ssemodesuffix><avxmodesuffix> and
4365 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4366 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4367 (sse4_1_packusdw): Merge with *avx_packusdw.
4368 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4369 (sse4_1_pblendw): Merge with *avx_pblendw.
4370 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4371 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4372 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4374 (sse4_1_round<ssescalarmodesuffix>): Merge with
4375 *avx_round<ssescalarmodesuffix>.
4376 (aesenc): Merge with *avx_aesenc.
4377 (aesenclast): Merge with *avx_aesenclast.
4378 (aesdec): Merge with *avx_aesdec.
4379 (aesdeclast): Merge with *avx_aesdeclast.
4380 (pclmulqdq): Merge with *pclmulqdq.
4381 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4383 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4385 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4388 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4389 (align_local_variable): This. Update DECL_ALIGN.
4390 (add_stack_var): Updated.
4391 (expand_one_stack_var): Likewise.
4393 2011-04-14 Richard Guenther <rguenther@suse.de>
4395 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4397 (dse_initialize_block_local_data, dse_leave_block,
4398 record_voperand_set, get_stmt_uid): Likewise.
4399 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4400 (dse_optimize_stmt): Remove voperand set handling code.
4401 Simplify and improve to handle any kind of killing stmt.
4402 (dse_record_phi): Remove.
4403 (dse_enter_block): Simplify.
4404 (tree_ssa_dse): Likewise.
4405 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4407 2011-04-14 Jan Hubicka <jh@suse.cz>
4409 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4410 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4411 (cgraph_local_info): Remove inline_summary.
4412 * ipa-cp.c: Include ipa-inline.h.
4413 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4414 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4416 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4417 (input_overwrite_node): Do not set inline summary.
4418 (input_node): Do not stream inline summary.
4419 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4420 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4421 growth; we do not have inline parameters computed for that anyway.
4422 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4423 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4424 (inline_summary_t): New type and VECtor.
4425 (debug_inline_summary, dump_inline_summaries): Declare.
4426 (inline_summary): Use VOCtor.
4427 (estimate_edge_growth): Kill hack computing call stmt size directly.
4428 * lto-section-in.c (lto_section_name): Add inline section.
4429 * ipa-inline-analysis.c: Include lto-streamer.h
4430 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4431 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4432 (inline_summary_vec): Define.
4433 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4434 dump_inline_summaries): New functions.
4435 (estimate_function_body_sizes): Properly compute size/time of outgoing
4437 (compute_inline_parameters): Alloc inline_summary; do not compute
4438 size/time of incomming calls.
4439 (estimate_edge_time): Avoid missing time summary hack.
4440 (inline_read_summary): Read inline summary info.
4441 (inline_write_summary): Write inline summary info.
4442 (inline_free_summary): Free all hooks and inline summary vector.
4443 * lto-streamer.h: Add LTO_section_inline_summary section.
4444 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4445 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4447 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4449 * tree-vectorizer.h (vect_strided_store_supported): Add a
4450 HOST_WIDE_INT argument.
4451 (vect_strided_load_supported): Likewise.
4452 (vect_permute_store_chain): Return void.
4453 (vect_transform_strided_load): Likewise.
4454 (vect_permute_load_chain): Delete.
4455 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4456 count argument. Check that the count is a power of two.
4457 (vect_strided_load_supported): Likewise.
4458 (vect_permute_store_chain): Return void. Update after above changes.
4459 Assert that the access is supported.
4460 (vect_permute_load_chain): Likewise.
4461 (vect_transform_strided_load): Return void.
4462 * tree-vect-stmts.c (vectorizable_store): Update calls after
4463 above interface changes.
4464 (vectorizable_load): Likewise.
4465 (vect_analyze_stmt): Don't check for strided powers of two here.
4467 2011-04-14 Richard Guenther <rguenther@suse.de>
4469 PR tree-optimization/48590
4470 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4471 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4472 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4473 BUILT_IN_STACK_SAVE.
4474 * tree-ssa-dce.c (propagate_necessity): Handle
4475 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4477 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4479 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4482 2011-04-14 Richard Guenther <rguenther@suse.de>
4484 * tree.h (get_object_alignment_1): Declare.
4485 * builtins.c (get_object_alignment_1): Split out worker from ...
4486 (get_object_alignment): ... here.
4487 * fold-const.c (get_pointer_modulus_and_residue): Use
4488 get_object_alignment_1.
4490 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4492 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4494 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4495 parameter. Generalise code to handle arrays as well as vectors.
4496 (vect_setup_realignment): Update accordingly.
4497 * tree-vect-stmts.c (vectorizable_store): Likewise.
4498 (vectorizable_load): Likewise.
4500 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4502 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4503 within the per-copy loop.
4505 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4507 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4510 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4512 * doc/options.texi (Negative): Explicitly mention that the
4513 Negative chain must be circular.
4515 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4517 * function.h (block_chainon): Declare.
4518 * function.c (block_chainon): Define.
4520 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4521 Eric Weddington <eric.weddington@atmel.com>
4522 Georg-Johann Lay <avr@gjlay.de>
4524 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4526 (avr_init_builtins, avr_expand_builtin,
4527 avr_expand_delay_cycles, avr_expand_unop_builtin,
4528 avr_expand_binop_builtin ): New functions.
4529 (avr_builtin_id): New enum
4530 (struct avr_builtin_description): New struct
4531 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4532 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4534 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4535 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4536 UNSPECV_DELAY_CYCLES): new enumeration values
4537 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4538 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4539 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4540 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4541 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4542 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4543 "fmulsu"): New insns
4545 * config/avr/avr-c.c: fix line endings
4546 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4547 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4548 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4549 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4550 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4552 * doc/extend.texi (AVR Built-in Functions): New node
4553 (Target Builtins): Add documentation of AVR
4556 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4559 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4560 alone. Error if non-const data has attribute progmem.
4562 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4564 * tree.h (struct tree_constructor): Include tree_typed instead of
4566 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4567 TS_TYPED instead of TS_COMMON.
4569 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4571 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4572 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4573 (sse2_psadbw): Merge with *avx_psadbw.
4574 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4575 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4576 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4577 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4578 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4579 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4580 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4581 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4582 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4583 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4584 (ssse3_palignrti): Merge with *avx_palignrti.
4586 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4588 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4589 * tree-ssanames.c (fini_ssanames): VEC_free it.
4590 (make_ssa_name_fn): Update for VECness of free_ssanames.
4591 (release_ssa_name, release_dead_ssa_names): Likewise.
4592 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4594 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4595 TS_TYPED instead of TS_COMMON.
4597 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4599 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4600 statistics_counter_event.
4601 * tree-ssa-copyrename.c (stats): Define.
4602 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4603 statistics_counter_event.
4604 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4605 (bswap_stats, widen_mul_stats): Define.
4606 (insert_reciprocals): Increment rdivs_inserted.
4607 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4608 rfuncs_inserted. Add calls to statistics_counter_event.
4609 (execute_cse_sincos_1): Increment inserted.
4610 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4611 statistics_counter_event.
4612 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4613 of bswap_stats. Add calls to statistics_counter_event.
4614 (convert_mult_to_widen): Increment widen_mults_inserted.
4615 (convert_plusminus_to_widen): Increment maccs_inserted.
4616 (convert_mult_to_fma): Increment fmas_inserted.
4617 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4618 calls to statistics_counter_event.
4620 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4622 PR rtl-optimization/48455
4623 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4624 `temp_costs->mem_cost'.
4626 2011-04-13 Jan Hubicka <jh@suse.cz>
4628 * ipa-inline.h: New file.
4629 * ipa-inline-analysis.c: New file. Broken out of ...
4630 * ipa-inline.c: ... this file; update toplevel comment;
4631 include ipa-inline.h
4632 (inline_summary): Move to ipa-inline.h
4633 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4634 ipa-inline-analysis.c.
4635 (cgraph_estimate_time_after_inlining): Rename to
4636 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4637 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4638 to estimate_edge_growth.
4639 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4640 rename to estimate_size_after_inlining.
4641 (cgraph_mark_inline_edge): Update for new naming convention.
4642 (cgraph_check_inline_limits): Likewise.
4643 (cgraph_edge_badness): Likewise.
4644 (cgraph_decide_recursive_inlining): Likewise.
4645 (cgraph_decide_inlining_of_small_functions): Likewise.
4646 (cgraph_decide_inlining_incrementally): Likewise.
4647 (cgraph_estimate_growth): Rename to estimate_growth; move to
4648 ipa-inline-analysis.c.
4649 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4650 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4651 (compute_inline_parameters): Likewise.
4652 (compute_inline_parameters_for_current): Likewise.
4653 (pass_inline_parameters): Likewise.
4654 (inline_indirect_intraprocedural_analysis): Likewise.
4655 (analyze_function): Rename to inline_analyze_function; likewise.
4656 (add_new_function): Move to ipa-inline-analysis.c.
4657 (inline_generate_summary): Likewise.
4658 (inline_read_summary): Likewise.
4659 (inline_write_summary): Likewise.
4660 * Makefile.in (ipa-inline-analysis.c): New file.
4662 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4664 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4665 * configure: Regenerate.
4667 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4669 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4670 instead of tree_common.
4671 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4673 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4674 TS_TYPED rather than TS_COMMON.
4675 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4677 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4680 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4681 r20 around calls of __tablejump_elpm__
4683 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4686 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4688 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4690 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4692 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4693 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4694 (cfi_vec): New typedef.
4695 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4696 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4697 (cie_cfi_vec): New static variable.
4698 (cie_cfi_head): Delete.
4699 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4700 declaration changed. Use vector rather than list operations.
4701 (new_cfi): Don't initialize the dw_cfi_next field.
4702 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4703 rather than list operations.
4704 (lookup_cfa): Use vector rather than list operations.
4705 (output_cfis): New argument upto. Accept a cfi_vec rather than
4706 a dw_cfi_ref list head as argument. All callers changed.
4707 Iterate over the vector using upto as a maximum index.
4708 (output_all_cfis): New static function.
4709 (output_fde): Use vector rather than list operations. Use the
4710 new upto argument for output_cfis rather than manipulating a
4712 (dwarf2out_begin_prologue): Change initializations to match
4714 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4715 from the vector length rather than searching for the end of a list.
4716 Use output_all_cfis.
4717 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4719 2011-04-13 Nick Clifton <nickc@redhat.com>
4721 * config/rx/rx.md (movmemsi): Do not use this pattern when
4722 volatile pointers are involved.
4724 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4726 * config/i386/sse.md (pinsrbits): Remove.
4727 (sse2_packsswb): Merge with *avx_packsswb.
4728 (sse2_packssdw): Merge with *avx_packssdw.
4729 (sse2_packuswb): Merge with *avx_packuswb.
4730 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4731 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4732 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4733 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4734 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4735 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4736 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4737 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4738 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4739 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4740 (sse2_loadld): Merge with *avx_loadld.
4741 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4742 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4743 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4744 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4745 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4747 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4749 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4751 * print-tree.c (print_node): Likewise.
4752 * tree-inline.c (copy_tree_r): Likewise.
4753 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4754 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4755 instead of TS_COMMON.
4756 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4757 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4758 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4759 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4760 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4762 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4764 (TREE_CHAIN): Check for a TS_COMMON structure.
4765 (TREE_TYPE): Check for a TS_TYPED structure.
4767 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4769 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4770 cgraph_get_create_node instead of cgraph_node.
4772 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4774 * c-parser.c (c_parser_initelt): Updated call to
4775 objc_build_message_expr.
4776 (c_parser_postfix_expression): Likewise.
4778 2011-04-12 Kai Tietz <ktietz@redhat.com>
4780 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4781 MASK_MS_BITFIELD_LAYOUT bit.
4783 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4785 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4786 assert it is always true.
4787 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4790 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4792 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4793 compiling Objective-C to be more efficient.
4795 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4797 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4800 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4802 * recog.h, genoutput.c, optabs.c: Revert last patch.
4804 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4807 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4809 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4811 * recog.h (insn_operand_data): Add an "allows_mem" field.
4812 * genoutput.c (output_operand_data): Initialize it.
4813 * optabs.c (maybe_legitimize_operand_same_code): New function.
4814 (maybe_legitimize_operand): Use it when matching the original
4817 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4819 * genpreds.c (process_define_predicate): Move most processing
4820 to gensupport.c. Continue to validate the expression.
4821 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4822 (process_define_predicate): Move processing to gensupport.c.
4823 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4824 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4825 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4827 (valid_predicate_name_p): New function, split out from old
4828 genpreds.c:process_define_predicate.
4829 (process_define_predicate): New function, combining code from
4830 old genpreds.c and genrecog.c functions.
4831 (process_rtx): Call it for DEFINE_PREDICATE and
4832 DEFINE_SPECIAL_PREDICATE.
4834 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4836 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4837 size of a '%A' memory reference.
4838 (T_DREG, T_QREG): New neon_builtin_type_bits.
4839 (arm_init_neon_builtins): Assert that the load and store operands
4840 are neon_struct_operands.
4841 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4842 (NEON_ARG_MEMORY): New builtin_arg.
4843 (neon_dereference_pointer): New function.
4844 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4845 Handle NEON_ARG_MEMORY.
4846 (arm_expand_neon_builtin): Update after above interface changes.
4847 Use NEON_ARG_MEMORY for loads and stores.
4848 * config/arm/predicates.md (neon_struct_operand): New predicate.
4849 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4850 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4851 (V_four_elem): Tweak formatting.
4852 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4853 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4854 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4855 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4856 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4857 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4858 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4859 Use %A in the output template.
4860 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4861 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4862 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4863 the width of the memory access. Remove post-increment.
4864 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4866 2011-04-12 Nick Clifton <nickc@redhat.com>
4868 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4869 instruction for interrupt handlers if the target is the basic V850
4871 (expand_epilogue): Likewise.
4873 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4875 PR rtl-optimization/48549
4876 * combine.c (propagate_for_debug): Also stop after BB_END of
4877 this_basic_block. Process LAST and just stop processing after it.
4878 (combine_instructions): If last_combined_insn has been deleted,
4879 set last_combined_insn to its PREV_INSN.
4881 2011-04-12 Richard Guenther <rguenther@suse.de>
4883 PR tree-optimization/46076
4884 * gimple.h (struct gimple_statement_call): Add fntype field.
4885 (gimple_call_fntype): Adjust.
4886 (gimple_call_set_fntype): New function.
4887 * gimple.c (gimple_build_call_1): Set the call function type.
4888 * gimplify.c (gimplify_call_expr): Preserve the function
4889 type the frontend used for the call.
4890 (gimplify_modify_expr): Likewise.
4891 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4893 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4895 * tree-ssa.c (useless_type_conversion_p): Function pointer
4896 conversions are useless.
4898 2011-04-12 Martin Jambor <mjambor@suse.cz>
4900 * cgraph.h (cgraph_node): Remove function declaration.
4901 (cgraph_create_node): Declare.
4902 (cgraph_get_create_node): Likewise.
4903 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4904 Updated all callers.
4905 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4906 the decl does not already exist. Call cgraph_get_create_node instead
4908 (cgraph_get_create_node): New function.
4909 (cgraph_same_body_alias): Update comment.
4910 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4911 assert it does not return NULL.
4912 (cgraph_update_edges_for_call_stmt): Likewise.
4913 (cgraph_clone_edge): Likewise.
4914 (cgraph_create_virtual_clone): Likewise.
4915 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4916 instead of cgraph_node.
4917 (cgraph_add_new_function): Call cgraph_create_node or
4918 cgraph_get_create_node instead of cgraph_node.
4919 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4920 instead of cgraph_node.
4921 (record_eh_tables): Likewise.
4922 (mark_address): Likewise.
4923 (mark_load): Likewise.
4924 (build_cgraph_edges): Call cgraph_get_create_node instead
4926 (rebuild_cgraph_edges): Likewise.
4927 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4928 instead of cgraph_node.
4929 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4931 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4932 cgraph_create_node instead of cgraph_node.
4933 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4935 * lto-cgraph.c (input_node): Likewise.
4936 * lto-streamer-in.c (input_function): Likewise.
4937 * varasm.c (mark_decl_referenced): Likewise.
4938 (assemble_alias): Likewise.
4940 2011-04-12 Martin Jambor <mjambor@suse.cz>
4942 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4943 instead of cgraph_node and assert it does not return NULL.
4944 * lto-streamer-in.c (lto_read_body): Likewise.
4945 * omp-low.c (new_omp_context): Likewise.
4946 (create_task_copyfn): Likewise.
4947 * tree-emutls.c (lower_emutls_function_body): Likewise.
4948 * matrix-reorg.c (transform_allocation_sites): Likewise.
4950 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4953 * c-typeck.c (build_asm_expr): Error out on attempts to use
4954 void type outputs or inputs for constraints that allow reg or
4957 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4958 Richard Earnshaw <rearnsha@arm.com>
4961 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4962 to use sign-magnitude offsets. Reject unsupported unaligned
4963 cases. Add detailed description in comments.
4964 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4965 condition from TARGET_32BIT to TARGET_ARM.
4967 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4969 * tree.h (struct typed_tree): New.
4970 (struct tree_common): Include it instead of tree_base.
4971 (TREE_TYPE): Update for new location of type field.
4972 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4973 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4974 (union tree_node): Add typed field.
4975 * treestruct.def (TS_TYPED): New.
4976 * lto-streamer.c (check_handled_ts_structures): Handle it.
4977 * tree.c (MARK_TS_TYPED): New macro.
4978 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4980 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4982 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4983 (force_nonfallthru): Do not alter the loop nest if no basic block
4986 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4988 * config/i386/sse.md (VI): New mode iterator.
4990 (AVX256MODEI): Ditto.
4991 (AVXMODEF4P): Ditto.
4992 (avxvecpsmode): Ditto.
4993 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4994 (sse2_andnot<mode>3): New expander.
4995 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4996 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4997 (<any_logic:code><mode>3): Use VI mode iterator.
4998 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4999 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5000 (*andnottf3): Handle AVX three-operand constraints.
5001 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5003 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5004 Robert Millan <rmh@gnu.org>
5006 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5007 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5008 GNU_USER_DYNAMIC_LINKER64): Define.
5009 (REG_NAME): Don't undefine.
5010 (MD_UNWIND_SUPPORT): Undefine.
5011 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5012 (REG_NAME): Don't undefine.
5013 (MD_UNWIND_SUPPORT): Undefine.
5014 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5016 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5018 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5019 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5021 2011-04-11 Xinliang David Li <davidxl@google.com>
5023 * value-profile.c (check_ic_target): New function.
5024 (gimple_ic_transform): Sanity check indirect call target.
5025 * gimple-low.c (gimple_check_call_args): Interface change.
5026 (gimple_check_call_matching_types): New function.
5027 * tree-inline.c (tree_can_inline_p): Call new function.
5029 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5031 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5032 tree-pretty-print.h & realmpfr.h.
5034 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5037 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5038 (setup_allocno_and_important_classes): Ditto.
5040 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5042 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5043 GNU_USER_DYNAMIC_LINKER.
5044 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5045 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5046 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5047 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5048 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5049 GNU_USER_TARGET_OS_CPP_BUILTINS.
5050 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5052 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5054 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5055 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5056 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5057 GNU_USER_TARGET_OS_CPP_BUILTINS.
5058 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5059 GNU_USER_DYNAMIC_LINKER.
5060 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5061 GNU_USER_TARGET_OS_CPP_BUILTINS.
5062 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5064 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5066 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5067 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5068 GNU_USER_DYNAMIC_LINKER64): Remove.
5069 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5070 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5071 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5072 GNU_USER_DYNAMIC_LINKER.
5073 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5074 GNU_USER_TARGET_OS_CPP_BUILTINS.
5075 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5076 GNU_USER_TARGET_OS_CPP_BUILTINS.
5077 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5078 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5079 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5080 GNU_USER_TARGET_OS_CPP_BUILTINS.
5081 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5082 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5083 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5084 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5086 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5087 GNU_USER_DYNAMIC_LINKER.
5088 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5089 GNU_USER_TARGET_OS_CPP_BUILTINS.
5090 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5091 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5092 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5093 GNU_USER_DYNAMIC_LINKER.
5094 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5095 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5096 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5097 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5098 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5099 GNU_USER_DYNAMIC_LINKER.
5100 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5101 GNU_USER_DYNAMIC_LINKERN32.
5102 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5103 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5104 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5105 GNU_USER_DYNAMIC_LINKER32.
5106 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5107 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5108 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5109 GNU_USER_DYNAMIC_LINKER.
5110 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5112 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5114 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5115 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5116 GNU_USER_DYNAMIC_LINKER32.
5117 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5118 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5119 GNU_USER_DYNAMIC_LINKER.
5120 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5121 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5122 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5123 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5124 GNU_USER_DYNAMIC_LINKER64.
5125 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5126 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5127 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5128 GNU_USER_DYNAMIC_LINKER.
5129 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5131 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5132 GNU_USER_DYNAMIC_LINKER.
5133 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5134 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5135 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5136 GNU_USER_DYNAMIC_LINKER32.
5137 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5138 GNU_USER_DYNAMIC_LINKER64.
5139 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5140 GNU_USER_DYNAMIC_LINKER64.
5141 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5142 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5143 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5144 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5145 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5147 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5149 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5150 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5151 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5152 GNU_USER_DYNAMIC_LINKER.
5153 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5154 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5155 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5156 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5157 GNU_USER_DYNAMIC_LINKER64.
5158 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5159 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5160 GNU_USER_LINK_EMULATION.
5161 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5162 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5163 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5164 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5165 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5166 CPP_SPEC, CC1_SPEC): Remove.
5167 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5168 (GNU_USER_DYNAMIC_LINKER): Define.
5169 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5170 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5171 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5172 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5173 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5174 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5175 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5176 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5177 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5178 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5179 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5180 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5181 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5182 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5183 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5184 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5185 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5186 GNU_USER_DYNAMIC_LINKER.
5187 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5188 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5189 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5190 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5191 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5192 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5193 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5194 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5195 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5196 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5198 2011-04-11 Kai Tietz <ktietz@redhat.com>
5202 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5203 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5205 (ix86_is_msabi_thiscall): Removed.
5206 (ix86_is_type_thiscall): Likewise.
5207 (ix86_get_callcvt): New function.
5208 (ix86_comp_type_attributes): Simplify check.
5209 (ix86_function_regparm): Use ix86_get_callcvt for calling
5210 convention attribute checks.
5211 (ix86_return_pops_args): Likewise.
5212 (ix86_static_chain): Likewise.
5213 (x86_this_parameter): Likewise.
5214 (x86_output_mi_thunk): Likewise.
5215 (ix86_function_type_abi): Optimize check for types without attributes.
5216 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5217 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5218 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5220 (IX86_BASE_CALLCVT): Helper macro.
5221 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5222 Use ix86_get_callcvt for calling convention attribute checks and avoid
5223 symbol-decoration for stdcall in TARGET_RTD case.
5224 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5226 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5229 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5231 * config/i386/sse.md (VI_128): New mode iterator.
5232 (VI12_128): Rename from SSEMODE12.
5233 (VI14_128): Rename from SSEMODE14.
5234 (VI124_128): New mode iterator.
5235 (VI24_128): Rename from SSEMODE248.
5236 (VI248_128): Rename from SSEMODE248.
5237 (SSEMODE124C8): Remove.
5238 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5239 (*sse2_<plusminus_insn><mode>3): Merge with
5240 *avx_<plusminus_insn><mode>3.
5241 (*mulv8hi3): Merge with *avx_mulv8hi3.
5242 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5243 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5244 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5245 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5246 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5247 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5248 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5249 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5250 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5251 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5252 (*<smaxmin:code>v8hi3): Ditto.
5253 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5254 (*<smaxmin:code>v16qi3): Ditto.
5255 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5256 (*sse2_eq<mode>3): Ditto.
5257 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5258 (*sse2_gt<mode>3): Ditto.
5259 (vcondv2di): Split out of vcond<mode>.
5260 (vconduv2di): Split out of vcondu<mode>.
5262 2011-04-11 Richard Guenther <rguenther@suse.de>
5264 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5265 before calling tree_low_cst.
5267 2011-04-11 Richard Guenther <rguenther@suse.de>
5269 * stor-layout.c (layout_type): Compute all array index size operations
5270 in the original type.
5271 (initialize_sizetypes): Add comment.
5272 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5274 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5276 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5278 2011-04-11 Martin Jambor <mjambor@suse.cz>
5280 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5281 of cgraph_node, handle NULL return value.
5282 (cgraph_global_info): Likewise.
5283 (cgraph_rtl_info): Likewise.
5284 * tree-inline.c (estimate_num_insns): Likewise.
5285 * gimplify.c (unshare_body): Likewise.
5286 (unvisit_body): Likewise.
5287 (gimplify_body): Likewise.
5288 * predict.c (optimize_function_for_size_p): Likewise.
5289 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5290 (call_may_clobber_ref_p_1): Likewise.
5291 * varasm.c (function_section_1): Likewise.
5292 (assemble_start_function): Likewise.
5294 2011-04-11 Martin Jambor <mjambor@suse.cz>
5296 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5298 * final.c (rest_of_clean_state): Likewise.
5299 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5300 * passes.c (pass_init_dump_file): Likewise.
5301 (execute_all_ipa_transforms): Likewise.
5302 (function_called_by_processed_nodes_p): Likewise.
5303 * predict.c (maybe_hot_frequency_p): Likewise.
5304 (probably_never_executed_bb_p): Likewise.
5305 (compute_function_frequency): Likewise.
5306 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5307 (unnest_nesting_tree_1): Likewise.
5308 (lower_nested_functions): Likewise.
5309 * tree-optimize.c (execute_fixup_cfg): Likewise.
5310 (tree_rest_of_compilation): Likewise.
5311 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5312 * tree-sra.c (ipa_early_sra): Likewise.
5313 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5314 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5315 * ipa.c (record_cdtor_fn): Likewise.
5316 * ipa-inline.c (cgraph_early_inlining): Likewise.
5317 (compute_inline_parameters_for_current): Likewise.
5318 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5319 * ipa-pure-const.c (local_pure_const): Likewise.
5320 * ipa-split.c (split_function): Likewise.
5321 (execute_split_functions): Likewise.
5322 * cgraphbuild.c (build_cgraph_edges): Likewise.
5323 (rebuild_cgraph_edges): Likewise.
5324 (cgraph_rebuild_references): Likewise.
5325 (remove_cgraph_callee_edges): Likewise.
5326 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5327 (verify_cgraph_node): Likewise.
5328 (cgraph_analyze_functions): Likewise.
5329 (cgraph_preserve_function_body_p): Likewise.
5330 (save_inline_function_body): Likewise.
5331 (save_inline_function_body): Likewise.
5332 * tree-inline.c (copy_bb): Likewise.
5333 (optimize_inline_calls): Likewise.
5335 2011-04-11 Martin Jambor <mjambor@suse.cz>
5337 PR tree-optimization/48195
5338 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5339 ipa_check_create_edge_args.
5340 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5341 ipa_check_create_edge_args.
5342 * ipa-inline.c (inline_generate_summary): Do not call
5343 ipa_check_create_node_params and ipa_check_create_edge_args.
5344 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5345 ipa_check_create_edge_args.
5347 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5349 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5351 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5352 * function.c (record_hard_reg_sets): Likewise.
5353 * ira.c (compute_regs_asm_clobbered): Likewise.
5354 * sched-deps.c (sched_analyze_1): Likewise.
5355 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5357 2011-04-09 Xinliang David Li <davidxl@google.com>
5359 PR tree-optimization/PR48484
5360 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5361 has_valid_pred lazily
5363 2011-04-09 Duncan Sands <baldrick@free.fr>
5365 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5367 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5369 * combine.c (combine_validate_cost): Adjust comments. Set registered
5370 cost of I0 to zero at the end, if any.
5372 2011-04-08 Xinliang David Li <davidxl@google.com>
5374 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5375 to insane profile data.
5377 2011-04-08 Xinliang David Li <davidxl@google.com>
5379 * ipa-cp.c (ipcp_update_profiling): Correct
5380 negative scale factor due to insane profile data.
5382 2011-04-08 Xinliang David Li <davidxl@google.com>
5384 * final.c (dump_basic_block_info): New function.
5385 (final): Dump basic block.
5386 (final_scan_insn): Remove old dump.
5388 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5391 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5394 2011-04-08 Michael Matz <matz@suse.de>
5397 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5399 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5400 * rtl.h (rebuild_jump_labels_chain): Declare.
5401 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5402 insns inserted on edges.
5404 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5406 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5407 * config/arm/arm-arches.def: New.
5408 * config/arm/arm-opts.h: New.
5409 * config/arm/genopt.sh: New.
5410 * config/arm/arm-tables.opt: New (generated).
5411 * config/arm/arm.c (arm_handle_option, arm_target_help,
5412 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5413 (all_architectures): Get most table contents from arm-arches.def.
5414 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5415 arm_selected_tune here.
5416 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5417 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5418 (march=, mcpu=, mtune=): Use Enum and Var.
5419 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5420 (arm.o): Update dependencies.
5422 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5424 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5426 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5427 (write_typed_alloc_defns): Likewise.
5428 (main): Calls write_typed_alloc_defns with output_header.
5430 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5433 * ira-color.c (setup_profitable_hard_regs): Add comments.
5434 Don't take prohibited hard regs into account.
5435 (setup_conflict_profitable_regs): Rename to
5436 get_conflict_profitable_regs.
5437 (check_hard_reg_p): Check prohibited hard regs.
5439 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5441 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5442 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5443 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5445 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5448 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5449 move from floating point to shift amount register.
5450 (emit_move_sequence): Remove secondary reload support for floating
5451 point to shift amount amount register copies.
5452 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5453 amount register copies.
5454 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5455 register, return false if mode isn't a scalar integer mode.
5456 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5458 2011-04-08 Richard Guenther <rguenther@suse.de>
5460 * gimple.c (gimple_call_flags): Remove kludge.
5462 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5464 * sel-sched.c (sel_region_init): Move call to
5465 sel_setup_region_sched_flags after setup_current_loop_nest.
5467 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5469 PR rtl-optimization/48272
5470 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5471 init_insn_reg_pressure_info. Adjust a caller.
5472 * sched-int.h (init_insn_reg_pressure_info): Declare.
5473 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5474 when sched-pressure is enabled.
5476 2011-04-08 Richard Guenther <rguenther@suse.de>
5478 * gimple.c (gimple_set_modified): Do not queue calls to
5479 MODIFIED_NORETURN_CALLS here ...
5480 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5482 2011-04-08 Richard Guenther <rguenther@suse.de>
5485 * toplev.c (lang_dependent_init): Do not open asm_out_file
5486 in WPA mode, nor perform debug machinery initialization.
5487 (finalize): Do not unlink asm_out_file in WPA mode.
5489 2011-04-08 Richard Guenther <rguenther@suse.de>
5491 * gimple.h (gimple_call_fntype): New function.
5492 (gimple_call_return_type): Use it.
5493 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5494 * gimple-low.c (gimple_check_call_args): Likewise.
5495 * gimple.c (gimple_call_flags): Likewise.
5496 (gimple_call_arg_flags): Likewise.
5497 (gimple_call_return_flags): Likewise.
5498 * tree-cfg.c (verify_gimple_call): Likewise.
5499 (do_warn_unused_result): Likewise.
5500 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5501 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5503 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5505 PR rtl-optimization/48235
5506 * sel-sched.c (code_motion_process_successors): Recompute the last
5507 insn in basic block if control flow changed.
5508 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5509 Update condition for ilist_remove.
5511 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5513 PR rtl-optimization/48302
5514 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5515 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5516 it to record added preheader blocks.
5517 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5518 on to sel_add_loop_preheaders.
5519 (sel_region_init): Move call to setup_current_loop_nest after
5522 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5525 * cfgloop.h (loop_has_exit_edges): New helper.
5526 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5528 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5529 that have no exit edges.
5531 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5533 PR rtl-optimization/48442
5534 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5535 all callers. Adjust assert.
5537 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5539 PR tree-optimization/48377
5540 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5541 is_packed to true even for types with smaller TYPE_ALIGN than
5544 2011-04-08 Richard Guenther <rguenther@suse.de>
5547 * doc/tm.texi: Re-generate.
5549 2011-04-08 Wei Guozhi <carrot@google.com>
5552 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5553 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5554 * config/arm/arm.md (*push_multi): Change the length computation to
5557 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5559 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5560 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5561 * doc/tm.texi: Regenerate.
5562 * system.h (ASM_OUTPUT_BSS): Poison.
5563 * varasm.c (asm_output_bss): Remove function.
5564 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5566 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5567 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5568 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5569 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5571 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5573 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5575 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5577 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5579 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5582 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5584 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5585 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5586 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5588 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5589 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5590 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5591 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5592 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5593 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5594 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5595 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5596 options. Don't map other m68k options manually. Don't handle
5597 old-style options as canonical.
5598 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5599 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5601 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5603 * basic-block.h (force_nonfallthru): Move to...
5604 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5605 (force_nonfallthru): ...here.
5606 * cfghooks.c (force_nonfallthru): New function.
5607 * cfgrtl.c (force_nonfallthru): Rename into...
5608 (rtl_force_nonfallthru): ...this.
5609 (commit_one_edge_insertion): Do not set AUX field.
5610 (commit_edge_insertions): Do not discover new basic blocks.
5611 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5612 (cfg_layout_rtl_cfg_hooks): Likewise.
5613 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5614 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5615 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5617 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5619 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5622 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5624 * config/i386/sse.md: Update copyright year.
5625 (avxcvtvecmode): Remove.
5626 (sse_movhlps): Merge with *avx_movhlps.
5627 (sse_movlhps): Merge with *avx_movlhps.
5628 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5629 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5630 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5631 (sse_loadhps): Merge with *avx_loadhps.
5632 (sse_storelps): Merge with *avx_storelps.
5633 (sse_loadlps): Merge with *avx_loadlps.
5634 (sse_movss): Merge with *avx_movss.
5635 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5636 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5637 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5638 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5639 (vec_set<mode>_0): Ditto.
5640 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5641 (sse4_1_insertps): Merge with *avx_insertps.
5642 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5643 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5644 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5645 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5646 (sse2_storehpd): Merge with *avx_storehpd.
5647 (sse2_loadhpd): Merge with *avx_loadhpd.
5648 (sse2_loadlpd): Merge with *avx_loadlpd.
5649 (sse2_movsd): Merge with *avx_movsd.
5650 (*vec_concatv2df): Merge with *vec_concatv2df.
5652 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5655 * combine.c (combine_instructions): Add last_combined_insn,
5656 update it if insn is after it, pass it to all try_combine calls.
5657 (try_combine): Add last_combined_insn parameter, pass it instead of
5658 i3 to propagate_for_debug.
5660 2011-04-07 Nick Clifton <nickc@redhat.com>
5662 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5663 to handle MDR <-> data register transfers.
5664 (movhi_internal): Likewise.
5666 2011-04-07 Alan Modra <amodra@gmail.com>
5668 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5669 previous stack info.
5671 2011-04-07 Tom de Vries <tom@codesourcery.com>
5674 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5675 flow_find_cross_jump. Swap variables to implement backward replacement.
5676 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5678 2011-04-07 Tom de Vries <tom@codesourcery.com>
5681 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5682 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5684 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5685 src1 or src2. Redirect edges to the last basic block. Update
5686 frequency and count on multiple basic blocks in case of fallthru.
5688 2011-04-07 Tom de Vries <tom@codesourcery.com>
5691 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5693 (old_insns_match_p): Change return type. Replace return false/true
5694 with return dir_none/dir_both. Use can_replace_by.
5695 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5696 direction from dir_p. Register replacement direction in dir, last_dir
5697 and afterlast_dir. Handle new return type of old_insns_match_p using
5698 merge_dir. Return replacement direction in dir_p.
5699 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5700 return type of old_insns_match_p.
5701 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5702 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5703 flow_find_cross_jump.
5704 * basic-block.h (enum replace_direction): New type.
5705 (flow_find_cross_jump): Add parameter to declaration.
5707 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5709 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5710 (AVXMODEDCVTPS2DQ): Ditto.
5711 (VEC_FLOAT_MODE): Ditto.
5712 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5713 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5714 (<any_logic:code><mode>3): Use VF mode iterator.
5715 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5716 Use VF mode iterator.
5717 (copysign<mode>3): Use VF mode iterator.
5718 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5719 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5720 (*<any_logic:code><MODEF:mode>3): Merge with
5721 *avx_<any_logic:code><MODEF:mode>3.
5722 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5723 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5724 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5725 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5726 (sse2_cvtdq2ps): Use %v modifier.
5727 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5728 (avx_cvtps2dq<avxmodesuffix>): Remove.
5729 (sse2_cvtps2dq): Use %v modifier.
5730 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5731 (avx_cvttps2dq<avxmodesuffix>): Remove.
5732 (sse2_cvttps2dq): Use %v modifier.
5733 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5734 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5735 (sse2_cvtsd2siq): Fix insn template.
5736 (sse2_cvtsd2siq_2): Ditto.
5737 (sse2_cvttsd2siq): Ditto.
5738 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5739 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5741 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5743 * gcov-io.c: Use GCC Runtime Library Exception.
5745 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5748 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5749 as base_reg whatever register reg has been eliminated to, instead
5750 of hardcoding STACK_POINTER_REGNUM.
5752 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5754 * doc/tm.texi.in: Document C target hooks as separate from general
5756 * doc/tm.texi: Regenerate.
5757 * genhooks.c (struct hook_desc): Add docname field.
5758 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5760 (hook_array): Include c-target.def.
5761 (emit_documentation): Use docname field in output.
5762 (emit_init_macros): Take docname argument. Only emit definitions
5763 for hooks matching docname.
5764 (main): Expect additional arguments in all cases. Pass argument
5765 to emit_init_macros.
5766 * target.def: Move initial macro definitions and comments to
5767 target-hooks-macros.h.
5768 (gcc_targetcm): Move to c-family/c-target.def.
5769 * target.h (targetcm): Move declaration to c-family/c-target.h.
5770 * targhooks.c (default_handle_c_option): Move to
5772 * targhooks.h (default_handle_c_option): Move declaration to
5773 c-family/c-common.h.
5774 * target-hooks-macros.h: New file.
5775 * config.gcc (target_has_targetcm): Define and use to add to
5776 c_target_objs and cxx_target_objs.
5777 * config/default-c.c: New file.
5778 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5779 of target.h and target-def.h.
5780 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5781 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5782 darwin_check_cfstring_format_arg): Make static.
5783 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5784 TARGET_STRING_OBJECT_REF_TYPE_P,
5785 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5786 * config/darwin-protos.h (darwin_objc_construct_string,
5787 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5789 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5790 TARGET_STRING_OBJECT_REF_TYPE_P,
5791 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5792 * config/t-darwin (darwin-c.o): Update dependencies.
5793 * system.h (TARGET_HAS_TARGETCM): Poison.
5794 * Makefile.in (TARGET_H): Update.
5795 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5796 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5797 (default-c.o): New target.
5798 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5799 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5800 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5802 (build/genhooks.o): Update dependencies.
5804 2011-04-06 Richard Guenther <rguenther@suse.de>
5806 * ipa-inline.c (enum inlining_mode): Remove.
5807 (cgraph_flatten): Use some other token.
5808 (cgraph_edge_early_inlinable_p): New function, split out from ...
5809 (cgraph_perform_always_inlining): New function, split out from ...
5810 (cgraph_decide_inlining_incrementally): ... here.
5811 (cgraph_mark_inline_edge): Adjust.
5812 (cgraph_early_inlining): Re-structure.
5813 (pass_early_inline): Require SSA form.
5815 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5816 Julian Brown <julian@codesourcery.com>
5817 Mark Shinwell <shinwell@codesourcery.com>
5819 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5820 LO_REGS only for Thumb-1.
5821 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5822 be used in short instructions when optimising for size on Thumb-2.
5824 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5826 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5827 associated with user returns to be preserved.
5829 2011-04-06 Tristan Gingold <gingold@adacore.com>
5831 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5832 symbol_queue_size, DBXOUT_DECR_NESTING,
5833 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5834 if XCOFF_DEBUGGING_INFO.
5836 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5838 * config/i386/i386.md (attribute isa): New.
5839 (attribute enabled): New.
5840 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5841 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5842 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5843 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5844 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5845 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5846 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5847 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5849 * config/i386/sse.md (VF): New mode iterator.
5853 (SSEMODEF4): Remove.
5854 (attribute sse): Handle V8SF and V4DF modes.
5855 (<absneg:code><mode>2): Use VF mode iterator.
5856 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5858 (<plusminus_insn><mode>3): Use VF mode iterator.
5859 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5860 Use VF mode iterator.
5861 (<sse>_vm<plusminus_insn><mode>3): Merge with
5862 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5863 (mul<mode>3): Use VF mode iterator.
5864 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5865 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5867 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5868 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5869 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5870 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5872 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5873 Use VF1 mode iterator.
5874 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5875 (sqrt<VF2:mode>2): New expander.
5876 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5877 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5878 and sqrtv2df2. Use VF mode iterator.
5879 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5881 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5882 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5883 Use VF1 mode iterator.
5884 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5885 (<smaxmin:code><mode>3): Use VF mode iterator.
5886 (*<smaxmin:code><mode>3_finite): Merge with
5887 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5888 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5889 (<sse>_vm<smaxmin:code><mode>2): Merge with
5890 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5891 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5893 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5895 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5896 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5897 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5898 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5899 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5901 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5902 Use VF_128 mode iterator.
5903 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5905 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5906 VF_128 mode iterator.
5907 (vcond<mode>): Use VF mode iterator.
5908 * config/i386/predicates.md (sse_comparison_operator): Merge with
5909 avx_comparison_float_operator. Do not declare as special_predicate.
5910 * config/i386/i386.c (struct builtin_description): Update for renamed
5912 (ix86_expand_args_builtin): Ditto.
5913 (ix86_expand_sse_compare_mask): Ditto.
5915 2011-04-06 Richard Guenther <rguenther@suse.de>
5917 * tree-inline.c (estimate_num_insns): For calls simply account
5918 for all passed arguments and a used return value.
5920 2011-04-06 Richard Guenther <rguenther@suse.de>
5922 PR tree-optimization/47663
5923 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5924 call_stmt_time fields.
5925 (cgraph_edge_inlinable_p): Declare.
5926 (cgraph_edge_recursive_p): New inline function.
5927 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5928 (cgraph_clone_edge): Copy it.
5929 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5930 Account for call stmt time.
5931 (cgraph_estimate_time_after_inlining): Take edge argument.
5932 (cgraph_estimate_edge_growth): Account call stmt size.
5933 (cgraph_estimate_size_after_inlining): Take edge argument.
5934 (cgraph_mark_inline_edge): Adjust.
5935 (cgraph_check_inline_limits): Likewise.
5936 (cgraph_recursive_inlining_p): Remove.
5937 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5938 (cgraph_decide_recursive_inlining): Take edge argument and
5940 (cgraph_decide_inlining_of_small_functions): Do not avoid
5941 diags for recursive inlining here.
5942 (cgraph_flatten): Adjust.
5943 (cgraph_decide_inlining_incrementally): Likewise.
5944 (estimate_function_body_sizes): Remove call cost handling.
5945 (compute_inline_parameters): Initialize caller edge call costs.
5946 (cgraph_estimate_edge_growth): New function.
5947 (cgraph_estimate_growth): Use it.
5948 (cgraph_edge_badness): Likewise.
5949 (cgraph_check_inline_limits): Take an edge argument.
5950 (cgraph_decide_inlining_of_small_functions): Adjust.
5951 (cgraph_decide_inlining): Likewise.
5952 * tree-inline.c (estimate_num_insns): Only account for call
5953 return value if it is used.
5954 (expand_call_inline): Avoid diagnostics on recursive inline
5956 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5957 (input_edge): Input edge call costs.
5959 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5961 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5963 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5965 * doc/invoke.texi (Spec Files): Fix typo.
5967 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5969 * profile.c (branch_prob): Move declaration of local variable. Remove
5970 obsolete ??? comment. Expand the location explicitly instead of using
5971 the LOCATION_FILE and LOCATION_LINE macros.
5973 2011-04-06 Wei Guozhi <carrot@google.com>
5976 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5977 (arm_cond_branch): Likewise.
5978 (arm_cond_branch_reversed): Likewise.
5979 (arm_jump): Likewise.
5980 (push_multi): Likewise.
5981 * config/arm/constraints.md (Py): New constraint.
5983 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5986 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5988 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5989 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5990 #ifdef DBX_DEBUGGING_INFO.
5992 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5995 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5996 if old and new states differ.
5998 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6000 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6001 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6002 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6003 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6004 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6006 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6007 ColdFire options to -mcpu= options.
6009 2011-04-05 Jeff Law <law@redhat.com>
6011 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6012 check if BB is a successor of LOOP->header and return
6013 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6015 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6017 * cprop.c (struct reg_use): Remove.
6018 (reg_use_table): Make an array of RTX.
6019 (find_used_regs, constprop_register, local_cprop_pass,
6020 bypass_block): Simplify users of reg_use_table.
6021 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6022 on one of the uses found by find_used_regs.
6024 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6027 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6030 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6032 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6034 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6036 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6039 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6041 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6043 * combine.c: Include obstack.h.
6044 (struct insn_link): Define.
6045 (uid_log_links): Adjust type.
6046 (FOR_EACH_LOG_LINK): New macro.
6047 (insn_link_obstack): Declare.
6048 (alloc_insn_link): Define.
6049 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6050 type of link variables.
6051 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6052 (try_combine, record_promoted_values, distribute_notes): Likewise.
6053 (distribute_links): Likewise. Tweak prototype.
6054 (clear_log_links): Delete.
6055 (adjust_for_new_dest): Call alloc_insn_link.
6056 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6058 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6060 * gcse.c (modify_mem_list): Convert to an array of VECs.
6061 (canon_modify_mem_list, compute_transp): Tweak formatting.
6062 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6063 (load_killed_in_block_p): Likewise.
6064 (record_last_mem_set_info): Likewise.
6065 (clear_modify_mem_tables): Likewise.
6067 2011-04-05 Tom de Vries <tom@codesourcery.com>
6070 * function.c (emit_use_return_register_into_block): Only define if
6073 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6075 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6077 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6079 * config/rx/rx-opts.h: New.
6080 * config/rx/rx.c (rx_cpu_type): Remove.
6081 (rx_handle_option): Don't assert that global structures are in
6082 use. Access variables via opts pointer. Defer most handling of
6083 OPT_mint_register_. Use error_at.
6084 (rx_option_override): Handle deferred OPT_mint_register_ here.
6085 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6086 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6087 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6088 (rx_cpu_types): New Enum and EnumValue entries.
6089 (mint-register=): Use Defer and use Var accordingly.
6091 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6093 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6094 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6095 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6097 (debug_free_queue, debug_nesting, symbol_queue_index):
6099 * dbxout.c: ...to here. Make static.
6101 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6103 * gcse.c (modify_pair): Define. Define a VEC of it.
6104 (canon_modify_mem_list): Convert to an array of VECs.
6105 (free_insn_expr_list_list): Delete.
6106 (clear_modify_mem_tables): Call VEC_free instead.
6107 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6108 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6109 (canon_list_insert, compute_transp): Likewise.
6111 2011-04-05 Tom de Vries <tom@codesourcery.com>
6114 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6117 2011-04-05 Tom de Vries <tom@codesourcery.com>
6120 * function.c (emit_use_return_register_into_block): New function.
6121 (thread_prologue_and_epilogue_insns): Use
6122 emit_use_return_register_into_block.
6124 2011-04-05 Tom de Vries <tom@codesourcery.com>
6127 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6130 2011-04-05 Tom de Vries <tom@codesourcery.com>
6132 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6134 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6136 * config/arm/arm.md (define_constants for unspec): Replace with
6138 (define_constants for unspecv): Replace with define_c_enum.
6139 * config/arm/neon.md (define_constants for unspec): Replace with
6142 2011-04-04 Richard Henderson <rth@redhat.com>
6145 * dwarf2out.c (output_line_info): Always emit line info from
6146 at least one section.
6147 (dwarf2out_init): Create text_section_line_info here ...
6148 (set_cur_line_info_table): ... not here.
6150 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6153 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6156 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6158 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6160 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6161 (expr_equiv_p): Remove.
6162 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6163 (hash_scan_set): Update call to insert_set_in_table.
6164 (dump_hash_table): Dump <dest, src> pair.
6165 (lookup_set): Simplify. Lookup <dest, src> pair.
6166 (compute_transp): Remove, fold heavily simplified code into...
6167 (compute_local_properties): ...here. Expect COMP and TRANSP
6169 (find_avail_set): Take set directly from struct expr.
6170 (find_bypass-set): Likewise.
6171 (bypass_block): Likewise.
6172 (cprop_insn): Likewise. Remove redundant INSN_P test.
6174 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6175 checks on form of COND from find_implicit_sets to here.
6176 (find_implicit_sets): Cleanup control flow. Split critical edges
6177 if it exposes implicit sets. Allocate/resize implicit_sets as
6179 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6180 changed something. Run df_analyze after find_implicit_sets if any
6181 edges were split. Do not allocate implicit_sets here.
6183 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6184 (gcse_obstack): Renamed to cprop_obstack.
6185 (GNEW, GNEWVEC, GNEWVAR): Remove.
6187 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6188 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6189 (gcse_alloc): Likewise, and rename to cprop_alloc.
6190 (alloc_gcse_men, free_gcse_mem): Remove.
6191 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6192 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6193 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6195 * cprop.c (oprs_not_set_p): Remove.
6196 (mark_set, mark_clobber): Remove.
6197 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6198 (reg_not_set_p): New function.
6199 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6200 (cprop_insn): Likewise.
6201 (cprop_jump): Use FOR_EACH_EDGE.
6203 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6206 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6207 (rank_for_schedule): Use scheduled_insns vector instead of
6208 last_scheduled_insn.
6209 (ok_for_early_queue_removal): Likewise.
6210 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6212 (choose_ready): Likewise.
6213 (commit_schedule): Use VEC_iterate.
6214 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6215 a dbg_cnt, use it and ensure the first insn is in the ready list.
6216 (haifa_sched_init): Allocate scheduled_insns.
6217 (sched_extend_ready_list): Don't allocate it; reserve space.
6218 (haifa_sched_finish): Free it.
6220 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6222 * optc-gen.awk: Always remove type from Variable entry before
6223 recording in var_seen.
6225 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6227 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6228 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6229 call to tidy_fallthru_edges.
6231 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6233 * doc/options.texi (ToLower): Document.
6234 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6235 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6236 * opts.h (cl_option): Add cl_tolower field.
6237 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6238 arguments with lowercase strings.
6239 * config/rx/rx.opt (mcpu=): Add ToLower.
6240 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6243 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6245 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6247 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6249 * config/vax/vax.c: Include reload.h.
6251 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6253 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6254 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6255 (sparc_preferred_reload_class): New function.
6257 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6260 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6261 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6263 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6265 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6266 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6268 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6270 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6271 (ASM_OUTPUT_ALIGNED_BSS): Define.
6273 2011-04-03 Michael Matz <matz@suse.de>
6275 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6276 and next_slot members.
6277 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6278 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6279 (lto_streamer_cache_append): Declare.
6280 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6281 unsigned index, remove offset parameter, ensure that we append
6282 or update existing entries.
6283 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6284 parameter, update next_slot for append.
6285 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6287 (lto_streamer_cache_insert_at): Likewise.
6288 (lto_streamer_cache_append): New function.
6289 (lto_streamer_cache_lookup): Use unsigned index.
6290 (lto_streamer_cache_get): Likewise.
6291 (lto_record_common_node): Don't test tree_node_can_be_shared.
6292 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6293 (lto_streamer_cache_delete): Don't free offsets member.
6294 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6295 (lto_output_string_with_length): Use lto_output_data_stream.
6296 (lto_output_tree_header): Remove ix parameter, don't write it.
6297 (lto_output_builtin_tree): Likewise.
6298 (lto_write_tree): Adjust callers to above, don't track and write
6299 offset, write unsigned index.
6300 (output_unreferenced_globals): Don't emit all global vars.
6301 (write_global_references): Use unsigned indices.
6302 (lto_output_decl_state_refs): Likewise.
6303 (write_symbol): Likewise.
6304 * lto-streamer-in.c (lto_input_chain): Move earlier.
6305 (input_function): Use unsigned index.
6306 (input_alias_pairs): Don't read and then ignore all global vars.
6307 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6308 don't pass it back, use lto_streamer_cache_append.
6309 (lto_register_var_decl_in_symtab): Use unsigned index.
6310 (lto_register_function_decl_in_symtab): Likewise.
6311 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6313 (lto_get_builtin_tree): Don't read index, use
6314 lto_streamer_cache_append.
6315 (lto_read_tree): Adjust call to lto_materialize_tree.
6317 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6318 don't use function calls in arguments to MIN.
6320 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6323 * gimple.c (gimple_type_leader_entry): Mark deletable.
6325 2011-04-03 Alan Modra <amodra@gmail.com>
6327 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6329 2011-04-03 Michael Matz <matz@suse.de>
6331 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6333 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6335 2011-04-03 Michael Matz <matz@suse.de>
6337 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6338 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6339 without function context.
6340 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6341 current_function_decl and cfun.
6343 2011-04-03 Michael Matz <matz@suse.de>
6345 * tree.c (decl_init_priority_insert): Don't create entry for
6347 (decl_fini_priority_insert): Ditto.
6348 (fields_compatible_p, find_compatible_field): Remove.
6349 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6350 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6352 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6354 * combine.c (try_combine): Remove useless local variable.
6356 2011-04-03 Richard Guenther <rguenther@suse.de>
6357 Ira Rosen <ira.rosen@linaro.org>
6359 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6360 non-variable offsets and compare the remaining bases of the two
6361 accesses instead of looking for exact same data-ref.
6363 2011-04-02 Kai Tietz <ktietz@redhat.com>
6366 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6368 * i386.c (ix86_is_msabi_thiscall): New helper function.
6369 (ix86_is_type_thiscall): New helper function.
6370 (ix86_comp_type_attributes): Handle thiscall for method-functions
6372 (init_cumulative_args): Likewise.
6373 (find_drap_reg): Likewise.
6374 (ix86_static_chain): Likewise.
6375 (x86_this_parameter): Likewise.
6376 (x86_output_mi_thunk): Likewise.
6378 2011-04-01 Olivier Hainque <hainque@adacore.com>
6379 Nicolas Setton <setton@adacore.com>
6380 Eric Botcazou <ebotcazou@adacore.com>
6382 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6383 (add_gnat_descriptive_type_attribute): New function.
6384 (gen_array_type_die): Call it.
6385 (gen_enumeration_type_die): Likewise.
6386 (gen_struct_or_union_type_die): Likewise.
6387 (modified_type_die): Likewise.
6388 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6389 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6390 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6392 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6395 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6396 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6399 2011-03-17 Richard Guenther <rguenther@suse.de>
6402 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6403 origin for decls in other ltrans units.
6404 (input_varpool_node): Likewise.
6406 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6409 * expr.c (expand_assignment): Handle all possibilities
6410 if TO_RTX is CONCAT.
6411 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6412 (store_split_bit_field): If SUBREG_REG (op0) or
6413 op0 itself has smaller mode than word, return it
6414 for offset 0 and const0_rtx for out-of-bounds stores.
6415 If word is const0_rtx, skip it.
6417 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6419 * config/h8300/h8300.c (print_operand_address): Rename to...
6420 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6421 Call h8300_print_operand and h8300_print_operand_address instead of
6422 print_operand and print_operand_address. Declare.
6423 (print_operand): Renake to...
6424 (h8300_print_operand): ...this. Make static. Adjust comments.
6425 Call h8300_print_operand instead of print_operand. Declare.
6426 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6427 (h8300_register_move_cost): Likewise.
6428 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6429 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6430 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6431 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6432 * config/h8300/h8300-protos.h (print_operand): Delete.
6433 (print_operand_address): Delete.
6435 2011-04-01 Richard Henderson <rth@redhat.com>
6438 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6439 in strict mode before dwarf4. Re-order tests to early out
6440 before switching sections.
6442 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6444 * config/h8300/constraints.md: New file.
6445 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6446 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6447 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6448 * config/h8300/predicates.md (bit_operand): Likewise.
6449 (incdec_operand): Use satisfies_constraint_M and
6450 satisfies_constraint_O. Don't use C code block.
6451 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6452 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6453 (compute_mov_length): Use satisfies_constraint_G.
6454 (fix_bit_operand): Use satisfies_constraint_U.
6455 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6456 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6457 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6458 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6459 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6460 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6461 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6462 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6463 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6464 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6465 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6466 (EXTRA_MEMORY_CONSTRAINT): Delete.
6468 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6469 Michael Meissner <meissner@linux.vnet.ibm.com>
6472 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6473 operands, as per the specifications.
6475 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6476 (vec_extract_evenv4sf): Ditto.
6477 (vec_extract_evenv8hi): Ditto.
6478 (vec_extract_evenv16qi): Ditto.
6479 (vec_extract_oddv4si): Ditto.
6481 2011-03-31 Mark Wielaard <mjw@redhat.com>
6483 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6484 high_pc attribute if the CU has no associated code. Only output
6485 DW_AT_entry_pc for CU if not generating strict dwarf and
6488 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6490 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6491 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6493 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6494 * final.c (final_start_function): Call the new function rather
6495 than using a NULL argument for dwarf2out_frame_debug.
6497 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6498 that contains the prologue.
6500 * haifa-sched.c (queue_insn): New arg REASON. All callers
6501 changed. Print it in debugging output.
6503 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6505 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6506 Split most of the code into...
6507 (begin_move_insn): ... here. New function.
6508 (ebb_sched_info): Add a pointer to it.
6509 * haifa-sched.c (scheduled_insns): New static variable.
6510 (sched_extend_ready_list): Allocate it.
6511 (schedule_block): Use it to record the order of scheduled insns.
6512 Perform RTL changes to move insns only after all scheduling
6513 decisions have been made.
6514 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6515 begin_move_insn field.
6516 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6517 * sched-int.h (struct haifa_sched_info): Remove second argument
6518 from begin_schedule_ready hook. Add new member begin_move_insn.
6519 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6520 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6522 * haifa-sched.c (prune_ready_list): New function, broken out of
6524 (schedule_block): Use it.
6526 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6528 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6530 2011-04-01 Kai Tietz <ktietz@redhat.com>
6532 * config.gcc (*-*-mingw*): Allow as option the
6533 posix threading model.
6534 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6535 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6537 (CPP_SPEC): Add pthread/no-pthread handling.
6538 (LIB_SPEC): Likewise.
6539 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6540 (LIB_SPEC): Likewise.
6541 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6542 flag to pass -pthread option for shared libgcc build.
6543 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6544 for shared libgcc build.
6545 * config/i386/t-mingw-pthread: New file.
6546 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6547 New define to enable use of library pthread by default.
6548 * config/i386/mingw.opt (pthread): New driver option.
6549 (no-pthread): New driver option.
6550 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6551 * config/i386/mingw-w64.opt: Likewise.
6553 2011-04-01 Gary Funck <gary@intrepid.com>
6555 * c-decl.c (grokdeclarator): Fix formatting.
6557 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6559 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6560 instead of n_operands.
6561 (set_storage_via_setmem): Likewise.
6562 * optabs.c (maybe_gen_insn): Likewise.
6563 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6564 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6565 (mips_expand_builtin_direct): Likewise.
6566 * config/spu/spu.c (expand_builtin_args): Likewise.
6568 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6570 * recog.h (insn_data_d): Add n_generator_args.
6571 * genoutput.c (data): Likewise.
6572 (output_insn_data): Print it.
6573 (max_opno, num_dups): Delete.
6574 (scan_operands): Just fill in "d->operand[...]".
6575 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6577 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6579 * gensupport.h (pattern_stats): New structure.
6580 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6581 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6582 (max_operand_1, max_operand_vec): Delete.
6583 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6585 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6587 * emit-rtl.c (emit_pattern_after_setloc): New function.
6588 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6589 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6590 (emit_pattern_after): New function.
6591 (emit_insn_after, emit_jump_insn_after): Call it.
6592 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6593 (emit_pattern_before_setloc): New function.
6594 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6595 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6597 (emit_pattern_before): New function.
6598 (emit_insn_before, emit_jump_insn_before): Call it.
6599 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6601 2011-03-31 Richard Henderson <rth@redhat.com>
6603 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6604 (dw_separate_line_info_entry): Remove.
6605 (enum dw_line_info_opcode): New.
6606 (dw_line_info_entry): Use it.
6607 (dw_line_info_table, dw_line_info_table_p): New.
6608 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6609 (line_info_table, line_info_label_num): Remove.
6610 (line_info_table_in_use): Remove.
6611 (separate_line_info_table): Remove.
6612 (separate_line_info_table_allocated): Remove.
6613 (separate_line_info_table_in_use): Remove.
6614 (LINE_INFO_TABLE_INCREMENT): Remove.
6615 (line_info_label_num): New.
6616 (cur_line_info_table): New.
6617 (text_section_line_info, cold_text_section_line_info): New.
6618 (separate_line_info): New.
6619 (SEPARATE_LINE_CODE_LABEL): Remove.
6620 (print_dwarf_line_table): Remove.
6621 (debug_dwarf): Don't dump it.
6622 (output_one_line_info_table): New.
6623 (output_line_info): Use it.
6624 (new_line_info_table): New.
6625 (set_cur_line_info_table): New.
6626 (dwarf2out_switch_text_section): Use it.
6627 (dwarf2out_begin_function): Likewise.
6628 (push_dw_line_info_entry): New.
6629 (dwarf2out_source_line): Rewrite for new line info tables.
6630 (dwarf2out_init): Remove dead initailizations.
6632 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6634 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6636 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6637 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6638 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6639 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6640 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6641 * opt-functions.awk (flag_init, switch_bit_fields): New.
6642 (switch_flags): Don't handle flags moved to bit-fields. Don't
6643 generate CL_MISSING_OK or CL_SAVE.
6644 * optc-gen.awk: Update to generate bit-field output as well as
6646 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6647 bit-field instead of CL_REJECT_DRIVER flag.
6648 * opts-common.c (generate_canonical_option,
6649 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6650 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6651 instead of CL_REJECT_NEGATIVE flag.
6652 * toplev.c (print_switch_values): Use cl_report bit-field instead
6655 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6657 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6658 a zero minimum index only if it is redundant.
6660 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6662 PR rtl-optimization/48381
6663 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6664 instead of ira_class_hard_reg_index for calculating conflicting
6667 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6669 * cprop.c: Clean up hash table building.
6670 (reg_avail_info): Remove.
6671 (oprs_available_p): Remove.
6672 (record_last_reg_set_info): Remove.
6673 (record_last_set_info): Remove.
6674 (reg_available_p): New function.
6675 (gcse_constant_p): Do not treat unfolded conditions as constants.
6676 (make_set_regs_unavailable): New function.
6677 (hash_scan_set): Simplify with new reg_available_p.
6678 (compute_hash_table_work): Traverse insns stream only once.
6679 Do not compute reg_avail_info. Traverse insns in reverse order.
6680 Record implicit sets after recording explicit sets from the block.
6682 2011-03-31 Michael Matz <matz@suse.de>
6684 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6686 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6688 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6689 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6690 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6691 (h8300_mode_dependent_address_p): New function.
6692 (h8300_get_index): Make static.
6694 2011-03-31 Jeff Law <law@redhat.com>
6696 * reload1.c (elimination_effects): Fix typo in recent change.
6698 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6699 typo potentially leading to null pointer dereference.
6701 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6702 (setup_save_areas): Corresponding changes to avoid useless
6705 * jump.c (reversed_comparison_code_parts): Avoid successive return
6706 statements when REVERSE_CONDITION is defined.
6708 * expr.c (expand_assignment): Avoid useless assignments.
6709 (expand_expr_real_1): Likewise.
6710 (expand_expr_real_2): Avoid useless statements.
6712 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6714 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6716 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6719 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6721 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6724 * doc/tm.texi.in (TARGET_VERSION): Remove.
6725 * doc/tm.texi: Regenerate.
6726 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6727 * collect2.c (main): Don't use TARGET_VERSION.
6728 * mips-tdump.c (main): Don't use TARGET_VERSION.
6729 * mips-tfile.c (main): Don't use TARGET_VERSION.
6730 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6731 * config/rs6000/vxworksae.h: Remove.
6732 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6733 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6734 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6735 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6736 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6737 * config/arm/arm.h (TARGET_VERSION): Remove.
6738 * config/arm/coff.h (TARGET_VERSION): Remove.
6739 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6740 * config/arm/elf.h (TARGET_VERSION): Remove.
6741 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6742 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6743 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6744 * config/arm/pe.h (TARGET_VERSION): Remove.
6745 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6746 * config/arm/semi.h (TARGET_VERSION): Remove.
6747 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6748 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6749 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6750 * config/avr/avr.h (TARGET_VERSION): Remove.
6751 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6752 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6753 * config/frv/frv.h (TARGET_VERSION): Remove.
6754 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6755 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6756 * config/i386/darwin.h (TARGET_VERSION): Remove.
6757 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6758 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6759 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6760 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6761 * config/i386/gnu.h (TARGET_VERSION): Remove.
6762 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6763 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6764 * config/i386/linux.h (TARGET_VERSION): Remove.
6765 * config/i386/linux64.h (TARGET_VERSION): Remove.
6766 * config/i386/lynx.h (TARGET_VERSION): Remove.
6767 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6768 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6769 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6770 * config/i386/netware.h (TARGET_VERSION): Remove.
6771 * config/i386/nto.h (TARGET_VERSION): Remove.
6772 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6773 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6774 * config/ia64/elf.h (TARGET_VERSION): Remove.
6775 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6776 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6777 * config/ia64/linux.h (TARGET_VERSION): Remove.
6778 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6779 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6780 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6781 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6782 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6783 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6784 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6785 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6786 * config/m68k/linux.h (TARGET_VERSION): Remove.
6787 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6788 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6789 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6790 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6791 * config/mep/mep.h (TARGET_VERSION): Remove.
6792 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6793 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6794 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6795 * config/mips/linux.h (TARGET_VERSION): Remove.
6796 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6797 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6798 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6799 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6800 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6801 * config/pa/pa.h (TARGET_VERSION): Remove.
6802 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6803 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6804 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6805 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6806 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6807 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6808 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6809 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6810 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6811 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6812 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6813 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6814 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6815 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6816 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6817 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6818 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6819 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6820 * config/s390/linux.h (TARGET_VERSION): Remove.
6821 * config/s390/s390.h (TARGET_VERSION): Remove.
6822 * config/s390/tpf.h (TARGET_VERSION): Remove.
6823 * config/score/score.h (TARGET_VERSION): Remove.
6824 * config/sh/linux.h (TARGET_VERSION): Remove.
6825 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6826 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6827 * config/sh/sh.h (TARGET_VERSION): Remove.
6828 * config/sh/sh64.h (TARGET_VERSION): Remove.
6829 * config/sh/superh.h (TARGET_VERSION): Remove.
6830 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6831 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6832 * config/sparc/linux.h (TARGET_VERSION): Remove.
6833 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6834 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6835 TARGET_NAME32, TARGET_NAME): Remove.
6836 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6837 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6838 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6839 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6840 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6841 * config/spu/spu.h (TARGET_VERSION): Remove.
6842 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6843 * config/v850/v850.h (TARGET_VERSION): Remove.
6844 * config/vax/linux.h (TARGET_VERSION): Remove.
6845 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6846 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6847 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6849 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6852 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6853 frame-related from frame-unrelated adjustments to the stack pointer.
6855 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6857 * common.opt (fdebug-types-section): Move earlier.
6858 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6860 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6862 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6865 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6867 * tree.h (CASE_CHAIN): Define.
6868 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6869 (gimple_redirect_edge_and_branch): Likewise.
6871 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6874 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6877 2011-03-30 Jeff Law <law@redhat.com>
6879 * PR bootstrap/48371
6880 * reload1.c (reload): Fix botch in last change.
6882 * reload.h (struct reload): Fix typo introduced in last change.
6884 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6886 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6887 Undocumented. Remove help text.
6888 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6891 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6893 * doc/options.texi (NegativeAlias): Document.
6894 (Alias): Mention NegativeAlias.
6895 * opt-functions.awk: Handle NegativeAlias.
6896 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6897 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6898 * opts.h (CL_NEGATIVE_ALIAS): Define.
6899 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6900 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6902 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6904 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6905 mno-spe and mno-isel instead of mspe=no and -misel=no.
6907 2011-03-29 Mark Wielaard <mjw@redhat.com>
6909 * common.opt (fdebug-types-section): New flag.
6910 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6911 * dwarf2out.c (use_debug_types): New define.
6912 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6913 (print_die): Guard output of type unit signatures using
6915 (build_abbrev_table): Replace assert of dwarf_version >= 4
6916 with assert on use_debug_types.
6917 (size_of_die): Likewise.
6918 (unmark_dies): Likewise.
6919 (value_format): Decide AT_ref_external form on use_debug_types.
6920 (output_die): Replace dwarf_version version check guard with
6921 use_debug_types where appropriate.
6922 (modified_type_die): Likewise.
6923 (gen_reference_type_die): Likewise.
6924 (dwarf2out_start_source_file): Likewise.
6925 (dwarf2out_end_source_file): Likewise.
6926 (prune_unused_types_walk_attribs): Likewise.
6927 (dwarf2out_finish): Likewise.
6929 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6931 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6933 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6935 PR rtl-optimization/48332
6936 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6937 mode of input operand N and modeN to its actual mode.
6939 2011-03-30 Jeff Law <law@redhat.com>
6941 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6942 define accessor macro.
6943 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6944 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6945 (reg_equiv_init): Likewise.
6946 (reg_equivs_size): New variable.
6947 (reg_equiv_init_size): Remove.
6948 (allocate_initial_values): Move prototype to here from....
6949 * integrate.h (allocate_initial_values): Remove prototype.
6950 * integrate.c: Include reload.h.
6951 (allocate_initial_values): Corresponding changes.
6952 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6953 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6954 (update_equiv_regs): Corresponding changes.
6955 (ira): Corresponding changes.
6956 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6957 (push_secondary_reload): Corresponding changes.
6958 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6959 (make_memloc, find_reloads_address): Corresponding changes.
6960 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6961 (find_reloads_address_1): Corresponding changes.
6962 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6963 (refers_to_regno_for_reload_p): Corresponding changes.
6964 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6965 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6966 * reload1.c: Include ggc.h.
6967 (grow_reg_equivs): New function.
6968 (replace_pseudos_in, reload): Corresponding changes.
6969 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6970 (eliminate_regs_1, elimination_effects): Corresponding changes.
6971 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6972 (delete_output_reload): Likewise.
6973 * caller-save.c (mark_referenced_regs): Corresponding changes.
6974 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6975 * frv/predicates.md (frv_load_operand): Corresponding changes.
6976 * microblaze/microblaze.c (double_memory_operand): Corresponding
6978 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6979 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6980 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6981 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6982 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6984 * pa/pa.c (emit_move_sequence): Corresponding changes.
6985 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6987 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6990 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6991 structure modes. Don't check neon_vector_mem_operand for
6992 vector or structure modes.
6994 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6995 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6998 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6999 operand 1 and reshuffle the operands to match.
7000 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7002 2011-03-30 Christian Schüler <cschueler@gmx.de>
7005 * config/c.opt (F): Added 'Driver' to -F option.
7008 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7010 * config/darwin.opt: Added '-arch' option.
7012 2011-03-30 Nick Clifton <nickc@redhat.com>
7014 * config/rx/rx.md: Add peepholes and patterns to combine
7015 extending loads and simple arithmetic instructions.
7016 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7017 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7018 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7019 modes to use pre-decrement and post-increment addressing.
7020 (rx_is_restricted_memory_address): Add range checking of REG+INT
7022 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7023 (rx_memory_move_cost): Adjust cost of stores.
7024 (rx_adjust_insn_length): New function.
7026 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7029 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7030 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7031 matching arg00/arg01 types.
7033 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7035 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7036 last_location to UNKNOWN_LOCATION.
7038 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7041 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7044 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7045 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7048 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7050 (sparc_cpu): Likewise.
7051 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7054 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7058 PR rtl-optimization/48345
7059 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7060 hard regs for given mode from profitable regs when doing secondary
7063 2011-03-29 Jeff Law <law@redhat.com>
7066 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7067 do_not_duplicate field.
7068 (lookup_redirection_data): Corresponding changes.
7069 (create_duplicates): Always create a template block.
7070 (redirect_edges): Remove code which reused the original block
7071 when it was going to become unreachable code.
7072 (thread_block): Don't set do_not_duplicate field.
7074 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7076 * lto-opts.c (register_user_option_p, lto_register_user_option):
7077 Make type argument unsigned.
7078 * lto-streamer.h (lto_register_user_option): Make type argument
7080 * opth-gen.awk: Make CL_* macros unsigned.
7081 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7082 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7083 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7084 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7085 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7086 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7087 (find_opt): Make lang_mask argument unsigned.
7089 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7091 PR rtl-optimization/48331
7092 PR rtl-optimization/48334
7093 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7094 for any used algorithm.
7096 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7098 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7101 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7103 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7104 (alpha_option_override): Don't set alpha_sr_alias_set.
7105 (emit_frame_store_1): Use gen_frame_mem rather than calling
7107 (alpha_expand_epilogue): Ditto.
7109 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7111 PR tree-optimization/48290
7112 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7113 vectorization, check that relevant phis in the basic block after
7114 the inner loop are really inner loop's exit phis.
7116 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7119 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7120 (cached_dw_loc_list_def): New structure.
7121 (cached_dw_loc_list): New typedef.
7122 (cached_dw_loc_list_table): New variable.
7123 (cached_dw_loc_list_table_hash): New function.
7124 (cached_dw_loc_list_table_eq): Likewise.
7125 (add_location_or_const_value_attribute): Take a bool cache_p.
7126 Cache the list when the parameter is true.
7127 (gen_formal_parameter_die): Update caller.
7128 (gen_variable_die): Likewise.
7129 (dwarf2out_finish): Likewise.
7130 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7131 while generating debug info for the decl.
7132 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7133 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7134 (resolve_addr): Cache the result of resolving a chain of
7137 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7139 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7140 conflict object hard regset nodes have intersecting hard reg sets.
7142 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7143 after regstat_init_n_sets_and_refs.
7145 * ira.c: Add more comments at the top.
7146 (setup_stack_reg_pressure_class, setup_pressure_classes):
7147 Add comments how we compute the register pressure classes.
7148 (setup_allocno_and_important_classes): Add more comments.
7149 (setup_class_translate_array, reorder_important_classes)
7150 (setup_reg_class_relations): Add comments.
7152 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7155 * ira-color.c: Add 2011 to the Copyright line.
7156 (assign_hard_reg): Add more comments.
7157 (improve_allocation): Ditto.
7159 * ira-costs.c: Add 2011 to the Copyright line.
7160 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7162 (setup_regno_cost_classes_by_mode): Ditto.
7164 Initial patches from ira-improv branch:
7166 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7168 * ira-build.c (ira_create_object): Remove initialization of
7169 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7170 (ira_create_allocno): Remove initialization of
7171 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7172 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7173 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7174 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7175 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7176 Initialize ALLOCNO_ADD_DATA.
7177 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7178 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7180 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7181 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7183 * ira.c (ira_reallocate): Remove.
7184 (setup_pressure_classes): Call
7185 ira_init_register_move_cost_if_necessary. Use
7186 ira_register_move_cost instead of ira_get_register_move_cost.
7187 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7188 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7190 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7191 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7192 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7193 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7194 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7195 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7197 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7198 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7199 (struct allocno_color_data): New.
7200 (allocno_color_data_t): New typedef.
7201 (allocno_color_data): New definition.
7202 (ALLOCNO_COLOR_DATA): New macro.
7203 (struct object_color_data): New.
7204 (object_color_data_t): New typedef.
7205 (object_color_data): New definition.
7206 (OBJECT_COLOR_DATA): New macro.
7207 (update_copy_costs, calculate_allocno_spill_cost): Call
7208 ira_init_register_move_cost_if_necessary. Use
7209 ira_register_move_cost instead of ira_get_register_move_cost.
7210 (move_spill_restore, update_curr_costs): Ditto.
7211 (allocno_spill_priority): Make it inline.
7212 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7213 (struct coalesce_data, coalesce_data_t): New.
7214 (allocno_coalesce_data): New definition.
7215 (ALLOCNO_COALESCE_DATA): New macro.
7216 (merge_allocnos, coalesced_allocno_conflict_p): Use
7217 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7218 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7219 (coalesce_allocnos): Ditto.
7220 (setup_coalesced_allocno_costs_and_nums): Ditto.
7221 (collect_spilled_coalesced_allocnos): Ditto.
7222 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7223 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7224 (coalesce_spill_slots): Ditto.
7225 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7226 free allocno_coalesce_data.
7228 * ira-conflicts.c: Fix formatting.
7229 (process_regs_for_copy): Call
7230 ira_init_register_move_cost_if_necessary. Use
7231 ira_register_move_cost instead of ira_get_register_move_cost.
7232 (build_object_conflicts): Optimize.
7234 * ira-costs.c (record_reg_classes): Optimize. Call
7235 ira_init_register_move_cost_if_necessary. Use
7236 ira_register_move_cost, ira_may_move_in_cost, and
7237 ira_may_move_out_cost instead of ira_get_register_move_cost and
7238 ira_get_may_move_cost.
7239 (record_address_regs): Ditto.
7240 (scan_one_insn): Optimize.
7241 (find_costs_and_classes): Optimize.
7242 (process_bb_node_for_hard_reg_moves): Call
7243 ira_init_register_move_cost_if_necessary. Use
7244 ira_register_move_cost instead of ira_get_register_move_cost.
7246 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7247 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7248 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7249 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7251 (ira_initiate_emit_data, ira_finish_emit_data)
7252 (create_new_allocno): New functions.
7253 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7254 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7255 Use ira_register_move_cost instead of ira_get_register_move_cost.
7257 * ira-int.h: Fix some comments.
7258 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7259 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7260 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7261 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7263 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7264 bitfield after mode. Make hard_regno a short int. Make
7265 hard_regno short. Remove first_coalesced_allocno and
7266 next_coalesced_allocno. Move mem_optimized_dest_p,
7267 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7268 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7269 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7270 temp, colorable_p. Add new member add_data.
7271 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7272 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7273 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7274 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7275 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7276 (ALLOCNO_ADD_DATA): New macro.
7277 (ira_emit_data_t): New typedef.
7278 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7279 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7280 from struct ira_allocno.
7281 (ALLOCNO_EMIT_DATA): New macro.
7282 (ira_allocno_emit_data, allocno_emit_reg): New.
7283 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7284 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7285 (OBJECT_ADD_DATA): New macro.
7286 (ira_reallocate): Remove.
7287 (ira_initiate_emit_data, ira_finish_emit_data): New.
7288 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7289 (ira_init_register_move_cost_if_necessary): New.
7290 (ira_object_conflict_iter_next): Merge into
7291 ira_object_conflict_iter_cond.
7292 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7294 * ira-live.c (process_single_reg_class_operands): Call
7295 ira_init_register_move_cost_if_necessary. Use
7296 ira_register_move_cost instead of ira_get_register_move_cost.
7298 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7300 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7302 * ira-costs.c: Fix formatting.
7303 (cost_classes, cost_classes_num): Remove.
7304 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7305 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7306 (cost_classes_del, cost_classes_htab): New.
7307 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7308 (initiate_regno_cost_classes, setup_cost_classes): New.
7309 (setup_regno_cost_classes_by_aclass): New.
7310 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7311 (record_reg_classes): Use regno_cost_classes instead of
7312 cost_classes. Move checking opposite operand up.
7313 (record_address_regs): Use regno_cost_classes
7314 instead of cost_classes.
7315 (scan_one_insn): Ditto. Use always general register.
7316 (print_allocno_costs): Use regno_cost_classes instead of
7318 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7319 (find_costs_and_classes): Set up cost classes for each registers.
7320 Use also their mode for this. Use regno_cost_classes instead of
7322 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7324 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7325 (ira_costs, ira_set_pseudo_classes): Call
7326 initiate_regno_cost_classes and finish_regno_cost_classes.
7328 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7330 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7332 * target.def (ira_cover_classes): Remove.
7334 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7336 * doc/tm.texi.in: Ditto.
7338 * ira-conflicts.c: Remove mentioning cover classes from the file.
7339 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7340 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7342 * targhooks.c (default_ira_cover_classes): Remove.
7344 * targhooks.h (default_ira_cover_classes): Ditto.
7346 * haifa-sched.c: Remove mentioning cover classes from the file.
7347 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7348 ira_pressure_classes and ira_pressure_classes_num instead of
7349 ira_reg_class_cover_size and ira_reg_class_cover. Use
7350 sched_regno_pressure_class instead of sched_regno_cover_class.
7351 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7352 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7354 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7355 classes from the file.
7356 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7357 (struct object_hard_regs, struct object_hard_regs_node): New.
7358 (struct ira_object): New members profitable_hard_regs,
7359 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7360 (struct ira_allocno): Rename cover_class to aclass. Rename
7361 cover_class_cost and updated_cover_class_cost to class_cost and
7362 updated_class_cost. Remove splay_removed_p and
7363 left_conflict_size. Add new members colorable_p.
7364 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7365 (ALLOCNO_COLORABLE_P): New macro.
7366 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7367 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7368 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7369 (OBJECT_...): Rename parameter C to O.
7370 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7371 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7372 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7373 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7374 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7375 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7376 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7377 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7378 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7379 x_ira_reg_class_subunion.
7380 (ira_max_memory_move_cost, ira_max_register_move_cost)
7381 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7382 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7383 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7384 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7385 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7386 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7387 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7388 (ira_tune_allocno_costs_and_cover_classes): Rename to
7389 ira_tune_allocno_costs.
7390 (ira_debug_hard_regs_forest): New.
7391 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7392 (ira_object_conflict_iter_next): Fix comments.
7393 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7394 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7395 cover_class to aclass.
7396 (ira_allocate_and_accumulate_costs): Ditto.
7397 (ira_allocate_and_set_or_copy_costs): Ditto.
7399 * opts.c (decode_options): Remove ira_cover_class check.
7401 * ira-color.c: Remove mentioning cover classes from the file. Use
7402 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7403 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7404 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7405 (splay-tree.h): Remove include.
7406 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7407 before copy_freq_compare_func.
7408 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7409 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7411 (hard_regs_roots, hard_regs_node_vec): Ditto.
7412 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7413 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7414 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7415 (create_new_object_hard_regs_node): Ditto.
7416 (add_new_object_hard_regs_node_to_forest): Ditto.
7417 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7418 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7420 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7421 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7422 (remove_unused_object_hard_regs_nodes): Ditto.
7423 (enumerate_object_hard_regs_nodes): Ditto.
7424 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7425 (object_hard_regs_subnode_t): Ditto.
7426 (struct object_hard_regs_subnode): Ditto.
7427 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7428 (setup_object_hard_regs_subnode_index): Ditto.
7429 (get_object_hard_regs_subnodes_num): Ditto.
7430 (form_object_hard_regs_nodes_forest): Ditto.
7431 (finish_object_hard_regs_nodes_tree): Ditto.
7432 (finish_object_hard_regs_nodes_forest): Ditto.
7433 (allocnos_have_intersected_live_ranges_p): Rename to
7434 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7435 (pseudos_have_intersected_live_ranges_p): Rename to
7436 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7437 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7438 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7439 (update_copy_costs): Remove assert. Skip cost update if the hard
7440 reg does not belong the class.
7441 (assign_hard_reg): Process only profitable hard regs.
7442 (uncolorable_allocnos_num): Make it scalar.
7443 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7444 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7445 and ira_reg_class_max_nregs.
7446 (bucket_allocno_compare_func): Check frequency first.
7447 (sort_bucket): Add compare function as a parameter.
7448 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7449 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7450 (push_allocno_to_stack): Rewrite for checking new allocno
7452 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7453 (push_only_colorable): Pass new parameter to sort_bucket.
7454 (push_allocno_to_spill): Remove.
7455 (allocno_spill_priority_compare): Make it inline and rewrite.
7456 (splay_tree_allocate, splay_tree_free): Remove.
7457 (allocno_spill_sort_compare): New function.
7458 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7459 build and use splay tree. Choose first allocno in uncolorable
7460 allocno bucket to spill. Remove setting spill cost.
7461 (all_conflicting_hard_regs): Remove.
7462 (setup_allocno_available_regs_num): Check only profitable hard
7463 regs. Print info about hard regs nodes.
7464 (setup_allocno_left_conflicts_size): Remove.
7465 (put_allocno_into_bucket): Don't call
7466 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7467 (improve_allocation): New.
7468 (color_allocnos): Call setup_profitable_hard_regs,
7469 form_object_hard_regs_nodes_forest, improve_allocation,
7470 finish_object_hard_regs_nodes_forest. Setup spill cost.
7471 (print_loop_title): Use pressure classes.
7472 (color_allocnso): Ditto.
7473 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7474 and allocnos_for_spilling.
7475 (ira_sort_regnos_for_alter_reg): Don't setup members
7476 {first,next}_coalesced_allocno.
7477 (color): Remove allocating and freeing removed_splay_allocno_vec.
7478 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7479 prohibited_class_mode_regs.
7481 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7483 (update_allocno_pressure_excess_length): Use pressure classes.
7484 (inc_register_pressure, dec_register_pressure): Check for pressure
7486 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7487 pressure class. Use ira_reg_class_nregs instead of
7488 ira_reg_class_max_nregs.
7489 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7490 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7491 (single_reg_class): Use ira_reg_class_nregs instead of
7492 ira_reg_class_max_nregs.
7493 (process_bb_node_lives): Use pressure classes.
7495 * ira-emit.c: Remove mentioning cover classes from the file. Use
7496 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7497 (change_loop): Use pressure classes.
7498 (modify_move_list): Call ira_set_allocno_class instead of
7499 ira_set_allocno_cover_class.
7501 * ira-build.c: Remove mentioning cover classes from the file. Use
7502 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7503 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7504 ALLOCNO_UPDATED_CLASS_COST instead of
7505 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7506 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7507 (ira_create_allocno): Remove initialization of
7508 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7509 ALLOCNO_COLORABLE_P.
7510 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7511 Update conflict regs for the objects.
7512 (create_cap_allocno): Remove assert. Don't propagate
7513 ALLOCNO_AVAILABLE_REGS_NUM.
7514 (ira_free_allocno_costs): New function.
7515 (finish_allocno): Change a part of code into call of
7516 ira_free_allocno_costs.
7517 (low_pressure_loop_node_p): Use pressure classes.
7518 (object_range_compare_func): Don't compare classes.
7519 (setup_min_max_conflict_allocno_ids): Ditto.
7521 * loop-invariant.c: Remove mentioning cover classes from the file.
7522 Use ira_pressure_classes and ira_pressure_classes_num instead of
7523 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7524 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7525 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7526 Use reg_allocno_class instead of reg_cover_class.
7527 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7528 STACK_REG_COVER_CLASS.
7529 (get_regno_cover_class): Rename to get_regno_pressure_class.
7530 (move_loop_invariants): Initialize and finalize regstat.
7532 * ira.c: Remove mentioning cover classes from the file. Add
7533 comments about coloring without cover classes. Use ALLOCNO_CLASS
7534 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7535 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7536 setup_class_subset_and_memory_move_costs.
7537 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7538 (setup_cover_and_important_classes): Rename to
7539 setup_allocno_and_important_classes.
7540 (setup_class_translate_array): New.
7541 (setup_class_translate): Call it for allocno and pressure classes.
7542 (cover_class_order): Rename to allocno_class_order.
7543 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7544 of ira_class_translate.
7545 (reorder_important_classes): Set up ira_important_class_nums.
7546 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7547 (print_class_cover): Rename to print_classes. Add parameter.
7548 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7549 Print pressure classes too.
7550 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7551 setup_reg_subclasses.
7552 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7553 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7554 (setup_prohibited_class_mode_regs): Use
7555 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7556 (clarify_prohibited_class_mode_regs): New function.
7557 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7558 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7559 (ira_init_once): Initialize them.
7560 (free_register_move_costs): Process them.
7561 (ira_init): Move calls of find_reg_classes and
7562 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7563 Call clarify_prohibited_class_mode_regs.
7564 (ira_no_alloc_reg): Remove.
7565 (too_high_register_pressure_p): Use pressure classes.
7567 * sched-deps.c: Remove mentioning cover classes from the file.
7568 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7569 ira_pressure_classes and ira_pressure_classes_num instead of
7570 ira_reg_class_cover_size and ira_reg_class_cover.
7571 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7572 sched_regno_pressure_class instead of sched_regno_cover_class.
7573 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7574 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7576 * ira.h: Add 2010 to Copyright.
7577 (ira_no_alloc_reg): Remove external.
7578 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7579 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7580 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7581 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7582 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7583 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7584 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7585 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7586 x_ira_no_alloc_regs.
7587 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7588 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7589 ira_allocno_classes_num and ira_allocno_classes.
7590 (ira_class_translate): Rename to ira_allocno_class_translate.
7591 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7592 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7593 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7594 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7595 (ira_no_alloc_regs): New.
7597 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7598 classes from the file. Use ALLOCNO_CLASS instead of
7599 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7600 ALLOCNO_COVER_CLASS_COST.
7601 (regno_cover_class): Rename to regno_aclass.
7602 (record_reg_classes): Use ira_reg_class_subunion instead of
7603 ira_reg_class_union.
7604 (record_address_regs): Check overflow.
7605 (scan_one_insn): Ditto.
7606 (print_allocno_costs): Print total mem cost fore regional allocation.
7607 (print_pseudo_costs): Use REG_N_REFS.
7608 (find_costs_and_classes): Use classes intersected with them on the
7609 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7610 ira_reg_class_union. Use ira_allocno_class_translate and
7611 regno_aclass instead of ira_class_translate and regno_cover_class.
7612 Modify code for finding regno_aclass. Setup preferred classes for
7614 (setup_allocno_cover_class_and_costs): Rename to
7615 setup_allocno_class_and_costs. Use regno_aclass instead of
7616 regno_cover_class. Use ira_set_allocno_class instead of
7617 ira_set_allocno_cover_class.
7618 (init_costs, finish_costs): Use regno_aclass instead of
7620 (ira_costs): Use setup_allocno_class_and_costs instead of
7621 setup_allocno_cover_class_and_costs.
7622 (ira_tune_allocno_costs_and_cover_classes): Rename to
7623 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7624 by processing objects. Use ira_reg_class_max_nregs instead of
7625 ira_reg_class_nregs.
7627 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7629 * sched-int.h: Remove mentioning cover classes from the file.
7630 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7632 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7633 classes from the file.
7634 (struct reg_pref): Rename coverclass into allocnoclass.
7635 (reg_cover_class): Rename to reg_allocno_class.
7637 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7639 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7641 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7643 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7645 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7647 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7649 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7651 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7653 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7655 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7657 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7658 (i386_ira_cover_classes): Ditto.
7660 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7662 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7664 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7666 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7668 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7670 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7672 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7673 (mips_ira_cover_classes): Ditto.
7675 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7677 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7679 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7681 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7683 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7685 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7686 (IRA_COVER_CLASSES_VSX): Ditto.
7688 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7689 (rs6000_ira_cover_classes): Ditto.
7691 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7693 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7695 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7697 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7699 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7701 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7703 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7705 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7707 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7709 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7711 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7714 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7715 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7716 dw_fde_unlikely_section_end_label, cold_in_std_section,
7717 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7718 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7720 (output_fde): Use dw_fde_second_{begin,end} if second is
7721 true, otherwise dw_fde_{begin,end}.
7722 (output_call_frame_info): Test dw_fde_second_begin != NULL
7723 instead of dw_fde_switched_sections.
7724 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7725 fields, initialize new fields. Initialize in_std_section
7726 unconditionally from the first partition.
7727 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7728 dw_fde_second_begin is non-NULL.
7729 (dwarf2out_switch_text_section): Stop initializing removed
7730 dw_fde_struct fields, initialize new fields, initialize
7731 also dw_fde_end here. Set dw_fde_switch_cfi even when
7732 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7733 (struct var_loc_list_def): Add last_before_switch field.
7734 (arange_table, arange_table_allocated, arange_table_in_use,
7735 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7736 (size_of_aranges): Count !in_std_section and !second_in_std_section
7737 hunks in fdes, instead of looking at arange_table_in_use.
7738 (output_aranges): Add aranges_length argument, don't call
7739 size_of_aranges here. Instead of using aranges_table*
7740 emit ranges for fdes when !in_std_section resp.
7741 !second_in_std_section.
7742 (dw_loc_list): Break ranges crossing section switch.
7743 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7744 use dw_fde_second_end instead of dw_fde_end as end of last range.
7745 (gen_subprogram_die): Don't call add_arange. Use
7746 dw_fde_{begin,end} for first partition and if switched
7747 section dw_fde_second_{begin,end} for the second.
7748 (var_location_switch_text_section_1,
7749 var_location_switch_text_section): New functions.
7750 (dwarf2out_begin_function): Initialize cold_text_section even
7751 when function_section () isn't text_section.
7752 (prune_unused_types): Don't walk arange_table.
7753 (dwarf2out_finish): Don't needlessly test
7754 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7755 If info_section_emitted, call size_of_aranges and if it indicates
7756 non-empty .debug_aranges, call output_aranges with the computed
7757 size. Stop using removed dw_fde_struct fields, use
7758 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7762 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7763 create ENTRY_VALUE if incoming or address of incoming's MEM
7765 * dwarf2out.c (mem_loc_descriptor): Don't emit
7766 DW_OP_GNU_entry_value of DW_OP_fbreg.
7767 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7768 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7769 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7770 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7772 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7773 is a REG_P or MEM_P with REG_P address, compute hash directly
7774 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7775 (preserve_only_constants): Don't clear VALUES forwaring
7776 ENTRY_VALUE to some other VALUE.
7778 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7780 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7783 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7785 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7786 block before expanding the statement.
7787 (expand_gimple_stmt_1): Likewise. Set them here...
7788 (expand_gimple_stmt): ...and not here. Tidy.
7789 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7792 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7794 * Makefile.in: New rule for cprop.o.
7795 * gcse.c: Move constant/copy propagation to cprop.c.
7796 (compute_local_properties): Only handle expression tables.
7797 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7798 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7799 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7800 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7801 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7802 compute_cprop_data, find_used_regs, try_replace_reg,
7803 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7804 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7805 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7806 find_bypass_set, reg_killed_on_edge, bypass_block,
7807 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7808 execute_rtl_cprop, pass_rtl_cprop): Move to...
7809 * cprop.c: ...here. New file, constant/copy propagation for RTL
7810 moved from gcse.c to here with minor cleanups in duplicated code.
7812 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7814 * config/i386/i386.c (flag_opts): Fix a typo in
7815 -mavx256-split-unaligned-store.
7817 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7819 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7820 LIBCALL_VALUE): Remove macros.
7821 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7822 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7823 (h8300_function_value, h8300_libcall_value,
7824 h8300_function_value_regno_p): New functions.
7826 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7828 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7830 2011-03-28 Jeff Law <law@redhat.com>
7832 * tree-ssa-threadupdate.c (redirect_edges): Call
7833 create_edge_and_update_destination_phis as needed.
7834 (create_edge_and_update_destination_phis): Accept new BB argument.
7835 All callers updated.
7836 (thread_block): Do not update the profile when threading around
7837 intermediate blocks.
7838 (thread_single_edge): Likewise.
7839 (determine_bb_domination_status): If BB is not a successor of the
7840 loop header, return NONDOMINATING.
7841 (register_jump_thread): Note when we register a jump thread around
7842 an intermediate block.
7843 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7844 (thread_across_edge): Use it.
7846 2011-03-28 Tristan Gingold <gingold@adacore.com>
7848 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7849 when for_return is 2.
7851 2011-03-28 Jeff Law <law@redhat.com>
7853 * var-tracking.c (canonicalize_values_mark): Delete unused
7855 (canonicalize_values_star, set_variable_part): Likewise.
7856 (clobber_variable_part, delete_variable_part): Likewise.
7858 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7860 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7862 2011-03-28 Martin Jambor <mjambor@suse.cz>
7864 * tree-inline.c (expand_call_inline): Do not check that destination
7866 (optimize_inline_calls): Assert that destination node is analyzed.
7867 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7868 not call tree_lowering_passes.
7869 * cgraph.h (cgraph_analyze_function): Declare.
7870 * cgraphunit.c (cgraph_analyze_function): Make public.
7872 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7874 * config/sparc/sparc-opts.h: New.
7875 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7876 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7877 (sparc_option_override): Store processor_type enumeration rather
7878 than string in cpu_default. Remove name and enumeration from
7879 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7880 without using sparc_select. Use target_flags_explicit instead of
7882 * config/sparc/sparc.h (enum processor_type): Move to
7884 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7885 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7886 HeaderInclude entry.
7887 (mcpu=, mtune=): Use Var and Enum.
7888 (sparc_processor_type): New Enum and EnumValue entries.
7890 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7891 Iain Sandoe <iains@gcc.gnu.org>
7894 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7896 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7898 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7899 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7900 Insert new statements at it in lieu of STMT.
7901 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7902 * tree-vect-stmts.c (vectorizable_store): Likewise.
7903 (vectorizable_load): Likewise.
7905 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7907 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7912 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7914 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7915 unaligned 256bit load/store.
7916 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7917 (*avx_movdqu<avxmodesuffix>): Likewise.
7919 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7922 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7923 * config/pa/pa.md (iordi3): Use new predicate in expander.
7926 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7928 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7929 FUNCTION_VALUE_REGNO_P): Remove macros.
7930 * config/mips/mips-protos.h (mips_function_value): Remove.
7931 * config/mips/mips.c (mips_function_value): Rename to...
7932 (mips_function_value_1): ... this. Make static. Handle receiving
7933 the function type in 'fn_decl_or_type' argument.
7934 (mips_function_value, mips_libcall_value,
7935 mips_function_value_regno_p): New function.
7936 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7937 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7939 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7941 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7942 and -mavx256-split-unaligned-store.
7943 (ix86_option_override_internal): Split 32-byte AVX unaligned
7944 load/store by default.
7945 (ix86_avx256_split_vector_move_misalign): New.
7946 (ix86_expand_vector_move_misalign): Use it.
7948 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7949 -mavx256-split-unaligned-store.
7951 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7952 256bit load/store. Generate unaligned store on misaligned memory
7954 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7956 (*avx_movdqu<avxmodesuffix>): Likewise.
7958 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7959 -mavx256-split-unaligned-store.
7961 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7964 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7967 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7969 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7970 opno arguments with an expand_operand. Use create_input_operand.
7971 (mips_prepare_builtin_target): Delete.
7972 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7974 (mips_expand_builtin_direct): Use create_output_operand and
7975 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7976 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7977 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7979 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7981 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7983 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7985 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7987 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7988 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7989 basic blocks and call commit_edge_insertions directly.
7990 (fixup_abnormal_edges): Move from here to...
7991 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7992 on the edges and return whether some have actually been inserted.
7993 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7996 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7998 PR rtl-optimization/48144
7999 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8000 (merge_expr_data): ... here.
8001 (av_set_intersect): Rename to av_set_code_motion_filter.
8002 Update all callers. Call merge_history_vect when an expression
8003 is found in both sets.
8004 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8006 2011-03-26 Alan Modra <amodra@gmail.com>
8008 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8009 cmodel medium addresses.
8010 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8011 64-bit gpr loads and stores.
8012 (rs6000_secondary_reload_ppc64): New function.
8013 * config/rs6000/rs6000-protos.h: Declare it.
8014 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8016 2011-03-26 Alan Modra <amodra@gmail.com>
8019 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8020 GNU Go in traceback table.
8022 2011-03-25 Richard Henderson <rth@redhat.com>
8024 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8025 if there are exactly 6 operands.
8026 (set_storage_via_setmem): Similarly.
8028 2011-03-25 Kai Tietz <ktietz@redhat.com>
8030 * collect2.c (write_c_file_stat): Handle backslash
8031 as right-hand directory separator.
8032 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8033 checking just for slash.
8034 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8035 instead of checking for trailing slash.
8036 * gcc.c (record_temp_file): Use filename_cmp instead
8038 (do_spec_1): Likewise.
8039 (replace_outfile_spec_function): Likewise.
8040 (is_directory): Use filename_ncmp instead of strncmp.
8041 (print_multilib_info): Likewise.
8042 * gcov.c (find_source): Use filename_cmp instead
8044 (make_gcov_file_name): Fix order of slash/backslash
8046 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8047 (add_standard_paths): Likewise.
8048 * mips-tfile.c (saber_stop): Handle backslash.
8049 * prefix.c (update_path): Use filename_ncmp instead of
8051 * profile.c (output_location): Use filename_cmp instead
8053 * read-md.c (handle_toplevel_file): Handle backslash.
8054 * tlink.c (frob_extension): Likewise.
8055 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8057 * tree-dump.c (dequeue_and_dump): Handle backslash.
8058 * tree.c (get_file_function_name): Likewise.
8059 * gengtype.c (read_input_list): Likewise.
8060 (get_file_realbasename): Likewise.
8061 (get_output_file_with_visibility): Use filename_cmp
8064 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8066 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8069 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8071 * fold-const.c (expr_location_or): New function.
8072 (fold_truth_not_expr): Call it.
8074 2011-03-25 Jeff Law <law@redhat.com>
8076 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8078 * c-family/c-common.c (def_fn_type): Likewise.
8079 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8080 * emit-rtl.c (gen_rtvec): Likewise.
8081 * lto/lto-lang.c (def_fn_type): Likewise.
8083 2011-03-25 Richard Guenther <rguenther@suse.de>
8085 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8086 also generate copies.
8087 (fini_copy_prop): Handle constant values properly.
8089 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8091 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8092 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8093 (hash_loc_operands, compare_loc_operands): Handle
8094 DW_OP_GNU_entry_value.
8096 2011-03-25 Kai Tietz <ktietz@redhat.com>
8098 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8099 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8100 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8101 comment and use macro TARGET_64BIT_MS_ABI instead.
8102 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8103 and change default behavior for 32-bit MS_ABI.
8104 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8105 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8107 (ix86_cfun_abi): Likewise.
8108 (ix86_maybe_switch_abi): Adjust comment.
8109 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8110 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8111 instead of checking for SYSV_ABI.
8112 (ix86_nsaved_sseregs): Likewise.
8113 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8115 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8116 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8117 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8118 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8119 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8121 2011-03-25 Richard Guenther <rguenther@suse.de>
8123 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8124 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8125 (verify_gimple): Remove.
8126 * tree-cfg.c (verify_gimple_call): Merge verification
8128 (verify_gimple_phi): Merge verification from verify_stmts.
8129 (verify_gimple_label): New function.
8130 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8131 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8132 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8133 (verify_stmts): Rename to verify_gimple_in_cfg.
8134 (verify_gimple_in_cfg): New function.
8135 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8136 * tree-ssa.c (verify_ssa): Likewise.
8137 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8139 2011-03-25 Richard Guenther <rguenther@suse.de>
8141 * passes.c (init_optimization_passes): Add FRE pass after
8144 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8145 Andrew Stubbs <ams@codesourcery.com>
8147 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8149 (arm_movdi_vfp_cortexa8): New pattern.
8150 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8151 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8152 instructions when tuning for Cortex-A8. Set attribute "arch".
8153 * config/arm/arm.md: Move include arm-tune.md up a bit.
8154 (define_attr "arch"): Add "onlya8" and "nota8" values.
8155 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8157 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8161 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8163 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8164 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8165 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8166 * passes.c (init_optimization_passes): Move
8167 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8169 2011-03-25 Kai Tietz <ktietz@redhat.com>
8171 * c-typeck.c (comptypes_internal): Replace target
8172 hook call of comp_type_attributes by version in tree.c file.
8173 * gimple.c (gimple_types_compatible_p_1): Likewise.
8174 * tree-ssa.c (useless_type_conversion_p): Likewise.
8175 * tree.c (build_type_attribute_qual_variant): Likewise.
8176 (attribute_value_equal): New static helper function.
8177 (comp_type_attributes): New function.
8178 (merge_attributes): Use attribute_value_equal for comparison.
8179 (attribute_list_contained): Likewise.
8180 * tree.h (comp_type_attributes): New prototype.
8182 2011-03-25 Richard Guenther <rguenther@suse.de>
8184 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8185 of complex types at -O0.
8186 (verify_gimple_assign_binary): Likewise.
8187 (verify_gimple_assign_ternary): Likewise.
8189 2011-03-24 Mark Wielaard <mjw@redhat.com>
8191 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8192 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8194 2011-03-24 Mark Wielaard <mjw@redhat.com>
8197 * dwarf2out.c (output_abbrev_section): Only write table when
8198 abbrev_die_table_in_use > 1.
8200 2011-02-24 Richard Henderson <rth@redhat.com>
8202 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8203 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8204 (alpha_expand_unaligned_load_words): Use extql.
8205 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8206 (emit_insxl): Handle all modes for consistency.
8208 2011-02-24 Richard Henderson <rth@redhat.com>
8210 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8211 (alpha_expand_unaligned_load): Likewise.
8212 (alpha_expand_unaligned_store): Likewise.
8213 (alpha_expand_unaligned_load_words): Likewise.
8214 (alpha_expand_unaligned_store_words): Likewise.
8215 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8216 (alpha_split_lock_test_and_set_12): Likewise.
8217 (print_operand, alpha_fold_builtin_extxx): Likewise.
8218 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8219 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8220 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8221 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8222 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8223 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8224 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8225 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8226 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8227 (extwl, extll, extql): Similarly.
8228 (inswh, inslh, insqh): Similarly.
8229 (mskbl, mskwl, mskll, mskql): Similarly.
8230 (mskwh, msklh, mskqh): Similarly.
8232 2011-02-24 Richard Henderson <rth@redhat.com>
8234 * config/alpha/alpha.md (attribute isa): Add er, ner.
8235 (attribute enabled): Handle them.
8236 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8238 2011-02-24 Richard Henderson <rth@redhat.com>
8240 * config/alpha/alpha.md (attribute isa): Add vms.
8241 (attribute enabled): Handle it.
8242 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8243 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8244 (*movtf): Rename from *movtf_internal for consistency.
8245 (*movsi): Merge with *movsi_nt_vms.
8246 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8247 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8248 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8249 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8251 2011-02-24 Richard Henderson <rth@redhat.com>
8253 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8254 (extendqisi2, extendhisi2): Likewise.
8255 (extendqidi2): Simplify BWX/non-BWX expansions.
8256 (extendhidi2): Similarly.
8258 2011-02-24 Richard Henderson <rth@redhat.com>
8260 * config/alpha/alpha.md (attribute isa): New.
8261 (attribute enabled): New.
8262 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8263 (zero_extendqisi2, zero_extendqidi2): Similarly.
8264 (zero_extendhisi2, zero_extendhidi2): Similarly.
8265 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8267 2011-02-24 Richard Henderson <rth@redhat.com>
8269 * config/alpha/predicates.md (input_operand): Revert last change;
8270 update comment to mention 32-bit VMS rather than Windows.
8272 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8274 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8275 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8276 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8277 * passes.c (init_optimization_passes): Move
8278 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8280 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8282 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8284 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8286 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8289 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8292 * simplify-rtx.c (simplify_const_unary_operation): Call
8293 real_convert when changing mode class with FLOAT_EXTEND.
8295 2011-03-24 Nick Clifton <nickc@redhat.com>
8297 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8298 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8299 * config/rx/rx.c (rx_option_override): Set align_jumps,
8300 align_loops and align_labels if not set by the user.
8301 (rx_align_for_label): New function.
8302 (rx_max_skip_for_label): New function.
8303 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8304 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8305 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8306 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8307 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8309 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8311 PR rtl-optimization/48263
8312 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8313 and original commutative_p handling. Use maybe_gen_insn.
8315 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8317 * reload.c (find_reloads_subreg_address): Add address_reloaded
8318 parameter and return true there if the full address has been
8320 (find_reloads_toplev): Pass address_reloaded flag.
8321 (find_reloads_address_1): Don't use address_reloaded parameter.
8323 2011-03-24 Jeff Law <law@redhat.com>
8325 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8326 unused variable "ann".
8327 (remove_unused_locals): Likewise.
8329 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8332 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8335 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8337 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8338 for invalid symbolic addresses.
8339 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8342 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8344 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8345 the argument in calls to fold_truth_not_expr.
8347 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8349 * tree.c (record_node_allocation_statistics): New function.
8350 (make_node_stat, copy_node_stat, build_string): Call it.
8351 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8352 (build1_stat, build_omp_clause): Likewise.
8354 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8356 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8359 2011-03-24 Richard Guenther <rguenther@suse.de>
8361 PR tree-optimization/48271
8362 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8363 blocks that still exist.
8365 2011-03-24 Richard Guenther <rguenther@suse.de>
8367 PR tree-optimization/48270
8368 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8369 not free datarefs before ddrs.
8371 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8373 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8374 from the address built for a reference with variable offset.
8376 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8379 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8380 alternatives that can be handled with movq or movabsq insn.
8381 (*movdf_internal): Disable for !TARGET_64BIT.
8382 (*movdf_internal_nointeger): Ditto.
8383 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8385 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8387 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8388 (FUNCTION_ARG_ADVANCE): Likewise.
8389 * tm.texi.in: Change references to them to hook references.
8390 * tm.texi: Regenerate.
8391 * targhooks.c (default_function_arg): Eliminate check for target macro.
8392 (default_function_incoming_arg): Likewise.
8393 (default_function_arg_advance): Likewise.
8394 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8395 (function_arg_advance): Likewise.
8396 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8398 2011-03-24 Richard Guenther <rguenther@suse.de>
8401 * tree-object-size.c (addr_object_size): Do not double-account
8402 for MEM_REF offsets.
8404 2011-03-24 Diego Novillo <dnovillo@google.com>
8406 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8407 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8408 (lto_input_data_block): Move from lto-opts.c. Make extern.
8410 (lto_input_string): Rename from input_string. Make extern.
8412 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8413 output_string_with_length.
8414 Output 0 to indicate a non-NULL string. Update all callers to
8416 (lto_output_string): Rename from output_string. Make extern.
8418 (lto_output_decl_state_streams): Make extern.
8419 (lto_output_decl_state_refs): Make extern.
8420 * lto-streamer.h (lto_input_string): Declare.
8421 (lto_input_data_block): Declare.
8422 (lto_output_string): Declare.
8423 (lto_output_string_with_length): Declare.
8424 (lto_output_decl_state_streams): Declare.
8425 (lto_output_decl_state_refs): Declare.
8427 2011-03-24 Richard Guenther <rguenther@suse.de>
8429 PR tree-optimization/46562
8430 * tree.c (build_invariant_address): New function.
8431 * tree.h (build_invariant_address): Declare.
8432 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8433 a renamed function moved ...
8434 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8435 Take valueization callback parameter.
8436 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8437 * gimple-fold.h: New file.
8438 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8439 (ccp_fold, fold_const_aggregate_ref,
8440 fold_ctor_reference, fold_nonarray_ctor_reference,
8441 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8442 get_base_constructor): Move ...
8443 * gimple-fold.c: ... here.
8444 (gimple_fold_stmt_to_constant_1): New function
8445 split out from ccp_fold. Take a valueization callback parameter.
8446 Valueize all operands.
8447 (gimple_fold_stmt_to_constant): New wrapper function.
8448 (fold_const_aggregate_ref_1): New function split out from
8449 fold_const_aggregate_ref. Take a valueization callback parameter.
8450 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8451 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8452 invariant POINTER_PLUS_EXPRs to invariant form.
8453 (vn_valueize): New function.
8454 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8455 * tree-vrp.c (vrp_valueize): New function.
8456 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8457 to fold statements to constants.
8458 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8459 function declarations.
8460 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8461 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8463 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8465 * config/h8300/predicates.md (jump_address_operand): Fix register
8468 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8470 * doc/invoke.texi (max-stores-to-sink): Document.
8471 * params.h (MAX_STORES_TO_SINK): Define.
8472 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8473 if either vectorization or if-conversion is disabled.
8474 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8475 tree-vect-data-refs.c vect_equal_offsets.
8476 (dr_equal_offsets_p): New function.
8477 (find_data_references_in_bb): Remove static.
8478 * tree-data-ref.h (find_data_references_in_bb): Declare.
8479 (dr_equal_offsets_p): Likewise.
8480 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8481 (vect_drs_dependent_in_basic_block): Update calls to
8483 (vect_check_interleaving): Likewise.
8484 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8485 (cond_if_else_store_replacement): Rename to...
8486 (cond_if_else_store_replacement_1): ... this. Change arguments and
8488 (cond_if_else_store_replacement): New function.
8489 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8490 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8492 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8495 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8496 to subtract lower bound instead of GEN_INT().
8498 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8503 * doc/extend.texi (Alignment): Move section to match order in TOC.
8504 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8505 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8507 2011-03-23 Jeff Law <law@redhat.com>
8509 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8510 before removing the edge.
8512 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8513 it may have been freed by redirect_branch_edge or
8514 redirect_edge_succ_nodup.
8516 2011-03-23 Richard Guenther <rguenther@suse.de>
8518 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8519 (check_va_list_escapes): Likewise.
8520 (check_all_va_list_escapes): Likewise.
8522 2011-03-23 Richard Guenther <rguenther@suse.de>
8524 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8525 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8526 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8527 (alias.o): Likewise.
8528 (ipa-type-escape.o): Remove.
8529 (ipa-struct-reorg.o): Likewise.
8530 (GTFILES): Remove ipa-struct-reorg.c.
8531 * alias.c: Do not include ipa-type-escape.h.
8532 * tree-ssa-alias.c: Likewise.
8533 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8534 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8535 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8536 and ipa-type-escape passes.
8537 * tree-pass.h (pass_ipa_type_escape): Remove.
8538 (pass_ipa_struct_reorg): Likewise.
8539 * ipa-struct-reorg.h: Remove.
8540 * ipa-struct-reorg.c: Likewise.
8541 * ipa-type-escape.h: Likewise.
8542 * ipa-type-escape.c: Likewise.
8543 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8544 (--param struct-reorg-cold-struct-ratio): Likewise.
8545 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8546 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8547 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8549 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8551 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8552 cpu attribute value.
8553 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8554 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8555 * config/s390/s390.c (processor_flags_table): New constant array.
8556 (s390_handle_arch_option): Remove.
8557 (s390_handle_option): Remove s390_handle_arch_option invocations
8558 and OPT_mwarn_framesize_ handling.
8559 (s390_option_override): Remove s390_handle_arch_option invocation.
8560 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8562 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8563 * config/s390/s390.opt (s390_tune, s390_arch)
8564 (march=): Replace s390_arch_option enum and values with
8565 processor_type. Set variable name to s390_arch. Set
8566 initialization value.
8567 (mtune=): Replace s390_arch_option with processor_type. Set
8568 variable name to s390_tune. Set initialization value.
8570 2011-03-23 Julian Brown <julian@codesourcery.com>
8572 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8573 accesses which are not naturally aligned.
8575 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8578 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8580 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8582 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8583 parameter from "int" to "enum insn_code".
8584 (expand_operand_type): New enum.
8585 (expand_operand): New structure.
8586 (create_expand_operand): New function.
8587 (create_fixed_operand, create_output_operand): Likewise
8588 (create_input_operand, create_convert_operand_to): Likewise.
8589 (create_convert_operand_from, create_address_operand): Likewise.
8590 (create_integer_operand): Likewise.
8591 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8592 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8593 (expand_insn, expand_jump_insn): Likewise.
8594 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8595 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8596 (expand_movstr, expand_builtin___clear_cache): Likewise.
8597 (expand_builtin_lock_release): Likewise.
8598 * explow.c (allocate_dynamic_stack_space): Likewise.
8599 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8600 and use the default handling in that case.
8601 * expmed.c (check_predicate_volatile_ok): Delete.
8602 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8603 (emit_cstore): Likewise.
8604 * expr.c (emit_block_move_via_movmem): Likewise.
8605 (set_storage_via_setmem, expand_assignment): Likewise.
8606 (emit_storent_insn, try_casesi): Likewise.
8607 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8608 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8609 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8610 (expand_twoval_unop, expand_twoval_binop): Likewise.
8611 (expand_unop_direct, emit_indirect_jump): Likewise.
8612 (emit_conditional_move, vector_compare_rtx): Likewise.
8613 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8614 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8615 (expand_sync_lock_test_and_set): Likewise.
8616 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8617 (emit_unop_insn): Likewise.
8618 (expand_copysign_absneg): Change icode to an insn_code.
8619 (create_convert_operand_from_type): New function.
8620 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8621 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8622 (expand_insn, expand_jump_insn): Likewise.
8623 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8624 than const_int_operand for operand 2.
8626 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8628 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8631 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8633 * emit-rtl.c (emit_pattern_before_noloc): New function.
8634 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8635 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8636 (emit_pattern_after_noloc): New function.
8637 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8638 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8640 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8642 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8643 (__ffsDI2): Likewise.
8645 2011-03-22 Richard Henderson <rth@redhat.com>
8647 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8648 of !TARGET_ABI_OPEN_VMS.
8649 (alpha_trampoline_init, alpha_start_function): Likewise.
8650 (alpha_expand_epilogue, alpha_file_start): Likewise.
8651 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8652 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8653 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8654 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8655 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8657 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8659 * config/s390/s390-opts.h: New.
8660 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8661 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8662 s390_stack_guard): Remove.
8663 (s390_handle_arch_option): Return void. Take enum
8664 s390_arch_option value instead of string and searching array.
8665 (s390_handle_option): Don't assert that global structures are in
8666 use. Access variables via opts pointer. Use error_at. Don't use
8667 sscanf for -mstack-guard= or -mstack-size=. Update call to
8668 s390_handle_arch_option.
8669 (s390_option_override): Update call to s390_handle_arch_option.
8670 (s390_emit_prologue): Use %d format for s390_stack_size in
8671 diagnostic. Use %wd for HOST_WIDE_INT.
8672 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8673 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8674 * config/s390/s390.opt (config/s390/s390-opts.h): New
8675 HeaderInclude entry.
8676 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8677 s390_arch_flags, s390_warn_framesize): New Variable entries.
8678 (s390_arch_option): New Enum and EnumValue entries.
8679 (march=): Use Enum instead of Var.
8680 (mstack-guard=, mstack-size=): Use UInteger and Var.
8683 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8685 * config/score/score.c (score_handle_option): Don't assert that
8686 global structures are in use. Access target_flags via opts
8687 pointer. Use value of -march= option to determine target_flags
8689 * config/score/score.opt (march=): Use Enum.
8690 (score_arch): New Enum and EnumValue entries.
8692 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8694 * config/mep/mep.c (option_mtiny_specified): Remove.
8695 (mep_option_override): Move register handling for -mivc2 from
8696 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8697 instead of option_mtiny_specified.
8698 (mep_handle_option): Access target_flags via opts pointer. Don't
8699 assert that global structures are in use. Defer part of -mivc2
8700 handling and move it to mep_option_override.
8701 * config/mep/mep.opt (IVC2): New Mask entry.
8702 (mivc2): Use Var and Defer instead of Mask.
8704 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8706 * config/v850/v850-opts.h: New.
8707 * config/v850/v850.c (small_memory): Replace with
8708 small_memory_physical_max array. Make that array static const.
8709 (v850_handle_memory_option): Take integer value of argument. Take
8710 gcc_options pointer, option text and location. Return void.
8711 Update for changes to small memory structures.
8712 (v850_handle_option): Access target_flags via opts pointer. Don't
8713 assert that global structures are in use. Update calls to
8714 v850_handle_memory_option.
8715 (v850_encode_data_area): Update references to small memory settings.
8716 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8717 (enum small_memory_type): Move to v850-opts.h.
8718 * config/v850/v850.opt (config/v850/v850-opts.h): New
8719 HeaderInclude entry.
8720 (small_memory_max): New Variable entry.
8721 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8722 (mtda, mzda): Likewise.
8724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8726 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8727 pointer. Don't assert that global structures are in use.
8729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8731 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8732 via opts pointer. Don't assert that global structures are in use.
8734 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8736 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8737 (munix=93): Use Var.
8738 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8739 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8740 * config/pa/pa-opts.h: New.
8741 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8742 (pa_handle_option): Don't assert that global structures are in
8743 use. Access target_flags via opts pointer. Don't handle
8744 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8746 (pa_option_override): Handle deferred OPT_mfixed_range_.
8748 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8750 * config/mn10300/mn10300-opts.h: New.
8751 * config/mn10300/mn10300.c (mn10300_processor,
8752 mn10300_tune_string): Remove.
8753 (mn10300_handle_option): Don't assert that global structures are
8754 in use. Access mn10300_processor via opts pointer. Don't handle
8756 * config/mn10300/mn10300.h (enum processor_type): Move to
8758 (mn10300_processor): Remove.
8759 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8760 HeaderInclude entry.
8761 (mn10300_processor): New Variable entry.
8764 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8766 * config/microblaze/microblaze.c: Don't include opts.h.
8767 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8768 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8769 (mno-clearbss): Use Var and Warn.
8771 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8773 * config/m32r/m32r-opts.h: New.
8774 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8775 (m32r_handle_option): Don't assert that global structures are in
8776 use. Access target_flags and m32r_cache_flush_func via opts
8777 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8778 OPT_mno_flush_trap here.
8779 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8780 include of m32r-opts.h.
8781 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8782 HeaderInclude entry.
8783 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8784 (mmodel=): Use Enum and Var.
8785 (m32r_model): New Enum and EnumValue entries.
8786 (mno-flush-trap): Use Var.
8787 (msdata=): Use Enum and Var.
8788 (m32r_sdata): New Enum and EnumValue entries.
8790 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8792 * config/m32c/m32c.c: Don't include opts.h.
8793 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8794 m32c_handle_option): Remove.
8795 (m32c_option_override): Check global_options_set.x_target_memregs
8796 instead of target_memregs_set.
8797 * config/m32c/m32c.h (target_memregs): Remove.
8798 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8803 * config/iq2000/iq2000-opts.h: New.
8804 * config/iq2000/iq2000.c: Don't include opts.h.
8805 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8806 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8807 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8808 HeaderInclude entry.
8809 (iq2000_tune): New Variable entry.
8810 (march=): Add comment. Use Enum.
8811 (iq2000_arch): New Enum and EnumValue entries.
8812 (mcpu=): Use Enum and Var.
8813 (iq2000_tune): New Enum and EnumValue entries.
8815 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8817 * config/ia64/ia64-opts.h: New.
8818 * config/ia64/ia64.c (ia64_tune): Remove.
8819 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8821 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8822 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8823 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8824 HeaderInclude entry.
8825 (ia64_tune): New Variable entry.
8826 (mfixed-range=): Use Defer and Var.
8827 (mtune=): Use Enum and Var.
8828 (ia64_tune): New Enum and EnumValue entries.
8830 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8832 * config/frv/frv-opts.h: New.
8833 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8835 (frv_cpu_type): Remove.
8836 * config/frv/frv.c: Don't include opts.h.
8837 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8838 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8839 (frv_cpu_type): New Variable entry.
8840 (frv_cpu): New Enum and EnumValue entries.
8842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8844 * config/cris/cris.c (cris_handle_option): Access target_flags via
8845 opts pointer. Don't assert that global structures are in use.
8846 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8847 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8849 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8851 * config/bfin/bfin-opts.h: New.
8852 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8853 bfin_si_revision, bfin_workarounds): Remove.
8854 (bfin_cpus): Make static const.
8855 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8856 not bfin_lib_id_given.
8857 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8858 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8859 pointer. Use error_at. Don't assert that global structures are in use.
8860 * config/bfin/bfin.h: Include bfin-opts.h.
8861 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8862 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8863 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8864 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8867 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8869 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8870 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8871 or -msoft-float here.
8872 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8873 -msoft-float and -mhard-float.
8874 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8875 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8877 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8879 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8880 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8882 (LIBGCC_SPEC): Don't handle -msoft-float.
8883 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8885 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8887 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8888 -mfloat-abi=*, not -msoft-float and -mhard-float.
8889 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8891 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8892 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8893 mhard-float and msoft-float.
8894 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8895 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8896 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8897 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8899 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8900 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8902 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8904 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8907 2011-03-22 Richard Henderson <rth@redhat.com>
8909 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8910 TARGET_ABI_WINDOWS_NT.
8911 (alpha_output_function_end_prologue): Likewise.
8912 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8913 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8914 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8915 (trap, *movsi_nt_vms): Likewise.
8916 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8917 (*tablejump_osf_nt_internal): Remove.
8918 * config/alpha/predicates.md (input_operand): Only test Pmode.
8920 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8922 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8923 via opts pointer. Use error_at. Don't assert that global
8924 structures are in use.
8926 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8928 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8929 (ix86_handle_option): Access ix86_isa_flags and
8930 ix86_isa_flags_explicit via opts pointer. Don't assert that
8931 global structures are in use.
8932 (ix86_function_specific_save, ix86_function_specific_restore):
8933 Update ix86_isa_flags_explicit field name.
8934 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8935 (ix86_isa_flags_explicit): Rename TargetSave entry to
8936 x_ix86_isa_flags_explicit.
8938 2011-03-22 Richard Henderson <rth@redhat.com>
8940 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8941 (alpha_option_override, direct_return): Likewise.
8942 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8943 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8944 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8945 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8946 (alpha_expand_epilogue, alpha_end_function): Likewise.
8947 (alpha_init_libfuncs): Likewise.
8948 (struct machine_function): Remove unicosmk members.
8949 (print_operand) ['t']: Remove.
8950 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8951 unicosmk_output_module_name, unicosmk_output_common,
8952 current_section_align, unicosmk_output_text_section_asm_op,
8953 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8954 unicosmk_section_type_flags, unicosmk_unique_section,
8955 unicosmk_asm_named_section, unicosmk_insert_attributes,
8956 unicosmk_output_align, unicosmk_defer_case_vector,
8957 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8958 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8959 unicosmk_output_ssib, unicosmk_add_call_info_word,
8960 unicosmk_extern_head, unicosmk_output_default_externs,
8961 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8962 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8963 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8964 * config/alpha/alpha-protos.h: Update.
8965 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8966 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8967 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8968 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8969 (*mulsi_se, mulvsi3): Likewise.
8970 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8971 (*divmodsi_internal, call, call_value, realign): Likewise.
8972 (moddi3, umoddi3): Likewise; remove duplicate expander.
8973 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8974 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8975 (*movdi_nofix): Remove r/U alternative.
8976 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8977 * config/alpha/constraints.md ("U"): Remove.
8978 * config/alpha/predicates.md (call_operand"): Don't test
8979 TARGET_ABI_UNICOSMK.
8981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8983 * target.def (handle_option): Take gcc_options and
8984 cl_decoded_option pointers and location_t.
8985 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8986 * doc/tm.texi: Regenerate.
8987 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8988 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8989 * lto-opts.c (lto_reissue_options): Generate option structure for
8990 targetm.handle_option call.
8991 * opts.c (target_handle_option): Update call to
8992 targetm.handle_option. Remove assertions about values now passed
8994 * targhooks.c (default_target_handle_option): New.
8995 * targhooks.h (default_target_handle_option): Declare.
8996 * config/alpha/alpha.c: Include opts.h.
8997 (alpha_handle_option): Update to new hook interface.
8998 * config/arm/arm.c: Include opts.h.
8999 (arm_handle_option): Update to new hook interface.
9000 * config/arm/t-arm (arm.o): Update dependencies.
9001 * config/bfin/bfin.c: Include opts.h.
9002 (bfin_handle_option): Update to new hook interface.
9003 * config/cris/cris.c: Include opts.h.
9004 (cris_handle_option): Update to new hook interface.
9005 * config/frv/frv.c: Include opts.h.
9006 (frv_handle_option): Update to new hook interface.
9007 * config/i386/i386.c: Include opts.h.
9008 (ix86_handle_option): Update to new hook interface.
9009 (ix86_valid_target_attribute_inner_p): Generate option structure
9010 for call to ix86_handle_option.
9011 * config/i386/t-i386 (i386.o): Update dependencies.
9012 * config/ia64/ia64.c: Include opts.h.
9013 (ia64_handle_option): Update to new hook interface.
9014 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9015 * config/iq2000/iq2000.c: Include opts.h.
9016 (iq2000_handle_option): Update to new hook interface.
9017 * config/m32c/m32c.c: Include opts.h.
9018 (m32c_handle_option): Update to new hook interface.
9019 * config/m32r/m32r.c: Include opts.h.
9020 (m32r_handle_option): Update to new hook interface.
9021 * config/m68k/m68k.c: Include opts.h.
9022 (m68k_handle_option): Update to new hook interface.
9023 * config/mep/mep.c: Include opts.h.
9024 (mep_handle_option): Update to new hook interface.
9025 * config/microblaze/microblaze.c: Include opts.h.
9026 (microblaze_handle_option): Update to new hook interface.
9027 * config/mips/mips.c: Include opts.h.
9028 (mips_handle_option): Update to new hook interface.
9029 * config/mn10300/mn10300.c: Include opts.h.
9030 (mn10300_handle_option): Update to new hook interface.
9031 * config/pa/pa.c: Include opts.h.
9032 (pa_handle_option): Update to new hook interface.
9033 * config/pdp11/pdp11.c: Include opts.h.
9034 (pdp11_handle_option): Update to new hook interface.
9035 * config/rs6000/rs6000.c: Include opts.h.
9036 (rs6000_handle_option): Update to new hook interface.
9037 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9038 * config/rx/rx.c: Include opts.h.
9039 (rx_handle_option): Update to new hook interface.
9040 * config/s390/s390.c: Include opts.h.
9041 (s390_handle_option): Update to new hook interface.
9042 * config/score/score.c: Include opts.h.
9043 (score_handle_option): Update to new hook interface.
9044 * config/sh/sh.c: Include opts.h.
9045 (sh_handle_option): Update to new hook interface.
9046 * config/sparc/sparc.c: Include opts.h.
9047 (sparc_handle_option): Update to new hook interface.
9048 * config/v850/v850.c: Include opts.h.
9049 (v850_handle_option): Update to new hook interface.
9051 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9053 * gcc.c (driver_unknown_option_callback): Only permit and save
9054 unknown -Wno- options.
9055 (driver_wrong_lang_callback): Save options directly instead of via
9056 driver_unknown_option_callback.
9058 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9060 * combine.c (simplify_set): Try harder to find the best CC mode when
9061 simplifying a nested COMPARE on the RHS.
9063 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9065 * config/alpha/gnu.h: Remove.
9066 * config/arc: Remove directory.
9067 * config/arm/netbsd.h: Remove.
9068 * config/arm/t-pe: Remove.
9069 * config/crx: Remove directory.
9070 * config/i386/netbsd.h: Remove.
9071 * config/m68hc11: Remove directory.
9072 * config/m68k/uclinux-oldabi.h: Remove.
9073 * config/mcore/mcore-pe.h: Remove.
9074 * config/mcore/t-mcore-pe: Remove.
9075 * config/netbsd-aout.h: Remove.
9076 * config/rs6000/gnu.h: Remove.
9077 * config/sh/sh-symbian.h: Remove.
9078 * config/sh/symbian-base.c: Remove.
9079 * config/sh/symbian-c.c: Remove.
9080 * config/sh/symbian-cxx.c: Remove.
9081 * config/sh/symbian-post.h: Remove.
9082 * config/sh/symbian-pre.h: Remove.
9083 * config/sh/t-symbian: Remove.
9084 * config/svr3.h: Remove.
9085 * config/vax/netbsd.h: Remove.
9086 * config.build: Don't handle i[34567]86-*-pe.
9087 * config.gcc: Remove handling of deprecations for most deprecated
9089 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9090 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9091 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9092 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9093 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9094 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9096 * config.host: Don't handle i[34567]86-*-pe.
9097 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9098 (ASM_SPEC32): Don't handle -mcall-gnu.
9099 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9101 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9102 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9103 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9104 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9105 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9106 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9107 conditional on SYMBIAN.
9108 * configure.ac: Don't handle powerpc*-*-gnu*.
9109 * configure: Regenerate.
9110 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9111 * doc/install-old.texi (m6811, m6812): Don't mention.
9112 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9113 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9114 (m68k-uclinuxoldabi): Don't mention.
9115 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9117 (-mcall-gnu): Remove.
9118 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9119 families): Remove constraint documentation.
9121 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9123 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9124 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9125 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9127 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9130 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9131 vector when peeking at the next token for vector, don't expand the
9134 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9136 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9137 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9138 * config/avr/avr.c (init_cumulative_args)
9139 (avr_function_arg_advance): Use it.
9140 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9142 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9143 (avr_function_ok_for_sibcall): ...this new function.
9144 (avr_lookup_function_attribute1): New static Function.
9145 (avr_naked_function_p, interrupt_function_p)
9146 (signal_function_p, avr_OS_task_function_p)
9147 (avr_OS_main_function_p): Use it.
9148 * config/avr/avr.md ("sibcall", "sibcall_value")
9149 ("sibcall_epilogue"): New expander.
9150 ("*call_insn", "*call_value_insn"): New insn.
9151 ("call_insn", "call_value_insn"): Remove
9152 ("call", "call_value", "epilogue"): Change expander to handle
9155 2011-03-21 Nick Clifton <nickc@redhat.com>
9157 * doc/invoke.texi (Overall Options): Move closing brace to end of
9159 (Optimization Options): Add missing @gol.
9160 (Directory Options): Likewise.
9161 (i386 and x86-64 Options): Likewise.
9162 (RS6000 and PowerPC Options): Likewise.
9163 (i386 and x86-64 Windows Options): Likewise.
9164 (V850 Options): Add text missing from descriptions.
9166 2011-03-22 Richard Henderson <rth@redhat.com>
9168 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9169 (avr_incoming_return_addr_rtx): New.
9170 (emit_push_byte): New.
9171 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9172 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9173 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9174 (emit_pop_byte): New.
9175 (expand_epilogue): Use it. Pop frame pointer by bytes.
9176 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9177 (INCOMING_RETURN_ADDR_RTX): New.
9178 (INCOMING_FRAME_SP_OFFSET): New.
9179 (ARG_POINTER_CFA_OFFSET): New.
9180 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9181 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9184 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9186 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9188 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9189 (FUNCTION_ARG_ADVANCE): Likewise.
9190 * tm.texi.in: Change references to them to hook references.
9191 * tm.texi: Regenerate.
9192 * targhooks.c (default_function_arg): Eliminate check for target
9194 (default_function_incoming_arg): Likewise.
9195 (default_function_arg_advance): Likewise.
9196 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9197 (function_arg_advance): Likewise.
9198 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9200 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9202 * tree.c (build_call_1): New function.
9203 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9205 2011-03-22 Richard Guenther <rguenther@suse.de>
9207 PR tree-optimization/48228
9208 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9209 for single-arg PHIs.
9211 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9213 PR rtl-optimization/48143
9214 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9215 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9216 sse2_cvtps2pd): Likewise.
9218 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9220 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9222 2011-03-22 Richard Guenther <rguenther@suse.de>
9224 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9225 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9226 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9227 and REALIGN_LOAD_EXPR.
9228 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9229 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9230 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9231 DOT_PROD_EXPR case ...
9232 (expand_expr_real_2): ... here.
9233 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9234 and REALIGN_LOAD_EXPR.
9235 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9236 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9237 (vect_create_epilog_for_reduction): Likewise.
9238 (vectorizable_reduction): Likewise.
9239 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9240 * tree-vect-stmts.c (vectorizable_load): Likewise.
9242 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9244 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9246 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9248 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9249 handling for PLTOFF/GOTOFF.
9251 2011-03-22 Nick Clifton <nickc@redhat.com>
9253 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9254 trailing backslash from the end of the macro definition.
9256 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9258 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9261 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9263 * expr.h (prepare_operand): Move to...
9264 * optabs.h (prepare_operand): ...here and change the insn code
9265 parameter from "int" to "enum insn_code".
9266 (insn_operand_matches): Declare.
9267 * expr.c (init_expr_target): Use insn_operand_matches.
9268 (compress_float_constant): Likewise.
9269 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9270 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9271 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9272 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9274 (gen_cond_trap): Likewise.
9275 (prepare_operand): Likewise. Change icode to an insn_code.
9276 (insn_operand_matches): New function.
9277 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9278 * reload1.c (gen_reload): Likewise.
9279 * targhooks.c (default_secondary_reload): Likewise.
9281 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9283 * config/alpha/alpha.md (unspec): New define_c_enum.
9286 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9289 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9290 between a call and its CALL_ARG_LOCATION note.
9292 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9294 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9296 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9300 * c-common.c (shorten_compare): If primopN is first sign-extended
9301 to opN and then zero-extended to result type, set primopN to opN.
9303 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9305 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9306 for barrier handlers.
9308 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9310 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9311 UNSPEC constants to be in the unspec enumeration, and redefine
9312 all UNSPECV constants to be in the unspecv enumeration, so that
9313 dumps print which unspec/unspec_volatile this is.
9314 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9315 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9316 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9317 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9318 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9320 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9321 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9322 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9323 * config/rs6000/sync.md (isync, lwsync): Ditto.
9325 2011-03-21 Richard Guenther <rguenther@suse.de>
9327 * params.def (lto-min-partition): Fix typo.
9329 2011-03-21 Richard Guenther <rguenther@suse.de>
9332 * c-decl.c (grokdeclarator): Drop to the main variant only
9333 for array types. Drop flag_gen_aux_info check.
9335 2011-03-21 Richard Guenther <rguenther@suse.de>
9337 PR translation/47911
9338 * params.def (lto-partitions): Fix typo.
9339 (lto-min-partition): Fix wording.
9341 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9343 * config/rs6000/t-freebsd: Remove duplication from file.
9345 2011-03-21 Richard Guenther <rguenther@suse.de>
9348 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9350 2011-03-21 Richard Guenther <rguenther@suse.de>
9353 * params.def (lto-partitions): Require at least 1 partition.
9355 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9357 * gthr-solaris.h: Remove.
9358 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9359 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9360 (LIB_SPEC): Likewise.
9361 * config/sol2.opt (threads): Remove.
9362 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9363 (sparc*-*-solaris2*): Likewise.
9364 * configure.ac (enable_threads): Enable solaris support.
9365 * configure: Regenerate.
9366 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9367 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9370 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9372 * config.gcc: Obsolete *-*-solaris2.8*.
9373 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9375 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9378 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9379 reference. Solaris 8 perl works.
9381 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9384 * doc/install.texi (Prerequisites): Move jar etc. up.
9385 Explain support library version requirements.
9387 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9390 * doc/install.texi (Prerequisites): Move Perl to build
9391 requirements. Always necessary on Solaris 2 with Sun ld.
9393 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9395 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9397 (Specific, i?86-*-solaris2.[89]): Likewise.
9398 (Specific, i?86-*-solaris2.10): Likewise.
9399 (Specific, mips-sgi-irix6): Likewise.
9400 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9401 Update for binutils 2.21.
9403 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9405 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9406 Allow -fuse-linker-plugin for non-default plugin linker.
9407 * configure: Regenerate.
9409 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9412 * gengtype.c (files_rules): Added rule for cp/parser.h.
9414 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9417 * config/s390/s390.c (s390_delegitimize_address): Don't call
9418 lowpart_subreg if orig_x has BLKmode.
9420 2011-03-21 Kai Tietz <ktietz@redhat.com>
9423 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9424 * tree.h (attribute_spec): Add new member affects_type_identity.
9425 * attribs.c (empty_attribute_table): Adjust attribute_spec
9427 * config/alpha/alpha.c: Likewise.
9428 * config/arc/arc.c: Likewise.
9429 * config/arm/arm.c: Likewise.
9430 * config/avr/avr.c: Likewise.
9431 * config/bfin/bfin.c: Likewise.
9432 * config/crx/crx.c: Likewise.
9433 * config/darwin.h: Likewise.
9434 * config/h8300/h8300.c: Likewise.
9435 * config/i386/cygming.h: Likewise.
9436 * config/i386/i386.c: Likewise.
9437 * config/ia64/ia64.c: Likewise.
9438 * config/m32c/m32c.c: Likewise.
9439 * config/m32r/m32r.c: Likewise.
9440 * config/m68hc11/m68hc11.c: Likewise.
9441 * config/m68k/m68k.c: Likewise.
9442 * config/mcore/mcore.c: Likewise.
9443 * config/mep/mep.c: Likewise.
9444 * config/microblaze/microblaze.c: Likewise.
9445 * config/mips/mips.c: Likewise.
9446 * config/rs6000/rs6000.c: Likewise.
9447 * config/rx/rx.c: Likewise.
9448 * config/sh/sh.c: Likewise.
9449 * config/sol2.h: Likewise.
9450 * config/sparc/sparc.c: Likewise.
9451 * config/spu/spu.c: Likewise.
9452 * config/stormy16/stormy16.c: Likewise.
9453 * config/v850/v850.c: Likewise.
9455 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9457 * simplify-rtx.c (simplify_binary_operation_1): Handle
9458 (xor (and A B) C) case when B and C are both constants.
9460 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9462 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9464 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9467 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9469 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9471 PR rtl-optimization/48156
9472 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9473 assume df and df_lr are not NULL.
9475 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9478 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9479 between a call and its CALL_ARG_LOCATION note.
9481 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9484 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9485 between a call and its corresponding CALL_ARG_LOCATION note.
9487 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9489 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9490 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9491 * haifa-sched.c (setup_ref_regs): Ditto.
9492 * caller-save.c (add_used_regs_1): Ditto.
9493 * dse.c (look_for_hardregs): Ditto.
9494 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9495 * sched-rgn.c (check_live_1): Ditto.
9497 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9499 * c-decl.c (diagnose_mismatched_decls): Give an error for
9500 redefining a typedef with variably modified type.
9502 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9504 * c-decl.c (grokfield): Don't allow typedefs for structures or
9505 unions with no tag by default.
9506 * doc/extend.texi (Unnamed Fields): Update.
9508 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9510 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9511 Rewrite using indirect functions.
9512 (lwp_slwpcb): Ditto.
9513 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9514 (avx_vinsertf128<mode>): Ditto.
9516 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9518 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9521 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9523 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9524 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9526 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9528 PR rtl-optimization/48170
9529 * gcse.c (hoist_code): Remove bogus asserts.
9531 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9533 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9534 computation for prologue/epilogue.
9536 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9538 * Makefile.in (check-consistency): Remove.
9540 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9543 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9544 arange_table_in_use is 0, but either text_section_used or
9545 cold_text_section_used is true. Don't call it if
9546 !info_section_emitted.
9548 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9550 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9551 FUNCTION_VALUE_REGNO_P): Remove.
9552 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9554 * config/avr/avr.c (avr_ret_register): Make static inline.
9555 (avr_function_value_regno_p): New function.
9556 (avr_libcall_value): Make static. Add 'func' argument.
9557 (avr_function_value): Make static. Rename 'func' argument to
9558 'fn_decl_or_type', forward it to avr_libcall_value. Call
9559 avr_ret_register function instead of RET_REGISTER macro.
9560 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9562 2011-03-18 Jason Merrill <jason@redhat.com>
9565 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9567 2011-03-18 Richard Guenther <rguenther@suse.de>
9569 * doc/install.texi (--enable-gold): Remove.
9570 (--with-plugin-ld): Document.
9571 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9573 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9576 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9577 again after expansion changes.
9579 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9581 * combine.c (try_combine): Do simplification only call of
9582 subst() on i2 even when i1 is present. Update comments.
9584 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9586 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9587 and UNSPEC_PCREL_SYMOFF.
9589 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9591 * config/s390/s390.md: Use define_c_enum for the unspec constant
9594 2011-03-18 Richard Henderson <rth@redhat.com>
9595 Jakub Jelinek <jakub@redhat.com>
9598 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9599 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9601 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9604 * combine.c (cant_combine_insn_p): Don't check zero/sign
9605 extended hard registers.
9607 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9610 * combine.c (cant_combine_insn_p): Check zero/sign extended
9613 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9615 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9616 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9617 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9618 Change return type to bool.
9619 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9621 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9624 * var-tracking.c (prepare_call_arguments): If CALL target
9625 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9626 pc instead of looking it up using cselib_lookup and use
9627 Pmode for it if x has VOIDmode.
9628 * dwarf2out.c (gen_subprogram_die): If also both first and
9629 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9632 * function.c (assign_parms): For data.passed_pointer parms
9633 use MEM of data.entry_parm instead of data.entry_parm itself
9634 as DECL_INCOMING_RTL.
9635 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9636 also when passed and declared mode is the same, DECL_RTL
9637 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9640 2011-03-16 Jeff Law <law@redhat.com>
9642 PR rtl-optimization/37273
9643 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9644 handle them like argument loads from stack slots. Do not double
9645 count memory for memory constants and argument loads from stack slots.
9647 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9650 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9652 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9655 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9657 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9660 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9662 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9663 Clear call_arg_locations and call_arg_loc_last always.
9666 * var-tracking.c (prepare_call_arguments): If argument needs to be
9667 passed by reference, adjust argtype and mode.
9669 2011-03-17 Richard Guenther <rguenther@suse.de>
9672 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9673 a value make sure to fold the statement.
9675 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9678 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9679 return condition with !cfun->calls_alloca.
9681 2011-03-17 Richard Guenther <rguenther@suse.de>
9684 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9685 origin for decls in other ltrans units.
9686 (input_varpool_node): Likewise.
9688 2011-03-17 Richard Guenther <rguenther@suse.de>
9691 * tree-object-size.c (compute_object_offset): Properly return
9692 the offset operand of MEM_REFs as sizetype.
9694 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9696 PR rtl-optimization/48141
9697 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9698 * dse.c: Include params.h.
9699 (active_local_stores_len): New variable.
9700 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9702 (record_store, check_mem_read_rtx): Decrease it when removing
9704 (scan_insn): Likewise. Increase it when adding to chain, if it
9705 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9706 set active_local_stores to NULL before the addition.
9707 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9709 PR rtl-optimization/48141
9710 * dse.c (record_store): If no positions are needed in an insn
9711 that cannot be deleted, at least unchain it from active_local_stores.
9713 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9716 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9717 (lookup_type_die_strip_naming_typedef): ... here.
9718 (get_context_die): Use it.
9719 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9720 the anonymous struct named by the naming typedef.
9722 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9725 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9726 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9728 2011-03-16 Jeff Law <law@redhat.com>
9730 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9731 check for operands of conditional. Allow type to be a pointer.
9733 2011-03-16 Richard Guenther <rguenther@suse.de>
9735 PR tree-optimization/48149
9736 * fold-const.c (fold_binary_loc): Fold
9737 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9739 2011-03-16 Richard Guenther <rguenther@suse.de>
9741 PR tree-optimization/26134
9742 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9743 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9744 (non_rewritable_mem_ref_base): Handle complex type component
9745 accesses, constrain offsets for vector and complex extracts
9748 2011-03-16 Richard Guenther <rguenther@suse.de>
9750 PR tree-optimization/48146
9751 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9752 operands avoiding the need for renaming.
9754 2011-03-16 Richard Guenther <rguenther@suse.de>
9756 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9757 constant folding. Move MEM_REF canonicalization first.
9758 Rely on fold_const_aggregate_ref for initializer folding.
9759 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9761 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9764 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9765 arg0/arg1 or their arguments are always fold converted to matching
9768 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9771 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9774 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9775 Handle in-tree gold.
9776 (ld_vers): Extract binutils version for gold.
9777 (gcc_cv_ld_hidden): Handle gold here.
9778 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9779 * configure: Regenerate.
9780 * config.in: Regenerate.
9781 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9782 -fuse-linker-plugin otherwise.
9783 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9784 (LINK_COMMAND_SPEC): Use it.
9785 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9787 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9789 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9790 * calls.c: Remove debug.h include.
9791 (emit_call_1): Don't call virtual_call_token debug hook.
9792 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9793 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9794 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9795 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9796 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9797 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9798 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9799 dwarf2out_virtual_call): Remove.
9800 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9801 copy_call_info and virtual_call hooks.
9802 (dwarf2out_init): Don't initialize vcall_insn_table,
9803 debug_dcall_section and debug_vcall_section.
9804 (prune_unused_types): Don't mark nodes from dcall_table.
9805 (dwarf2out_finish): Don't output dcall or vcall tables.
9806 * final.c (final_scan_insn): Don't call direct_call or
9807 virtual_call debug hooks.
9808 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9809 virtual_call_token, copy_call_info and virtual_call hooks.
9810 (debug_nothing_uid): Remove prototype.
9811 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9812 copy_call_info and virtual_call hooks.
9813 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9814 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9815 * debug.c (do_nothing_debug_hooks): Likewise.
9816 (debug_nothing_uid): Remove.
9817 * doc/invoke.texi (-fenable-icf-debug): Remove.
9818 * common.opt (-fenable-icf-debug): Likewise.
9820 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9821 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9822 call's MEM. Handle functions returning aggregate through a hidden
9823 first pointer. For virtual calls add clobbered pc to call arguments
9825 * dwarf2out.c (gen_subprogram_die): Emit
9826 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9830 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9831 * rtl.h (ENTRY_VALUE_EXP): Define.
9832 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9833 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9834 * print-rtl.c (print_rtx): Likewise.
9835 * gengtype.c (adjust_field_rtx_def): Likewise.
9836 * var-tracking.c (vt_add_function_parameter): Adjust
9837 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9838 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9839 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9840 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9841 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9843 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9844 Call var_location debug hook even on CALL_INSNs.
9845 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9846 * rtl.def (ENTRY_VALUE): New.
9847 * dwarf2out.c: Include cfglayout.h.
9848 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9849 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9850 (struct call_arg_loc_node): New type.
9851 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9852 tail_call_site_count): New variables.
9853 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9854 DW_TAG_GNU_call_site_parameter.
9855 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9856 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9857 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9858 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9859 and DW_AT_GNU_all_source_call_sites.
9860 (mem_loc_descriptor): Handle ENTRY_VALUE.
9861 (add_src_coords_attributes): Don't add enything if
9862 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9863 (dwarf2out_abstract_function): Save and clear call_arg_location,
9864 call_site_count and tail_call_site_count around dwarf2out_decl call.
9865 (gen_call_site_die): New function.
9866 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9867 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9868 (dwarf2out_function_decl): Clear call_arg_locations,
9869 call_arg_loc_last, set call_site_count and tail_call_site_count
9870 to -1 and free block_map.
9871 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9872 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9873 followed by any real instructions.
9874 (dwarf2out_begin_function): Set call_site_count and
9875 tail_call_site_count to 0.
9876 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9877 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9878 attempt to force a DIE for it and worst case remove the attribute.
9879 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9880 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9882 * var-tracking.c: Include tm_p.h.
9883 (vt_stack_adjustments): For calls call note_register_arguments.
9884 (argument_reg_set): New variable.
9885 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9886 ensure the VALUE is resolved.
9887 (call_arguments): New variable.
9888 (prepare_call_arguments): New function.
9889 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9890 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9891 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9892 always use the best expression.
9893 (vt_expand_loc): Add ignore_cur_loc argument.
9894 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9895 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9896 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9898 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9899 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9900 argument. Don't call cselib_preserve_only_values and
9902 (note_register_arguments): New function.
9903 (vt_initialize): Compute argument_reg_set. Call
9904 vt_add_function_parameters before processing basic blocks instead of
9905 afterwards. For calls call prepare_call_arguments before calling
9906 cselib_process_insn.
9907 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9908 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9909 (var-tracking.o): Depend on $(TM_P_H).
9910 * cfglayout.h (insn_scope): New prototype.
9911 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9912 * cfglayout.c (insn_scope): No longer static.
9913 * insn-notes.def (CALL_ARG_LOCATION): New.
9914 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9915 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9916 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9917 nothing for DECL_EXTERNAL BLOCK_VARS.
9919 2011-03-16 Alan Modra <amodra@gmail.com>
9922 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9923 create invalid offset address for vsx splat insn.
9924 * config/rs6000/predicates.md (splat_input_operand): New.
9925 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9927 2011-03-15 Xinliang David Li <davidxl@google.com>
9930 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9931 (normalize_preds): New function.
9932 (is_use_properly_guarded): Normalize def predicates.
9934 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9937 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9938 in the output template.
9940 2011-03-15 Richard Guenther <rguenther@suse.de>
9943 * tree-pretty-print.c (dump_function_declaration): Properly
9944 dump unprototyped and varargs function types.
9946 2011-03-15 Richard Guenther <rguenther@suse.de>
9948 PR tree-optimization/13954
9949 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9952 2011-03-15 Richard Guenther <rguenther@suse.de>
9954 PR tree-optimization/48037
9955 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9956 selects into BIT_FIELD_REFs.
9957 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9960 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9962 PR tree-optimization/48129
9963 * builtins.c (fold_builtin_snprintf): Convert to type of
9964 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9965 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9967 2011-03-15 Richard Guenther <rguenther@suse.de>
9969 PR tree-optimization/41490
9970 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9971 value but with VUSE.
9972 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9974 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9975 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9976 * tree-tailcall.c (find_tail_calls): Ignore returns.
9978 2011-03-15 Richard Guenther <rguenther@suse.de>
9981 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9982 or variable-indexed array accesses when in gimple form.
9984 2011-03-15 Richard Guenther <rguenther@suse.de>
9986 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9988 2011-03-15 Alan Modra <amodra@gmail.com>
9991 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9992 presume symbol_refs without a symbol_ref_decl are suitably
9993 aligned, nor other trees we may see here. Handle anchor symbols.
9994 (legitimate_constant_pool_address_p): Comment. Add mode param.
9995 Check cmodel=medium addresses. Adjust all calls.
9996 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9997 creating cmodel=medium optimized access to locals.
9998 * config/rs6000/constraints.md (R): Pass QImode to
9999 legitimate_constant_pool_address_p.
10000 * config/rs6000/predicates.md (input_operand): Pass mode to
10001 legitimate_constant_pool_address_p.
10002 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10005 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10008 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10009 64-bit constants being loaded into registers other than GPRs such
10010 as loading 0 into a VSX register.
10012 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10014 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10016 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10018 PR middle-end/47917
10019 * builtins.c (fold_builtin_snprintf): New function.
10020 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10021 (fold_builtin_4): Likewise.
10023 PR middle-end/38878
10024 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10025 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10026 and C - X == X also strip nops from +/-/p+ operand.
10027 When optimizing -X == C, fold C to arg0's type.
10030 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10031 emit it as add_AT_int instead of add_AT_unsigned.
10033 2011-03-14 Tom Tromey <tromey@redhat.com>
10035 * unwind-dw2.c: Include sys/sdt.h if it exists.
10036 (_Unwind_DebugHook): Use STAP_PROBE2.
10037 * config.in, configure: Rebuild.
10038 * configure.ac: Check for sys/sdt.h.
10040 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10042 * config/i386/i386.md (ROUND_FLOOR): New constant.
10043 (ROUND_CEIL): Ditto.
10044 (ROUND_TRUNC): Ditto.
10045 (ROUND_MXCSR): Ditto.
10046 (ROUND_NO_EXC): Ditto.
10047 (rint<mode>2): Use new defines instead of numerical constants.
10048 (floor<mode>2): Ditto.
10049 (ceil<mode>2): Ditto.
10050 (btrunc<mode>2): Ditto.
10051 * config/i386/i386-builtin-types.def: Define ROUND function type
10053 * config/i386/i386.c (enum ix86_builtins): Add
10054 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10055 (struct builtin_description): Add
10056 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10057 (ix86_expand_sse_round): New static function.
10058 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10060 (ix86_builtin_vectorized_function): Handle
10061 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10063 2011-03-14 Tom Tromey <tromey@redhat.com>
10065 * c-parser.c (c_parser_asm_string_literal): Clear
10066 warn_overlength_strings.
10068 2011-03-14 Tom Tromey <tromey@redhat.com>
10070 * c-parser.c (disable_extension_diagnostics): Save
10071 warn_overlength_strings.
10072 (restore_extension_diagnostics): Restore warn_overlength_strings.
10074 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10076 * BASE-VER: Change to 4.7.0.
10078 2011-03-14 Richard Guenther <rguenther@suse.de>
10080 PR middle-end/48098
10081 * tree.c (build_vector_from_val): Adjust assert to requirements
10084 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10087 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10089 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10091 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10092 terms of target_flags_explicit. Adjust copyright year.
10094 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10095 * config/rs6000/t-freebsd: New file. Add override for
10098 2011-03-13 Chris Demetriou <cgd@google.com>
10100 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10101 (-fno-diagnostics-show-option): this, to reflect current default.
10102 (-Werror=): Update text about -fno-diagnostics-show-option.
10104 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10107 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10108 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10109 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10110 mode is not V2DImode or V2DFmode.
10111 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10112 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10113 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10115 (movdi_internal64): Likewise.
10117 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10119 PR tree-optimization/47127
10120 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10122 (set_cloog_options): Same.
10123 (scop_to_clast): Same.
10124 (print_clast_stmt): Do not call cloog_state_malloc and
10126 (print_generated_program): Same.
10128 * graphite-clast-to-gimple.h (cloog_state): Declared.
10129 (scop_to_clast): Adjust declaration.
10130 * graphite.c (cloog_state): Defined here.
10131 (graphite_initialize): Call cloog_state_malloc.
10132 (graphite_finalize): Call cloog_state_free.
10134 2011-03-11 Jason Merrill <jason@redhat.com>
10136 * attribs.c (lookup_attribute_spec): Take const_tree.
10139 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10141 * config/sparc/sparc.c (sparc_option_override): Use
10142 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10144 2011-03-11 Richard Guenther <rguenther@suse.de>
10146 PR tree-optimization/48067
10147 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10148 multiplication result will be only used once on the target
10151 2011-03-11 Richard Guenther <rguenther@suse.de>
10153 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10155 2011-03-11 Richard Guenther <rguenther@suse.de>
10158 * tree.c (find_decls_types_r): Do not walk types only reachable
10159 from IDENTIFIER_NODEs.
10161 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10163 PR middle-end/48044
10164 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10165 all vnode->force_output nodes as needed.
10167 2011-03-11 Jason Merrill <jason@redhat.com>
10170 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10171 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10173 2011-03-11 Martin Jambor <mjambor@suse.cz>
10175 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10178 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10180 PR tree-optimization/48063
10181 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10182 inline functions called once if !tree_can_inline_p (node->callers).
10184 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10186 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10188 * config/score/score3.c: Delete.
10189 * config/score/score3.h: Delete.
10190 * config/score/mul-div.S: Delete.
10191 * config/score/sfp-machine.h: Add new file.
10192 * config/score/constraints.md: Add new file.
10193 * config/score/t-score-softfp: Add new file.
10194 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10195 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10196 (score7_extra_constraint): Delete.
10197 (score7_option_override): Remove unused code.
10198 * config/score/score.c: Remove score3 and score5 define and code.
10199 * config/score/score.h: Remove score3 and score5 define and code.
10200 * config/score/score.md: Remove score3 template and unusual insn.
10201 * config/score/score.opt: Remove score3 and score5 options.
10203 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10205 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10206 when _HPUX_SOURCE is defined.
10207 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10209 2011-03-10 Jason Merrill <jason@redhat.com>
10212 * stor-layout.c (layout_type): Don't set structural equality
10213 on arrays of incomplete type.
10214 * tree.c (type_hash_eq): Handle comparing them properly.
10216 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10219 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10220 result mode matches original rtl mode.
10222 2011-03-10 Nick Clifton <nickc@redhat.com>
10224 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10225 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10227 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10229 PR rtl-optimization/47866
10230 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10231 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10232 if target wasn't scalar.
10233 * function.c (assign_stack_temp_for_type): Assert that neither
10234 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10235 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10237 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10239 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10241 * config/s390/s390-protos.h (s390_label_align): New prototype.
10242 * config/s390/s390.c (s390_label_align): New function.
10243 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10245 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10248 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10249 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10250 (output_vec_const_move): Ditto.
10252 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10254 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10255 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10256 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10257 Change 'rclass' argument and result type to reg_class_t.
10258 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10260 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10262 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10263 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10264 (TARGET_MEMORY_MOVE_COST): Define.
10265 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10267 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10270 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10273 PR tree-optimization/48022
10274 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10277 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10280 * var-tracking.c (find_use_val): Return NULL for
10281 cui->sets && cui->store_p BLKmode MEMs.
10283 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10285 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10287 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10288 xstormy16_print_operand_address): Remove.
10289 * config/stormy16/stormy16.c (xstormy16_print_operand,
10290 xstormy16_print_operand_address): Make static.
10291 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10293 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10296 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10297 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10300 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10303 * cfgloopmanip.c (fix_bb_placements): Return immediately
10304 if FROM is BASE_LOOP's header.
10306 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10308 * gimplify.c (gimplify_function_tree): Fix building calls
10309 to __builtin_return_address.
10311 2011-03-07 Alan Modra <amodra@gmail.com>
10313 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10314 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10315 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10316 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10318 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10319 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10320 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10321 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10322 * config/rs6000/rs6000.c
10323 (rs6000_elf_end_indicate_exec_stack): Rename to..
10324 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10325 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10326 (rs6000_file_start): ..here.
10327 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10328 file scope variables.
10329 (call_ABI_of_interest): New function.
10330 (init_cumulative_args): Set above vars when function return value
10331 is a float, vector, or small struct.
10332 (rs6000_function_arg_advance_1): Likewise for function args.
10333 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10334 references float args.
10336 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10338 * doc/cfg.texi: Remove "See" before @ref.
10339 * doc/invoke.texi: Likewise.
10341 2011-03-05 Jason Merrill <jason@redhat.com>
10343 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10345 2011-03-05 Anthony Green <green@moxielogic.com>
10347 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10349 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10351 PR rtl-optimization/47899
10352 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10353 to flow_loop_nested_p when moving the loop upward.
10355 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10358 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10360 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10362 PR tree-optimization/47967
10363 * ipa-cp.c (build_const_val): Return NULL instead of creating
10364 VIEW_CONVERT_EXPR for mismatching sizes.
10365 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10366 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10367 give up on versioning.
10369 2011-03-05 Alan Modra <amodra@gmail.com>
10372 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10373 full cmodel medium/large lo_sum + high addresses.
10375 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10377 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10378 pool references in UNSPEC_LTREL_OFFSET.
10380 2011-03-04 Jan Hubicka <jh@suse.cz>
10383 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10384 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10385 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10387 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10388 cgraph_add_thunk): Add node pointers.
10389 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10390 associated to right node.
10391 (input_node): Update use of cgraph_same_body_alias
10392 and cgraph_add_thunk.
10394 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10396 * config/i386/i386.opt (mprefer-avx128): New flag.
10397 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10398 modes when the flag -mprefer-avx128 is on.
10400 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10402 * dwarf2out.c (compare_loc_operands): Fix address handling.
10404 2011-03-04 Alan Modra <amodra@gmail.com>
10406 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10408 2011-03-04 Richard Guenther <rguenther@suse.de>
10410 PR middle-end/47968
10411 * expmed.c (extract_bit_field_1): Prefer vector modes that
10412 vec_extract patterns can handle.
10414 2011-03-04 Richard Guenther <rguenther@suse.de>
10416 PR middle-end/47975
10417 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10419 2011-03-04 Richard Henderson <rth@redhat.com>
10421 * explow.c (emit_stack_save): Remove 'after' parameter.
10422 (emit_stack_restore): Likewise.
10423 * expr.h: Update to match.
10424 * builtins.c, calls.c, stmt.c: Likewise.
10425 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10426 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10427 * function.c (expand_function_end): Insert the emit_stack_save
10428 sequence before parm_birth_insn instead of after.
10430 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10432 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10433 (ssse3_pmaddubsw128): Ditto.
10434 (ssse3_pmaddubsw): Ditto.
10436 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10438 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10440 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10443 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10444 on TYPE_SIZE_UNIT if it is a DECL.
10447 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10448 first operand is not is_gimple_mem_ref_addr, try to fold it.
10449 If the operand still isn't is_gimple_mem_ref_addr, clear
10452 2011-03-03 Richard Guenther <rguenther@suse.de>
10454 PR middle-end/47283
10455 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10457 (refs_may_alias_p_1): For release branches return true if
10458 we are confused by our input.
10460 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10462 * config/s390/s390.c (s390_function_value): Rename to ...
10463 (s390_function_and_libcall_value): ... this.
10464 (s390_function_value): New function.
10465 (s390_libcall_value): New function.
10466 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10467 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10468 target macro definitions.
10469 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10471 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10473 * config/i386/freebsd64.h (CC1_SPEC): Define.
10474 * config/i386/linux64.h (CC1_SPEC): Define.
10475 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10477 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10479 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10481 * config/stormy16/stormy16.c: Include reload.h.
10482 (xstormy16_memory_move_cost): New function.
10483 (TARGET_MEMORY_MOVE_COST): Define.
10485 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10487 PR rtl-optimization/47925
10488 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10489 with side effects. Remove the more-specific check for volatile asms.
10491 2011-03-02 Alan Modra <amodra@gmail.com>
10494 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10495 toc relative addresses for valid offsets.
10497 2011-03-01 Richard Guenther <rguenther@suse.de>
10499 PR tree-optimization/47890
10500 * tree-vect-loop.c (get_initial_def_for_induction): Set
10501 related stmt properly.
10503 2011-03-01 Richard Guenther <rguenther@suse.de>
10506 * lto-streamer.c (lto_record_common_node): Also register
10507 the canonical type.
10509 2011-03-01 Richard Guenther <rguenther@suse.de>
10512 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10513 Do not stream DECL_ABSTRACT_ORIGIN.
10514 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10515 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10516 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10517 Do not stream DECL_ABSTRACT_ORIGIN.
10518 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10519 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10521 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10523 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10524 FUNCTION_VALUE_REGNO_P): Remove.
10525 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10526 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10527 Add 'outgoing' argument.
10528 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10530 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10531 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10533 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10536 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10537 (lookup_filename): Likewise.
10538 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10540 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10541 Jakub Jelinek <jakub@redhat.com>
10543 PR middle-end/47893
10544 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10545 (assign_stack_local_1): Change last argument type to int.
10546 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10547 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10548 don't record padding space into frame_space_list nor use those areas.
10549 (assign_stack_local): Adjust caller.
10550 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10551 of assign_stack_local, pass 0 as last argument.
10552 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10555 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10558 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10559 Use target address_mode and pointer_mode hooks instead of hardcoded
10560 Pmode and ptr_mode. Handle some simple cases of extending if
10561 POINTERS_EXTEND_UNSIGNED < 0.
10562 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10563 Call convert_debug_memory_address.
10564 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10565 convert_debug_memory_address.
10567 PR middle-end/46790
10568 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10569 * configure: Regenerated.
10570 * config.in: Regenerated.
10571 * varasm.c (default_function_section): Return NULL
10572 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10574 2011-02-28 Martin Jambor <mjambor@suse.cz>
10576 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10577 the description to match the printed values.
10579 2011-02-28 Richard Guenther <rguenther@suse.de>
10581 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10582 of the copied scope tree.
10584 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10586 * doc/extend.texi (Function Attributes): Avoid deeply (and
10587 wrongly) nested tables.
10589 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10591 PR middle-end/47903
10592 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10593 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10594 r isn't op0 nor op1.
10596 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10598 * config/avr/avr.md: Remove magic comment for emacs.
10600 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10603 * config/avr/avr.c (avr_option_override): Use error on bad options.
10604 (avr_help): New function.
10605 (TARGET_HELP): Define.
10607 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10610 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10611 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10613 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10615 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10616 (ARM Options): Ditto.
10617 (i386 and x86-64 Options): Ditto.
10618 (RX Options): Ditto.
10619 (SPARC Options): Ditto.
10621 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10623 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10624 FreeBSD 6 and later. Generally use cpu generic.
10626 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10628 * doc/cpp.texi: Update copyright years.
10630 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10633 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10635 2011-02-25 Jon Beniston <jon@beniston.com>
10638 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10639 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10640 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10641 (lm32_block_move_inline): Add type cast to remove warning.
10642 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10643 (gen_int_relational): Move declarations to start of function.
10645 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10647 PR tree-optimization/45470
10648 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10649 can throw internally only.
10650 * tree-vect-stmts.c (vectorizable_call): Likewise.
10652 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10654 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10655 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10656 * config/stormy16/stormy16-protos.h
10657 (xstormy16_preferred_reload_class): Remove.
10658 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10659 static. Change 'rclass' argument and return type to reg_class_t.
10660 (TARGET_PREFERRED_RELOAD_CLASS,
10661 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10663 2011-02-24 Richard Guenther <rguenther@suse.de>
10665 * lto-streamer-in.c (input_bb): Do not find referenced vars
10666 in debug statements.
10668 2011-02-23 Jason Merrill <jason@redhat.com>
10670 * common.opt (fabi-version): Document v5 and v6.
10672 2011-02-23 Richard Guenther <rguenther@suse.de>
10674 PR tree-optimization/47849
10675 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10677 2011-02-23 Jie Zhang <jie@codesourcery.com>
10679 * opts-common.c (decode_cmdline_option): Print empty string
10680 argument as "" in decoded->orig_option_with_args_text.
10681 * gcc.c (execute): Print empty string argument as ""
10682 in the verbose output.
10683 (do_spec_1): Keep empty string argument.
10685 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10687 * config.gcc: Declare score-* and crx-* obsolete.
10689 2011-02-23 Jie Zhang <jie@codesourcery.com>
10691 PR rtl-optimization/47763
10692 * web.c (web_main): Ignore naked clobber when replacing register.
10694 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10696 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10699 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10702 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10704 2011-02-22 Mike Stump <mikestump@comcast.net>
10706 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10708 * configure: Regenerate.
10710 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10712 PR rtl-optimization/46002
10713 * ira-color.c (update_copy_costs): Change class intersection
10714 test to reg_class_contents[] test of 'hard_regno'.
10716 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10718 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10719 than Driver option.
10720 * config/hpux11.opt (mt): Likewise.
10721 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10722 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10723 * config/vax/elf.opt (mno-asm-pic): Likewise.
10724 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10726 2011-02-21 Mike Stump <mikestump@comcast.net>
10729 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10730 tree so we can get save the type.
10731 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10732 for CFString instead of trying to use past the end of the builtins.
10733 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10734 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10735 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10736 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10737 Rename to darwin_builtin_cfstring.
10738 (darwin_init_cfstring_builtins): Return the built type.
10740 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10743 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10744 (_mm256_insert_epi64): Use _mm_insert_epi64.
10746 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10748 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10749 * config/stormy16/stormy16-protos.h
10750 (xstormy16_mode_dependent_address_p): Remove.
10751 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10752 Make static. Change return type to bool. Change argument type to
10753 const_rtx. Remove dead code.
10754 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10756 2011-02-21 Richard Guenther <rguenther@suse.de>
10759 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10760 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10761 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10763 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10764 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10766 2011-02-20 Richard Guenther <rguenther@suse.de>
10769 * tree.c (free_lang_data_in_decl): Clean builtins from
10770 the TU decl BLOCK_VARS.
10772 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10776 * haifa-sched.c (fix_tick_ready): Skip tick computation
10779 2011-02-19 Richard Guenther <rguenther@suse.de>
10782 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10783 Remove lazy BLOCK_VARS streaming.
10784 (lto_input_ts_block_tree_pointers): Likewise.
10785 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10787 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10789 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10791 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10793 * config/i386/biarch32.h, config/i386/mach.h,
10794 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10796 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10799 * config/i386/i386.md (peephole2 for shift and plus): Use
10800 operands[1] original mode in the first insn.
10802 2011-02-18 Mike Stump <mikestump@comcast.net>
10804 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10806 2011-02-18 Jan Hubicka <jh@suse.cz>
10808 PR middle-end/47788
10809 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10810 to zero when the function is not inlinable at all.
10812 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10814 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10815 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10816 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10817 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10818 * config/pa/t-pa64: Likewise.
10819 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10821 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10824 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10826 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10829 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10831 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10833 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10834 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10835 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10836 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10837 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10838 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10839 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10840 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10841 m32r_legitimate_address_p): New functions.
10842 * config/m32r/constraints.md (constraint "S"): Don't use
10843 STORE_PREINC_PREDEC_P.
10844 (constraint "U"): Don't use LOAD_POSTINC_P.
10846 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10848 PR rtl-optimization/46178
10849 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10850 compute ira_hard_regno_cover_class[].
10852 2011-02-18 Richard Guenther <rguenther@suse.de>
10855 * lto-streamer.h (lto_global_var_decls): Declare.
10856 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10857 statics for global var processing.
10859 2011-02-18 Richard Guenther <rguenther@suse.de>
10861 PR tree-optimization/47737
10862 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10863 edge dominance check.
10865 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10868 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10869 avoid invalid rtx sharing.
10871 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10873 * doc/cpp.texi (Obsolete Features): Add background on the
10874 origin of assertions.
10876 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10878 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10880 * config/darwin.c (output_objc_section_asm_op): Added support for
10882 (is_objc_metadata): New.
10883 (darwin_objc2_section): New.
10884 (darwin_objc1_section): New.
10885 (machopic_select_section): Added support for ABI v1 and v2.
10886 (darwin_emit_objc_zeroed): New.
10887 (darwin_output_aligned_bss): Detect objc metadata and treat it
10889 (darwin_asm_output_aligned_decl_common): Same.
10890 (darwin_asm_output_aligned_decl_local): Same.
10891 * config/darwin-sections.def: Updated for ABI v1 and v2.
10892 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10893 compiling Objective-C code for the NeXT runtime, default to using
10894 ABI version 0 for 32-bit, and version 2 for 64-bit.
10896 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10898 * common.opt (optimize_fast): New Variable.
10899 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10900 instead of local variable ofast.
10902 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10904 * doc/invoke.texi (fobjc-abi-version): Documented.
10905 (fobjc-nilcheck): Documented.
10906 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10909 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10912 * common.opt (export-dynamic): New Driver option.
10913 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10915 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10917 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10919 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10920 Jan Hubicka <jh@suse.cz>
10924 * cfgexpand.c (account_used_vars_for_block): Remove.
10925 (estimated_stack_frame_size): Use referenced vars.
10926 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10927 that were referenced in the original function. Test src_fn
10928 rather than cfun. Drop redundant get_var_ann.
10929 (setup_one_parameter): Drop redundant get_var_ann.
10930 (declare_return_variable): Likewise.
10931 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10932 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10933 * ipa-inline.c (compute_inline_parameters): Do not compute
10934 disregard_inline_limits here.
10935 (compute_inlinable_for_current, pass_inlinable): New.
10936 (pass_inline_parameters): Require PROP_referenced_vars.
10937 * cgraphunit.c (cgraph_process_new_functions): Don't run
10938 compute_inline_parameters explicitly unless function is in SSA form.
10939 (cgraph_analyze_function): Set .disregard_inline_limits.
10940 * tree-sra.c (convert_callers): Compute inliner parameters
10941 only for functions already in SSA form.
10943 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10945 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10946 -mlittle-endian-data.
10948 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10950 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10951 -mno-fpu, not -fpu and -no-fpu.
10952 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10953 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10955 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10958 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10959 input reload with PLUS RTX.
10961 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10963 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10964 of InverseVar(MDMX).
10966 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10968 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10971 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10973 * config/mn10300/mn10300.opt (mno-crt0): New.
10975 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10977 * config/m68k/uclinux.opt (static-libc): New Driver option.
10979 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10981 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10983 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10985 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10986 %{muser-extend-enabled}.
10988 2011-02-16 Richard Guenther <rguenther@suse.de>
10990 PR tree-optimization/47738
10991 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10992 the TODO from tree_predictive_commoning.
10994 2011-02-15 Jeff Law <law@redhat.com>
10997 2011-01-25 Jeff Law <law@redhat.com>
10999 PR rtl-optimization/37273
11000 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11001 handle them like argument loads from stack slots. Do not double
11002 count memory for memory constants and argument loads from stack slots.
11004 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11006 PR middle-end/47725
11007 * combine.c (cant_combine_insn_p): Revert the last change.
11009 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11012 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11013 mode for vector constants. Remove code that checks for TImode.
11015 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11019 * cgraph.h (compute_inline_parameters): Return void.
11020 * ipa-inline.c (compute_inline_parameters): Adjust.
11022 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11026 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11028 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11029 * ipa-inline.c (compute_inline_parameters): Adjust.
11031 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11035 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11036 Adjust all users. Pass FN to...
11037 * tree-flow-inline.h (first_referenced_var): ... this. Add
11039 * ipa-struct-reorg.c: Adjust.
11040 * tree-dfa.c: Adjust.
11041 * tree-into-ssa.c: Adjust.
11042 * tree-sra.c: Adjust.
11043 * tree-ssa-alias.c: Adjust.
11044 * tree-ssa-live.c: Adjust.
11045 * tree-ssa.c: Adjust.
11046 * tree-ssanames.c: Adjust.
11047 * tree-tailcall.c: Adjust.
11049 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11053 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11054 Adjust all callers.
11055 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11056 * tree-flow-inline.h: Adjust.
11057 * gimple-pretty-print.c: Adjust.
11058 * tree-into-ssa.c: Adjust.
11059 * tree-ssa.c: Adjust.
11060 * cfgexpand.c: Adjust.
11062 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11064 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11065 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11066 (EXTRA_CONSTRAINT): Delete.
11067 * config/iq2000/constraints.md: New file.
11068 * config/iq2000/iq2000.md: Include it.
11069 (define_insn ""): Delete.
11070 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11071 unsupported constraint letters from patterns.
11072 (call_value, call_value_internal1): Likewise.
11073 (call_value_multiple_internal1): Likewise.
11075 2011-02-15 Nick Clifton <nickc@redhat.com>
11077 * config/mn10300/mn10300.c: Include tm-constrs.h.
11078 (struct liw_data): New data structure describing an LIW candidate
11080 (extract_bundle): Use struct liw_data. Allow small integer
11081 operands for some instructions.
11082 (check_liw_constraints): Use struct liw_data. Remove swapped
11083 parameter. Add comments describing the checks. Fix bug when
11084 assigning the source of liw1 to the source of liw2.
11085 (liw_candidate): Delete. Code moved into extract_bundle.
11086 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11088 * config/mn10300/predicates.md (liw_operand): New predicate.
11089 Allows registers and small integer constants.
11090 * config/mn10300/constraints.md (O): New constraint. Accetps
11091 integers in the range -8 to +7 inclusive.
11092 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11093 for moving a small integer into a register. Give this alternative
11095 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11096 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11097 using the J,K,L and M constraints,
11098 (liw): Remove SI mode on second operands to allow for HI and QI
11100 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11103 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11105 PR middle-end/47725
11106 * combine.c (cant_combine_insn_p): Check zero/sign extended
11109 2011-02-15 Richard Guenther <rguenther@suse.de>
11111 PR tree-optimization/47743
11112 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11113 for a non-type-compatible VN lookup bail out.
11115 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11117 * config/fr30/constraints.md: New file.
11118 * config/fr30/fr30.md: Include it.
11119 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11120 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11121 (EXTRA_CONSTRAINT): Delete.
11123 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11125 * config/frv/constraints.md: New file.
11126 * config/frv/predicates.md: Include it.
11127 * config/frv/frv.c (reg_class_from_letter): Delete.
11128 (frv_option_override): Don't initialize it.
11129 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11130 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11131 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11132 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11133 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11134 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11135 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11136 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11137 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11138 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11139 (REG_CLASS_FROM_CONSTRAINT): Delete.
11141 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11143 PR middle-end/47581
11144 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11145 if frame size is 0 in a leaf function.
11147 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11150 * config/alpha/host-osf.c: New file.
11151 * config/alpha/x-osf: New file.
11152 * config.host (alpha*-dec-osf*): Use it.
11154 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11156 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11157 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11158 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11159 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11161 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11163 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11165 * config/stormy16/constraints.md: New file.
11166 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11167 Use satisfies_constraint_Q and satisfies_constraint_R.
11168 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11170 (xstormy16_legitiamte_address_p): Declare.
11171 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11172 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11173 (EXTRA_CONSTRAINT): Delete.
11174 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11176 (xstormy16_extra_constraint_p): Delete.
11178 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11180 PR tree-optimization/46494
11181 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11182 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11183 (pass_rtl_loop_done): Add TODO_verify_flow.
11184 * fwprop.c (pass_rtl_fwprop): Likewise.
11185 * modulo-sched.c (pass_sms): Likewise.
11186 * tree-ssa-dom.c (pass_dominator): Likewise.
11187 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11188 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11189 (pass_tree_loop_done): Likewise.
11190 * tree-ssa-pre.c (execute_pre): Likewise.
11191 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11192 * tree-ssa-sink.c (pass_sink_code): Likewise.
11193 * tree-vrp.c (pass_vrp): Likewise.
11195 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11197 * config/v850/constraints.md: New file.
11198 * config/v850/v850.md: Include it.
11199 * config/v850/predicates.md (reg_or_0_operand): Use
11200 satisfies_constraint_G.
11201 (special_symbolref_operand): Use satisfies_constraint_K.
11202 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11203 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11204 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11205 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11206 (EXTRA_CONSTRAINT): Delete.
11207 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11208 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11209 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11211 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11214 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11217 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11219 * config/mcore/constraints.md: New file.
11220 * config/mcore/mcore.md: Include it.
11221 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11222 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11223 (REG_CLASS_FROM_LETTER): Delete.
11224 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11225 insn_const_int_ok_for_constraint.
11226 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11227 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11228 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11229 (EXTRA_CONSTRAINT): Delete.
11231 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11234 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11235 (IS_SIGHANDLER): Define.
11236 (sparc64_is_sighandler): New function, split off from
11237 sparc64_fallback_frame_state.
11238 (sparc_is_sighandler): New function, split off from
11239 sparc_fallback_frame_state.
11240 (sparc64_fallback_frame_state): Merge with ...
11241 (sparc_fallback_frame_state): ... this into ...
11242 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11243 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11244 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11245 stack instead of hardcoded offsets.
11247 2011-02-14 Andriy Gapon <avg@freebsd.org>
11250 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11252 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11254 * configure: Regenerate.
11256 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11259 * gcc.c (asm_options): Correct spec matching --target-help.
11261 2011-02-12 Martin Jambor <mjambor@suse.cz>
11263 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11264 to gimple call error.
11266 2011-02-12 Mike Stump <mikestump@comcast.net>
11268 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11269 comments in backslash regions.
11271 2011-02-12 Mike Stump <mikestump@comcast.net>
11272 Jakub Jelinek <jakub@redhat.com>
11273 Iain Sandoe <iains@gcc.gnu.org>
11276 * dwarf2out.c (output_cfa_loc): When required, apply the
11277 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11278 (output_loc_sequence): Likewise.
11279 (output_loc_operands_raw): Likewise.
11280 (output_loc_sequence_raw): Likewise.
11281 (output_cfa_loc): Likewise.
11282 (output_loc_list): Suppress register number adjustment when
11283 calling output_loc_sequence()
11284 (output_die): Likewise.
11286 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11288 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11290 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11291 xtensa_memory_move_cost): New functions.
11292 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11294 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11297 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11298 in the current directory.
11299 * configure: Rebuilt.
11301 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11303 * config/darwin.c (darwin_override_options): Add a hunk missed
11304 from the commit of r168571. Trim comment line lengths and
11305 correct indents of the preceding block.
11307 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11309 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11312 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11314 * common.opt (nostartfiles): New Driver option.
11316 2011-02-11 Xinliang David Li <davidxl@google.com>
11318 PR tree-optimization/47707
11319 * tree-chrec.c (convert_affine_scev): Keep type precision.
11321 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11323 PR tree-optimization/47420
11324 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11326 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11328 PR rtl-optimization/47614
11329 * rtl.h (check_for_inc_dec): Declare.
11330 * dse.c (check_for_inc_dec): Externalize...
11331 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11332 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11334 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11337 * gcc.c (main): Do not compile inputs if there were errors in
11339 * opts-common.c (read_cmdline_option): Check for wrong language
11340 after other error checks.
11342 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11344 * cgraph.c: Fix comment typos.
11345 * cgraph.h: Likewise.
11346 * cgraphunit.c: Likewise.
11347 * ipa-cp.c: Likewise.
11348 * ipa-inline.c: Likewise.
11349 * ipa-prop.c: Likewise.
11350 * ipa-pure-const.c: Likewise.
11351 * ipa-ref.c: Likewise.
11352 * ipa-reference.c: Likewise.
11354 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11357 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11359 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11362 * doc/sourcebuild.texi (Require Support): Document
11363 dg-require-ascii-locale.
11365 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11367 * doc/lto.texi (Write summary): Fix missing parentheses.
11369 2011-02-10 DJ Delorie <dj@redhat.com>
11371 * config/m32c/m32c.c (m32c_option_override): Disable
11372 -fcombine-stack-adjustments until flag value tracking and compare
11373 optimization can be rewritten.
11375 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11377 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11379 (PROCESSOR_DEFAULT64): Likewise.
11381 2011-02-10 Richard Henderson <rth@redhat.com>
11383 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11384 change from 2011-02-03.
11385 * config/rx/rx.c (flags_from_code): Likewise.
11386 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11387 is valid, n/pz otherwise.
11388 (rx_select_cc_mode): Return CCmode if Y is not zero.
11390 2011-02-10 Richard Guenther <rguenther@suse.de>
11392 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11394 2011-02-10 Richard Guenther <rguenther@suse.de>
11396 PR tree-optimization/47677
11397 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11399 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11402 * combine.c (make_compound_operation): Only change shifts into
11403 multiplication for SCALAR_INT_MODE_P.
11405 2011-02-10 Jie Zhang <jie@codesourcery.com>
11409 2011-02-05 Jie Zhang <jie@codesourcery.com>
11411 * web.c (entry_register): Don't clobber the number of the
11412 first uninitialized reference in used[].
11414 2011-02-09 Richard Guenther <rguenther@suse.de>
11416 PR tree-optimization/47664
11417 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11420 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11424 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11426 (PROCESSOR_DEFAULT64): Same.
11427 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11429 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11431 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11433 2011-02-09 Martin Jambor <mjambor@suse.cz>
11435 PR middle-end/45505
11436 * tree-sra.c (struct access): New flags grp_scalar_read and
11437 grp_scalar_write. Changed description of assignment read and write
11439 (dump_access): Dump new flags, reorder all of them.
11440 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11441 to detect multiple scalar reads.
11442 (analyze_access_subtree): Use the new scalar read write flags instead
11443 of the old flags. Adjusted comments.
11445 2011-02-08 DJ Delorie <dj@redhat.com>
11448 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11451 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11453 * config/m68k/uclinux.opt: New.
11454 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11456 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11458 * config/cris/elf.opt (sim): New Driver option.
11460 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11462 * config/xtensa/elf.opt: New.
11463 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11465 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11467 * config/vax/elf.opt: New.
11468 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11470 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11472 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11474 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11476 * config/gnu-user.opt: New.
11477 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11478 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11479 *-*-uclinux*): Use gnu-user.opt.
11481 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11483 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11484 * config/i386/gnu.h (CPP_SPEC): Likewise.
11486 2011-02-08 Ian Lance Taylor <iant@google.com>
11488 * common.opt (fcx-limited-range): Add SetByCombined flag.
11489 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11490 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11491 (fassociative-math, freciprocal-math): Likewise.
11492 (funsafe-math-optimizations): Likewise.
11493 * opth-gen.awk: Handle SetByCombined.
11494 * optc-gen.awk: Likewise.
11495 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11496 (set_unsafe_math_optimizations_flags): Likewise.
11497 * doc/options.texi (Option properties): Document SetByCombined.
11499 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11501 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11502 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11503 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11504 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11505 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11507 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11509 PR tree-optimization/46834
11510 PR tree-optimization/46994
11511 PR tree-optimization/46995
11512 * graphite-sese-to-poly.c (used_outside_reduction): New.
11513 (detect_commutative_reduction): Call used_outside_reduction.
11514 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11515 translate_scalar_reduction_to_array only when at least one
11516 loop-phi/close-phi tuple has been detected.
11518 2011-02-08 Richard Guenther <rguenther@suse.de>
11520 PR middle-end/47639
11521 * tree-vect-generic.c (expand_vector_operations_1): Update
11523 (expand_vector_operations): ... not here. Cleanup EH info
11524 and the CFG if required.
11526 2011-02-08 Richard Guenther <rguenther@suse.de>
11528 PR tree-optimization/47641
11529 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11530 require type compatibility.
11532 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11534 * gimple-low.c (lower_function_body): Don't remove the location of
11535 the return statement here.
11536 (lower_gimple_return): Do it here instead but only if the return
11537 statement is actually used twice.
11539 2011-02-08 Richard Guenther <rguenther@suse.de>
11541 PR tree-optimization/47632
11542 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11543 unused up_to_stmt parameter, return whether cfg-cleanup is
11544 necessary, remove EH info properly.
11545 (forward_propagate_into_gimple_cond): Adjust caller.
11546 (forward_propagate_into_cond): Likewise.
11547 (forward_propagate_comparison): Likewise.
11548 (tree_ssa_forward_propagate_single_use_vars): Make
11549 forward_propagate_comparison case similar to the two others.
11551 2011-02-08 Nick Clifton <nickc@redhat.com>
11553 * config/mn10300/mn10300.opt (mliw): New command line option.
11554 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11555 (liw_bundling): New automaton.
11556 (liw): New attribute.
11557 (liw_op): New attribute.
11558 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11559 (movsi_internal): Add LIW attributes.
11560 (andsi3): Likewise.
11561 (iorsi3): Likewise.
11562 (xorsi3): Likewise.
11563 (addsi3): Separate register and immediate alternatives.
11564 Add LIW attributes.
11565 (subsi3): Likewise.
11567 (aslsi3): Likewise.
11568 (lshrsi3): Likewise.
11569 (ashrsi3): Likewise.
11570 (liw): New pattern.
11571 * config/mn10300/mn10300.c (liw_op_names): New
11572 (mn10300_print_operand): Handle 'W' operand descriptor.
11573 (extract_bundle): New function.
11574 (check_liw_constraints): New function.
11575 (liw_candidate): New function.
11576 (mn10300_bundle_liw): New function.
11577 (mn10300_reorg): New function.
11578 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11579 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11580 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11581 __LIW__ or __NO_LIW__.
11582 * doc/invoke.texi: Describe the -mliw command line option.
11584 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11586 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11587 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11588 pthread_mutex_unlock): Remove.
11589 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11590 * config/pa/t-pa64: Likewise.
11591 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11592 shared libc if not linking against libpthread.
11593 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11595 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11598 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11599 on 10.6 and later to ensure that we always use the unwinder from
11600 the system. Only add -no_compact_unwind when tarteting darwin
11603 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11606 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11607 (vec_interleave_lowv2sf): Ditto.
11608 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11609 (vec_extract_oddv2sf): Ditto.
11611 2011-02-07 Mike Stump <mikestump@comcast.net>
11614 Add __ieee_divdc3 entry point.
11615 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11617 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11618 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11619 * config/darwin.c (darwin_rename_builtins): Add.
11620 * config/darwin-protos.h (darwin_rename_builtins): Add.
11622 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11625 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11628 2011-02-07 Mike Stump <mikestump@comcast.net>
11630 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11632 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11635 * config/avr/libgcc.S (exit): Move .endfunc
11637 2011-02-07 Richard Guenther <rguenther@suse.de>
11639 PR tree-optimization/47615
11640 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11641 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11642 (run_scc_vn): Initialize it.
11643 (visit_reference_op_load): Use it.
11644 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11646 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11648 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11649 DImode trapping arithmetic libfuncs.
11651 2011-02-07 Richard Guenther <rguenther@suse.de>
11653 PR tree-optimization/47621
11654 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11656 (execute_update_addresses_taken): ... here. Make it more
11657 conservative in what we accept.
11659 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11661 * config/sparc/freebsd.h (ASM_SPEC): Define.
11662 * config/sparc/vxworks.h (ASM_SPEC): Define.
11664 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11666 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11668 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11670 * doc/invoke.texi: Remove reference to compiler internals from
11671 user documentation.
11673 * reg-notes.def: Remove REG_VALUE_PROFILE.
11674 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11676 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11678 PR middle-end/47610
11679 * varasm.c (default_section_type_flags): If decl is NULL,
11680 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11682 2011-02-05 Jie Zhang <jie@codesourcery.com>
11685 * web.c (entry_register): Don't clobber the number of the
11686 first uninitialized reference in used[].
11688 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11690 PR tree-optimization/46194
11691 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11692 (build_classic_dist_vector_1): Do not represent classic distance
11693 vectors when the access functions are variating in different loops.
11695 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11697 * config/mips/iris6.opt: New.
11698 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11700 2011-02-04 Richard Henderson <rth@redhat.com>
11701 Steve Ellcey <sje@cup.hp.com>
11704 * config/ia64/predicates.md (mux1_brcst_element): New.
11705 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11706 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11707 (ia64_unpack_sign): New.
11708 (ia64_expand_unpack): Rewrite using new routines.
11709 (ia64_expand_widen_sum): Ditto.
11710 (ia64_expand_dot_prod_v8qi): Ditto.
11711 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11712 routines, add endian check.
11713 (pmpy2_even): Rename from pmpy2_r, add endian check.
11714 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11715 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11716 (vec_widen_smult_hi_v4hi): Ditto.
11717 (vec_widen_umult_lo_v4hi): Ditto.
11718 (vec_widen_umult_hi_v4hi): Ditto.
11719 (mulv2si3): Change endian checks.
11720 (sdot_prodv4hi): Rewrite with new calls.
11721 (udot_prodv4hi): New.
11722 (vec_pack_ssat_v4hi): Add endian check.
11723 (vec_pack_usat_v4hi): Ditto.
11724 (vec_pack_ssat_v2si): Ditto.
11725 (max1_even): Rename from max1_r, add endian check.
11726 (max1_odd): Rename from max1_l, add endian check.
11727 (*mux1_rev): Format change.
11728 (*mux1_mix): Ditto.
11729 (*mux1_shuf): Ditto.
11730 (*mux1_alt): Ditto.
11731 (*mux1_brcst_v8qi): Use new predicate.
11732 (vec_extract_evenv8qi): Remove endian check.
11733 (vec_extract_oddv8qi): Ditto.
11734 (vec_interleave_lowv4hi): Format change.
11735 (vec_interleave_highv4hi): Ditto.
11736 (mix2_even): Rename from mix2_r, add endian check.
11737 (mix2_odd): Rename from mux2_l, add endian check.
11738 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11739 (vec_extract_evenodd_helper): Format change.
11740 (vec_extract_evenv4hi): Remove endian check.
11741 (vec_extract_oddv4hi): Remove endian check.
11742 (vec_interleave_lowv2si): Format change.
11743 (vec_interleave_highv2si): Format change.
11744 (vec_initv2si): Remove endian check.
11745 (vecinit_v2si): Add endian check.
11746 (reduc_splus_v2sf): Add endian check.
11747 (reduc_smax_v2sf): Ditto.
11748 (reduc_smin_v2sf): Ditto.
11749 (vec_initv2sf): Remove endian check.
11750 (fpack): Add endian check.
11751 (fswap): Add endian check.
11752 (vec_interleave_highv2sf): Add endian check.
11753 (vec_interleave_lowv2sf): Add endian check.
11754 (fmix_lr): Add endian check.
11755 (vec_setv2sf): Format change.
11756 (*vec_extractv2sf_0_be): Use shift to extract operand.
11757 (*vec_extractv2sf_1_be): New.
11758 (vec_pack_trunc_v4hi): Add endian check.
11759 (vec_pack_trunc_v2si): Format change.
11761 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11763 PR inline-asm/23200
11764 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11765 do bb, locus and block comparison and disallow loads if it is not set.
11766 (stmt_is_replaceable_p): New function.
11767 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11769 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11770 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11772 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11774 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11776 * config/rs6000/xilinx.opt: New.
11777 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11779 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11781 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11783 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11785 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11786 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11787 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11788 secondary_reload_info, xtensa_secondary_reload): Remove.
11789 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11790 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11791 (xtensa_preferred_reload_class): Make static. Change return and
11792 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11793 Use CONST_DOUBLE_P predicate.
11794 (xtensa_preferred_output_reload_class): New function.
11795 (xtensa_secondary_reload): Make static.
11797 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11799 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11800 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11801 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11803 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11805 PR middle-end/31490
11806 * output.h (SECTION_RELRO): Define.
11807 (SECTION_MACH_DEP): Adjust.
11808 (get_variable_section): New prototype.
11809 * varpool.c (varpool_finalize_named_section_flags): New function.
11810 (varpool_assemble_pending_decls): Call it.
11811 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11812 * cgraphunit.c (cgraph_output_in_order): Call
11813 varpool_finalize_named_section_flags.
11814 * varasm.c (get_section): Allow section flags conflicts between
11815 relro and read-only sections if the section hasn't been declared yet.
11816 Set SECTION_OVERRIDE after diagnosing section type conflict.
11817 (get_variable_section): No longer static.
11818 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11819 readonly sections that need relocations.
11820 (decl_readonly_section_1): New function.
11821 (decl_readonly_section): Use it.
11824 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11825 Steve Ellcey <sje@cup.hp.com>
11827 PR middle-end/31490
11828 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11829 if section attribute used.
11831 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11833 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11834 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11835 (darwin_init_sections): Remove assertion.
11837 2011-02-03 Nick Clifton <nickc@redhat.com>
11839 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11841 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11842 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11843 instead of "n" and "pz".
11844 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11847 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11850 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11851 fma, expand FMA_EXPR as fma{,f,l} call.
11854 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11855 copy them into a unsigned char variable and pass address of it to
11856 lto_output_data_stream.
11859 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11860 around backend_init_target and lang_dependent_init_target calls.
11861 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11862 (verify_cgraph_node): Don't call set_cfun here. Use
11863 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11864 Set error_found for incorrectly represented calls to thunks.
11866 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11869 PR rtl-optimization/43494
11870 * rtl.h (for_each_inc_dec_fn): New type.
11871 (for_each_inc_dec): Declare.
11872 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11873 (for_each_inc_dec_find_inc_dec): New fn.
11874 (for_each_inc_dec_find_mem): New fn.
11875 (for_each_inc_dec): New fn.
11876 * dse.c (struct insn_size): Remove.
11877 (replace_inc_dec, replace_inc_dec_mem): Remove.
11878 (emit_inc_dec_insn_before): New fn.
11879 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11880 (canon_address): Pass mem modes to cselib_lookup.
11881 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11882 (cselib_lookup_from_insn): Likewise.
11883 (cselib_subst_to_values): Likewise.
11884 * cselib.c (find_slot_memmode): New var.
11885 (cselib_find_slot): New fn. Use it instead of
11886 htab_find_slot_with_hash everywhere.
11887 (entry_and_rtx_equal_p): Use find_slot_memmode.
11888 (autoinc_split): New fn.
11889 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11890 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11891 Deal with autoinc. Special-case recursion into MEMs.
11892 (cselib_hash_rtx): Likewise.
11893 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11894 address and MEM modes.
11895 (cselib_subst_to_values): Add memmode, pass it on.
11897 (cselib_lookup): Add memmode argument, pass it on.
11898 (cselib_lookup_from_insn): Add memmode.
11899 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11900 (struct cselib_record_autoinc_data): New.
11901 (cselib_record_autoinc_cb): New fn.
11902 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11903 mode to cselib_lookup. Reset autoinced REGs here instead of...
11904 (cselib_process_insn): ... here.
11905 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11907 (add_uses): Likewise, also to cselib_subst_to_values.
11908 (add_stores): Likewise.
11909 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11910 cselib_subst_to_values.
11911 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11912 * gcse.c (do_local_cprop): Adjusted.
11913 * postreload.c (reload_cse_simplify_set): Adjusted.
11914 (reload_cse_simplify_operands): Adjusted.
11915 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11917 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11919 PR tree-optimization/45122
11920 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11921 unsafe assumptions when there's more than one loop exit.
11923 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11926 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11927 Document using vector double with the load/store builtins, and
11928 that the load/store builtins always use Altivec instructions.
11930 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11931 to use altivec memory instructions, even on VSX.
11932 (vector_altivec_store_<mode>): Ditto.
11934 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11937 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11938 V2DF, V2DI support to load/store overloaded builtins.
11940 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11941 altivec load/store builtins for V2DF/V2DI types.
11943 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11944 set avoid indexed addresses on power6 if -maltivec.
11945 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11946 vector_altivec_load/vector_altivec_store builtins.
11947 (altivec_expand_st_builtin): Ditto.
11948 (altivec_expand_builtin): Add VSX memory builtins.
11949 (rs6000_init_builtins): Add V2DI types to internal types.
11950 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11951 load/store builtins.
11952 (rs6000_address_for_altivec): Insure memory address is appropriate
11955 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11956 vec_vsx_ld and vec_vsx_st.
11957 (vsx_store_<mode>): Ditto.
11959 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11960 variables to hold long long types for VSX vector memory builtins.
11961 (RS6000_BTI_unsigned_long_long): Ditto.
11962 (long_long_integer_type_internal_node): Ditti.
11963 (long_long_unsigned_type_internal_node): Ditti.
11965 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11966 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11967 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11969 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11971 (vec_vsx_st): Ditto.
11973 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11975 * config/pa/pa-hpux10.opt: New.
11976 * config/hpux11.opt (pthread): New Driver option.
11977 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11978 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11980 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11982 * config/ia64/vms.opt: New.
11983 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11985 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11988 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11989 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11990 generator functions.
11991 (vsx_floatuns<VSi><mode>2): Ditto.
11992 (vsx_fix_trunc<mode><VSi>2): Ditto.
11993 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11995 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11997 * config/i386/djgpp.opt (posix): New Driver option.
11999 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12001 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12002 Move to the unsupported targets list.
12004 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12006 PR rtl-optimization/47525
12007 * df-scan.c: Update copyright years.
12008 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12009 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12011 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12013 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12014 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12015 (ASM_OUTPUT_ASCII): Remove.
12016 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12018 2011-02-02 Jeff Law <law@redhat.com>
12020 PR middle-end/47543
12021 * reload.c (find_reloads_address): Handle reg+d address where both
12022 components are invalid by reloading the entire address.
12024 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12025 Richard Guenther <rguenther@suse.de>
12027 PR tree-optimization/40979
12029 * passes.c (init_optimization_passes): After LIM call copy_prop
12030 and DCE to clean up.
12031 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12033 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12035 PR tree-optimization/47576
12036 PR tree-optimization/47555
12037 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12038 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12039 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12040 * tree-scalar-evolution.c (follow_ssa_edge): Use
12041 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12043 2011-02-02 Richard Guenther <rguenther@suse.de>
12045 PR tree-optimization/47566
12046 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12048 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12052 * tree-inline.c (declare_return_variable): Remove unused caller
12057 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12058 * cfgexpand.c (account_used_vars_for_block): Use them.
12059 * tree-nrv.c (tree_nrv): Likewise.
12060 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12061 (dump_scope_block): Likewise.
12062 (remove_unused_locals): Likewise.
12066 * tree-inline.c (declare_return_variable): Add result decl to
12067 local decls only once.
12068 * gimple-low.c (record_vars_into): Mark newly-created variables
12071 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12077 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12079 (no_real_insns_p, schedule_block, set_priorities): Drop special
12080 treatment of boundary debug insns.
12081 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12082 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12083 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12084 (BOUNDARY_DEBUG_INSN_P): Likewise.
12085 (SCHEDULE_DEBUG_INSN_P): Likewise.
12086 * sched-rgn.c (init_ready_list): Drop special treatment of
12087 boundary debug insns.
12088 * final.c (rest_of_clean_state): Clear notes' BB.
12090 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12092 * config/openbsd.opt (assert=): New Driver option.
12094 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12096 * config/i386/nto.opt: New.
12097 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12099 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12101 * config/i386/netware.opt: New.
12102 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12104 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12106 * config/interix.opt (posix): New Driver option.
12108 2011-02-01 DJ Delorie <dj@redhat.com>
12110 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12112 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12115 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12117 PR tree-optimization/47561
12118 * toplev.c (process_options): Print the Graphite flags. Add
12119 flag_loop_flatten to the list of options requiring Graphite.
12121 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12123 * config/i386/cygming.opt (posix): New Driver option.
12125 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12127 * config/arm/vxworks.opt: New.
12128 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12130 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12132 * config/alpha/elf.opt: New.
12133 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12134 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12136 2011-02-01 Richard Guenther <rguenther@suse.de>
12138 PR tree-optimization/47559
12139 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12140 store-motion on references that can throw.
12142 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12144 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12145 * tree-pass.h (TDF_CSELIB): New macro.
12146 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12147 cselib_lookup): Check for it rather than for TDF_DETAILS.
12149 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12152 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12153 is HOST_BIT_BUCKET.
12155 * opts.c (finish_options): Don't add x_aux_base_name if it is
12158 2011-02-01 Richard Guenther <rguenther@suse.de>
12160 PR tree-optimization/47555
12162 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12164 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12166 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12169 * config/lm32/t-lm32: Add multilib for all CPU options.
12171 2011-02-01 Richard Guenther <rguenther@suse.de>
12173 PR tree-optimization/47541
12174 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12175 sure to have a field at offset zero.
12177 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12179 * config/arc/arc.opt (EB, EL): New Driver options.
12181 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12183 * config/alpha/osf5.opt: New.
12184 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12186 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12188 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12190 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12192 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12193 -floop-interchange.
12194 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12195 is an alias of -floop-interchange and that it requires the
12196 Graphite infrastructure.
12197 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12198 flag_loop_interchange based on the value of flag_tree_loop_linear.
12200 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12201 Richard Guenther <rguenther@suse.de>
12203 PR tree-optimization/47538
12204 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12205 type instead of r1type, except for comparisons. For right
12206 shifts and comparisons punt if there are mismatches in
12207 sizetype vs. non-sizetype types.
12209 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12211 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12214 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12216 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12218 * configure: Regenerate.
12220 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12222 * configure.ac (gcc_cv_ld_static_option): Define.
12223 (gcc_cv_ld_dynamic_option): Define.
12224 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12226 (HAVE_LD_STATIC_DYNAMIC): Update message.
12227 (LD_STATIC_OPTION): Define.
12228 (LD_DYNAMIC_OPTION): Define.
12229 * configure: Regenerate.
12230 * config.in: Regenerate.
12231 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12232 HAVE_LD_STATIC_DYNAMIC]: Use them.
12234 2011-01-31 Nick Clifton <nickc@redhat.com>
12236 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12237 registers inside interrupt handlers if the handler is not a leaf
12240 2011-01-31 Nick Clifton <nickc@redhat.com>
12242 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12243 reg_renumber returning an INVALID_REGNUM.
12245 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12248 * doc/install.texi: Document host options discarded when cross
12249 configuring target libraries.
12251 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12254 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12257 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12259 (no_real_insns_p, schedule_block, set_priorities): Drop special
12260 treatment of boundary debug insns.
12261 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12262 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12263 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12264 (BOUNDARY_DEBUG_INSN_P): Likewise.
12265 (SCHEDULE_DEBUG_INSN_P): Likewise.
12266 * sched-rgn.c (init_ready_list): Drop special treatment of
12267 boundary debug insns.
12268 * final.c (rest_of_clean-state): Clear notes' BB.
12270 2011-01-31 Alan Modra <amodra@gmail.com>
12272 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12273 toc relative expressions as we do in print_operand_address.
12275 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12277 * doc/extend.texi: Follow spelling conventions.
12278 * doc/invoke.texi: Fix a typo.
12280 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12282 * config/hpux11.opt: New.
12283 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12284 ia64*-*-hpux*): Use hpux11.opt.
12286 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12288 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12291 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12293 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12296 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12298 * doc/install.texi (Binaries): Remove outdated reference for
12299 Motorola 68HC11/68HC12 downloads.
12301 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12303 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12306 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12309 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12312 2011-01-28 Ahmad Sharif <asharif@google.com>
12314 * value-prof.c (check_counter): Corrected error message.
12316 2011-01-29 Jie Zhang <jie@codesourcery.com>
12318 * config/arm/arm.c (arm_legitimize_reload_address): New.
12319 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12320 arm_legitimize_reload_address.
12321 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12323 2011-01-28 Ian Lance Taylor <iant@google.com>
12325 * godump.c (go_define): Ignore macros whose definitions include
12326 two adjacent operands.
12328 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12331 * varasm.c (force_const_mem): Store copy of x in desc->constant
12332 instead of x itself.
12333 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12334 itself into REG_EQUAL note.
12336 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12338 * config/freebsd.opt (posix, rdynamic): New Driver options.
12340 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12342 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12343 -Bstatic/-Bdynamic.
12344 * configure: Regenerate.
12346 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12348 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12349 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12351 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12353 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12354 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12355 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12356 (s390_preferred_reload_class): Make static. Change return and
12357 'rclass' argument type to reg_class_t.
12359 2011-01-27 Jan Hubicka <jh@suse.cz>
12361 PR middle-end/46949
12362 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12363 (process_function_and_variable_attributes): Check defined weakrefs.
12365 2011-01-27 Martin Jambor <mjambor@suse.cz>
12367 PR tree-optimization/47228
12368 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12369 build_ref_for_offset.
12371 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12373 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12375 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12377 PR rtl-optimization/46856
12378 * postreload.c (reload_combine_recognize_const_pattern): Do not
12379 separate cc0 setter and user on cc0 targets.
12381 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12384 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12385 passed a VOID_TYPE expression, immediately emit an error and
12386 return error_mark_node.
12388 2011-01-26 Jeff Law <law@redhat.com>
12390 PR rtl-optimization/47464
12391 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12392 rather than may_trap_p as needed.
12394 2011-01-26 DJ Delorie <dj@redhat.com>
12396 PR rtl-optimization/46878
12397 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12398 setter/user dependency as well.
12400 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12402 PR rtl-optimization/44469
12403 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12404 after removing trivially dead basic blocks.
12406 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12408 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12409 * config/frv/frv.h (LINK_SPEC): Likewise.
12410 * config/i386/netware.h (LINK_SPEC): Likewise.
12411 * config/m68k/linux.h (ASM_SPEC): Likewise.
12412 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12413 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12414 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12415 * config/sparc/linux.h (ASM_SPEC): Likewise.
12416 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12417 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12419 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12421 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12422 * config/frv/frv.h (ASM_SPEC): Likewise.
12423 * config/m68k/linux.h (ASM_SPEC): Likewise.
12424 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12425 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12426 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12427 * config/sparc/linux.h (ASM_SPEC): Likewise.
12428 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12429 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12431 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12433 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12434 * config/frv/frv.h (LINK_SPEC): Likewise.
12435 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12437 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12439 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12440 * config/frv/frv.h (ASM_SPEC): Likewise.
12441 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12442 * config/m68k/linux.h (ASM_SPEC): Likewise.
12443 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12444 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12445 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12446 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12447 * config/sparc/linux.h (ASM_SPEC): Likewise.
12448 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12449 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12450 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12452 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12455 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12457 (vec_extract_evenodd_help): Ditto.
12458 (vec_extract_evenv4hi): Ditto.
12459 (vec_extract_oddv4hi): Ditto.
12460 (vec_interleave_lowv2si): Ditto.
12461 (vec_interleave_highv2si): Ditto.
12462 (vec_extract_evenv2si): Ditto.
12463 (vec_extract_oddv2si: Ditto.
12464 (vec_pack_trunc_v2si): Ditto.
12466 2011-01-22 Jan Hubicka <jh@suse.cz>
12469 * cgraph.h (cgraph_local_info): New field can_change_signature.
12470 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12471 signature can change.
12472 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12474 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12475 (cgraph_function_versioning): We can not change signature of functions
12476 that don't allow that.
12477 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12478 (lto_input_node): Likewise.
12479 * ipa-inline.c (compute_inline_parameters): Compute
12480 local.can_change_signature.
12481 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12482 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12483 functions that can not change signature.
12484 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12485 init_cumulative_args): Do not use local calling conventions
12486 for functions that can not change signature.
12488 2011-01-22 Jan Hubicka <jh@suse.cz>
12490 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12492 2011-01-26 Richard Guenther <rguenther@suse.de>
12494 PR tree-optimization/47190
12495 * cgraphunit.c (process_common_attributes): New function.
12496 (process_function_and_variable_attributes): Use it.
12498 2011-01-26 Richard Guenther <rguenther@suse.de>
12501 * cgraphbuild.c (record_eh_tables): Record reference to personality
12504 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12507 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12508 non-debug insns from moving up.
12510 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12513 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12514 t-dlldir{,-x} fragment for build and add it to tmake_file.
12515 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12516 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12517 * config/i386/t-dlldir: New file.
12518 (SHLIB_DLLDIR): Define.
12519 * config/i386/t-dlldir-x: New file.
12520 (SHLIB_DLLDIR): Define.
12521 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12522 (SHLIB_INSTALL): Use it.
12524 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12527 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12528 lower bound of the allowed Thumb-2 coprocessor load/store
12529 index range to -256. Add explaining comment.
12531 2011-01-25 Ian Lance Taylor <iant@google.com>
12533 * godump.c (go_define): Improve lexing of macro expansion to only
12534 accept expressions which match Go spec.
12536 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12539 * tree.c (handle_dll_attribute): Handle it.
12540 * doc/extend.texi (@item dllexport): Mention it.
12541 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12543 2011-01-25 Ian Lance Taylor <iant@google.com>
12545 PR tree-optimization/26854
12546 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12547 (decl_jump_unsafe): Move higher in file, with no other change.
12548 (bind): Set has_jump_unsafe_decl if appropriate.
12549 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12550 (check_earlier_gotos): Likewise.
12551 (c_check_switch_jump_warnings): Likewise.
12553 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12555 * doc/invoke.texi (Warning Options): Add missing hyphen.
12556 (-fprofile-dir): Minor grammatical fixes.
12557 (-fbranch-probabilities): Likewise.
12559 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12563 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12565 (no_real_insns_p, schedule_block, set_priorities): Drop special
12566 treatment of boundary debug insns.
12567 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12568 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12569 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12570 (BOUNDARY_DEBUG_INSN_P): Likewise.
12571 (SCHEDULE_DEBUG_INSN_P): Likewise.
12572 * sched-rgn.c (init_ready_list): Drop special treatment of
12573 boundary debug insns.
12574 * final.c (rest_of_clean-state): Clear notes' BB.
12576 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12578 * Makefile.in (LAMBDA_H): Removed.
12579 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12580 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12581 lambda-trans.o, and tree-loop-linear.o.
12582 (lto-symtab.o): Remove dependence on LAMBDA_H.
12583 (tree-loop-linear.o): Remove rule.
12584 (lambda-mat.o): Same.
12585 (lambda-trans.o): Same.
12586 (lambda-code.o): Same.
12587 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12588 (tree-vect-slp.o): Same.
12589 * hwint.h (gcd): Moved here.
12590 (least_common_multiple): Same.
12591 * lambda-code.c: Removed.
12592 * lambda-mat.c: Removed.
12593 * lambda-trans.c: Removed.
12594 * lambda.h: Removed.
12595 * tree-loop-linear.c: Removed.
12596 * lto-symtab.c: Do not include lambda.h.
12597 * omega.c (gcd): Removed.
12598 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12599 * tree-data-ref.c (print_lambda_vector): Moved here.
12600 (lambda_vector_copy): Same.
12601 (lambda_matrix_copy): Same.
12602 (lambda_matrix_id): Same.
12603 (lambda_vector_first_nz): Same.
12604 (lambda_matrix_row_add): Same.
12605 (lambda_matrix_row_exchange): Same.
12606 (lambda_vector_mult_const): Same.
12607 (lambda_vector_negate): Same.
12608 (lambda_matrix_row_negate): Same.
12609 (lambda_vector_equal): Same.
12610 (lambda_matrix_right_hermite): Same.
12611 * tree-data-ref.h: Do not include lambda.h.
12612 (lambda_vector): Moved here.
12613 (lambda_matrix): Same.
12614 (dependence_level): Same.
12615 (lambda_transform_legal_p): Removed declaration.
12616 (lambda_collect_parameters): Same.
12617 (lambda_compute_access_matrices): Same.
12618 (lambda_vector_gcd): Same.
12619 (lambda_vector_new): Same.
12620 (lambda_vector_clear): Same.
12621 (lambda_vector_lexico_pos): Same.
12622 (lambda_vector_zerop): Same.
12623 (lambda_matrix_new): Same.
12624 * tree-flow.h (least_common_multiple): Removed declaration.
12625 * tree-parloops.c (lambda_trans_matrix): Moved here.
12626 (LTM_MATRIX): Same.
12627 (LTM_ROWSIZE): Same.
12628 (LTM_COLSIZE): Same.
12629 (LTM_DENOMINATOR): Same.
12630 (lambda_trans_matrix_new): Same.
12631 (lambda_matrix_vector_mult): Same.
12632 (lambda_transform_legal_p): Same.
12633 * tree-pass.h (pass_linear_transform): Removed declaration.
12634 * tree-ssa-loop.c (tree_linear_transform): Removed.
12635 (gate_tree_linear_transform): Removed.
12636 (pass_linear_transform): Removed.
12637 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12638 flag_loop_interchange.
12640 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12642 PR tree-optimization/47265
12643 PR tree-optimization/47443
12644 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12645 if name still has some uses.
12647 2011-01-25 Martin Jambor <mjambor@suse.cz>
12649 PR tree-optimization/47382
12650 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12651 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12653 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12655 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12656 sjlj_except_unwind_info.
12658 2011-01-25 Richard Guenther <rguenther@suse.de>
12660 PR tree-optimization/47426
12661 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12662 visible functions results escape.
12664 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12667 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12668 (arm_get_frame_offsets): Use it.
12670 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12671 Jakub Jelinek <jakub@redhat.com>
12673 PR tree-optimization/47271
12674 * tree-if-conv.c (bb_postdominates_preds): New.
12675 (if_convertible_bb_p): Call bb_postdominates_preds.
12676 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12677 (predicate_scalar_phi): Call bb_postdominates_preds.
12679 2011-01-25 Nick Clifton <nickc@redhat.com>
12681 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12682 * config/rx/rx.c (rx_function_value): Likewise.
12683 (rx_promote_function_mode): Likewise.
12684 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12685 in order to make it legitimate.
12686 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12687 make sure that the first operand is the same as the result register.
12688 (addsi3_unspec): Delete.
12689 (subdi3): Do not accept immediate operands.
12690 (subdi3_internal): Likewise.
12692 2011-01-25 Jeff Law <law@redhat.com>
12694 PR rtl-optimization/37273
12695 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12696 handle them like argument loads from stack slots. Do not double
12697 count memory for memory constants and argument loads from stack slots.
12699 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12701 PR tree-optimization/47427
12702 PR tree-optimization/47428
12703 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12704 coalesce if the new root var would be TREE_READONLY.
12706 2011-01-25 Richard Guenther <rguenther@suse.de>
12708 PR middle-end/47414
12709 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12710 correct type for TBAA.
12712 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12714 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12715 (close_phi_written_to_memory): Call for_each_index with
12716 dr_indices_valid_in_loop.
12718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12720 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12721 when it is initialized.
12723 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12725 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12726 call to graphite_find_data_references_in_stmt.
12727 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12728 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12729 call to graphite_find_data_references_in_stmt.
12730 (analyze_drs_in_stmts): Same.
12731 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12732 in which the scalar analysis of indices is performed.
12733 (create_data_ref): Same. Update call to dr_analyze_indices.
12734 (find_data_references_in_stmt): Update call to create_data_ref.
12735 (graphite_find_data_references_in_stmt): Same.
12736 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12738 (create_data_ref): Same.
12739 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12740 call to create_data_ref.
12742 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12744 * graphite-sese-to-poly.c (build_poly_scop): Move
12745 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12747 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12749 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12750 VAR_DECL, PARM_DECL, and RESULT_DECL.
12752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12754 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12755 in a reduction PBB.
12756 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12757 that have already been marked as PBB_IS_REDUCTION.
12759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12761 * graphite-scop-detection.c (same_close_phi_node): New.
12762 (remove_duplicate_close_phi): New.
12763 (make_close_phi_nodes_unique): New.
12764 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12768 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12769 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12770 of both data references to be the same.
12772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12774 * graphite-dependences.c (build_lexicographical_constraint): Remove
12775 the gdim parameter.
12776 (build_lexicographical_constraint): Adjust call to
12777 ppl_powerset_is_empty.
12778 (dependence_polyhedron): Same.
12779 (graphite_legal_transform_dr): Same.
12780 (graphite_carried_dependence_level_k): Same.
12781 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12783 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12787 * graphite-sese-to-poly.c
12788 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12789 (close_phi_written_to_memory): New.
12790 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12793 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12795 * doc/install.texi: Update the expected version number of PPL to 0.11.
12796 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12797 #if PPL_VERSION_MINOR < 11.
12799 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12801 * graphite-dependences.c: Include graphite-cloog-util.h.
12802 (new_poly_ddr): Inlined into dependence_polyhedron.
12803 (free_poly_ddr): Moved close by new_poly_ddr.
12804 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12805 Early return NULL when ppl_powerset_is_empty returns true.
12806 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12807 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12808 (graphite_legal_transform_dr): Call new_poly_ddr.
12809 (graphite_carried_dependence_level_k): Same.
12810 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12811 (dot_transformed_deps_stmt_1): Removed.
12812 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12813 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12814 (dot_deps_1): Call dot_deps_2.
12815 * Makefile.in (graphite-dependences.o): Add missing dependence on
12816 graphite-cloog-util.h.
12818 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12820 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12821 (build_lexicographical_constraint): Same.
12822 (dependence_polyhedron_1): Same.
12823 (graphite_legal_transform_dr): Same.
12824 (graphite_carried_dependence_level_k): Same.
12825 * graphite-ppl.c (ppl_powerset_is_empty): New.
12826 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12827 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12829 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12831 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12832 the "a followed by b" relation and document it.
12834 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12836 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12837 iteration when the bag of constraints is empty.
12839 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12841 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12843 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12845 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12846 nest and two loop depths as parameters.
12847 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12848 lst_perfect_nestify.
12850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12852 * graphite-dependences.c (print_pddr): Call
12853 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12857 * graphite-ppl.c (debug_gmp_value): New.
12858 * graphite-ppl.h (debug_gmp_value): Declared.
12860 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12862 * doc/install.texi: Document availability of cloog-0.16.
12864 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12866 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12867 invalid postdominance info.
12869 2011-01-24 Jan Hubicka <jh@suse.cz>
12872 * doc/extend.texi (weak pragma): Drop claim that it must
12873 appear before definition.
12874 * varasm.c (merge_weak, declare_weak): Only sanity check
12875 that DECL is not output at a time it is declared weak.
12877 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12879 * machmode.def: Fixed comments.
12881 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12883 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12885 2011-01-24 Paul Koning <ni1d@arrl.net>
12887 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12890 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12893 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12894 (block_info): Add scanned and prev.
12895 (move_or_delete_vzeroupper_2): Return if the basic block
12896 has been scanned and the upper 128bit state is unchanged
12897 from the last scan.
12898 (move_or_delete_vzeroupper_1): Return true if the exit
12900 (move_or_delete_vzeroupper): Visit basic blocks using the
12901 work-list based algorithm based on vt_find_locations in
12904 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12906 2011-01-24 Nick Clifton <nickc@redhat.com>
12908 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12909 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12910 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12911 then define __v850e1__.
12912 * doc/invoke.texi: Document -mv850es.
12914 2011-01-24 Richard Henderson <rth@redhat.com>
12916 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12917 compound unordered comparisons.
12918 * config/rx/rx.c (rx_split_fp_compare): Remove.
12919 * config/rx/rx-protos.h: Update.
12920 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12921 (cbranchsf4): Don't call rx_split_fp_compare.
12922 (*cbranchsf4): Use rx_split_cbranch.
12923 (*cmpsf): Don't accept "i" constraint.
12924 (*conditional_branch): Only valid after reload.
12925 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12927 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12930 * config/rs6000/altivec.md (vector constant splitters): Add
12931 support for creating vector single precision constants if -mvsx is
12932 used and we would create the constant using Altivec primitives.
12934 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12935 Richard Sandiford <rdsandiford@googlemail.com>
12937 PR rtl-optimization/47166
12938 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12939 mechanism for PRE_MODIFY and POST_MODIFY.
12940 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12943 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12945 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12947 2011-01-22 Jan Hubicka <jh@suse.cz>
12950 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12952 2011-01-22 Jan Hubicka <jh@suse.cz>
12954 PR tree-optimization/43884
12956 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12957 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12959 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12961 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12962 * config/s390/s390.c (s390_register_move_cost,
12963 s390_memory_move_cost): New.
12964 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12966 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12968 PR middle-end/47401
12969 * except.c (sjlj_assign_call_site_values): Move setting the
12970 crtl->uses_eh_lsda flag to ...
12971 (sjlj_mark_call_sites): ... here.
12972 (sjlj_emit_function_enter): Support NULL dispatch label.
12973 (sjlj_build_landing_pads): In a function with no landing pads
12974 that still has must-not-throw regions, generate code to register
12975 a personality function with empty LSDA.
12977 2011-01-21 Richard Henderson <rth@redhat.com>
12979 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12981 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12983 * compare-elim.c: New file.
12984 * Makefile.in (OBJS-common): Add it.
12985 (compare-elim.o): New.
12986 * common.opt (fcompare-elim): New.
12987 * opts.c (default_options_table): Add OPT_fcompare_elim.
12988 * tree-pass.h (pass_compare_elim_after_reload): New.
12989 * passes.c (init_optimization_passes): Add it.
12990 * recog.h: Protect against re-inclusion.
12991 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12992 * doc/invoke.texi (-fcompare-elim): Document it.
12993 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12994 * doc/tm.texi: Rebuild.
12996 2011-01-22 Nick Clifton <nickc@redhat.com>
12998 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12999 rx_split_fp_compare.
13001 2011-01-22 Nick Clifton <nickc@redhat.com>
13003 * config/rx/rx.md (UNSPEC_CONST): New.
13004 (deallocate_and_return): Wrap the amount popped off the stack in
13005 an UNSPEC_CONST in order to stop it being rejected by
13006 -mmax-constant-size.
13007 (pop_and_return): Add a "(return)" rtx.
13008 (call): Drop the immediate operand.
13009 (call_internal): Likewise.
13010 (call_value): Likewise.
13011 (call_value_internal): Likewise.
13012 (sibcall_internal): Likewise.
13013 (sibcall_value_internal): Likewise.
13014 (sibcall): Likewise. Generate an explicit call using
13016 (sibcall_value): Likewise.
13017 (mov<>): FAIL if a constant operand is not legitimate.
13018 (addsi3_unpsec): New pattern.
13020 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13021 (ok_for_max_constant): New function.
13022 (gen_safe_add): New function.
13023 (rx_expand_prologue): Use gen_safe_add.
13024 (rx_expand_epilogue): Likewise.
13025 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13028 2011-01-21 Jeff Law <law@redhat.com>
13030 PR tree-optimization/47053
13031 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13032 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13033 statements are deleted.
13034 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13035 is nonempty, then purge dead edges and cleanup the CFG.
13037 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13040 Temporarily revert:
13041 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13043 * tree-dfa.c (create_var_ann): Mark variable as used.
13045 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13047 PR middle-end/45566
13048 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13049 notes from other section in hot/cold partitioning even if
13050 last_action is -3. Increment call_site_base.
13052 PR rtl-optimization/47366
13053 * fwprop.c (forward_propagate_into): Return bool. If
13054 any changes are made, -fnon-call-exceptions is used and
13055 REG_EH_REGION note is present, call purge_dead_edges
13056 and return true if it purged anything.
13057 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13058 any EH edges were purged.
13060 2011-01-21 Jeff Law <law@redhat.com>
13062 PR rtl-optimization/41619
13063 * caller-save.c (setup_save_areas): Break out code to determine
13064 which hard regs are live across calls by examining the reload chains
13065 so that it is always used.
13066 Eliminate code which checked REG_N_CALLS_CROSSED.
13068 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13070 PR tree-optimization/47355
13071 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13072 NOP has non-debug uses beyond PHIs in new_bb.
13074 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13077 * cfgexpand.c (account_used_vars_for_block): Only account vars
13078 that are annotated as used.
13079 (estimated_stack_frame_size): Don't set TREE_USED.
13080 * tree-dfa.c (create_var_ann): Mark variable as used.
13082 2011-01-21 Richard Guenther <rguenther@suse.de>
13084 PR middle-end/47395
13085 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13087 2011-01-21 Richard Guenther <rguenther@suse.de>
13089 PR tree-optimization/47365
13090 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13091 (vn_reference_lookup_pieces): Adjust.
13092 (vn_reference_lookup): Likewise.
13093 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13094 (vn_reference_lookup_3): Only look through kills if in
13095 VN_WALKREWRITE mode.
13096 (vn_reference_lookup_pieces): Adjust.
13097 (vn_reference_lookup): Likewise.
13098 (visit_reference_op_load): Likewise.
13099 (visit_reference_op_store): Likewise.
13100 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13101 (compute_avail): Likewise.
13102 (eliminate): Likewise.
13104 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13106 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13107 DECL_IGNORED_P non-reg vars if they are used.
13109 PR tree-optimization/47391
13110 * varpool.c (const_value_known_p): Return false if
13113 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13116 * config/i386/i386.c (ix86_local_alignment): Handle
13117 case for va_list_type_node is nil.
13118 (ix86_canonical_va_list_type): Likewise.
13120 2011-01-21 Alan Modra <amodra@gmail.com>
13122 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13123 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13125 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13127 * config/arm/arm.md (define_attr type): Rename f_load
13128 and f_store to f_fpa_load and f_fpa_store. Update.
13129 (write_conflict): Deal with rename fallout.
13130 (*push_fp_multi): Likewise.
13131 * config/arm/fpa.md (f_load): Use f_fpa_load.
13132 (f_store): Use f_fpa_store.
13133 (*movsf_fpa): Likewise.
13134 (*movdf_fpa): Likewise.
13135 (*movxf_fpa): Likewise.
13136 (*thumb2_movsf_fpa): Likewise.
13137 (*thumb2_movdf_fpa): Likewise.
13138 (*thumb2_movxf_fpa): Likewise.
13139 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13140 f_loadd and f_stored.
13141 (*thumb2_movdi_vfp): Likewise.
13142 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13143 (*thumb2_movsi_vfp): Likewise.
13144 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13145 Use f_loads instead of f_load.
13146 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13148 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13150 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13151 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13152 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13153 (xtensa_mode_dependent_address_p): New function.
13154 (constantpool_address_p): Make static. Change return type to bool.
13155 Change argument type to const_rtx. Use CONST_INT_P predicate.
13157 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13160 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13162 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13165 * cfgexpand.c (expand_debug_expr): Instead of generating
13166 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13169 2011-01-20 Richard Guenther <rguenther@suse.de>
13171 PR middle-end/47370
13172 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13173 the pointer operand of MEM_REFs.
13175 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13177 PR tree-optimization/46130
13178 * ipa-split.c (consider_split): If return_bb contains non-virtual
13179 PHIs other than for retval or if split_function would not adjust it,
13182 2011-01-20 Richard Guenther <rguenther@suse.de>
13184 PR tree-optimization/47167
13185 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13186 Revert previous change, only avoid enumeral type changes.
13188 2011-01-19 Mike Stump <mikestump@comcast.net>
13190 * doc/tm.texi.in (BRANCH_COST): Englishify.
13191 * doc/tm.texi (BRANCH_COST): Likewise.
13193 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13196 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13197 (gen_scheduled_generic_parms_dies): New functions.
13198 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13199 generation for the end of CU compilation.
13200 (dwarf2out_finish): Generate template parameters DIEs here.
13202 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13205 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13206 debug bind stmt on merge edges.
13208 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13212 * function.c (instantiate_expr): Instantiate incoming rtl of
13213 implicit arguments, and recurse on VALUE_EXPRs.
13214 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13215 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13217 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13219 * c-parser.c (c_parser_for_statement): Initialize
13220 collection_expression.
13222 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13224 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13226 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13228 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13229 (LINK_SHLIB_SPEC): Don't use %(link_path).
13230 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13232 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13234 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13235 (NO_SHARED_LIB_SUPPORT): Remove.
13236 (LINK_SHLIB_SPEC): Remove one conditional definition.
13238 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13240 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13242 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13243 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13244 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13245 %{call_shared} and conditionals on these options not being passed.
13246 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13249 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13251 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13254 * ipa-split.c: Spelling fixes.
13256 2011-01-19 Richard Henderson <rth@redhat.com>
13258 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13259 (*mulsi3): Likewise.
13261 * longlong.h [__mn10300__] (count_leading_zeros): New.
13262 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13263 [__mn10300__] (add_ssaaaa, subddmmss): New.
13264 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13265 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13267 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13269 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13271 2011-01-19 Richard Henderson <rth@redhat.com>
13273 * config/mn10300/mn10300.md (addsi3_flags): New.
13274 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13275 (subsi3_flags, subc_internal, subdi3): New.
13276 (subdi3_internal, *subdi3_degenerate): New.
13277 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13279 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13280 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13281 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13282 * config/mn10300/mn10300-protos.h: Update.
13283 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13284 (return_ret): Likewise. Rename from return_internal_regs.
13285 (return_internal): Remove.
13287 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13288 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13289 (mn10300_legitimate_constant_p): Likewise.
13290 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13291 (mn10300_frame_size): New.
13292 (mn10300_expand_prologue): Use it.
13293 (mn10300_expand_epilogue): Likewise.
13294 (mn10300_initial_offset): Likewise.
13295 * config/mn10300/mn10300-protos.h: Update.
13296 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13297 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13298 (prologue, epilogue, return_internal): Tidy output code.
13299 (mn10300_store_multiple_operation, return): Likewise.
13300 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13301 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13302 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13303 (load_pic, am33_load_pic): New.
13304 (mn10300_load_pic0, mn10300_load_pic1): New.
13306 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13307 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13308 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13309 (cc_flags_for_mode, cc_flags_for_code): New.
13310 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13311 overflow flag is not valid. Validate that the flags we need
13312 for the comparison are valid.
13313 (mn10300_output_cmp): Remove.
13314 (mn10300_output_add): New.
13315 (mn10300_select_cc_mode): Use cc_flags_for_code.
13316 (mn10300_split_cbranch): New.
13317 (mn10300_match_ccmode): New.
13318 (mn10300_split_and_operand_count): New.
13319 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13321 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13322 (addsi3): ... here. Use mn10300_output_add.
13323 (*addsi3_flags): New.
13324 (*am33_subsi3, *mn10300_subsi3): Merge...
13325 (subsi3): ... here. Use attribute isa.
13326 (*subsi3_flags): New.
13327 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13329 (*am33_andsi3, *mn10300_andsi3): Merge...
13330 (andsi3): ... here.
13331 (*andsi3_flags): New.
13332 (andsi3 splitters): New.
13333 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13334 (iorsi3): ... here.
13335 (*iorsi3_flags): New.
13336 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13337 (xorsi3): ... here.
13338 (*xorsi3_flags): New.
13339 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13340 (one_cmplsi2): ... here.
13341 (*one_cmplsi2_flags): New.
13342 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13343 instead of "dax" in constraints. Use mn10300_split_cbranch.
13344 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13345 use matching constraints to eliminate a self-comparison.
13346 (*integer_conditional_branch): Rename from integer_conditional_branch.
13347 Use int_mode_flags to match CC_REG.
13348 (*cbranchsi4_btst, *btstsi): New.
13349 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13350 mn10300_split_cbranch.
13351 (*am33_cmpsf): Rename from am33_cmpsf.
13352 (*float_conditional_branch): Rename from float_conditional_branch.
13353 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13354 (zero_extendqisi2): ... here.
13355 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13356 (zero_extendhisi2): ... here.
13357 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13358 (extendqisi2): ... here.
13359 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13360 (extendhisi2): ... here.
13361 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13362 (ashlsi3): ... here.
13363 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13364 (lshrsi3): ... here.
13365 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13366 (ashrsi3): ... here.
13367 (consecutive add peephole): Remove.
13368 * config/mn10300/predicates.md (label_ref_operand): New.
13369 (int_mode_flags): New.
13370 (CCZN_comparison_operator): New.
13372 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13373 (throughput_42_latency_43): New reservation.
13374 (mulsidi3, umulsidi3): New expanders.
13375 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13376 the MDR register to allocation; separately allocate the low and
13377 high parts of the DImode result.
13378 (umulsidi3_internal): Similarly.
13379 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13380 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13381 (udivsi3, umodsi3): Remove.
13382 (udivmodsi4, divmodsi4): New expanders.
13383 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13384 (*divmodsi4): Simiarly.
13385 (ext_internal): New.
13387 * config/mn10300/constraints.md ("z"): New constraint.
13388 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13389 (FIXED_REGISTERS): Don't fix MDR.
13390 (CALL_USED_REGSITERS): Reformat nicely.
13391 (REG_ALLOC_ORDER): Add MDR.
13392 (enum regclass): Add MDR_REGS.
13393 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13394 (IRA_COVER_CLASSES): Add MDR_REGS.
13395 (REGNO_REG_CLASS): Handle MDR_REG.
13396 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13397 (mn10300_register_move_cost): Likewise.
13398 * config/mn10300/mn10300.md (MDR_REG): New.
13399 (*movsi_internal): Handle moves to/from MDR_REGS.
13401 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13403 (mn10300_secondary_reload): Tidy combination reload classes.
13404 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13405 addresses for AM33. Allow symbolic offsets for reg+imm.
13406 (mn10300_regno_in_class_p): New.
13407 (mn10300_legitimize_reload_address): New.
13408 * config/mn10300/mn10300.h (enum reg_class): Remove
13409 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13410 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13411 SP_OR_GENERAL_REGS.
13412 (REG_CLASS_NAMES): Update to match.
13413 (REG_CLASS_CONTENTS): Likewise.
13414 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13415 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13416 (REGNO_IN_RANGE_P): Remove.
13417 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13418 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13419 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13420 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13421 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13422 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13423 (REGNO_GENERAL_P): New.
13424 (HAVE_POST_MODIFY_DISP): New.
13425 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13426 (LEGITIMIZE_RELOAD_ADDRESS): New.
13427 * config/mn10300/mn10300-protos.h: Update.
13429 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13430 DATA_REGS for AM33 stack-pointer destination.
13431 (mn10300_preferred_output_reload_class): Likewise.
13432 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13433 into a form appropriate for ...
13434 (TARGET_SECONDARY_RELOAD): New.
13435 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13436 * config/mn10300/mn10300-protos.h: Update.
13437 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13438 reload_insi; use the "A" constraint for the scratch; handle AM33
13439 moves of sp to non-address registers.
13441 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13442 (*movqi_internal): ... here.
13443 (*am33_movhi, *mn10300_movhi): Merge into...
13444 (*movhi_internal): ... here.
13445 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13446 as the source/destination of moves from/to SP.
13447 (movsf): Only allow for AM33-2.
13448 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13449 any integer constant constraint. Only allow for AM33-2. Tidy
13450 all of the alternative outputs.
13451 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13452 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13454 (udivsi3, umodsi3): New patterns for MN103 only.
13456 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13458 * doc/tm.texi.in: Spell out that a lack of register class unions
13460 * doc/tm.texi: Regenerate.
13462 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13464 PR rtl-optimization/47337
13465 * dce.c (check_argument_store): New function.
13466 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13468 PR tree-optimization/47290
13469 * tree-eh.c (infinite_empty_loop_p): New function.
13470 (cleanup_empty_eh): Use it.
13472 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13475 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13476 (a64_expand_widen_sum): Ditto.
13477 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13478 (vec_extract_evenodd_help): Ditto.
13479 (vec_extract_evenv4hi): Ditto.
13480 (vec_extract_oddv4hi): Ditto.
13481 (vec_extract_evenv2si): Ditto.
13482 (vec_extract_oddv2si): Ditto.
13483 (vec_extract_evenv2sf): Ditto.
13484 (vec_extract_oddv2sf): Ditto.
13485 (vec_pack_trunc_v4hi: Ditto.
13486 (vec_pack_trunc_v2si): Ditto.
13487 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13488 (vec_interleave_highv8qi): Ditto.
13490 (vec_extract_oddv8qi): Ditto.
13491 (vec_interleave_lowv4hi): Ditto.
13492 (vec_interleave_highv4hi): Ditto.
13493 (vec_interleave_lowv2si): Ditto.
13494 (vec_interleave_highv2si): Ditto.
13496 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13498 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13499 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13500 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13501 (pa_c_mode_for_suffix): New.
13502 (TARGET_EXPAND_BUILTIN): Define.
13503 (TARGET_C_MODE_FOR_SUFFIX): Define.
13504 (pa_builtins): Define.
13505 (pa_init_builtins): Register __float128 type and init new support
13507 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13508 * config/pa/quadlib.c (_U_Qfcopysign): New.
13510 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13512 PR middle-end/46894
13513 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13514 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13517 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13519 PR tree-optimization/47179
13520 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13521 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13523 2011-01-18 Richard Guenther <rguenther@suse.de>
13525 PR rtl-optimization/47216
13526 * emit-rtl.c: Include tree-flow.h.
13527 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13528 of replicating it with different semantics.
13529 * Makefile.in (emit-rtl.o): Adjust.
13531 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13533 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13534 (cortex_a9_dp): Handle neon types correctly.
13536 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13538 PR rtl-optimization/47299
13539 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13540 subtarget. Use normal multiplication if both operands are constants.
13541 * expmed.c (expand_widening_mult): Don't try to optimize constant
13542 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13545 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13547 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13548 spacing after 'e.g.', typos, comma, hyphenation.
13550 2011-01-17 Richard Henderson <rth@redhat.com>
13552 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13553 (rx_restricted_mem_operand): New.
13554 (rx_shift_operand): Use register_operand.
13555 (rx_source_operand, rx_compare_operand): Likewise.
13556 * config/rx/rx.md (addsi3_flags): New expander.
13557 (adddi3): Rewrite as expander.
13558 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13559 (subsi3_flags): New expander.
13560 (subdi3): Rewrite as expander.
13561 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13563 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13564 (rx_init_builtins): Remove sat builtin.
13565 (rx_expand_builtin): Likewise.
13566 * config/rx/rx.md (ssaddsi3): New.
13567 (*sat): Rename from sat. Represent the CC_REG input.
13569 * config/rx/predicates.md (rshift_operator): New.
13570 * config/rx/rx.c (rx_expand_insv): Remove.
13571 * config/rx/rx-protos.h: Update.
13572 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13573 operand to the canonical position.
13574 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13575 (*bitclr, *bitclr_in_memory): Similarly.
13576 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13577 (insv): Retain the zero_extract in the expansion.
13579 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13580 (bswaphi2, bitinvert, revw): Likewise.
13582 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13583 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13584 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13585 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13586 (bitset, bitset_in_memory): Likewise.
13587 (bitinvert, bitinvert_in_memory): Likewise.
13588 (bitclr, bitclr_in_memory): Likewise.
13589 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13590 (rx_strend, rx_cmpstrn): Likewise.
13591 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13592 (bitop peep2 patterns): Remove.
13594 * config/rx/rx.c (rx_match_ccmode): New.
13595 * config/rx/rx-protos.h: Update.
13596 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13597 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13598 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13599 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13600 (fix_truncsfsi2, floatsisf2): Likewise.
13601 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13602 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13603 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13604 (*subsi3_flags, *xorsi3_flags): New.
13606 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13608 * config/rx/rx.c (rx_print_operand): Remove workaround for
13609 unsplit comparison operations.
13611 * config/rx/rx.md (movsicc): Split after reload.
13612 (*movsicc): Merge *movsieq and *movsine via match_operator.
13613 (*stcc): New pattern.
13615 * config/rx/rx.c (rx_float_compare_mode): Remove.
13616 * config/rx/rx.h (rx_float_compare_mode): Remove.
13617 * config/rx/rx.md (cstoresi4): Split after reload.
13618 (*sccc): New pattern.
13620 * config/rx/predicates.md (label_ref_operand): New.
13621 (rx_z_comparison_operator): New.
13622 (rx_zs_comparison_operator): New.
13623 (rx_fp_comparison_operator): New.
13624 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13625 Validate that the flags are set properly for the comparison.
13626 (rx_gen_cond_branch_template): Remove.
13627 (rx_cc_modes_compatible): Remove.
13628 (mode_from_flags): New.
13629 (flags_from_code): Rename from flags_needed_for_conditional.
13630 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13631 (rx_select_cc_mode): Likewise.
13632 (rx_split_fp_compare): New.
13633 (rx_split_cbranch): New.
13634 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13635 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13636 (*cbranchsf4): Similarly.
13637 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13638 match_operator and rx_split_cbranch.
13639 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13640 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13641 (*cmpsi): Rename from cmpsi.
13642 (*tstsi): Rename from tstsi.
13643 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13644 (*conditional_branch): Rename from conditional_branch.
13645 (*reveresed_conditional_branch): Remove.
13646 (b<code>): Remove expander.
13647 * config/rx/rx-protos.h: Update.
13649 * config/rx/rx.c (rx_compare_redundant): Remove.
13650 * config/rx/rx.md (cmpsi): Don't use it.
13651 * config/rx/rx-protos.h: Update.
13653 * config/rx/rx-modes.def (CC_F): New mode.
13654 * config/rx/rx.c (rx_select_cc_mode): New.
13655 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13656 * config/rx/rx-protos.h: Update.
13658 2011-01-17 Richard Henderson <rth@redhat.com>
13660 * except.c (dump_eh_tree): Fix stray ; after for statement.
13662 2011-01-17 Richard Guenther <rguenther@suse.de>
13664 PR tree-optimization/47313
13665 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13666 handling before copying the body. Properly deal with
13667 by-reference result in SSA form.
13669 2011-01-17 Ian Lance Taylor <iant@google.com>
13672 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13673 (struct_value_alias_set): Don't define.
13674 (sparc_option_override): Don't set sparc_sr_alias_set and
13675 struct_value_alias_set.
13676 (save_or_restore_regs): Use gen_frame_mem rather than calling
13678 (sparc_struct_value_rtx): Likewise.
13680 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13683 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13684 (_mm_maskstore_pd): Likewise.
13685 (_mm_maskload_ps): Likewise.
13686 (_mm_maskstore_ps): Likewise.
13687 (_mm256_maskload_pd): Change mask to __m256i.
13688 (_mm256_maskstore_pd): Likewise.
13689 (_mm256_maskload_ps): Likewise.
13690 (_mm256_maskstore_ps): Likewise.
13692 * config/i386/i386-builtin-types.def: Updated.
13693 (ix86_expand_special_args_builtin): Likewise.
13695 * config/i386/i386.c (bdesc_special_args): Update
13696 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13697 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13698 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13699 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13701 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13702 Use <avxpermvecmode> on mask register.
13703 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13705 2011-01-17 Olivier Hainque <hainque@adacore.com>
13706 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13707 Eric Botcazou <ebotcazou@adacore.com>
13710 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13711 if <= USHRT_MAX in 32-bit mode.
13713 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13715 * doc/install.texi (Configuration, Specific): Wrap long
13716 lines in examples. Allow line wrapping in long options
13717 and URLs where beneficial for PDF output.
13719 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13721 * config/mips/mips.c (mips_classify_symbol): Don't return
13722 SYMBOL_PC_RELATIVE for nonlocal labels.
13724 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13726 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13728 2011-01-15 Jan Hubicka <jh@suse.cz>
13730 PR tree-optimization/47276
13731 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13732 declarations as needed.
13734 2011-01-15 Martin Jambor <mjambor@suse.cz>
13736 * common.opt (fdevirtualize): New flag.
13737 * doc/invoke.texi (Option Summary): Document it.
13738 * opts.c (default_options_table): Add devirtualize flag.
13739 * ipa-prop.c (detect_type_change): Return immediately if
13740 devirtualize flag is not set.
13741 (detect_type_change_ssa): Likewise.
13742 (compute_known_type_jump_func): Likewise.
13743 (ipa_analyze_virtual_call_uses): Likewise.
13745 2011-01-14 Martin Jambor <mjambor@suse.cz>
13747 PR tree-optimization/45934
13748 PR tree-optimization/46302
13749 * ipa-prop.c (type_change_info): New type.
13750 (stmt_may_be_vtbl_ptr_store): New function.
13751 (check_stmt_for_type_change): Likewise.
13752 (detect_type_change): Likewise.
13753 (detect_type_change_ssa): Likewise.
13754 (compute_complex_assign_jump_func): Check for dynamic type change.
13755 (compute_complex_ancestor_jump_func): Likewise.
13756 (compute_known_type_jump_func): Likewise.
13757 (compute_scalar_jump_functions): Likewise.
13758 (ipa_analyze_virtual_call_uses): Likewise.
13759 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13763 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13764 * config/i386/i386.opt (msse5): New Alias.
13766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13768 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13769 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13770 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13771 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13773 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13775 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13777 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13778 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13779 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13780 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13782 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13784 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13786 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13788 2011-01-14 Mike Stump <mikestump@comcast.net>
13790 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13791 * config/fr30/fr30.md: Likweise
13792 (movsi_push): Likewise.
13793 (movsi_pop): Likewise.
13794 (enter_func): Likewise.
13795 * config/moxie/moxie.md (movsi_push): Likewise.
13796 (movsi_pop): Likewise.
13798 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13800 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13801 %{no_archive} %{exact_version}.
13802 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13803 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13804 %{no_archive} %{exact_version}.
13805 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13806 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13807 * config/mips/vxworks.h: Likewise.
13809 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13811 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13813 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13815 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13816 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13818 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13820 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13823 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13825 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13827 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13828 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13830 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13831 Don't handle -shlib.
13833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13835 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13836 (CC1_SPEC): Don't handle -profile.
13838 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13840 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13841 * config/mips/mips.h (CC1_SPEC): Likewise.
13843 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13845 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13846 * config/mips/mips.h (CC1_SPEC): Likewise.
13848 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13850 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13851 * config/m32r/linux.h (LINK_SPEC): Likewise.
13852 * config/mips/linux.h (LINK_SPEC): Likewise.
13853 * config/mips/linux64.h (LINK_SPEC): Likewise.
13854 * config/sparc/linux.h (LINK_SPEC): Likewise.
13855 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13856 LINK_SPEC): Likewise.
13857 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13859 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13861 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13863 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13865 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13867 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13868 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13870 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13872 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13874 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13876 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13877 supports -Bstatic/-Bdynamic.
13878 * configure: Regenerate.
13880 2011-01-14 Jan Hubicka <jh@suse.cz>
13881 Jack Howarth <howarth@bromo.med.uc.edu>
13884 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13885 when checking debug_info_level. Test write_symbols instead of
13886 debug_hooks->var_location when setting flag_var_tracking_uninit.
13888 2011-01-14 Richard Guenther <rguenther@suse.de>
13890 PR tree-optimization/47179
13891 * target.def (ref_may_alias_errno): New target hook.
13892 * targhooks.h (default_ref_may_alias_errno): Declare.
13893 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13894 (default_ref_may_alias_errno): New function.
13895 * target.h (struct ao_ref_s): Declare.
13896 * tree-ssa-alias.c: Include target.h.
13897 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13898 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13899 (targhooks.o): Likewise.
13900 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13901 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13903 2011-01-14 Richard Guenther <rguenther@suse.de>
13905 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13907 2011-01-14 Richard Guenther <rguenther@suse.de>
13909 PR tree-optimization/47280
13910 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13911 return CFG changes.
13912 (tree_ssa_forward_propagate_single_use_vars): Deal with
13913 CFG changes from associate_plusminus.
13915 2011-01-14 Richard Guenther <rguenther@suse.de>
13917 PR middle-end/47281
13919 2011-01-11 Richard Guenther <rguenther@suse.de>
13921 PR tree-optimization/46076
13922 * tree-ssa.c (useless_type_conversion_p): Conversions from
13923 unprototyped to empty argument list function types are useless.
13925 2011-01-14 Richard Guenther <rguenther@suse.de>
13927 PR tree-optimization/47286
13928 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13930 2011-01-14 Martin Jambor <mjambor@suse.cz>
13932 PR middle-end/46823
13933 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13935 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13937 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13938 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13939 * config/xtensa/xtensa.c (xtensa_libcall_value,
13940 xtensa_function_value_regno_p): New functions.
13941 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13943 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13946 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13948 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13949 New function prototype.
13950 * config/i386/winnt.c (i386_pe_assemble_visibility):
13951 Warn only if attribute was specified by user.
13953 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13956 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13958 (floatunsdidf2_fcfidu): Ditto.
13960 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13962 * config/s390/s390.c (print_operand_address): Replace 'error' with
13963 'output_operand_lossage'.
13964 (print_operand): Likewise.
13966 2011-01-13 Jeff Law <law@redhat.com>
13968 PR rtl-optimization/39077
13969 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13970 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13971 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13972 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13973 * gcse.c (prune_insertions_deletions): New function.
13974 (compute_pre_data): Use it.
13976 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13979 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13981 (prune_unused_types_mark): Use it.
13983 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13985 PR rtl-optimization/45352
13986 * sel-sched.c: Update copyright years.
13987 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13988 in the advancing loop when we have issued issue_rate insns.
13990 2011-01-12 Richard Henderson <rth@redhat.com>
13992 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13993 (TARGET_MD_ASM_CLOBBERS): New.
13995 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13996 (TARGET_DELEGITIMIZE_ADDRESS): New.
13998 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13999 (clzsi2, *bsch): New patterns.
14001 * config/mn10300/mn10300.md (INT): New mode iterator.
14002 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14004 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14005 flag_split_wide_types.
14007 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14008 (mn10300_trampoline_init): Rewrite without a template, an immediate
14009 load and a direct branch.
14010 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14012 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14014 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14015 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14016 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14017 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14019 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14022 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14025 2011-01-12 Jan Hubicka <jh@suse.cz>
14028 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14029 (PLUGIN_COND_CLOSE): New macro.
14030 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14032 2011-01-12 Richard Guenther <rguenther@suse.de>
14035 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14036 register variables in a MEM_REF.
14038 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14040 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14041 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14042 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14043 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14044 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14045 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14046 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14047 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14048 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14049 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14050 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14051 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14052 * config/gnu-user.h: New. Copied from linux.h.
14053 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14054 GNU_USER_TARGET_STARTFILE_SPEC.
14055 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14056 GNU_USER_TARGET_ENDFILE_SPEC.
14057 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14058 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14059 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14060 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14061 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14062 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14063 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14064 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14065 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14066 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14067 * config/arm/linux-eabi.h (CC1_SPEC): Use
14068 GNU_USER_TARGET_CC1_SPEC.
14069 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14070 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14071 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14072 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14073 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14074 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14075 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14076 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14078 2011-01-12 Richard Guenther <rguenther@suse.de>
14081 * doc/invoke.texi (ffast-math): Document it is turned on
14084 2011-01-12 Jan Hubicka <jh@suse.cz>
14086 PR tree-optimization/47233
14087 * opts.c (common_handle_option): Disable ipa-reference with profile
14090 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14092 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14095 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14097 * c-parser.c (c_lex_one_token): Updated and reindented some
14098 comments. No changes in code.
14100 2011-01-11 Ian Lance Taylor <iant@google.com>
14102 * godump.c (go_output_var): Don't output the variable if there is
14103 already a type with the same name.
14105 2011-01-11 Ian Lance Taylor <iant@google.com>
14107 * godump.c (go_format_type): Don't generate float80.
14109 2011-01-11 Richard Henderson <rth@redhat.com>
14111 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14112 declaration. Rewrite for both speed and size.
14113 (mn10300_address_cost_1): Remove.
14114 (mn10300_register_move_cost): New.
14115 (mn10300_memory_move_cost): New.
14116 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14117 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14118 extensions, shifts, BSWAP, CLZ.
14119 (mn10300_wide_const_load_uses_clr): Remove.
14120 (TARGET_REGISTER_MOVE_COST): New.
14121 (TARGET_MEMORY_MOVE_COST): New.
14122 * config/mn10300/mn10300-protos.h: Update.
14123 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14125 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14126 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14127 * config/mn10300/mn10300-protos.h: Update.
14128 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14129 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14130 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14131 (*test_int_bitfield, *test_byte_bitfield): Remove.
14132 (*bit_test, *subreg_bit_test): Remove.
14133 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14135 * config/mn10300/constraints.md ("c"): Rename from "A".
14136 ("A", "D"): New constraint letters.
14137 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14138 (fmssf4, fnmasf4, fnmssf4): Likewise.
14140 * config/mn10300/mn10300.md (isa): New attribute.
14141 (enabled): New attribute.
14143 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14144 (abssf2, negsf2): Define only for hardware fp.
14145 (sqrtsf2): Reformat.
14146 (addsf3, subsf3, mulsf3): Merge expander and insn.
14148 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14149 (DEBUGGER_AUTO_OFFSET): Remove.
14150 (DEBUGGER_ARG_OFFSET): Remove.
14152 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14153 Emit register stores with the same offsets as the hardware.
14154 (mn10300_store_multiple_operation): Don't check that the register
14155 save offsets are monotonic.
14156 * config/mn10300/mn10300-protos.h: Update.
14158 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14160 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14161 in terms of the value on the stack, not the MDR register.
14163 2011-01-11 Jan Hubicka <jh@suse.cz>
14167 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14168 (symbol_alias_set_destroy, symbol_alias_set_contains,
14169 propagate_aliases_backward): Declare.
14170 * lto-streamer-out.c (struct sets): New sturcture.
14171 (trivally_defined_alias): New function.
14172 (output_alias_pair_p): Rewrite.
14173 (output_unreferenced_globals): Fix output of alias pairs.
14174 (produce_symtab): Likewise.
14175 * ipa.c (function_and_variable_visibility): Set weak alias destination
14177 * varasm.c (symbol_alias_set_t): Remove.
14178 (symbol_alias_set_destroy): Export.
14179 (propagate_aliases_forward, propagate_aliases_backward): New functions
14181 (compute_visible_aliases): ... this one; remove.
14182 (trivially_visible_alias): New
14183 (trivially_defined_alias): New.
14184 (remove_unreachable_alias_pairs): Rewrite.
14185 (finish_aliases_1): Reorganize code checking if alias is defined.
14186 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14189 2011-01-11 Richard Guenther <rguenther@suse.de>
14191 PR tree-optimization/46076
14192 * tree-ssa.c (useless_type_conversion_p): Conversions from
14193 unprototyped to empty argument list function types are useless.
14195 2011-01-11 Richard Guenther <rguenther@suse.de>
14197 PR middle-end/45235
14198 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14199 volatile MEMs as MEM_READONLY_P.
14201 2011-01-11 Richard Guenther <rguenther@suse.de>
14203 PR tree-optimization/47239
14204 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14206 2011-01-11 Jeff Law <law@redhat.com>
14208 PR tree-optimization/47086
14209 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14210 IVs from statements that might throw.
14212 2011-01-10 Jan Hubicka <jh@suse.cz>
14215 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14217 2011-01-10 Jan Hubicka <jh@suse.cz>
14220 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14221 when correcting profile.
14223 2011-01-10 Jan Hubicka <jh@suse.cz>
14226 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14227 DECL_FINI_PRIORITY.
14228 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14229 Restore DECL_FINI_PRIORITY.
14231 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14233 * doc/gimple.texi: Fix quoting of multi-word return values in
14234 @deftypefn statements. Ensure presence of return value. Wrap
14235 overlong @deftypefn lines.
14236 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14237 descriptions of removed functions.
14238 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14239 of multi-word return value in @deftypefn statement.
14241 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14243 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14244 (Conditional Expressions, Logical Operators)
14245 (Statement and operand traversals): Do not indent smallexample
14246 code. Fix duplicate function argument in example.
14248 2011-01-10 Jeff Law <law@redhat.com>
14250 PR tree-optimization/47141
14251 * ipa-split.c (split_function): Handle case where we are
14252 returning a value and the return block has a virtual operand phi.
14254 2011-01-10 Jan Hubicka <jh@suse.cz>
14256 PR tree-optimization/47234
14257 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14258 (pass_feedback_split_functions): Declare.
14259 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14261 * ipa-split.c (gate_split_functions): Update comments; disable
14262 split-functions for profile_arc_flag and branch_probabilities.
14263 (gate_feedback_split_functions): New function.
14264 (execute_feedback_split_functions): New function.
14265 (pass_feedback_split_functions): New global var.
14267 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14270 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14271 calling gimple_call_set_cannot_inline.
14273 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14275 * config/darwin-sections.def: Remove unused section.
14277 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14280 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14282 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14285 * c-parser.c (c_parser_declaration_or_fndef): Improved
14288 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14290 * config/i386/winnt.c (i386_pe_start_function): Make sure
14291 to switch back to function's section.
14293 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14297 * plugin.c: Move include of dlfcn.h from here...
14298 * system.h: ... to here.
14300 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14302 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14304 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14305 two extra empty pages in PDF output.
14307 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14310 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14311 for error recovery purposes behave as if it was not specified so
14312 that the default type is usd.
14314 2011-01-07 Jan Hubicka <jh@suse.cz>
14316 PR tree-optmization/46469
14317 * ipa.c (function_and_variable_visibility): Clear needed flags on
14318 nodes with external decls; handle weakrefs merging correctly.
14320 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14322 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14325 2011-01-07 Jan Hubicka <jh@suse.cz>
14327 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14328 and no longer claim that gold is required for linker plugin.
14329 * configure: Regenerate.
14330 * gcc.c (PLUGIN_COND): New macro.
14331 (LINK_COMMAND_SPEC): Use it.
14332 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14333 * config.in (HAVE_LTO_PLUGIN): New.
14334 * configure.ac (--with-lto-plugin): New parameter; autodetect
14337 2011-01-07 Jan Hubicka <jh@suse.cz>
14339 PR tree-optimization/46367
14340 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14341 when we can update original.
14342 (cgraph_mark_inline_edge): Sanity check.
14343 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14345 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14347 * config/spu/spu.h (ASM_COMMENT_START): Define.
14349 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14352 * gcc.c (%>S): New.
14353 (SWITCH_KEEP_FOR_GCC): Likewise.
14354 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14355 (do_spec_1): Handle "%>".
14357 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14359 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14362 * config/i386/i386.c (ix86_delegitimize_address): If
14363 simplify_gen_subreg fails, return orig_x.
14366 * value-prof.c (gimple_stringop_fixed_value): Handle
14367 lhs of the call properly.
14369 2011-01-07 Jan Hubicka <jh@suse.cz>
14372 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14374 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14376 * target.def (function_switched_text_sections): New hook.
14377 * doc/tm.texi: Regenerated.
14378 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14379 * final.c (default_function_switched_text_sections): New.
14380 (final_scan_insn): Call function_switched_text_sections when a
14381 mid-function section change occurs.
14382 * output.h (default_function_switched_text_sections): Declare.
14383 * config/darwin-protos.h (darwin_function_switched_text_sections):
14385 * config/darwin.c (darwin_function_switched_text_sections): New.
14386 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14388 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14390 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14391 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14392 the secondary code fragment when outputting for DWARF == 2.
14394 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14396 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14397 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14399 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14400 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14402 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14405 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14406 when it is not empty.
14408 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14411 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14412 (case ${target}): Add btver1.
14413 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14414 -march=native recognize btver1 processors.
14415 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14416 btver1 def_and_undef
14417 * config/i386/i386.c (struct processor_costs btver1_cost): New
14419 (m_BTVER1): New definition.
14420 (m_AMD_MULTIPLE): Includes m_BTVER1.
14421 (initial_ix86_tune_features): Add btver1 tune.
14422 (processor_target_table): Add btver1 entry.
14423 (static const char *const cpu_names): Add btver1 entry.
14424 (software_prefetching_beneficial_p): Add btver1.
14425 (ix86_option_override_internal): Add btver1 instruction sets.
14426 (ix86_issue_rate): Add btver1.
14427 (ix86_adjust_cost): Add btver1.
14428 * config/i386/i386.h (TARGET_BTVER1): New definition.
14429 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14430 (enum processor_type): Add PROCESSOR_BTVER1.
14431 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14433 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14436 * config/i386/i386.c (legitimize_tls_address)
14437 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14438 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14439 (tls_initial_exec_64_sun): New pattern.
14441 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14443 * doc/invoke.texi (Overall Options): Improve wording and markup
14444 of the description of -wrapper.
14446 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14448 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14449 rdynamic, threads): New Driver options.
14451 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14454 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14455 if coming from .tdata.
14456 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14458 2011-01-06 Jan Hubicka <jh@suse.cz>
14461 * collect2.c (main): Do not enable LTOmode when plugin is active.
14463 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14466 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14467 --version output if supported.
14468 * configure: Regenerate.
14470 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14472 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14475 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14478 * c-convert.c (convert): When converting a complex expression
14479 other than COMPLEX_EXPR to a different complex type, ensure
14480 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14481 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14482 when converting COMPLEX_TYPE.
14484 2011-01-06 Ira Rosen <irar@il.ibm.com>
14486 PR tree-optimization/47139
14487 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14488 only the last reduction value is used outside the loop. Update
14491 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14493 * config/rtems.opt: New.
14494 * config.gcc (*-*-rtems*): Use rtems.opt.
14496 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14498 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14499 processors do not support 3DNow instructions.
14501 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14503 * config/spu/spu.c (spu_option_override): Set parameter
14504 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14506 2011-01-05 Jan Hubicka <jh@suse.cz>
14508 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14509 at the command line.
14511 2011-01-05 Martin Jambor <mjambor@suse.cz>
14514 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14515 deltas on streamed outgoing edges.
14516 (output_node_opt_summary): Output info for outgoing edges only when
14517 the node is in new parameter set.
14518 (output_cgraph_opt_summary): New parameter set, passed to the two
14519 aforementioned functions. Update its forward declaration and its
14522 2011-01-05 Tom Tromey <tromey@redhat.com>
14524 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14525 operator to c_finish_omp_atomic.
14526 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14527 (build_unary_op): Update.
14528 (build_modify_expr): Update.
14529 (build_asm_expr): Update.
14531 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14533 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14534 newly inserted insns.
14535 (pad_bb): Likewise.
14536 (spu_emit_branch_hint): Likewise.
14537 (insert_hbrp_for_ilb_runout): Likewise.
14538 (spu_machine_dependent_reorg): Call df_finish_pass after
14539 schedule_insns returns.
14541 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14543 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14545 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14547 PR tree-optimization/47005
14548 * tree-sra.c (struct access): Add 'non_addressable' bit.
14549 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14550 (decide_one_param_reduction): Return 0 if the parameter is passed by
14551 reference and one of the accesses in the group is non_addressable.
14553 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14555 PR tree-optimization/47056
14556 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14557 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14558 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14560 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14562 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14563 initializer. Skip view conversions from aggregate types.
14565 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14568 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14570 2011-01-04 Philipp Thomas <pth@suse.de>
14572 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14575 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14577 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14578 on empty epilogue sequences.
14580 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14582 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14583 non-static): New Driver options.
14585 2011-01-04 Jie Zhang <jie@codesourcery.com>
14588 * gcc.c (default_compilers[]): Set combinable field to 0
14589 for all assembly languages.
14591 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14593 * config/mips/loongson3a.md: New file.
14594 * config/mips/mips.md: Include loongson3a.md.
14595 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14598 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14600 PR middle-end/47017
14601 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14602 instead of convert_memory_address_addr_space on the base expression.
14604 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14606 * config/spu/spu.c (spu_option_override): Update error text
14607 for bad -march= / -mtune= values.
14609 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14611 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14612 if branch-hint optimization will be performed.
14614 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14616 PR tree-optimization/47148
14617 * ipa-split.c (split_function): Convert arguments to
14618 DECL_ARG_TYPE if possible.
14620 PR tree-optimization/47155
14621 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14622 when computing uns.
14624 PR rtl-optimization/47157
14625 * combine.c (try_combine): If undobuf.other_insn becomes
14626 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14627 and set *new_direct_jump_p too.
14629 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14631 PR tree-optimization/47021
14632 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14634 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14636 * gcc.c (process_command): Update copyright notice dates.
14637 * gcov.c (print_version): Likewise.
14638 * gcov-dump.c (print_version): Likewise.
14639 * mips-tfile.c (main): Likewise.
14640 * mips-tdump.c (main): Likewise.
14642 2011-01-03 Martin Jambor <mjambor@suse.cz>
14644 PR tree-optimization/46801
14645 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14646 aggregate fields start at byte boundary instead of the bit-field flag.
14648 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14651 * gcc.c (main): Revert revision 168407.
14653 2011-01-03 Martin Jambor <mjambor@suse.cz>
14655 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14657 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14659 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14660 vector optab to expand vector/scalar shift, update gimple to vector.
14662 2011-01-03 Martin Jambor <mjambor@suse.cz>
14664 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14667 2011-01-03 Martin Jambor <mjambor@suse.cz>
14669 PR tree-optimization/46984
14670 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14672 (cgraph_create_indirect_edge): Fixed line length.
14673 (cgraph_indirect_call_info): Declare.
14674 (cgraph_make_edge_direct) Update declaration.
14675 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14676 (cgraph_create_indirect_edge): Use it.
14677 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14679 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14680 the new thunk_delta representation.
14681 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14683 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14684 (ipa_read_indirect_edge_info): Likewise.
14685 * lto-cgraph.c (output_edge_opt_summary): New function.
14686 (output_node_opt_summary): Call it on all outgoing edges.
14687 (input_edge_opt_summary): New function.
14688 (input_node_opt_summary): Call it on all outgoing edges.
14690 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14693 * gcc.c (main): Don't check have_o when settting combine_inputs.
14695 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14697 * regrename.c: Add general comment describing the pass.
14698 (struct du_head): Remove 'length' field.
14699 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14700 (regrename_optimize): Do not sort chains. Rework comments, add others.
14701 Force renaming to the preferred class (if any) in the first pass and do
14702 not consider registers that belong to it in the second pass.
14703 (create_new_chain): Do not set 'length' field.
14704 (scan_rtx_reg): Likewise.
14706 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14708 PR tree-optimization/47140
14709 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14710 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14711 to bit_value_binop.
14713 PR rtl-optimization/47028
14714 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14715 parm_birth_insn instead of at the beginning of first bb.
14717 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14719 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14720 Remove the word "see" before "@pxref".
14721 * doc/rtl.texi: Remove the word "see" before "@pxref".
14723 2011-01-01 Jan Hubicka <jh@suse.cz>
14725 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14728 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14731 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14734 Copyright (C) 2011 Free Software Foundation, Inc.
14736 Copying and distribution of this file, with or without modification,
14737 are permitted in any medium without royalty provided the copyright
14738 notice and this notice are preserved.