1 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3 * opts-common.c (opt_enum_arg_to_value): New.
4 * opts.h (opt_enum_arg_to_value): Declare.
5 * config/i386/i386.opt (fpmath): Remove.
6 (mfpmath=): Use Enum, Init and Save.
7 (fpmath_unit): New Enum and EnumValue entries.
8 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
9 name for function fpmath state.
10 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
11 * config/i386/i386.c: Include diagnostic.h.
12 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13 (ix86_target_string): Take enum fpmath_unit value instead of
15 (ix86_debug_options): Update call to ix86_target_string.
16 (ix86_option_override_internal): Don't process fpmath strings
18 (x86_function_specific_save, ix86_function_specific_restore):
19 Don't handle fpmath state specially.
20 (ix86_function_specific_print): Pass fpmath state to
21 ix86_target_string instead of printing in this function.
22 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
23 Handle enum attributes.
24 (IX86_ATTR_ENUM, ix86_opt_enum): New.
25 (ix86_valid_target_attribute_tree): Update option_strings
26 handling. Handle fpmath as enum option.
27 (ix86_can_inline_p): Update field names for function fpmath state.
28 (ix86_expand_builtin): Update call to ix86_target_string.
29 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
30 (ix86_fpmath): Remove.
31 * config/i386/t-i386 (i386.o): Update dependencies.
33 2011-05-16 Joseph Myers <joseph@codesourcery.com>
36 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
37 from decoded_options[0], not from itself.
39 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
41 * config/i386/constraints.md (z): New constraint.
42 * config/i386/i386.c (c): New mode attribute.
43 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
44 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
45 constraint for operand 0.
46 (*call_vzeroupper): Ditto.
47 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
48 (*call_rex64_ms_sysv_vzeroupper): Ditto.
49 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
50 Use "lzm" constraint for operand 0.
51 (*call_pop_vzeroupper): Ditto.
52 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
53 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
54 constraint for operand 0.
55 (*sibcall_vzeroupper): Ditto.
56 (*sibcall_rex64_ms_sysv): Ditto.
57 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
58 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
59 *sibcall_pop_1. Use "Uz" constraint for operand 0.
60 (*sibcall_pop_vzeroupper): Ditto.
61 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
62 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
63 mode iterator. Use "<c>zm" constraint for operand 1.
64 (*call_value_vzeroupper): Ditto.
65 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
67 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
68 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
69 *call_value_pop_1. Use "lzm" constraint for operand 1.
70 (*call_value_pop_vzeroupper): Ditto.
71 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
72 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
73 mode iterator. Use "Uz" constraint for operand 1.
74 (*sibcall_value_vzeroupper): Ditto.
75 (*sibcall_value_rex64_ms_sysv): Ditto.
76 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
77 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
78 constraint for operand 1.
79 (*sibcall_value_pop_vzeroupper): Ditto.
80 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
81 and "z" constraint for operand 2.
82 (*tls_global_dynamic_32_gnu): Ditto.
83 (*tls_local_dynamic_base_32_gnu): Ditto.
84 (*tls_local_dynamic_base_64): Ditto.
85 (*tls_local_dynamic_32_once): Ditto.
86 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
88 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
90 2011-05-16 Richard Guenther <rguenther@suse.de>
92 * gimple.c (gimple_types_compatible_p_1): Use names of the
93 type itself, not its main variant.
94 (iterative_hash_gimple_type): Likewise.
96 2011-05-16 Richard Guenther <rguenther@suse.de>
98 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
99 always visit pointer target and function result and argument types.
101 2011-05-16 Jason Merrill <jason@redhat.com>
104 * tree-inline.c (copy_statement_list): Put back recursion.
106 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
110 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
111 * config/avr/avr.md ("*ior<mode>qi.byte0",
112 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
114 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
117 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
118 register is needed for a function argument.
120 2011-05-16 Richard Guenther <rguenther@suse.de>
122 * gimple.c (struct type_hash_pair): New type.
123 (type_hash_pair_compare): New function.
124 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
126 2011-05-16 Revital Eres <revital.eres@linaro.org>
128 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
130 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
132 * config/i386/i386.md (floating point move splitters): Fix
133 usage of standard_80387_constant_p.
134 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
136 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
138 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
140 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
142 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
143 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
144 (tree_ssa_lim_finalize): Likewise.
146 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
148 * config/i386/constraint.md (Yd, Yx): New register constraints.
149 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
150 Yd conditional register constraint.
151 (*movtf_internal): Use standard_sse_constant_opcode.
152 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
153 Yx conditional register constraint.
154 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
155 Yd conditional register constraint. Use standard_sse_constant_p to
156 check for valid SSE constants and call standard_sse_constant_opcode to
158 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
159 constants and call standard_sse_constant_opcode to output SSE insn.
160 * config/i386/i386.c (ix86_option_ovverride_internal): Set
161 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
162 optimize_size is set.
163 (standard_sse_constant_opcode): Output conditional AVX insn templates.
165 2011-05-14 Tobias Burnus <burnus@net-b.de>
167 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
169 2011-05-13 Martin Jambor <mjambor@suse.cz>
171 * ipa-prop.c (ipa_cst_from_jfunc): New function.
172 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
173 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
174 (evaluate_conditions_for_ipcp_clone): Removed.
175 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
176 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
177 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
179 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
181 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
182 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
183 lieu of MAY_HAVE_DEBUG_STMTS.
184 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
185 debug statements if !MAY_HAVE_DEBUG_STMTS.
187 2011-05-13 Martin Thuresson <martint@google.com>
189 PR gcov-profile/47793
190 * libgcov.c (gcov_exit): Support relative profile paths.
191 * doc/invoke.texi (-fprofile-dir): Update for above change.
193 2011-05-13 Richard Guenther <rguenther@suse.de>
195 * gimple.c (gimple_canonical_types_compatible_p): Do not use
196 type-pair caching, do not compare hashes.
198 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
201 * tree-cfg.c (edge_to_cases_cleanup): Return true.
202 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
204 2011-05-13 Kai Tietz <ktietz@redhat.com>
206 * gimplify.c (gimplify_expr): Make sure operand is boolified.
207 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
208 compatible type for TRUTH_NOT_EXPR.
210 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
212 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
213 (ix86_hard_regno_mode_ok): Change return value to bool. Use
214 can_create_pseudo_p ().
216 2011-05-13 Richard Guenther <rguenther@suse.de>
219 * gimple.c (iterative_hash_gimple_type): Revert change in
220 pointer target and function result and argument hashing.
222 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
224 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
225 (*movxf_internal_nointeger): Ditto.
226 (*movdf_internal_rex64): Ditto.
227 (*movdf_internal): Ditto.
228 (*movdf_internal_nointeger): Ditto.
229 (*movsf_internal): Ditto.
230 (sincos splitters): Use can_create_pseudo ().
232 2011-05-13 Joseph Myers <joseph@codesourcery.com>
234 * config/i386/i386-opts.h: New.
235 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
236 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
237 ix86_section_threshold): Remove.
238 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
239 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
241 (ix86_option_override_internal): Don't decode strings for options
242 other than -march=, -mtune= and -mfpmath=. Don't allow for
243 __attribute__ uses in remaining diagnostics for options with
244 string arguments. Don't check for integer arguments being negative.
245 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
246 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
247 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
248 ix86_branch_cost, ix86_section_threshold): Remove.
249 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
251 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
253 (masm=): Use Enum and Init.
254 (asm_dialect): New Enum and EnumValue entries.
255 (mbranch-cost=): Use UInteger.
256 (mlarge-data-threshold=): Use UInteger and Init.
257 (mcmodel=): Use Enum and Init.
258 (cmodel): New Enum and EnumValue entries.
259 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
260 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
261 mregparm=): Use UInteger.
262 (mstringop-strategy=): Use Enum and Init.
263 (stringop_alg): New Enum and EnumValue entries.
264 (mtls-dialect=): Use Enum and Init.
265 (tls_dialect): New Enum and EnumValue entries.
266 (mabi=): Use Enum and Init.
267 (calling_abi): New Enum and EnumValue entries.
268 (mveclibabi=): Use Enum and Init.
269 (ix86_veclibabi): New Enum and EnumValue entries.
271 2011-05-13 Nick Clifton <nickc@redhat.com>
273 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
274 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
276 2011-05-13 Kai Tietz <ktietz@redhat.com>
279 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
280 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
281 (gimple_boolify): Check for cast for boolean_type_node instead for
284 2011-05-13 Richard Guenther <rguenther@suse.de>
286 PR tree-optimization/48172
287 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
288 multiplying by number of iterations for equal step.
289 (vect_create_cond_for_alias_checks): Likewise.
291 2011-05-13 Andreas Schwab <schwab@redhat.com>
293 * configure.ac: Use AS_HELP_STRING throughout.
294 * configure: Regenerate.
296 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
298 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
299 (ix86_emit_restore_regs_using_mov): Likewise.
300 (ix86_emit_restore_sse_regs_using_mov): Likewise.
302 2011-05-12 Anatoly Sokolov <aesok@post.ru>
304 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
305 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
306 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
307 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
308 RTX_OK_FOR_OLO10_P): ...here.
309 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
312 2011-05-12 Kai Tietz <ktietz@redhat.com>
314 * gimplify.c (gimple_boolify): Re-boolify expression
315 arguments even if expression type is of kind BOOLEAN_TYPE.
316 (gimplify_boolean_expr): Removed.
317 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
318 and XOR. Additional take care that we keep expression's type.
319 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
320 of TRUTH_AND|OR|XOR_EXPR.
322 2011-05-12 Jakub Jelinek <jakub@redhat.com>
324 PR tree-optimization/48975
325 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
326 on all bbs here and free and clear ifc_bbs at the end.
328 2011-05-12 Richard Guenther <rguenther@suse.de>
330 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
331 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
332 until after simple checks.
333 (gimple_types_compatible_p): Likewise.
334 (iterative_hash_gimple_type): Always hash pointer targets
335 and function return and argument types.
336 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
337 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
338 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
339 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
340 completely in the simple compare section.
341 (gimple_register_canonical_type): Query the cache again after
344 2011-05-12 Richard Guenther <rguenther@suse.de>
346 PR tree-optimization/48172
347 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
348 the number of iterations from the segment size calculation.
349 (vect_create_cond_for_alias_checks): Adjust.
351 2011-05-12 Jakub Jelinek <jakub@redhat.com>
354 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
355 if validate_subreg fails.
357 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
359 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
360 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
363 2011-05-12 DJ Delorie <dj@redhat.com>
365 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
366 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
367 created builtin into rx_builtins array.
368 (rx_builtin_decl): New function.
369 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
371 2011-05-12 DJ Delorie <dj@redhat.com>
372 Nick Clifton <nickc@redhat.com>
374 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
375 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
376 (rx_is_legitimate_address): Add pre-decrement and post-increment
377 addressing in HImode and QImode. Fix test for out of range
379 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
380 (rx_align_for_label): Test label before extracting its usage count.
381 (rx_adjust_insn_lengths): Fix selection of insn codes.
382 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
384 2011-05-11 Jason Merrill <jason@redhat.com>
386 * tree.c (type_hash_canon): Use struct tree_type_non_common.
388 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
390 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
391 reindent the subsequent block.
393 2011-05-11 Satoru Takabayashi <satorux@google.com>
394 Paul Pluzhnikov <ppluzhnikov@google.com>
396 * doc/install.texi (Configuration): Document --with-linker-hash-style.
397 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
398 * config.in: Add LINKER_HASH_STYLE.
399 * configure.ac: Add --with-linker-hash-style.
400 * configure: Regenerate.
402 2011-05-11 Richard Guenther <rguenther@suse.de>
405 * gimple.c (iterative_hash_canonical_type): Fix typo.
407 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
409 * config/i386/i386.c (legitimize_tls_address)
410 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
411 expanders directly for TARGET_GNU2_TLS. Determine pic and
412 __tls_get_addr symbol reference here. Update call to
413 gen_tls_global_dynamic_{32,64} for added arguments.
414 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
415 expanders directly for TARGET_GNU2_TLS. Determine
416 __tls_get_addr symbol reference here. Update call to
417 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
418 unique UNSPEC REG_EQUIV to libcall block.
419 (ix86_tls_get_addr): Declare static.
420 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
421 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
422 Do not determine pic and __tls_get_addr symbol reference here. Do not
423 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
424 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
425 (tls_global_dynamic_64): Add operand 2. Do not determine
426 __tls_get_addr symbol reference here. Do not call
427 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
428 (tls_local_dynamic_base64): Ditto for operand 1.
430 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
432 * function.c (expand_function_start): Initialize stack_check_probe_note
433 only if the generic stack checking mechanism is used.
435 2011-05-11 Richard Guenther <rguenther@suse.de>
437 PR tree-optimization/15256
438 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
439 (A & B) | C, combine (A op CST1) op CST2.
440 (tree_ssa_forward_propagate_single_use_vars): Only bother to
441 visit assigns that have uses.
443 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
445 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
446 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
447 (unpack_ts_type_common_value_fields): ...this. Update comment.
448 (unpack_value_fields): Adjust for renaming.
449 (lto_input_ts_type_tree_pointers): Split into...
450 (lto_input_ts_type_common_tree_pointer): ...this and...
451 (lto_input_ts_type_non_common_tree_pointers): ...this.
452 (lto_input_tree_pointers): Adjust for above split.
453 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
454 (pack_ts_type_common_value_fields): ...this. Update comment.
455 (lto_output_ts_type_tree_pointers): Split into...
456 (lto_output_ts_type_common_tree_pointers): ...this and...
457 (lto_output_ts_type_non_common_tree_pointers): ...this.
458 (lto_output_tree_pointers): Adjust for above split.
459 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
460 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
461 * stor-layout.c (vector_type_mode): Adjust location of mode field.
462 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
464 (struct tree_type): Split into...
465 (struct tree_type_common: ...this and...
466 (struct tree_type_with_lang_specific): ...this and...
467 (struct tree_type_non_common): ...this. Adjust accessor macros
469 (TYPE_VALUES_RAW): Define.
470 (union tree_node): Update for above changes.
471 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
473 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
474 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
475 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
476 * treestructu.def (TS_TYPE): Remove.
477 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
480 2011-05-11 Jakub Jelinek <jakub@redhat.com>
483 * tree-ssa.c (reset_debug_uses): New function.
484 * tree-flow.h (reset_debug_uses): New prototype.
485 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
486 * tree-loop-distribution.c (generate_loops_for_partition): Call
487 reset_debug_uses on the stmts that will be removed. Keep around
488 all debug stmts, don't count them as bits in partition bitmap.
489 (generate_builtin): Don't count debug stmts or labels as bits in
492 2011-05-11 Richard Guenther <rguenther@suse.de>
494 * gimple.c (gimple_type_hash_1): Merge with ...
495 (gimple_type_hash): ... this.
496 (gtc_visit): Remove mode parameter and simplify accordingly.
497 (gimple_types_compatible_p_1): Likewise.
498 (gimple_types_compatible_p): Likewise.
499 (iterative_hash_gimple_type): Likewise.
501 (gimple_type_eq): Adjust.
503 2011-05-11 Revital Eres <revital.eres@linaro.org>
505 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
506 enters the branch create an anti edge in the opposite direction
507 to prevent the creation of reg-moves.
508 * modulo-sched.c: Adjust comment to reflect the fact we are
509 scheduling closing branch.
510 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
511 (stage_count): New field in struct partial_schedule.
512 (calculate_stage_count): New function.
513 (normalize_sched_times): Rename to reset_sched_times and handle
514 incrementing the sched time of the nodes by a constant value
516 (duplicate_insns_of_cycles): Skip closing branch.
517 (sms_schedule_by_order): Schedule closing branch.
518 (ps_insn_find_column): Handle closing branch.
519 (sms_schedule): Call reset_sched_times and adjust the code to
520 support scheduling of the closing branch.
521 (ps_insert_empty_row): Update calls to normalize_sched_times
522 and rotate_partial_schedule functions.
524 2011-05-11 Richard Guenther <rguenther@suse.de>
527 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
529 2011-05-11 Joseph Myers <joseph@codesourcery.com>
531 * opts.c (finish_options): Move warning settings from process_options.
532 * toplev.c (process_options): Move warning settings to finish_options.
534 2011-05-11 Richard Guenther <rguenther@suse.de>
536 PR tree-optimization/18041
537 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
538 (simplify_bitwise_binary): ... this. Handle operand conversions
539 by applying them to the result instead.
540 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
542 2011-05-11 Richard Guenther <rguenther@suse.de>
544 * gimple.c (gimple_canonical_types_compatible_p): Split out
545 from gimple_types_compatible_p and friends. Do not recurse
547 (gimple_canonical_type_eq): Use it.
548 (iterative_hash_canonical_type): Split out from
549 iterative_hash_gimple_type and friends. Do not recurse
551 (gimple_canonical_type_hash): Use it, allocate the hash here.
553 2011-05-11 Revital Eres <revital.eres@linaro.org>
555 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
558 2011-05-11 Revital Eres <revital.eres@linaro.org>
560 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
561 instead of PREV_INSN.
563 2011-05-11 Revital Eres <revital.eres@linaro.org>
565 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
566 * loop-doloop.c (doloop_condition_get): Likewise.
567 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
569 * config/arm/arm.md (*addsi3_compare0): Remove "*".
571 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
573 * tree.def (CASE_LABEL_EXPR): Add an operand.
574 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
576 2011-05-10 Joseph Myers <joseph@codesourcery.com>
578 * c-decl.c (c_override_global_bindings_to_false): Remove.
579 (global_bindings_p): Don't check
580 c_override_global_bindings_to_false.
581 * c-tree.h (c_override_global_bindings_to_false): Remove.
582 * c-typeck.c (composite_type): Don't set
583 c_override_global_bindings_to_false.
585 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
587 PR target/48857, 48495
588 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
590 (VSX_MOVE_MODE): Ditto.
591 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
592 VSX vector types. Add V2DImode.
593 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
594 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
595 (MODES_TIEABLE_P): Ditto.
597 * config/rs6000/rs6000.c (rs6000_emit_move): Use
598 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
600 (init_cumulative_args): Ditto.
601 (rs6000_function_arg_boundary): Ditto.
602 (rs6000_function_arg_advance_1): Ditto.
603 (rs6000_function_arg): Ditto.
604 (rs6000_function_ok_for_sibcall): Ditto.
605 (emit_frame_save): Ditto.
606 (rs6000_function_value): Ditto.
607 (rs6000_libcall_value): Ditto.
609 2011-05-10 Joseph Myers <joseph@codesourcery.com>
611 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
612 i386/darwin-lib.h to $libgcc_tm_file.
613 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
615 2011-05-10 Joseph Myers <joseph@codesourcery.com>
617 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
619 2011-05-10 Joseph Myers <joseph@codesourcery.com>
621 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
622 * config/rs6000/rs6000-tables.opt: New file (generated).
623 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
624 rs6000/rs6000-tables.opt to extra_options.
625 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
626 * config/rs6000/rs6000.c (rs6000_select): Remove.
627 (processor_target_table): Move contents to rs6000-cpus.def.
628 (darwin_rs6000_override_options): Check
629 global_options_set.x_rs6000_cpu_index instead of
630 rs6000_select[1].string.
631 (rs6000_option_override_internal): Likewise.
632 (rs6000_handle_option): Don't assert that global structures are in
633 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
634 (rs6000_default_cpu): New variable.
635 (rs6000_file_start): Set it instead of local default_cpu. Check
636 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
637 global_options_set.x_rs6000_tune_index instead of rs6000_select.
638 (rs6000_darwin_file_start): Check rs6000_default_cpu and
639 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
640 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
641 rs6000_select): Remove.
642 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
644 (mcpu=, mtune=): Use Var, Init, Enum and Save.
645 * config/rs6000/t-rs6000
646 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
647 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
648 global_options_set.x_rs6000_cpu_index instead of
649 rs6000_select[1].string.
650 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
651 global_options_set.x_rs6000_cpu_index instead of
652 rs6000_select[1].string.
654 2011-05-10 Joseph Myers <joseph@codesourcery.com>
656 * config.gcc (libgcc_tm_file): Define instead of including files
657 from ../../libgcc/config/ in tm_file.
658 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
659 * configure: Regenerate.
660 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
661 libgcc_tm.h, cs-libgcc_tm.h): New.
662 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
663 (clean): Remove libgcc_tm.h.
664 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
665 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
666 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
668 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
671 * config/avr/avr.c (avr_ret_register): Return unsigned int
673 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
674 it to avr_libcall_value.
675 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
677 (avr_expand_binop_builtin): Ditto.
678 (avr_expand_unop_builtin): Ditto.
680 2011-05-10 DJ Delorie <dj@redhat.com>
682 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
683 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
684 * config/rx/rx.c (rx_align_for_label): Add label and
685 uses_threshold parameters. Do not align when the label is not
687 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
689 2011-05-10 Richard Guenther <rguenther@suse.de>
691 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
692 a series of conversions and apply foldings similar to what
694 (tree_ssa_forward_propagate_single_use_vars): Call it.
696 2011-05-10 Jakub Jelinek <jakub@redhat.com>
698 PR tree-optimization/48611
699 PR tree-optimization/48794
700 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
701 referenced from RESX or EH_DISPATCH arguments.
704 * dfp.c (decimal_to_decnumber): Handle conversion from
707 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
709 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
710 for !flag_prefer_avx128.
711 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
713 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
715 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
716 (fold_ternary_loc): Use expr_location_or.
718 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
721 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
722 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
723 Pmode and mem_mode is not VOIDmode.
725 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
727 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
728 TYPE_QUAL_RESTRICT): Convert to enum.
730 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
732 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
733 (const_pow2_1_to_8_operand): Ditto.
734 (const_pow2_1_to_128_operand): Ditto.
735 (const_pow2_1_to_32768_operand): Ditto.
736 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
737 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
738 in insn constraint to check integer value of operand 3.
739 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
741 (PINSR_MODE): New mode iterator.
742 (sse2p4_1): New mode attribute.
743 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
744 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
745 iterator. Use const_int_operand instead of
746 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
747 exact_log2 in insn constraint to check integer value of operand 3.
749 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
751 * config/i386/sse.md (blendbits): Remove mode attribute.
752 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
753 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
754 Check integer value of operand 3 in insn constraint.
756 2011-05-09 Richard Guenther <rguenther@suse.de>
758 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
760 (lto_symtab_merge): Likewise. Do not register types here.
761 (lto_symtab_merge_decls_2): Likewise.
762 (lto_symtab_merge_decls_1): Likewise.
763 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
764 * gimple.c (enum gtc_mode): Declare.
765 (gimple_types_compatible_p): Make static.
767 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
769 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
770 temporary register to match Pmode.
772 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
774 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
775 and *vec_concatv4si_1_avx.
777 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
779 PR rtl-optimization/48927
780 * ira-conflicts.c (commutative_constraint_p): Use
781 recog_data.alternative_enabled_p to disable alternatives where
782 "enabled" attribute is false.
783 (get_dup_num): Ditto.
784 * ira-lives.c (single_reg_class): Ditto.
785 (ira_implicitly_set_insn_hard_regs): Ditto.
787 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
789 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
790 (dataflow_set_preserve_mem_locs): Likewise.
792 2011-05-09 Philipp Thomas <pth@suse.de>
794 * config/mep/mep.c (mep_validate_vliw): Syntax description
795 should not be translated.
797 2011-05-09 Joseph Myers <joseph@codesourcery.com>
799 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
800 * config/mips/mips-tables.opt: New file (generated).
801 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
802 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
803 MIPS_ARCH_OPTION_NATIVE): Define.
804 * config/mips/mips.c (mips_cpu_info_table): Move contents to
806 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
807 mips_parse_cpu): Remove.
808 (mips_cpu_info_from_opt, mips_default_arch): New.
809 (mips_handle_option): Don't assert that global structures are in
810 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
811 (mips_option_override): Use new variables and functions to set
812 state of these options. Use strcmp to check for individual CPU names.
813 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
815 * config/mips/mips.opt (march=): Use ToLower and Enum.
816 (mips): Use ToLower, Enum and Var.
817 (mtune=): Use ToLower and Enum.
818 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
820 2011-05-08 Jan Hubicka <jh@suse.cz>
822 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
823 Arrange type pairs to be UID ordered.
824 (gimple_lookup_type_leader): Make inline.
826 2011-05-09 Nick Clifton <nickc@redhat.com>
829 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
833 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
836 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
838 * combine.c (simplify_comparison): Abstract out parts into...
839 (simplify_compare_const): ... new function.
840 (try_combine): Generalize parallel arithmetic/compare combining
841 to call simplify_compare_const() and CANONICALIZE_COMPARE().
843 2011-05-08 Jan Hubicka <jh@suse.cz>
845 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
846 (cgraph_create_virtual_clone): Call hooks once virtual clone
848 * cgraph.h (cgraph_clone_node): Update prototype.
849 * ipa-cp.c (ipcp_estimate_growth): Use
850 estimate_ipcp_clone_size_and_time.
851 * ipa-inline-transform.c (clone_inlined_nodes): Update.
852 * lto-cgraph.c (input_node): Update.
853 * ipa-inline.c (recursive_inlining): Update.
854 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
855 (evaluate_conditions_for_known_args): Break out from ...
856 (evaluate_conditions_for_edge): ... here.
857 (evaluate_conditions_for_ipcp_clone): New function.
858 (inline_node_duplication_hook): Update clone summary based
860 (estimate_callee_size_and_time): Rename to ...
861 (estimate_node_size_and_time): take NODE instead of EDGE;
862 take POSSIBLE_TRUTHS as argument.
863 (estimate_callee_size_and_time): Update.
864 (estimate_ipcp_clone_size_and_time): New function.
865 (do_estimate_edge_time): Update.
867 2011-05-08 Richard Guenther <rguenther@suse.de>
871 * expmed.c (expand_shift_1): Compute adjusted constant shift
874 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
876 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
878 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
880 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
882 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
884 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
886 2011-05-07 Jan Hubicka <jh@suse.cz>
888 * ipa-inline-transform.c (inline_call): Account when program size
890 * ipa-inline.c (relative_time_benefit): New function.
891 (edge_badness): Reorganize to be power 2 based; fix thinko when
892 computing badness for negative growth; update comments to match
893 reality; better dumps.
895 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
897 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
898 type to bool and adjust comment.
899 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
900 (fold_mathfn_compare): Remove calls to global_bindings_p.
901 (fold_inf_compare): Likewise.
902 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
903 * c-tree.h (global_bindings_p): Adjust prototype.
904 * c-decl.c (global_bindings_p): Return bool and simplify.
906 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
908 PR tree-optimization/48837
909 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
910 when accumulator transformation is performed.
912 2011-05-06 Jan Hubicka <jh@suse.cz>
914 * i386.h (ix86_tune_indices): Add
915 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
916 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
917 * i386.c (initial_ix86_tune_features): Add
918 X86_SOFTARE_PREFETCHING_BENEFICIAL.
919 (software_prefetching_beneficial_p): Remove predicate.
920 (ix86_option_override_internal): Use new macro.
922 2011-05-06 Jan Hubicka <jh@suse.cz>
924 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
926 2011-05-06 Jan Hubicka <jh@suse.cz>
928 * cgraph.c (cgraph_add_thunk): Create real function node instead
929 of alias node; finalize it and mark needed/reachale; arrange visibility
930 to be right and add it into the corresponding same comdat group list.
931 (dump_cgraph_node): Dump thunks.
932 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
933 cgraph_function_with_gimple_body_p,
934 cgraph_first_function_with_gimple_body,
935 cgraph_next_function_with_gimple_body): New functions.
936 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
938 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
939 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
940 * cgraphunit.c (cgraph_finalize_function): Only look into possible
941 devirtualization when optimizing.
942 (verify_cgraph_node): Verify thunks.
943 (cgraph_analyze_function): Analyze thunks.
944 (cgraph_mark_functions_to_output): Output thunks only in combination
945 with function they are assigned to.
946 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
947 alias into normal node.
948 (assemble_thunks): New functoin.
949 (cgraph_expand_function): Use it.
950 * lto-cgraph.c (lto_output_node): Stream thunks.
951 (input_overwrite_node): Stream in thunks.
952 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
953 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
954 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
955 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
956 (inline_analyze_function): Do not care about thunk jump functions.
957 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
958 * ipa-prop.c (ipa_prop_write_jump_functions): Use
959 cgraph_function_with_gimple_body_p.
960 * passes.c (do_per_function_toporder): Use
961 cgraph_function_with_gimple_body_p.
962 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
963 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
964 (function_called_by_processed_nodes_p): Likewise.
966 2011-05-06 Joseph Myers <joseph@codesourcery.com>
968 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
969 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
971 (mabi=): Replace with separate entries for mabi=altivec,
972 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
973 mabi=ieeelongdouble and mabi=ibmlongdouble.
974 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
975 check for -mabi=spe without SPE ABI support here.
976 (rs6000_handle_option): Replace OPT_mabi_ handling with
977 OPT_mabi_altivec and OPT_mabi_spe handling.
979 2011-05-06 Cary Coutant <ccoutant@google.com>
981 * dwarf2out.c (contains_subprogram_definition): New function.
982 (should_move_die_to_comdat): Call it.
984 2011-05-06 Jeff Law <law@redhat.com>
986 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
987 remove_ctrl_stmt_and_useless_edges.
988 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
989 (fixup_template_block, thread_single_edge): Likewise.
990 (mark_threaded_blocks): Use THREAD_TARGET.
992 2011-05-06 Alan Modra <amodra@gmail.com>
995 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
996 const0_rtx as the arg to the dummy __tls_get_addr libcall.
998 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1000 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1001 constraint modifier to "r".
1003 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1005 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1006 fall through for OPT_mcmodel_.
1008 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1010 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1012 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1014 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1017 * config/arm/arm.opt (marm): Document it.
1018 (mthumb): Reject negative variant.
1020 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1023 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1024 Fix typo in "ccvt" variable name.
1026 2011-05-06 Tristan Gingold <gingold@adacore.com>
1029 * config/vms/vms-ar.c (main): Remove cwd variable.
1031 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1034 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1036 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1038 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1039 * gimplify.c (gimplify_switch_expr): Likewise.
1040 * omp-low.c (expand_omp_sections): Likewise.
1041 * tree-eh.c (lower_try_finally_switch): Likewise.
1042 (lower_eh_dispatch): Likewise.
1043 * tree.h (build_case_label): Declare.
1044 * tree.c (build_case_label): Define.
1046 2011-05-05 Jason Merrill <jason@redhat.com>
1049 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1050 (copy_statement_list): Don't recurse.
1051 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1054 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1056 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1057 through from -mfpu= handling.
1058 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1060 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1062 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1065 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1067 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1069 (hppa[12]*-*-hpux11*): Ditto.
1070 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1071 * config/ia64/hpux-unix2003.h: New.
1072 * config/pa/pa-hpux1131.opt: New.
1073 * config/pa/pa-hpux1131.h: New.
1074 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1075 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1076 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1078 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1081 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1082 instead of mode as 3rd argument to recursive call.
1083 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1084 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1086 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1087 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1088 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1089 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1091 2011-05-05 Julian Brown <julian@codesourcery.com>
1093 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1094 parenthesis in D-register case.
1096 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1098 * opt-functions.awk (var_type_struct): Handle Enum options.
1099 * optc-gen.awk: Don't check range of variables of character type.
1100 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1101 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1102 rs6000_sdata_name, rs6000_explicit_options): Remove.
1103 (rs6000_option_override_internal): Check for -malign-power here.
1104 Use global_options_set instead of rs6000_explicit_options.
1105 (rs6000_parse_fpu_option): Remove.
1106 (rs6000_handle_option): Access variables via opts and opts_set
1107 pointers. Use error_at and warning_at. Add fall-through
1108 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1109 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1110 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1111 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1112 here. Don't use rs6000_parse_fpu_option.
1113 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1114 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1115 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1117 (mspe): Use Var and Save.
1118 (mtraceback=): Use Enum and Var.
1119 (rs6000_traceback_type): New Enum and EnumValue entries.
1120 (mfloat-gprs=): Use Enum, Var and Save.
1121 (rs6000_float_gprs): New Enum and EnumValue entries.
1122 (mlong-double-): use Var and Save.
1123 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1124 (malign-): Use Enum and Var.
1125 (rs6000_alignment_flags): New Enum and EnumValue entries.
1127 (fpu_type_t): New Enum and EnumValue entries.
1128 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1129 global_options_set instead of rs6000_explicit_options.
1130 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1131 global_options_set instead of rs6000_explicit_options.
1132 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1133 global_options_set instead of rs6000_explicit_options.
1134 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1135 global_options_set instead of rs6000_explicit_options.
1136 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1137 global_options_set instead of rs6000_explicit_options.
1138 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1139 global_options_set instead of rs6000_explicit_options.
1140 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1142 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1143 global_options_set instead of rs6000_explicit_options.
1144 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1145 (rs6000_cmodel): New Enum and EnumValue entries.
1146 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1147 global_options_set instead of rs6000_explicit_options.
1148 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1149 (mtls-size=): Use Enum and Var.
1150 (rs6000_tls_size): New Enum and EnumValue entries.
1152 2011-05-05 Michael Matz <matz@suse.de>
1154 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1155 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1156 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1157 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1158 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1159 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1160 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1161 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1162 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1163 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1164 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1165 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1166 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1167 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1168 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1169 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1171 2011-05-05 Richard Guenther <rguenther@suse.de>
1173 * expmed.c (expand_variable_shift): Rename to ...
1174 (expand_shift_1): ... this. Take an expanded shift amount.
1175 For rotates recurse directly not building trees for the shift amount.
1176 (expand_variable_shift): Wrap around expand_shift_1.
1177 (expand_shift): Adjust.
1179 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1181 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1183 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1185 * tree.h (get_pending_sizes): Remove prototype.
1186 (put_pending_size): Likewise.
1187 (put_pending_sizes): Likewise.
1188 * stor-layout.c (pending_sizes): Delete.
1189 (get_pending_sizes): Likewise.
1190 (put_pending_size): Likewise.
1191 (put_pending_sizes): Likewise.
1192 (variable_size): Do not call put_pending_size and tidy up.
1193 * function.h (struct function): Remove dont_save_pending_sizes_p.
1194 * lto-streamer-in.c (input_function): Do not stream it.
1195 * lto-streamer-out.c (output_function): Likewise.
1196 * tree-inline.c (initialize_cfun): Do not copy it.
1197 * c-decl.c (store_parm_decls): Do not set it.
1198 * omp-low.c (create_task_copyfn): Likewise.
1199 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1201 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1205 (*movdf_internal): Ditto.
1206 (*movdf_internal_nointeger): Ditto.
1207 (*movsf_internal): Ditto.
1209 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1211 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1212 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1213 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1214 (c_variable_size): Remove.
1215 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1216 call put_pending_sizes.
1217 (get_parm_info): Add parameter expr. Use it to set
1218 arg_info->pending_sizes.
1219 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1221 * c-parser.c (c_parser_parms_declarator): Update call to
1222 c_parser_parms_list_declarator.
1223 (c_parser_parms_list_declarator): Take parameter expr. Update
1224 call to push_parm_decl. Update recursive call. Don't call
1225 get_pending_sizes. Update calls to get_parm_info.
1226 (c_parser_objc_method_definition): Update calls to
1227 c_parser_objc_method_decl and objc_start_method_definition.
1228 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1229 (c_parser_objc_method_decl): Add parameter expr. Update call to
1231 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1232 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1233 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1235 2011-05-05 Michael Hope <michael.hope@linaro.org>
1238 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1241 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1243 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1244 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1245 (spu_output_mi_thunk): New function.
1247 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1249 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1250 targetm.asm_out.print_operand.
1251 * config/sol2.c: Include target.h.
1253 2011-05-04 Jan Hubicka <jh@suse.cz>
1255 * ipa-inline.c (reset_edge_caches): New function.
1256 (update_caller_keys): Add check_inlinablity_for; do not
1257 reset edge caches; remove now unnecesary loop.
1258 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1259 (update_all_callee_keys): Likewise.
1260 (inline_small_functions): Sanity check cache; update code
1263 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1265 PR rtl-optimization/47612
1266 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1267 as the last insn of the sequence to be moved.
1269 2011-05-04 Tobias Burnus <burnus@net-b.de>
1272 * doc/invoke.texi (Ofast): Document that it
1273 enables Fortran's -fno-protect-parens.
1275 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1277 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1279 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1281 * stor-layout.c (variable_size): Do not issue errors.
1283 2011-05-04 Richard Guenther <rguenther@suse.de>
1285 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1286 for array-ref indices.
1287 (tree_coverage_counter_addr): Likewise.
1288 (build_fn_info_type): Use size_int for index types.
1289 (build_gcov_info): Likewise.
1291 2011-05-04 Richard Guenther <rguenther@suse.de>
1293 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1295 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1296 for constructor indices.
1297 (push_init_level): Likewise.
1299 2011-05-04 Richard Guenther <rguenther@suse.de>
1301 * explow.c (promote_mode): Move variable declarations before code.
1303 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1305 * tree.h (build_function_type_array): Declare.
1306 (build_varargs_function_type_array): Declare.
1307 (build_function_type_vec, build_varargs_function_type_vec): Define.
1308 * tree.c (build_function_type_array_1): New function.
1309 (build_function_type_array): New function.
1310 (build_varargs_function_type_array): New function.
1312 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1314 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1315 before setting STMT_VINFO_TYPE.
1317 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1319 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1320 instead of spu_pass_by_reference.
1322 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1324 * calls.c (emit_library_call_value_1): Invoke
1325 promote_function_mode hook on libcall arguments.
1326 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1327 argument being NULL.
1328 * targhooks.c (default_promote_function_mode): Lisewise.
1329 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1330 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1332 * doc/tm.texi: Document that TYPE argument might be NULL.
1334 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1336 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1338 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1341 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1343 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1346 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1348 * mips-tfile.c: ... here.
1349 Don't include coretypes.h, tm.h, filenames.h.
1350 (saber_stop): Remove definition and all calls.
1351 [__SABER__]: Remove.
1352 (__LINE__): Remove default.
1353 (Size_t, Ptrdiff_t): Remove definitions.
1354 Replace by size_t, ptrdiff_t.
1355 [!MIPS_DEBUGGING_INFO]: Remove.
1356 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1357 (progname): Add const.
1359 Replace all uses by static.
1360 (ALIGN_SYMTABLE_OFFSET): Remove default.
1361 * mips-tdump.c: Don't include coretypes.h, tm.h.
1362 Remove !MIPS_IS_STAB guard.
1363 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1364 $(TM_H), filenames.h dependencies.
1365 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1367 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1370 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1371 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1373 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1376 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1377 account and save/restore RETS.
1378 (PROFILE_BEFORE_PROLOGUE): Define.
1379 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1380 the push insn to use predecrement.
1382 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1385 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1387 2011-05-04 Nick Clifton <nickc@redhat.com>
1389 * config/mn10300/mn10300.c: Include cfgloop.h.
1391 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1392 Lcc or a FLcc insn into the instruction stream.
1393 (mn10300_block_contains_call): New function. Returns true if the
1394 given basic block contains a CALL insn.
1395 (mn10300_loop_contains_call_insn): New function. Returns true if
1396 the given loop contains a CALL insn.
1397 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1398 to use the SETLB and Lcc or FLcc insns.
1399 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1400 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1401 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1402 disable the SETLB optimization.
1403 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1404 __SETLB__ or __NO_SETLB__.
1405 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1406 (movsf_internal): Handle MDR register.
1407 (cmpsi): Make visible.
1408 (setlb): New pattern.
1410 (FLcc): New pattern.
1412 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1415 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1416 for reg<->xmm moves.
1417 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1418 (vec_concatv2di_rex64_sse): Ditto.
1419 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1420 (*vec_extractv2di_1_rex64): Ditto.
1423 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1425 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1427 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1429 2011-05-04 Richard Guenther <rguenther@suse.de>
1431 * tree.h (int_const_binop): Remove notrunc argument.
1432 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1433 create integer constants that are properly truncated.
1434 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1435 (const_binop): Remove zero notrunc argument to int_const_binop.
1436 (size_binop_loc): Likewise.
1437 (fold_div_compare): Likewise.
1438 (maybe_canonicalize_comparison_1): Likewise.
1439 (fold_comparison): Likewise.
1440 (fold_binary_loc): Likewise.
1441 (multiple_of_p): Likewise.
1442 * expr.c (store_constructor): Likewise.
1443 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1444 (maybe_fold_stmt_addition): Likewise.
1445 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1446 * stor-layout.c (layout_type): Likewise.
1447 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1448 * tree-sra.c (build_ref_for_offset): Likewise.
1449 (build_user_friendly_ref_for_offset): Likewise.
1450 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1451 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1452 * tree-ssa-loop-niter.c (inverse): Likewise.
1453 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1454 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1455 * tree-switch-conversion.c (check_range): Likewise.
1456 (build_constructors): Likewise.
1457 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1458 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1459 (extract_range_from_assert): Likewise.
1460 (vrp_int_const_binop): Likewise.
1461 (extract_range_from_binary_expr): Likewise.
1462 (extract_range_from_unary_expr): Likewise.
1463 (check_array_ref): Likewise.
1464 (find_case_label_range): Likewise.
1465 (simplify_div_or_mod_using_ranges): Likewise.
1466 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1467 comparing case labels for merging.
1469 2011-05-03 Mark Wielaard <mjw@redhat.com>
1471 * dwarf2out.c (debug_str_hash_forced): Removed.
1472 (gen_label_for_indirect_string): Removed.
1473 (get_debug_string_label): Removed.
1474 (AT_string_form): Generate label directly.
1475 (output_indirect_string): Test indirect_string_node for
1476 DW_FORM_strp instead of checking label and refcount.
1477 (prune_indirect_string): Removed.
1478 (prune_unused_types): Don't check debug_str_hash_forced or
1479 call prune_indirect_string.
1481 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1484 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1486 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1490 * combine.c (try_combine): Skip debug insns at m_split tests.
1492 2011-04-26 Mark Wielaard <mjw@redhat.com>
1495 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1496 when info_section_emitted.
1498 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1500 * config/mips/mips-opts.h: New.
1501 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1503 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1504 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1505 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1507 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1509 (mips_abi, mips_code_readable): Don't declare.
1510 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1511 (mabi=): Use Enum and Var.
1512 (mips_abi): New Enum and EnumValue entries.
1513 (mcode-readable=): Use Enum and Var.
1514 (mips_code_readable_setting): New Enum and EnumValue entries.
1515 (mr10k-cache-barrier=): Use Enum and Var.
1516 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1518 2011-05-03 Jan Hubicka <jh@suse.cz>
1520 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1521 replace hash by pointer map.
1522 (cgraph_node_set_element_def, cgraph_node_set_element,
1523 const_cgraph_node_set_element, varpool_node_set_element_def,
1524 varpool_node_set_element, const_varpool_node_set_element): Remove.
1525 (free_cgraph_node_set, free_varpool_node_set): New function.
1526 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1527 * tree-emutls.c: Free varpool node set.
1528 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1529 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1530 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1531 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1532 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1533 Move here from ipa.c; implement using pointer_map
1534 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1535 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1536 debug_cgraph_node_set, varpool_node_set_new,
1537 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1538 dump_varpool_node_set, debug_varpool_node_set):
1539 Move to ipa-uitls.c.
1540 * passes.c (ipa_write_summaries): Update.
1542 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1544 From Mike Frysinger:
1545 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1546 bf542/bf544/bf547/bf548/bf549.
1548 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1550 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1552 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1555 * config/bfin/bfin.md (MOVCC): New mode_macro.
1556 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1557 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1558 comments from generated assembly.
1560 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1563 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1564 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1565 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1566 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1567 * config/bfin/lib1funcs.asm (___muldi3): New function.
1569 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1571 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1572 build_function_type_list instead of build_function_type.
1573 Rearrange initialization of `args' to do so.
1575 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1577 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1578 instead of build_function_type.
1580 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1582 * config/rs6000/rs6000.c (spe_init_builtins): Call
1583 build_function_type_list instead of build_function_type.
1584 (paired_init_builtins, altivec_init_builtins): Likewise.
1585 (builtin_function_type): Likewise.
1587 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1589 * config/sh/sh.c (sh_media_init_builtins): Call
1590 build_function_type_list instead of build_function_type.
1592 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1594 * config/sparc/sparc.c (sparc_file_end): Call
1595 build_function_type_list instead of build_function_type.
1597 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1599 * config/alpha/alpha.c (alpha_init_builtins): Call
1600 build_function_type_list instead of build_function_type.
1602 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1604 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1605 build_function_type_list instead of build_function_type.
1607 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1609 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1610 build_function_type_list instead of build_function_type.
1611 Delete `endlink' variable.
1613 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1615 * config/avr/avr.c (avr_init_builtins): Call
1616 build_function_type_list instead of build_function_type.
1618 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1620 * config/picochip/picochip.c (picochip_init_builtins): Call
1621 build_function_type_list instead of build_function_type.
1622 Delete `endlink' variable.
1624 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1626 * config/bfin/bfin.c (bfin_init_builtins): Call
1627 build_function_type_list instead of build_function_type.
1629 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1632 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1633 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1635 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1638 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1639 libbffastfp overrides libgcc when -mfast-fp.
1641 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1643 Originally from Bernd Schmidt
1644 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1645 * config/bfin/bfin.c (override_options): Test it and error if
1648 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1650 Originally From Bernd Schmidt
1651 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1654 2011-05-03 Jeff Law <law@redhat.com>
1656 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1657 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1658 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1659 than accessing AUX field directly. Free the AUX field before
1661 (thread_block, thread_through_loop_header): Likewise.
1662 (thread_single_edge, mark_threaded_blocks): Likewise.
1663 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1664 (register_jump_thread): Do not attempt to thread to a NULL edge.
1666 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1668 * function.c (init_function_start): Call decide_function_section.
1669 * varasm.c (decide_function_section): New function.
1670 (assemble_start_function): When not using
1671 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1672 or first_function_block_is_cold.
1673 * rtl.h (decide_function_section): Declare.
1675 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1676 Jakub Jelinek <jakub@redhat.com>
1679 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1680 only succeed if req_mode is the same as set_mode.
1682 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1684 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1685 * genemit.c (gen_exp): Handle RETURN.
1686 * emit-rtl.c (verify_rtx_sharing): Likewise.
1687 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1688 * rtl.c (copy_rtx): RETURN is shared.
1689 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1691 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1692 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1693 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1694 * config/cris/cris.c (cris_expand_return): Likewise.
1695 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1696 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1697 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1698 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1699 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1701 * config/v850/v850.c (expand_epilogue): Likewise.
1702 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1703 * config/arm/arm.md (epilogue): Likewise.
1704 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1705 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1706 variable to ret_reg.
1708 2011-05-03 Richard Guenther <rguenther@suse.de>
1711 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1712 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1713 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1715 2011-05-03 Richard Guenther <rguenther@suse.de>
1717 * c-decl.c (grokdeclarator): Instead of looking at
1718 TREE_OVERFLOW check if the constant fits in the index type.
1720 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1722 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1723 (vec_store_lanes<mode><mode>): Likewise.
1725 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1727 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1728 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1729 convert_optab_index values.
1730 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1731 * genopinit.c (optabs): Initialize the new optabs.
1732 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1733 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1734 (expand_STORE_LANES): New functions.
1735 * tree.h (build_array_type_nelts): Declare.
1736 * tree.c (build_array_type_nelts): New function.
1737 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1738 (vect_model_load_cost): Likewise.
1739 (vect_store_lanes_supported, vect_load_lanes_supported)
1740 (vect_record_strided_load_vectors): Declare.
1741 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1742 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1743 (vect_transform_strided_load): Split out statement recording into...
1744 (vect_record_strided_load_vectors): ...this new function.
1745 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1746 (write_vector_array, create_array_ref): New functions.
1747 (vect_model_store_cost): Add store_lanes_p argument.
1748 (vect_model_load_cost): Add load_lanes_p argument.
1749 (vectorizable_store): Try to use store-lanes functions for
1751 (vectorizable_load): Likewise load-lanes and loads.
1752 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1753 to vect_model_store_cost.
1754 (vect_build_slp_tree): Likewise vect_model_load_cost.
1756 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1758 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1759 * hooks.c (hook_bool_mode_uhwi_false): New function.
1760 * target.def (array_mode_supported_p): New hook.
1761 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1762 * doc/tm.texi: Regenerate.
1763 * stor-layout.c (mode_for_array): New function.
1764 (layout_type): Use it.
1765 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1766 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1768 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1771 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1772 for -fstack-check if the size to allocate is negative.
1774 2011-05-02 Lawrence Crowl <crowl@google.com>
1776 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1777 (timevar_cond_start): New for starting a timer only when it is not
1779 (timevar_cond_stop): New for stopping a timer when it was not already
1782 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1783 (timevar_cond_start): New as above.
1784 (timevar_cond_stop): New as above.
1786 * timevar.def: Add start/stop timers for compiler phases,
1787 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1788 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1789 and TV_PHASE_FINALIZE.
1790 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1791 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1792 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1793 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1794 Make unused TV_OVERLOAD into a start/stop timer.
1796 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1797 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1798 to indicate that they are start/stop timers.
1800 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1801 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1802 Move initialization to do_compile.
1803 (do_compile): Add initialization from above.
1804 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1806 * c-decl.c (c_write_global_declarations): Add start/stop of
1807 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1809 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1810 or TV_PARSE_INLINE, as appropriate.
1811 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1812 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1814 2011-05-02 Jason Merrill <jason@redhat.com>
1817 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1819 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1822 * c-decl.c (finish_decl): Only create a composite if the types are
1825 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1827 * config/fr30/fr30-protos.h (Mmode): Don't define.
1828 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1829 definition where used.
1830 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1831 define. Expand definitions where used.
1832 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1833 Expand definitions where used.
1834 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1835 rx_function_arg, rx_function_arg_advance,
1836 rx_function_arg_boundary): Expand definitions of those macros.
1837 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1838 definition where used.
1840 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1842 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1844 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1845 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1846 with *movv2sf_internal_rex64_avx.
1847 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1848 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1849 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1850 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1851 "vex" in "prefix" attribute calculation.
1852 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1854 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1857 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1858 inputs match the output.
1860 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1863 * config/m68k/m68k.c (m68k_expand_prologue): Set
1864 current_function_static_stack_size.
1866 2011-05-02 Jan Hubicka <jh@suse.cz>
1868 * lto-streamer.c (lto_streamer_cache_insert_1,
1869 lto_streamer_cache_lookup, lto_streamer_cache_create,
1870 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1871 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1873 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1875 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1876 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1877 config/m68k/t-opts: New files.
1878 * config/m68k/m68k-tables.opt: New file (generated).
1879 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1880 extra_options and m68k/t-opts to tmake_file.
1881 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1882 (all_isas): Initialize using m68k-isas.def.
1883 (all_microarchs): Initialize using m68k-microarchs.def.
1884 (m68k_find_selection): Remove.
1885 (m68k_handle_option): Don't assert that global structures are in
1886 use. Use error_at. Access variables via opts pointer. Don't
1887 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1888 directly for -m68020-40 and -m68020-60.
1889 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1890 m68k_tune_entry here.
1891 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1893 (m68k_library_id_string): Remove declaration.
1894 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1895 (m68k_library_id_string): New Variable.
1896 (march=, mcpu=, mtune=): Use Enum and Var.
1898 2011-05-02 Richard Guenther <rguenther@suse.de>
1900 * varasm.c (output_constructor_regular_field): Compute zero-based
1901 index with double-ints. Make sure to ICE instead of producing
1903 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1904 in asserts. Properly use a signed type.
1906 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1908 * config/i386/sse.md (V): New mode iterator.
1909 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1911 (V_256): Rename from AVX256MODE.
1912 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1913 condition to all users.
1915 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1916 condition to all users.
1917 (VF_128): Make V4SF mode unconditional.
1918 (VF_256): Rename from AVX256MODEF2P.
1919 (VI4F_128): Rename from SSEMODE4S.
1920 (VI8F_128): Rename from SSEMODE2D.
1921 (VI4F_256): Rename from AVX256MODE8P.
1922 (VI8F_256): Rename from AVX256MODE4P.
1923 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1924 (ssescalarmodesuffix): Remove SF and DF modes.
1925 (SSEMODE124): Remove.
1926 (SSEMODE1248): Ditto.
1927 (SSEMODEF2P): Ditto.
1928 (AVXMODEF2P): Ditto.
1929 (AVXMODEFDP): Ditto.
1930 (AVXMODEFSP): Ditto.
1931 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1933 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1935 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1936 xop_pcmov_<mode>256. Use V mode iterator.
1938 Adjust RTX patterns globally for renamed mode attributes.
1940 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1942 * haifa-sched.c (sched_emit_insn): Emit insn before first
1943 non-scheduled insn. Inform back-end about new insn. Add
1944 new insn to scheduled_insns list.
1946 2011-05-02 Richard Guenther <rguenther@suse.de>
1948 PR tree-optimization/48822
1949 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1950 (process_scc): Indicate which iteration we start.
1952 2011-05-02 Jan Hubicka <jh@suse.cz>
1954 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1955 (lto_section_overrun): New.
1956 * lto-section-out.c (append_block): Rename to ...
1957 (lto_append_block): ... this one; export.
1958 (lto_output_1_stream): Move lto lto-streamer.h
1959 (lto_output_data_stream): Update.
1960 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1961 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1964 2011-05-02 Richard Guenther <rguenther@suse.de>
1966 * tree.c (tree_code_counts): New global array.
1967 (record_node_allocation_statistics): Count individual tree codes.
1968 (dump_tree_statistics): Dump individual code stats.
1970 2011-05-01 Jan Hubicka <jh@suse.cz>
1972 * ipa-inline.c (caller_growth_limits): Fix thinko when
1973 looking for largest stack frame.
1974 * ipa-inline.h (dump_inline_summary): Declare.
1975 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1977 (dump_inline_summary): Export.
1978 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1980 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1982 * reginfo.c (memory_move_cost): Change rclass argument type form
1983 'enum reg_class' to reg_class_t.
1984 * reload.h (memory_move_cost): Update prototype.
1985 * postreload.c reload_cse_simplify_set): Change type dclass var to
1987 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1989 (ira_allocate_and_set_costs): Change aclass argument type form
1990 'enum reg_class' to reg_class_t.
1991 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1992 Change aclass argument type to reg_class_t.
1993 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1995 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1996 memory_move_cost call.
1998 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1999 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2000 Change type tmp var to reg_class_t.
2002 2011-04-30 Jan Hubicka <jh@suse.cz>
2004 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2005 inlining into function with flatten attribute.
2006 (want_inline_small_function_p): Be more realistic about inlining
2007 cold calls where callee size grows.
2009 2011-04-30 Jan Hubicka <jh@suse.cz>
2011 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2014 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2016 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2017 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2018 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2019 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2020 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2021 (print_operand): Rename to...
2022 (sparc_print_operand): ...this. Make static. Adjust
2023 sparc_print_operand function call.
2024 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2027 2011-04-30 Jan Hubicka <jh@suse.cz>
2030 * ipa-inline.c (early_inliner): Disable when doing late
2031 addition of function.
2033 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2035 * dwarf2out.c (get_address_mode): New inline.
2036 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2037 if not dwarf_strict emit
2038 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2039 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2040 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2041 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2042 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2043 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2044 mem_loc_descriptor callers.
2045 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2046 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2047 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2048 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2049 (base_types): New variable.
2050 (get_base_type_offset, calc_base_type_die_sizes,
2051 base_type_for_mode, mark_base_types, base_type_cmp,
2052 move_marked_base_types): New functions.
2053 (calc_die_sizes): Assert that die_offset is 0 or equal to
2055 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2056 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2057 callers. If not dwarf_strict, call mem_loc_descriptor even for
2058 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2059 (gen_subprogram_die): Don't give up on call site parameters
2060 with non-integral or large integral modes. Adjust
2061 mem_loc_descriptor callers.
2062 (prune_unused_types): Call prune_unused_types_mark on base_types
2064 (resolve_addr): Call mark_base_types.
2065 (dwarf2out_finish): Call move_marked_base_types.
2067 PR tree-optimization/48809
2068 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2070 (gen_inbound_check): Don't compute index_expr - range_min in utype
2071 again, instead reuse SSA_NAME initialized in build_arrays.
2072 Remove two useless gsi_for_stmt calls.
2074 2011-04-29 Jeff Law <law@redhat.com>
2076 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2078 2011-04-29 Martin Jambor <mjambor@suse.cz>
2080 * cgraph.h (cgraph_postorder): Remove declaration.
2081 * ipa-utils.h (ipa_free_postorder_info): Declare.
2082 (ipa_reverse_postorder): Likewise.
2083 * cgraphunit.c: Include ipa-utils.h.
2084 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2085 * ipa-inline.c: Include ipa-utils.h.
2086 (ipa_inline): Update call to ipa_reverse_postorder.
2087 * ipa-pure-const.c (propagate_pure_const): Update call to
2088 ipa_reduced_postorder and ipa_print_order. Call
2089 ipa_free_postorder_info to clean up.
2090 (propagate_nothrow): Likewise.
2091 * ipa-reference.c (propagate): Removed a useless call to
2092 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2093 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2094 * ipa.c: Include ipa-utils.h.
2095 (ipa_profile): Update call to ipa_reverse_postorder.
2096 (cgraph_postorder): Moved to...
2097 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2098 (ipa_utils_print_order): Renamed to ipa_print_order.
2099 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2101 (ipa_free_postorder_info): New function.
2102 * passes.c: Include ipa-utils.h.
2103 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2104 (ipa_write_summaries): Likewise.
2105 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2106 (cgraphunit.o): Likewise.
2108 (ipa-inline.o): Likewise.
2110 2011-04-29 Jan Hubicka <jh@suse.cz>
2112 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2113 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2114 * ipa-inline.h (clause_t): Turn into unsigned int.
2115 * ipa-inline-analysis.c (add_clause): Do more simplification.
2116 (and_predicates): Shortcut more cases.
2117 (predicates_equal_p): Move forward; check that clauses are properly
2119 (or_predicates): Shortcut more cases.
2120 (edge_execution_predicate): Rewrite as...
2121 (set_cond_stmt_execution_predicate): ... this function; handle
2122 __builtin_constant_p.
2123 (set_switch_stmt_execution_predicate): New .
2124 (compute_bb_predicates): New.
2125 (will_be_nonconstant_predicate): Update TODO.
2126 (estimate_function_body_sizes): Use compute_bb_predicates
2127 and free them later, always try to estimate if stmt is constant.
2128 (estimate_time_after_inlining, estimate_size_after_inlining):
2129 Gracefully handle optimized out edges.
2130 (read_predicate): Fix off by one error.
2132 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2134 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2136 2011-04-27 Xinliang David Li <davidxl@google.com>
2138 * tree-profile.c (init_ic_make_global_vars): Set
2139 tls attribute on ic vars.
2140 * coverage.c (coverage_end_function): Initialize
2141 function_list with zero.
2143 2011-04-29 Richard Guenther <rguenther@suse.de>
2145 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2146 for the type of the result.
2147 (fold_builtin_isascii): Likewise.
2148 (fold_builtin_toascii): Use integer_type_node where appropriate.
2149 (fold_builtin_logb): Likewise.
2150 (fold_builtin_frexp): Likewise.
2151 (fold_builtin_strstr): Likewise.
2152 (fold_builtin_strpbrk): Likewise.
2153 (fold_builtin_fputs): Likewise.
2154 (fold_builtin_sprintf): Likewise.
2155 (fold_builtin_snprintf): Likewise.
2156 (fold_builtin_printf): Likewise.
2157 (do_mpfr_remquo): Use a proper type for the assigned constant.
2158 (do_mpfr_lgamma_r): Likewise.
2159 * dwarf2out.c (resolve_one_addr): Use size_int.
2160 * except.c (init_eh): Likewise.
2161 (assign_filter_values): Use integer_type_node for filter values.
2162 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2164 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2165 for EH region numbers.
2166 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2167 for the shift amount.
2169 2011-04-29 Richard Guenther <rguenther@suse.de>
2171 * expr.h (expand_shift): Rename to ...
2172 (expand_variable_shift): ... this.
2173 (expand_shift): Take a constant shift amount.
2174 * expmed.c (expand_shift): Rename to ...
2175 (expand_variable_shift): ... this.
2176 (expand_shift): New wrapper around expand_variable_shift.
2177 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2178 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2179 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2180 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2181 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2182 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2183 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2184 emit_store_flag_1, emit_store_flag): Likewise.
2185 * builtins.c (expand_builtin_signbit): Likewise.
2186 * calls.c (load_register_parameters): Likewise.
2187 * function.c (assign_parm_setup_block): Likewise.
2188 * lower-subreg.c (resolve_shift_zext): Likewise.
2189 * optabs.c (widen_bswap, expand_abs_nojump,
2190 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2191 * spu/spu.c (spu_expand_extv): Likewise.
2192 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2194 2011-04-29 Richard Guenther <rguenther@suse.de>
2196 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2197 for the remapped region number.
2198 * predict.c (build_predict_expr): Use integer_type_node for the
2200 * fold-const.c (fold_binary_loc): Use integer_type_node for
2201 the shift amount. Use a proper type for the PLUS_EXPR operand.
2203 2011-04-29 Michael Matz <matz@suse.de>
2205 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2206 other trees that just builtins.
2207 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2209 2011-04-29 Richard Guenther <rguenther@suse.de>
2211 * tree-nested.c (get_trampoline_type): Use size_int.
2212 (get_nl_goto_field): Likewise.
2213 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2215 (lower_eh_constructs_2): Likewise.
2216 (lower_resx): Likewise.
2217 (lower_eh_dispatch): Likewise.
2218 * tree-mudflap.c (mf_build_string): Use size_int.
2219 (mudflap_register_call): Use integer_type_node for the flag.
2220 (mudflap_enqueue_constant): Use size_int.
2221 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2222 instead of rebuilding it.
2224 2011-04-29 Richard Guenther <rguenther@suse.de>
2226 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2227 Handle OBJ_TYPE_REF.
2228 (find_func_aliases_for_call): Use it more consistently.
2230 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2232 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2233 (rank_for_schedule): Use it.
2234 (schedule_block): Set it.
2236 2011-04-28 David Li <davidxl@google.com>
2238 * tree.c (crc32_string): Use crc32_byte.
2239 (crc32_byte): New function.
2240 * tree.h (crc32_byte): New function.
2241 * gcov.c (read_graph_file): Handle new cfg_cksum.
2242 (read_count_file): Ditto.
2243 * profile.c (instrument_values): Ditto.
2244 (get_exec_counts): Ditto.
2245 (read_profile_edge_counts): Ditto.
2246 (compute_branch_probabilities): Ditto.
2247 (compute_value_histograms): Ditto.
2248 (branch_prob): Ditto.
2249 (end_branch_prob): Ditto.
2250 * coverage.c (read_counts_file): Ditto.
2251 (get_coverage_counts): Ditto.
2252 (tree_coverage_counter_addr): Ditto.
2253 (coverage_checksum_string): Ditto.
2254 (coverage_begin_output): Ditto.
2255 (coverage_end_function): Ditto.
2256 (build_fn_info_type): Ditto.
2257 (build_fn_info_value): Ditto.
2258 * libgcov.c (gcov_exit): Ditto.
2259 * gcov-dump.c (tag_function): Ditto.
2260 (compute_checksum): Remove.
2262 2011-04-29 Alan Modra <amodra@gmail.com>
2264 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2265 unspec plus offset. Tidy macho code.
2267 2011-04-29 Martin Jambor <mjambor@suse.cz>
2269 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2270 node instead of a decl. Update all callers.
2271 * cgraph.h: Update declaration.
2273 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2275 PR tree-optimization/48765
2276 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2277 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2278 to indicate if loop aware SLP is being used. Scan the statements
2279 and update the vectorization factor according to the type of
2280 vectorization before statement analysis.
2281 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2282 pass it to vect_analyze_loop_operations.
2283 (vectorizable_reduction): Set number of copies to 1 in case of pure
2285 * tree-vect-stmts.c (vectorizable_conversion,
2286 vectorizable_assignment, vectorizable_shift,
2287 vectorizable_operation, vectorizable_type_demotion,
2288 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2290 (vectorizable_condition): Move the check that it is not SLP
2291 vectorization before the number of copies check.
2292 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2293 to vectorize the loop using SLP.
2295 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2298 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2301 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2303 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2304 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2305 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2306 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2307 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2309 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2310 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2311 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2312 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2313 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2314 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2316 * config/i386/linux.h (REG_NAME): Don't define.
2317 * config/i386/linux64.h (REG_NAME): Don't define.
2318 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2319 Undefine before defining.
2321 2011-04-28 Jan Hubicka <jh@suse.cz>
2323 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2324 nonconstant_names array.
2325 (estimate_function_body_sizes): Build nonconstant_names array; handle
2326 BUILT_IN_CONSTANT_P.
2328 2011-04-28 Richard Guenther <rguenther@suse.de>
2332 2011-04-28 Richard Guenther <rguenther@suse.de>
2334 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2335 as late as possible.
2337 2011-04-28 Richard Guenther <rguenther@suse.de>
2339 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2340 (debug_constraint): Do it here.
2341 (dump_constraints): And here.
2342 (rewrite_constraints): And here.
2343 (dump_constraint_edge): Remove.
2344 (dump_constraint_graph): Rewrite to produce DOT output.
2345 (solve_constraints): Build succ graph as late as possible.
2346 Dump constraint graphs before and after solving.
2348 2011-04-28 Richard Guenther <rguenther@suse.de>
2350 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2351 New function split out from ...
2352 (find_func_aliases): ... here. Call it.
2353 (find_func_aliases_for_call): Likewise.
2355 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2357 * internal-fn.h (internal_fn_name_array): Declare.
2358 (internal_fn_flags_array): Likewise.
2360 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2362 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2363 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2365 (ssemodefsuffix): Remove.
2366 (ssevecmodesuffix): New mode attribute.
2367 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2368 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2369 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2370 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2371 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2372 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2373 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2374 ssemodesuffix mode attribute.
2375 (float splitters): Use ssevecmodesuffix mode attribute.
2376 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2377 (sseinsmode): Rename from avxvecmode.
2378 (avxsizesuffix): Rename from avxmodesuffix.
2379 (sseintvecmode): Rename from avxpermvecmode.
2380 (ssedoublevecmode): Rename from ssedoublesizemode.
2381 (ssehalfvecmode): Rename from avxhalfvecmode.
2382 (ssescalarmode): Rename from avxscalarmode.
2383 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2384 templates for ssemodesuffix mode attribute.
2385 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2388 Adjust RTX patterns globally for renamed mode attributes.
2390 2011-04-27 Jan Hubcika <jh@suse.cz>
2392 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2393 * ipa-inline-analysis.c: Include alloc-pool.h.
2394 (edge_predicate_pool): New.
2395 (trye_predicate_p): New function
2396 (false_predicate_p): New function.
2397 (add_clause): Sanity check that false clauses are "optimized";
2398 never add clauses to predicate that is already known to be false.
2399 (and_predicate): Use flase_predicate_p.
2400 (evaulate_predicate): Rename to ...
2401 (evaluate_predicate): ... this one; update all callers; assert
2402 that false is not listed among possible truths.
2403 (dump_predicate): Use true_predicate_p.
2404 (account_size_time): Use false_predicate_p.
2405 (evaulate_conditions_for_edge): Rename to ...
2406 (evaluate_conditions_for_edge) ... this one.
2407 (edge_set_predicate): New function.
2408 (inline_edge_duplication_hook): Duplicate edge predicates.
2409 (inline_edge_removal_hook): Free edge predicates.
2410 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2411 (dump_inline_summary): Update.
2412 (estimate_function_body_sizes): Set edge predicates.
2413 (estimate_calls_size_and_time): Handle predicates.
2414 (estimate_callee_size_and_time): Update.
2415 (remap_predicate): Add toplev_predicate; update comment.
2416 (remap_edge_predicates): New function.
2417 (inline_merge_summary): Compute toplev predicate; update.
2418 (read_predicate): New function.
2419 (read_inline_edge_summary): Use it.
2420 (inline_read_section): Likewise.
2421 (write_predicate): New function.
2422 (write_inline_edge_summary): Use it.
2423 (inline_write_summary): Likewise.
2424 (inline_free_summary): Free alloc pool and edge summary vec.
2426 2011-04-27 Richard Guenther <rguenther@suse.de>
2428 * tree-ssa-structalias.c (changed_count): Remove.
2429 (changed): Use a bitmap.
2430 (unify_nodes): Adjust.
2431 (do_sd_constraint): Likewise.
2432 (do_ds_constraint): Likewise.
2433 (do_complex_constraint): Likewise.
2434 (solve_graph): Likewise.
2436 2011-04-27 Jan Hubicka <jh@suse.cz>
2438 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2440 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2442 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2443 (avx_vperm2f128_*_operand): Ditto.
2444 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2445 Use avx_vpermilp_parallel in insn condition.
2446 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2447 Use avx_vperm2f128_parallel in insn condition.
2449 2011-04-27 Richard Guenther <rguenther@suse.de>
2451 * Makefile.in (tree-ssa-structalias.o): Remove
2452 gt-tree-ssa-structalias.h dependency.
2453 (GTFILES): Remove tree-ssa-structalias.c.
2454 * tree.c (allocate_decl_uid): New function.
2455 (make_node_stat): Use it.
2456 (copy_node_stat): Likewise.
2457 * tree.h (allocate_decl_uid): Declare.
2458 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2459 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2460 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2461 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2462 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2463 (struct heapvar_map): Likewise.
2464 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2465 heapvar_insert): Likewise.
2466 (make_heapvar_for): Rename to ...
2467 (make_heapvar): ... this. Simplify.
2468 (fake_var_decl_obstack): New global var.
2469 (build_fake_var_decl): New function.
2470 (make_constraint_from_heapvar): Adjust.
2471 (handle_lhs_call): Likewise.
2472 (create_function_info_for): Likewise.
2473 (intra_create_variable_infos): Likewise.
2474 (init_alias_vars): Allocate fake_var_decl_obstack.
2475 (init_alias_heapvars, delete_alias_heapvars): Remove.
2476 (compute_points_to_sets): Do not call init_alias_heapvars.
2477 (ipa_pta_execute): Likewise.
2478 (delete_points_to_sets): Free fake_var_decl_obstack.
2480 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2482 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2483 (si_from_UTItype, si_to_UTItype): New functions.
2484 (__udivmodti4): Use them to implement type-punning.
2485 * config/spu/multi3.c (union qword_TItype): New data type.
2486 (si_from_TItype, si_to_TItype): New functions.
2487 (__multi3): Use them to implement type-punning.
2489 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2491 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2493 2011-04-27 Jan Hubicka <jh@suse.cz>
2495 * ipa-prop.c (function_insertion_hook_holder): New holder.
2496 (ipa_add_new_function): New function.
2497 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2498 Register/deregister holder.
2500 2011-04-27 Richard Guenther <rguenther@suse.de>
2502 PR tree-optimization/48772
2503 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2505 2011-04-27 Richard Guenther <rguenther@suse.de>
2507 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2508 TARGET_MEM_REF handling.
2510 2011-04-27 Nick Clifton <nickc@redhat.com>
2512 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2513 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2514 (REG_CLASS_NAMES): Likewise.
2515 (REG_CLASS_CONTENTS): Likewise.
2516 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2517 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2518 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2519 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2520 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2521 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2522 duplicate register classes.
2523 (frv_class_likely_spilled_p): Likewise.
2524 (frv_register_move_cost): Likewise.
2526 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2527 end of the regno_reg_class array.
2529 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2532 * c-typeck.c (build_binary_op): Don't wrap arguments if
2533 int_operands is true.
2535 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2538 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2539 targetm.calls.must_pass_in_stack for void type.
2541 2011-04-26 Jan Hubicka <jh@suse.cz>
2543 * cgraphbuild.c (build_cgraph_edges): Update call
2544 of cgraph_create_edge and cgraph_create_indirect_edge.
2545 * cgraph.c (cgraph_create_edge_including_clones,
2546 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2547 cgraph_update_edges_for_call_stmt_node): Do not take nest
2548 argument; do not initialize call_stmt_size/time.
2549 (dump_cgraph_node): Do not dump nest.
2550 (cgraph_clone_edge): Do not take loop_nest argument;
2551 do not propagate it; do not clone call_stmt_size/time.
2552 (cgraph_clone_node): Likewise.
2553 (cgraph_create_virtual_clone): Update.
2554 * cgraph.h (struct cgraph_edge): Remove
2555 call_stmt_size/call_stmt_time/loop_nest.
2556 (cgraph_create_edge, cgraph_create_indirect_edge,
2557 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2559 * tree-emutls.c (gen_emutls_addr): Update.
2560 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2561 loop_nest; handle indirect calls, too.
2562 (clone_inlined_nodes): Do not care about updating inline summaries.
2563 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2564 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2565 stream call_stmt_size/call_stmt_time/loop_nest.
2566 * ipa-inline.c (edge_badness): Update.
2567 (ipa_inline): dump summaries after inlining.
2568 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2570 (inline_edge_summary): New function.
2571 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2572 (inline_edge_removal_hook): Handle edge summaries.
2573 (inline_edge_duplication_hook): New hook.
2574 (inline_summary_alloc): Alloc hooks.
2575 (initialize_growth_caches): Do not register removal hooks.
2576 (free_growth_caches); Do not free removal hook.
2577 (dump_inline_edge_summary): New function.
2578 (dump_inline_summary): Use it.
2579 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2580 (inline_update_callee_summaries): New function.
2581 (inline_merge_summary): Use it.
2582 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2583 (read_inline_edge_summary): New function.
2584 (inline_read_section): Use it.
2585 (write_inline_edge_summary): New function.
2586 (inline_write_summary): Use it.
2587 (inline_free_summary): Free edge new holders.
2588 * tree-inline.c (copy_bb): Update.
2590 2011-04-26 Jason Merrill <jason@redhat.com>
2592 * tree-eh.c (lower_try_finally_switch): Create the label along with
2593 the CASE_LABEL_EXPR.
2595 2011-04-26 David S. Miller <davem@davemloft.net>
2596 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2598 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2599 * configure: Regenerate.
2601 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2604 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2606 (VEC_reduc): New code iterator and splitters for vector reduction.
2607 (VEC_reduc_name): Ditto.
2608 (VEC_reduc_rtx): Ditto.
2609 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2610 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2612 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2613 support for extracting SF on VSX.
2615 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2616 generating xscvspdp.
2617 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2618 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2619 double add, minimum, maximum vector reduction.
2620 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2621 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2622 optimize double vector reduction.
2623 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2625 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2627 * config/fr30/fr30.h (inhibit_libc): Don't define.
2628 * config/m32r/m32r-protos.h: Correct comment.
2629 * config/v850/v850.h (GHS_default_section_names,
2630 GHS_current_section_names): Use tree, not union tree_node *.
2632 2011-04-26 Xinliang David Li <davidxl@google.com>
2634 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2635 * c-family/c-opts.c (c_common_handle_option): Set
2636 warn_maybe_uninitialized.
2637 * opts.c (common_handle_option): Ditto.
2638 * common.opt: New option.
2639 * tree-ssa.c (warn_uninit): Add one more parameter.
2640 (warn_uninitialized_var): Pass warning code.
2641 * tree-flow.h: Interface change.
2644 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2646 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2647 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2648 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2650 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2652 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2653 * config/mips/mips.opt (mmips-tfile): Remove.
2655 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2656 mips-tdump reference to ...
2657 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2658 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2659 reference by Tru64 UNIX.
2661 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2664 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2665 is error_mark_node, set value to NULL.
2667 PR tree-optimization/48734
2668 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2669 if return value from maybe_fold_*_comparsions isn't something
2670 the code is prepared to handle.
2672 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2674 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2676 (ext_QIreg_nomode_operands): Remove.
2677 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2681 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2683 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2685 2011-04-26 Richard Guenther <rguenther@suse.de>
2687 * c-typeck.c (build_unary_op): Do not expand array-refs via
2688 pointer arithmetic. Only adjust qualifiers for function types.
2690 2011-04-26 Richard Guenther <rguenther@suse.de>
2693 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2694 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2695 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2696 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2698 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2700 * doc/extend.texi: Document __underlying_type.
2702 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2704 * config/rs6000/titan.md (automata_option "progress"): Remove.
2706 2011-04-25 Jeff Law <law@redhat.com>
2708 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2710 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2712 * system.h (ENUM_BITFIELD): Remove.
2714 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2715 Eric Botcazou <ebotcazou@adacore.com>
2717 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2718 for STORE_FLAG_VALUE==-1 case.
2720 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2723 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2724 LEGITIMATE_PIC_OPERAND_P.
2726 2011-04-24 Jan Hubicka <jh@suse.cz>
2728 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2730 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2731 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2732 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2733 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2734 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2735 Sanity check predicate length.
2736 (remap_predicate): Likewise; sanity check jump functions.
2737 (inline_read_section, inline_write_summary): Sanity check
2740 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2743 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2744 __is_literal_type, and __is_trivial; update throughout about
2745 possibly cv-qualified void types.
2747 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2749 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2750 testsuite and make it version agnostic.
2752 2011-04-22 Jan Hubicka <jh@suse.cz>
2754 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2756 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2759 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2760 to VOID_TYPE even around MODIFY_EXPR.
2762 2011-04-22 Mike Stump <mikestump@comcast.net>
2764 * gensupport.c (read_md_rtx): Fix typo in comment.
2765 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2768 2011-04-22 Jan Hubicka <jh@suse.cz>
2770 * gengtype.c (open_base_files): Add ipa-inline.h include.
2771 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2772 ipa-prop.c; update all uses.
2773 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2774 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2775 merge summary of inlined function into former caller.
2776 * ipa-inline.c (max_benefit): Remove.
2777 (edge_badness): Compensate for removal of benefits.
2778 (update_caller_keys): Use
2779 reset_node_growth_cache/reset_edge_growth_cache.
2780 (update_callee_keys): Likewise.
2781 (update_all_callee_keys): Likewise.
2782 (inline_small_functions): Do not collect max_benefit; do not reset
2783 estimated_growth; call free_growth_caches and initialize_growth_caches.
2784 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2785 struct size_time_entry): New structures.
2786 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2787 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2788 and estimated_growth.
2789 (edge_growth_cache_entry): New structure.
2790 (node_growth_cache, edge_growth_cache): New global vars.
2791 (estimate_growth): Turn into inline.
2792 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2793 initialize_growth_caches, free_growth_caches): Declare.
2794 (estimate_edge_growth): Rewrite.
2795 (estimate_edge_time): Implement as inline cache lookup.
2796 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2798 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2799 (NUM_CONDITIONS): New constant.
2800 (predicate_conditions): New enum.
2801 (IS_NOT_CONSTANT): New constant.
2802 (edge_removal_hook_holder): New var.
2803 (node_growth_cache, edge_growth_cache): New global vars.
2804 (true_predicate, single_cond_predicate, false_predicate,
2805 not_inlined_predicate, add_condition, add_clause, and_predicates,
2806 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2807 dump_clause, dump_predicate, account_size_time,
2808 evaulate_conditions_for_edge): New functions.
2809 (inline_summary_alloc): Move to heap.
2810 (inline_node_removal_hook): Clear condition and entry vectors.
2811 (inline_edge_removal_hook): New function.
2812 (initialize_growth_caches, free_growth_caches): New function.
2813 (dump_inline_summary): Update.
2814 (edge_execution_predicate): New function.
2815 (will_be_nonconstant_predicate): New function.
2816 (estimate_function_body_sizes): Compute BB and constantness predicates.
2817 (compute_inline_parameters): Do not clear estimated_growth.
2818 (estimate_edge_size_and_time): New function.
2819 (estimate_calls_size_and_time): New function.
2820 (estimate_callee_size_and_time): New function.
2821 (remap_predicate): New function.
2822 (inline_merge_summary): New function.
2823 (do_estimate_edge_time): New function based on...
2824 (estimate_edge_time): ... this one.
2825 (do_estimate_edge_growth): New function.
2826 (do_estimate_growth): New function based on....
2827 (estimate_growth): ... this one.
2828 (inline_analyze_function): Analyze after deciding on jump functions.
2829 (inline_read_section): New function.
2830 (inline_read_summary): Use it.
2831 (inline_write_summary): Write all the new data.
2832 * ipa-prop.c (ipa_get_param_decl_index): Export.
2833 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2834 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2836 (ipa_get_lattice): Move here from ipa-cp.c
2837 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2838 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2839 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2840 cgraph_edge_inlinable_p): Remove.
2841 * cgraphunit.c: Include ipainline.h
2842 (cgraph_process_new_functions): Update call of
2843 compute_inline_parameters.
2845 2011-04-22 Richard Guenther <rguenther@suse.de>
2847 * tree.c (build_int_cst): Properly create canonicalized integer
2849 (build_int_cst_type): Remove scary comments.
2851 2011-04-22 Xinliang David Li <davidxl@google.com>
2853 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2854 by default when -Wno-error is not specified.
2855 * opts-global.c (decode_options): Remove call to
2856 control_warning_options.
2858 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2860 PR tree-optimization/48717
2861 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2862 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2864 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2866 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2867 definition where used.
2869 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2872 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2873 TREE_STATIC variables declared inside of some OpenMP construct.
2875 2011-04-22 Martin Jambor <mjambor@suse.cz>
2878 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2880 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2883 * c-typeck.c (pop_init_level): Do not warn about initializing
2886 2011-04-22 Alan Modra <amodra@gmail.com>
2888 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2889 when returning call_cookie.
2890 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2891 pointers, to functions with no more vector args than the current
2892 function, and some non-local calls for ABI_V4.
2893 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2894 sibcall_nonlocal_aix64): Combine to ..
2895 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2896 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2897 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2898 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2899 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2901 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2902 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2903 sibcall_value_symbolic_64): Delete.
2905 2011-04-21 Xinliang David Li <davidxl@google.com>
2907 * cgraph.h: Remove pid.
2908 * cgraph.c: Remove pid.
2909 * value-prof.c (init_node_map): New function.
2910 (del_node_map): New function.
2911 (find_func_by_funcdef_no): New function.
2912 (gimple_ic_transform): Call new function.
2913 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2914 * function.c (get_last_funcdef_no): New function.
2915 * function.h (get_last_funcdef_no): New function.
2916 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2917 to libgcov function.
2918 (tree-profiling): Call node map init and delete function.
2920 2011-04-21 Ian Lance Taylor <iant@google.com>
2922 * godump.c (go_format_type): Use exported Go name for anonymous
2925 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2927 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2928 Call builtin_function_type_list instead of builtin_function_type.
2929 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2931 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2933 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2934 build_function_type_list instead of build_function_type.
2935 Delete variable `endlink'.
2937 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2939 * config/s390/s390.c (s390_init_builtins): Call
2940 build_function_type_list instead of build_function_type.
2942 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2944 * config/ia64/ia64.c (ia64_init_builtins): Call
2945 build_function_type_list instead of builtin_function_type.
2947 2011-04-21 Easwaran Raman <eraman@google.com>
2949 * cfgexpand.c (stack_var): Remove OFFSET...
2950 (add_stack_var): ...and its reference here...
2951 (expand_stack_vars): ...and here.
2952 (stack_var_cmp): Sort by descending order of size.
2953 (partition_stack_vars): Change heuristic.
2954 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2955 (dump_stack_var_partition): Add newline after each partition.
2957 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2958 Jeff Law <law@redhat.com>
2960 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2961 * gengtype.c (matching_file_name_substitute): Likewise.
2963 2011-04-21 Richard Guenther <rguenther@suse.de>
2966 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2968 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2970 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2972 2011-04-21 Richard Guenther <rguenther@suse.de>
2974 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2977 2011-04-21 Richard Guenther <rguenther@suse.de>
2979 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2980 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2981 Use DECL_P, not SSA_VAR_P.
2982 (ptr_derefs_may_alias_p): Likewise.
2983 (ptr_deref_may_alias_ref_p_1): Likewise.
2984 (decl_refs_may_alias_p): Likewise.
2985 (refs_may_alias_p_1): Likewise.
2986 (ref_maybe_used_by_call_p_1): Likewise.
2987 (call_may_clobber_ref_p_1): Likewise.
2988 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2989 are either MEM_REF or TARGET_MEM_REF.
2990 (indirect_refs_may_alias_p): Likewise.
2991 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2992 for MEM_EXPR of indirect calls.
2994 2011-04-21 Tristan Gingold <gingold@adacore.com>
2996 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2997 (dst_file_info_struct): Remove flen field.
2998 (lookup_filename): Remove code that set flen field.
3000 2011-04-21 Tristan Gingold <gingold@adacore.com>
3002 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3004 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3007 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3008 vec_extract and vec_concat for non-SSE4_1 targets.
3010 2011-04-21 Richard Guenther <rguenther@suse.de>
3012 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3015 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3017 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3019 (FILE): Don't undefine.
3021 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3023 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3025 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3027 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3028 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3029 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3031 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3032 definitions where used.
3033 * config/microblaze/microblaze.h (struct microblaze_args): Use
3034 rtx, not struct rtx_def *.
3035 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3037 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3038 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3039 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3040 not struct rtx_def *.
3041 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3043 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3045 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3047 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3049 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3050 operand_equal_p to compare DR_BASE_ADDRESSes.
3051 (vect_check_interleaving): Likewise.
3053 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3056 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3057 for all Neon struct constants.
3059 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3061 * target.def (legitimate_constant_p): New hook.
3062 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3063 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3064 * doc/tm.texi: Regenerate.
3065 * hooks.h (hook_bool_mode_rtx_true): Declare.
3066 * hooks.c (hook_bool_mode_rtx_true): Define.
3067 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3068 * calls.c (precompute_register_parameters): Replace uses of
3069 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3070 (emit_library_call_value_1): Likewise.
3071 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3072 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3073 * ira-costs.c (scan_one_insn): Likewise.
3074 * recog.c (general_operand, immediate_operand): Likewise.
3075 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3076 * reload1.c (init_eliminable_invariants): Likewise.
3078 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3080 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3081 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3083 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3084 * config/alpha/predicates.md (input_operand): Update call to
3085 alpha_legitimate_constant_p.
3087 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3088 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3089 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3090 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3091 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3092 (arm_legitimate_constant_p): New functions.
3093 (arm_cannot_force_const_mem): Make static.
3095 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3097 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3098 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3099 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3100 instead of bfin_legitimate_constant_p.
3101 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3102 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3104 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3106 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3108 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3109 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3110 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3111 (frv_legitimate_constant_p): Make static. Add a mode argument.
3113 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3114 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3115 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3117 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3118 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3119 * config/i386/i386.c (legitimate_constant_p): Rename to...
3120 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3122 (ix86_cannot_force_const_mem): Update accordingly.
3123 (ix86_legitimate_address_p): Likewise.
3124 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3125 * config/i386/i386.md: Update commentary.
3127 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3128 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3129 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3130 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3132 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3134 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3135 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3136 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3137 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3139 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3140 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3141 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3143 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3144 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3145 (m32r_legitimate_constant_p): New function.
3147 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3148 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3149 LEGITIMATE_CONSTANT_P.
3150 (LEGITIMATE_CONSTANT_P): Delete.
3151 * config/m68k/m68k.c (m68k_expand_prologue): Call
3152 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3153 (m68k_legitimate_constant_p): New function.
3154 * config/m68k/m68k.md: Update comments.
3156 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3157 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3158 (mcore_legitimate_constant_p): New function.
3160 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3161 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3162 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3163 Add a mode argument.
3164 (mep_legitimate_address): Update accordingly.
3165 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3167 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3169 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3170 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3171 static. Check OP's mode for VOIDmode.
3172 (microblaze_legitimate_constant_p): New function.
3173 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3175 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3176 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3177 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3178 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3179 * config/mips/predicates.md: Update comments.
3181 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3182 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3183 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3184 (mmix_legitimate_constant_p): Make static, return a bool, and take
3186 (mmix_print_operand_address): Update accordingly.
3188 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3190 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3191 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3192 static. Add a mode argument.
3193 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3195 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3197 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3198 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3199 (pa_legitimate_constant_p): New function.
3201 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3203 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3204 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3205 (pdp11_legitimate_constant_p): New function.
3207 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3208 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3209 (rs6000_legitimate_constant_p): New function.
3211 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3212 (rx_legitimate_constant_p): ...this.
3213 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3214 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3215 (rx_legitimate_constant_p): ...this.
3216 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3217 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3219 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3220 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3221 * config/s390/s390.c (legitimate_constant_p): Rename to...
3222 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3223 and add a mode argument.
3224 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3226 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3228 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3229 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3230 (sh_legitimate_constant_p): New function.
3232 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3233 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3234 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3235 (legitimate_constant_p): Rename to...
3236 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3238 (constant_address_p): Update accordingly.
3240 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3241 argument and return a bool.
3242 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3243 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3244 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3245 (spu_rtx_costs): Update accordingly.
3246 * config/spu/predicates.md (vec_imm_operand): Likewise.
3248 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3250 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3251 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3252 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3254 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3255 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3256 * config/vax/vax.c (legitimate_constant_p): Likewise.
3258 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3259 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3260 (xtensa_legitimate_constant_p): New function.
3262 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3264 * target.def (cannot_force_const_mem): Add a mode argument.
3265 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3266 * doc/tm.texi: Regenerate.
3267 * hooks.h (hook_bool_mode_rtx_false): Declare.
3268 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3269 (hook_bool_mode_const_rtx_true): Likewise.
3270 (hook_bool_mode_rtx_false): New function.
3271 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3272 to be non-VOID. Update call to cannot_force_const_mem.
3273 (find_reloads): Update accordingly.
3274 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3275 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3277 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3278 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3279 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3280 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3281 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3282 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3283 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3284 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3285 (m68k_cannot_force_const_mem): ...this new function.
3286 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3288 (mips_const_insns, mips_legitimize_const_move): Update calls.
3289 (mips_secondary_reload_class): Likewise.
3290 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3291 (pa_cannot_force_const_mem): ...this new function.
3292 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3293 (rs6000_cannot_force_const_mem): ...this new function.
3294 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3296 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3297 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3299 (xtensa_cannot_force_const_mem): ...this new function.
3301 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3303 * config/mips/mips.c (mips16_build_function_stub): Call
3304 build_function_type_list instead of build_function_type.
3305 (mips16_build_call_stub): Likewise.
3307 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3309 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3310 instead of build_function_type.
3312 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3314 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3315 instead of build_function_type.
3317 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3320 * config/i386/i386.md (insv): Change operand 0 constraint to
3321 "register_operand". Change operand 1 and 2 constraint to
3322 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3323 * config/i386/sse.md (sse4_1_pinsrb): Export.
3324 (sse2_pinsrw): Ditto.
3325 (sse4_1_pinsrd): Ditto.
3326 (sse4_1_pinsrq): Ditto.
3327 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3328 * config/i386/i386.c (ix86_expand_pinsr): New.
3330 2011-04-20 Easwaran Raman <eraman@google.com>
3332 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3333 containing union type only with -fstrict-aliasing.
3335 2011-04-20 Jim Meyering <meyering@redhat.com>
3337 Remove useless if-before-free tests.
3338 * calls.c (expand_call, save_area): Likewise.
3339 * cfgcleanup.c (try_forward_edges): Likewise.
3340 * collect2.c (collect_execute): Likewise.
3341 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3342 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3343 * coverage.c (coverage_checksum_string): Likewise.
3344 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3345 * cselib.c (cselib_init): Likewise.
3346 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3347 (df_set_clean_cfg): Likewise.
3348 * function.c (free_after_compilation): Likewise.
3349 * gcc.c (do_spec_1, main): Likewise.
3350 * gcov.c (create_file_names): Likewise.
3351 * gensupport.c (identify_predicable_attribute): Likewise.
3352 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3353 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3354 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3355 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3356 * ipa-pure-const.c (local_pure_const): Likewise.
3357 * ipa-reference.c (propagate): Likewise.
3358 * ira-costs.c (free_ira_costs): Likewise.
3359 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3360 * matrix-reorg.c (mat_free): Likewise.
3361 * prefix.c (get_key_value): Likewise.
3362 * profile.c (compute_value_histograms): Likewise.
3363 * reload1.c (free_reg_equiv): Likewise.
3364 * sched-deps.c (free_deps): Likewise.
3365 * sel-sched-ir.c (fence_clear): Likewise.
3366 * sese.c (set_rename, if_region_set_false_region): Likewise.
3367 * tree-data-ref.c (free_rdg): Likewise.
3368 * tree-eh.c (lower_try_finally): Likewise.
3369 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3370 * tree-ssa-live.c (delete_var_map): Likewise.
3371 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3372 * tree-ssa-pre.c (phi_trans_add): Likewise.
3374 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3376 PR tree-optimization/48611
3377 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3378 beyond ERT_MUST_NOT_THROW region.
3380 2011-04-20 Catherine Moore <clm@codesourcery.com>
3382 * config/mips/mips.opt (mfix-24k): New.
3383 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3384 * config/mips/mips.md (length): Increase by 4 for stores if
3386 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3387 all noreorder if fixing 24K errata.
3388 * doc/invoke.texi: Document mfix-24k.
3390 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3392 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3393 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3395 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3397 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3398 (const_ok_for_op): ... to here.
3400 2011-04-20 Kai Tietz <ktietz@redhat.com>
3402 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3403 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3405 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3407 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3409 2011-04-20 Richard Guenther <rguenther@suse.de>
3411 PR tree-optimization/47892
3412 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3415 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3417 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3419 2011-04-20 Tristan Gingold <gingold@adacore.com>
3421 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3423 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3427 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3428 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3429 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3430 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3431 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3433 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3436 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3437 (avr_asm_named_section, avr_asm_output_aligned_common,
3438 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3439 New functions to update...
3440 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3441 (avr_asm_init_sections): Overwrite section callbacks for
3442 data_section, bss_section.
3443 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3445 (avr_file_end): ...here.
3447 2011-04-20 Richard Guenther <rguenther@suse.de>
3450 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3451 objects and types here. Adjust for their offset before comparing.
3453 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3455 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3458 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3460 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3461 (GIMPLE_H): Include $(INTERNAL_FN_H).
3462 (OBJS-common): Add internal-fn.o.
3463 (internal-fn.o): New rule.
3464 * internal-fn.def: New file.
3465 * internal-fn.h: Likewise.
3466 * internal-fn.c: Likewise.
3467 * gimple.h: Include internal-fn.h.
3468 (GF_CALL_INTERNAL): New gf_mask.
3469 (gimple_statement_call): Put fntype into a union with a new
3471 (gimple_build_call_internal): Declare.
3472 (gimple_build_call_internal_vec): Likewise.
3473 (gimple_call_same_target_p): Likewise.
3474 (gimple_call_internal_p): New function.
3475 (gimple_call_internal_fn): Likewise.
3476 (gimple_call_fntype): Return null for internal calls.
3477 (gimple_call_set_fntype): Assert that the function is not internal.
3478 (gimple_call_set_fn): Likewise.
3479 (gimple_call_set_fndecl): Likewise.
3480 (gimple_call_set_internal_fn): New function.
3481 (gimple_call_addr_fndecl): Handle null functions.
3482 (gimple_call_return_type): Likewise null types.
3483 * gimple.c (gimple_build_call_internal_1): New function.
3484 (gimple_build_call_internal): Likewise.
3485 (gimple_build_call_internal_vec): Likewise.
3486 (gimple_call_same_target_p): Likewise.
3487 (gimple_call_flags): Handle calls to internal functions.
3488 (gimple_call_fnspec): New function.
3489 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3490 (gimple_has_side_effects): Handle null functions.
3491 (gimple_rhs_has_side_effects): Likewise.
3492 (gimple_call_copy_skip_args): Handle calls to internal functions.
3493 * cfgexpand.c (expand_call_stmt): Likewise.
3494 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3495 * gimple-fold.c (gimple_fold_call): Handle null functions.
3496 (gimple_fold_stmt_to_constant_1): Don't fold
3497 calls to internal functions.
3498 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3500 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3501 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3502 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3503 (do_warn_unused_result): Likewise.
3504 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3505 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3506 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3507 the target of a call.
3508 (initialize_hash_element): Update accordingly.
3509 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3510 (iterative_hash_hashable_expr): Handle calls to internal functions.
3511 (print_expr_hash_elt): Likewise.
3512 * tree-ssa-pre.c (can_value_number_call): Likewise.
3513 (eliminate): Handle null functions.
3514 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3515 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3516 (find_func_aliases): Likewise.
3517 * value-prof.c (gimple_ic_transform): Likewise.
3518 (gimple_indirect_call_to_profile): Likewise.
3519 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3520 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3522 2011-04-19 Jan Hubicka <jh@suse.cz>
3524 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3525 * ipa-inline.c (inline_small_functions): Compute summaries first,
3526 populate heap later.
3528 2011-04-19 Jan Hubicka <jh@suse.cz>
3530 * cgraph.h (save_inline_function_body): Remove.
3531 * ipa-inline-transform.c: New file, broke out of...
3532 * ipa-inline.c: ... this one; Update toplevel comment.
3533 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3535 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3536 (cgraph_mark_inline_edge): Rename to inline_call; move to
3537 ipa-inline-transform.c.
3538 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3539 move to ipa-inline-transform.c
3540 (recursive_inlining, inline_small_functions, flatten_function,
3541 ipa_inline, inline_always_inline_functions,
3542 early_inline_small_functions): Update.
3543 (inline_transform): Move to ipa-inline-transform.c.
3544 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3546 * Makefile.in (ipa-inline-transform.o): New file.
3547 * cgraphunit.c (save_inline_function_body): Move to
3548 ipa-inline-transform.c
3550 2011-04-19 DJ Delorie <dj@redhat.com>
3552 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3553 registers if we already know there aren't any.
3554 (m32c_emit_epilogue): Don't emit a barrier here.
3555 (m32c_emit_eh_epilogue): Likewise.
3556 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3557 operands at expand time.
3558 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3560 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3561 duplicates. Provide aliases instead.
3562 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3563 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3566 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3568 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3569 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3570 (general_or_i64_p, sparc_register_move_cost): New function.
3572 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3574 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3575 Add lynx, mipssde. Sort table.
3577 2011-04-19 Xinliang David Li <davidxl@google.com>
3579 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3582 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3585 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3586 is a SUBREG with non-MODE_INT mode inside of it.
3588 2011-04-19 Martin Jambor <mjambor@suse.cz>
3590 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3591 also according to actual contants.
3592 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3593 (gimple_fold_call): Use it.
3594 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3596 2011-04-19 Martin Jambor <mjambor@suse.cz>
3598 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3599 non-pointer assignments.
3601 2011-04-19 Martin Jambor <mjambor@suse.cz>
3603 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3604 account anc_offset and otr_type from the indirect edge info.
3605 * ipa-prop.c (get_ancestor_addr_info): New function.
3606 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3607 get_ancestor_addr_info, call it.
3608 (ipa_note_param_call): Do not initialize information about polymorphic
3609 calls, return the indirect call graph edge. Remove the last
3610 parameter, adjust all callers.
3611 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3612 parameters. Initialize polymorphic information in the indirect edge.
3614 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3617 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3618 the types if they have different enumeration identifiers.
3620 2011-04-19 Jan Hubicka <jh@suse.cz>
3622 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3623 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3624 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3625 (optimize_function_for_size_p) ... here.
3627 2011-04-19 Richard Guenther <rguenther@suse.de>
3630 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3633 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3635 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3636 if DECL_NO_INLINE_WARNING_P is set on the function.
3638 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3641 * reload1.c (inc_for_reload): Return void. All callers changed.
3642 (emit_input_reload_insns): Don't try to delete previous output
3643 reloads to a register, or record spill_reg_store for autoincs.
3645 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3647 * gengtype.h: Updated copyright year.
3648 (struct input_file_st): Add inpisplugin field.
3649 (type_fileloc): New function.
3651 (write_typed_struct_alloc_def): Add gcc_assert.
3652 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3653 (write_typed_alloc_defns): Don't output for plugin files.
3654 (input_file_by_name): Clear inpisplugin field.
3655 (main): Set inpisplugin field for plugin files.
3657 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3659 * gengtype-state.c (string_eq): New.
3660 (read_state): Use string_eq instead of strcmp when creating the
3663 2011-04-19 Wei Guozhi <carrot@google.com>
3666 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3667 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3669 * config/arm/constraints.md (Uu): New constraint.
3670 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3672 2011-04-19 Tristan Gingold <gingold@adacore.com>
3674 * config.gcc (-*-*-*vms): Added.
3675 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3677 * config/vms/vms-ld.c: New file.
3678 * config/vms/vms-ar.c: New file.
3679 * config/vms/t-vmsnative: New file.
3681 2011-04-18 Xinliang David Li <davidxl@google.com>
3683 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3685 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3688 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3689 if TREE_TYPE (v) is non-NULL.
3691 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3692 gimple_get_virt_mehtod_for_binfo.
3693 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3694 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3696 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3698 2011-04-18 Michael Matz <matz@suse.de>
3699 Steve Ellcey <sje@cup.hp.com>
3701 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3702 use its mode as source mode if it isn't VOIDmode.
3704 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3706 * doc/passes.texi: Fill crossref nodes.
3708 2011-04-18 Jim Meyering <meyering@redhat.com>
3710 Fix doubled-word typos in comments and strings
3711 * config/alpha/vms-unwind.h: s/for for/for/
3712 * config/arm/unwind-arm.h: Likewise.
3713 * config/microblaze/microblaze.c: Likewise.
3714 * config/sh/constraints.md: s/in in/in/
3715 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3717 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3719 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3720 (AVX_FLOAT_MODE_P): Ditto.
3721 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3722 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3723 (AVX_VEC_FLOAT_MODE_P): Ditto.
3724 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3725 (UNSPEC_MASKSTORE): Ditto.
3726 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3727 Merge from <sse>_movmsk<ssemodesuffix> and
3728 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3729 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3731 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3732 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3733 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3735 2011-04-18 Jan Hubicka <jh@suse.cz>
3737 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3739 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3740 (want_inline_function_called_once_p): Break out the logic from
3742 (edge_badness): Ensure that profile is not misupdated.
3743 (lookup_recursive_calls): Prioritize by call frequencies.
3744 (inline_small_functions): Move program size estimates here;
3745 actually process whole queue even when unit growth has been
3746 met. (to properly compute inline_failed reasons and for the
3747 case unit size decrease.) Revisit comments on recursive inlining.
3748 (ipa_inline): Remove unit summary code; first inline hot calls
3749 of functions called once, cold calls next.
3750 (order, nnodes): Remove unused variables.
3751 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3752 (GTFILES): Remove ipa-inline.c
3753 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3755 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3757 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3759 2011-04-18 Jie Zhang <jie@codesourcery.com>
3760 Richard Earnshaw <rearnsha@arm.com>
3762 * arm.c (neon_builtin_type_bits): Remove.
3763 (typedef enum neon_builtin_mode): New.
3764 (T_MAX): Don't define.
3765 (typedef enum neon_builtin_datum): Remove bits, codes[],
3766 num_vars and base_fcode. Add mode, code and fcode.
3767 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3768 VAR10): Change accordingly.
3769 (neon_builtin_data[]): Change accordingly
3770 (arm_init_neon_builtins): Change accordingly.
3771 (neon_builtin_compare): Remove.
3772 (locate_neon_builtin_icode): Remove.
3773 (arm_expand_neon_builtin): Change accordingly.
3775 * arm.h (enum arm_builtins): Move to ...
3776 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3778 * arm.c (arm_builtin_decl): Declare.
3779 (TARGET_BUILTIN_DECL): Define.
3780 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3781 (arm_builtin_decls[]): New.
3782 (arm_init_neon_builtins): Store builtin declarations in
3783 arm_builtin_decls[].
3784 (arm_init_tls_builtins): Likewise.
3785 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3786 (arm_builtin_decl): New.
3788 2011-04-18 Richard Guenther <rguenther@suse.de>
3790 * tree.c (upper_bound_in_type): Build properly canonicalized
3792 (lower_bound_in_type): Likewise.
3794 2011-04-18 Richard Guenther <rguenther@suse.de>
3796 * gimple.h (gimple_call_addr_fndecl): New function.
3797 (gimple_call_fndecl): Use it.
3798 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3800 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3801 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3803 2011-04-18 Richard Guenther <rguenther@suse.de>
3806 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3808 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3811 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3812 DECL_IN_CONSTANT_POOL without RTL.
3814 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3815 Ira Rosen <ira.rosen@linaro.org>
3818 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3819 to match neon_vzip/vuzp/vtrn_internal.
3820 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3821 outputs explicitly dependent on both inputs.
3822 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3824 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3826 PR tree-optimization/48616
3827 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3828 whether the shift is by scalar or vector based on whether all SLP
3829 scalar stmts have the same rhs.
3831 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3833 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3836 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3838 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3841 2011-04-17 Jan Hubicka <jh@suse.cz>
3843 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3844 * cgrpahunit.c (cgraph_finalize_function): Do not set
3845 finalized_by_frontend.
3846 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3847 finalized_by_frontend.
3849 2011-04-17 Jan Hubicka <jh@suse.cz>
3851 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3852 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3853 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3854 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3856 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3858 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3860 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3863 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3864 is non-null before accessing it.
3865 (input_cgraph): Remove trailing spaces.
3867 2011-04-17 Revital Eres <revital.eres@linaro.org>
3869 * params.def (sms-min-sc): New param flag.
3870 * modulo-sched.c (sms_schedule): Use it.
3871 * doc/invoke.texi (sms-min-sc): Document it.
3873 2011-04-17 Jan Hubicka <jh@suse.cz>
3875 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3876 present, also set gimple_call_set_cannot_inline.
3877 * ipa-inline.c: Update toplevel comment.
3879 (cgraph_clone_inlined_nodes): Fix linebreaks.
3880 (cgraph_check_inline_limits): Restructure to ...
3881 (caller_growth_limits): ... this one; be more tolerant
3882 on growth in nested inline chains; add explanatory comment;
3883 fix stack accounting thinko introduced by previous patch.
3884 (cgraph_default_inline_p): Remove.
3885 (report_inline_failed_reason): New function.
3886 (can_inline_edge_p): New function.
3887 (can_early_inline_edge_p): New function.
3888 (leaf_node_p): Move upwards in file.
3889 (want_early_inline_function_p): New function.
3890 (want_inline_small_function_p): New function.
3891 (want_inline_self_recursive_call_p): New function.
3892 (cgraph_edge_badness): Rename to ...
3893 (edge_badness) ... this one; fix linebreaks.
3894 (update_edge_key): Update call of edge_baddness; add
3895 detailed dump about queue updates.
3896 (update_caller_keys): Use can_inline_edge_p and
3897 want_inline_small_function_p.
3898 (cgraph_decide_recursive_inlining): Rename to...
3899 (recursive_inlining): Use can_inline_edge_p and
3900 want_inline_self_recursive_call_p; simplify and remove no longer
3902 (cgraph_set_inline_failed): Remove.
3903 (add_new_edges_to_heap): Use can_inline_edge_p and
3904 want_inline_small_function_p.
3905 (cgraph_decide_inlining_of_small_functions): Rename to ...
3906 (inline_small_functions): ... this one; cleanup; use
3907 can/want predicates; cleanup debug ouput; work edges till fibheap
3908 is exhausted and do not stop once unit growth is reached; remove
3909 later loop processing remaining edges.
3910 (cgraph_flatten): Rename to ...
3911 (flatten_function): ... this one; use can_inline_edge_p
3912 and can_early_inline_edge_p predicates.
3913 (cgraph_decide_inlining): Rename to ...
3914 (ipa_inline): ... this one; remove unreachable nodes before
3915 inlining functions called once; simplify the pass.
3916 (cgraph_perform_always_inlining): Rename to ...
3917 (inline_always_inline_functions): ... this one; use
3918 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3919 (cgraph_decide_inlining_incrementally): Rename to ...
3920 (early_inline_small_functions): ... this one; simplify
3921 using new predicates; cleanup; make dumps prettier.
3922 (cgraph_early_inlining): Rename to ...
3923 (early_inliner): newer inline regular functions into always-inlines;
3924 fix updating of call stmt summaries.
3925 (pass_early_inline): Update for new names.
3926 (inline_transform): Fix formating.
3927 (gate_cgraph_decide_inlining): Rename to ...
3928 (pass_ipa_inline): ... this one.
3929 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3930 * ipa-inline-analysis.c (dump_inline_summary): Update.
3931 (compute_inline_parameters): Do not compute disregard_inline_limits;
3932 look for mismatching arguments.
3933 (estimate_growth): Fix handlig of non-trivial self recursion.
3934 (inline_read_summary): Do not read info->disregard_inline_limits.
3935 (inline_write_summary): Do not write info->disregard_inline_limits.
3936 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3937 and move all checks into can_inline_edge_p predicate; re-enable code
3938 comparing optimization levels.
3939 (expand_call_inline): Do not test inline_forbidden_into_p.
3940 * Makefile.in (ipa-inline.o): Update arguments.
3942 2011-04-17 Revital Eres <revital.eres@linaro.org>
3944 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3946 2011-04-17 Revital Eres <revital.eres@linaro.org>
3948 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3950 2011-04-17 Michael Matz <matz@suse.de>
3952 PR tree-optimization/48622
3954 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3955 in same order as they're written.
3957 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3959 * config/pa/predicates.md: Reorganize and simplify predicates.
3960 Eliminate duplicate code checks.
3961 (arith_operand): Rename to arith14_operand
3962 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3963 * config/pa/pa.md: Use renamed operands.
3964 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3965 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3966 arith11_operand, adddi3_operand, indexed_memory_operand,
3967 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3968 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3969 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3970 move_dest_operand, move_src_operand, prefetch_cc_operand,
3971 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3972 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3973 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3974 div_operand, int5_operand, movb_comparison_operator,
3975 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3976 arith_double_operand, ireg_operand, lhs_lshift_operand,
3977 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3978 integer_store_memory_operand): Likewise.
3979 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3980 (integer_store_memory_operand, read_only_operand,
3981 function_label_operand, borx_reg_operand,
3982 non_hard_reg_operand): Likewise.
3983 (eq_neq_comparison_operator): Delete unused operator.
3984 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3985 function_label_operand.
3986 (emit_move_sequence): Likewise.
3988 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3990 * config/i386/sse.md (sseunpackmode): New mode attribute.
3991 (ssepackmode): Ditto.
3992 (vec_pack_trunc_<mode>): Macroize expander from
3993 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3994 (vec_unpacks_lo_<mode>): Macroize expander from
3995 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3996 (vec_unpacks_hi_<mode>): Macroize expander from
3997 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3998 (vec_unpacku_lo_<mode>): Macroize expander from
3999 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4000 (vec_unpacku_hi_<mode>): Macroize expander from
4001 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4002 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4003 ix86_expand_sse4_unpack.
4004 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4006 2011-04-16 Jan Hubicka <jh@suse.cz>
4008 * cgraphbuild.c: Include ipa-inline.h.
4009 (reset_inline_failed): Use initialize_inline_failed.
4010 * cgraph.c: Include ipa-inline.h.
4011 (cgraph_create_node_1): Do not initialize estimated_growth.
4012 (initialize_inline_failed): More to ipa-inline-analysis.c
4013 (dump_cgraph_node): Do not dump inline flags.
4014 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4015 and disregard_inline_limits flags.
4016 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4017 time, size, estimated_growth.
4018 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4020 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4021 DECL_DISREGARD_INLINE_LIMITS.
4022 (cgraph_analyze_function): Do not initialize
4023 node->local.disregard_inline_limits.
4024 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4025 inlinable, versionable and disregard_inline_limits.
4026 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4027 cgraph_check_inline_limits, cgraph_default_inline_p,
4028 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4029 add_new_edges_to_heap): Update.
4030 (cgraph_decide_inlining_of_small_function): Update; set
4031 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4032 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4033 cgraph_decide_inlining_incrementally): Update.
4034 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4035 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4036 time, size and estimated_growth parameters.
4037 (estimate_edge_growth): Update.
4038 (initialize_inline_failed): Declare.
4039 * ipa-split.c: Include ipa-inline.h
4040 (execute_split_functions): Update.
4041 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4042 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4043 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4044 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4045 estimated_growth to INT_MIN.
4046 (inline_node_duplication_hook): Likewise.
4047 (dump_inline_summary): Dump new fields.
4048 (compute_inline_parameters): Update.
4049 (estimate_edge_time, estimate_time_after_inlining,
4050 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4051 inline_write_summary):
4052 (initialize_inline_failed): Move here from cgraph.c.
4053 * tree-sra.c: Include ipa-inline.h.
4054 (ipa_sra_preliminary_function_checks): Update.
4055 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4058 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4060 * config/i386/sse.md (V16): New mode iterator.
4062 (AVXMODEQI, AVXMODEDI): Remove.
4063 (sse2, sse3): New mode attribute.
4064 (mov<mode>): Use V16 mode iterator.
4065 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4066 (push<mode>1): Use V16 mode iterator.
4067 (movmisalign<mode>): Ditto.
4068 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4069 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4070 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4071 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4072 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4073 avx_movdqu<avxmodesuffix>.
4074 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4075 *avx_movdqu<avxmodesuffix>.
4076 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4077 avx_lddqu<avxmodesuffix>.
4078 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4079 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4080 avx_movnt<AVXMODEDI:mode>.
4081 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4082 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4084 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4087 * haifa-sched.c (prune_ready_list, schedule_block): Use
4088 sched_pressure_p rather than flag_sched_pressure.
4090 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4092 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4093 cgraph_get_node instead of cgraph_get_create_node.
4095 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4097 * cfgexpand.c (expand_debug_expr): Use
4098 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4100 2011-04-15 Michael Matz <matz@suse.de>
4102 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4103 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4104 * function.c (gimplify_parameters): Ditto.
4105 * gimplify.c (gimplify_vla_decl): Ditto.
4107 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4108 (gimple_call_set_alloca_for_var): New inline function.
4109 (gimple_call_alloca_for_var_p): Ditto.
4110 * gimple.c (gimple_build_call_from_tree): Remember
4111 CALL_ALLOCA_FOR_VAR_P state.
4112 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4114 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4115 calls if they were for VLA objects.
4117 2011-04-15 Martin Jambor <mjambor@suse.cz>
4119 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4122 2011-04-15 Martin Jambor <mjambor@suse.cz>
4125 * tree-emutls.c (lower_emutls_function_body): Call
4126 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4129 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4131 * c-decl.c (detect_field_duplicates): Call
4132 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4134 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4136 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4137 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4138 * ipa-pure-const.c (check_stmt): Call it.
4139 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4141 2011-04-15 Richard Guenther <rguenther@suse.de>
4143 PR tree-optimization/48290
4144 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4145 Properly decide inhibiting propagation based on the valueized
4146 operand. Do loop-closed SSA form preserving here ...
4147 (init_copy_prop): ... not here.
4149 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4152 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4153 (*ieee_smax<mode>3): Likewise.
4155 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4157 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4158 Replace match_operand with match_dup for the third operand in
4161 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4163 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4164 to track processing of conditionals. Update all callers.
4165 (try_combine, simplify_if_then_else): Update.
4167 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4169 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4172 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4174 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4175 instead of match_operand for operand 3.
4177 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4179 * recog.h (insn_operand_data): Add an "allows_mem" field.
4180 * genoutput.c (output_operand_data): Initialize it.
4181 * optabs.c (maybe_legitimize_operand_same_code): New function.
4182 (maybe_legitimize_operand): Use it when matching the original
4185 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4187 * gimplify.c: Fix issues in comments throughout.
4188 (voidify_wrapper_expr): Fix long line.
4189 (build_stack_save_restore): Likewise.
4190 (gimplify_loop_expr): Likewise.
4191 (gimplify_compound_lval): Likewise.
4192 (gimplify_init_ctor_eval): Likewise.
4193 (gimplify_modify_expr_rhs): Likewise.
4194 (omp_notice_threadprivate_variable): Likewise.
4196 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4198 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4199 original one if this is not a builtin function.
4201 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4204 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4205 offset it as needed based on top 2 bits in operands[3], change
4206 MEM mode to SFmode and mask those 2 bits away from operands[3].
4208 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4210 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4211 change from objc_declare_protocols() to objc_declare_protocol().
4213 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4215 * config/i386/sse.md (sse4_1): New mode attribute.
4216 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4217 avx_blend<ssemodesuffix><avxmodesuffix> and
4218 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4219 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4220 avx_blendv<ssemodesuffix><avxmodesuffix> and
4221 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4222 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4223 avx_dp<ssemodesuffix><avxmodesuffix> and
4224 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4225 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4226 (sse4_1_packusdw): Merge with *avx_packusdw.
4227 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4228 (sse4_1_pblendw): Merge with *avx_pblendw.
4229 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4230 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4231 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4233 (sse4_1_round<ssescalarmodesuffix>): Merge with
4234 *avx_round<ssescalarmodesuffix>.
4235 (aesenc): Merge with *avx_aesenc.
4236 (aesenclast): Merge with *avx_aesenclast.
4237 (aesdec): Merge with *avx_aesdec.
4238 (aesdeclast): Merge with *avx_aesdeclast.
4239 (pclmulqdq): Merge with *pclmulqdq.
4240 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4242 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4244 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4247 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4248 (align_local_variable): This. Update DECL_ALIGN.
4249 (add_stack_var): Updated.
4250 (expand_one_stack_var): Likewise.
4252 2011-04-14 Richard Guenther <rguenther@suse.de>
4254 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4256 (dse_initialize_block_local_data, dse_leave_block,
4257 record_voperand_set, get_stmt_uid): Likewise.
4258 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4259 (dse_optimize_stmt): Remove voperand set handling code.
4260 Simplify and improve to handle any kind of killing stmt.
4261 (dse_record_phi): Remove.
4262 (dse_enter_block): Simplify.
4263 (tree_ssa_dse): Likewise.
4264 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4266 2011-04-14 Jan Hubicka <jh@suse.cz>
4268 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4269 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4270 (cgraph_local_info): Remove inline_summary.
4271 * ipa-cp.c: Include ipa-inline.h.
4272 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4273 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4275 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4276 (input_overwrite_node): Do not set inline summary.
4277 (input_node): Do not stream inline summary.
4278 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4279 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4280 growth; we do not have inline parameters computed for that anyway.
4281 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4282 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4283 (inline_summary_t): New type and VECtor.
4284 (debug_inline_summary, dump_inline_summaries): Declare.
4285 (inline_summary): Use VOCtor.
4286 (estimate_edge_growth): Kill hack computing call stmt size directly.
4287 * lto-section-in.c (lto_section_name): Add inline section.
4288 * ipa-inline-analysis.c: Include lto-streamer.h
4289 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4290 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4291 (inline_summary_vec): Define.
4292 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4293 dump_inline_summaries): New functions.
4294 (estimate_function_body_sizes): Properly compute size/time of outgoing
4296 (compute_inline_parameters): Alloc inline_summary; do not compute
4297 size/time of incomming calls.
4298 (estimate_edge_time): Avoid missing time summary hack.
4299 (inline_read_summary): Read inline summary info.
4300 (inline_write_summary): Write inline summary info.
4301 (inline_free_summary): Free all hooks and inline summary vector.
4302 * lto-streamer.h: Add LTO_section_inline_summary section.
4303 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4304 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4306 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4308 * tree-vectorizer.h (vect_strided_store_supported): Add a
4309 HOST_WIDE_INT argument.
4310 (vect_strided_load_supported): Likewise.
4311 (vect_permute_store_chain): Return void.
4312 (vect_transform_strided_load): Likewise.
4313 (vect_permute_load_chain): Delete.
4314 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4315 count argument. Check that the count is a power of two.
4316 (vect_strided_load_supported): Likewise.
4317 (vect_permute_store_chain): Return void. Update after above changes.
4318 Assert that the access is supported.
4319 (vect_permute_load_chain): Likewise.
4320 (vect_transform_strided_load): Return void.
4321 * tree-vect-stmts.c (vectorizable_store): Update calls after
4322 above interface changes.
4323 (vectorizable_load): Likewise.
4324 (vect_analyze_stmt): Don't check for strided powers of two here.
4326 2011-04-14 Richard Guenther <rguenther@suse.de>
4328 PR tree-optimization/48590
4329 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4330 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4331 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4332 BUILT_IN_STACK_SAVE.
4333 * tree-ssa-dce.c (propagate_necessity): Handle
4334 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4336 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4338 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4341 2011-04-14 Richard Guenther <rguenther@suse.de>
4343 * tree.h (get_object_alignment_1): Declare.
4344 * builtins.c (get_object_alignment_1): Split out worker from ...
4345 (get_object_alignment): ... here.
4346 * fold-const.c (get_pointer_modulus_and_residue): Use
4347 get_object_alignment_1.
4349 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4351 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4353 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4354 parameter. Generalise code to handle arrays as well as vectors.
4355 (vect_setup_realignment): Update accordingly.
4356 * tree-vect-stmts.c (vectorizable_store): Likewise.
4357 (vectorizable_load): Likewise.
4359 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4361 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4362 within the per-copy loop.
4364 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4366 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4369 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4371 * doc/options.texi (Negative): Explicitly mention that the
4372 Negative chain must be circular.
4374 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4376 * function.h (block_chainon): Declare.
4377 * function.c (block_chainon): Define.
4379 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4380 Eric Weddington <eric.weddington@atmel.com>
4381 Georg-Johann Lay <avr@gjlay.de>
4383 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4385 (avr_init_builtins, avr_expand_builtin,
4386 avr_expand_delay_cycles, avr_expand_unop_builtin,
4387 avr_expand_binop_builtin ): New functions.
4388 (avr_builtin_id): New enum
4389 (struct avr_builtin_description): New struct
4390 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4391 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4393 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4394 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4395 UNSPECV_DELAY_CYCLES): new enumeration values
4396 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4397 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4398 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4399 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4400 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4401 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4402 "fmulsu"): New insns
4404 * config/avr/avr-c.c: fix line endings
4405 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4406 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4407 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4408 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4409 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4411 * doc/extend.texi (AVR Built-in Functions): New node
4412 (Target Builtins): Add documentation of AVR
4415 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4418 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4419 alone. Error if non-const data has attribute progmem.
4421 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4423 * tree.h (struct tree_constructor): Include tree_typed instead of
4425 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4426 TS_TYPED instead of TS_COMMON.
4428 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4430 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4431 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4432 (sse2_psadbw): Merge with *avx_psadbw.
4433 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4434 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4435 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4436 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4437 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4438 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4439 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4440 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4441 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4442 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4443 (ssse3_palignrti): Merge with *avx_palignrti.
4445 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4447 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4448 * tree-ssanames.c (fini_ssanames): VEC_free it.
4449 (make_ssa_name_fn): Update for VECness of free_ssanames.
4450 (release_ssa_name, release_dead_ssa_names): Likewise.
4451 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4453 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4454 TS_TYPED instead of TS_COMMON.
4456 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4458 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4459 statistics_counter_event.
4460 * tree-ssa-copyrename.c (stats): Define.
4461 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4462 statistics_counter_event.
4463 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4464 (bswap_stats, widen_mul_stats): Define.
4465 (insert_reciprocals): Increment rdivs_inserted.
4466 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4467 rfuncs_inserted. Add calls to statistics_counter_event.
4468 (execute_cse_sincos_1): Increment inserted.
4469 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4470 statistics_counter_event.
4471 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4472 of bswap_stats. Add calls to statistics_counter_event.
4473 (convert_mult_to_widen): Increment widen_mults_inserted.
4474 (convert_plusminus_to_widen): Increment maccs_inserted.
4475 (convert_mult_to_fma): Increment fmas_inserted.
4476 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4477 calls to statistics_counter_event.
4479 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4481 PR rtl-optimization/48455
4482 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4483 `temp_costs->mem_cost'.
4485 2011-04-13 Jan Hubicka <jh@suse.cz>
4487 * ipa-inline.h: New file.
4488 * ipa-inline-analysis.c: New file. Broken out of ...
4489 * ipa-inline.c: ... this file; update toplevel comment;
4490 include ipa-inline.h
4491 (inline_summary): Move to ipa-inline.h
4492 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4493 ipa-inline-analysis.c.
4494 (cgraph_estimate_time_after_inlining): Rename to
4495 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4496 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4497 to estimate_edge_growth.
4498 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4499 rename to estimate_size_after_inlining.
4500 (cgraph_mark_inline_edge): Update for new naming convention.
4501 (cgraph_check_inline_limits): Likewise.
4502 (cgraph_edge_badness): Likewise.
4503 (cgraph_decide_recursive_inlining): Likewise.
4504 (cgraph_decide_inlining_of_small_functions): Likewise.
4505 (cgraph_decide_inlining_incrementally): Likewise.
4506 (cgraph_estimate_growth): Rename to estimate_growth; move to
4507 ipa-inline-analysis.c.
4508 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4509 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4510 (compute_inline_parameters): Likewise.
4511 (compute_inline_parameters_for_current): Likewise.
4512 (pass_inline_parameters): Likewise.
4513 (inline_indirect_intraprocedural_analysis): Likewise.
4514 (analyze_function): Rename to inline_analyze_function; likewise.
4515 (add_new_function): Move to ipa-inline-analysis.c.
4516 (inline_generate_summary): Likewise.
4517 (inline_read_summary): Likewise.
4518 (inline_write_summary): Likewise.
4519 * Makefile.in (ipa-inline-analysis.c): New file.
4521 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4523 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4524 * configure: Regenerate.
4526 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4528 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4529 instead of tree_common.
4530 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4532 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4533 TS_TYPED rather than TS_COMMON.
4534 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4536 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4539 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4540 r20 around calls of __tablejump_elpm__
4542 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4545 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4547 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4549 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4551 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4552 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4553 (cfi_vec): New typedef.
4554 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4555 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4556 (cie_cfi_vec): New static variable.
4557 (cie_cfi_head): Delete.
4558 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4559 declaration changed. Use vector rather than list operations.
4560 (new_cfi): Don't initialize the dw_cfi_next field.
4561 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4562 rather than list operations.
4563 (lookup_cfa): Use vector rather than list operations.
4564 (output_cfis): New argument upto. Accept a cfi_vec rather than
4565 a dw_cfi_ref list head as argument. All callers changed.
4566 Iterate over the vector using upto as a maximum index.
4567 (output_all_cfis): New static function.
4568 (output_fde): Use vector rather than list operations. Use the
4569 new upto argument for output_cfis rather than manipulating a
4571 (dwarf2out_begin_prologue): Change initializations to match
4573 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4574 from the vector length rather than searching for the end of a list.
4575 Use output_all_cfis.
4576 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4578 2011-04-13 Nick Clifton <nickc@redhat.com>
4580 * config/rx/rx.md (movmemsi): Do not use this pattern when
4581 volatile pointers are involved.
4583 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4585 * config/i386/sse.md (pinsrbits): Remove.
4586 (sse2_packsswb): Merge with *avx_packsswb.
4587 (sse2_packssdw): Merge with *avx_packssdw.
4588 (sse2_packuswb): Merge with *avx_packuswb.
4589 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4590 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4591 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4592 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4593 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4594 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4595 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4596 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4597 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4598 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4599 (sse2_loadld): Merge with *avx_loadld.
4600 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4601 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4602 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4603 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4604 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4606 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4608 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4610 * print-tree.c (print_node): Likewise.
4611 * tree-inline.c (copy_tree_r): Likewise.
4612 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4613 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4614 instead of TS_COMMON.
4615 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4616 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4617 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4618 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4619 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4621 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4623 (TREE_CHAIN): Check for a TS_COMMON structure.
4624 (TREE_TYPE): Check for a TS_TYPED structure.
4626 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4628 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4629 cgraph_get_create_node instead of cgraph_node.
4631 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4633 * c-parser.c (c_parser_initelt): Updated call to
4634 objc_build_message_expr.
4635 (c_parser_postfix_expression): Likewise.
4637 2011-04-12 Kai Tietz <ktietz@redhat.com>
4639 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4640 MASK_MS_BITFIELD_LAYOUT bit.
4642 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4644 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4645 assert it is always true.
4646 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4649 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4651 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4652 compiling Objective-C to be more efficient.
4654 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4656 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4659 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4661 * recog.h, genoutput.c, optabs.c: Revert last patch.
4663 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4666 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4668 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4670 * recog.h (insn_operand_data): Add an "allows_mem" field.
4671 * genoutput.c (output_operand_data): Initialize it.
4672 * optabs.c (maybe_legitimize_operand_same_code): New function.
4673 (maybe_legitimize_operand): Use it when matching the original
4676 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4678 * genpreds.c (process_define_predicate): Move most processing
4679 to gensupport.c. Continue to validate the expression.
4680 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4681 (process_define_predicate): Move processing to gensupport.c.
4682 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4683 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4684 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4686 (valid_predicate_name_p): New function, split out from old
4687 genpreds.c:process_define_predicate.
4688 (process_define_predicate): New function, combining code from
4689 old genpreds.c and genrecog.c functions.
4690 (process_rtx): Call it for DEFINE_PREDICATE and
4691 DEFINE_SPECIAL_PREDICATE.
4693 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4695 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4696 size of a '%A' memory reference.
4697 (T_DREG, T_QREG): New neon_builtin_type_bits.
4698 (arm_init_neon_builtins): Assert that the load and store operands
4699 are neon_struct_operands.
4700 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4701 (NEON_ARG_MEMORY): New builtin_arg.
4702 (neon_dereference_pointer): New function.
4703 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4704 Handle NEON_ARG_MEMORY.
4705 (arm_expand_neon_builtin): Update after above interface changes.
4706 Use NEON_ARG_MEMORY for loads and stores.
4707 * config/arm/predicates.md (neon_struct_operand): New predicate.
4708 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4709 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4710 (V_four_elem): Tweak formatting.
4711 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4712 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4713 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4714 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4715 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4716 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4717 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4718 Use %A in the output template.
4719 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4720 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4721 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4722 the width of the memory access. Remove post-increment.
4723 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4725 2011-04-12 Nick Clifton <nickc@redhat.com>
4727 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4728 instruction for interrupt handlers if the target is the basic V850
4730 (expand_epilogue): Likewise.
4732 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4734 PR rtl-optimization/48549
4735 * combine.c (propagate_for_debug): Also stop after BB_END of
4736 this_basic_block. Process LAST and just stop processing after it.
4737 (combine_instructions): If last_combined_insn has been deleted,
4738 set last_combined_insn to its PREV_INSN.
4740 2011-04-12 Richard Guenther <rguenther@suse.de>
4742 PR tree-optimization/46076
4743 * gimple.h (struct gimple_statement_call): Add fntype field.
4744 (gimple_call_fntype): Adjust.
4745 (gimple_call_set_fntype): New function.
4746 * gimple.c (gimple_build_call_1): Set the call function type.
4747 * gimplify.c (gimplify_call_expr): Preserve the function
4748 type the frontend used for the call.
4749 (gimplify_modify_expr): Likewise.
4750 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4752 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4754 * tree-ssa.c (useless_type_conversion_p): Function pointer
4755 conversions are useless.
4757 2011-04-12 Martin Jambor <mjambor@suse.cz>
4759 * cgraph.h (cgraph_node): Remove function declaration.
4760 (cgraph_create_node): Declare.
4761 (cgraph_get_create_node): Likewise.
4762 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4763 Updated all callers.
4764 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4765 the decl does not already exist. Call cgraph_get_create_node instead
4767 (cgraph_get_create_node): New function.
4768 (cgraph_same_body_alias): Update comment.
4769 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4770 assert it does not return NULL.
4771 (cgraph_update_edges_for_call_stmt): Likewise.
4772 (cgraph_clone_edge): Likewise.
4773 (cgraph_create_virtual_clone): Likewise.
4774 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4775 instead of cgraph_node.
4776 (cgraph_add_new_function): Call cgraph_create_node or
4777 cgraph_get_create_node instead of cgraph_node.
4778 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4779 instead of cgraph_node.
4780 (record_eh_tables): Likewise.
4781 (mark_address): Likewise.
4782 (mark_load): Likewise.
4783 (build_cgraph_edges): Call cgraph_get_create_node instead
4785 (rebuild_cgraph_edges): Likewise.
4786 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4787 instead of cgraph_node.
4788 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4790 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4791 cgraph_create_node instead of cgraph_node.
4792 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4794 * lto-cgraph.c (input_node): Likewise.
4795 * lto-streamer-in.c (input_function): Likewise.
4796 * varasm.c (mark_decl_referenced): Likewise.
4797 (assemble_alias): Likewise.
4799 2011-04-12 Martin Jambor <mjambor@suse.cz>
4801 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4802 instead of cgraph_node and assert it does not return NULL.
4803 * lto-streamer-in.c (lto_read_body): Likewise.
4804 * omp-low.c (new_omp_context): Likewise.
4805 (create_task_copyfn): Likewise.
4806 * tree-emutls.c (lower_emutls_function_body): Likewise.
4807 * matrix-reorg.c (transform_allocation_sites): Likewise.
4809 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4812 * c-typeck.c (build_asm_expr): Error out on attempts to use
4813 void type outputs or inputs for constraints that allow reg or
4816 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4817 Richard Earnshaw <rearnsha@arm.com>
4820 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4821 to use sign-magnitude offsets. Reject unsupported unaligned
4822 cases. Add detailed description in comments.
4823 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4824 condition from TARGET_32BIT to TARGET_ARM.
4826 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4828 * tree.h (struct typed_tree): New.
4829 (struct tree_common): Include it instead of tree_base.
4830 (TREE_TYPE): Update for new location of type field.
4831 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4832 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4833 (union tree_node): Add typed field.
4834 * treestruct.def (TS_TYPED): New.
4835 * lto-streamer.c (check_handled_ts_structures): Handle it.
4836 * tree.c (MARK_TS_TYPED): New macro.
4837 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4839 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4841 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4842 (force_nonfallthru): Do not alter the loop nest if no basic block
4845 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4847 * config/i386/sse.md (VI): New mode iterator.
4849 (AVX256MODEI): Ditto.
4850 (AVXMODEF4P): Ditto.
4851 (avxvecpsmode): Ditto.
4852 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4853 (sse2_andnot<mode>3): New expander.
4854 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4855 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4856 (<any_logic:code><mode>3): Use VI mode iterator.
4857 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4858 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4859 (*andnottf3): Handle AVX three-operand constraints.
4860 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4862 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4863 Robert Millan <rmh@gnu.org>
4865 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4866 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4867 GNU_USER_DYNAMIC_LINKER64): Define.
4868 (REG_NAME): Don't undefine.
4869 (MD_UNWIND_SUPPORT): Undefine.
4870 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4871 (REG_NAME): Don't undefine.
4872 (MD_UNWIND_SUPPORT): Undefine.
4873 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4875 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4877 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4878 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4880 2011-04-11 Xinliang David Li <davidxl@google.com>
4882 * value-profile.c (check_ic_target): New function.
4883 (gimple_ic_transform): Sanity check indirect call target.
4884 * gimple-low.c (gimple_check_call_args): Interface change.
4885 (gimple_check_call_matching_types): New function.
4886 * tree-inline.c (tree_can_inline_p): Call new function.
4888 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4890 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4891 tree-pretty-print.h & realmpfr.h.
4893 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4896 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4897 (setup_allocno_and_important_classes): Ditto.
4899 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4901 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4902 GNU_USER_DYNAMIC_LINKER.
4903 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4904 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4905 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4906 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4907 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4908 GNU_USER_TARGET_OS_CPP_BUILTINS.
4909 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4910 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4911 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4912 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4913 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4914 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4915 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4916 GNU_USER_TARGET_OS_CPP_BUILTINS.
4917 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4918 GNU_USER_DYNAMIC_LINKER.
4919 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4920 GNU_USER_TARGET_OS_CPP_BUILTINS.
4921 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4922 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4923 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4924 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4925 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4926 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4927 GNU_USER_DYNAMIC_LINKER64): Remove.
4928 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4929 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4930 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4931 GNU_USER_DYNAMIC_LINKER.
4932 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4933 GNU_USER_TARGET_OS_CPP_BUILTINS.
4934 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4935 GNU_USER_TARGET_OS_CPP_BUILTINS.
4936 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4937 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4938 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4939 GNU_USER_TARGET_OS_CPP_BUILTINS.
4940 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4941 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4942 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4943 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4944 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4945 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4946 GNU_USER_DYNAMIC_LINKER.
4947 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4948 GNU_USER_TARGET_OS_CPP_BUILTINS.
4949 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4950 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4951 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4952 GNU_USER_DYNAMIC_LINKER.
4953 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4954 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4955 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4956 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4957 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4958 GNU_USER_DYNAMIC_LINKER.
4959 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4960 GNU_USER_DYNAMIC_LINKERN32.
4961 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4962 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4963 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4964 GNU_USER_DYNAMIC_LINKER32.
4965 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4967 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4968 GNU_USER_DYNAMIC_LINKER.
4969 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4970 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4971 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4973 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4974 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4975 GNU_USER_DYNAMIC_LINKER32.
4976 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4977 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4978 GNU_USER_DYNAMIC_LINKER.
4979 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4980 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4981 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4982 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4983 GNU_USER_DYNAMIC_LINKER64.
4984 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4986 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4987 GNU_USER_DYNAMIC_LINKER.
4988 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4989 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4990 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4991 GNU_USER_DYNAMIC_LINKER.
4992 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4993 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4994 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4995 GNU_USER_DYNAMIC_LINKER32.
4996 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4997 GNU_USER_DYNAMIC_LINKER64.
4998 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4999 GNU_USER_DYNAMIC_LINKER64.
5000 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5001 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5002 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5003 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5004 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5006 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5008 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5009 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5010 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5011 GNU_USER_DYNAMIC_LINKER.
5012 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5013 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5014 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5015 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5016 GNU_USER_DYNAMIC_LINKER64.
5017 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5018 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5019 GNU_USER_LINK_EMULATION.
5020 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5021 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5022 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5023 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5024 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5025 CPP_SPEC, CC1_SPEC): Remove.
5026 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5027 (GNU_USER_DYNAMIC_LINKER): Define.
5028 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5029 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5030 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5031 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5032 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5033 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5034 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5035 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5036 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5037 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5038 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5039 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5040 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5041 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5042 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5043 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5044 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5045 GNU_USER_DYNAMIC_LINKER.
5046 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5047 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5048 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5049 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5050 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5051 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5052 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5053 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5054 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5055 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5057 2011-04-11 Kai Tietz <ktietz@redhat.com>
5061 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5062 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5064 (ix86_is_msabi_thiscall): Removed.
5065 (ix86_is_type_thiscall): Likewise.
5066 (ix86_get_callcvt): New function.
5067 (ix86_comp_type_attributes): Simplify check.
5068 (ix86_function_regparm): Use ix86_get_callcvt for calling
5069 convention attribute checks.
5070 (ix86_return_pops_args): Likewise.
5071 (ix86_static_chain): Likewise.
5072 (x86_this_parameter): Likewise.
5073 (x86_output_mi_thunk): Likewise.
5074 (ix86_function_type_abi): Optimize check for types without attributes.
5075 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5076 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5077 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5079 (IX86_BASE_CALLCVT): Helper macro.
5080 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5081 Use ix86_get_callcvt for calling convention attribute checks and avoid
5082 symbol-decoration for stdcall in TARGET_RTD case.
5083 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5085 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5088 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5090 * config/i386/sse.md (VI_128): New mode iterator.
5091 (VI12_128): Rename from SSEMODE12.
5092 (VI14_128): Rename from SSEMODE14.
5093 (VI124_128): New mode iterator.
5094 (VI24_128): Rename from SSEMODE248.
5095 (VI248_128): Rename from SSEMODE248.
5096 (SSEMODE124C8): Remove.
5097 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5098 (*sse2_<plusminus_insn><mode>3): Merge with
5099 *avx_<plusminus_insn><mode>3.
5100 (*mulv8hi3): Merge with *avx_mulv8hi3.
5101 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5102 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5103 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5104 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5105 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5106 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5107 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5108 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5109 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5110 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5111 (*<smaxmin:code>v8hi3): Ditto.
5112 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5113 (*<smaxmin:code>v16qi3): Ditto.
5114 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5115 (*sse2_eq<mode>3): Ditto.
5116 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5117 (*sse2_gt<mode>3): Ditto.
5118 (vcondv2di): Split out of vcond<mode>.
5119 (vconduv2di): Split out of vcondu<mode>.
5121 2011-04-11 Richard Guenther <rguenther@suse.de>
5123 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5124 before calling tree_low_cst.
5126 2011-04-11 Richard Guenther <rguenther@suse.de>
5128 * stor-layout.c (layout_type): Compute all array index size operations
5129 in the original type.
5130 (initialize_sizetypes): Add comment.
5131 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5133 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5135 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5137 2011-04-11 Martin Jambor <mjambor@suse.cz>
5139 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5140 of cgraph_node, handle NULL return value.
5141 (cgraph_global_info): Likewise.
5142 (cgraph_rtl_info): Likewise.
5143 * tree-inline.c (estimate_num_insns): Likewise.
5144 * gimplify.c (unshare_body): Likewise.
5145 (unvisit_body): Likewise.
5146 (gimplify_body): Likewise.
5147 * predict.c (optimize_function_for_size_p): Likewise.
5148 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5149 (call_may_clobber_ref_p_1): Likewise.
5150 * varasm.c (function_section_1): Likewise.
5151 (assemble_start_function): Likewise.
5153 2011-04-11 Martin Jambor <mjambor@suse.cz>
5155 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5157 * final.c (rest_of_clean_state): Likewise.
5158 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5159 * passes.c (pass_init_dump_file): Likewise.
5160 (execute_all_ipa_transforms): Likewise.
5161 (function_called_by_processed_nodes_p): Likewise.
5162 * predict.c (maybe_hot_frequency_p): Likewise.
5163 (probably_never_executed_bb_p): Likewise.
5164 (compute_function_frequency): Likewise.
5165 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5166 (unnest_nesting_tree_1): Likewise.
5167 (lower_nested_functions): Likewise.
5168 * tree-optimize.c (execute_fixup_cfg): Likewise.
5169 (tree_rest_of_compilation): Likewise.
5170 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5171 * tree-sra.c (ipa_early_sra): Likewise.
5172 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5173 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5174 * ipa.c (record_cdtor_fn): Likewise.
5175 * ipa-inline.c (cgraph_early_inlining): Likewise.
5176 (compute_inline_parameters_for_current): Likewise.
5177 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5178 * ipa-pure-const.c (local_pure_const): Likewise.
5179 * ipa-split.c (split_function): Likewise.
5180 (execute_split_functions): Likewise.
5181 * cgraphbuild.c (build_cgraph_edges): Likewise.
5182 (rebuild_cgraph_edges): Likewise.
5183 (cgraph_rebuild_references): Likewise.
5184 (remove_cgraph_callee_edges): Likewise.
5185 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5186 (verify_cgraph_node): Likewise.
5187 (cgraph_analyze_functions): Likewise.
5188 (cgraph_preserve_function_body_p): Likewise.
5189 (save_inline_function_body): Likewise.
5190 (save_inline_function_body): Likewise.
5191 * tree-inline.c (copy_bb): Likewise.
5192 (optimize_inline_calls): Likewise.
5194 2011-04-11 Martin Jambor <mjambor@suse.cz>
5196 PR tree-optimization/48195
5197 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5198 ipa_check_create_edge_args.
5199 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5200 ipa_check_create_edge_args.
5201 * ipa-inline.c (inline_generate_summary): Do not call
5202 ipa_check_create_node_params and ipa_check_create_edge_args.
5203 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5204 ipa_check_create_edge_args.
5206 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5208 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5210 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5211 * function.c (record_hard_reg_sets): Likewise.
5212 * ira.c (compute_regs_asm_clobbered): Likewise.
5213 * sched-deps.c (sched_analyze_1): Likewise.
5214 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5216 2011-04-09 Xinliang David Li <davidxl@google.com>
5218 PR tree-optimization/PR48484
5219 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5220 has_valid_pred lazily
5222 2011-04-09 Duncan Sands <baldrick@free.fr>
5224 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5226 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5228 * combine.c (combine_validate_cost): Adjust comments. Set registered
5229 cost of I0 to zero at the end, if any.
5231 2011-04-08 Xinliang David Li <davidxl@google.com>
5233 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5234 to insane profile data.
5236 2011-04-08 Xinliang David Li <davidxl@google.com>
5238 * ipa-cp.c (ipcp_update_profiling): Correct
5239 negative scale factor due to insane profile data.
5241 2011-04-08 Xinliang David Li <davidxl@google.com>
5243 * final.c (dump_basic_block_info): New function.
5244 (final): Dump basic block.
5245 (final_scan_insn): Remove old dump.
5247 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5250 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5253 2011-04-08 Michael Matz <matz@suse.de>
5256 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5258 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5259 * rtl.h (rebuild_jump_labels_chain): Declare.
5260 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5261 insns inserted on edges.
5263 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5265 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5266 * config/arm/arm-arches.def: New.
5267 * config/arm/arm-opts.h: New.
5268 * config/arm/genopt.sh: New.
5269 * config/arm/arm-tables.opt: New (generated).
5270 * config/arm/arm.c (arm_handle_option, arm_target_help,
5271 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5272 (all_architectures): Get most table contents from arm-arches.def.
5273 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5274 arm_selected_tune here.
5275 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5276 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5277 (march=, mcpu=, mtune=): Use Enum and Var.
5278 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5279 (arm.o): Update dependencies.
5281 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5283 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5285 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5286 (write_typed_alloc_defns): Likewise.
5287 (main): Calls write_typed_alloc_defns with output_header.
5289 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5292 * ira-color.c (setup_profitable_hard_regs): Add comments.
5293 Don't take prohibited hard regs into account.
5294 (setup_conflict_profitable_regs): Rename to
5295 get_conflict_profitable_regs.
5296 (check_hard_reg_p): Check prohibited hard regs.
5298 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5300 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5301 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5302 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5304 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5307 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5308 move from floating point to shift amount register.
5309 (emit_move_sequence): Remove secondary reload support for floating
5310 point to shift amount amount register copies.
5311 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5312 amount register copies.
5313 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5314 register, return false if mode isn't a scalar integer mode.
5315 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5317 2011-04-08 Richard Guenther <rguenther@suse.de>
5319 * gimple.c (gimple_call_flags): Remove kludge.
5321 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5323 * sel-sched.c (sel_region_init): Move call to
5324 sel_setup_region_sched_flags after setup_current_loop_nest.
5326 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5328 PR rtl-optimization/48272
5329 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5330 init_insn_reg_pressure_info. Adjust a caller.
5331 * sched-int.h (init_insn_reg_pressure_info): Declare.
5332 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5333 when sched-pressure is enabled.
5335 2011-04-08 Richard Guenther <rguenther@suse.de>
5337 * gimple.c (gimple_set_modified): Do not queue calls to
5338 MODIFIED_NORETURN_CALLS here ...
5339 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5341 2011-04-08 Richard Guenther <rguenther@suse.de>
5344 * toplev.c (lang_dependent_init): Do not open asm_out_file
5345 in WPA mode, nor perform debug machinery initialization.
5346 (finalize): Do not unlink asm_out_file in WPA mode.
5348 2011-04-08 Richard Guenther <rguenther@suse.de>
5350 * gimple.h (gimple_call_fntype): New function.
5351 (gimple_call_return_type): Use it.
5352 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5353 * gimple-low.c (gimple_check_call_args): Likewise.
5354 * gimple.c (gimple_call_flags): Likewise.
5355 (gimple_call_arg_flags): Likewise.
5356 (gimple_call_return_flags): Likewise.
5357 * tree-cfg.c (verify_gimple_call): Likewise.
5358 (do_warn_unused_result): Likewise.
5359 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5360 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5362 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5364 PR rtl-optimization/48235
5365 * sel-sched.c (code_motion_process_successors): Recompute the last
5366 insn in basic block if control flow changed.
5367 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5368 Update condition for ilist_remove.
5370 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5372 PR rtl-optimization/48302
5373 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5374 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5375 it to record added preheader blocks.
5376 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5377 on to sel_add_loop_preheaders.
5378 (sel_region_init): Move call to setup_current_loop_nest after
5381 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5384 * cfgloop.h (loop_has_exit_edges): New helper.
5385 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5387 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5388 that have no exit edges.
5390 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5392 PR rtl-optimization/48442
5393 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5394 all callers. Adjust assert.
5396 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5398 PR tree-optimization/48377
5399 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5400 is_packed to true even for types with smaller TYPE_ALIGN than
5403 2011-04-08 Richard Guenther <rguenther@suse.de>
5406 * doc/tm.texi: Re-generate.
5408 2011-04-08 Wei Guozhi <carrot@google.com>
5411 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5412 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5413 * config/arm/arm.md (*push_multi): Change the length computation to
5416 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5418 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5419 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5420 * doc/tm.texi: Regenerate.
5421 * system.h (ASM_OUTPUT_BSS): Poison.
5422 * varasm.c (asm_output_bss): Remove function.
5423 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5425 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5426 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5427 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5428 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5430 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5432 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5434 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5436 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5438 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5441 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5443 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5444 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5445 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5447 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5448 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5449 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5450 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5451 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5452 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5453 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5454 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5455 options. Don't map other m68k options manually. Don't handle
5456 old-style options as canonical.
5457 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5458 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5460 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5462 * basic-block.h (force_nonfallthru): Move to...
5463 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5464 (force_nonfallthru): ...here.
5465 * cfghooks.c (force_nonfallthru): New function.
5466 * cfgrtl.c (force_nonfallthru): Rename into...
5467 (rtl_force_nonfallthru): ...this.
5468 (commit_one_edge_insertion): Do not set AUX field.
5469 (commit_edge_insertions): Do not discover new basic blocks.
5470 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5471 (cfg_layout_rtl_cfg_hooks): Likewise.
5472 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5473 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5474 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5476 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5478 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5481 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5483 * config/i386/sse.md: Update copyright year.
5484 (avxcvtvecmode): Remove.
5485 (sse_movhlps): Merge with *avx_movhlps.
5486 (sse_movlhps): Merge with *avx_movlhps.
5487 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5488 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5489 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5490 (sse_loadhps): Merge with *avx_loadhps.
5491 (sse_storelps): Merge with *avx_storelps.
5492 (sse_loadlps): Merge with *avx_loadlps.
5493 (sse_movss): Merge with *avx_movss.
5494 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5495 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5496 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5497 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5498 (vec_set<mode>_0): Ditto.
5499 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5500 (sse4_1_insertps): Merge with *avx_insertps.
5501 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5502 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5503 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5504 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5505 (sse2_storehpd): Merge with *avx_storehpd.
5506 (sse2_loadhpd): Merge with *avx_loadhpd.
5507 (sse2_loadlpd): Merge with *avx_loadlpd.
5508 (sse2_movsd): Merge with *avx_movsd.
5509 (*vec_concatv2df): Merge with *vec_concatv2df.
5511 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5514 * combine.c (combine_instructions): Add last_combined_insn,
5515 update it if insn is after it, pass it to all try_combine calls.
5516 (try_combine): Add last_combined_insn parameter, pass it instead of
5517 i3 to propagate_for_debug.
5519 2011-04-07 Nick Clifton <nickc@redhat.com>
5521 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5522 to handle MDR <-> data register transfers.
5523 (movhi_internal): Likewise.
5525 2011-04-07 Alan Modra <amodra@gmail.com>
5527 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5528 previous stack info.
5530 2011-04-07 Tom de Vries <tom@codesourcery.com>
5533 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5534 flow_find_cross_jump. Swap variables to implement backward replacement.
5535 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5537 2011-04-07 Tom de Vries <tom@codesourcery.com>
5540 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5541 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5543 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5544 src1 or src2. Redirect edges to the last basic block. Update
5545 frequency and count on multiple basic blocks in case of fallthru.
5547 2011-04-07 Tom de Vries <tom@codesourcery.com>
5550 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5552 (old_insns_match_p): Change return type. Replace return false/true
5553 with return dir_none/dir_both. Use can_replace_by.
5554 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5555 direction from dir_p. Register replacement direction in dir, last_dir
5556 and afterlast_dir. Handle new return type of old_insns_match_p using
5557 merge_dir. Return replacement direction in dir_p.
5558 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5559 return type of old_insns_match_p.
5560 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5561 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5562 flow_find_cross_jump.
5563 * basic-block.h (enum replace_direction): New type.
5564 (flow_find_cross_jump): Add parameter to declaration.
5566 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5568 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5569 (AVXMODEDCVTPS2DQ): Ditto.
5570 (VEC_FLOAT_MODE): Ditto.
5571 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5572 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5573 (<any_logic:code><mode>3): Use VF mode iterator.
5574 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5575 Use VF mode iterator.
5576 (copysign<mode>3): Use VF mode iterator.
5577 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5578 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5579 (*<any_logic:code><MODEF:mode>3): Merge with
5580 *avx_<any_logic:code><MODEF:mode>3.
5581 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5582 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5583 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5584 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5585 (sse2_cvtdq2ps): Use %v modifier.
5586 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5587 (avx_cvtps2dq<avxmodesuffix>): Remove.
5588 (sse2_cvtps2dq): Use %v modifier.
5589 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5590 (avx_cvttps2dq<avxmodesuffix>): Remove.
5591 (sse2_cvttps2dq): Use %v modifier.
5592 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5593 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5594 (sse2_cvtsd2siq): Fix insn template.
5595 (sse2_cvtsd2siq_2): Ditto.
5596 (sse2_cvttsd2siq): Ditto.
5597 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5598 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5600 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5602 * gcov-io.c: Use GCC Runtime Library Exception.
5604 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5607 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5608 as base_reg whatever register reg has been eliminated to, instead
5609 of hardcoding STACK_POINTER_REGNUM.
5611 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5613 * doc/tm.texi.in: Document C target hooks as separate from general
5615 * doc/tm.texi: Regenerate.
5616 * genhooks.c (struct hook_desc): Add docname field.
5617 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5619 (hook_array): Include c-target.def.
5620 (emit_documentation): Use docname field in output.
5621 (emit_init_macros): Take docname argument. Only emit definitions
5622 for hooks matching docname.
5623 (main): Expect additional arguments in all cases. Pass argument
5624 to emit_init_macros.
5625 * target.def: Move initial macro definitions and comments to
5626 target-hooks-macros.h.
5627 (gcc_targetcm): Move to c-family/c-target.def.
5628 * target.h (targetcm): Move declaration to c-family/c-target.h.
5629 * targhooks.c (default_handle_c_option): Move to
5631 * targhooks.h (default_handle_c_option): Move declaration to
5632 c-family/c-common.h.
5633 * target-hooks-macros.h: New file.
5634 * config.gcc (target_has_targetcm): Define and use to add to
5635 c_target_objs and cxx_target_objs.
5636 * config/default-c.c: New file.
5637 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5638 of target.h and target-def.h.
5639 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5640 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5641 darwin_check_cfstring_format_arg): Make static.
5642 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5643 TARGET_STRING_OBJECT_REF_TYPE_P,
5644 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5645 * config/darwin-protos.h (darwin_objc_construct_string,
5646 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5648 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5649 TARGET_STRING_OBJECT_REF_TYPE_P,
5650 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5651 * config/t-darwin (darwin-c.o): Update dependencies.
5652 * system.h (TARGET_HAS_TARGETCM): Poison.
5653 * Makefile.in (TARGET_H): Update.
5654 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5655 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5656 (default-c.o): New target.
5657 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5658 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5659 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5661 (build/genhooks.o): Update dependencies.
5663 2011-04-06 Richard Guenther <rguenther@suse.de>
5665 * ipa-inline.c (enum inlining_mode): Remove.
5666 (cgraph_flatten): Use some other token.
5667 (cgraph_edge_early_inlinable_p): New function, split out from ...
5668 (cgraph_perform_always_inlining): New function, split out from ...
5669 (cgraph_decide_inlining_incrementally): ... here.
5670 (cgraph_mark_inline_edge): Adjust.
5671 (cgraph_early_inlining): Re-structure.
5672 (pass_early_inline): Require SSA form.
5674 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5675 Julian Brown <julian@codesourcery.com>
5676 Mark Shinwell <shinwell@codesourcery.com>
5678 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5679 LO_REGS only for Thumb-1.
5680 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5681 be used in short instructions when optimising for size on Thumb-2.
5683 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5685 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5686 associated with user returns to be preserved.
5688 2011-04-06 Tristan Gingold <gingold@adacore.com>
5690 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5691 symbol_queue_size, DBXOUT_DECR_NESTING,
5692 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5693 if XCOFF_DEBUGGING_INFO.
5695 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5697 * config/i386/i386.md (attribute isa): New.
5698 (attribute enabled): New.
5699 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5700 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5701 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5702 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5703 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5704 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5705 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5706 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5708 * config/i386/sse.md (VF): New mode iterator.
5712 (SSEMODEF4): Remove.
5713 (attribute sse): Handle V8SF and V4DF modes.
5714 (<absneg:code><mode>2): Use VF mode iterator.
5715 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5717 (<plusminus_insn><mode>3): Use VF mode iterator.
5718 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5719 Use VF mode iterator.
5720 (<sse>_vm<plusminus_insn><mode>3): Merge with
5721 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5722 (mul<mode>3): Use VF mode iterator.
5723 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5724 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5726 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5727 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5728 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5729 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5731 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5732 Use VF1 mode iterator.
5733 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5734 (sqrt<VF2:mode>2): New expander.
5735 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5736 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5737 and sqrtv2df2. Use VF mode iterator.
5738 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5740 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5741 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5742 Use VF1 mode iterator.
5743 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5744 (<smaxmin:code><mode>3): Use VF mode iterator.
5745 (*<smaxmin:code><mode>3_finite): Merge with
5746 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5747 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5748 (<sse>_vm<smaxmin:code><mode>2): Merge with
5749 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5750 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5752 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5754 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5755 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5756 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5757 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5758 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5760 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5761 Use VF_128 mode iterator.
5762 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5764 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5765 VF_128 mode iterator.
5766 (vcond<mode>): Use VF mode iterator.
5767 * config/i386/predicates.md (sse_comparison_operator): Merge with
5768 avx_comparison_float_operator. Do not declare as special_predicate.
5769 * config/i386/i386.c (struct builtin_description): Update for renamed
5771 (ix86_expand_args_builtin): Ditto.
5772 (ix86_expand_sse_compare_mask): Ditto.
5774 2011-04-06 Richard Guenther <rguenther@suse.de>
5776 * tree-inline.c (estimate_num_insns): For calls simply account
5777 for all passed arguments and a used return value.
5779 2011-04-06 Richard Guenther <rguenther@suse.de>
5781 PR tree-optimization/47663
5782 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5783 call_stmt_time fields.
5784 (cgraph_edge_inlinable_p): Declare.
5785 (cgraph_edge_recursive_p): New inline function.
5786 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5787 (cgraph_clone_edge): Copy it.
5788 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5789 Account for call stmt time.
5790 (cgraph_estimate_time_after_inlining): Take edge argument.
5791 (cgraph_estimate_edge_growth): Account call stmt size.
5792 (cgraph_estimate_size_after_inlining): Take edge argument.
5793 (cgraph_mark_inline_edge): Adjust.
5794 (cgraph_check_inline_limits): Likewise.
5795 (cgraph_recursive_inlining_p): Remove.
5796 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5797 (cgraph_decide_recursive_inlining): Take edge argument and
5799 (cgraph_decide_inlining_of_small_functions): Do not avoid
5800 diags for recursive inlining here.
5801 (cgraph_flatten): Adjust.
5802 (cgraph_decide_inlining_incrementally): Likewise.
5803 (estimate_function_body_sizes): Remove call cost handling.
5804 (compute_inline_parameters): Initialize caller edge call costs.
5805 (cgraph_estimate_edge_growth): New function.
5806 (cgraph_estimate_growth): Use it.
5807 (cgraph_edge_badness): Likewise.
5808 (cgraph_check_inline_limits): Take an edge argument.
5809 (cgraph_decide_inlining_of_small_functions): Adjust.
5810 (cgraph_decide_inlining): Likewise.
5811 * tree-inline.c (estimate_num_insns): Only account for call
5812 return value if it is used.
5813 (expand_call_inline): Avoid diagnostics on recursive inline
5815 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5816 (input_edge): Input edge call costs.
5818 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5820 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5822 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5824 * doc/invoke.texi (Spec Files): Fix typo.
5826 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5828 * profile.c (branch_prob): Move declaration of local variable. Remove
5829 obsolete ??? comment. Expand the location explicitly instead of using
5830 the LOCATION_FILE and LOCATION_LINE macros.
5832 2011-04-06 Wei Guozhi <carrot@google.com>
5835 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5836 (arm_cond_branch): Likewise.
5837 (arm_cond_branch_reversed): Likewise.
5838 (arm_jump): Likewise.
5839 (push_multi): Likewise.
5840 * config/arm/constraints.md (Py): New constraint.
5842 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5845 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5847 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5848 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5849 #ifdef DBX_DEBUGGING_INFO.
5851 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5854 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5855 if old and new states differ.
5857 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5859 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5860 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5861 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5862 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5863 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5865 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5866 ColdFire options to -mcpu= options.
5868 2011-04-05 Jeff Law <law@redhat.com>
5870 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5871 check if BB is a successor of LOOP->header and return
5872 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5874 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5876 * cprop.c (struct reg_use): Remove.
5877 (reg_use_table): Make an array of RTX.
5878 (find_used_regs, constprop_register, local_cprop_pass,
5879 bypass_block): Simplify users of reg_use_table.
5880 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5881 on one of the uses found by find_used_regs.
5883 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5886 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5889 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5891 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5893 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5895 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5898 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5900 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5902 * combine.c: Include obstack.h.
5903 (struct insn_link): Define.
5904 (uid_log_links): Adjust type.
5905 (FOR_EACH_LOG_LINK): New macro.
5906 (insn_link_obstack): Declare.
5907 (alloc_insn_link): Define.
5908 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5909 type of link variables.
5910 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5911 (try_combine, record_promoted_values, distribute_notes): Likewise.
5912 (distribute_links): Likewise. Tweak prototype.
5913 (clear_log_links): Delete.
5914 (adjust_for_new_dest): Call alloc_insn_link.
5915 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5917 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5919 * gcse.c (modify_mem_list): Convert to an array of VECs.
5920 (canon_modify_mem_list, compute_transp): Tweak formatting.
5921 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5922 (load_killed_in_block_p): Likewise.
5923 (record_last_mem_set_info): Likewise.
5924 (clear_modify_mem_tables): Likewise.
5926 2011-04-05 Tom de Vries <tom@codesourcery.com>
5929 * function.c (emit_use_return_register_into_block): Only define if
5932 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5934 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5936 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5938 * config/rx/rx-opts.h: New.
5939 * config/rx/rx.c (rx_cpu_type): Remove.
5940 (rx_handle_option): Don't assert that global structures are in
5941 use. Access variables via opts pointer. Defer most handling of
5942 OPT_mint_register_. Use error_at.
5943 (rx_option_override): Handle deferred OPT_mint_register_ here.
5944 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5945 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5946 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5947 (rx_cpu_types): New Enum and EnumValue entries.
5948 (mint-register=): Use Defer and use Var accordingly.
5950 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5952 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5953 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5954 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5956 (debug_free_queue, debug_nesting, symbol_queue_index):
5958 * dbxout.c: ...to here. Make static.
5960 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5962 * gcse.c (modify_pair): Define. Define a VEC of it.
5963 (canon_modify_mem_list): Convert to an array of VECs.
5964 (free_insn_expr_list_list): Delete.
5965 (clear_modify_mem_tables): Call VEC_free instead.
5966 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5967 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5968 (canon_list_insert, compute_transp): Likewise.
5970 2011-04-05 Tom de Vries <tom@codesourcery.com>
5973 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5976 2011-04-05 Tom de Vries <tom@codesourcery.com>
5979 * function.c (emit_use_return_register_into_block): New function.
5980 (thread_prologue_and_epilogue_insns): Use
5981 emit_use_return_register_into_block.
5983 2011-04-05 Tom de Vries <tom@codesourcery.com>
5986 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5989 2011-04-05 Tom de Vries <tom@codesourcery.com>
5991 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5993 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5995 * config/arm/arm.md (define_constants for unspec): Replace with
5997 (define_constants for unspecv): Replace with define_c_enum.
5998 * config/arm/neon.md (define_constants for unspec): Replace with
6001 2011-04-04 Richard Henderson <rth@redhat.com>
6004 * dwarf2out.c (output_line_info): Always emit line info from
6005 at least one section.
6006 (dwarf2out_init): Create text_section_line_info here ...
6007 (set_cur_line_info_table): ... not here.
6009 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6012 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6015 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6017 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6019 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6020 (expr_equiv_p): Remove.
6021 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6022 (hash_scan_set): Update call to insert_set_in_table.
6023 (dump_hash_table): Dump <dest, src> pair.
6024 (lookup_set): Simplify. Lookup <dest, src> pair.
6025 (compute_transp): Remove, fold heavily simplified code into...
6026 (compute_local_properties): ...here. Expect COMP and TRANSP
6028 (find_avail_set): Take set directly from struct expr.
6029 (find_bypass-set): Likewise.
6030 (bypass_block): Likewise.
6031 (cprop_insn): Likewise. Remove redundant INSN_P test.
6033 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6034 checks on form of COND from find_implicit_sets to here.
6035 (find_implicit_sets): Cleanup control flow. Split critical edges
6036 if it exposes implicit sets. Allocate/resize implicit_sets as
6038 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6039 changed something. Run df_analyze after find_implicit_sets if any
6040 edges were split. Do not allocate implicit_sets here.
6042 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6043 (gcse_obstack): Renamed to cprop_obstack.
6044 (GNEW, GNEWVEC, GNEWVAR): Remove.
6046 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6047 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6048 (gcse_alloc): Likewise, and rename to cprop_alloc.
6049 (alloc_gcse_men, free_gcse_mem): Remove.
6050 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6051 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6052 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6054 * cprop.c (oprs_not_set_p): Remove.
6055 (mark_set, mark_clobber): Remove.
6056 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6057 (reg_not_set_p): New function.
6058 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6059 (cprop_insn): Likewise.
6060 (cprop_jump): Use FOR_EACH_EDGE.
6062 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6065 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6066 (rank_for_schedule): Use scheduled_insns vector instead of
6067 last_scheduled_insn.
6068 (ok_for_early_queue_removal): Likewise.
6069 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6071 (choose_ready): Likewise.
6072 (commit_schedule): Use VEC_iterate.
6073 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6074 a dbg_cnt, use it and ensure the first insn is in the ready list.
6075 (haifa_sched_init): Allocate scheduled_insns.
6076 (sched_extend_ready_list): Don't allocate it; reserve space.
6077 (haifa_sched_finish): Free it.
6079 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6081 * optc-gen.awk: Always remove type from Variable entry before
6082 recording in var_seen.
6084 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6086 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6087 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6088 call to tidy_fallthru_edges.
6090 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6092 * doc/options.texi (ToLower): Document.
6093 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6094 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6095 * opts.h (cl_option): Add cl_tolower field.
6096 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6097 arguments with lowercase strings.
6098 * config/rx/rx.opt (mcpu=): Add ToLower.
6099 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6102 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6104 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6106 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6108 * config/vax/vax.c: Include reload.h.
6110 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6112 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6113 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6114 (sparc_preferred_reload_class): New function.
6116 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6119 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6120 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6122 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6124 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6125 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6127 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6129 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6130 (ASM_OUTPUT_ALIGNED_BSS): Define.
6132 2011-04-03 Michael Matz <matz@suse.de>
6134 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6135 and next_slot members.
6136 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6137 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6138 (lto_streamer_cache_append): Declare.
6139 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6140 unsigned index, remove offset parameter, ensure that we append
6141 or update existing entries.
6142 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6143 parameter, update next_slot for append.
6144 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6146 (lto_streamer_cache_insert_at): Likewise.
6147 (lto_streamer_cache_append): New function.
6148 (lto_streamer_cache_lookup): Use unsigned index.
6149 (lto_streamer_cache_get): Likewise.
6150 (lto_record_common_node): Don't test tree_node_can_be_shared.
6151 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6152 (lto_streamer_cache_delete): Don't free offsets member.
6153 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6154 (lto_output_string_with_length): Use lto_output_data_stream.
6155 (lto_output_tree_header): Remove ix parameter, don't write it.
6156 (lto_output_builtin_tree): Likewise.
6157 (lto_write_tree): Adjust callers to above, don't track and write
6158 offset, write unsigned index.
6159 (output_unreferenced_globals): Don't emit all global vars.
6160 (write_global_references): Use unsigned indices.
6161 (lto_output_decl_state_refs): Likewise.
6162 (write_symbol): Likewise.
6163 * lto-streamer-in.c (lto_input_chain): Move earlier.
6164 (input_function): Use unsigned index.
6165 (input_alias_pairs): Don't read and then ignore all global vars.
6166 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6167 don't pass it back, use lto_streamer_cache_append.
6168 (lto_register_var_decl_in_symtab): Use unsigned index.
6169 (lto_register_function_decl_in_symtab): Likewise.
6170 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6172 (lto_get_builtin_tree): Don't read index, use
6173 lto_streamer_cache_append.
6174 (lto_read_tree): Adjust call to lto_materialize_tree.
6176 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6177 don't use function calls in arguments to MIN.
6179 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6182 * gimple.c (gimple_type_leader_entry): Mark deletable.
6184 2011-04-03 Alan Modra <amodra@gmail.com>
6186 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6188 2011-04-03 Michael Matz <matz@suse.de>
6190 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6192 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6194 2011-04-03 Michael Matz <matz@suse.de>
6196 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6197 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6198 without function context.
6199 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6200 current_function_decl and cfun.
6202 2011-04-03 Michael Matz <matz@suse.de>
6204 * tree.c (decl_init_priority_insert): Don't create entry for
6206 (decl_fini_priority_insert): Ditto.
6207 (fields_compatible_p, find_compatible_field): Remove.
6208 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6209 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6211 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6213 * combine.c (try_combine): Remove useless local variable.
6215 2011-04-03 Richard Guenther <rguenther@suse.de>
6216 Ira Rosen <ira.rosen@linaro.org>
6218 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6219 non-variable offsets and compare the remaining bases of the two
6220 accesses instead of looking for exact same data-ref.
6222 2011-04-02 Kai Tietz <ktietz@redhat.com>
6225 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6227 * i386.c (ix86_is_msabi_thiscall): New helper function.
6228 (ix86_is_type_thiscall): New helper function.
6229 (ix86_comp_type_attributes): Handle thiscall for method-functions
6231 (init_cumulative_args): Likewise.
6232 (find_drap_reg): Likewise.
6233 (ix86_static_chain): Likewise.
6234 (x86_this_parameter): Likewise.
6235 (x86_output_mi_thunk): Likewise.
6237 2011-04-01 Olivier Hainque <hainque@adacore.com>
6238 Nicolas Setton <setton@adacore.com>
6239 Eric Botcazou <ebotcazou@adacore.com>
6241 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6242 (add_gnat_descriptive_type_attribute): New function.
6243 (gen_array_type_die): Call it.
6244 (gen_enumeration_type_die): Likewise.
6245 (gen_struct_or_union_type_die): Likewise.
6246 (modified_type_die): Likewise.
6247 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6248 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6249 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6251 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6254 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6255 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6258 2011-03-17 Richard Guenther <rguenther@suse.de>
6261 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6262 origin for decls in other ltrans units.
6263 (input_varpool_node): Likewise.
6265 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6268 * expr.c (expand_assignment): Handle all possibilities
6269 if TO_RTX is CONCAT.
6270 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6271 (store_split_bit_field): If SUBREG_REG (op0) or
6272 op0 itself has smaller mode than word, return it
6273 for offset 0 and const0_rtx for out-of-bounds stores.
6274 If word is const0_rtx, skip it.
6276 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6278 * config/h8300/h8300.c (print_operand_address): Rename to...
6279 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6280 Call h8300_print_operand and h8300_print_operand_address instead of
6281 print_operand and print_operand_address. Declare.
6282 (print_operand): Renake to...
6283 (h8300_print_operand): ...this. Make static. Adjust comments.
6284 Call h8300_print_operand instead of print_operand. Declare.
6285 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6286 (h8300_register_move_cost): Likewise.
6287 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6288 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6289 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6290 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6291 * config/h8300/h8300-protos.h (print_operand): Delete.
6292 (print_operand_address): Delete.
6294 2011-04-01 Richard Henderson <rth@redhat.com>
6297 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6298 in strict mode before dwarf4. Re-order tests to early out
6299 before switching sections.
6301 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6303 * config/h8300/constraints.md: New file.
6304 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6305 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6306 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6307 * config/h8300/predicates.md (bit_operand): Likewise.
6308 (incdec_operand): Use satisfies_constraint_M and
6309 satisfies_constraint_O. Don't use C code block.
6310 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6311 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6312 (compute_mov_length): Use satisfies_constraint_G.
6313 (fix_bit_operand): Use satisfies_constraint_U.
6314 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6315 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6316 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6317 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6318 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6319 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6320 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6321 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6322 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6323 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6324 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6325 (EXTRA_MEMORY_CONSTRAINT): Delete.
6327 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6328 Michael Meissner <meissner@linux.vnet.ibm.com>
6331 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6332 operands, as per the specifications.
6334 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6335 (vec_extract_evenv4sf): Ditto.
6336 (vec_extract_evenv8hi): Ditto.
6337 (vec_extract_evenv16qi): Ditto.
6338 (vec_extract_oddv4si): Ditto.
6340 2011-03-31 Mark Wielaard <mjw@redhat.com>
6342 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6343 high_pc attribute if the CU has no associated code. Only output
6344 DW_AT_entry_pc for CU if not generating strict dwarf and
6347 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6349 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6350 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6352 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6353 * final.c (final_start_function): Call the new function rather
6354 than using a NULL argument for dwarf2out_frame_debug.
6356 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6357 that contains the prologue.
6359 * haifa-sched.c (queue_insn): New arg REASON. All callers
6360 changed. Print it in debugging output.
6362 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6364 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6365 Split most of the code into...
6366 (begin_move_insn): ... here. New function.
6367 (ebb_sched_info): Add a pointer to it.
6368 * haifa-sched.c (scheduled_insns): New static variable.
6369 (sched_extend_ready_list): Allocate it.
6370 (schedule_block): Use it to record the order of scheduled insns.
6371 Perform RTL changes to move insns only after all scheduling
6372 decisions have been made.
6373 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6374 begin_move_insn field.
6375 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6376 * sched-int.h (struct haifa_sched_info): Remove second argument
6377 from begin_schedule_ready hook. Add new member begin_move_insn.
6378 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6379 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6381 * haifa-sched.c (prune_ready_list): New function, broken out of
6383 (schedule_block): Use it.
6385 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6387 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6389 2011-04-01 Kai Tietz <ktietz@redhat.com>
6391 * config.gcc (*-*-mingw*): Allow as option the
6392 posix threading model.
6393 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6394 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6396 (CPP_SPEC): Add pthread/no-pthread handling.
6397 (LIB_SPEC): Likewise.
6398 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6399 (LIB_SPEC): Likewise.
6400 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6401 flag to pass -pthread option for shared libgcc build.
6402 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6403 for shared libgcc build.
6404 * config/i386/t-mingw-pthread: New file.
6405 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6406 New define to enable use of library pthread by default.
6407 * config/i386/mingw.opt (pthread): New driver option.
6408 (no-pthread): New driver option.
6409 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6410 * config/i386/mingw-w64.opt: Likewise.
6412 2011-04-01 Gary Funck <gary@intrepid.com>
6414 * c-decl.c (grokdeclarator): Fix formatting.
6416 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6418 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6419 instead of n_operands.
6420 (set_storage_via_setmem): Likewise.
6421 * optabs.c (maybe_gen_insn): Likewise.
6422 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6423 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6424 (mips_expand_builtin_direct): Likewise.
6425 * config/spu/spu.c (expand_builtin_args): Likewise.
6427 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6429 * recog.h (insn_data_d): Add n_generator_args.
6430 * genoutput.c (data): Likewise.
6431 (output_insn_data): Print it.
6432 (max_opno, num_dups): Delete.
6433 (scan_operands): Just fill in "d->operand[...]".
6434 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6436 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6438 * gensupport.h (pattern_stats): New structure.
6439 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6440 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6441 (max_operand_1, max_operand_vec): Delete.
6442 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6444 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6446 * emit-rtl.c (emit_pattern_after_setloc): New function.
6447 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6448 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6449 (emit_pattern_after): New function.
6450 (emit_insn_after, emit_jump_insn_after): Call it.
6451 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6452 (emit_pattern_before_setloc): New function.
6453 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6454 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6456 (emit_pattern_before): New function.
6457 (emit_insn_before, emit_jump_insn_before): Call it.
6458 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6460 2011-03-31 Richard Henderson <rth@redhat.com>
6462 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6463 (dw_separate_line_info_entry): Remove.
6464 (enum dw_line_info_opcode): New.
6465 (dw_line_info_entry): Use it.
6466 (dw_line_info_table, dw_line_info_table_p): New.
6467 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6468 (line_info_table, line_info_label_num): Remove.
6469 (line_info_table_in_use): Remove.
6470 (separate_line_info_table): Remove.
6471 (separate_line_info_table_allocated): Remove.
6472 (separate_line_info_table_in_use): Remove.
6473 (LINE_INFO_TABLE_INCREMENT): Remove.
6474 (line_info_label_num): New.
6475 (cur_line_info_table): New.
6476 (text_section_line_info, cold_text_section_line_info): New.
6477 (separate_line_info): New.
6478 (SEPARATE_LINE_CODE_LABEL): Remove.
6479 (print_dwarf_line_table): Remove.
6480 (debug_dwarf): Don't dump it.
6481 (output_one_line_info_table): New.
6482 (output_line_info): Use it.
6483 (new_line_info_table): New.
6484 (set_cur_line_info_table): New.
6485 (dwarf2out_switch_text_section): Use it.
6486 (dwarf2out_begin_function): Likewise.
6487 (push_dw_line_info_entry): New.
6488 (dwarf2out_source_line): Rewrite for new line info tables.
6489 (dwarf2out_init): Remove dead initailizations.
6491 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6493 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6495 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6496 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6497 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6498 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6499 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6500 * opt-functions.awk (flag_init, switch_bit_fields): New.
6501 (switch_flags): Don't handle flags moved to bit-fields. Don't
6502 generate CL_MISSING_OK or CL_SAVE.
6503 * optc-gen.awk: Update to generate bit-field output as well as
6505 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6506 bit-field instead of CL_REJECT_DRIVER flag.
6507 * opts-common.c (generate_canonical_option,
6508 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6509 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6510 instead of CL_REJECT_NEGATIVE flag.
6511 * toplev.c (print_switch_values): Use cl_report bit-field instead
6514 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6516 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6517 a zero minimum index only if it is redundant.
6519 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6521 PR rtl-optimization/48381
6522 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6523 instead of ira_class_hard_reg_index for calculating conflicting
6526 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6528 * cprop.c: Clean up hash table building.
6529 (reg_avail_info): Remove.
6530 (oprs_available_p): Remove.
6531 (record_last_reg_set_info): Remove.
6532 (record_last_set_info): Remove.
6533 (reg_available_p): New function.
6534 (gcse_constant_p): Do not treat unfolded conditions as constants.
6535 (make_set_regs_unavailable): New function.
6536 (hash_scan_set): Simplify with new reg_available_p.
6537 (compute_hash_table_work): Traverse insns stream only once.
6538 Do not compute reg_avail_info. Traverse insns in reverse order.
6539 Record implicit sets after recording explicit sets from the block.
6541 2011-03-31 Michael Matz <matz@suse.de>
6543 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6545 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6547 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6548 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6549 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6550 (h8300_mode_dependent_address_p): New function.
6551 (h8300_get_index): Make static.
6553 2011-03-31 Jeff Law <law@redhat.com>
6555 * reload1.c (elimination_effects): Fix typo in recent change.
6557 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6558 typo potentially leading to null pointer dereference.
6560 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6561 (setup_save_areas): Corresponding changes to avoid useless
6564 * jump.c (reversed_comparison_code_parts): Avoid successive return
6565 statements when REVERSE_CONDITION is defined.
6567 * expr.c (expand_assignment): Avoid useless assignments.
6568 (expand_expr_real_1): Likewise.
6569 (expand_expr_real_2): Avoid useless statements.
6571 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6573 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6575 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6578 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6580 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6583 * doc/tm.texi.in (TARGET_VERSION): Remove.
6584 * doc/tm.texi: Regenerate.
6585 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6586 * collect2.c (main): Don't use TARGET_VERSION.
6587 * mips-tdump.c (main): Don't use TARGET_VERSION.
6588 * mips-tfile.c (main): Don't use TARGET_VERSION.
6589 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6590 * config/rs6000/vxworksae.h: Remove.
6591 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6592 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6593 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6594 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6595 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6596 * config/arm/arm.h (TARGET_VERSION): Remove.
6597 * config/arm/coff.h (TARGET_VERSION): Remove.
6598 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6599 * config/arm/elf.h (TARGET_VERSION): Remove.
6600 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6601 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6602 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6603 * config/arm/pe.h (TARGET_VERSION): Remove.
6604 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6605 * config/arm/semi.h (TARGET_VERSION): Remove.
6606 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6607 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6608 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6609 * config/avr/avr.h (TARGET_VERSION): Remove.
6610 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6611 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6612 * config/frv/frv.h (TARGET_VERSION): Remove.
6613 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6614 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6615 * config/i386/darwin.h (TARGET_VERSION): Remove.
6616 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6617 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6618 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6619 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6620 * config/i386/gnu.h (TARGET_VERSION): Remove.
6621 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6622 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6623 * config/i386/linux.h (TARGET_VERSION): Remove.
6624 * config/i386/linux64.h (TARGET_VERSION): Remove.
6625 * config/i386/lynx.h (TARGET_VERSION): Remove.
6626 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6627 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6628 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6629 * config/i386/netware.h (TARGET_VERSION): Remove.
6630 * config/i386/nto.h (TARGET_VERSION): Remove.
6631 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6632 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6633 * config/ia64/elf.h (TARGET_VERSION): Remove.
6634 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6635 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6636 * config/ia64/linux.h (TARGET_VERSION): Remove.
6637 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6638 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6639 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6640 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6641 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6642 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6643 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6644 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6645 * config/m68k/linux.h (TARGET_VERSION): Remove.
6646 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6647 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6648 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6649 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6650 * config/mep/mep.h (TARGET_VERSION): Remove.
6651 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6652 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6653 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6654 * config/mips/linux.h (TARGET_VERSION): Remove.
6655 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6656 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6657 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6658 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6659 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6660 * config/pa/pa.h (TARGET_VERSION): Remove.
6661 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6662 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6663 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6664 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6665 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6666 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6667 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6668 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6669 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6670 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6671 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6672 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6673 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6674 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6675 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6676 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6677 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6678 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6679 * config/s390/linux.h (TARGET_VERSION): Remove.
6680 * config/s390/s390.h (TARGET_VERSION): Remove.
6681 * config/s390/tpf.h (TARGET_VERSION): Remove.
6682 * config/score/score.h (TARGET_VERSION): Remove.
6683 * config/sh/linux.h (TARGET_VERSION): Remove.
6684 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6685 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6686 * config/sh/sh.h (TARGET_VERSION): Remove.
6687 * config/sh/sh64.h (TARGET_VERSION): Remove.
6688 * config/sh/superh.h (TARGET_VERSION): Remove.
6689 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6690 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6691 * config/sparc/linux.h (TARGET_VERSION): Remove.
6692 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6693 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6694 TARGET_NAME32, TARGET_NAME): Remove.
6695 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6696 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6697 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6698 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6699 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6700 * config/spu/spu.h (TARGET_VERSION): Remove.
6701 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6702 * config/v850/v850.h (TARGET_VERSION): Remove.
6703 * config/vax/linux.h (TARGET_VERSION): Remove.
6704 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6705 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6706 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6708 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6711 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6712 frame-related from frame-unrelated adjustments to the stack pointer.
6714 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6716 * common.opt (fdebug-types-section): Move earlier.
6717 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6719 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6721 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6724 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6726 * tree.h (CASE_CHAIN): Define.
6727 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6728 (gimple_redirect_edge_and_branch): Likewise.
6730 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6733 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6736 2011-03-30 Jeff Law <law@redhat.com>
6738 * PR bootstrap/48371
6739 * reload1.c (reload): Fix botch in last change.
6741 * reload.h (struct reload): Fix typo introduced in last change.
6743 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6745 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6746 Undocumented. Remove help text.
6747 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6750 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6752 * doc/options.texi (NegativeAlias): Document.
6753 (Alias): Mention NegativeAlias.
6754 * opt-functions.awk: Handle NegativeAlias.
6755 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6756 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6757 * opts.h (CL_NEGATIVE_ALIAS): Define.
6758 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6759 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6761 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6763 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6764 mno-spe and mno-isel instead of mspe=no and -misel=no.
6766 2011-03-29 Mark Wielaard <mjw@redhat.com>
6768 * common.opt (fdebug-types-section): New flag.
6769 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6770 * dwarf2out.c (use_debug_types): New define.
6771 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6772 (print_die): Guard output of type unit signatures using
6774 (build_abbrev_table): Replace assert of dwarf_version >= 4
6775 with assert on use_debug_types.
6776 (size_of_die): Likewise.
6777 (unmark_dies): Likewise.
6778 (value_format): Decide AT_ref_external form on use_debug_types.
6779 (output_die): Replace dwarf_version version check guard with
6780 use_debug_types where appropriate.
6781 (modified_type_die): Likewise.
6782 (gen_reference_type_die): Likewise.
6783 (dwarf2out_start_source_file): Likewise.
6784 (dwarf2out_end_source_file): Likewise.
6785 (prune_unused_types_walk_attribs): Likewise.
6786 (dwarf2out_finish): Likewise.
6788 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6790 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6792 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6794 PR rtl-optimization/48332
6795 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6796 mode of input operand N and modeN to its actual mode.
6798 2011-03-30 Jeff Law <law@redhat.com>
6800 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6801 define accessor macro.
6802 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6803 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6804 (reg_equiv_init): Likewise.
6805 (reg_equivs_size): New variable.
6806 (reg_equiv_init_size): Remove.
6807 (allocate_initial_values): Move prototype to here from....
6808 * integrate.h (allocate_initial_values): Remove prototype.
6809 * integrate.c: Include reload.h.
6810 (allocate_initial_values): Corresponding changes.
6811 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6812 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6813 (update_equiv_regs): Corresponding changes.
6814 (ira): Corresponding changes.
6815 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6816 (push_secondary_reload): Corresponding changes.
6817 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6818 (make_memloc, find_reloads_address): Corresponding changes.
6819 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6820 (find_reloads_address_1): Corresponding changes.
6821 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6822 (refers_to_regno_for_reload_p): Corresponding changes.
6823 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6824 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6825 * reload1.c: Include ggc.h.
6826 (grow_reg_equivs): New function.
6827 (replace_pseudos_in, reload): Corresponding changes.
6828 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6829 (eliminate_regs_1, elimination_effects): Corresponding changes.
6830 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6831 (delete_output_reload): Likewise.
6832 * caller-save.c (mark_referenced_regs): Corresponding changes.
6833 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6834 * frv/predicates.md (frv_load_operand): Corresponding changes.
6835 * microblaze/microblaze.c (double_memory_operand): Corresponding
6837 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6838 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6839 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6840 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6841 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6843 * pa/pa.c (emit_move_sequence): Corresponding changes.
6844 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6846 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6849 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6850 structure modes. Don't check neon_vector_mem_operand for
6851 vector or structure modes.
6853 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6854 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6857 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6858 operand 1 and reshuffle the operands to match.
6859 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6861 2011-03-30 Christian Schüler <cschueler@gmx.de>
6864 * config/c.opt (F): Added 'Driver' to -F option.
6867 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6869 * config/darwin.opt: Added '-arch' option.
6871 2011-03-30 Nick Clifton <nickc@redhat.com>
6873 * config/rx/rx.md: Add peepholes and patterns to combine
6874 extending loads and simple arithmetic instructions.
6875 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6876 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6877 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6878 modes to use pre-decrement and post-increment addressing.
6879 (rx_is_restricted_memory_address): Add range checking of REG+INT
6881 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6882 (rx_memory_move_cost): Adjust cost of stores.
6883 (rx_adjust_insn_length): New function.
6885 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6888 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6889 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6890 matching arg00/arg01 types.
6892 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6894 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6895 last_location to UNKNOWN_LOCATION.
6897 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6900 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6903 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6904 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6907 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6909 (sparc_cpu): Likewise.
6910 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6913 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6917 PR rtl-optimization/48345
6918 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6919 hard regs for given mode from profitable regs when doing secondary
6922 2011-03-29 Jeff Law <law@redhat.com>
6925 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6926 do_not_duplicate field.
6927 (lookup_redirection_data): Corresponding changes.
6928 (create_duplicates): Always create a template block.
6929 (redirect_edges): Remove code which reused the original block
6930 when it was going to become unreachable code.
6931 (thread_block): Don't set do_not_duplicate field.
6933 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6935 * lto-opts.c (register_user_option_p, lto_register_user_option):
6936 Make type argument unsigned.
6937 * lto-streamer.h (lto_register_user_option): Make type argument
6939 * opth-gen.awk: Make CL_* macros unsigned.
6940 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6941 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6942 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6943 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6944 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6945 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6946 (find_opt): Make lang_mask argument unsigned.
6948 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6950 PR rtl-optimization/48331
6951 PR rtl-optimization/48334
6952 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6953 for any used algorithm.
6955 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6957 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6960 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6962 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6963 (alpha_option_override): Don't set alpha_sr_alias_set.
6964 (emit_frame_store_1): Use gen_frame_mem rather than calling
6966 (alpha_expand_epilogue): Ditto.
6968 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6970 PR tree-optimization/48290
6971 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6972 vectorization, check that relevant phis in the basic block after
6973 the inner loop are really inner loop's exit phis.
6975 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6978 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6979 (cached_dw_loc_list_def): New structure.
6980 (cached_dw_loc_list): New typedef.
6981 (cached_dw_loc_list_table): New variable.
6982 (cached_dw_loc_list_table_hash): New function.
6983 (cached_dw_loc_list_table_eq): Likewise.
6984 (add_location_or_const_value_attribute): Take a bool cache_p.
6985 Cache the list when the parameter is true.
6986 (gen_formal_parameter_die): Update caller.
6987 (gen_variable_die): Likewise.
6988 (dwarf2out_finish): Likewise.
6989 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6990 while generating debug info for the decl.
6991 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6992 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6993 (resolve_addr): Cache the result of resolving a chain of
6996 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6998 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6999 conflict object hard regset nodes have intersecting hard reg sets.
7001 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7002 after regstat_init_n_sets_and_refs.
7004 * ira.c: Add more comments at the top.
7005 (setup_stack_reg_pressure_class, setup_pressure_classes):
7006 Add comments how we compute the register pressure classes.
7007 (setup_allocno_and_important_classes): Add more comments.
7008 (setup_class_translate_array, reorder_important_classes)
7009 (setup_reg_class_relations): Add comments.
7011 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7014 * ira-color.c: Add 2011 to the Copyright line.
7015 (assign_hard_reg): Add more comments.
7016 (improve_allocation): Ditto.
7018 * ira-costs.c: Add 2011 to the Copyright line.
7019 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7021 (setup_regno_cost_classes_by_mode): Ditto.
7023 Initial patches from ira-improv branch:
7025 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7027 * ira-build.c (ira_create_object): Remove initialization of
7028 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7029 (ira_create_allocno): Remove initialization of
7030 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7031 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7032 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7033 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7034 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7035 Initialize ALLOCNO_ADD_DATA.
7036 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7037 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7039 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7040 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7042 * ira.c (ira_reallocate): Remove.
7043 (setup_pressure_classes): Call
7044 ira_init_register_move_cost_if_necessary. Use
7045 ira_register_move_cost instead of ira_get_register_move_cost.
7046 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7047 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7049 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7050 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7051 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7052 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7053 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7054 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7056 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7057 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7058 (struct allocno_color_data): New.
7059 (allocno_color_data_t): New typedef.
7060 (allocno_color_data): New definition.
7061 (ALLOCNO_COLOR_DATA): New macro.
7062 (struct object_color_data): New.
7063 (object_color_data_t): New typedef.
7064 (object_color_data): New definition.
7065 (OBJECT_COLOR_DATA): New macro.
7066 (update_copy_costs, calculate_allocno_spill_cost): Call
7067 ira_init_register_move_cost_if_necessary. Use
7068 ira_register_move_cost instead of ira_get_register_move_cost.
7069 (move_spill_restore, update_curr_costs): Ditto.
7070 (allocno_spill_priority): Make it inline.
7071 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7072 (struct coalesce_data, coalesce_data_t): New.
7073 (allocno_coalesce_data): New definition.
7074 (ALLOCNO_COALESCE_DATA): New macro.
7075 (merge_allocnos, coalesced_allocno_conflict_p): Use
7076 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7077 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7078 (coalesce_allocnos): Ditto.
7079 (setup_coalesced_allocno_costs_and_nums): Ditto.
7080 (collect_spilled_coalesced_allocnos): Ditto.
7081 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7082 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7083 (coalesce_spill_slots): Ditto.
7084 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7085 free allocno_coalesce_data.
7087 * ira-conflicts.c: Fix formatting.
7088 (process_regs_for_copy): Call
7089 ira_init_register_move_cost_if_necessary. Use
7090 ira_register_move_cost instead of ira_get_register_move_cost.
7091 (build_object_conflicts): Optimize.
7093 * ira-costs.c (record_reg_classes): Optimize. Call
7094 ira_init_register_move_cost_if_necessary. Use
7095 ira_register_move_cost, ira_may_move_in_cost, and
7096 ira_may_move_out_cost instead of ira_get_register_move_cost and
7097 ira_get_may_move_cost.
7098 (record_address_regs): Ditto.
7099 (scan_one_insn): Optimize.
7100 (find_costs_and_classes): Optimize.
7101 (process_bb_node_for_hard_reg_moves): Call
7102 ira_init_register_move_cost_if_necessary. Use
7103 ira_register_move_cost instead of ira_get_register_move_cost.
7105 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7106 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7107 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7108 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7110 (ira_initiate_emit_data, ira_finish_emit_data)
7111 (create_new_allocno): New functions.
7112 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7113 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7114 Use ira_register_move_cost instead of ira_get_register_move_cost.
7116 * ira-int.h: Fix some comments.
7117 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7118 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7119 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7120 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7122 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7123 bitfield after mode. Make hard_regno a short int. Make
7124 hard_regno short. Remove first_coalesced_allocno and
7125 next_coalesced_allocno. Move mem_optimized_dest_p,
7126 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7127 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7128 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7129 temp, colorable_p. Add new member add_data.
7130 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7131 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7132 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7133 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7134 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7135 (ALLOCNO_ADD_DATA): New macro.
7136 (ira_emit_data_t): New typedef.
7137 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7138 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7139 from struct ira_allocno.
7140 (ALLOCNO_EMIT_DATA): New macro.
7141 (ira_allocno_emit_data, allocno_emit_reg): New.
7142 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7143 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7144 (OBJECT_ADD_DATA): New macro.
7145 (ira_reallocate): Remove.
7146 (ira_initiate_emit_data, ira_finish_emit_data): New.
7147 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7148 (ira_init_register_move_cost_if_necessary): New.
7149 (ira_object_conflict_iter_next): Merge into
7150 ira_object_conflict_iter_cond.
7151 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7153 * ira-live.c (process_single_reg_class_operands): Call
7154 ira_init_register_move_cost_if_necessary. Use
7155 ira_register_move_cost instead of ira_get_register_move_cost.
7157 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7159 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7161 * ira-costs.c: Fix formatting.
7162 (cost_classes, cost_classes_num): Remove.
7163 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7164 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7165 (cost_classes_del, cost_classes_htab): New.
7166 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7167 (initiate_regno_cost_classes, setup_cost_classes): New.
7168 (setup_regno_cost_classes_by_aclass): New.
7169 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7170 (record_reg_classes): Use regno_cost_classes instead of
7171 cost_classes. Move checking opposite operand up.
7172 (record_address_regs): Use regno_cost_classes
7173 instead of cost_classes.
7174 (scan_one_insn): Ditto. Use always general register.
7175 (print_allocno_costs): Use regno_cost_classes instead of
7177 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7178 (find_costs_and_classes): Set up cost classes for each registers.
7179 Use also their mode for this. Use regno_cost_classes instead of
7181 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7183 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7184 (ira_costs, ira_set_pseudo_classes): Call
7185 initiate_regno_cost_classes and finish_regno_cost_classes.
7187 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7189 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7191 * target.def (ira_cover_classes): Remove.
7193 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7195 * doc/tm.texi.in: Ditto.
7197 * ira-conflicts.c: Remove mentioning cover classes from the file.
7198 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7199 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7201 * targhooks.c (default_ira_cover_classes): Remove.
7203 * targhooks.h (default_ira_cover_classes): Ditto.
7205 * haifa-sched.c: Remove mentioning cover classes from the file.
7206 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7207 ira_pressure_classes and ira_pressure_classes_num instead of
7208 ira_reg_class_cover_size and ira_reg_class_cover. Use
7209 sched_regno_pressure_class instead of sched_regno_cover_class.
7210 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7211 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7213 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7214 classes from the file.
7215 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7216 (struct object_hard_regs, struct object_hard_regs_node): New.
7217 (struct ira_object): New members profitable_hard_regs,
7218 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7219 (struct ira_allocno): Rename cover_class to aclass. Rename
7220 cover_class_cost and updated_cover_class_cost to class_cost and
7221 updated_class_cost. Remove splay_removed_p and
7222 left_conflict_size. Add new members colorable_p.
7223 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7224 (ALLOCNO_COLORABLE_P): New macro.
7225 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7226 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7227 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7228 (OBJECT_...): Rename parameter C to O.
7229 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7230 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7231 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7232 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7233 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7234 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7235 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7236 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7237 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7238 x_ira_reg_class_subunion.
7239 (ira_max_memory_move_cost, ira_max_register_move_cost)
7240 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7241 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7242 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7243 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7244 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7245 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7246 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7247 (ira_tune_allocno_costs_and_cover_classes): Rename to
7248 ira_tune_allocno_costs.
7249 (ira_debug_hard_regs_forest): New.
7250 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7251 (ira_object_conflict_iter_next): Fix comments.
7252 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7253 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7254 cover_class to aclass.
7255 (ira_allocate_and_accumulate_costs): Ditto.
7256 (ira_allocate_and_set_or_copy_costs): Ditto.
7258 * opts.c (decode_options): Remove ira_cover_class check.
7260 * ira-color.c: Remove mentioning cover classes from the file. Use
7261 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7262 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7263 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7264 (splay-tree.h): Remove include.
7265 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7266 before copy_freq_compare_func.
7267 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7268 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7270 (hard_regs_roots, hard_regs_node_vec): Ditto.
7271 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7272 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7273 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7274 (create_new_object_hard_regs_node): Ditto.
7275 (add_new_object_hard_regs_node_to_forest): Ditto.
7276 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7277 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7279 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7280 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7281 (remove_unused_object_hard_regs_nodes): Ditto.
7282 (enumerate_object_hard_regs_nodes): Ditto.
7283 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7284 (object_hard_regs_subnode_t): Ditto.
7285 (struct object_hard_regs_subnode): Ditto.
7286 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7287 (setup_object_hard_regs_subnode_index): Ditto.
7288 (get_object_hard_regs_subnodes_num): Ditto.
7289 (form_object_hard_regs_nodes_forest): Ditto.
7290 (finish_object_hard_regs_nodes_tree): Ditto.
7291 (finish_object_hard_regs_nodes_forest): Ditto.
7292 (allocnos_have_intersected_live_ranges_p): Rename to
7293 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7294 (pseudos_have_intersected_live_ranges_p): Rename to
7295 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7296 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7297 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7298 (update_copy_costs): Remove assert. Skip cost update if the hard
7299 reg does not belong the class.
7300 (assign_hard_reg): Process only profitable hard regs.
7301 (uncolorable_allocnos_num): Make it scalar.
7302 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7303 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7304 and ira_reg_class_max_nregs.
7305 (bucket_allocno_compare_func): Check frequency first.
7306 (sort_bucket): Add compare function as a parameter.
7307 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7308 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7309 (push_allocno_to_stack): Rewrite for checking new allocno
7311 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7312 (push_only_colorable): Pass new parameter to sort_bucket.
7313 (push_allocno_to_spill): Remove.
7314 (allocno_spill_priority_compare): Make it inline and rewrite.
7315 (splay_tree_allocate, splay_tree_free): Remove.
7316 (allocno_spill_sort_compare): New function.
7317 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7318 build and use splay tree. Choose first allocno in uncolorable
7319 allocno bucket to spill. Remove setting spill cost.
7320 (all_conflicting_hard_regs): Remove.
7321 (setup_allocno_available_regs_num): Check only profitable hard
7322 regs. Print info about hard regs nodes.
7323 (setup_allocno_left_conflicts_size): Remove.
7324 (put_allocno_into_bucket): Don't call
7325 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7326 (improve_allocation): New.
7327 (color_allocnos): Call setup_profitable_hard_regs,
7328 form_object_hard_regs_nodes_forest, improve_allocation,
7329 finish_object_hard_regs_nodes_forest. Setup spill cost.
7330 (print_loop_title): Use pressure classes.
7331 (color_allocnso): Ditto.
7332 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7333 and allocnos_for_spilling.
7334 (ira_sort_regnos_for_alter_reg): Don't setup members
7335 {first,next}_coalesced_allocno.
7336 (color): Remove allocating and freeing removed_splay_allocno_vec.
7337 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7338 prohibited_class_mode_regs.
7340 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7342 (update_allocno_pressure_excess_length): Use pressure classes.
7343 (inc_register_pressure, dec_register_pressure): Check for pressure
7345 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7346 pressure class. Use ira_reg_class_nregs instead of
7347 ira_reg_class_max_nregs.
7348 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7349 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7350 (single_reg_class): Use ira_reg_class_nregs instead of
7351 ira_reg_class_max_nregs.
7352 (process_bb_node_lives): Use pressure classes.
7354 * ira-emit.c: Remove mentioning cover classes from the file. Use
7355 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7356 (change_loop): Use pressure classes.
7357 (modify_move_list): Call ira_set_allocno_class instead of
7358 ira_set_allocno_cover_class.
7360 * ira-build.c: Remove mentioning cover classes from the file. Use
7361 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7362 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7363 ALLOCNO_UPDATED_CLASS_COST instead of
7364 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7365 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7366 (ira_create_allocno): Remove initialization of
7367 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7368 ALLOCNO_COLORABLE_P.
7369 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7370 Update conflict regs for the objects.
7371 (create_cap_allocno): Remove assert. Don't propagate
7372 ALLOCNO_AVAILABLE_REGS_NUM.
7373 (ira_free_allocno_costs): New function.
7374 (finish_allocno): Change a part of code into call of
7375 ira_free_allocno_costs.
7376 (low_pressure_loop_node_p): Use pressure classes.
7377 (object_range_compare_func): Don't compare classes.
7378 (setup_min_max_conflict_allocno_ids): Ditto.
7380 * loop-invariant.c: Remove mentioning cover classes from the file.
7381 Use ira_pressure_classes and ira_pressure_classes_num instead of
7382 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7383 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7384 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7385 Use reg_allocno_class instead of reg_cover_class.
7386 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7387 STACK_REG_COVER_CLASS.
7388 (get_regno_cover_class): Rename to get_regno_pressure_class.
7389 (move_loop_invariants): Initialize and finalize regstat.
7391 * ira.c: Remove mentioning cover classes from the file. Add
7392 comments about coloring without cover classes. Use ALLOCNO_CLASS
7393 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7394 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7395 setup_class_subset_and_memory_move_costs.
7396 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7397 (setup_cover_and_important_classes): Rename to
7398 setup_allocno_and_important_classes.
7399 (setup_class_translate_array): New.
7400 (setup_class_translate): Call it for allocno and pressure classes.
7401 (cover_class_order): Rename to allocno_class_order.
7402 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7403 of ira_class_translate.
7404 (reorder_important_classes): Set up ira_important_class_nums.
7405 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7406 (print_class_cover): Rename to print_classes. Add parameter.
7407 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7408 Print pressure classes too.
7409 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7410 setup_reg_subclasses.
7411 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7412 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7413 (setup_prohibited_class_mode_regs): Use
7414 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7415 (clarify_prohibited_class_mode_regs): New function.
7416 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7417 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7418 (ira_init_once): Initialize them.
7419 (free_register_move_costs): Process them.
7420 (ira_init): Move calls of find_reg_classes and
7421 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7422 Call clarify_prohibited_class_mode_regs.
7423 (ira_no_alloc_reg): Remove.
7424 (too_high_register_pressure_p): Use pressure classes.
7426 * sched-deps.c: Remove mentioning cover classes from the file.
7427 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7428 ira_pressure_classes and ira_pressure_classes_num instead of
7429 ira_reg_class_cover_size and ira_reg_class_cover.
7430 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7431 sched_regno_pressure_class instead of sched_regno_cover_class.
7432 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7433 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7435 * ira.h: Add 2010 to Copyright.
7436 (ira_no_alloc_reg): Remove external.
7437 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7438 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7439 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7440 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7441 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7442 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7443 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7444 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7445 x_ira_no_alloc_regs.
7446 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7447 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7448 ira_allocno_classes_num and ira_allocno_classes.
7449 (ira_class_translate): Rename to ira_allocno_class_translate.
7450 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7451 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7452 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7453 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7454 (ira_no_alloc_regs): New.
7456 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7457 classes from the file. Use ALLOCNO_CLASS instead of
7458 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7459 ALLOCNO_COVER_CLASS_COST.
7460 (regno_cover_class): Rename to regno_aclass.
7461 (record_reg_classes): Use ira_reg_class_subunion instead of
7462 ira_reg_class_union.
7463 (record_address_regs): Check overflow.
7464 (scan_one_insn): Ditto.
7465 (print_allocno_costs): Print total mem cost fore regional allocation.
7466 (print_pseudo_costs): Use REG_N_REFS.
7467 (find_costs_and_classes): Use classes intersected with them on the
7468 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7469 ira_reg_class_union. Use ira_allocno_class_translate and
7470 regno_aclass instead of ira_class_translate and regno_cover_class.
7471 Modify code for finding regno_aclass. Setup preferred classes for
7473 (setup_allocno_cover_class_and_costs): Rename to
7474 setup_allocno_class_and_costs. Use regno_aclass instead of
7475 regno_cover_class. Use ira_set_allocno_class instead of
7476 ira_set_allocno_cover_class.
7477 (init_costs, finish_costs): Use regno_aclass instead of
7479 (ira_costs): Use setup_allocno_class_and_costs instead of
7480 setup_allocno_cover_class_and_costs.
7481 (ira_tune_allocno_costs_and_cover_classes): Rename to
7482 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7483 by processing objects. Use ira_reg_class_max_nregs instead of
7484 ira_reg_class_nregs.
7486 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7488 * sched-int.h: Remove mentioning cover classes from the file.
7489 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7491 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7492 classes from the file.
7493 (struct reg_pref): Rename coverclass into allocnoclass.
7494 (reg_cover_class): Rename to reg_allocno_class.
7496 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7498 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7500 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7502 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7504 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7506 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7508 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7510 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7512 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7514 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7516 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7517 (i386_ira_cover_classes): Ditto.
7519 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7521 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7523 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7525 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7527 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7529 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7531 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7532 (mips_ira_cover_classes): Ditto.
7534 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7536 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7538 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7540 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7542 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7544 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7545 (IRA_COVER_CLASSES_VSX): Ditto.
7547 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7548 (rs6000_ira_cover_classes): Ditto.
7550 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7552 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7554 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7556 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7558 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7560 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7562 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7564 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7566 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7568 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7570 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7573 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7574 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7575 dw_fde_unlikely_section_end_label, cold_in_std_section,
7576 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7577 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7579 (output_fde): Use dw_fde_second_{begin,end} if second is
7580 true, otherwise dw_fde_{begin,end}.
7581 (output_call_frame_info): Test dw_fde_second_begin != NULL
7582 instead of dw_fde_switched_sections.
7583 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7584 fields, initialize new fields. Initialize in_std_section
7585 unconditionally from the first partition.
7586 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7587 dw_fde_second_begin is non-NULL.
7588 (dwarf2out_switch_text_section): Stop initializing removed
7589 dw_fde_struct fields, initialize new fields, initialize
7590 also dw_fde_end here. Set dw_fde_switch_cfi even when
7591 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7592 (struct var_loc_list_def): Add last_before_switch field.
7593 (arange_table, arange_table_allocated, arange_table_in_use,
7594 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7595 (size_of_aranges): Count !in_std_section and !second_in_std_section
7596 hunks in fdes, instead of looking at arange_table_in_use.
7597 (output_aranges): Add aranges_length argument, don't call
7598 size_of_aranges here. Instead of using aranges_table*
7599 emit ranges for fdes when !in_std_section resp.
7600 !second_in_std_section.
7601 (dw_loc_list): Break ranges crossing section switch.
7602 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7603 use dw_fde_second_end instead of dw_fde_end as end of last range.
7604 (gen_subprogram_die): Don't call add_arange. Use
7605 dw_fde_{begin,end} for first partition and if switched
7606 section dw_fde_second_{begin,end} for the second.
7607 (var_location_switch_text_section_1,
7608 var_location_switch_text_section): New functions.
7609 (dwarf2out_begin_function): Initialize cold_text_section even
7610 when function_section () isn't text_section.
7611 (prune_unused_types): Don't walk arange_table.
7612 (dwarf2out_finish): Don't needlessly test
7613 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7614 If info_section_emitted, call size_of_aranges and if it indicates
7615 non-empty .debug_aranges, call output_aranges with the computed
7616 size. Stop using removed dw_fde_struct fields, use
7617 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7621 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7622 create ENTRY_VALUE if incoming or address of incoming's MEM
7624 * dwarf2out.c (mem_loc_descriptor): Don't emit
7625 DW_OP_GNU_entry_value of DW_OP_fbreg.
7626 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7627 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7628 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7629 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7631 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7632 is a REG_P or MEM_P with REG_P address, compute hash directly
7633 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7634 (preserve_only_constants): Don't clear VALUES forwaring
7635 ENTRY_VALUE to some other VALUE.
7637 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7639 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7642 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7644 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7645 block before expanding the statement.
7646 (expand_gimple_stmt_1): Likewise. Set them here...
7647 (expand_gimple_stmt): ...and not here. Tidy.
7648 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7651 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7653 * Makefile.in: New rule for cprop.o.
7654 * gcse.c: Move constant/copy propagation to cprop.c.
7655 (compute_local_properties): Only handle expression tables.
7656 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7657 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7658 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7659 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7660 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7661 compute_cprop_data, find_used_regs, try_replace_reg,
7662 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7663 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7664 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7665 find_bypass_set, reg_killed_on_edge, bypass_block,
7666 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7667 execute_rtl_cprop, pass_rtl_cprop): Move to...
7668 * cprop.c: ...here. New file, constant/copy propagation for RTL
7669 moved from gcse.c to here with minor cleanups in duplicated code.
7671 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7673 * config/i386/i386.c (flag_opts): Fix a typo in
7674 -mavx256-split-unaligned-store.
7676 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7678 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7679 LIBCALL_VALUE): Remove macros.
7680 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7681 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7682 (h8300_function_value, h8300_libcall_value,
7683 h8300_function_value_regno_p): New functions.
7685 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7687 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7689 2011-03-28 Jeff Law <law@redhat.com>
7691 * tree-ssa-threadupdate.c (redirect_edges): Call
7692 create_edge_and_update_destination_phis as needed.
7693 (create_edge_and_update_destination_phis): Accept new BB argument.
7694 All callers updated.
7695 (thread_block): Do not update the profile when threading around
7696 intermediate blocks.
7697 (thread_single_edge): Likewise.
7698 (determine_bb_domination_status): If BB is not a successor of the
7699 loop header, return NONDOMINATING.
7700 (register_jump_thread): Note when we register a jump thread around
7701 an intermediate block.
7702 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7703 (thread_across_edge): Use it.
7705 2011-03-28 Tristan Gingold <gingold@adacore.com>
7707 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7708 when for_return is 2.
7710 2011-03-28 Jeff Law <law@redhat.com>
7712 * var-tracking.c (canonicalize_values_mark): Delete unused
7714 (canonicalize_values_star, set_variable_part): Likewise.
7715 (clobber_variable_part, delete_variable_part): Likewise.
7717 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7719 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7721 2011-03-28 Martin Jambor <mjambor@suse.cz>
7723 * tree-inline.c (expand_call_inline): Do not check that destination
7725 (optimize_inline_calls): Assert that destination node is analyzed.
7726 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7727 not call tree_lowering_passes.
7728 * cgraph.h (cgraph_analyze_function): Declare.
7729 * cgraphunit.c (cgraph_analyze_function): Make public.
7731 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7733 * config/sparc/sparc-opts.h: New.
7734 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7735 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7736 (sparc_option_override): Store processor_type enumeration rather
7737 than string in cpu_default. Remove name and enumeration from
7738 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7739 without using sparc_select. Use target_flags_explicit instead of
7741 * config/sparc/sparc.h (enum processor_type): Move to
7743 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7744 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7745 HeaderInclude entry.
7746 (mcpu=, mtune=): Use Var and Enum.
7747 (sparc_processor_type): New Enum and EnumValue entries.
7749 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7750 Iain Sandoe <iains@gcc.gnu.org>
7753 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7755 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7757 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7758 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7759 Insert new statements at it in lieu of STMT.
7760 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7761 * tree-vect-stmts.c (vectorizable_store): Likewise.
7762 (vectorizable_load): Likewise.
7764 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7766 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7771 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7773 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7774 unaligned 256bit load/store.
7775 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7776 (*avx_movdqu<avxmodesuffix>): Likewise.
7778 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7781 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7782 * config/pa/pa.md (iordi3): Use new predicate in expander.
7785 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7787 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7788 FUNCTION_VALUE_REGNO_P): Remove macros.
7789 * config/mips/mips-protos.h (mips_function_value): Remove.
7790 * config/mips/mips.c (mips_function_value): Rename to...
7791 (mips_function_value_1): ... this. Make static. Handle receiving
7792 the function type in 'fn_decl_or_type' argument.
7793 (mips_function_value, mips_libcall_value,
7794 mips_function_value_regno_p): New function.
7795 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7796 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7798 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7800 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7801 and -mavx256-split-unaligned-store.
7802 (ix86_option_override_internal): Split 32-byte AVX unaligned
7803 load/store by default.
7804 (ix86_avx256_split_vector_move_misalign): New.
7805 (ix86_expand_vector_move_misalign): Use it.
7807 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7808 -mavx256-split-unaligned-store.
7810 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7811 256bit load/store. Generate unaligned store on misaligned memory
7813 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7815 (*avx_movdqu<avxmodesuffix>): Likewise.
7817 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7818 -mavx256-split-unaligned-store.
7820 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7823 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7826 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7828 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7829 opno arguments with an expand_operand. Use create_input_operand.
7830 (mips_prepare_builtin_target): Delete.
7831 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7833 (mips_expand_builtin_direct): Use create_output_operand and
7834 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7835 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7836 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7838 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7840 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7842 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7844 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7846 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7847 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7848 basic blocks and call commit_edge_insertions directly.
7849 (fixup_abnormal_edges): Move from here to...
7850 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7851 on the edges and return whether some have actually been inserted.
7852 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7855 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7857 PR rtl-optimization/48144
7858 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7859 (merge_expr_data): ... here.
7860 (av_set_intersect): Rename to av_set_code_motion_filter.
7861 Update all callers. Call merge_history_vect when an expression
7862 is found in both sets.
7863 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7865 2011-03-26 Alan Modra <amodra@gmail.com>
7867 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7868 cmodel medium addresses.
7869 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7870 64-bit gpr loads and stores.
7871 (rs6000_secondary_reload_ppc64): New function.
7872 * config/rs6000/rs6000-protos.h: Declare it.
7873 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7875 2011-03-26 Alan Modra <amodra@gmail.com>
7878 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7879 GNU Go in traceback table.
7881 2011-03-25 Richard Henderson <rth@redhat.com>
7883 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7884 if there are exactly 6 operands.
7885 (set_storage_via_setmem): Similarly.
7887 2011-03-25 Kai Tietz <ktietz@redhat.com>
7889 * collect2.c (write_c_file_stat): Handle backslash
7890 as right-hand directory separator.
7891 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7892 checking just for slash.
7893 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7894 instead of checking for trailing slash.
7895 * gcc.c (record_temp_file): Use filename_cmp instead
7897 (do_spec_1): Likewise.
7898 (replace_outfile_spec_function): Likewise.
7899 (is_directory): Use filename_ncmp instead of strncmp.
7900 (print_multilib_info): Likewise.
7901 * gcov.c (find_source): Use filename_cmp instead
7903 (make_gcov_file_name): Fix order of slash/backslash
7905 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7906 (add_standard_paths): Likewise.
7907 * mips-tfile.c (saber_stop): Handle backslash.
7908 * prefix.c (update_path): Use filename_ncmp instead of
7910 * profile.c (output_location): Use filename_cmp instead
7912 * read-md.c (handle_toplevel_file): Handle backslash.
7913 * tlink.c (frob_extension): Likewise.
7914 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7916 * tree-dump.c (dequeue_and_dump): Handle backslash.
7917 * tree.c (get_file_function_name): Likewise.
7918 * gengtype.c (read_input_list): Likewise.
7919 (get_file_realbasename): Likewise.
7920 (get_output_file_with_visibility): Use filename_cmp
7923 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7925 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7928 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7930 * fold-const.c (expr_location_or): New function.
7931 (fold_truth_not_expr): Call it.
7933 2011-03-25 Jeff Law <law@redhat.com>
7935 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7937 * c-family/c-common.c (def_fn_type): Likewise.
7938 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7939 * emit-rtl.c (gen_rtvec): Likewise.
7940 * lto/lto-lang.c (def_fn_type): Likewise.
7942 2011-03-25 Richard Guenther <rguenther@suse.de>
7944 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7945 also generate copies.
7946 (fini_copy_prop): Handle constant values properly.
7948 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7950 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7951 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7952 (hash_loc_operands, compare_loc_operands): Handle
7953 DW_OP_GNU_entry_value.
7955 2011-03-25 Kai Tietz <ktietz@redhat.com>
7957 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7958 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7959 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7960 comment and use macro TARGET_64BIT_MS_ABI instead.
7961 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7962 and change default behavior for 32-bit MS_ABI.
7963 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7964 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7966 (ix86_cfun_abi): Likewise.
7967 (ix86_maybe_switch_abi): Adjust comment.
7968 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7969 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7970 instead of checking for SYSV_ABI.
7971 (ix86_nsaved_sseregs): Likewise.
7972 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7974 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7975 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7976 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7977 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7978 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7980 2011-03-25 Richard Guenther <rguenther@suse.de>
7982 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7983 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7984 (verify_gimple): Remove.
7985 * tree-cfg.c (verify_gimple_call): Merge verification
7987 (verify_gimple_phi): Merge verification from verify_stmts.
7988 (verify_gimple_label): New function.
7989 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7990 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7991 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7992 (verify_stmts): Rename to verify_gimple_in_cfg.
7993 (verify_gimple_in_cfg): New function.
7994 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7995 * tree-ssa.c (verify_ssa): Likewise.
7996 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7998 2011-03-25 Richard Guenther <rguenther@suse.de>
8000 * passes.c (init_optimization_passes): Add FRE pass after
8003 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8004 Andrew Stubbs <ams@codesourcery.com>
8006 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8008 (arm_movdi_vfp_cortexa8): New pattern.
8009 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8010 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8011 instructions when tuning for Cortex-A8. Set attribute "arch".
8012 * config/arm/arm.md: Move include arm-tune.md up a bit.
8013 (define_attr "arch"): Add "onlya8" and "nota8" values.
8014 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8016 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8020 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8022 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8023 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8024 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8025 * passes.c (init_optimization_passes): Move
8026 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8028 2011-03-25 Kai Tietz <ktietz@redhat.com>
8030 * c-typeck.c (comptypes_internal): Replace target
8031 hook call of comp_type_attributes by version in tree.c file.
8032 * gimple.c (gimple_types_compatible_p_1): Likewise.
8033 * tree-ssa.c (useless_type_conversion_p): Likewise.
8034 * tree.c (build_type_attribute_qual_variant): Likewise.
8035 (attribute_value_equal): New static helper function.
8036 (comp_type_attributes): New function.
8037 (merge_attributes): Use attribute_value_equal for comparison.
8038 (attribute_list_contained): Likewise.
8039 * tree.h (comp_type_attributes): New prototype.
8041 2011-03-25 Richard Guenther <rguenther@suse.de>
8043 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8044 of complex types at -O0.
8045 (verify_gimple_assign_binary): Likewise.
8046 (verify_gimple_assign_ternary): Likewise.
8048 2011-03-24 Mark Wielaard <mjw@redhat.com>
8050 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8051 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8053 2011-03-24 Mark Wielaard <mjw@redhat.com>
8056 * dwarf2out.c (output_abbrev_section): Only write table when
8057 abbrev_die_table_in_use > 1.
8059 2011-02-24 Richard Henderson <rth@redhat.com>
8061 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8062 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8063 (alpha_expand_unaligned_load_words): Use extql.
8064 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8065 (emit_insxl): Handle all modes for consistency.
8067 2011-02-24 Richard Henderson <rth@redhat.com>
8069 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8070 (alpha_expand_unaligned_load): Likewise.
8071 (alpha_expand_unaligned_store): Likewise.
8072 (alpha_expand_unaligned_load_words): Likewise.
8073 (alpha_expand_unaligned_store_words): Likewise.
8074 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8075 (alpha_split_lock_test_and_set_12): Likewise.
8076 (print_operand, alpha_fold_builtin_extxx): Likewise.
8077 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8078 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8079 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8080 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8081 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8082 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8083 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8084 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8085 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8086 (extwl, extll, extql): Similarly.
8087 (inswh, inslh, insqh): Similarly.
8088 (mskbl, mskwl, mskll, mskql): Similarly.
8089 (mskwh, msklh, mskqh): Similarly.
8091 2011-02-24 Richard Henderson <rth@redhat.com>
8093 * config/alpha/alpha.md (attribute isa): Add er, ner.
8094 (attribute enabled): Handle them.
8095 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8097 2011-02-24 Richard Henderson <rth@redhat.com>
8099 * config/alpha/alpha.md (attribute isa): Add vms.
8100 (attribute enabled): Handle it.
8101 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8102 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8103 (*movtf): Rename from *movtf_internal for consistency.
8104 (*movsi): Merge with *movsi_nt_vms.
8105 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8106 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8107 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8108 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8110 2011-02-24 Richard Henderson <rth@redhat.com>
8112 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8113 (extendqisi2, extendhisi2): Likewise.
8114 (extendqidi2): Simplify BWX/non-BWX expansions.
8115 (extendhidi2): Similarly.
8117 2011-02-24 Richard Henderson <rth@redhat.com>
8119 * config/alpha/alpha.md (attribute isa): New.
8120 (attribute enabled): New.
8121 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8122 (zero_extendqisi2, zero_extendqidi2): Similarly.
8123 (zero_extendhisi2, zero_extendhidi2): Similarly.
8124 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8126 2011-02-24 Richard Henderson <rth@redhat.com>
8128 * config/alpha/predicates.md (input_operand): Revert last change;
8129 update comment to mention 32-bit VMS rather than Windows.
8131 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8133 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8134 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8135 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8136 * passes.c (init_optimization_passes): Move
8137 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8139 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8141 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8143 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8145 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8148 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8151 * simplify-rtx.c (simplify_const_unary_operation): Call
8152 real_convert when changing mode class with FLOAT_EXTEND.
8154 2011-03-24 Nick Clifton <nickc@redhat.com>
8156 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8157 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8158 * config/rx/rx.c (rx_option_override): Set align_jumps,
8159 align_loops and align_labels if not set by the user.
8160 (rx_align_for_label): New function.
8161 (rx_max_skip_for_label): New function.
8162 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8163 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8164 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8165 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8166 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8168 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8170 PR rtl-optimization/48263
8171 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8172 and original commutative_p handling. Use maybe_gen_insn.
8174 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8176 * reload.c (find_reloads_subreg_address): Add address_reloaded
8177 parameter and return true there if the full address has been
8179 (find_reloads_toplev): Pass address_reloaded flag.
8180 (find_reloads_address_1): Don't use address_reloaded parameter.
8182 2011-03-24 Jeff Law <law@redhat.com>
8184 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8185 unused variable "ann".
8186 (remove_unused_locals): Likewise.
8188 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8191 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8194 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8196 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8197 for invalid symbolic addresses.
8198 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8201 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8203 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8204 the argument in calls to fold_truth_not_expr.
8206 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8208 * tree.c (record_node_allocation_statistics): New function.
8209 (make_node_stat, copy_node_stat, build_string): Call it.
8210 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8211 (build1_stat, build_omp_clause): Likewise.
8213 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8215 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8218 2011-03-24 Richard Guenther <rguenther@suse.de>
8220 PR tree-optimization/48271
8221 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8222 blocks that still exist.
8224 2011-03-24 Richard Guenther <rguenther@suse.de>
8226 PR tree-optimization/48270
8227 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8228 not free datarefs before ddrs.
8230 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8232 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8233 from the address built for a reference with variable offset.
8235 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8238 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8239 alternatives that can be handled with movq or movabsq insn.
8240 (*movdf_internal): Disable for !TARGET_64BIT.
8241 (*movdf_internal_nointeger): Ditto.
8242 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8244 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8246 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8247 (FUNCTION_ARG_ADVANCE): Likewise.
8248 * tm.texi.in: Change references to them to hook references.
8249 * tm.texi: Regenerate.
8250 * targhooks.c (default_function_arg): Eliminate check for target macro.
8251 (default_function_incoming_arg): Likewise.
8252 (default_function_arg_advance): Likewise.
8253 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8254 (function_arg_advance): Likewise.
8255 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8257 2011-03-24 Richard Guenther <rguenther@suse.de>
8260 * tree-object-size.c (addr_object_size): Do not double-account
8261 for MEM_REF offsets.
8263 2011-03-24 Diego Novillo <dnovillo@google.com>
8265 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8266 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8267 (lto_input_data_block): Move from lto-opts.c. Make extern.
8269 (lto_input_string): Rename from input_string. Make extern.
8271 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8272 output_string_with_length.
8273 Output 0 to indicate a non-NULL string. Update all callers to
8275 (lto_output_string): Rename from output_string. Make extern.
8277 (lto_output_decl_state_streams): Make extern.
8278 (lto_output_decl_state_refs): Make extern.
8279 * lto-streamer.h (lto_input_string): Declare.
8280 (lto_input_data_block): Declare.
8281 (lto_output_string): Declare.
8282 (lto_output_string_with_length): Declare.
8283 (lto_output_decl_state_streams): Declare.
8284 (lto_output_decl_state_refs): Declare.
8286 2011-03-24 Richard Guenther <rguenther@suse.de>
8288 PR tree-optimization/46562
8289 * tree.c (build_invariant_address): New function.
8290 * tree.h (build_invariant_address): Declare.
8291 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8292 a renamed function moved ...
8293 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8294 Take valueization callback parameter.
8295 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8296 * gimple-fold.h: New file.
8297 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8298 (ccp_fold, fold_const_aggregate_ref,
8299 fold_ctor_reference, fold_nonarray_ctor_reference,
8300 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8301 get_base_constructor): Move ...
8302 * gimple-fold.c: ... here.
8303 (gimple_fold_stmt_to_constant_1): New function
8304 split out from ccp_fold. Take a valueization callback parameter.
8305 Valueize all operands.
8306 (gimple_fold_stmt_to_constant): New wrapper function.
8307 (fold_const_aggregate_ref_1): New function split out from
8308 fold_const_aggregate_ref. Take a valueization callback parameter.
8309 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8310 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8311 invariant POINTER_PLUS_EXPRs to invariant form.
8312 (vn_valueize): New function.
8313 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8314 * tree-vrp.c (vrp_valueize): New function.
8315 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8316 to fold statements to constants.
8317 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8318 function declarations.
8319 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8320 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8322 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8324 * config/h8300/predicates.md (jump_address_operand): Fix register
8327 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8329 * doc/invoke.texi (max-stores-to-sink): Document.
8330 * params.h (MAX_STORES_TO_SINK): Define.
8331 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8332 if either vectorization or if-conversion is disabled.
8333 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8334 tree-vect-data-refs.c vect_equal_offsets.
8335 (dr_equal_offsets_p): New function.
8336 (find_data_references_in_bb): Remove static.
8337 * tree-data-ref.h (find_data_references_in_bb): Declare.
8338 (dr_equal_offsets_p): Likewise.
8339 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8340 (vect_drs_dependent_in_basic_block): Update calls to
8342 (vect_check_interleaving): Likewise.
8343 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8344 (cond_if_else_store_replacement): Rename to...
8345 (cond_if_else_store_replacement_1): ... this. Change arguments and
8347 (cond_if_else_store_replacement): New function.
8348 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8349 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8351 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8354 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8355 to subtract lower bound instead of GEN_INT().
8357 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8362 * doc/extend.texi (Alignment): Move section to match order in TOC.
8363 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8364 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8366 2011-03-23 Jeff Law <law@redhat.com>
8368 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8369 before removing the edge.
8371 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8372 it may have been freed by redirect_branch_edge or
8373 redirect_edge_succ_nodup.
8375 2011-03-23 Richard Guenther <rguenther@suse.de>
8377 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8378 (check_va_list_escapes): Likewise.
8379 (check_all_va_list_escapes): Likewise.
8381 2011-03-23 Richard Guenther <rguenther@suse.de>
8383 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8384 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8385 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8386 (alias.o): Likewise.
8387 (ipa-type-escape.o): Remove.
8388 (ipa-struct-reorg.o): Likewise.
8389 (GTFILES): Remove ipa-struct-reorg.c.
8390 * alias.c: Do not include ipa-type-escape.h.
8391 * tree-ssa-alias.c: Likewise.
8392 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8393 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8394 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8395 and ipa-type-escape passes.
8396 * tree-pass.h (pass_ipa_type_escape): Remove.
8397 (pass_ipa_struct_reorg): Likewise.
8398 * ipa-struct-reorg.h: Remove.
8399 * ipa-struct-reorg.c: Likewise.
8400 * ipa-type-escape.h: Likewise.
8401 * ipa-type-escape.c: Likewise.
8402 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8403 (--param struct-reorg-cold-struct-ratio): Likewise.
8404 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8405 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8406 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8408 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8410 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8411 cpu attribute value.
8412 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8413 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8414 * config/s390/s390.c (processor_flags_table): New constant array.
8415 (s390_handle_arch_option): Remove.
8416 (s390_handle_option): Remove s390_handle_arch_option invocations
8417 and OPT_mwarn_framesize_ handling.
8418 (s390_option_override): Remove s390_handle_arch_option invocation.
8419 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8421 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8422 * config/s390/s390.opt (s390_tune, s390_arch)
8423 (march=): Replace s390_arch_option enum and values with
8424 processor_type. Set variable name to s390_arch. Set
8425 initialization value.
8426 (mtune=): Replace s390_arch_option with processor_type. Set
8427 variable name to s390_tune. Set initialization value.
8429 2011-03-23 Julian Brown <julian@codesourcery.com>
8431 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8432 accesses which are not naturally aligned.
8434 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8437 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8439 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8441 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8442 parameter from "int" to "enum insn_code".
8443 (expand_operand_type): New enum.
8444 (expand_operand): New structure.
8445 (create_expand_operand): New function.
8446 (create_fixed_operand, create_output_operand): Likewise
8447 (create_input_operand, create_convert_operand_to): Likewise.
8448 (create_convert_operand_from, create_address_operand): Likewise.
8449 (create_integer_operand): Likewise.
8450 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8451 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8452 (expand_insn, expand_jump_insn): Likewise.
8453 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8454 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8455 (expand_movstr, expand_builtin___clear_cache): Likewise.
8456 (expand_builtin_lock_release): Likewise.
8457 * explow.c (allocate_dynamic_stack_space): Likewise.
8458 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8459 and use the default handling in that case.
8460 * expmed.c (check_predicate_volatile_ok): Delete.
8461 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8462 (emit_cstore): Likewise.
8463 * expr.c (emit_block_move_via_movmem): Likewise.
8464 (set_storage_via_setmem, expand_assignment): Likewise.
8465 (emit_storent_insn, try_casesi): Likewise.
8466 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8467 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8468 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8469 (expand_twoval_unop, expand_twoval_binop): Likewise.
8470 (expand_unop_direct, emit_indirect_jump): Likewise.
8471 (emit_conditional_move, vector_compare_rtx): Likewise.
8472 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8473 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8474 (expand_sync_lock_test_and_set): Likewise.
8475 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8476 (emit_unop_insn): Likewise.
8477 (expand_copysign_absneg): Change icode to an insn_code.
8478 (create_convert_operand_from_type): New function.
8479 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8480 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8481 (expand_insn, expand_jump_insn): Likewise.
8482 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8483 than const_int_operand for operand 2.
8485 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8487 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8490 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8492 * emit-rtl.c (emit_pattern_before_noloc): New function.
8493 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8494 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8495 (emit_pattern_after_noloc): New function.
8496 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8497 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8499 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8501 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8502 (__ffsDI2): Likewise.
8504 2011-03-22 Richard Henderson <rth@redhat.com>
8506 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8507 of !TARGET_ABI_OPEN_VMS.
8508 (alpha_trampoline_init, alpha_start_function): Likewise.
8509 (alpha_expand_epilogue, alpha_file_start): Likewise.
8510 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8511 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8512 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8513 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8514 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8516 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8518 * config/s390/s390-opts.h: New.
8519 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8520 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8521 s390_stack_guard): Remove.
8522 (s390_handle_arch_option): Return void. Take enum
8523 s390_arch_option value instead of string and searching array.
8524 (s390_handle_option): Don't assert that global structures are in
8525 use. Access variables via opts pointer. Use error_at. Don't use
8526 sscanf for -mstack-guard= or -mstack-size=. Update call to
8527 s390_handle_arch_option.
8528 (s390_option_override): Update call to s390_handle_arch_option.
8529 (s390_emit_prologue): Use %d format for s390_stack_size in
8530 diagnostic. Use %wd for HOST_WIDE_INT.
8531 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8532 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8533 * config/s390/s390.opt (config/s390/s390-opts.h): New
8534 HeaderInclude entry.
8535 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8536 s390_arch_flags, s390_warn_framesize): New Variable entries.
8537 (s390_arch_option): New Enum and EnumValue entries.
8538 (march=): Use Enum instead of Var.
8539 (mstack-guard=, mstack-size=): Use UInteger and Var.
8542 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8544 * config/score/score.c (score_handle_option): Don't assert that
8545 global structures are in use. Access target_flags via opts
8546 pointer. Use value of -march= option to determine target_flags
8548 * config/score/score.opt (march=): Use Enum.
8549 (score_arch): New Enum and EnumValue entries.
8551 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8553 * config/mep/mep.c (option_mtiny_specified): Remove.
8554 (mep_option_override): Move register handling for -mivc2 from
8555 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8556 instead of option_mtiny_specified.
8557 (mep_handle_option): Access target_flags via opts pointer. Don't
8558 assert that global structures are in use. Defer part of -mivc2
8559 handling and move it to mep_option_override.
8560 * config/mep/mep.opt (IVC2): New Mask entry.
8561 (mivc2): Use Var and Defer instead of Mask.
8563 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8565 * config/v850/v850-opts.h: New.
8566 * config/v850/v850.c (small_memory): Replace with
8567 small_memory_physical_max array. Make that array static const.
8568 (v850_handle_memory_option): Take integer value of argument. Take
8569 gcc_options pointer, option text and location. Return void.
8570 Update for changes to small memory structures.
8571 (v850_handle_option): Access target_flags via opts pointer. Don't
8572 assert that global structures are in use. Update calls to
8573 v850_handle_memory_option.
8574 (v850_encode_data_area): Update references to small memory settings.
8575 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8576 (enum small_memory_type): Move to v850-opts.h.
8577 * config/v850/v850.opt (config/v850/v850-opts.h): New
8578 HeaderInclude entry.
8579 (small_memory_max): New Variable entry.
8580 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8581 (mtda, mzda): Likewise.
8583 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8585 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8586 pointer. Don't assert that global structures are in use.
8588 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8590 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8591 via opts pointer. Don't assert that global structures are in use.
8593 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8595 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8596 (munix=93): Use Var.
8597 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8598 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8599 * config/pa/pa-opts.h: New.
8600 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8601 (pa_handle_option): Don't assert that global structures are in
8602 use. Access target_flags via opts pointer. Don't handle
8603 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8605 (pa_option_override): Handle deferred OPT_mfixed_range_.
8607 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8609 * config/mn10300/mn10300-opts.h: New.
8610 * config/mn10300/mn10300.c (mn10300_processor,
8611 mn10300_tune_string): Remove.
8612 (mn10300_handle_option): Don't assert that global structures are
8613 in use. Access mn10300_processor via opts pointer. Don't handle
8615 * config/mn10300/mn10300.h (enum processor_type): Move to
8617 (mn10300_processor): Remove.
8618 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8619 HeaderInclude entry.
8620 (mn10300_processor): New Variable entry.
8623 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8625 * config/microblaze/microblaze.c: Don't include opts.h.
8626 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8627 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8628 (mno-clearbss): Use Var and Warn.
8630 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8632 * config/m32r/m32r-opts.h: New.
8633 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8634 (m32r_handle_option): Don't assert that global structures are in
8635 use. Access target_flags and m32r_cache_flush_func via opts
8636 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8637 OPT_mno_flush_trap here.
8638 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8639 include of m32r-opts.h.
8640 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8641 HeaderInclude entry.
8642 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8643 (mmodel=): Use Enum and Var.
8644 (m32r_model): New Enum and EnumValue entries.
8645 (mno-flush-trap): Use Var.
8646 (msdata=): Use Enum and Var.
8647 (m32r_sdata): New Enum and EnumValue entries.
8649 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8651 * config/m32c/m32c.c: Don't include opts.h.
8652 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8653 m32c_handle_option): Remove.
8654 (m32c_option_override): Check global_options_set.x_target_memregs
8655 instead of target_memregs_set.
8656 * config/m32c/m32c.h (target_memregs): Remove.
8657 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8660 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8662 * config/iq2000/iq2000-opts.h: New.
8663 * config/iq2000/iq2000.c: Don't include opts.h.
8664 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8665 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8666 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8667 HeaderInclude entry.
8668 (iq2000_tune): New Variable entry.
8669 (march=): Add comment. Use Enum.
8670 (iq2000_arch): New Enum and EnumValue entries.
8671 (mcpu=): Use Enum and Var.
8672 (iq2000_tune): New Enum and EnumValue entries.
8674 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8676 * config/ia64/ia64-opts.h: New.
8677 * config/ia64/ia64.c (ia64_tune): Remove.
8678 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8680 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8681 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8682 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8683 HeaderInclude entry.
8684 (ia64_tune): New Variable entry.
8685 (mfixed-range=): Use Defer and Var.
8686 (mtune=): Use Enum and Var.
8687 (ia64_tune): New Enum and EnumValue entries.
8689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8691 * config/frv/frv-opts.h: New.
8692 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8694 (frv_cpu_type): Remove.
8695 * config/frv/frv.c: Don't include opts.h.
8696 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8697 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8698 (frv_cpu_type): New Variable entry.
8699 (frv_cpu): New Enum and EnumValue entries.
8701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8703 * config/cris/cris.c (cris_handle_option): Access target_flags via
8704 opts pointer. Don't assert that global structures are in use.
8705 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8706 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8708 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8710 * config/bfin/bfin-opts.h: New.
8711 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8712 bfin_si_revision, bfin_workarounds): Remove.
8713 (bfin_cpus): Make static const.
8714 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8715 not bfin_lib_id_given.
8716 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8717 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8718 pointer. Use error_at. Don't assert that global structures are in use.
8719 * config/bfin/bfin.h: Include bfin-opts.h.
8720 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8721 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8722 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8723 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8728 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8729 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8730 or -msoft-float here.
8731 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8732 -msoft-float and -mhard-float.
8733 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8734 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8736 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8738 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8739 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8741 (LIBGCC_SPEC): Don't handle -msoft-float.
8742 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8744 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8746 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8747 -mfloat-abi=*, not -msoft-float and -mhard-float.
8748 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8750 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8751 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8752 mhard-float and msoft-float.
8753 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8754 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8755 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8756 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8758 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8759 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8761 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8763 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8766 2011-03-22 Richard Henderson <rth@redhat.com>
8768 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8769 TARGET_ABI_WINDOWS_NT.
8770 (alpha_output_function_end_prologue): Likewise.
8771 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8772 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8773 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8774 (trap, *movsi_nt_vms): Likewise.
8775 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8776 (*tablejump_osf_nt_internal): Remove.
8777 * config/alpha/predicates.md (input_operand): Only test Pmode.
8779 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8781 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8782 via opts pointer. Use error_at. Don't assert that global
8783 structures are in use.
8785 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8787 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8788 (ix86_handle_option): Access ix86_isa_flags and
8789 ix86_isa_flags_explicit via opts pointer. Don't assert that
8790 global structures are in use.
8791 (ix86_function_specific_save, ix86_function_specific_restore):
8792 Update ix86_isa_flags_explicit field name.
8793 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8794 (ix86_isa_flags_explicit): Rename TargetSave entry to
8795 x_ix86_isa_flags_explicit.
8797 2011-03-22 Richard Henderson <rth@redhat.com>
8799 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8800 (alpha_option_override, direct_return): Likewise.
8801 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8802 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8803 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8804 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8805 (alpha_expand_epilogue, alpha_end_function): Likewise.
8806 (alpha_init_libfuncs): Likewise.
8807 (struct machine_function): Remove unicosmk members.
8808 (print_operand) ['t']: Remove.
8809 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8810 unicosmk_output_module_name, unicosmk_output_common,
8811 current_section_align, unicosmk_output_text_section_asm_op,
8812 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8813 unicosmk_section_type_flags, unicosmk_unique_section,
8814 unicosmk_asm_named_section, unicosmk_insert_attributes,
8815 unicosmk_output_align, unicosmk_defer_case_vector,
8816 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8817 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8818 unicosmk_output_ssib, unicosmk_add_call_info_word,
8819 unicosmk_extern_head, unicosmk_output_default_externs,
8820 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8821 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8822 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8823 * config/alpha/alpha-protos.h: Update.
8824 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8825 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8826 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8827 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8828 (*mulsi_se, mulvsi3): Likewise.
8829 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8830 (*divmodsi_internal, call, call_value, realign): Likewise.
8831 (moddi3, umoddi3): Likewise; remove duplicate expander.
8832 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8833 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8834 (*movdi_nofix): Remove r/U alternative.
8835 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8836 * config/alpha/constraints.md ("U"): Remove.
8837 * config/alpha/predicates.md (call_operand"): Don't test
8838 TARGET_ABI_UNICOSMK.
8840 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8842 * target.def (handle_option): Take gcc_options and
8843 cl_decoded_option pointers and location_t.
8844 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8845 * doc/tm.texi: Regenerate.
8846 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8847 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8848 * lto-opts.c (lto_reissue_options): Generate option structure for
8849 targetm.handle_option call.
8850 * opts.c (target_handle_option): Update call to
8851 targetm.handle_option. Remove assertions about values now passed
8853 * targhooks.c (default_target_handle_option): New.
8854 * targhooks.h (default_target_handle_option): Declare.
8855 * config/alpha/alpha.c: Include opts.h.
8856 (alpha_handle_option): Update to new hook interface.
8857 * config/arm/arm.c: Include opts.h.
8858 (arm_handle_option): Update to new hook interface.
8859 * config/arm/t-arm (arm.o): Update dependencies.
8860 * config/bfin/bfin.c: Include opts.h.
8861 (bfin_handle_option): Update to new hook interface.
8862 * config/cris/cris.c: Include opts.h.
8863 (cris_handle_option): Update to new hook interface.
8864 * config/frv/frv.c: Include opts.h.
8865 (frv_handle_option): Update to new hook interface.
8866 * config/i386/i386.c: Include opts.h.
8867 (ix86_handle_option): Update to new hook interface.
8868 (ix86_valid_target_attribute_inner_p): Generate option structure
8869 for call to ix86_handle_option.
8870 * config/i386/t-i386 (i386.o): Update dependencies.
8871 * config/ia64/ia64.c: Include opts.h.
8872 (ia64_handle_option): Update to new hook interface.
8873 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8874 * config/iq2000/iq2000.c: Include opts.h.
8875 (iq2000_handle_option): Update to new hook interface.
8876 * config/m32c/m32c.c: Include opts.h.
8877 (m32c_handle_option): Update to new hook interface.
8878 * config/m32r/m32r.c: Include opts.h.
8879 (m32r_handle_option): Update to new hook interface.
8880 * config/m68k/m68k.c: Include opts.h.
8881 (m68k_handle_option): Update to new hook interface.
8882 * config/mep/mep.c: Include opts.h.
8883 (mep_handle_option): Update to new hook interface.
8884 * config/microblaze/microblaze.c: Include opts.h.
8885 (microblaze_handle_option): Update to new hook interface.
8886 * config/mips/mips.c: Include opts.h.
8887 (mips_handle_option): Update to new hook interface.
8888 * config/mn10300/mn10300.c: Include opts.h.
8889 (mn10300_handle_option): Update to new hook interface.
8890 * config/pa/pa.c: Include opts.h.
8891 (pa_handle_option): Update to new hook interface.
8892 * config/pdp11/pdp11.c: Include opts.h.
8893 (pdp11_handle_option): Update to new hook interface.
8894 * config/rs6000/rs6000.c: Include opts.h.
8895 (rs6000_handle_option): Update to new hook interface.
8896 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8897 * config/rx/rx.c: Include opts.h.
8898 (rx_handle_option): Update to new hook interface.
8899 * config/s390/s390.c: Include opts.h.
8900 (s390_handle_option): Update to new hook interface.
8901 * config/score/score.c: Include opts.h.
8902 (score_handle_option): Update to new hook interface.
8903 * config/sh/sh.c: Include opts.h.
8904 (sh_handle_option): Update to new hook interface.
8905 * config/sparc/sparc.c: Include opts.h.
8906 (sparc_handle_option): Update to new hook interface.
8907 * config/v850/v850.c: Include opts.h.
8908 (v850_handle_option): Update to new hook interface.
8910 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8912 * gcc.c (driver_unknown_option_callback): Only permit and save
8913 unknown -Wno- options.
8914 (driver_wrong_lang_callback): Save options directly instead of via
8915 driver_unknown_option_callback.
8917 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8919 * combine.c (simplify_set): Try harder to find the best CC mode when
8920 simplifying a nested COMPARE on the RHS.
8922 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8924 * config/alpha/gnu.h: Remove.
8925 * config/arc: Remove directory.
8926 * config/arm/netbsd.h: Remove.
8927 * config/arm/t-pe: Remove.
8928 * config/crx: Remove directory.
8929 * config/i386/netbsd.h: Remove.
8930 * config/m68hc11: Remove directory.
8931 * config/m68k/uclinux-oldabi.h: Remove.
8932 * config/mcore/mcore-pe.h: Remove.
8933 * config/mcore/t-mcore-pe: Remove.
8934 * config/netbsd-aout.h: Remove.
8935 * config/rs6000/gnu.h: Remove.
8936 * config/sh/sh-symbian.h: Remove.
8937 * config/sh/symbian-base.c: Remove.
8938 * config/sh/symbian-c.c: Remove.
8939 * config/sh/symbian-cxx.c: Remove.
8940 * config/sh/symbian-post.h: Remove.
8941 * config/sh/symbian-pre.h: Remove.
8942 * config/sh/t-symbian: Remove.
8943 * config/svr3.h: Remove.
8944 * config/vax/netbsd.h: Remove.
8945 * config.build: Don't handle i[34567]86-*-pe.
8946 * config.gcc: Remove handling of deprecations for most deprecated
8948 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8949 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8950 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8951 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8952 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8953 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8955 * config.host: Don't handle i[34567]86-*-pe.
8956 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8957 (ASM_SPEC32): Don't handle -mcall-gnu.
8958 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8960 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8961 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8962 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8963 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8964 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8965 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8966 conditional on SYMBIAN.
8967 * configure.ac: Don't handle powerpc*-*-gnu*.
8968 * configure: Regenerate.
8969 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8970 * doc/install-old.texi (m6811, m6812): Don't mention.
8971 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8972 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8973 (m68k-uclinuxoldabi): Don't mention.
8974 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8976 (-mcall-gnu): Remove.
8977 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8978 families): Remove constraint documentation.
8980 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8982 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8983 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8984 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8986 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8989 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8990 vector when peeking at the next token for vector, don't expand the
8993 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8995 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8996 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8997 * config/avr/avr.c (init_cumulative_args)
8998 (avr_function_arg_advance): Use it.
8999 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9001 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9002 (avr_function_ok_for_sibcall): ...this new function.
9003 (avr_lookup_function_attribute1): New static Function.
9004 (avr_naked_function_p, interrupt_function_p)
9005 (signal_function_p, avr_OS_task_function_p)
9006 (avr_OS_main_function_p): Use it.
9007 * config/avr/avr.md ("sibcall", "sibcall_value")
9008 ("sibcall_epilogue"): New expander.
9009 ("*call_insn", "*call_value_insn"): New insn.
9010 ("call_insn", "call_value_insn"): Remove
9011 ("call", "call_value", "epilogue"): Change expander to handle
9014 2011-03-21 Nick Clifton <nickc@redhat.com>
9016 * doc/invoke.texi (Overall Options): Move closing brace to end of
9018 (Optimization Options): Add missing @gol.
9019 (Directory Options): Likewise.
9020 (i386 and x86-64 Options): Likewise.
9021 (RS6000 and PowerPC Options): Likewise.
9022 (i386 and x86-64 Windows Options): Likewise.
9023 (V850 Options): Add text missing from descriptions.
9025 2011-03-22 Richard Henderson <rth@redhat.com>
9027 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9028 (avr_incoming_return_addr_rtx): New.
9029 (emit_push_byte): New.
9030 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9031 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9032 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9033 (emit_pop_byte): New.
9034 (expand_epilogue): Use it. Pop frame pointer by bytes.
9035 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9036 (INCOMING_RETURN_ADDR_RTX): New.
9037 (INCOMING_FRAME_SP_OFFSET): New.
9038 (ARG_POINTER_CFA_OFFSET): New.
9039 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9040 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9043 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9045 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9047 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9048 (FUNCTION_ARG_ADVANCE): Likewise.
9049 * tm.texi.in: Change references to them to hook references.
9050 * tm.texi: Regenerate.
9051 * targhooks.c (default_function_arg): Eliminate check for target
9053 (default_function_incoming_arg): Likewise.
9054 (default_function_arg_advance): Likewise.
9055 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9056 (function_arg_advance): Likewise.
9057 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9059 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9061 * tree.c (build_call_1): New function.
9062 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9064 2011-03-22 Richard Guenther <rguenther@suse.de>
9066 PR tree-optimization/48228
9067 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9068 for single-arg PHIs.
9070 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9072 PR rtl-optimization/48143
9073 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9074 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9075 sse2_cvtps2pd): Likewise.
9077 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9079 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9081 2011-03-22 Richard Guenther <rguenther@suse.de>
9083 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9084 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9085 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9086 and REALIGN_LOAD_EXPR.
9087 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9088 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9089 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9090 DOT_PROD_EXPR case ...
9091 (expand_expr_real_2): ... here.
9092 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9093 and REALIGN_LOAD_EXPR.
9094 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9095 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9096 (vect_create_epilog_for_reduction): Likewise.
9097 (vectorizable_reduction): Likewise.
9098 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9099 * tree-vect-stmts.c (vectorizable_load): Likewise.
9101 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9103 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9105 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9107 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9108 handling for PLTOFF/GOTOFF.
9110 2011-03-22 Nick Clifton <nickc@redhat.com>
9112 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9113 trailing backslash from the end of the macro definition.
9115 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9117 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9120 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9122 * expr.h (prepare_operand): Move to...
9123 * optabs.h (prepare_operand): ...here and change the insn code
9124 parameter from "int" to "enum insn_code".
9125 (insn_operand_matches): Declare.
9126 * expr.c (init_expr_target): Use insn_operand_matches.
9127 (compress_float_constant): Likewise.
9128 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9129 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9130 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9131 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9133 (gen_cond_trap): Likewise.
9134 (prepare_operand): Likewise. Change icode to an insn_code.
9135 (insn_operand_matches): New function.
9136 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9137 * reload1.c (gen_reload): Likewise.
9138 * targhooks.c (default_secondary_reload): Likewise.
9140 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9142 * config/alpha/alpha.md (unspec): New define_c_enum.
9145 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9148 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9149 between a call and its CALL_ARG_LOCATION note.
9151 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9153 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9155 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9159 * c-common.c (shorten_compare): If primopN is first sign-extended
9160 to opN and then zero-extended to result type, set primopN to opN.
9162 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9164 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9165 for barrier handlers.
9167 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9169 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9170 UNSPEC constants to be in the unspec enumeration, and redefine
9171 all UNSPECV constants to be in the unspecv enumeration, so that
9172 dumps print which unspec/unspec_volatile this is.
9173 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9174 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9175 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9176 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9177 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9179 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9180 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9181 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9182 * config/rs6000/sync.md (isync, lwsync): Ditto.
9184 2011-03-21 Richard Guenther <rguenther@suse.de>
9186 * params.def (lto-min-partition): Fix typo.
9188 2011-03-21 Richard Guenther <rguenther@suse.de>
9191 * c-decl.c (grokdeclarator): Drop to the main variant only
9192 for array types. Drop flag_gen_aux_info check.
9194 2011-03-21 Richard Guenther <rguenther@suse.de>
9196 PR translation/47911
9197 * params.def (lto-partitions): Fix typo.
9198 (lto-min-partition): Fix wording.
9200 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9202 * config/rs6000/t-freebsd: Remove duplication from file.
9204 2011-03-21 Richard Guenther <rguenther@suse.de>
9207 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9209 2011-03-21 Richard Guenther <rguenther@suse.de>
9212 * params.def (lto-partitions): Require at least 1 partition.
9214 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9216 * gthr-solaris.h: Remove.
9217 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9218 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9219 (LIB_SPEC): Likewise.
9220 * config/sol2.opt (threads): Remove.
9221 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9222 (sparc*-*-solaris2*): Likewise.
9223 * configure.ac (enable_threads): Enable solaris support.
9224 * configure: Regenerate.
9225 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9226 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9229 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9231 * config.gcc: Obsolete *-*-solaris2.8*.
9232 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9234 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9237 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9238 reference. Solaris 8 perl works.
9240 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9243 * doc/install.texi (Prerequisites): Move jar etc. up.
9244 Explain support library version requirements.
9246 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9249 * doc/install.texi (Prerequisites): Move Perl to build
9250 requirements. Always necessary on Solaris 2 with Sun ld.
9252 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9254 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9256 (Specific, i?86-*-solaris2.[89]): Likewise.
9257 (Specific, i?86-*-solaris2.10): Likewise.
9258 (Specific, mips-sgi-irix6): Likewise.
9259 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9260 Update for binutils 2.21.
9262 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9264 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9265 Allow -fuse-linker-plugin for non-default plugin linker.
9266 * configure: Regenerate.
9268 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9271 * gengtype.c (files_rules): Added rule for cp/parser.h.
9273 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9276 * config/s390/s390.c (s390_delegitimize_address): Don't call
9277 lowpart_subreg if orig_x has BLKmode.
9279 2011-03-21 Kai Tietz <ktietz@redhat.com>
9282 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9283 * tree.h (attribute_spec): Add new member affects_type_identity.
9284 * attribs.c (empty_attribute_table): Adjust attribute_spec
9286 * config/alpha/alpha.c: Likewise.
9287 * config/arc/arc.c: Likewise.
9288 * config/arm/arm.c: Likewise.
9289 * config/avr/avr.c: Likewise.
9290 * config/bfin/bfin.c: Likewise.
9291 * config/crx/crx.c: Likewise.
9292 * config/darwin.h: Likewise.
9293 * config/h8300/h8300.c: Likewise.
9294 * config/i386/cygming.h: Likewise.
9295 * config/i386/i386.c: Likewise.
9296 * config/ia64/ia64.c: Likewise.
9297 * config/m32c/m32c.c: Likewise.
9298 * config/m32r/m32r.c: Likewise.
9299 * config/m68hc11/m68hc11.c: Likewise.
9300 * config/m68k/m68k.c: Likewise.
9301 * config/mcore/mcore.c: Likewise.
9302 * config/mep/mep.c: Likewise.
9303 * config/microblaze/microblaze.c: Likewise.
9304 * config/mips/mips.c: Likewise.
9305 * config/rs6000/rs6000.c: Likewise.
9306 * config/rx/rx.c: Likewise.
9307 * config/sh/sh.c: Likewise.
9308 * config/sol2.h: Likewise.
9309 * config/sparc/sparc.c: Likewise.
9310 * config/spu/spu.c: Likewise.
9311 * config/stormy16/stormy16.c: Likewise.
9312 * config/v850/v850.c: Likewise.
9314 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9316 * simplify-rtx.c (simplify_binary_operation_1): Handle
9317 (xor (and A B) C) case when B and C are both constants.
9319 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9321 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9323 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9326 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9328 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9330 PR rtl-optimization/48156
9331 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9332 assume df and df_lr are not NULL.
9334 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9337 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9338 between a call and its CALL_ARG_LOCATION note.
9340 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9343 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9344 between a call and its corresponding CALL_ARG_LOCATION note.
9346 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9348 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9349 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9350 * haifa-sched.c (setup_ref_regs): Ditto.
9351 * caller-save.c (add_used_regs_1): Ditto.
9352 * dse.c (look_for_hardregs): Ditto.
9353 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9354 * sched-rgn.c (check_live_1): Ditto.
9356 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9358 * c-decl.c (diagnose_mismatched_decls): Give an error for
9359 redefining a typedef with variably modified type.
9361 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9363 * c-decl.c (grokfield): Don't allow typedefs for structures or
9364 unions with no tag by default.
9365 * doc/extend.texi (Unnamed Fields): Update.
9367 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9369 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9370 Rewrite using indirect functions.
9371 (lwp_slwpcb): Ditto.
9372 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9373 (avx_vinsertf128<mode>): Ditto.
9375 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9377 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9380 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9382 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9383 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9385 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9387 PR rtl-optimization/48170
9388 * gcse.c (hoist_code): Remove bogus asserts.
9390 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9392 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9393 computation for prologue/epilogue.
9395 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9397 * Makefile.in (check-consistency): Remove.
9399 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9402 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9403 arange_table_in_use is 0, but either text_section_used or
9404 cold_text_section_used is true. Don't call it if
9405 !info_section_emitted.
9407 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9409 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9410 FUNCTION_VALUE_REGNO_P): Remove.
9411 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9413 * config/avr/avr.c (avr_ret_register): Make static inline.
9414 (avr_function_value_regno_p): New function.
9415 (avr_libcall_value): Make static. Add 'func' argument.
9416 (avr_function_value): Make static. Rename 'func' argument to
9417 'fn_decl_or_type', forward it to avr_libcall_value. Call
9418 avr_ret_register function instead of RET_REGISTER macro.
9419 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9421 2011-03-18 Jason Merrill <jason@redhat.com>
9424 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9426 2011-03-18 Richard Guenther <rguenther@suse.de>
9428 * doc/install.texi (--enable-gold): Remove.
9429 (--with-plugin-ld): Document.
9430 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9432 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9435 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9436 again after expansion changes.
9438 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9440 * combine.c (try_combine): Do simplification only call of
9441 subst() on i2 even when i1 is present. Update comments.
9443 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9445 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9446 and UNSPEC_PCREL_SYMOFF.
9448 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9450 * config/s390/s390.md: Use define_c_enum for the unspec constant
9453 2011-03-18 Richard Henderson <rth@redhat.com>
9454 Jakub Jelinek <jakub@redhat.com>
9457 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9458 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9460 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9463 * combine.c (cant_combine_insn_p): Don't check zero/sign
9464 extended hard registers.
9466 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9469 * combine.c (cant_combine_insn_p): Check zero/sign extended
9472 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9474 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9475 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9476 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9477 Change return type to bool.
9478 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9480 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9483 * var-tracking.c (prepare_call_arguments): If CALL target
9484 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9485 pc instead of looking it up using cselib_lookup and use
9486 Pmode for it if x has VOIDmode.
9487 * dwarf2out.c (gen_subprogram_die): If also both first and
9488 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9491 * function.c (assign_parms): For data.passed_pointer parms
9492 use MEM of data.entry_parm instead of data.entry_parm itself
9493 as DECL_INCOMING_RTL.
9494 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9495 also when passed and declared mode is the same, DECL_RTL
9496 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9499 2011-03-16 Jeff Law <law@redhat.com>
9501 PR rtl-optimization/37273
9502 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9503 handle them like argument loads from stack slots. Do not double
9504 count memory for memory constants and argument loads from stack slots.
9506 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9509 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9511 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9514 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9516 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9519 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9521 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9522 Clear call_arg_locations and call_arg_loc_last always.
9525 * var-tracking.c (prepare_call_arguments): If argument needs to be
9526 passed by reference, adjust argtype and mode.
9528 2011-03-17 Richard Guenther <rguenther@suse.de>
9531 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9532 a value make sure to fold the statement.
9534 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9537 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9538 return condition with !cfun->calls_alloca.
9540 2011-03-17 Richard Guenther <rguenther@suse.de>
9543 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9544 origin for decls in other ltrans units.
9545 (input_varpool_node): Likewise.
9547 2011-03-17 Richard Guenther <rguenther@suse.de>
9550 * tree-object-size.c (compute_object_offset): Properly return
9551 the offset operand of MEM_REFs as sizetype.
9553 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9555 PR rtl-optimization/48141
9556 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9557 * dse.c: Include params.h.
9558 (active_local_stores_len): New variable.
9559 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9561 (record_store, check_mem_read_rtx): Decrease it when removing
9563 (scan_insn): Likewise. Increase it when adding to chain, if it
9564 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9565 set active_local_stores to NULL before the addition.
9566 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9568 PR rtl-optimization/48141
9569 * dse.c (record_store): If no positions are needed in an insn
9570 that cannot be deleted, at least unchain it from active_local_stores.
9572 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9575 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9576 (lookup_type_die_strip_naming_typedef): ... here.
9577 (get_context_die): Use it.
9578 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9579 the anonymous struct named by the naming typedef.
9581 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9584 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9585 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9587 2011-03-16 Jeff Law <law@redhat.com>
9589 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9590 check for operands of conditional. Allow type to be a pointer.
9592 2011-03-16 Richard Guenther <rguenther@suse.de>
9594 PR tree-optimization/48149
9595 * fold-const.c (fold_binary_loc): Fold
9596 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9598 2011-03-16 Richard Guenther <rguenther@suse.de>
9600 PR tree-optimization/26134
9601 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9602 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9603 (non_rewritable_mem_ref_base): Handle complex type component
9604 accesses, constrain offsets for vector and complex extracts
9607 2011-03-16 Richard Guenther <rguenther@suse.de>
9609 PR tree-optimization/48146
9610 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9611 operands avoiding the need for renaming.
9613 2011-03-16 Richard Guenther <rguenther@suse.de>
9615 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9616 constant folding. Move MEM_REF canonicalization first.
9617 Rely on fold_const_aggregate_ref for initializer folding.
9618 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9620 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9623 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9624 arg0/arg1 or their arguments are always fold converted to matching
9627 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9630 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9633 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9634 Handle in-tree gold.
9635 (ld_vers): Extract binutils version for gold.
9636 (gcc_cv_ld_hidden): Handle gold here.
9637 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9638 * configure: Regenerate.
9639 * config.in: Regenerate.
9640 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9641 -fuse-linker-plugin otherwise.
9642 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9643 (LINK_COMMAND_SPEC): Use it.
9644 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9646 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9648 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9649 * calls.c: Remove debug.h include.
9650 (emit_call_1): Don't call virtual_call_token debug hook.
9651 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9652 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9653 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9654 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9655 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9656 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9657 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9658 dwarf2out_virtual_call): Remove.
9659 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9660 copy_call_info and virtual_call hooks.
9661 (dwarf2out_init): Don't initialize vcall_insn_table,
9662 debug_dcall_section and debug_vcall_section.
9663 (prune_unused_types): Don't mark nodes from dcall_table.
9664 (dwarf2out_finish): Don't output dcall or vcall tables.
9665 * final.c (final_scan_insn): Don't call direct_call or
9666 virtual_call debug hooks.
9667 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9668 virtual_call_token, copy_call_info and virtual_call hooks.
9669 (debug_nothing_uid): Remove prototype.
9670 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9671 copy_call_info and virtual_call hooks.
9672 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9673 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9674 * debug.c (do_nothing_debug_hooks): Likewise.
9675 (debug_nothing_uid): Remove.
9676 * doc/invoke.texi (-fenable-icf-debug): Remove.
9677 * common.opt (-fenable-icf-debug): Likewise.
9679 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9680 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9681 call's MEM. Handle functions returning aggregate through a hidden
9682 first pointer. For virtual calls add clobbered pc to call arguments
9684 * dwarf2out.c (gen_subprogram_die): Emit
9685 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9689 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9690 * rtl.h (ENTRY_VALUE_EXP): Define.
9691 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9692 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9693 * print-rtl.c (print_rtx): Likewise.
9694 * gengtype.c (adjust_field_rtx_def): Likewise.
9695 * var-tracking.c (vt_add_function_parameter): Adjust
9696 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9697 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9698 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9699 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9700 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9702 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9703 Call var_location debug hook even on CALL_INSNs.
9704 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9705 * rtl.def (ENTRY_VALUE): New.
9706 * dwarf2out.c: Include cfglayout.h.
9707 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9708 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9709 (struct call_arg_loc_node): New type.
9710 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9711 tail_call_site_count): New variables.
9712 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9713 DW_TAG_GNU_call_site_parameter.
9714 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9715 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9716 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9717 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9718 and DW_AT_GNU_all_source_call_sites.
9719 (mem_loc_descriptor): Handle ENTRY_VALUE.
9720 (add_src_coords_attributes): Don't add enything if
9721 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9722 (dwarf2out_abstract_function): Save and clear call_arg_location,
9723 call_site_count and tail_call_site_count around dwarf2out_decl call.
9724 (gen_call_site_die): New function.
9725 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9726 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9727 (dwarf2out_function_decl): Clear call_arg_locations,
9728 call_arg_loc_last, set call_site_count and tail_call_site_count
9729 to -1 and free block_map.
9730 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9731 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9732 followed by any real instructions.
9733 (dwarf2out_begin_function): Set call_site_count and
9734 tail_call_site_count to 0.
9735 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9736 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9737 attempt to force a DIE for it and worst case remove the attribute.
9738 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9739 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9741 * var-tracking.c: Include tm_p.h.
9742 (vt_stack_adjustments): For calls call note_register_arguments.
9743 (argument_reg_set): New variable.
9744 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9745 ensure the VALUE is resolved.
9746 (call_arguments): New variable.
9747 (prepare_call_arguments): New function.
9748 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9749 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9750 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9751 always use the best expression.
9752 (vt_expand_loc): Add ignore_cur_loc argument.
9753 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9754 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9755 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9757 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9758 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9759 argument. Don't call cselib_preserve_only_values and
9761 (note_register_arguments): New function.
9762 (vt_initialize): Compute argument_reg_set. Call
9763 vt_add_function_parameters before processing basic blocks instead of
9764 afterwards. For calls call prepare_call_arguments before calling
9765 cselib_process_insn.
9766 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9767 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9768 (var-tracking.o): Depend on $(TM_P_H).
9769 * cfglayout.h (insn_scope): New prototype.
9770 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9771 * cfglayout.c (insn_scope): No longer static.
9772 * insn-notes.def (CALL_ARG_LOCATION): New.
9773 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9774 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9775 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9776 nothing for DECL_EXTERNAL BLOCK_VARS.
9778 2011-03-16 Alan Modra <amodra@gmail.com>
9781 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9782 create invalid offset address for vsx splat insn.
9783 * config/rs6000/predicates.md (splat_input_operand): New.
9784 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9786 2011-03-15 Xinliang David Li <davidxl@google.com>
9789 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9790 (normalize_preds): New function.
9791 (is_use_properly_guarded): Normalize def predicates.
9793 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9796 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9797 in the output template.
9799 2011-03-15 Richard Guenther <rguenther@suse.de>
9802 * tree-pretty-print.c (dump_function_declaration): Properly
9803 dump unprototyped and varargs function types.
9805 2011-03-15 Richard Guenther <rguenther@suse.de>
9807 PR tree-optimization/13954
9808 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9811 2011-03-15 Richard Guenther <rguenther@suse.de>
9813 PR tree-optimization/48037
9814 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9815 selects into BIT_FIELD_REFs.
9816 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9819 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9821 PR tree-optimization/48129
9822 * builtins.c (fold_builtin_snprintf): Convert to type of
9823 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9824 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9826 2011-03-15 Richard Guenther <rguenther@suse.de>
9828 PR tree-optimization/41490
9829 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9830 value but with VUSE.
9831 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9833 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9834 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9835 * tree-tailcall.c (find_tail_calls): Ignore returns.
9837 2011-03-15 Richard Guenther <rguenther@suse.de>
9840 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9841 or variable-indexed array accesses when in gimple form.
9843 2011-03-15 Richard Guenther <rguenther@suse.de>
9845 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9847 2011-03-15 Alan Modra <amodra@gmail.com>
9850 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9851 presume symbol_refs without a symbol_ref_decl are suitably
9852 aligned, nor other trees we may see here. Handle anchor symbols.
9853 (legitimate_constant_pool_address_p): Comment. Add mode param.
9854 Check cmodel=medium addresses. Adjust all calls.
9855 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9856 creating cmodel=medium optimized access to locals.
9857 * config/rs6000/constraints.md (R): Pass QImode to
9858 legitimate_constant_pool_address_p.
9859 * config/rs6000/predicates.md (input_operand): Pass mode to
9860 legitimate_constant_pool_address_p.
9861 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9864 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9867 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9868 64-bit constants being loaded into registers other than GPRs such
9869 as loading 0 into a VSX register.
9871 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9873 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9875 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9878 * builtins.c (fold_builtin_snprintf): New function.
9879 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9880 (fold_builtin_4): Likewise.
9883 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9884 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9885 and C - X == X also strip nops from +/-/p+ operand.
9886 When optimizing -X == C, fold C to arg0's type.
9889 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9890 emit it as add_AT_int instead of add_AT_unsigned.
9892 2011-03-14 Tom Tromey <tromey@redhat.com>
9894 * unwind-dw2.c: Include sys/sdt.h if it exists.
9895 (_Unwind_DebugHook): Use STAP_PROBE2.
9896 * config.in, configure: Rebuild.
9897 * configure.ac: Check for sys/sdt.h.
9899 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9901 * config/i386/i386.md (ROUND_FLOOR): New constant.
9902 (ROUND_CEIL): Ditto.
9903 (ROUND_TRUNC): Ditto.
9904 (ROUND_MXCSR): Ditto.
9905 (ROUND_NO_EXC): Ditto.
9906 (rint<mode>2): Use new defines instead of numerical constants.
9907 (floor<mode>2): Ditto.
9908 (ceil<mode>2): Ditto.
9909 (btrunc<mode>2): Ditto.
9910 * config/i386/i386-builtin-types.def: Define ROUND function type
9912 * config/i386/i386.c (enum ix86_builtins): Add
9913 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9914 (struct builtin_description): Add
9915 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9916 (ix86_expand_sse_round): New static function.
9917 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9919 (ix86_builtin_vectorized_function): Handle
9920 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9922 2011-03-14 Tom Tromey <tromey@redhat.com>
9924 * c-parser.c (c_parser_asm_string_literal): Clear
9925 warn_overlength_strings.
9927 2011-03-14 Tom Tromey <tromey@redhat.com>
9929 * c-parser.c (disable_extension_diagnostics): Save
9930 warn_overlength_strings.
9931 (restore_extension_diagnostics): Restore warn_overlength_strings.
9933 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9935 * BASE-VER: Change to 4.7.0.
9937 2011-03-14 Richard Guenther <rguenther@suse.de>
9940 * tree.c (build_vector_from_val): Adjust assert to requirements
9943 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9946 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9948 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9950 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9951 terms of target_flags_explicit. Adjust copyright year.
9953 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9954 * config/rs6000/t-freebsd: New file. Add override for
9957 2011-03-13 Chris Demetriou <cgd@google.com>
9959 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9960 (-fno-diagnostics-show-option): this, to reflect current default.
9961 (-Werror=): Update text about -fno-diagnostics-show-option.
9963 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9966 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9967 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9968 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9969 mode is not V2DImode or V2DFmode.
9970 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9971 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9972 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9974 (movdi_internal64): Likewise.
9976 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9978 PR tree-optimization/47127
9979 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9981 (set_cloog_options): Same.
9982 (scop_to_clast): Same.
9983 (print_clast_stmt): Do not call cloog_state_malloc and
9985 (print_generated_program): Same.
9987 * graphite-clast-to-gimple.h (cloog_state): Declared.
9988 (scop_to_clast): Adjust declaration.
9989 * graphite.c (cloog_state): Defined here.
9990 (graphite_initialize): Call cloog_state_malloc.
9991 (graphite_finalize): Call cloog_state_free.
9993 2011-03-11 Jason Merrill <jason@redhat.com>
9995 * attribs.c (lookup_attribute_spec): Take const_tree.
9998 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10000 * config/sparc/sparc.c (sparc_option_override): Use
10001 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10003 2011-03-11 Richard Guenther <rguenther@suse.de>
10005 PR tree-optimization/48067
10006 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10007 multiplication result will be only used once on the target
10010 2011-03-11 Richard Guenther <rguenther@suse.de>
10012 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10014 2011-03-11 Richard Guenther <rguenther@suse.de>
10017 * tree.c (find_decls_types_r): Do not walk types only reachable
10018 from IDENTIFIER_NODEs.
10020 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10022 PR middle-end/48044
10023 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10024 all vnode->force_output nodes as needed.
10026 2011-03-11 Jason Merrill <jason@redhat.com>
10029 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10030 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10032 2011-03-11 Martin Jambor <mjambor@suse.cz>
10034 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10037 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10039 PR tree-optimization/48063
10040 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10041 inline functions called once if !tree_can_inline_p (node->callers).
10043 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10045 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10047 * config/score/score3.c: Delete.
10048 * config/score/score3.h: Delete.
10049 * config/score/mul-div.S: Delete.
10050 * config/score/sfp-machine.h: Add new file.
10051 * config/score/constraints.md: Add new file.
10052 * config/score/t-score-softfp: Add new file.
10053 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10054 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10055 (score7_extra_constraint): Delete.
10056 (score7_option_override): Remove unused code.
10057 * config/score/score.c: Remove score3 and score5 define and code.
10058 * config/score/score.h: Remove score3 and score5 define and code.
10059 * config/score/score.md: Remove score3 template and unusual insn.
10060 * config/score/score.opt: Remove score3 and score5 options.
10062 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10064 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10065 when _HPUX_SOURCE is defined.
10066 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10068 2011-03-10 Jason Merrill <jason@redhat.com>
10071 * stor-layout.c (layout_type): Don't set structural equality
10072 on arrays of incomplete type.
10073 * tree.c (type_hash_eq): Handle comparing them properly.
10075 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10078 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10079 result mode matches original rtl mode.
10081 2011-03-10 Nick Clifton <nickc@redhat.com>
10083 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10084 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10086 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10088 PR rtl-optimization/47866
10089 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10090 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10091 if target wasn't scalar.
10092 * function.c (assign_stack_temp_for_type): Assert that neither
10093 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10094 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10096 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10098 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10100 * config/s390/s390-protos.h (s390_label_align): New prototype.
10101 * config/s390/s390.c (s390_label_align): New function.
10102 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10104 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10107 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10108 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10109 (output_vec_const_move): Ditto.
10111 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10113 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10114 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10115 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10116 Change 'rclass' argument and result type to reg_class_t.
10117 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10119 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10121 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10122 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10123 (TARGET_MEMORY_MOVE_COST): Define.
10124 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10126 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10129 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10132 PR tree-optimization/48022
10133 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10136 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10139 * var-tracking.c (find_use_val): Return NULL for
10140 cui->sets && cui->store_p BLKmode MEMs.
10142 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10144 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10146 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10147 xstormy16_print_operand_address): Remove.
10148 * config/stormy16/stormy16.c (xstormy16_print_operand,
10149 xstormy16_print_operand_address): Make static.
10150 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10152 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10155 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10156 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10159 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10162 * cfgloopmanip.c (fix_bb_placements): Return immediately
10163 if FROM is BASE_LOOP's header.
10165 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10167 * gimplify.c (gimplify_function_tree): Fix building calls
10168 to __builtin_return_address.
10170 2011-03-07 Alan Modra <amodra@gmail.com>
10172 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10173 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10174 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10175 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10177 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10178 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10179 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10180 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10181 * config/rs6000/rs6000.c
10182 (rs6000_elf_end_indicate_exec_stack): Rename to..
10183 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10184 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10185 (rs6000_file_start): ..here.
10186 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10187 file scope variables.
10188 (call_ABI_of_interest): New function.
10189 (init_cumulative_args): Set above vars when function return value
10190 is a float, vector, or small struct.
10191 (rs6000_function_arg_advance_1): Likewise for function args.
10192 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10193 references float args.
10195 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10197 * doc/cfg.texi: Remove "See" before @ref.
10198 * doc/invoke.texi: Likewise.
10200 2011-03-05 Jason Merrill <jason@redhat.com>
10202 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10204 2011-03-05 Anthony Green <green@moxielogic.com>
10206 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10208 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10210 PR rtl-optimization/47899
10211 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10212 to flow_loop_nested_p when moving the loop upward.
10214 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10217 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10219 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10221 PR tree-optimization/47967
10222 * ipa-cp.c (build_const_val): Return NULL instead of creating
10223 VIEW_CONVERT_EXPR for mismatching sizes.
10224 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10225 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10226 give up on versioning.
10228 2011-03-05 Alan Modra <amodra@gmail.com>
10231 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10232 full cmodel medium/large lo_sum + high addresses.
10234 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10236 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10237 pool references in UNSPEC_LTREL_OFFSET.
10239 2011-03-04 Jan Hubicka <jh@suse.cz>
10242 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10243 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10244 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10246 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10247 cgraph_add_thunk): Add node pointers.
10248 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10249 associated to right node.
10250 (input_node): Update use of cgraph_same_body_alias
10251 and cgraph_add_thunk.
10253 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10255 * config/i386/i386.opt (mprefer-avx128): New flag.
10256 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10257 modes when the flag -mprefer-avx128 is on.
10259 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10261 * dwarf2out.c (compare_loc_operands): Fix address handling.
10263 2011-03-04 Alan Modra <amodra@gmail.com>
10265 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10267 2011-03-04 Richard Guenther <rguenther@suse.de>
10269 PR middle-end/47968
10270 * expmed.c (extract_bit_field_1): Prefer vector modes that
10271 vec_extract patterns can handle.
10273 2011-03-04 Richard Guenther <rguenther@suse.de>
10275 PR middle-end/47975
10276 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10278 2011-03-04 Richard Henderson <rth@redhat.com>
10280 * explow.c (emit_stack_save): Remove 'after' parameter.
10281 (emit_stack_restore): Likewise.
10282 * expr.h: Update to match.
10283 * builtins.c, calls.c, stmt.c: Likewise.
10284 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10285 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10286 * function.c (expand_function_end): Insert the emit_stack_save
10287 sequence before parm_birth_insn instead of after.
10289 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10291 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10292 (ssse3_pmaddubsw128): Ditto.
10293 (ssse3_pmaddubsw): Ditto.
10295 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10297 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10299 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10302 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10303 on TYPE_SIZE_UNIT if it is a DECL.
10306 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10307 first operand is not is_gimple_mem_ref_addr, try to fold it.
10308 If the operand still isn't is_gimple_mem_ref_addr, clear
10311 2011-03-03 Richard Guenther <rguenther@suse.de>
10313 PR middle-end/47283
10314 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10316 (refs_may_alias_p_1): For release branches return true if
10317 we are confused by our input.
10319 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10321 * config/s390/s390.c (s390_function_value): Rename to ...
10322 (s390_function_and_libcall_value): ... this.
10323 (s390_function_value): New function.
10324 (s390_libcall_value): New function.
10325 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10326 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10327 target macro definitions.
10328 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10330 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10332 * config/i386/freebsd64.h (CC1_SPEC): Define.
10333 * config/i386/linux64.h (CC1_SPEC): Define.
10334 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10336 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10338 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10340 * config/stormy16/stormy16.c: Include reload.h.
10341 (xstormy16_memory_move_cost): New function.
10342 (TARGET_MEMORY_MOVE_COST): Define.
10344 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10346 PR rtl-optimization/47925
10347 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10348 with side effects. Remove the more-specific check for volatile asms.
10350 2011-03-02 Alan Modra <amodra@gmail.com>
10353 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10354 toc relative addresses for valid offsets.
10356 2011-03-01 Richard Guenther <rguenther@suse.de>
10358 PR tree-optimization/47890
10359 * tree-vect-loop.c (get_initial_def_for_induction): Set
10360 related stmt properly.
10362 2011-03-01 Richard Guenther <rguenther@suse.de>
10365 * lto-streamer.c (lto_record_common_node): Also register
10366 the canonical type.
10368 2011-03-01 Richard Guenther <rguenther@suse.de>
10371 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10372 Do not stream DECL_ABSTRACT_ORIGIN.
10373 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10374 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10375 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10376 Do not stream DECL_ABSTRACT_ORIGIN.
10377 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10378 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10380 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10382 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10383 FUNCTION_VALUE_REGNO_P): Remove.
10384 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10385 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10386 Add 'outgoing' argument.
10387 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10389 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10390 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10392 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10395 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10396 (lookup_filename): Likewise.
10397 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10399 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10400 Jakub Jelinek <jakub@redhat.com>
10402 PR middle-end/47893
10403 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10404 (assign_stack_local_1): Change last argument type to int.
10405 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10406 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10407 don't record padding space into frame_space_list nor use those areas.
10408 (assign_stack_local): Adjust caller.
10409 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10410 of assign_stack_local, pass 0 as last argument.
10411 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10414 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10417 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10418 Use target address_mode and pointer_mode hooks instead of hardcoded
10419 Pmode and ptr_mode. Handle some simple cases of extending if
10420 POINTERS_EXTEND_UNSIGNED < 0.
10421 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10422 Call convert_debug_memory_address.
10423 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10424 convert_debug_memory_address.
10426 PR middle-end/46790
10427 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10428 * configure: Regenerated.
10429 * config.in: Regenerated.
10430 * varasm.c (default_function_section): Return NULL
10431 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10433 2011-02-28 Martin Jambor <mjambor@suse.cz>
10435 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10436 the description to match the printed values.
10438 2011-02-28 Richard Guenther <rguenther@suse.de>
10440 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10441 of the copied scope tree.
10443 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10445 * doc/extend.texi (Function Attributes): Avoid deeply (and
10446 wrongly) nested tables.
10448 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10450 PR middle-end/47903
10451 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10452 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10453 r isn't op0 nor op1.
10455 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10457 * config/avr/avr.md: Remove magic comment for emacs.
10459 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10462 * config/avr/avr.c (avr_option_override): Use error on bad options.
10463 (avr_help): New function.
10464 (TARGET_HELP): Define.
10466 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10469 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10470 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10472 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10474 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10475 (ARM Options): Ditto.
10476 (i386 and x86-64 Options): Ditto.
10477 (RX Options): Ditto.
10478 (SPARC Options): Ditto.
10480 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10482 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10483 FreeBSD 6 and later. Generally use cpu generic.
10485 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10487 * doc/cpp.texi: Update copyright years.
10489 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10492 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10494 2011-02-25 Jon Beniston <jon@beniston.com>
10497 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10498 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10499 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10500 (lm32_block_move_inline): Add type cast to remove warning.
10501 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10502 (gen_int_relational): Move declarations to start of function.
10504 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10506 PR tree-optimization/45470
10507 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10508 can throw internally only.
10509 * tree-vect-stmts.c (vectorizable_call): Likewise.
10511 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10513 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10514 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10515 * config/stormy16/stormy16-protos.h
10516 (xstormy16_preferred_reload_class): Remove.
10517 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10518 static. Change 'rclass' argument and return type to reg_class_t.
10519 (TARGET_PREFERRED_RELOAD_CLASS,
10520 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10522 2011-02-24 Richard Guenther <rguenther@suse.de>
10524 * lto-streamer-in.c (input_bb): Do not find referenced vars
10525 in debug statements.
10527 2011-02-23 Jason Merrill <jason@redhat.com>
10529 * common.opt (fabi-version): Document v5 and v6.
10531 2011-02-23 Richard Guenther <rguenther@suse.de>
10533 PR tree-optimization/47849
10534 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10536 2011-02-23 Jie Zhang <jie@codesourcery.com>
10538 * opts-common.c (decode_cmdline_option): Print empty string
10539 argument as "" in decoded->orig_option_with_args_text.
10540 * gcc.c (execute): Print empty string argument as ""
10541 in the verbose output.
10542 (do_spec_1): Keep empty string argument.
10544 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10546 * config.gcc: Declare score-* and crx-* obsolete.
10548 2011-02-23 Jie Zhang <jie@codesourcery.com>
10550 PR rtl-optimization/47763
10551 * web.c (web_main): Ignore naked clobber when replacing register.
10553 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10555 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10558 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10561 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10563 2011-02-22 Mike Stump <mikestump@comcast.net>
10565 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10567 * configure: Regenerate.
10569 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10571 PR rtl-optimization/46002
10572 * ira-color.c (update_copy_costs): Change class intersection
10573 test to reg_class_contents[] test of 'hard_regno'.
10575 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10577 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10578 than Driver option.
10579 * config/hpux11.opt (mt): Likewise.
10580 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10581 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10582 * config/vax/elf.opt (mno-asm-pic): Likewise.
10583 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10585 2011-02-21 Mike Stump <mikestump@comcast.net>
10588 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10589 tree so we can get save the type.
10590 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10591 for CFString instead of trying to use past the end of the builtins.
10592 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10593 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10594 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10595 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10596 Rename to darwin_builtin_cfstring.
10597 (darwin_init_cfstring_builtins): Return the built type.
10599 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10602 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10603 (_mm256_insert_epi64): Use _mm_insert_epi64.
10605 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10607 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10608 * config/stormy16/stormy16-protos.h
10609 (xstormy16_mode_dependent_address_p): Remove.
10610 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10611 Make static. Change return type to bool. Change argument type to
10612 const_rtx. Remove dead code.
10613 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10615 2011-02-21 Richard Guenther <rguenther@suse.de>
10618 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10619 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10620 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10622 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10623 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10625 2011-02-20 Richard Guenther <rguenther@suse.de>
10628 * tree.c (free_lang_data_in_decl): Clean builtins from
10629 the TU decl BLOCK_VARS.
10631 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10635 * haifa-sched.c (fix_tick_ready): Skip tick computation
10638 2011-02-19 Richard Guenther <rguenther@suse.de>
10641 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10642 Remove lazy BLOCK_VARS streaming.
10643 (lto_input_ts_block_tree_pointers): Likewise.
10644 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10646 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10648 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10650 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10652 * config/i386/biarch32.h, config/i386/mach.h,
10653 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10655 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10658 * config/i386/i386.md (peephole2 for shift and plus): Use
10659 operands[1] original mode in the first insn.
10661 2011-02-18 Mike Stump <mikestump@comcast.net>
10663 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10665 2011-02-18 Jan Hubicka <jh@suse.cz>
10667 PR middle-end/47788
10668 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10669 to zero when the function is not inlinable at all.
10671 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10673 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10674 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10675 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10676 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10677 * config/pa/t-pa64: Likewise.
10678 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10680 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10683 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10685 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10688 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10690 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10692 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10693 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10694 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10695 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10696 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10697 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10698 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10699 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10700 m32r_legitimate_address_p): New functions.
10701 * config/m32r/constraints.md (constraint "S"): Don't use
10702 STORE_PREINC_PREDEC_P.
10703 (constraint "U"): Don't use LOAD_POSTINC_P.
10705 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10707 PR rtl-optimization/46178
10708 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10709 compute ira_hard_regno_cover_class[].
10711 2011-02-18 Richard Guenther <rguenther@suse.de>
10714 * lto-streamer.h (lto_global_var_decls): Declare.
10715 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10716 statics for global var processing.
10718 2011-02-18 Richard Guenther <rguenther@suse.de>
10720 PR tree-optimization/47737
10721 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10722 edge dominance check.
10724 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10727 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10728 avoid invalid rtx sharing.
10730 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10732 * doc/cpp.texi (Obsolete Features): Add background on the
10733 origin of assertions.
10735 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10737 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10739 * config/darwin.c (output_objc_section_asm_op): Added support for
10741 (is_objc_metadata): New.
10742 (darwin_objc2_section): New.
10743 (darwin_objc1_section): New.
10744 (machopic_select_section): Added support for ABI v1 and v2.
10745 (darwin_emit_objc_zeroed): New.
10746 (darwin_output_aligned_bss): Detect objc metadata and treat it
10748 (darwin_asm_output_aligned_decl_common): Same.
10749 (darwin_asm_output_aligned_decl_local): Same.
10750 * config/darwin-sections.def: Updated for ABI v1 and v2.
10751 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10752 compiling Objective-C code for the NeXT runtime, default to using
10753 ABI version 0 for 32-bit, and version 2 for 64-bit.
10755 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10757 * common.opt (optimize_fast): New Variable.
10758 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10759 instead of local variable ofast.
10761 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10763 * doc/invoke.texi (fobjc-abi-version): Documented.
10764 (fobjc-nilcheck): Documented.
10765 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10768 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10771 * common.opt (export-dynamic): New Driver option.
10772 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10774 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10776 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10778 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10779 Jan Hubicka <jh@suse.cz>
10783 * cfgexpand.c (account_used_vars_for_block): Remove.
10784 (estimated_stack_frame_size): Use referenced vars.
10785 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10786 that were referenced in the original function. Test src_fn
10787 rather than cfun. Drop redundant get_var_ann.
10788 (setup_one_parameter): Drop redundant get_var_ann.
10789 (declare_return_variable): Likewise.
10790 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10791 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10792 * ipa-inline.c (compute_inline_parameters): Do not compute
10793 disregard_inline_limits here.
10794 (compute_inlinable_for_current, pass_inlinable): New.
10795 (pass_inline_parameters): Require PROP_referenced_vars.
10796 * cgraphunit.c (cgraph_process_new_functions): Don't run
10797 compute_inline_parameters explicitly unless function is in SSA form.
10798 (cgraph_analyze_function): Set .disregard_inline_limits.
10799 * tree-sra.c (convert_callers): Compute inliner parameters
10800 only for functions already in SSA form.
10802 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10804 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10805 -mlittle-endian-data.
10807 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10809 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10810 -mno-fpu, not -fpu and -no-fpu.
10811 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10812 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10814 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10817 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10818 input reload with PLUS RTX.
10820 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10822 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10823 of InverseVar(MDMX).
10825 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10827 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10830 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10832 * config/mn10300/mn10300.opt (mno-crt0): New.
10834 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10836 * config/m68k/uclinux.opt (static-libc): New Driver option.
10838 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10840 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10842 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10844 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10845 %{muser-extend-enabled}.
10847 2011-02-16 Richard Guenther <rguenther@suse.de>
10849 PR tree-optimization/47738
10850 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10851 the TODO from tree_predictive_commoning.
10853 2011-02-15 Jeff Law <law@redhat.com>
10856 2011-01-25 Jeff Law <law@redhat.com>
10858 PR rtl-optimization/37273
10859 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10860 handle them like argument loads from stack slots. Do not double
10861 count memory for memory constants and argument loads from stack slots.
10863 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10865 PR middle-end/47725
10866 * combine.c (cant_combine_insn_p): Revert the last change.
10868 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10871 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10872 mode for vector constants. Remove code that checks for TImode.
10874 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10878 * cgraph.h (compute_inline_parameters): Return void.
10879 * ipa-inline.c (compute_inline_parameters): Adjust.
10881 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10885 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10887 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10888 * ipa-inline.c (compute_inline_parameters): Adjust.
10890 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10894 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10895 Adjust all users. Pass FN to...
10896 * tree-flow-inline.h (first_referenced_var): ... this. Add
10898 * ipa-struct-reorg.c: Adjust.
10899 * tree-dfa.c: Adjust.
10900 * tree-into-ssa.c: Adjust.
10901 * tree-sra.c: Adjust.
10902 * tree-ssa-alias.c: Adjust.
10903 * tree-ssa-live.c: Adjust.
10904 * tree-ssa.c: Adjust.
10905 * tree-ssanames.c: Adjust.
10906 * tree-tailcall.c: Adjust.
10908 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10912 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10913 Adjust all callers.
10914 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10915 * tree-flow-inline.h: Adjust.
10916 * gimple-pretty-print.c: Adjust.
10917 * tree-into-ssa.c: Adjust.
10918 * tree-ssa.c: Adjust.
10919 * cfgexpand.c: Adjust.
10921 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10923 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10924 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10925 (EXTRA_CONSTRAINT): Delete.
10926 * config/iq2000/constraints.md: New file.
10927 * config/iq2000/iq2000.md: Include it.
10928 (define_insn ""): Delete.
10929 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10930 unsupported constraint letters from patterns.
10931 (call_value, call_value_internal1): Likewise.
10932 (call_value_multiple_internal1): Likewise.
10934 2011-02-15 Nick Clifton <nickc@redhat.com>
10936 * config/mn10300/mn10300.c: Include tm-constrs.h.
10937 (struct liw_data): New data structure describing an LIW candidate
10939 (extract_bundle): Use struct liw_data. Allow small integer
10940 operands for some instructions.
10941 (check_liw_constraints): Use struct liw_data. Remove swapped
10942 parameter. Add comments describing the checks. Fix bug when
10943 assigning the source of liw1 to the source of liw2.
10944 (liw_candidate): Delete. Code moved into extract_bundle.
10945 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10947 * config/mn10300/predicates.md (liw_operand): New predicate.
10948 Allows registers and small integer constants.
10949 * config/mn10300/constraints.md (O): New constraint. Accetps
10950 integers in the range -8 to +7 inclusive.
10951 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10952 for moving a small integer into a register. Give this alternative
10954 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10955 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10956 using the J,K,L and M constraints,
10957 (liw): Remove SI mode on second operands to allow for HI and QI
10959 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10962 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10964 PR middle-end/47725
10965 * combine.c (cant_combine_insn_p): Check zero/sign extended
10968 2011-02-15 Richard Guenther <rguenther@suse.de>
10970 PR tree-optimization/47743
10971 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10972 for a non-type-compatible VN lookup bail out.
10974 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10976 * config/fr30/constraints.md: New file.
10977 * config/fr30/fr30.md: Include it.
10978 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10979 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10980 (EXTRA_CONSTRAINT): Delete.
10982 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10984 * config/frv/constraints.md: New file.
10985 * config/frv/predicates.md: Include it.
10986 * config/frv/frv.c (reg_class_from_letter): Delete.
10987 (frv_option_override): Don't initialize it.
10988 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10989 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10990 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10991 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10992 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10993 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10994 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10995 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10996 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10997 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10998 (REG_CLASS_FROM_CONSTRAINT): Delete.
11000 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11002 PR middle-end/47581
11003 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11004 if frame size is 0 in a leaf function.
11006 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11009 * config/alpha/host-osf.c: New file.
11010 * config/alpha/x-osf: New file.
11011 * config.host (alpha*-dec-osf*): Use it.
11013 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11015 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11016 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11017 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11018 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11020 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11022 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11024 * config/stormy16/constraints.md: New file.
11025 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11026 Use satisfies_constraint_Q and satisfies_constraint_R.
11027 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11029 (xstormy16_legitiamte_address_p): Declare.
11030 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11031 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11032 (EXTRA_CONSTRAINT): Delete.
11033 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11035 (xstormy16_extra_constraint_p): Delete.
11037 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11039 PR tree-optimization/46494
11040 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11041 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11042 (pass_rtl_loop_done): Add TODO_verify_flow.
11043 * fwprop.c (pass_rtl_fwprop): Likewise.
11044 * modulo-sched.c (pass_sms): Likewise.
11045 * tree-ssa-dom.c (pass_dominator): Likewise.
11046 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11047 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11048 (pass_tree_loop_done): Likewise.
11049 * tree-ssa-pre.c (execute_pre): Likewise.
11050 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11051 * tree-ssa-sink.c (pass_sink_code): Likewise.
11052 * tree-vrp.c (pass_vrp): Likewise.
11054 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11056 * config/v850/constraints.md: New file.
11057 * config/v850/v850.md: Include it.
11058 * config/v850/predicates.md (reg_or_0_operand): Use
11059 satisfies_constraint_G.
11060 (special_symbolref_operand): Use satisfies_constraint_K.
11061 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11062 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11063 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11064 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11065 (EXTRA_CONSTRAINT): Delete.
11066 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11067 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11068 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11070 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11073 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11076 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11078 * config/mcore/constraints.md: New file.
11079 * config/mcore/mcore.md: Include it.
11080 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11081 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11082 (REG_CLASS_FROM_LETTER): Delete.
11083 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11084 insn_const_int_ok_for_constraint.
11085 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11086 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11087 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11088 (EXTRA_CONSTRAINT): Delete.
11090 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11093 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11094 (IS_SIGHANDLER): Define.
11095 (sparc64_is_sighandler): New function, split off from
11096 sparc64_fallback_frame_state.
11097 (sparc_is_sighandler): New function, split off from
11098 sparc_fallback_frame_state.
11099 (sparc64_fallback_frame_state): Merge with ...
11100 (sparc_fallback_frame_state): ... this into ...
11101 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11102 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11103 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11104 stack instead of hardcoded offsets.
11106 2011-02-14 Andriy Gapon <avg@freebsd.org>
11109 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11111 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11113 * configure: Regenerate.
11115 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11118 * gcc.c (asm_options): Correct spec matching --target-help.
11120 2011-02-12 Martin Jambor <mjambor@suse.cz>
11122 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11123 to gimple call error.
11125 2011-02-12 Mike Stump <mikestump@comcast.net>
11127 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11128 comments in backslash regions.
11130 2011-02-12 Mike Stump <mikestump@comcast.net>
11131 Jakub Jelinek <jakub@redhat.com>
11132 Iain Sandoe <iains@gcc.gnu.org>
11135 * dwarf2out.c (output_cfa_loc): When required, apply the
11136 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11137 (output_loc_sequence): Likewise.
11138 (output_loc_operands_raw): Likewise.
11139 (output_loc_sequence_raw): Likewise.
11140 (output_cfa_loc): Likewise.
11141 (output_loc_list): Suppress register number adjustment when
11142 calling output_loc_sequence()
11143 (output_die): Likewise.
11145 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11147 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11149 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11150 xtensa_memory_move_cost): New functions.
11151 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11153 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11156 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11157 in the current directory.
11158 * configure: Rebuilt.
11160 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11162 * config/darwin.c (darwin_override_options): Add a hunk missed
11163 from the commit of r168571. Trim comment line lengths and
11164 correct indents of the preceding block.
11166 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11168 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11171 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11173 * common.opt (nostartfiles): New Driver option.
11175 2011-02-11 Xinliang David Li <davidxl@google.com>
11177 PR tree-optimization/47707
11178 * tree-chrec.c (convert_affine_scev): Keep type precision.
11180 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11182 PR tree-optimization/47420
11183 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11185 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11187 PR rtl-optimization/47614
11188 * rtl.h (check_for_inc_dec): Declare.
11189 * dse.c (check_for_inc_dec): Externalize...
11190 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11191 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11193 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11196 * gcc.c (main): Do not compile inputs if there were errors in
11198 * opts-common.c (read_cmdline_option): Check for wrong language
11199 after other error checks.
11201 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11203 * cgraph.c: Fix comment typos.
11204 * cgraph.h: Likewise.
11205 * cgraphunit.c: Likewise.
11206 * ipa-cp.c: Likewise.
11207 * ipa-inline.c: Likewise.
11208 * ipa-prop.c: Likewise.
11209 * ipa-pure-const.c: Likewise.
11210 * ipa-ref.c: Likewise.
11211 * ipa-reference.c: Likewise.
11213 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11216 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11218 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11221 * doc/sourcebuild.texi (Require Support): Document
11222 dg-require-ascii-locale.
11224 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11226 * doc/lto.texi (Write summary): Fix missing parentheses.
11228 2011-02-10 DJ Delorie <dj@redhat.com>
11230 * config/m32c/m32c.c (m32c_option_override): Disable
11231 -fcombine-stack-adjustments until flag value tracking and compare
11232 optimization can be rewritten.
11234 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11236 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11238 (PROCESSOR_DEFAULT64): Likewise.
11240 2011-02-10 Richard Henderson <rth@redhat.com>
11242 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11243 change from 2011-02-03.
11244 * config/rx/rx.c (flags_from_code): Likewise.
11245 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11246 is valid, n/pz otherwise.
11247 (rx_select_cc_mode): Return CCmode if Y is not zero.
11249 2011-02-10 Richard Guenther <rguenther@suse.de>
11251 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11253 2011-02-10 Richard Guenther <rguenther@suse.de>
11255 PR tree-optimization/47677
11256 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11258 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11261 * combine.c (make_compound_operation): Only change shifts into
11262 multiplication for SCALAR_INT_MODE_P.
11264 2011-02-10 Jie Zhang <jie@codesourcery.com>
11268 2011-02-05 Jie Zhang <jie@codesourcery.com>
11270 * web.c (entry_register): Don't clobber the number of the
11271 first uninitialized reference in used[].
11273 2011-02-09 Richard Guenther <rguenther@suse.de>
11275 PR tree-optimization/47664
11276 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11279 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11283 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11285 (PROCESSOR_DEFAULT64): Same.
11286 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11288 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11290 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11292 2011-02-09 Martin Jambor <mjambor@suse.cz>
11294 PR middle-end/45505
11295 * tree-sra.c (struct access): New flags grp_scalar_read and
11296 grp_scalar_write. Changed description of assignment read and write
11298 (dump_access): Dump new flags, reorder all of them.
11299 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11300 to detect multiple scalar reads.
11301 (analyze_access_subtree): Use the new scalar read write flags instead
11302 of the old flags. Adjusted comments.
11304 2011-02-08 DJ Delorie <dj@redhat.com>
11307 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11310 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11312 * config/m68k/uclinux.opt: New.
11313 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11315 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11317 * config/cris/elf.opt (sim): New Driver option.
11319 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11321 * config/xtensa/elf.opt: New.
11322 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11324 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11326 * config/vax/elf.opt: New.
11327 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11329 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11331 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11333 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11335 * config/gnu-user.opt: New.
11336 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11337 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11338 *-*-uclinux*): Use gnu-user.opt.
11340 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11342 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11343 * config/i386/gnu.h (CPP_SPEC): Likewise.
11345 2011-02-08 Ian Lance Taylor <iant@google.com>
11347 * common.opt (fcx-limited-range): Add SetByCombined flag.
11348 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11349 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11350 (fassociative-math, freciprocal-math): Likewise.
11351 (funsafe-math-optimizations): Likewise.
11352 * opth-gen.awk: Handle SetByCombined.
11353 * optc-gen.awk: Likewise.
11354 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11355 (set_unsafe_math_optimizations_flags): Likewise.
11356 * doc/options.texi (Option properties): Document SetByCombined.
11358 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11360 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11361 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11362 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11363 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11364 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11366 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11368 PR tree-optimization/46834
11369 PR tree-optimization/46994
11370 PR tree-optimization/46995
11371 * graphite-sese-to-poly.c (used_outside_reduction): New.
11372 (detect_commutative_reduction): Call used_outside_reduction.
11373 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11374 translate_scalar_reduction_to_array only when at least one
11375 loop-phi/close-phi tuple has been detected.
11377 2011-02-08 Richard Guenther <rguenther@suse.de>
11379 PR middle-end/47639
11380 * tree-vect-generic.c (expand_vector_operations_1): Update
11382 (expand_vector_operations): ... not here. Cleanup EH info
11383 and the CFG if required.
11385 2011-02-08 Richard Guenther <rguenther@suse.de>
11387 PR tree-optimization/47641
11388 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11389 require type compatibility.
11391 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11393 * gimple-low.c (lower_function_body): Don't remove the location of
11394 the return statement here.
11395 (lower_gimple_return): Do it here instead but only if the return
11396 statement is actually used twice.
11398 2011-02-08 Richard Guenther <rguenther@suse.de>
11400 PR tree-optimization/47632
11401 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11402 unused up_to_stmt parameter, return whether cfg-cleanup is
11403 necessary, remove EH info properly.
11404 (forward_propagate_into_gimple_cond): Adjust caller.
11405 (forward_propagate_into_cond): Likewise.
11406 (forward_propagate_comparison): Likewise.
11407 (tree_ssa_forward_propagate_single_use_vars): Make
11408 forward_propagate_comparison case similar to the two others.
11410 2011-02-08 Nick Clifton <nickc@redhat.com>
11412 * config/mn10300/mn10300.opt (mliw): New command line option.
11413 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11414 (liw_bundling): New automaton.
11415 (liw): New attribute.
11416 (liw_op): New attribute.
11417 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11418 (movsi_internal): Add LIW attributes.
11419 (andsi3): Likewise.
11420 (iorsi3): Likewise.
11421 (xorsi3): Likewise.
11422 (addsi3): Separate register and immediate alternatives.
11423 Add LIW attributes.
11424 (subsi3): Likewise.
11426 (aslsi3): Likewise.
11427 (lshrsi3): Likewise.
11428 (ashrsi3): Likewise.
11429 (liw): New pattern.
11430 * config/mn10300/mn10300.c (liw_op_names): New
11431 (mn10300_print_operand): Handle 'W' operand descriptor.
11432 (extract_bundle): New function.
11433 (check_liw_constraints): New function.
11434 (liw_candidate): New function.
11435 (mn10300_bundle_liw): New function.
11436 (mn10300_reorg): New function.
11437 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11438 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11439 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11440 __LIW__ or __NO_LIW__.
11441 * doc/invoke.texi: Describe the -mliw command line option.
11443 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11445 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11446 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11447 pthread_mutex_unlock): Remove.
11448 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11449 * config/pa/t-pa64: Likewise.
11450 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11451 shared libc if not linking against libpthread.
11452 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11454 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11457 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11458 on 10.6 and later to ensure that we always use the unwinder from
11459 the system. Only add -no_compact_unwind when tarteting darwin
11462 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11465 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11466 (vec_interleave_lowv2sf): Ditto.
11467 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11468 (vec_extract_oddv2sf): Ditto.
11470 2011-02-07 Mike Stump <mikestump@comcast.net>
11473 Add __ieee_divdc3 entry point.
11474 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11476 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11477 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11478 * config/darwin.c (darwin_rename_builtins): Add.
11479 * config/darwin-protos.h (darwin_rename_builtins): Add.
11481 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11484 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11487 2011-02-07 Mike Stump <mikestump@comcast.net>
11489 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11491 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11494 * config/avr/libgcc.S (exit): Move .endfunc
11496 2011-02-07 Richard Guenther <rguenther@suse.de>
11498 PR tree-optimization/47615
11499 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11500 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11501 (run_scc_vn): Initialize it.
11502 (visit_reference_op_load): Use it.
11503 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11505 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11507 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11508 DImode trapping arithmetic libfuncs.
11510 2011-02-07 Richard Guenther <rguenther@suse.de>
11512 PR tree-optimization/47621
11513 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11515 (execute_update_addresses_taken): ... here. Make it more
11516 conservative in what we accept.
11518 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11520 * config/sparc/freebsd.h (ASM_SPEC): Define.
11521 * config/sparc/vxworks.h (ASM_SPEC): Define.
11523 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11525 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11527 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11529 * doc/invoke.texi: Remove reference to compiler internals from
11530 user documentation.
11532 * reg-notes.def: Remove REG_VALUE_PROFILE.
11533 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11535 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11537 PR middle-end/47610
11538 * varasm.c (default_section_type_flags): If decl is NULL,
11539 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11541 2011-02-05 Jie Zhang <jie@codesourcery.com>
11544 * web.c (entry_register): Don't clobber the number of the
11545 first uninitialized reference in used[].
11547 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11549 PR tree-optimization/46194
11550 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11551 (build_classic_dist_vector_1): Do not represent classic distance
11552 vectors when the access functions are variating in different loops.
11554 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11556 * config/mips/iris6.opt: New.
11557 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11559 2011-02-04 Richard Henderson <rth@redhat.com>
11560 Steve Ellcey <sje@cup.hp.com>
11563 * config/ia64/predicates.md (mux1_brcst_element): New.
11564 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11565 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11566 (ia64_unpack_sign): New.
11567 (ia64_expand_unpack): Rewrite using new routines.
11568 (ia64_expand_widen_sum): Ditto.
11569 (ia64_expand_dot_prod_v8qi): Ditto.
11570 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11571 routines, add endian check.
11572 (pmpy2_even): Rename from pmpy2_r, add endian check.
11573 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11574 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11575 (vec_widen_smult_hi_v4hi): Ditto.
11576 (vec_widen_umult_lo_v4hi): Ditto.
11577 (vec_widen_umult_hi_v4hi): Ditto.
11578 (mulv2si3): Change endian checks.
11579 (sdot_prodv4hi): Rewrite with new calls.
11580 (udot_prodv4hi): New.
11581 (vec_pack_ssat_v4hi): Add endian check.
11582 (vec_pack_usat_v4hi): Ditto.
11583 (vec_pack_ssat_v2si): Ditto.
11584 (max1_even): Rename from max1_r, add endian check.
11585 (max1_odd): Rename from max1_l, add endian check.
11586 (*mux1_rev): Format change.
11587 (*mux1_mix): Ditto.
11588 (*mux1_shuf): Ditto.
11589 (*mux1_alt): Ditto.
11590 (*mux1_brcst_v8qi): Use new predicate.
11591 (vec_extract_evenv8qi): Remove endian check.
11592 (vec_extract_oddv8qi): Ditto.
11593 (vec_interleave_lowv4hi): Format change.
11594 (vec_interleave_highv4hi): Ditto.
11595 (mix2_even): Rename from mix2_r, add endian check.
11596 (mix2_odd): Rename from mux2_l, add endian check.
11597 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11598 (vec_extract_evenodd_helper): Format change.
11599 (vec_extract_evenv4hi): Remove endian check.
11600 (vec_extract_oddv4hi): Remove endian check.
11601 (vec_interleave_lowv2si): Format change.
11602 (vec_interleave_highv2si): Format change.
11603 (vec_initv2si): Remove endian check.
11604 (vecinit_v2si): Add endian check.
11605 (reduc_splus_v2sf): Add endian check.
11606 (reduc_smax_v2sf): Ditto.
11607 (reduc_smin_v2sf): Ditto.
11608 (vec_initv2sf): Remove endian check.
11609 (fpack): Add endian check.
11610 (fswap): Add endian check.
11611 (vec_interleave_highv2sf): Add endian check.
11612 (vec_interleave_lowv2sf): Add endian check.
11613 (fmix_lr): Add endian check.
11614 (vec_setv2sf): Format change.
11615 (*vec_extractv2sf_0_be): Use shift to extract operand.
11616 (*vec_extractv2sf_1_be): New.
11617 (vec_pack_trunc_v4hi): Add endian check.
11618 (vec_pack_trunc_v2si): Format change.
11620 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11622 PR inline-asm/23200
11623 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11624 do bb, locus and block comparison and disallow loads if it is not set.
11625 (stmt_is_replaceable_p): New function.
11626 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11628 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11629 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11631 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11633 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11635 * config/rs6000/xilinx.opt: New.
11636 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11638 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11640 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11642 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11644 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11645 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11646 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11647 secondary_reload_info, xtensa_secondary_reload): Remove.
11648 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11649 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11650 (xtensa_preferred_reload_class): Make static. Change return and
11651 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11652 Use CONST_DOUBLE_P predicate.
11653 (xtensa_preferred_output_reload_class): New function.
11654 (xtensa_secondary_reload): Make static.
11656 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11658 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11659 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11660 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11662 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11664 PR middle-end/31490
11665 * output.h (SECTION_RELRO): Define.
11666 (SECTION_MACH_DEP): Adjust.
11667 (get_variable_section): New prototype.
11668 * varpool.c (varpool_finalize_named_section_flags): New function.
11669 (varpool_assemble_pending_decls): Call it.
11670 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11671 * cgraphunit.c (cgraph_output_in_order): Call
11672 varpool_finalize_named_section_flags.
11673 * varasm.c (get_section): Allow section flags conflicts between
11674 relro and read-only sections if the section hasn't been declared yet.
11675 Set SECTION_OVERRIDE after diagnosing section type conflict.
11676 (get_variable_section): No longer static.
11677 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11678 readonly sections that need relocations.
11679 (decl_readonly_section_1): New function.
11680 (decl_readonly_section): Use it.
11683 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11684 Steve Ellcey <sje@cup.hp.com>
11686 PR middle-end/31490
11687 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11688 if section attribute used.
11690 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11692 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11693 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11694 (darwin_init_sections): Remove assertion.
11696 2011-02-03 Nick Clifton <nickc@redhat.com>
11698 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11700 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11701 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11702 instead of "n" and "pz".
11703 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11706 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11709 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11710 fma, expand FMA_EXPR as fma{,f,l} call.
11713 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11714 copy them into a unsigned char variable and pass address of it to
11715 lto_output_data_stream.
11718 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11719 around backend_init_target and lang_dependent_init_target calls.
11720 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11721 (verify_cgraph_node): Don't call set_cfun here. Use
11722 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11723 Set error_found for incorrectly represented calls to thunks.
11725 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11728 PR rtl-optimization/43494
11729 * rtl.h (for_each_inc_dec_fn): New type.
11730 (for_each_inc_dec): Declare.
11731 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11732 (for_each_inc_dec_find_inc_dec): New fn.
11733 (for_each_inc_dec_find_mem): New fn.
11734 (for_each_inc_dec): New fn.
11735 * dse.c (struct insn_size): Remove.
11736 (replace_inc_dec, replace_inc_dec_mem): Remove.
11737 (emit_inc_dec_insn_before): New fn.
11738 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11739 (canon_address): Pass mem modes to cselib_lookup.
11740 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11741 (cselib_lookup_from_insn): Likewise.
11742 (cselib_subst_to_values): Likewise.
11743 * cselib.c (find_slot_memmode): New var.
11744 (cselib_find_slot): New fn. Use it instead of
11745 htab_find_slot_with_hash everywhere.
11746 (entry_and_rtx_equal_p): Use find_slot_memmode.
11747 (autoinc_split): New fn.
11748 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11749 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11750 Deal with autoinc. Special-case recursion into MEMs.
11751 (cselib_hash_rtx): Likewise.
11752 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11753 address and MEM modes.
11754 (cselib_subst_to_values): Add memmode, pass it on.
11756 (cselib_lookup): Add memmode argument, pass it on.
11757 (cselib_lookup_from_insn): Add memmode.
11758 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11759 (struct cselib_record_autoinc_data): New.
11760 (cselib_record_autoinc_cb): New fn.
11761 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11762 mode to cselib_lookup. Reset autoinced REGs here instead of...
11763 (cselib_process_insn): ... here.
11764 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11766 (add_uses): Likewise, also to cselib_subst_to_values.
11767 (add_stores): Likewise.
11768 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11769 cselib_subst_to_values.
11770 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11771 * gcse.c (do_local_cprop): Adjusted.
11772 * postreload.c (reload_cse_simplify_set): Adjusted.
11773 (reload_cse_simplify_operands): Adjusted.
11774 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11776 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11778 PR tree-optimization/45122
11779 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11780 unsafe assumptions when there's more than one loop exit.
11782 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11785 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11786 Document using vector double with the load/store builtins, and
11787 that the load/store builtins always use Altivec instructions.
11789 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11790 to use altivec memory instructions, even on VSX.
11791 (vector_altivec_store_<mode>): Ditto.
11793 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11796 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11797 V2DF, V2DI support to load/store overloaded builtins.
11799 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11800 altivec load/store builtins for V2DF/V2DI types.
11802 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11803 set avoid indexed addresses on power6 if -maltivec.
11804 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11805 vector_altivec_load/vector_altivec_store builtins.
11806 (altivec_expand_st_builtin): Ditto.
11807 (altivec_expand_builtin): Add VSX memory builtins.
11808 (rs6000_init_builtins): Add V2DI types to internal types.
11809 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11810 load/store builtins.
11811 (rs6000_address_for_altivec): Insure memory address is appropriate
11814 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11815 vec_vsx_ld and vec_vsx_st.
11816 (vsx_store_<mode>): Ditto.
11818 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11819 variables to hold long long types for VSX vector memory builtins.
11820 (RS6000_BTI_unsigned_long_long): Ditto.
11821 (long_long_integer_type_internal_node): Ditti.
11822 (long_long_unsigned_type_internal_node): Ditti.
11824 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11825 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11826 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11828 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11830 (vec_vsx_st): Ditto.
11832 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11834 * config/pa/pa-hpux10.opt: New.
11835 * config/hpux11.opt (pthread): New Driver option.
11836 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11837 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11839 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11841 * config/ia64/vms.opt: New.
11842 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11844 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11847 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11848 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11849 generator functions.
11850 (vsx_floatuns<VSi><mode>2): Ditto.
11851 (vsx_fix_trunc<mode><VSi>2): Ditto.
11852 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11854 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11856 * config/i386/djgpp.opt (posix): New Driver option.
11858 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11860 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11861 Move to the unsupported targets list.
11863 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11865 PR rtl-optimization/47525
11866 * df-scan.c: Update copyright years.
11867 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11868 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11870 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11872 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11873 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11874 (ASM_OUTPUT_ASCII): Remove.
11875 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11877 2011-02-02 Jeff Law <law@redhat.com>
11879 PR middle-end/47543
11880 * reload.c (find_reloads_address): Handle reg+d address where both
11881 components are invalid by reloading the entire address.
11883 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11884 Richard Guenther <rguenther@suse.de>
11886 PR tree-optimization/40979
11888 * passes.c (init_optimization_passes): After LIM call copy_prop
11889 and DCE to clean up.
11890 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11892 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11894 PR tree-optimization/47576
11895 PR tree-optimization/47555
11896 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11897 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11898 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11899 * tree-scalar-evolution.c (follow_ssa_edge): Use
11900 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11902 2011-02-02 Richard Guenther <rguenther@suse.de>
11904 PR tree-optimization/47566
11905 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11907 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11911 * tree-inline.c (declare_return_variable): Remove unused caller
11916 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11917 * cfgexpand.c (account_used_vars_for_block): Use them.
11918 * tree-nrv.c (tree_nrv): Likewise.
11919 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11920 (dump_scope_block): Likewise.
11921 (remove_unused_locals): Likewise.
11925 * tree-inline.c (declare_return_variable): Add result decl to
11926 local decls only once.
11927 * gimple-low.c (record_vars_into): Mark newly-created variables
11930 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11936 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11938 (no_real_insns_p, schedule_block, set_priorities): Drop special
11939 treatment of boundary debug insns.
11940 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11941 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11942 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11943 (BOUNDARY_DEBUG_INSN_P): Likewise.
11944 (SCHEDULE_DEBUG_INSN_P): Likewise.
11945 * sched-rgn.c (init_ready_list): Drop special treatment of
11946 boundary debug insns.
11947 * final.c (rest_of_clean_state): Clear notes' BB.
11949 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11951 * config/openbsd.opt (assert=): New Driver option.
11953 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11955 * config/i386/nto.opt: New.
11956 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11958 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11960 * config/i386/netware.opt: New.
11961 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11963 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11965 * config/interix.opt (posix): New Driver option.
11967 2011-02-01 DJ Delorie <dj@redhat.com>
11969 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11971 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11974 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11976 PR tree-optimization/47561
11977 * toplev.c (process_options): Print the Graphite flags. Add
11978 flag_loop_flatten to the list of options requiring Graphite.
11980 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11982 * config/i386/cygming.opt (posix): New Driver option.
11984 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11986 * config/arm/vxworks.opt: New.
11987 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11989 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11991 * config/alpha/elf.opt: New.
11992 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11993 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11995 2011-02-01 Richard Guenther <rguenther@suse.de>
11997 PR tree-optimization/47559
11998 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11999 store-motion on references that can throw.
12001 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12003 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12004 * tree-pass.h (TDF_CSELIB): New macro.
12005 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12006 cselib_lookup): Check for it rather than for TDF_DETAILS.
12008 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12011 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12012 is HOST_BIT_BUCKET.
12014 * opts.c (finish_options): Don't add x_aux_base_name if it is
12017 2011-02-01 Richard Guenther <rguenther@suse.de>
12019 PR tree-optimization/47555
12021 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12023 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12025 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12028 * config/lm32/t-lm32: Add multilib for all CPU options.
12030 2011-02-01 Richard Guenther <rguenther@suse.de>
12032 PR tree-optimization/47541
12033 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12034 sure to have a field at offset zero.
12036 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12038 * config/arc/arc.opt (EB, EL): New Driver options.
12040 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12042 * config/alpha/osf5.opt: New.
12043 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12045 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12047 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12049 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12051 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12052 -floop-interchange.
12053 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12054 is an alias of -floop-interchange and that it requires the
12055 Graphite infrastructure.
12056 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12057 flag_loop_interchange based on the value of flag_tree_loop_linear.
12059 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12060 Richard Guenther <rguenther@suse.de>
12062 PR tree-optimization/47538
12063 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12064 type instead of r1type, except for comparisons. For right
12065 shifts and comparisons punt if there are mismatches in
12066 sizetype vs. non-sizetype types.
12068 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12070 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12073 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12075 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12077 * configure: Regenerate.
12079 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12081 * configure.ac (gcc_cv_ld_static_option): Define.
12082 (gcc_cv_ld_dynamic_option): Define.
12083 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12085 (HAVE_LD_STATIC_DYNAMIC): Update message.
12086 (LD_STATIC_OPTION): Define.
12087 (LD_DYNAMIC_OPTION): Define.
12088 * configure: Regenerate.
12089 * config.in: Regenerate.
12090 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12091 HAVE_LD_STATIC_DYNAMIC]: Use them.
12093 2011-01-31 Nick Clifton <nickc@redhat.com>
12095 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12096 registers inside interrupt handlers if the handler is not a leaf
12099 2011-01-31 Nick Clifton <nickc@redhat.com>
12101 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12102 reg_renumber returning an INVALID_REGNUM.
12104 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12107 * doc/install.texi: Document host options discarded when cross
12108 configuring target libraries.
12110 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12113 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12116 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12118 (no_real_insns_p, schedule_block, set_priorities): Drop special
12119 treatment of boundary debug insns.
12120 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12121 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12122 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12123 (BOUNDARY_DEBUG_INSN_P): Likewise.
12124 (SCHEDULE_DEBUG_INSN_P): Likewise.
12125 * sched-rgn.c (init_ready_list): Drop special treatment of
12126 boundary debug insns.
12127 * final.c (rest_of_clean-state): Clear notes' BB.
12129 2011-01-31 Alan Modra <amodra@gmail.com>
12131 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12132 toc relative expressions as we do in print_operand_address.
12134 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12136 * doc/extend.texi: Follow spelling conventions.
12137 * doc/invoke.texi: Fix a typo.
12139 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12141 * config/hpux11.opt: New.
12142 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12143 ia64*-*-hpux*): Use hpux11.opt.
12145 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12147 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12150 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12152 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12155 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12157 * doc/install.texi (Binaries): Remove outdated reference for
12158 Motorola 68HC11/68HC12 downloads.
12160 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12162 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12165 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12168 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12171 2011-01-28 Ahmad Sharif <asharif@google.com>
12173 * value-prof.c (check_counter): Corrected error message.
12175 2011-01-29 Jie Zhang <jie@codesourcery.com>
12177 * config/arm/arm.c (arm_legitimize_reload_address): New.
12178 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12179 arm_legitimize_reload_address.
12180 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12182 2011-01-28 Ian Lance Taylor <iant@google.com>
12184 * godump.c (go_define): Ignore macros whose definitions include
12185 two adjacent operands.
12187 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12190 * varasm.c (force_const_mem): Store copy of x in desc->constant
12191 instead of x itself.
12192 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12193 itself into REG_EQUAL note.
12195 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12197 * config/freebsd.opt (posix, rdynamic): New Driver options.
12199 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12201 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12202 -Bstatic/-Bdynamic.
12203 * configure: Regenerate.
12205 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12207 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12208 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12210 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12212 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12213 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12214 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12215 (s390_preferred_reload_class): Make static. Change return and
12216 'rclass' argument type to reg_class_t.
12218 2011-01-27 Jan Hubicka <jh@suse.cz>
12220 PR middle-end/46949
12221 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12222 (process_function_and_variable_attributes): Check defined weakrefs.
12224 2011-01-27 Martin Jambor <mjambor@suse.cz>
12226 PR tree-optimization/47228
12227 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12228 build_ref_for_offset.
12230 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12232 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12234 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12236 PR rtl-optimization/46856
12237 * postreload.c (reload_combine_recognize_const_pattern): Do not
12238 separate cc0 setter and user on cc0 targets.
12240 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12243 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12244 passed a VOID_TYPE expression, immediately emit an error and
12245 return error_mark_node.
12247 2011-01-26 Jeff Law <law@redhat.com>
12249 PR rtl-optimization/47464
12250 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12251 rather than may_trap_p as needed.
12253 2011-01-26 DJ Delorie <dj@redhat.com>
12255 PR rtl-optimization/46878
12256 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12257 setter/user dependency as well.
12259 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12261 PR rtl-optimization/44469
12262 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12263 after removing trivially dead basic blocks.
12265 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12267 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12268 * config/frv/frv.h (LINK_SPEC): Likewise.
12269 * config/i386/netware.h (LINK_SPEC): Likewise.
12270 * config/m68k/linux.h (ASM_SPEC): Likewise.
12271 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12272 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12273 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12274 * config/sparc/linux.h (ASM_SPEC): Likewise.
12275 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12276 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12278 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12280 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12281 * config/frv/frv.h (ASM_SPEC): Likewise.
12282 * config/m68k/linux.h (ASM_SPEC): Likewise.
12283 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12284 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12285 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12286 * config/sparc/linux.h (ASM_SPEC): Likewise.
12287 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12288 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12290 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12292 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12293 * config/frv/frv.h (LINK_SPEC): Likewise.
12294 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12296 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12298 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12299 * config/frv/frv.h (ASM_SPEC): Likewise.
12300 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12301 * config/m68k/linux.h (ASM_SPEC): Likewise.
12302 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12303 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12304 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12305 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12306 * config/sparc/linux.h (ASM_SPEC): Likewise.
12307 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12308 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12309 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12311 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12314 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12316 (vec_extract_evenodd_help): Ditto.
12317 (vec_extract_evenv4hi): Ditto.
12318 (vec_extract_oddv4hi): Ditto.
12319 (vec_interleave_lowv2si): Ditto.
12320 (vec_interleave_highv2si): Ditto.
12321 (vec_extract_evenv2si): Ditto.
12322 (vec_extract_oddv2si: Ditto.
12323 (vec_pack_trunc_v2si): Ditto.
12325 2011-01-22 Jan Hubicka <jh@suse.cz>
12328 * cgraph.h (cgraph_local_info): New field can_change_signature.
12329 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12330 signature can change.
12331 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12333 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12334 (cgraph_function_versioning): We can not change signature of functions
12335 that don't allow that.
12336 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12337 (lto_input_node): Likewise.
12338 * ipa-inline.c (compute_inline_parameters): Compute
12339 local.can_change_signature.
12340 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12341 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12342 functions that can not change signature.
12343 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12344 init_cumulative_args): Do not use local calling conventions
12345 for functions that can not change signature.
12347 2011-01-22 Jan Hubicka <jh@suse.cz>
12349 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12351 2011-01-26 Richard Guenther <rguenther@suse.de>
12353 PR tree-optimization/47190
12354 * cgraphunit.c (process_common_attributes): New function.
12355 (process_function_and_variable_attributes): Use it.
12357 2011-01-26 Richard Guenther <rguenther@suse.de>
12360 * cgraphbuild.c (record_eh_tables): Record reference to personality
12363 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12366 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12367 non-debug insns from moving up.
12369 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12372 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12373 t-dlldir{,-x} fragment for build and add it to tmake_file.
12374 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12375 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12376 * config/i386/t-dlldir: New file.
12377 (SHLIB_DLLDIR): Define.
12378 * config/i386/t-dlldir-x: New file.
12379 (SHLIB_DLLDIR): Define.
12380 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12381 (SHLIB_INSTALL): Use it.
12383 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12386 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12387 lower bound of the allowed Thumb-2 coprocessor load/store
12388 index range to -256. Add explaining comment.
12390 2011-01-25 Ian Lance Taylor <iant@google.com>
12392 * godump.c (go_define): Improve lexing of macro expansion to only
12393 accept expressions which match Go spec.
12395 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12398 * tree.c (handle_dll_attribute): Handle it.
12399 * doc/extend.texi (@item dllexport): Mention it.
12400 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12402 2011-01-25 Ian Lance Taylor <iant@google.com>
12404 PR tree-optimization/26854
12405 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12406 (decl_jump_unsafe): Move higher in file, with no other change.
12407 (bind): Set has_jump_unsafe_decl if appropriate.
12408 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12409 (check_earlier_gotos): Likewise.
12410 (c_check_switch_jump_warnings): Likewise.
12412 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12414 * doc/invoke.texi (Warning Options): Add missing hyphen.
12415 (-fprofile-dir): Minor grammatical fixes.
12416 (-fbranch-probabilities): Likewise.
12418 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12422 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12424 (no_real_insns_p, schedule_block, set_priorities): Drop special
12425 treatment of boundary debug insns.
12426 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12427 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12428 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12429 (BOUNDARY_DEBUG_INSN_P): Likewise.
12430 (SCHEDULE_DEBUG_INSN_P): Likewise.
12431 * sched-rgn.c (init_ready_list): Drop special treatment of
12432 boundary debug insns.
12433 * final.c (rest_of_clean-state): Clear notes' BB.
12435 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12437 * Makefile.in (LAMBDA_H): Removed.
12438 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12439 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12440 lambda-trans.o, and tree-loop-linear.o.
12441 (lto-symtab.o): Remove dependence on LAMBDA_H.
12442 (tree-loop-linear.o): Remove rule.
12443 (lambda-mat.o): Same.
12444 (lambda-trans.o): Same.
12445 (lambda-code.o): Same.
12446 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12447 (tree-vect-slp.o): Same.
12448 * hwint.h (gcd): Moved here.
12449 (least_common_multiple): Same.
12450 * lambda-code.c: Removed.
12451 * lambda-mat.c: Removed.
12452 * lambda-trans.c: Removed.
12453 * lambda.h: Removed.
12454 * tree-loop-linear.c: Removed.
12455 * lto-symtab.c: Do not include lambda.h.
12456 * omega.c (gcd): Removed.
12457 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12458 * tree-data-ref.c (print_lambda_vector): Moved here.
12459 (lambda_vector_copy): Same.
12460 (lambda_matrix_copy): Same.
12461 (lambda_matrix_id): Same.
12462 (lambda_vector_first_nz): Same.
12463 (lambda_matrix_row_add): Same.
12464 (lambda_matrix_row_exchange): Same.
12465 (lambda_vector_mult_const): Same.
12466 (lambda_vector_negate): Same.
12467 (lambda_matrix_row_negate): Same.
12468 (lambda_vector_equal): Same.
12469 (lambda_matrix_right_hermite): Same.
12470 * tree-data-ref.h: Do not include lambda.h.
12471 (lambda_vector): Moved here.
12472 (lambda_matrix): Same.
12473 (dependence_level): Same.
12474 (lambda_transform_legal_p): Removed declaration.
12475 (lambda_collect_parameters): Same.
12476 (lambda_compute_access_matrices): Same.
12477 (lambda_vector_gcd): Same.
12478 (lambda_vector_new): Same.
12479 (lambda_vector_clear): Same.
12480 (lambda_vector_lexico_pos): Same.
12481 (lambda_vector_zerop): Same.
12482 (lambda_matrix_new): Same.
12483 * tree-flow.h (least_common_multiple): Removed declaration.
12484 * tree-parloops.c (lambda_trans_matrix): Moved here.
12485 (LTM_MATRIX): Same.
12486 (LTM_ROWSIZE): Same.
12487 (LTM_COLSIZE): Same.
12488 (LTM_DENOMINATOR): Same.
12489 (lambda_trans_matrix_new): Same.
12490 (lambda_matrix_vector_mult): Same.
12491 (lambda_transform_legal_p): Same.
12492 * tree-pass.h (pass_linear_transform): Removed declaration.
12493 * tree-ssa-loop.c (tree_linear_transform): Removed.
12494 (gate_tree_linear_transform): Removed.
12495 (pass_linear_transform): Removed.
12496 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12497 flag_loop_interchange.
12499 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12501 PR tree-optimization/47265
12502 PR tree-optimization/47443
12503 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12504 if name still has some uses.
12506 2011-01-25 Martin Jambor <mjambor@suse.cz>
12508 PR tree-optimization/47382
12509 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12510 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12512 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12514 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12515 sjlj_except_unwind_info.
12517 2011-01-25 Richard Guenther <rguenther@suse.de>
12519 PR tree-optimization/47426
12520 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12521 visible functions results escape.
12523 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12526 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12527 (arm_get_frame_offsets): Use it.
12529 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12530 Jakub Jelinek <jakub@redhat.com>
12532 PR tree-optimization/47271
12533 * tree-if-conv.c (bb_postdominates_preds): New.
12534 (if_convertible_bb_p): Call bb_postdominates_preds.
12535 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12536 (predicate_scalar_phi): Call bb_postdominates_preds.
12538 2011-01-25 Nick Clifton <nickc@redhat.com>
12540 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12541 * config/rx/rx.c (rx_function_value): Likewise.
12542 (rx_promote_function_mode): Likewise.
12543 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12544 in order to make it legitimate.
12545 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12546 make sure that the first operand is the same as the result register.
12547 (addsi3_unspec): Delete.
12548 (subdi3): Do not accept immediate operands.
12549 (subdi3_internal): Likewise.
12551 2011-01-25 Jeff Law <law@redhat.com>
12553 PR rtl-optimization/37273
12554 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12555 handle them like argument loads from stack slots. Do not double
12556 count memory for memory constants and argument loads from stack slots.
12558 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12560 PR tree-optimization/47427
12561 PR tree-optimization/47428
12562 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12563 coalesce if the new root var would be TREE_READONLY.
12565 2011-01-25 Richard Guenther <rguenther@suse.de>
12567 PR middle-end/47414
12568 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12569 correct type for TBAA.
12571 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12573 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12574 (close_phi_written_to_memory): Call for_each_index with
12575 dr_indices_valid_in_loop.
12577 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12579 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12580 when it is initialized.
12582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12584 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12585 call to graphite_find_data_references_in_stmt.
12586 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12587 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12588 call to graphite_find_data_references_in_stmt.
12589 (analyze_drs_in_stmts): Same.
12590 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12591 in which the scalar analysis of indices is performed.
12592 (create_data_ref): Same. Update call to dr_analyze_indices.
12593 (find_data_references_in_stmt): Update call to create_data_ref.
12594 (graphite_find_data_references_in_stmt): Same.
12595 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12597 (create_data_ref): Same.
12598 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12599 call to create_data_ref.
12601 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12603 * graphite-sese-to-poly.c (build_poly_scop): Move
12604 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12606 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12608 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12609 VAR_DECL, PARM_DECL, and RESULT_DECL.
12611 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12613 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12614 in a reduction PBB.
12615 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12616 that have already been marked as PBB_IS_REDUCTION.
12618 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12620 * graphite-scop-detection.c (same_close_phi_node): New.
12621 (remove_duplicate_close_phi): New.
12622 (make_close_phi_nodes_unique): New.
12623 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12625 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12627 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12628 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12629 of both data references to be the same.
12631 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12633 * graphite-dependences.c (build_lexicographical_constraint): Remove
12634 the gdim parameter.
12635 (build_lexicographical_constraint): Adjust call to
12636 ppl_powerset_is_empty.
12637 (dependence_polyhedron): Same.
12638 (graphite_legal_transform_dr): Same.
12639 (graphite_carried_dependence_level_k): Same.
12640 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12642 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12644 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12646 * graphite-sese-to-poly.c
12647 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12648 (close_phi_written_to_memory): New.
12649 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12652 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12654 * doc/install.texi: Update the expected version number of PPL to 0.11.
12655 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12656 #if PPL_VERSION_MINOR < 11.
12658 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12660 * graphite-dependences.c: Include graphite-cloog-util.h.
12661 (new_poly_ddr): Inlined into dependence_polyhedron.
12662 (free_poly_ddr): Moved close by new_poly_ddr.
12663 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12664 Early return NULL when ppl_powerset_is_empty returns true.
12665 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12666 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12667 (graphite_legal_transform_dr): Call new_poly_ddr.
12668 (graphite_carried_dependence_level_k): Same.
12669 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12670 (dot_transformed_deps_stmt_1): Removed.
12671 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12672 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12673 (dot_deps_1): Call dot_deps_2.
12674 * Makefile.in (graphite-dependences.o): Add missing dependence on
12675 graphite-cloog-util.h.
12677 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12679 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12680 (build_lexicographical_constraint): Same.
12681 (dependence_polyhedron_1): Same.
12682 (graphite_legal_transform_dr): Same.
12683 (graphite_carried_dependence_level_k): Same.
12684 * graphite-ppl.c (ppl_powerset_is_empty): New.
12685 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12686 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12688 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12690 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12691 the "a followed by b" relation and document it.
12693 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12695 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12696 iteration when the bag of constraints is empty.
12698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12700 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12702 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12704 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12705 nest and two loop depths as parameters.
12706 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12707 lst_perfect_nestify.
12709 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12711 * graphite-dependences.c (print_pddr): Call
12712 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12716 * graphite-ppl.c (debug_gmp_value): New.
12717 * graphite-ppl.h (debug_gmp_value): Declared.
12719 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12721 * doc/install.texi: Document availability of cloog-0.16.
12723 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12725 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12726 invalid postdominance info.
12728 2011-01-24 Jan Hubicka <jh@suse.cz>
12731 * doc/extend.texi (weak pragma): Drop claim that it must
12732 appear before definition.
12733 * varasm.c (merge_weak, declare_weak): Only sanity check
12734 that DECL is not output at a time it is declared weak.
12736 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12738 * machmode.def: Fixed comments.
12740 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12742 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12744 2011-01-24 Paul Koning <ni1d@arrl.net>
12746 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12749 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12752 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12753 (block_info): Add scanned and prev.
12754 (move_or_delete_vzeroupper_2): Return if the basic block
12755 has been scanned and the upper 128bit state is unchanged
12756 from the last scan.
12757 (move_or_delete_vzeroupper_1): Return true if the exit
12759 (move_or_delete_vzeroupper): Visit basic blocks using the
12760 work-list based algorithm based on vt_find_locations in
12763 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12765 2011-01-24 Nick Clifton <nickc@redhat.com>
12767 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12768 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12769 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12770 then define __v850e1__.
12771 * doc/invoke.texi: Document -mv850es.
12773 2011-01-24 Richard Henderson <rth@redhat.com>
12775 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12776 compound unordered comparisons.
12777 * config/rx/rx.c (rx_split_fp_compare): Remove.
12778 * config/rx/rx-protos.h: Update.
12779 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12780 (cbranchsf4): Don't call rx_split_fp_compare.
12781 (*cbranchsf4): Use rx_split_cbranch.
12782 (*cmpsf): Don't accept "i" constraint.
12783 (*conditional_branch): Only valid after reload.
12784 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12786 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12789 * config/rs6000/altivec.md (vector constant splitters): Add
12790 support for creating vector single precision constants if -mvsx is
12791 used and we would create the constant using Altivec primitives.
12793 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12794 Richard Sandiford <rdsandiford@googlemail.com>
12796 PR rtl-optimization/47166
12797 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12798 mechanism for PRE_MODIFY and POST_MODIFY.
12799 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12802 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12804 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12806 2011-01-22 Jan Hubicka <jh@suse.cz>
12809 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12811 2011-01-22 Jan Hubicka <jh@suse.cz>
12813 PR tree-optimization/43884
12815 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12816 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12818 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12820 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12821 * config/s390/s390.c (s390_register_move_cost,
12822 s390_memory_move_cost): New.
12823 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12825 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12827 PR middle-end/47401
12828 * except.c (sjlj_assign_call_site_values): Move setting the
12829 crtl->uses_eh_lsda flag to ...
12830 (sjlj_mark_call_sites): ... here.
12831 (sjlj_emit_function_enter): Support NULL dispatch label.
12832 (sjlj_build_landing_pads): In a function with no landing pads
12833 that still has must-not-throw regions, generate code to register
12834 a personality function with empty LSDA.
12836 2011-01-21 Richard Henderson <rth@redhat.com>
12838 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12840 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12842 * compare-elim.c: New file.
12843 * Makefile.in (OBJS-common): Add it.
12844 (compare-elim.o): New.
12845 * common.opt (fcompare-elim): New.
12846 * opts.c (default_options_table): Add OPT_fcompare_elim.
12847 * tree-pass.h (pass_compare_elim_after_reload): New.
12848 * passes.c (init_optimization_passes): Add it.
12849 * recog.h: Protect against re-inclusion.
12850 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12851 * doc/invoke.texi (-fcompare-elim): Document it.
12852 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12853 * doc/tm.texi: Rebuild.
12855 2011-01-22 Nick Clifton <nickc@redhat.com>
12857 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12858 rx_split_fp_compare.
12860 2011-01-22 Nick Clifton <nickc@redhat.com>
12862 * config/rx/rx.md (UNSPEC_CONST): New.
12863 (deallocate_and_return): Wrap the amount popped off the stack in
12864 an UNSPEC_CONST in order to stop it being rejected by
12865 -mmax-constant-size.
12866 (pop_and_return): Add a "(return)" rtx.
12867 (call): Drop the immediate operand.
12868 (call_internal): Likewise.
12869 (call_value): Likewise.
12870 (call_value_internal): Likewise.
12871 (sibcall_internal): Likewise.
12872 (sibcall_value_internal): Likewise.
12873 (sibcall): Likewise. Generate an explicit call using
12875 (sibcall_value): Likewise.
12876 (mov<>): FAIL if a constant operand is not legitimate.
12877 (addsi3_unpsec): New pattern.
12879 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12880 (ok_for_max_constant): New function.
12881 (gen_safe_add): New function.
12882 (rx_expand_prologue): Use gen_safe_add.
12883 (rx_expand_epilogue): Likewise.
12884 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12887 2011-01-21 Jeff Law <law@redhat.com>
12889 PR tree-optimization/47053
12890 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12891 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12892 statements are deleted.
12893 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12894 is nonempty, then purge dead edges and cleanup the CFG.
12896 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12899 Temporarily revert:
12900 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12902 * tree-dfa.c (create_var_ann): Mark variable as used.
12904 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12906 PR middle-end/45566
12907 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12908 notes from other section in hot/cold partitioning even if
12909 last_action is -3. Increment call_site_base.
12911 PR rtl-optimization/47366
12912 * fwprop.c (forward_propagate_into): Return bool. If
12913 any changes are made, -fnon-call-exceptions is used and
12914 REG_EH_REGION note is present, call purge_dead_edges
12915 and return true if it purged anything.
12916 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12917 any EH edges were purged.
12919 2011-01-21 Jeff Law <law@redhat.com>
12921 PR rtl-optimization/41619
12922 * caller-save.c (setup_save_areas): Break out code to determine
12923 which hard regs are live across calls by examining the reload chains
12924 so that it is always used.
12925 Eliminate code which checked REG_N_CALLS_CROSSED.
12927 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12929 PR tree-optimization/47355
12930 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12931 NOP has non-debug uses beyond PHIs in new_bb.
12933 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12936 * cfgexpand.c (account_used_vars_for_block): Only account vars
12937 that are annotated as used.
12938 (estimated_stack_frame_size): Don't set TREE_USED.
12939 * tree-dfa.c (create_var_ann): Mark variable as used.
12941 2011-01-21 Richard Guenther <rguenther@suse.de>
12943 PR middle-end/47395
12944 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12946 2011-01-21 Richard Guenther <rguenther@suse.de>
12948 PR tree-optimization/47365
12949 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12950 (vn_reference_lookup_pieces): Adjust.
12951 (vn_reference_lookup): Likewise.
12952 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12953 (vn_reference_lookup_3): Only look through kills if in
12954 VN_WALKREWRITE mode.
12955 (vn_reference_lookup_pieces): Adjust.
12956 (vn_reference_lookup): Likewise.
12957 (visit_reference_op_load): Likewise.
12958 (visit_reference_op_store): Likewise.
12959 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12960 (compute_avail): Likewise.
12961 (eliminate): Likewise.
12963 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12965 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12966 DECL_IGNORED_P non-reg vars if they are used.
12968 PR tree-optimization/47391
12969 * varpool.c (const_value_known_p): Return false if
12972 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12975 * config/i386/i386.c (ix86_local_alignment): Handle
12976 case for va_list_type_node is nil.
12977 (ix86_canonical_va_list_type): Likewise.
12979 2011-01-21 Alan Modra <amodra@gmail.com>
12981 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12982 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12984 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12986 * config/arm/arm.md (define_attr type): Rename f_load
12987 and f_store to f_fpa_load and f_fpa_store. Update.
12988 (write_conflict): Deal with rename fallout.
12989 (*push_fp_multi): Likewise.
12990 * config/arm/fpa.md (f_load): Use f_fpa_load.
12991 (f_store): Use f_fpa_store.
12992 (*movsf_fpa): Likewise.
12993 (*movdf_fpa): Likewise.
12994 (*movxf_fpa): Likewise.
12995 (*thumb2_movsf_fpa): Likewise.
12996 (*thumb2_movdf_fpa): Likewise.
12997 (*thumb2_movxf_fpa): Likewise.
12998 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12999 f_loadd and f_stored.
13000 (*thumb2_movdi_vfp): Likewise.
13001 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13002 (*thumb2_movsi_vfp): Likewise.
13003 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13004 Use f_loads instead of f_load.
13005 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13007 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13009 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13010 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13011 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13012 (xtensa_mode_dependent_address_p): New function.
13013 (constantpool_address_p): Make static. Change return type to bool.
13014 Change argument type to const_rtx. Use CONST_INT_P predicate.
13016 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13019 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13021 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13024 * cfgexpand.c (expand_debug_expr): Instead of generating
13025 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13028 2011-01-20 Richard Guenther <rguenther@suse.de>
13030 PR middle-end/47370
13031 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13032 the pointer operand of MEM_REFs.
13034 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13036 PR tree-optimization/46130
13037 * ipa-split.c (consider_split): If return_bb contains non-virtual
13038 PHIs other than for retval or if split_function would not adjust it,
13041 2011-01-20 Richard Guenther <rguenther@suse.de>
13043 PR tree-optimization/47167
13044 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13045 Revert previous change, only avoid enumeral type changes.
13047 2011-01-19 Mike Stump <mikestump@comcast.net>
13049 * doc/tm.texi.in (BRANCH_COST): Englishify.
13050 * doc/tm.texi (BRANCH_COST): Likewise.
13052 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13055 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13056 (gen_scheduled_generic_parms_dies): New functions.
13057 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13058 generation for the end of CU compilation.
13059 (dwarf2out_finish): Generate template parameters DIEs here.
13061 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13064 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13065 debug bind stmt on merge edges.
13067 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13071 * function.c (instantiate_expr): Instantiate incoming rtl of
13072 implicit arguments, and recurse on VALUE_EXPRs.
13073 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13074 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13076 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13078 * c-parser.c (c_parser_for_statement): Initialize
13079 collection_expression.
13081 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13083 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13085 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13087 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13088 (LINK_SHLIB_SPEC): Don't use %(link_path).
13089 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13091 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13093 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13094 (NO_SHARED_LIB_SUPPORT): Remove.
13095 (LINK_SHLIB_SPEC): Remove one conditional definition.
13097 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13099 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13101 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13102 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13103 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13104 %{call_shared} and conditionals on these options not being passed.
13105 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13108 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13110 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13113 * ipa-split.c: Spelling fixes.
13115 2011-01-19 Richard Henderson <rth@redhat.com>
13117 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13118 (*mulsi3): Likewise.
13120 * longlong.h [__mn10300__] (count_leading_zeros): New.
13121 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13122 [__mn10300__] (add_ssaaaa, subddmmss): New.
13123 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13124 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13126 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13128 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13130 2011-01-19 Richard Henderson <rth@redhat.com>
13132 * config/mn10300/mn10300.md (addsi3_flags): New.
13133 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13134 (subsi3_flags, subc_internal, subdi3): New.
13135 (subdi3_internal, *subdi3_degenerate): New.
13136 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13138 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13139 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13140 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13141 * config/mn10300/mn10300-protos.h: Update.
13142 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13143 (return_ret): Likewise. Rename from return_internal_regs.
13144 (return_internal): Remove.
13146 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13147 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13148 (mn10300_legitimate_constant_p): Likewise.
13149 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13150 (mn10300_frame_size): New.
13151 (mn10300_expand_prologue): Use it.
13152 (mn10300_expand_epilogue): Likewise.
13153 (mn10300_initial_offset): Likewise.
13154 * config/mn10300/mn10300-protos.h: Update.
13155 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13156 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13157 (prologue, epilogue, return_internal): Tidy output code.
13158 (mn10300_store_multiple_operation, return): Likewise.
13159 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13160 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13161 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13162 (load_pic, am33_load_pic): New.
13163 (mn10300_load_pic0, mn10300_load_pic1): New.
13165 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13166 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13167 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13168 (cc_flags_for_mode, cc_flags_for_code): New.
13169 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13170 overflow flag is not valid. Validate that the flags we need
13171 for the comparison are valid.
13172 (mn10300_output_cmp): Remove.
13173 (mn10300_output_add): New.
13174 (mn10300_select_cc_mode): Use cc_flags_for_code.
13175 (mn10300_split_cbranch): New.
13176 (mn10300_match_ccmode): New.
13177 (mn10300_split_and_operand_count): New.
13178 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13180 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13181 (addsi3): ... here. Use mn10300_output_add.
13182 (*addsi3_flags): New.
13183 (*am33_subsi3, *mn10300_subsi3): Merge...
13184 (subsi3): ... here. Use attribute isa.
13185 (*subsi3_flags): New.
13186 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13188 (*am33_andsi3, *mn10300_andsi3): Merge...
13189 (andsi3): ... here.
13190 (*andsi3_flags): New.
13191 (andsi3 splitters): New.
13192 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13193 (iorsi3): ... here.
13194 (*iorsi3_flags): New.
13195 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13196 (xorsi3): ... here.
13197 (*xorsi3_flags): New.
13198 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13199 (one_cmplsi2): ... here.
13200 (*one_cmplsi2_flags): New.
13201 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13202 instead of "dax" in constraints. Use mn10300_split_cbranch.
13203 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13204 use matching constraints to eliminate a self-comparison.
13205 (*integer_conditional_branch): Rename from integer_conditional_branch.
13206 Use int_mode_flags to match CC_REG.
13207 (*cbranchsi4_btst, *btstsi): New.
13208 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13209 mn10300_split_cbranch.
13210 (*am33_cmpsf): Rename from am33_cmpsf.
13211 (*float_conditional_branch): Rename from float_conditional_branch.
13212 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13213 (zero_extendqisi2): ... here.
13214 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13215 (zero_extendhisi2): ... here.
13216 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13217 (extendqisi2): ... here.
13218 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13219 (extendhisi2): ... here.
13220 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13221 (ashlsi3): ... here.
13222 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13223 (lshrsi3): ... here.
13224 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13225 (ashrsi3): ... here.
13226 (consecutive add peephole): Remove.
13227 * config/mn10300/predicates.md (label_ref_operand): New.
13228 (int_mode_flags): New.
13229 (CCZN_comparison_operator): New.
13231 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13232 (throughput_42_latency_43): New reservation.
13233 (mulsidi3, umulsidi3): New expanders.
13234 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13235 the MDR register to allocation; separately allocate the low and
13236 high parts of the DImode result.
13237 (umulsidi3_internal): Similarly.
13238 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13239 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13240 (udivsi3, umodsi3): Remove.
13241 (udivmodsi4, divmodsi4): New expanders.
13242 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13243 (*divmodsi4): Simiarly.
13244 (ext_internal): New.
13246 * config/mn10300/constraints.md ("z"): New constraint.
13247 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13248 (FIXED_REGISTERS): Don't fix MDR.
13249 (CALL_USED_REGSITERS): Reformat nicely.
13250 (REG_ALLOC_ORDER): Add MDR.
13251 (enum regclass): Add MDR_REGS.
13252 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13253 (IRA_COVER_CLASSES): Add MDR_REGS.
13254 (REGNO_REG_CLASS): Handle MDR_REG.
13255 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13256 (mn10300_register_move_cost): Likewise.
13257 * config/mn10300/mn10300.md (MDR_REG): New.
13258 (*movsi_internal): Handle moves to/from MDR_REGS.
13260 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13262 (mn10300_secondary_reload): Tidy combination reload classes.
13263 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13264 addresses for AM33. Allow symbolic offsets for reg+imm.
13265 (mn10300_regno_in_class_p): New.
13266 (mn10300_legitimize_reload_address): New.
13267 * config/mn10300/mn10300.h (enum reg_class): Remove
13268 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13269 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13270 SP_OR_GENERAL_REGS.
13271 (REG_CLASS_NAMES): Update to match.
13272 (REG_CLASS_CONTENTS): Likewise.
13273 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13274 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13275 (REGNO_IN_RANGE_P): Remove.
13276 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13277 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13278 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13279 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13280 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13281 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13282 (REGNO_GENERAL_P): New.
13283 (HAVE_POST_MODIFY_DISP): New.
13284 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13285 (LEGITIMIZE_RELOAD_ADDRESS): New.
13286 * config/mn10300/mn10300-protos.h: Update.
13288 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13289 DATA_REGS for AM33 stack-pointer destination.
13290 (mn10300_preferred_output_reload_class): Likewise.
13291 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13292 into a form appropriate for ...
13293 (TARGET_SECONDARY_RELOAD): New.
13294 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13295 * config/mn10300/mn10300-protos.h: Update.
13296 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13297 reload_insi; use the "A" constraint for the scratch; handle AM33
13298 moves of sp to non-address registers.
13300 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13301 (*movqi_internal): ... here.
13302 (*am33_movhi, *mn10300_movhi): Merge into...
13303 (*movhi_internal): ... here.
13304 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13305 as the source/destination of moves from/to SP.
13306 (movsf): Only allow for AM33-2.
13307 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13308 any integer constant constraint. Only allow for AM33-2. Tidy
13309 all of the alternative outputs.
13310 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13311 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13313 (udivsi3, umodsi3): New patterns for MN103 only.
13315 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13317 * doc/tm.texi.in: Spell out that a lack of register class unions
13319 * doc/tm.texi: Regenerate.
13321 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13323 PR rtl-optimization/47337
13324 * dce.c (check_argument_store): New function.
13325 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13327 PR tree-optimization/47290
13328 * tree-eh.c (infinite_empty_loop_p): New function.
13329 (cleanup_empty_eh): Use it.
13331 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13334 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13335 (a64_expand_widen_sum): Ditto.
13336 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13337 (vec_extract_evenodd_help): Ditto.
13338 (vec_extract_evenv4hi): Ditto.
13339 (vec_extract_oddv4hi): Ditto.
13340 (vec_extract_evenv2si): Ditto.
13341 (vec_extract_oddv2si): Ditto.
13342 (vec_extract_evenv2sf): Ditto.
13343 (vec_extract_oddv2sf): Ditto.
13344 (vec_pack_trunc_v4hi: Ditto.
13345 (vec_pack_trunc_v2si): Ditto.
13346 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13347 (vec_interleave_highv8qi): Ditto.
13349 (vec_extract_oddv8qi): Ditto.
13350 (vec_interleave_lowv4hi): Ditto.
13351 (vec_interleave_highv4hi): Ditto.
13352 (vec_interleave_lowv2si): Ditto.
13353 (vec_interleave_highv2si): Ditto.
13355 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13357 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13358 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13359 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13360 (pa_c_mode_for_suffix): New.
13361 (TARGET_EXPAND_BUILTIN): Define.
13362 (TARGET_C_MODE_FOR_SUFFIX): Define.
13363 (pa_builtins): Define.
13364 (pa_init_builtins): Register __float128 type and init new support
13366 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13367 * config/pa/quadlib.c (_U_Qfcopysign): New.
13369 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13371 PR middle-end/46894
13372 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13373 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13376 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13378 PR tree-optimization/47179
13379 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13380 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13382 2011-01-18 Richard Guenther <rguenther@suse.de>
13384 PR rtl-optimization/47216
13385 * emit-rtl.c: Include tree-flow.h.
13386 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13387 of replicating it with different semantics.
13388 * Makefile.in (emit-rtl.o): Adjust.
13390 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13392 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13393 (cortex_a9_dp): Handle neon types correctly.
13395 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13397 PR rtl-optimization/47299
13398 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13399 subtarget. Use normal multiplication if both operands are constants.
13400 * expmed.c (expand_widening_mult): Don't try to optimize constant
13401 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13404 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13406 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13407 spacing after 'e.g.', typos, comma, hyphenation.
13409 2011-01-17 Richard Henderson <rth@redhat.com>
13411 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13412 (rx_restricted_mem_operand): New.
13413 (rx_shift_operand): Use register_operand.
13414 (rx_source_operand, rx_compare_operand): Likewise.
13415 * config/rx/rx.md (addsi3_flags): New expander.
13416 (adddi3): Rewrite as expander.
13417 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13418 (subsi3_flags): New expander.
13419 (subdi3): Rewrite as expander.
13420 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13422 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13423 (rx_init_builtins): Remove sat builtin.
13424 (rx_expand_builtin): Likewise.
13425 * config/rx/rx.md (ssaddsi3): New.
13426 (*sat): Rename from sat. Represent the CC_REG input.
13428 * config/rx/predicates.md (rshift_operator): New.
13429 * config/rx/rx.c (rx_expand_insv): Remove.
13430 * config/rx/rx-protos.h: Update.
13431 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13432 operand to the canonical position.
13433 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13434 (*bitclr, *bitclr_in_memory): Similarly.
13435 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13436 (insv): Retain the zero_extract in the expansion.
13438 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13439 (bswaphi2, bitinvert, revw): Likewise.
13441 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13442 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13443 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13444 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13445 (bitset, bitset_in_memory): Likewise.
13446 (bitinvert, bitinvert_in_memory): Likewise.
13447 (bitclr, bitclr_in_memory): Likewise.
13448 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13449 (rx_strend, rx_cmpstrn): Likewise.
13450 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13451 (bitop peep2 patterns): Remove.
13453 * config/rx/rx.c (rx_match_ccmode): New.
13454 * config/rx/rx-protos.h: Update.
13455 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13456 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13457 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13458 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13459 (fix_truncsfsi2, floatsisf2): Likewise.
13460 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13461 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13462 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13463 (*subsi3_flags, *xorsi3_flags): New.
13465 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13467 * config/rx/rx.c (rx_print_operand): Remove workaround for
13468 unsplit comparison operations.
13470 * config/rx/rx.md (movsicc): Split after reload.
13471 (*movsicc): Merge *movsieq and *movsine via match_operator.
13472 (*stcc): New pattern.
13474 * config/rx/rx.c (rx_float_compare_mode): Remove.
13475 * config/rx/rx.h (rx_float_compare_mode): Remove.
13476 * config/rx/rx.md (cstoresi4): Split after reload.
13477 (*sccc): New pattern.
13479 * config/rx/predicates.md (label_ref_operand): New.
13480 (rx_z_comparison_operator): New.
13481 (rx_zs_comparison_operator): New.
13482 (rx_fp_comparison_operator): New.
13483 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13484 Validate that the flags are set properly for the comparison.
13485 (rx_gen_cond_branch_template): Remove.
13486 (rx_cc_modes_compatible): Remove.
13487 (mode_from_flags): New.
13488 (flags_from_code): Rename from flags_needed_for_conditional.
13489 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13490 (rx_select_cc_mode): Likewise.
13491 (rx_split_fp_compare): New.
13492 (rx_split_cbranch): New.
13493 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13494 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13495 (*cbranchsf4): Similarly.
13496 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13497 match_operator and rx_split_cbranch.
13498 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13499 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13500 (*cmpsi): Rename from cmpsi.
13501 (*tstsi): Rename from tstsi.
13502 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13503 (*conditional_branch): Rename from conditional_branch.
13504 (*reveresed_conditional_branch): Remove.
13505 (b<code>): Remove expander.
13506 * config/rx/rx-protos.h: Update.
13508 * config/rx/rx.c (rx_compare_redundant): Remove.
13509 * config/rx/rx.md (cmpsi): Don't use it.
13510 * config/rx/rx-protos.h: Update.
13512 * config/rx/rx-modes.def (CC_F): New mode.
13513 * config/rx/rx.c (rx_select_cc_mode): New.
13514 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13515 * config/rx/rx-protos.h: Update.
13517 2011-01-17 Richard Henderson <rth@redhat.com>
13519 * except.c (dump_eh_tree): Fix stray ; after for statement.
13521 2011-01-17 Richard Guenther <rguenther@suse.de>
13523 PR tree-optimization/47313
13524 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13525 handling before copying the body. Properly deal with
13526 by-reference result in SSA form.
13528 2011-01-17 Ian Lance Taylor <iant@google.com>
13531 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13532 (struct_value_alias_set): Don't define.
13533 (sparc_option_override): Don't set sparc_sr_alias_set and
13534 struct_value_alias_set.
13535 (save_or_restore_regs): Use gen_frame_mem rather than calling
13537 (sparc_struct_value_rtx): Likewise.
13539 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13542 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13543 (_mm_maskstore_pd): Likewise.
13544 (_mm_maskload_ps): Likewise.
13545 (_mm_maskstore_ps): Likewise.
13546 (_mm256_maskload_pd): Change mask to __m256i.
13547 (_mm256_maskstore_pd): Likewise.
13548 (_mm256_maskload_ps): Likewise.
13549 (_mm256_maskstore_ps): Likewise.
13551 * config/i386/i386-builtin-types.def: Updated.
13552 (ix86_expand_special_args_builtin): Likewise.
13554 * config/i386/i386.c (bdesc_special_args): Update
13555 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13556 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13557 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13558 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13560 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13561 Use <avxpermvecmode> on mask register.
13562 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13564 2011-01-17 Olivier Hainque <hainque@adacore.com>
13565 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13566 Eric Botcazou <ebotcazou@adacore.com>
13569 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13570 if <= USHRT_MAX in 32-bit mode.
13572 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13574 * doc/install.texi (Configuration, Specific): Wrap long
13575 lines in examples. Allow line wrapping in long options
13576 and URLs where beneficial for PDF output.
13578 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13580 * config/mips/mips.c (mips_classify_symbol): Don't return
13581 SYMBOL_PC_RELATIVE for nonlocal labels.
13583 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13585 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13587 2011-01-15 Jan Hubicka <jh@suse.cz>
13589 PR tree-optimization/47276
13590 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13591 declarations as needed.
13593 2011-01-15 Martin Jambor <mjambor@suse.cz>
13595 * common.opt (fdevirtualize): New flag.
13596 * doc/invoke.texi (Option Summary): Document it.
13597 * opts.c (default_options_table): Add devirtualize flag.
13598 * ipa-prop.c (detect_type_change): Return immediately if
13599 devirtualize flag is not set.
13600 (detect_type_change_ssa): Likewise.
13601 (compute_known_type_jump_func): Likewise.
13602 (ipa_analyze_virtual_call_uses): Likewise.
13604 2011-01-14 Martin Jambor <mjambor@suse.cz>
13606 PR tree-optimization/45934
13607 PR tree-optimization/46302
13608 * ipa-prop.c (type_change_info): New type.
13609 (stmt_may_be_vtbl_ptr_store): New function.
13610 (check_stmt_for_type_change): Likewise.
13611 (detect_type_change): Likewise.
13612 (detect_type_change_ssa): Likewise.
13613 (compute_complex_assign_jump_func): Check for dynamic type change.
13614 (compute_complex_ancestor_jump_func): Likewise.
13615 (compute_known_type_jump_func): Likewise.
13616 (compute_scalar_jump_functions): Likewise.
13617 (ipa_analyze_virtual_call_uses): Likewise.
13618 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13620 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13622 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13623 * config/i386/i386.opt (msse5): New Alias.
13625 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13627 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13628 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13629 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13630 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13632 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13634 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13636 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13637 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13638 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13639 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13641 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13643 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13645 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13647 2011-01-14 Mike Stump <mikestump@comcast.net>
13649 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13650 * config/fr30/fr30.md: Likweise
13651 (movsi_push): Likewise.
13652 (movsi_pop): Likewise.
13653 (enter_func): Likewise.
13654 * config/moxie/moxie.md (movsi_push): Likewise.
13655 (movsi_pop): Likewise.
13657 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13659 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13660 %{no_archive} %{exact_version}.
13661 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13662 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13663 %{no_archive} %{exact_version}.
13664 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13665 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13666 * config/mips/vxworks.h: Likewise.
13668 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13670 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13672 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13674 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13675 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13677 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13679 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13682 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13684 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13686 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13687 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13689 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13690 Don't handle -shlib.
13692 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13694 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13695 (CC1_SPEC): Don't handle -profile.
13697 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13699 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13700 * config/mips/mips.h (CC1_SPEC): Likewise.
13702 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13704 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13705 * config/mips/mips.h (CC1_SPEC): Likewise.
13707 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13709 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13710 * config/m32r/linux.h (LINK_SPEC): Likewise.
13711 * config/mips/linux.h (LINK_SPEC): Likewise.
13712 * config/mips/linux64.h (LINK_SPEC): Likewise.
13713 * config/sparc/linux.h (LINK_SPEC): Likewise.
13714 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13715 LINK_SPEC): Likewise.
13716 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13718 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13720 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13722 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13726 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13727 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13731 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13733 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13735 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13736 supports -Bstatic/-Bdynamic.
13737 * configure: Regenerate.
13739 2011-01-14 Jan Hubicka <jh@suse.cz>
13740 Jack Howarth <howarth@bromo.med.uc.edu>
13743 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13744 when checking debug_info_level. Test write_symbols instead of
13745 debug_hooks->var_location when setting flag_var_tracking_uninit.
13747 2011-01-14 Richard Guenther <rguenther@suse.de>
13749 PR tree-optimization/47179
13750 * target.def (ref_may_alias_errno): New target hook.
13751 * targhooks.h (default_ref_may_alias_errno): Declare.
13752 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13753 (default_ref_may_alias_errno): New function.
13754 * target.h (struct ao_ref_s): Declare.
13755 * tree-ssa-alias.c: Include target.h.
13756 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13757 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13758 (targhooks.o): Likewise.
13759 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13760 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13762 2011-01-14 Richard Guenther <rguenther@suse.de>
13764 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13766 2011-01-14 Richard Guenther <rguenther@suse.de>
13768 PR tree-optimization/47280
13769 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13770 return CFG changes.
13771 (tree_ssa_forward_propagate_single_use_vars): Deal with
13772 CFG changes from associate_plusminus.
13774 2011-01-14 Richard Guenther <rguenther@suse.de>
13776 PR middle-end/47281
13778 2011-01-11 Richard Guenther <rguenther@suse.de>
13780 PR tree-optimization/46076
13781 * tree-ssa.c (useless_type_conversion_p): Conversions from
13782 unprototyped to empty argument list function types are useless.
13784 2011-01-14 Richard Guenther <rguenther@suse.de>
13786 PR tree-optimization/47286
13787 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13789 2011-01-14 Martin Jambor <mjambor@suse.cz>
13791 PR middle-end/46823
13792 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13794 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13796 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13797 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13798 * config/xtensa/xtensa.c (xtensa_libcall_value,
13799 xtensa_function_value_regno_p): New functions.
13800 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13802 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13805 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13807 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13808 New function prototype.
13809 * config/i386/winnt.c (i386_pe_assemble_visibility):
13810 Warn only if attribute was specified by user.
13812 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13815 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13817 (floatunsdidf2_fcfidu): Ditto.
13819 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13821 * config/s390/s390.c (print_operand_address): Replace 'error' with
13822 'output_operand_lossage'.
13823 (print_operand): Likewise.
13825 2011-01-13 Jeff Law <law@redhat.com>
13827 PR rtl-optimization/39077
13828 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13829 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13830 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13831 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13832 * gcse.c (prune_insertions_deletions): New function.
13833 (compute_pre_data): Use it.
13835 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13838 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13840 (prune_unused_types_mark): Use it.
13842 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13844 PR rtl-optimization/45352
13845 * sel-sched.c: Update copyright years.
13846 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13847 in the advancing loop when we have issued issue_rate insns.
13849 2011-01-12 Richard Henderson <rth@redhat.com>
13851 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13852 (TARGET_MD_ASM_CLOBBERS): New.
13854 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13855 (TARGET_DELEGITIMIZE_ADDRESS): New.
13857 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13858 (clzsi2, *bsch): New patterns.
13860 * config/mn10300/mn10300.md (INT): New mode iterator.
13861 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13863 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13864 flag_split_wide_types.
13866 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13867 (mn10300_trampoline_init): Rewrite without a template, an immediate
13868 load and a direct branch.
13869 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13871 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13873 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13874 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13875 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13876 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13878 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13881 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13884 2011-01-12 Jan Hubicka <jh@suse.cz>
13887 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13888 (PLUGIN_COND_CLOSE): New macro.
13889 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13891 2011-01-12 Richard Guenther <rguenther@suse.de>
13894 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13895 register variables in a MEM_REF.
13897 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13899 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13900 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13901 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13902 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13903 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13904 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13905 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13906 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13907 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13908 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13909 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13910 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13911 * config/gnu-user.h: New. Copied from linux.h.
13912 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13913 GNU_USER_TARGET_STARTFILE_SPEC.
13914 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13915 GNU_USER_TARGET_ENDFILE_SPEC.
13916 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13917 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13918 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13919 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13920 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13921 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13922 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13923 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13924 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13925 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13926 * config/arm/linux-eabi.h (CC1_SPEC): Use
13927 GNU_USER_TARGET_CC1_SPEC.
13928 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13929 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13930 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13931 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13932 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13933 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13934 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13935 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13937 2011-01-12 Richard Guenther <rguenther@suse.de>
13940 * doc/invoke.texi (ffast-math): Document it is turned on
13943 2011-01-12 Jan Hubicka <jh@suse.cz>
13945 PR tree-optimization/47233
13946 * opts.c (common_handle_option): Disable ipa-reference with profile
13949 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13951 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13954 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13956 * c-parser.c (c_lex_one_token): Updated and reindented some
13957 comments. No changes in code.
13959 2011-01-11 Ian Lance Taylor <iant@google.com>
13961 * godump.c (go_output_var): Don't output the variable if there is
13962 already a type with the same name.
13964 2011-01-11 Ian Lance Taylor <iant@google.com>
13966 * godump.c (go_format_type): Don't generate float80.
13968 2011-01-11 Richard Henderson <rth@redhat.com>
13970 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13971 declaration. Rewrite for both speed and size.
13972 (mn10300_address_cost_1): Remove.
13973 (mn10300_register_move_cost): New.
13974 (mn10300_memory_move_cost): New.
13975 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13976 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13977 extensions, shifts, BSWAP, CLZ.
13978 (mn10300_wide_const_load_uses_clr): Remove.
13979 (TARGET_REGISTER_MOVE_COST): New.
13980 (TARGET_MEMORY_MOVE_COST): New.
13981 * config/mn10300/mn10300-protos.h: Update.
13982 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13984 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13985 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13986 * config/mn10300/mn10300-protos.h: Update.
13987 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13988 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13989 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13990 (*test_int_bitfield, *test_byte_bitfield): Remove.
13991 (*bit_test, *subreg_bit_test): Remove.
13992 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13994 * config/mn10300/constraints.md ("c"): Rename from "A".
13995 ("A", "D"): New constraint letters.
13996 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13997 (fmssf4, fnmasf4, fnmssf4): Likewise.
13999 * config/mn10300/mn10300.md (isa): New attribute.
14000 (enabled): New attribute.
14002 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14003 (abssf2, negsf2): Define only for hardware fp.
14004 (sqrtsf2): Reformat.
14005 (addsf3, subsf3, mulsf3): Merge expander and insn.
14007 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14008 (DEBUGGER_AUTO_OFFSET): Remove.
14009 (DEBUGGER_ARG_OFFSET): Remove.
14011 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14012 Emit register stores with the same offsets as the hardware.
14013 (mn10300_store_multiple_operation): Don't check that the register
14014 save offsets are monotonic.
14015 * config/mn10300/mn10300-protos.h: Update.
14017 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14019 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14020 in terms of the value on the stack, not the MDR register.
14022 2011-01-11 Jan Hubicka <jh@suse.cz>
14026 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14027 (symbol_alias_set_destroy, symbol_alias_set_contains,
14028 propagate_aliases_backward): Declare.
14029 * lto-streamer-out.c (struct sets): New sturcture.
14030 (trivally_defined_alias): New function.
14031 (output_alias_pair_p): Rewrite.
14032 (output_unreferenced_globals): Fix output of alias pairs.
14033 (produce_symtab): Likewise.
14034 * ipa.c (function_and_variable_visibility): Set weak alias destination
14036 * varasm.c (symbol_alias_set_t): Remove.
14037 (symbol_alias_set_destroy): Export.
14038 (propagate_aliases_forward, propagate_aliases_backward): New functions
14040 (compute_visible_aliases): ... this one; remove.
14041 (trivially_visible_alias): New
14042 (trivially_defined_alias): New.
14043 (remove_unreachable_alias_pairs): Rewrite.
14044 (finish_aliases_1): Reorganize code checking if alias is defined.
14045 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14048 2011-01-11 Richard Guenther <rguenther@suse.de>
14050 PR tree-optimization/46076
14051 * tree-ssa.c (useless_type_conversion_p): Conversions from
14052 unprototyped to empty argument list function types are useless.
14054 2011-01-11 Richard Guenther <rguenther@suse.de>
14056 PR middle-end/45235
14057 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14058 volatile MEMs as MEM_READONLY_P.
14060 2011-01-11 Richard Guenther <rguenther@suse.de>
14062 PR tree-optimization/47239
14063 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14065 2011-01-11 Jeff Law <law@redhat.com>
14067 PR tree-optimization/47086
14068 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14069 IVs from statements that might throw.
14071 2011-01-10 Jan Hubicka <jh@suse.cz>
14074 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14076 2011-01-10 Jan Hubicka <jh@suse.cz>
14079 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14080 when correcting profile.
14082 2011-01-10 Jan Hubicka <jh@suse.cz>
14085 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14086 DECL_FINI_PRIORITY.
14087 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14088 Restore DECL_FINI_PRIORITY.
14090 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14092 * doc/gimple.texi: Fix quoting of multi-word return values in
14093 @deftypefn statements. Ensure presence of return value. Wrap
14094 overlong @deftypefn lines.
14095 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14096 descriptions of removed functions.
14097 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14098 of multi-word return value in @deftypefn statement.
14100 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14102 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14103 (Conditional Expressions, Logical Operators)
14104 (Statement and operand traversals): Do not indent smallexample
14105 code. Fix duplicate function argument in example.
14107 2011-01-10 Jeff Law <law@redhat.com>
14109 PR tree-optimization/47141
14110 * ipa-split.c (split_function): Handle case where we are
14111 returning a value and the return block has a virtual operand phi.
14113 2011-01-10 Jan Hubicka <jh@suse.cz>
14115 PR tree-optimization/47234
14116 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14117 (pass_feedback_split_functions): Declare.
14118 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14120 * ipa-split.c (gate_split_functions): Update comments; disable
14121 split-functions for profile_arc_flag and branch_probabilities.
14122 (gate_feedback_split_functions): New function.
14123 (execute_feedback_split_functions): New function.
14124 (pass_feedback_split_functions): New global var.
14126 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14129 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14130 calling gimple_call_set_cannot_inline.
14132 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14134 * config/darwin-sections.def: Remove unused section.
14136 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14139 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14141 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14144 * c-parser.c (c_parser_declaration_or_fndef): Improved
14147 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14149 * config/i386/winnt.c (i386_pe_start_function): Make sure
14150 to switch back to function's section.
14152 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14156 * plugin.c: Move include of dlfcn.h from here...
14157 * system.h: ... to here.
14159 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14161 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14163 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14164 two extra empty pages in PDF output.
14166 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14169 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14170 for error recovery purposes behave as if it was not specified so
14171 that the default type is usd.
14173 2011-01-07 Jan Hubicka <jh@suse.cz>
14175 PR tree-optmization/46469
14176 * ipa.c (function_and_variable_visibility): Clear needed flags on
14177 nodes with external decls; handle weakrefs merging correctly.
14179 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14181 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14184 2011-01-07 Jan Hubicka <jh@suse.cz>
14186 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14187 and no longer claim that gold is required for linker plugin.
14188 * configure: Regenerate.
14189 * gcc.c (PLUGIN_COND): New macro.
14190 (LINK_COMMAND_SPEC): Use it.
14191 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14192 * config.in (HAVE_LTO_PLUGIN): New.
14193 * configure.ac (--with-lto-plugin): New parameter; autodetect
14196 2011-01-07 Jan Hubicka <jh@suse.cz>
14198 PR tree-optimization/46367
14199 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14200 when we can update original.
14201 (cgraph_mark_inline_edge): Sanity check.
14202 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14204 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14206 * config/spu/spu.h (ASM_COMMENT_START): Define.
14208 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14211 * gcc.c (%>S): New.
14212 (SWITCH_KEEP_FOR_GCC): Likewise.
14213 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14214 (do_spec_1): Handle "%>".
14216 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14218 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14221 * config/i386/i386.c (ix86_delegitimize_address): If
14222 simplify_gen_subreg fails, return orig_x.
14225 * value-prof.c (gimple_stringop_fixed_value): Handle
14226 lhs of the call properly.
14228 2011-01-07 Jan Hubicka <jh@suse.cz>
14231 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14233 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14235 * target.def (function_switched_text_sections): New hook.
14236 * doc/tm.texi: Regenerated.
14237 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14238 * final.c (default_function_switched_text_sections): New.
14239 (final_scan_insn): Call function_switched_text_sections when a
14240 mid-function section change occurs.
14241 * output.h (default_function_switched_text_sections): Declare.
14242 * config/darwin-protos.h (darwin_function_switched_text_sections):
14244 * config/darwin.c (darwin_function_switched_text_sections): New.
14245 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14247 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14249 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14250 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14251 the secondary code fragment when outputting for DWARF == 2.
14253 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14255 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14256 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14258 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14259 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14261 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14264 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14265 when it is not empty.
14267 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14270 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14271 (case ${target}): Add btver1.
14272 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14273 -march=native recognize btver1 processors.
14274 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14275 btver1 def_and_undef
14276 * config/i386/i386.c (struct processor_costs btver1_cost): New
14278 (m_BTVER1): New definition.
14279 (m_AMD_MULTIPLE): Includes m_BTVER1.
14280 (initial_ix86_tune_features): Add btver1 tune.
14281 (processor_target_table): Add btver1 entry.
14282 (static const char *const cpu_names): Add btver1 entry.
14283 (software_prefetching_beneficial_p): Add btver1.
14284 (ix86_option_override_internal): Add btver1 instruction sets.
14285 (ix86_issue_rate): Add btver1.
14286 (ix86_adjust_cost): Add btver1.
14287 * config/i386/i386.h (TARGET_BTVER1): New definition.
14288 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14289 (enum processor_type): Add PROCESSOR_BTVER1.
14290 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14292 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14295 * config/i386/i386.c (legitimize_tls_address)
14296 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14297 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14298 (tls_initial_exec_64_sun): New pattern.
14300 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14302 * doc/invoke.texi (Overall Options): Improve wording and markup
14303 of the description of -wrapper.
14305 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14307 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14308 rdynamic, threads): New Driver options.
14310 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14313 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14314 if coming from .tdata.
14315 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14317 2011-01-06 Jan Hubicka <jh@suse.cz>
14320 * collect2.c (main): Do not enable LTOmode when plugin is active.
14322 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14325 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14326 --version output if supported.
14327 * configure: Regenerate.
14329 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14331 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14334 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14337 * c-convert.c (convert): When converting a complex expression
14338 other than COMPLEX_EXPR to a different complex type, ensure
14339 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14340 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14341 when converting COMPLEX_TYPE.
14343 2011-01-06 Ira Rosen <irar@il.ibm.com>
14345 PR tree-optimization/47139
14346 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14347 only the last reduction value is used outside the loop. Update
14350 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14352 * config/rtems.opt: New.
14353 * config.gcc (*-*-rtems*): Use rtems.opt.
14355 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14357 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14358 processors do not support 3DNow instructions.
14360 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14362 * config/spu/spu.c (spu_option_override): Set parameter
14363 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14365 2011-01-05 Jan Hubicka <jh@suse.cz>
14367 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14368 at the command line.
14370 2011-01-05 Martin Jambor <mjambor@suse.cz>
14373 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14374 deltas on streamed outgoing edges.
14375 (output_node_opt_summary): Output info for outgoing edges only when
14376 the node is in new parameter set.
14377 (output_cgraph_opt_summary): New parameter set, passed to the two
14378 aforementioned functions. Update its forward declaration and its
14381 2011-01-05 Tom Tromey <tromey@redhat.com>
14383 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14384 operator to c_finish_omp_atomic.
14385 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14386 (build_unary_op): Update.
14387 (build_modify_expr): Update.
14388 (build_asm_expr): Update.
14390 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14392 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14393 newly inserted insns.
14394 (pad_bb): Likewise.
14395 (spu_emit_branch_hint): Likewise.
14396 (insert_hbrp_for_ilb_runout): Likewise.
14397 (spu_machine_dependent_reorg): Call df_finish_pass after
14398 schedule_insns returns.
14400 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14402 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14404 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14406 PR tree-optimization/47005
14407 * tree-sra.c (struct access): Add 'non_addressable' bit.
14408 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14409 (decide_one_param_reduction): Return 0 if the parameter is passed by
14410 reference and one of the accesses in the group is non_addressable.
14412 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14414 PR tree-optimization/47056
14415 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14416 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14417 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14419 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14421 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14422 initializer. Skip view conversions from aggregate types.
14424 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14427 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14429 2011-01-04 Philipp Thomas <pth@suse.de>
14431 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14434 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14436 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14437 on empty epilogue sequences.
14439 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14441 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14442 non-static): New Driver options.
14444 2011-01-04 Jie Zhang <jie@codesourcery.com>
14447 * gcc.c (default_compilers[]): Set combinable field to 0
14448 for all assembly languages.
14450 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14452 * config/mips/loongson3a.md: New file.
14453 * config/mips/mips.md: Include loongson3a.md.
14454 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14457 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14459 PR middle-end/47017
14460 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14461 instead of convert_memory_address_addr_space on the base expression.
14463 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14465 * config/spu/spu.c (spu_option_override): Update error text
14466 for bad -march= / -mtune= values.
14468 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14470 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14471 if branch-hint optimization will be performed.
14473 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14475 PR tree-optimization/47148
14476 * ipa-split.c (split_function): Convert arguments to
14477 DECL_ARG_TYPE if possible.
14479 PR tree-optimization/47155
14480 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14481 when computing uns.
14483 PR rtl-optimization/47157
14484 * combine.c (try_combine): If undobuf.other_insn becomes
14485 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14486 and set *new_direct_jump_p too.
14488 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14490 PR tree-optimization/47021
14491 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14493 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14495 * gcc.c (process_command): Update copyright notice dates.
14496 * gcov.c (print_version): Likewise.
14497 * gcov-dump.c (print_version): Likewise.
14498 * mips-tfile.c (main): Likewise.
14499 * mips-tdump.c (main): Likewise.
14501 2011-01-03 Martin Jambor <mjambor@suse.cz>
14503 PR tree-optimization/46801
14504 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14505 aggregate fields start at byte boundary instead of the bit-field flag.
14507 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14510 * gcc.c (main): Revert revision 168407.
14512 2011-01-03 Martin Jambor <mjambor@suse.cz>
14514 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14516 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14518 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14519 vector optab to expand vector/scalar shift, update gimple to vector.
14521 2011-01-03 Martin Jambor <mjambor@suse.cz>
14523 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14526 2011-01-03 Martin Jambor <mjambor@suse.cz>
14528 PR tree-optimization/46984
14529 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14531 (cgraph_create_indirect_edge): Fixed line length.
14532 (cgraph_indirect_call_info): Declare.
14533 (cgraph_make_edge_direct) Update declaration.
14534 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14535 (cgraph_create_indirect_edge): Use it.
14536 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14538 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14539 the new thunk_delta representation.
14540 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14542 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14543 (ipa_read_indirect_edge_info): Likewise.
14544 * lto-cgraph.c (output_edge_opt_summary): New function.
14545 (output_node_opt_summary): Call it on all outgoing edges.
14546 (input_edge_opt_summary): New function.
14547 (input_node_opt_summary): Call it on all outgoing edges.
14549 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14552 * gcc.c (main): Don't check have_o when settting combine_inputs.
14554 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14556 * regrename.c: Add general comment describing the pass.
14557 (struct du_head): Remove 'length' field.
14558 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14559 (regrename_optimize): Do not sort chains. Rework comments, add others.
14560 Force renaming to the preferred class (if any) in the first pass and do
14561 not consider registers that belong to it in the second pass.
14562 (create_new_chain): Do not set 'length' field.
14563 (scan_rtx_reg): Likewise.
14565 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14567 PR tree-optimization/47140
14568 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14569 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14570 to bit_value_binop.
14572 PR rtl-optimization/47028
14573 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14574 parm_birth_insn instead of at the beginning of first bb.
14576 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14578 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14579 Remove the word "see" before "@pxref".
14580 * doc/rtl.texi: Remove the word "see" before "@pxref".
14582 2011-01-01 Jan Hubicka <jh@suse.cz>
14584 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14587 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14590 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14593 Copyright (C) 2011 Free Software Foundation, Inc.
14595 Copying and distribution of this file, with or without modification,
14596 are permitted in any medium without royalty provided the copyright
14597 notice and this notice are preserved.