1 2011-05-14 Tobias Burnus <burnus@net-b.de>
3 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5 2011-05-13 Martin Jambor <mjambor@suse.cz>
7 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
10 (evaluate_conditions_for_ipcp_clone): Removed.
11 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
17 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
18 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
19 lieu of MAY_HAVE_DEBUG_STMTS.
20 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
21 debug statements if !MAY_HAVE_DEBUG_STMTS.
23 2011-05-13 Martin Thuresson <martint@google.com>
26 * libgcov.c (gcov_exit): Support relative profile paths.
27 * doc/invoke.texi (-fprofile-dir): Update for above change.
29 2011-05-13 Richard Guenther <rguenther@suse.de>
31 * gimple.c (gimple_canonical_types_compatible_p): Do not use
32 type-pair caching, do not compare hashes.
34 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
37 * tree-cfg.c (edge_to_cases_cleanup): Return true.
38 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
40 2011-05-13 Kai Tietz <ktietz@redhat.com>
42 * gimplify.c (gimplify_expr): Make sure operand is boolified.
43 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
44 compatible type for TRUTH_NOT_EXPR.
46 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
48 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
49 (ix86_hard_regno_mode_ok): Change return value to bool. Use
50 can_create_pseudo_p ().
52 2011-05-13 Richard Guenther <rguenther@suse.de>
55 * gimple.c (iterative_hash_gimple_type): Revert change in
56 pointer target and function result and argument hashing.
58 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
60 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
61 (*movxf_internal_nointeger): Ditto.
62 (*movdf_internal_rex64): Ditto.
63 (*movdf_internal): Ditto.
64 (*movdf_internal_nointeger): Ditto.
65 (*movsf_internal): Ditto.
66 (sincos splitters): Use can_create_pseudo ().
68 2011-05-13 Joseph Myers <joseph@codesourcery.com>
70 * config/i386/i386-opts.h: New.
71 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
72 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
73 ix86_section_threshold): Remove.
74 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
75 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
77 (ix86_option_override_internal): Don't decode strings for options
78 other than -march=, -mtune= and -mfpmath=. Don't allow for
79 __attribute__ uses in remaining diagnostics for options with
80 string arguments. Don't check for integer arguments being negative.
81 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
82 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
83 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
84 ix86_branch_cost, ix86_section_threshold): Remove.
85 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
87 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
89 (masm=): Use Enum and Init.
90 (asm_dialect): New Enum and EnumValue entries.
91 (mbranch-cost=): Use UInteger.
92 (mlarge-data-threshold=): Use UInteger and Init.
93 (mcmodel=): Use Enum and Init.
94 (cmodel): New Enum and EnumValue entries.
95 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
96 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
97 mregparm=): Use UInteger.
98 (mstringop-strategy=): Use Enum and Init.
99 (stringop_alg): New Enum and EnumValue entries.
100 (mtls-dialect=): Use Enum and Init.
101 (tls_dialect): New Enum and EnumValue entries.
102 (mabi=): Use Enum and Init.
103 (calling_abi): New Enum and EnumValue entries.
104 (mveclibabi=): Use Enum and Init.
105 (ix86_veclibabi): New Enum and EnumValue entries.
107 2011-05-13 Nick Clifton <nickc@redhat.com>
109 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
110 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
112 2011-05-13 Kai Tietz <ktietz@redhat.com>
115 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
116 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
117 (gimple_boolify): Check for cast for boolean_type_node instead for
120 2011-05-13 Richard Guenther <rguenther@suse.de>
122 PR tree-optimization/48172
123 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
124 multiplying by number of iterations for equal step.
125 (vect_create_cond_for_alias_checks): Likewise.
127 2011-05-13 Andreas Schwab <schwab@redhat.com>
129 * configure.ac: Use AS_HELP_STRING throughout.
130 * configure: Regenerate.
132 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
134 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
135 (ix86_emit_restore_regs_using_mov): Likewise.
136 (ix86_emit_restore_sse_regs_using_mov): Likewise.
138 2011-05-12 Anatoly Sokolov <aesok@post.ru>
140 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
141 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
142 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
143 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
144 RTX_OK_FOR_OLO10_P): ...here.
145 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
148 2011-05-12 Kai Tietz <ktietz@redhat.com>
150 * gimplify.c (gimple_boolify): Re-boolify expression
151 arguments even if expression type is of kind BOOLEAN_TYPE.
152 (gimplify_boolean_expr): Removed.
153 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
154 and XOR. Additional take care that we keep expression's type.
155 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
156 of TRUTH_AND|OR|XOR_EXPR.
158 2011-05-12 Jakub Jelinek <jakub@redhat.com>
160 PR tree-optimization/48975
161 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
162 on all bbs here and free and clear ifc_bbs at the end.
164 2011-05-12 Richard Guenther <rguenther@suse.de>
166 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
167 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
168 until after simple checks.
169 (gimple_types_compatible_p): Likewise.
170 (iterative_hash_gimple_type): Always hash pointer targets
171 and function return and argument types.
172 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
173 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
174 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
175 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
176 completely in the simple compare section.
177 (gimple_register_canonical_type): Query the cache again after
180 2011-05-12 Richard Guenther <rguenther@suse.de>
182 PR tree-optimization/48172
183 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
184 the number of iterations from the segment size calculation.
185 (vect_create_cond_for_alias_checks): Adjust.
187 2011-05-12 Jakub Jelinek <jakub@redhat.com>
190 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
191 if validate_subreg fails.
193 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
195 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
196 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
199 2011-05-12 DJ Delorie <dj@redhat.com>
201 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
202 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
203 created builtin into rx_builtins array.
204 (rx_builtin_decl): New function.
205 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
207 2011-05-12 DJ Delorie <dj@redhat.com>
208 Nick Clifton <nickc@redhat.com>
210 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
211 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
212 (rx_is_legitimate_address): Add pre-decrement and post-increment
213 addressing in HImode and QImode. Fix test for out of range
215 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
216 (rx_align_for_label): Test label before extracting its usage count.
217 (rx_adjust_insn_lengths): Fix selection of insn codes.
218 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
220 2011-05-11 Jason Merrill <jason@redhat.com>
222 * tree.c (type_hash_canon): Use struct tree_type_non_common.
224 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
226 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
227 reindent the subsequent block.
229 2011-05-11 Satoru Takabayashi <satorux@google.com>
230 Paul Pluzhnikov <ppluzhnikov@google.com>
232 * doc/install.texi (Configuration): Document --with-linker-hash-style.
233 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
234 * config.in: Add LINKER_HASH_STYLE.
235 * configure.ac: Add --with-linker-hash-style.
236 * configure: Regenerate.
238 2011-05-11 Richard Guenther <rguenther@suse.de>
241 * gimple.c (iterative_hash_canonical_type): Fix typo.
243 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
245 * config/i386/i386.c (legitimize_tls_address)
246 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
247 expanders directly for TARGET_GNU2_TLS. Determine pic and
248 __tls_get_addr symbol reference here. Update call to
249 gen_tls_global_dynamic_{32,64} for added arguments.
250 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
251 expanders directly for TARGET_GNU2_TLS. Determine
252 __tls_get_addr symbol reference here. Update call to
253 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
254 unique UNSPEC REG_EQUIV to libcall block.
255 (ix86_tls_get_addr): Declare static.
256 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
257 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
258 Do not determine pic and __tls_get_addr symbol reference here. Do not
259 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
260 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
261 (tls_global_dynamic_64): Add operand 2. Do not determine
262 __tls_get_addr symbol reference here. Do not call
263 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
264 (tls_local_dynamic_base64): Ditto for operand 1.
266 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
268 * function.c (expand_function_start): Initialize stack_check_probe_note
269 only if the generic stack checking mechanism is used.
271 2011-05-11 Richard Guenther <rguenther@suse.de>
273 PR tree-optimization/15256
274 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
275 (A & B) | C, combine (A op CST1) op CST2.
276 (tree_ssa_forward_propagate_single_use_vars): Only bother to
277 visit assigns that have uses.
279 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
281 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
282 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
283 (unpack_ts_type_common_value_fields): ...this. Update comment.
284 (unpack_value_fields): Adjust for renaming.
285 (lto_input_ts_type_tree_pointers): Split into...
286 (lto_input_ts_type_common_tree_pointer): ...this and...
287 (lto_input_ts_type_non_common_tree_pointers): ...this.
288 (lto_input_tree_pointers): Adjust for above split.
289 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
290 (pack_ts_type_common_value_fields): ...this. Update comment.
291 (lto_output_ts_type_tree_pointers): Split into...
292 (lto_output_ts_type_common_tree_pointers): ...this and...
293 (lto_output_ts_type_non_common_tree_pointers): ...this.
294 (lto_output_tree_pointers): Adjust for above split.
295 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
296 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
297 * stor-layout.c (vector_type_mode): Adjust location of mode field.
298 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
300 (struct tree_type): Split into...
301 (struct tree_type_common: ...this and...
302 (struct tree_type_with_lang_specific): ...this and...
303 (struct tree_type_non_common): ...this. Adjust accessor macros
305 (TYPE_VALUES_RAW): Define.
306 (union tree_node): Update for above changes.
307 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
309 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
310 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
311 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
312 * treestructu.def (TS_TYPE): Remove.
313 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
316 2011-05-11 Jakub Jelinek <jakub@redhat.com>
319 * tree-ssa.c (reset_debug_uses): New function.
320 * tree-flow.h (reset_debug_uses): New prototype.
321 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
322 * tree-loop-distribution.c (generate_loops_for_partition): Call
323 reset_debug_uses on the stmts that will be removed. Keep around
324 all debug stmts, don't count them as bits in partition bitmap.
325 (generate_builtin): Don't count debug stmts or labels as bits in
328 2011-05-11 Richard Guenther <rguenther@suse.de>
330 * gimple.c (gimple_type_hash_1): Merge with ...
331 (gimple_type_hash): ... this.
332 (gtc_visit): Remove mode parameter and simplify accordingly.
333 (gimple_types_compatible_p_1): Likewise.
334 (gimple_types_compatible_p): Likewise.
335 (iterative_hash_gimple_type): Likewise.
337 (gimple_type_eq): Adjust.
339 2011-05-11 Revital Eres <revital.eres@linaro.org>
341 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
342 enters the branch create an anti edge in the opposite direction
343 to prevent the creation of reg-moves.
344 * modulo-sched.c: Adjust comment to reflect the fact we are
345 scheduling closing branch.
346 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
347 (stage_count): New field in struct partial_schedule.
348 (calculate_stage_count): New function.
349 (normalize_sched_times): Rename to reset_sched_times and handle
350 incrementing the sched time of the nodes by a constant value
352 (duplicate_insns_of_cycles): Skip closing branch.
353 (sms_schedule_by_order): Schedule closing branch.
354 (ps_insn_find_column): Handle closing branch.
355 (sms_schedule): Call reset_sched_times and adjust the code to
356 support scheduling of the closing branch.
357 (ps_insert_empty_row): Update calls to normalize_sched_times
358 and rotate_partial_schedule functions.
360 2011-05-11 Richard Guenther <rguenther@suse.de>
363 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
365 2011-05-11 Joseph Myers <joseph@codesourcery.com>
367 * opts.c (finish_options): Move warning settings from process_options.
368 * toplev.c (process_options): Move warning settings to finish_options.
370 2011-05-11 Richard Guenther <rguenther@suse.de>
372 PR tree-optimization/18041
373 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
374 (simplify_bitwise_binary): ... this. Handle operand conversions
375 by applying them to the result instead.
376 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
378 2011-05-11 Richard Guenther <rguenther@suse.de>
380 * gimple.c (gimple_canonical_types_compatible_p): Split out
381 from gimple_types_compatible_p and friends. Do not recurse
383 (gimple_canonical_type_eq): Use it.
384 (iterative_hash_canonical_type): Split out from
385 iterative_hash_gimple_type and friends. Do not recurse
387 (gimple_canonical_type_hash): Use it, allocate the hash here.
389 2011-05-11 Revital Eres <revital.eres@linaro.org>
391 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
394 2011-05-11 Revital Eres <revital.eres@linaro.org>
396 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
397 instead of PREV_INSN.
399 2011-05-11 Revital Eres <revital.eres@linaro.org>
401 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
402 * loop-doloop.c (doloop_condition_get): Likewise.
403 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
405 * config/arm/arm.md (*addsi3_compare0): Remove "*".
407 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
409 * tree.def (CASE_LABEL_EXPR): Add an operand.
410 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
412 2011-05-10 Joseph Myers <joseph@codesourcery.com>
414 * c-decl.c (c_override_global_bindings_to_false): Remove.
415 (global_bindings_p): Don't check
416 c_override_global_bindings_to_false.
417 * c-tree.h (c_override_global_bindings_to_false): Remove.
418 * c-typeck.c (composite_type): Don't set
419 c_override_global_bindings_to_false.
421 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
423 PR target/48857, 48495
424 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
426 (VSX_MOVE_MODE): Ditto.
427 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
428 VSX vector types. Add V2DImode.
429 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
430 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
431 (MODES_TIEABLE_P): Ditto.
433 * config/rs6000/rs6000.c (rs6000_emit_move): Use
434 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
436 (init_cumulative_args): Ditto.
437 (rs6000_function_arg_boundary): Ditto.
438 (rs6000_function_arg_advance_1): Ditto.
439 (rs6000_function_arg): Ditto.
440 (rs6000_function_ok_for_sibcall): Ditto.
441 (emit_frame_save): Ditto.
442 (rs6000_function_value): Ditto.
443 (rs6000_libcall_value): Ditto.
445 2011-05-10 Joseph Myers <joseph@codesourcery.com>
447 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
448 i386/darwin-lib.h to $libgcc_tm_file.
449 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
451 2011-05-10 Joseph Myers <joseph@codesourcery.com>
453 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
455 2011-05-10 Joseph Myers <joseph@codesourcery.com>
457 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
458 * config/rs6000/rs6000-tables.opt: New file (generated).
459 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
460 rs6000/rs6000-tables.opt to extra_options.
461 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
462 * config/rs6000/rs6000.c (rs6000_select): Remove.
463 (processor_target_table): Move contents to rs6000-cpus.def.
464 (darwin_rs6000_override_options): Check
465 global_options_set.x_rs6000_cpu_index instead of
466 rs6000_select[1].string.
467 (rs6000_option_override_internal): Likewise.
468 (rs6000_handle_option): Don't assert that global structures are in
469 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
470 (rs6000_default_cpu): New variable.
471 (rs6000_file_start): Set it instead of local default_cpu. Check
472 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
473 global_options_set.x_rs6000_tune_index instead of rs6000_select.
474 (rs6000_darwin_file_start): Check rs6000_default_cpu and
475 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
476 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
477 rs6000_select): Remove.
478 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
480 (mcpu=, mtune=): Use Var, Init, Enum and Save.
481 * config/rs6000/t-rs6000
482 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
483 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
484 global_options_set.x_rs6000_cpu_index instead of
485 rs6000_select[1].string.
486 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
487 global_options_set.x_rs6000_cpu_index instead of
488 rs6000_select[1].string.
490 2011-05-10 Joseph Myers <joseph@codesourcery.com>
492 * config.gcc (libgcc_tm_file): Define instead of including files
493 from ../../libgcc/config/ in tm_file.
494 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
495 * configure: Regenerate.
496 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
497 libgcc_tm.h, cs-libgcc_tm.h): New.
498 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
499 (clean): Remove libgcc_tm.h.
500 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
501 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
502 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
504 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
507 * config/avr/avr.c (avr_ret_register): Return unsigned int
509 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
510 it to avr_libcall_value.
511 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
513 (avr_expand_binop_builtin): Ditto.
514 (avr_expand_unop_builtin): Ditto.
516 2011-05-10 DJ Delorie <dj@redhat.com>
518 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
519 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
520 * config/rx/rx.c (rx_align_for_label): Add label and
521 uses_threshold parameters. Do not align when the label is not
523 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
525 2011-05-10 Richard Guenther <rguenther@suse.de>
527 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
528 a series of conversions and apply foldings similar to what
530 (tree_ssa_forward_propagate_single_use_vars): Call it.
532 2011-05-10 Jakub Jelinek <jakub@redhat.com>
534 PR tree-optimization/48611
535 PR tree-optimization/48794
536 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
537 referenced from RESX or EH_DISPATCH arguments.
540 * dfp.c (decimal_to_decnumber): Handle conversion from
543 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
545 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
546 for !flag_prefer_avx128.
547 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
549 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
551 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
552 (fold_ternary_loc): Use expr_location_or.
554 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
557 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
558 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
559 Pmode and mem_mode is not VOIDmode.
561 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
563 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
564 TYPE_QUAL_RESTRICT): Convert to enum.
566 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
568 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
569 (const_pow2_1_to_8_operand): Ditto.
570 (const_pow2_1_to_128_operand): Ditto.
571 (const_pow2_1_to_32768_operand): Ditto.
572 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
573 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
574 in insn constraint to check integer value of operand 3.
575 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
577 (PINSR_MODE): New mode iterator.
578 (sse2p4_1): New mode attribute.
579 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
580 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
581 iterator. Use const_int_operand instead of
582 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
583 exact_log2 in insn constraint to check integer value of operand 3.
585 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
587 * config/i386/sse.md (blendbits): Remove mode attribute.
588 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
589 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
590 Check integer value of operand 3 in insn constraint.
592 2011-05-09 Richard Guenther <rguenther@suse.de>
594 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
596 (lto_symtab_merge): Likewise. Do not register types here.
597 (lto_symtab_merge_decls_2): Likewise.
598 (lto_symtab_merge_decls_1): Likewise.
599 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
600 * gimple.c (enum gtc_mode): Declare.
601 (gimple_types_compatible_p): Make static.
603 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
605 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
606 temporary register to match Pmode.
608 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
610 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
611 and *vec_concatv4si_1_avx.
613 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
615 PR rtl-optimization/48927
616 * ira-conflicts.c (commutative_constraint_p): Use
617 recog_data.alternative_enabled_p to disable alternatives where
618 "enabled" attribute is false.
619 (get_dup_num): Ditto.
620 * ira-lives.c (single_reg_class): Ditto.
621 (ira_implicitly_set_insn_hard_regs): Ditto.
623 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
625 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
626 (dataflow_set_preserve_mem_locs): Likewise.
628 2011-05-09 Philipp Thomas <pth@suse.de>
630 * config/mep/mep.c (mep_validate_vliw): Syntax description
631 should not be translated.
633 2011-05-09 Joseph Myers <joseph@codesourcery.com>
635 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
636 * config/mips/mips-tables.opt: New file (generated).
637 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
638 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
639 MIPS_ARCH_OPTION_NATIVE): Define.
640 * config/mips/mips.c (mips_cpu_info_table): Move contents to
642 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
643 mips_parse_cpu): Remove.
644 (mips_cpu_info_from_opt, mips_default_arch): New.
645 (mips_handle_option): Don't assert that global structures are in
646 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
647 (mips_option_override): Use new variables and functions to set
648 state of these options. Use strcmp to check for individual CPU names.
649 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
651 * config/mips/mips.opt (march=): Use ToLower and Enum.
652 (mips): Use ToLower, Enum and Var.
653 (mtune=): Use ToLower and Enum.
654 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
656 2011-05-08 Jan Hubicka <jh@suse.cz>
658 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
659 Arrange type pairs to be UID ordered.
660 (gimple_lookup_type_leader): Make inline.
662 2011-05-09 Nick Clifton <nickc@redhat.com>
665 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
669 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
672 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
674 * combine.c (simplify_comparison): Abstract out parts into...
675 (simplify_compare_const): ... new function.
676 (try_combine): Generalize parallel arithmetic/compare combining
677 to call simplify_compare_const() and CANONICALIZE_COMPARE().
679 2011-05-08 Jan Hubicka <jh@suse.cz>
681 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
682 (cgraph_create_virtual_clone): Call hooks once virtual clone
684 * cgraph.h (cgraph_clone_node): Update prototype.
685 * ipa-cp.c (ipcp_estimate_growth): Use
686 estimate_ipcp_clone_size_and_time.
687 * ipa-inline-transform.c (clone_inlined_nodes): Update.
688 * lto-cgraph.c (input_node): Update.
689 * ipa-inline.c (recursive_inlining): Update.
690 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
691 (evaluate_conditions_for_known_args): Break out from ...
692 (evaluate_conditions_for_edge): ... here.
693 (evaluate_conditions_for_ipcp_clone): New function.
694 (inline_node_duplication_hook): Update clone summary based
696 (estimate_callee_size_and_time): Rename to ...
697 (estimate_node_size_and_time): take NODE instead of EDGE;
698 take POSSIBLE_TRUTHS as argument.
699 (estimate_callee_size_and_time): Update.
700 (estimate_ipcp_clone_size_and_time): New function.
701 (do_estimate_edge_time): Update.
703 2011-05-08 Richard Guenther <rguenther@suse.de>
707 * expmed.c (expand_shift_1): Compute adjusted constant shift
710 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
712 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
714 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
716 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
718 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
720 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
722 2011-05-07 Jan Hubicka <jh@suse.cz>
724 * ipa-inline-transform.c (inline_call): Account when program size
726 * ipa-inline.c (relative_time_benefit): New function.
727 (edge_badness): Reorganize to be power 2 based; fix thinko when
728 computing badness for negative growth; update comments to match
729 reality; better dumps.
731 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
733 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
734 type to bool and adjust comment.
735 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
736 (fold_mathfn_compare): Remove calls to global_bindings_p.
737 (fold_inf_compare): Likewise.
738 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
739 * c-tree.h (global_bindings_p): Adjust prototype.
740 * c-decl.c (global_bindings_p): Return bool and simplify.
742 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
744 PR tree-optimization/48837
745 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
746 when accumulator transformation is performed.
748 2011-05-06 Jan Hubicka <jh@suse.cz>
750 * i386.h (ix86_tune_indices): Add
751 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
752 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
753 * i386.c (initial_ix86_tune_features): Add
754 X86_SOFTARE_PREFETCHING_BENEFICIAL.
755 (software_prefetching_beneficial_p): Remove predicate.
756 (ix86_option_override_internal): Use new macro.
758 2011-05-06 Jan Hubicka <jh@suse.cz>
760 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
762 2011-05-06 Jan Hubicka <jh@suse.cz>
764 * cgraph.c (cgraph_add_thunk): Create real function node instead
765 of alias node; finalize it and mark needed/reachale; arrange visibility
766 to be right and add it into the corresponding same comdat group list.
767 (dump_cgraph_node): Dump thunks.
768 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
769 cgraph_function_with_gimple_body_p,
770 cgraph_first_function_with_gimple_body,
771 cgraph_next_function_with_gimple_body): New functions.
772 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
774 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
775 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
776 * cgraphunit.c (cgraph_finalize_function): Only look into possible
777 devirtualization when optimizing.
778 (verify_cgraph_node): Verify thunks.
779 (cgraph_analyze_function): Analyze thunks.
780 (cgraph_mark_functions_to_output): Output thunks only in combination
781 with function they are assigned to.
782 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
783 alias into normal node.
784 (assemble_thunks): New functoin.
785 (cgraph_expand_function): Use it.
786 * lto-cgraph.c (lto_output_node): Stream thunks.
787 (input_overwrite_node): Stream in thunks.
788 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
789 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
790 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
791 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
792 (inline_analyze_function): Do not care about thunk jump functions.
793 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
794 * ipa-prop.c (ipa_prop_write_jump_functions): Use
795 cgraph_function_with_gimple_body_p.
796 * passes.c (do_per_function_toporder): Use
797 cgraph_function_with_gimple_body_p.
798 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
799 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
800 (function_called_by_processed_nodes_p): Likewise.
802 2011-05-06 Joseph Myers <joseph@codesourcery.com>
804 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
805 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
807 (mabi=): Replace with separate entries for mabi=altivec,
808 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
809 mabi=ieeelongdouble and mabi=ibmlongdouble.
810 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
811 check for -mabi=spe without SPE ABI support here.
812 (rs6000_handle_option): Replace OPT_mabi_ handling with
813 OPT_mabi_altivec and OPT_mabi_spe handling.
815 2011-05-06 Cary Coutant <ccoutant@google.com>
817 * dwarf2out.c (contains_subprogram_definition): New function.
818 (should_move_die_to_comdat): Call it.
820 2011-05-06 Jeff Law <law@redhat.com>
822 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
823 remove_ctrl_stmt_and_useless_edges.
824 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
825 (fixup_template_block, thread_single_edge): Likewise.
826 (mark_threaded_blocks): Use THREAD_TARGET.
828 2011-05-06 Alan Modra <amodra@gmail.com>
831 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
832 const0_rtx as the arg to the dummy __tls_get_addr libcall.
834 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
836 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
837 constraint modifier to "r".
839 2011-05-06 Joseph Myers <joseph@codesourcery.com>
841 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
842 fall through for OPT_mcmodel_.
844 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
846 * config/s390/s390.c (s390_asm_trampoline_template): Comment
848 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
850 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
853 * config/arm/arm.opt (marm): Document it.
854 (mthumb): Reject negative variant.
856 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
859 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
860 Fix typo in "ccvt" variable name.
862 2011-05-06 Tristan Gingold <gingold@adacore.com>
865 * config/vms/vms-ar.c (main): Remove cwd variable.
867 2011-05-06 Jakub Jelinek <jakub@redhat.com>
870 * var-tracking.c (prepare_call_arguments): Move else before #endif.
872 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
874 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
875 * gimplify.c (gimplify_switch_expr): Likewise.
876 * omp-low.c (expand_omp_sections): Likewise.
877 * tree-eh.c (lower_try_finally_switch): Likewise.
878 (lower_eh_dispatch): Likewise.
879 * tree.h (build_case_label): Declare.
880 * tree.c (build_case_label): Define.
882 2011-05-05 Jason Merrill <jason@redhat.com>
885 * tree-inline.c (copy_tree_r): Use copy_statement_list.
886 (copy_statement_list): Don't recurse.
887 * stor-layout.c (copy_self_referential_tree_r): Don't allow
890 2011-05-05 Joseph Myers <joseph@codesourcery.com>
892 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
893 through from -mfpu= handling.
894 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
896 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
898 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
901 2011-05-05 Steve Ellcey <sje@cup.hp.com>
903 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
905 (hppa[12]*-*-hpux11*): Ditto.
906 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
907 * config/ia64/hpux-unix2003.h: New.
908 * config/pa/pa-hpux1131.opt: New.
909 * config/pa/pa-hpux1131.h: New.
910 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
911 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
912 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
914 2011-05-05 Jakub Jelinek <jakub@redhat.com>
917 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
918 instead of mode as 3rd argument to recursive call.
919 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
920 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
922 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
923 don't give up if mode is Pmode and mem_mode is not VOIDmode.
924 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
925 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
927 2011-05-05 Julian Brown <julian@codesourcery.com>
929 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
930 parenthesis in D-register case.
932 2011-05-05 Joseph Myers <joseph@codesourcery.com>
934 * opt-functions.awk (var_type_struct): Handle Enum options.
935 * optc-gen.awk: Don't check range of variables of character type.
936 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
937 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
938 rs6000_sdata_name, rs6000_explicit_options): Remove.
939 (rs6000_option_override_internal): Check for -malign-power here.
940 Use global_options_set instead of rs6000_explicit_options.
941 (rs6000_parse_fpu_option): Remove.
942 (rs6000_handle_option): Access variables via opts and opts_set
943 pointers. Use error_at and warning_at. Add fall-through
944 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
945 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
946 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
947 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
948 here. Don't use rs6000_parse_fpu_option.
949 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
950 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
951 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
953 (mspe): Use Var and Save.
954 (mtraceback=): Use Enum and Var.
955 (rs6000_traceback_type): New Enum and EnumValue entries.
956 (mfloat-gprs=): Use Enum, Var and Save.
957 (rs6000_float_gprs): New Enum and EnumValue entries.
958 (mlong-double-): use Var and Save.
959 (msched-costly-dep=, minsert-sched-nops=): Use Var.
960 (malign-): Use Enum and Var.
961 (rs6000_alignment_flags): New Enum and EnumValue entries.
963 (fpu_type_t): New Enum and EnumValue entries.
964 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
965 global_options_set instead of rs6000_explicit_options.
966 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
967 global_options_set instead of rs6000_explicit_options.
968 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
969 global_options_set instead of rs6000_explicit_options.
970 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
971 global_options_set instead of rs6000_explicit_options.
972 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
973 global_options_set instead of rs6000_explicit_options.
974 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
975 global_options_set instead of rs6000_explicit_options.
976 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
978 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
979 global_options_set instead of rs6000_explicit_options.
980 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
981 (rs6000_cmodel): New Enum and EnumValue entries.
982 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
983 global_options_set instead of rs6000_explicit_options.
984 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
985 (mtls-size=): Use Enum and Var.
986 (rs6000_tls_size): New Enum and EnumValue entries.
988 2011-05-05 Michael Matz <matz@suse.de>
990 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
991 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
992 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
993 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
994 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
995 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
996 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
997 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
998 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
999 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1000 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1001 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1002 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1003 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1004 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1005 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1007 2011-05-05 Richard Guenther <rguenther@suse.de>
1009 * expmed.c (expand_variable_shift): Rename to ...
1010 (expand_shift_1): ... this. Take an expanded shift amount.
1011 For rotates recurse directly not building trees for the shift amount.
1012 (expand_variable_shift): Wrap around expand_shift_1.
1013 (expand_shift): Adjust.
1015 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1017 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1019 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1021 * tree.h (get_pending_sizes): Remove prototype.
1022 (put_pending_size): Likewise.
1023 (put_pending_sizes): Likewise.
1024 * stor-layout.c (pending_sizes): Delete.
1025 (get_pending_sizes): Likewise.
1026 (put_pending_size): Likewise.
1027 (put_pending_sizes): Likewise.
1028 (variable_size): Do not call put_pending_size and tidy up.
1029 * function.h (struct function): Remove dont_save_pending_sizes_p.
1030 * lto-streamer-in.c (input_function): Do not stream it.
1031 * lto-streamer-out.c (output_function): Likewise.
1032 * tree-inline.c (initialize_cfun): Do not copy it.
1033 * c-decl.c (store_parm_decls): Do not set it.
1034 * omp-low.c (create_task_copyfn): Likewise.
1035 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1037 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1039 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1041 (*movdf_internal): Ditto.
1042 (*movdf_internal_nointeger): Ditto.
1043 (*movsf_internal): Ditto.
1045 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1047 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1048 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1049 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1050 (c_variable_size): Remove.
1051 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1052 call put_pending_sizes.
1053 (get_parm_info): Add parameter expr. Use it to set
1054 arg_info->pending_sizes.
1055 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1057 * c-parser.c (c_parser_parms_declarator): Update call to
1058 c_parser_parms_list_declarator.
1059 (c_parser_parms_list_declarator): Take parameter expr. Update
1060 call to push_parm_decl. Update recursive call. Don't call
1061 get_pending_sizes. Update calls to get_parm_info.
1062 (c_parser_objc_method_definition): Update calls to
1063 c_parser_objc_method_decl and objc_start_method_definition.
1064 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1065 (c_parser_objc_method_decl): Add parameter expr. Update call to
1067 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1068 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1069 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1071 2011-05-05 Michael Hope <michael.hope@linaro.org>
1074 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1077 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1079 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1080 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1081 (spu_output_mi_thunk): New function.
1083 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1086 targetm.asm_out.print_operand.
1087 * config/sol2.c: Include target.h.
1089 2011-05-04 Jan Hubicka <jh@suse.cz>
1091 * ipa-inline.c (reset_edge_caches): New function.
1092 (update_caller_keys): Add check_inlinablity_for; do not
1093 reset edge caches; remove now unnecesary loop.
1094 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1095 (update_all_callee_keys): Likewise.
1096 (inline_small_functions): Sanity check cache; update code
1099 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1101 PR rtl-optimization/47612
1102 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1103 as the last insn of the sequence to be moved.
1105 2011-05-04 Tobias Burnus <burnus@net-b.de>
1108 * doc/invoke.texi (Ofast): Document that it
1109 enables Fortran's -fno-protect-parens.
1111 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1113 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1115 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1117 * stor-layout.c (variable_size): Do not issue errors.
1119 2011-05-04 Richard Guenther <rguenther@suse.de>
1121 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1122 for array-ref indices.
1123 (tree_coverage_counter_addr): Likewise.
1124 (build_fn_info_type): Use size_int for index types.
1125 (build_gcov_info): Likewise.
1127 2011-05-04 Richard Guenther <rguenther@suse.de>
1129 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1131 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1132 for constructor indices.
1133 (push_init_level): Likewise.
1135 2011-05-04 Richard Guenther <rguenther@suse.de>
1137 * explow.c (promote_mode): Move variable declarations before code.
1139 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1141 * tree.h (build_function_type_array): Declare.
1142 (build_varargs_function_type_array): Declare.
1143 (build_function_type_vec, build_varargs_function_type_vec): Define.
1144 * tree.c (build_function_type_array_1): New function.
1145 (build_function_type_array): New function.
1146 (build_varargs_function_type_array): New function.
1148 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1150 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1151 before setting STMT_VINFO_TYPE.
1153 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1155 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1156 instead of spu_pass_by_reference.
1158 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1160 * calls.c (emit_library_call_value_1): Invoke
1161 promote_function_mode hook on libcall arguments.
1162 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1163 argument being NULL.
1164 * targhooks.c (default_promote_function_mode): Lisewise.
1165 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1166 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1168 * doc/tm.texi: Document that TYPE argument might be NULL.
1170 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1172 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1174 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1177 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1179 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1182 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1184 * mips-tfile.c: ... here.
1185 Don't include coretypes.h, tm.h, filenames.h.
1186 (saber_stop): Remove definition and all calls.
1187 [__SABER__]: Remove.
1188 (__LINE__): Remove default.
1189 (Size_t, Ptrdiff_t): Remove definitions.
1190 Replace by size_t, ptrdiff_t.
1191 [!MIPS_DEBUGGING_INFO]: Remove.
1192 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1193 (progname): Add const.
1195 Replace all uses by static.
1196 (ALIGN_SYMTABLE_OFFSET): Remove default.
1197 * mips-tdump.c: Don't include coretypes.h, tm.h.
1198 Remove !MIPS_IS_STAB guard.
1199 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1200 $(TM_H), filenames.h dependencies.
1201 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1203 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1206 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1207 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1209 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1212 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1213 account and save/restore RETS.
1214 (PROFILE_BEFORE_PROLOGUE): Define.
1215 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1216 the push insn to use predecrement.
1218 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1221 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1223 2011-05-04 Nick Clifton <nickc@redhat.com>
1225 * config/mn10300/mn10300.c: Include cfgloop.h.
1227 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1228 Lcc or a FLcc insn into the instruction stream.
1229 (mn10300_block_contains_call): New function. Returns true if the
1230 given basic block contains a CALL insn.
1231 (mn10300_loop_contains_call_insn): New function. Returns true if
1232 the given loop contains a CALL insn.
1233 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1234 to use the SETLB and Lcc or FLcc insns.
1235 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1236 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1237 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1238 disable the SETLB optimization.
1239 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1240 __SETLB__ or __NO_SETLB__.
1241 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1242 (movsf_internal): Handle MDR register.
1243 (cmpsi): Make visible.
1244 (setlb): New pattern.
1246 (FLcc): New pattern.
1248 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1251 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1252 for reg<->xmm moves.
1253 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1254 (vec_concatv2di_rex64_sse): Ditto.
1255 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1256 (*vec_extractv2di_1_rex64): Ditto.
1259 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1261 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1263 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1265 2011-05-04 Richard Guenther <rguenther@suse.de>
1267 * tree.h (int_const_binop): Remove notrunc argument.
1268 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1269 create integer constants that are properly truncated.
1270 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1271 (const_binop): Remove zero notrunc argument to int_const_binop.
1272 (size_binop_loc): Likewise.
1273 (fold_div_compare): Likewise.
1274 (maybe_canonicalize_comparison_1): Likewise.
1275 (fold_comparison): Likewise.
1276 (fold_binary_loc): Likewise.
1277 (multiple_of_p): Likewise.
1278 * expr.c (store_constructor): Likewise.
1279 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1280 (maybe_fold_stmt_addition): Likewise.
1281 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1282 * stor-layout.c (layout_type): Likewise.
1283 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1284 * tree-sra.c (build_ref_for_offset): Likewise.
1285 (build_user_friendly_ref_for_offset): Likewise.
1286 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1287 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1288 * tree-ssa-loop-niter.c (inverse): Likewise.
1289 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1290 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1291 * tree-switch-conversion.c (check_range): Likewise.
1292 (build_constructors): Likewise.
1293 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1294 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1295 (extract_range_from_assert): Likewise.
1296 (vrp_int_const_binop): Likewise.
1297 (extract_range_from_binary_expr): Likewise.
1298 (extract_range_from_unary_expr): Likewise.
1299 (check_array_ref): Likewise.
1300 (find_case_label_range): Likewise.
1301 (simplify_div_or_mod_using_ranges): Likewise.
1302 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1303 comparing case labels for merging.
1305 2011-05-03 Mark Wielaard <mjw@redhat.com>
1307 * dwarf2out.c (debug_str_hash_forced): Removed.
1308 (gen_label_for_indirect_string): Removed.
1309 (get_debug_string_label): Removed.
1310 (AT_string_form): Generate label directly.
1311 (output_indirect_string): Test indirect_string_node for
1312 DW_FORM_strp instead of checking label and refcount.
1313 (prune_indirect_string): Removed.
1314 (prune_unused_types): Don't check debug_str_hash_forced or
1315 call prune_indirect_string.
1317 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1320 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1322 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1326 * combine.c (try_combine): Skip debug insns at m_split tests.
1328 2011-04-26 Mark Wielaard <mjw@redhat.com>
1331 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1332 when info_section_emitted.
1334 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1336 * config/mips/mips-opts.h: New.
1337 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1339 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1340 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1341 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1343 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1345 (mips_abi, mips_code_readable): Don't declare.
1346 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1347 (mabi=): Use Enum and Var.
1348 (mips_abi): New Enum and EnumValue entries.
1349 (mcode-readable=): Use Enum and Var.
1350 (mips_code_readable_setting): New Enum and EnumValue entries.
1351 (mr10k-cache-barrier=): Use Enum and Var.
1352 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1354 2011-05-03 Jan Hubicka <jh@suse.cz>
1356 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1357 replace hash by pointer map.
1358 (cgraph_node_set_element_def, cgraph_node_set_element,
1359 const_cgraph_node_set_element, varpool_node_set_element_def,
1360 varpool_node_set_element, const_varpool_node_set_element): Remove.
1361 (free_cgraph_node_set, free_varpool_node_set): New function.
1362 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1363 * tree-emutls.c: Free varpool node set.
1364 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1365 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1366 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1367 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1368 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1369 Move here from ipa.c; implement using pointer_map
1370 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1371 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1372 debug_cgraph_node_set, varpool_node_set_new,
1373 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1374 dump_varpool_node_set, debug_varpool_node_set):
1375 Move to ipa-uitls.c.
1376 * passes.c (ipa_write_summaries): Update.
1378 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1380 From Mike Frysinger:
1381 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1382 bf542/bf544/bf547/bf548/bf549.
1384 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1386 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1388 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1391 * config/bfin/bfin.md (MOVCC): New mode_macro.
1392 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1393 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1394 comments from generated assembly.
1396 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1399 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1400 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1401 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1402 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1403 * config/bfin/lib1funcs.asm (___muldi3): New function.
1405 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1407 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1408 build_function_type_list instead of build_function_type.
1409 Rearrange initialization of `args' to do so.
1411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1413 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1414 instead of build_function_type.
1416 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1418 * config/rs6000/rs6000.c (spe_init_builtins): Call
1419 build_function_type_list instead of build_function_type.
1420 (paired_init_builtins, altivec_init_builtins): Likewise.
1421 (builtin_function_type): Likewise.
1423 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1425 * config/sh/sh.c (sh_media_init_builtins): Call
1426 build_function_type_list instead of build_function_type.
1428 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1430 * config/sparc/sparc.c (sparc_file_end): Call
1431 build_function_type_list instead of build_function_type.
1433 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1435 * config/alpha/alpha.c (alpha_init_builtins): Call
1436 build_function_type_list instead of build_function_type.
1438 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1440 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1441 build_function_type_list instead of build_function_type.
1443 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1445 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1446 build_function_type_list instead of build_function_type.
1447 Delete `endlink' variable.
1449 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1451 * config/avr/avr.c (avr_init_builtins): Call
1452 build_function_type_list instead of build_function_type.
1454 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1456 * config/picochip/picochip.c (picochip_init_builtins): Call
1457 build_function_type_list instead of build_function_type.
1458 Delete `endlink' variable.
1460 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1462 * config/bfin/bfin.c (bfin_init_builtins): Call
1463 build_function_type_list instead of build_function_type.
1465 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1468 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1469 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1471 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1474 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1475 libbffastfp overrides libgcc when -mfast-fp.
1477 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1479 Originally from Bernd Schmidt
1480 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1481 * config/bfin/bfin.c (override_options): Test it and error if
1484 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1486 Originally From Bernd Schmidt
1487 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1490 2011-05-03 Jeff Law <law@redhat.com>
1492 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1493 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1494 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1495 than accessing AUX field directly. Free the AUX field before
1497 (thread_block, thread_through_loop_header): Likewise.
1498 (thread_single_edge, mark_threaded_blocks): Likewise.
1499 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1500 (register_jump_thread): Do not attempt to thread to a NULL edge.
1502 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1504 * function.c (init_function_start): Call decide_function_section.
1505 * varasm.c (decide_function_section): New function.
1506 (assemble_start_function): When not using
1507 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1508 or first_function_block_is_cold.
1509 * rtl.h (decide_function_section): Declare.
1511 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1512 Jakub Jelinek <jakub@redhat.com>
1515 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1516 only succeed if req_mode is the same as set_mode.
1518 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1520 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1521 * genemit.c (gen_exp): Handle RETURN.
1522 * emit-rtl.c (verify_rtx_sharing): Likewise.
1523 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1524 * rtl.c (copy_rtx): RETURN is shared.
1525 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1527 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1528 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1529 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1530 * config/cris/cris.c (cris_expand_return): Likewise.
1531 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1532 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1533 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1534 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1535 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1537 * config/v850/v850.c (expand_epilogue): Likewise.
1538 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1539 * config/arm/arm.md (epilogue): Likewise.
1540 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1541 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1542 variable to ret_reg.
1544 2011-05-03 Richard Guenther <rguenther@suse.de>
1547 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1548 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1549 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1551 2011-05-03 Richard Guenther <rguenther@suse.de>
1553 * c-decl.c (grokdeclarator): Instead of looking at
1554 TREE_OVERFLOW check if the constant fits in the index type.
1556 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1558 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1559 (vec_store_lanes<mode><mode>): Likewise.
1561 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1563 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1564 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1565 convert_optab_index values.
1566 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1567 * genopinit.c (optabs): Initialize the new optabs.
1568 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1569 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1570 (expand_STORE_LANES): New functions.
1571 * tree.h (build_array_type_nelts): Declare.
1572 * tree.c (build_array_type_nelts): New function.
1573 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1574 (vect_model_load_cost): Likewise.
1575 (vect_store_lanes_supported, vect_load_lanes_supported)
1576 (vect_record_strided_load_vectors): Declare.
1577 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1578 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1579 (vect_transform_strided_load): Split out statement recording into...
1580 (vect_record_strided_load_vectors): ...this new function.
1581 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1582 (write_vector_array, create_array_ref): New functions.
1583 (vect_model_store_cost): Add store_lanes_p argument.
1584 (vect_model_load_cost): Add load_lanes_p argument.
1585 (vectorizable_store): Try to use store-lanes functions for
1587 (vectorizable_load): Likewise load-lanes and loads.
1588 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1589 to vect_model_store_cost.
1590 (vect_build_slp_tree): Likewise vect_model_load_cost.
1592 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1594 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1595 * hooks.c (hook_bool_mode_uhwi_false): New function.
1596 * target.def (array_mode_supported_p): New hook.
1597 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1598 * doc/tm.texi: Regenerate.
1599 * stor-layout.c (mode_for_array): New function.
1600 (layout_type): Use it.
1601 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1602 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1604 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1607 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1608 for -fstack-check if the size to allocate is negative.
1610 2011-05-02 Lawrence Crowl <crowl@google.com>
1612 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1613 (timevar_cond_start): New for starting a timer only when it is not
1615 (timevar_cond_stop): New for stopping a timer when it was not already
1618 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1619 (timevar_cond_start): New as above.
1620 (timevar_cond_stop): New as above.
1622 * timevar.def: Add start/stop timers for compiler phases,
1623 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1624 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1625 and TV_PHASE_FINALIZE.
1626 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1627 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1628 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1629 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1630 Make unused TV_OVERLOAD into a start/stop timer.
1632 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1633 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1634 to indicate that they are start/stop timers.
1636 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1637 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1638 Move initialization to do_compile.
1639 (do_compile): Add initialization from above.
1640 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1642 * c-decl.c (c_write_global_declarations): Add start/stop of
1643 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1645 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1646 or TV_PARSE_INLINE, as appropriate.
1647 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1648 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1650 2011-05-02 Jason Merrill <jason@redhat.com>
1653 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1655 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1658 * c-decl.c (finish_decl): Only create a composite if the types are
1661 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1663 * config/fr30/fr30-protos.h (Mmode): Don't define.
1664 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1665 definition where used.
1666 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1667 define. Expand definitions where used.
1668 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1669 Expand definitions where used.
1670 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1671 rx_function_arg, rx_function_arg_advance,
1672 rx_function_arg_boundary): Expand definitions of those macros.
1673 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1674 definition where used.
1676 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1678 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1680 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1681 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1682 with *movv2sf_internal_rex64_avx.
1683 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1684 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1685 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1686 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1687 "vex" in "prefix" attribute calculation.
1688 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1690 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1693 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1694 inputs match the output.
1696 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1699 * config/m68k/m68k.c (m68k_expand_prologue): Set
1700 current_function_static_stack_size.
1702 2011-05-02 Jan Hubicka <jh@suse.cz>
1704 * lto-streamer.c (lto_streamer_cache_insert_1,
1705 lto_streamer_cache_lookup, lto_streamer_cache_create,
1706 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1707 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1709 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1711 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1712 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1713 config/m68k/t-opts: New files.
1714 * config/m68k/m68k-tables.opt: New file (generated).
1715 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1716 extra_options and m68k/t-opts to tmake_file.
1717 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1718 (all_isas): Initialize using m68k-isas.def.
1719 (all_microarchs): Initialize using m68k-microarchs.def.
1720 (m68k_find_selection): Remove.
1721 (m68k_handle_option): Don't assert that global structures are in
1722 use. Use error_at. Access variables via opts pointer. Don't
1723 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1724 directly for -m68020-40 and -m68020-60.
1725 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1726 m68k_tune_entry here.
1727 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1729 (m68k_library_id_string): Remove declaration.
1730 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1731 (m68k_library_id_string): New Variable.
1732 (march=, mcpu=, mtune=): Use Enum and Var.
1734 2011-05-02 Richard Guenther <rguenther@suse.de>
1736 * varasm.c (output_constructor_regular_field): Compute zero-based
1737 index with double-ints. Make sure to ICE instead of producing
1739 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1740 in asserts. Properly use a signed type.
1742 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1744 * config/i386/sse.md (V): New mode iterator.
1745 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1747 (V_256): Rename from AVX256MODE.
1748 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1749 condition to all users.
1751 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1752 condition to all users.
1753 (VF_128): Make V4SF mode unconditional.
1754 (VF_256): Rename from AVX256MODEF2P.
1755 (VI4F_128): Rename from SSEMODE4S.
1756 (VI8F_128): Rename from SSEMODE2D.
1757 (VI4F_256): Rename from AVX256MODE8P.
1758 (VI8F_256): Rename from AVX256MODE4P.
1759 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1760 (ssescalarmodesuffix): Remove SF and DF modes.
1761 (SSEMODE124): Remove.
1762 (SSEMODE1248): Ditto.
1763 (SSEMODEF2P): Ditto.
1764 (AVXMODEF2P): Ditto.
1765 (AVXMODEFDP): Ditto.
1766 (AVXMODEFSP): Ditto.
1767 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1769 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1771 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1772 xop_pcmov_<mode>256. Use V mode iterator.
1774 Adjust RTX patterns globally for renamed mode attributes.
1776 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1778 * haifa-sched.c (sched_emit_insn): Emit insn before first
1779 non-scheduled insn. Inform back-end about new insn. Add
1780 new insn to scheduled_insns list.
1782 2011-05-02 Richard Guenther <rguenther@suse.de>
1784 PR tree-optimization/48822
1785 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1786 (process_scc): Indicate which iteration we start.
1788 2011-05-02 Jan Hubicka <jh@suse.cz>
1790 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1791 (lto_section_overrun): New.
1792 * lto-section-out.c (append_block): Rename to ...
1793 (lto_append_block): ... this one; export.
1794 (lto_output_1_stream): Move lto lto-streamer.h
1795 (lto_output_data_stream): Update.
1796 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1797 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1800 2011-05-02 Richard Guenther <rguenther@suse.de>
1802 * tree.c (tree_code_counts): New global array.
1803 (record_node_allocation_statistics): Count individual tree codes.
1804 (dump_tree_statistics): Dump individual code stats.
1806 2011-05-01 Jan Hubicka <jh@suse.cz>
1808 * ipa-inline.c (caller_growth_limits): Fix thinko when
1809 looking for largest stack frame.
1810 * ipa-inline.h (dump_inline_summary): Declare.
1811 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1813 (dump_inline_summary): Export.
1814 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1816 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1818 * reginfo.c (memory_move_cost): Change rclass argument type form
1819 'enum reg_class' to reg_class_t.
1820 * reload.h (memory_move_cost): Update prototype.
1821 * postreload.c reload_cse_simplify_set): Change type dclass var to
1823 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1825 (ira_allocate_and_set_costs): Change aclass argument type form
1826 'enum reg_class' to reg_class_t.
1827 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1828 Change aclass argument type to reg_class_t.
1829 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1831 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1832 memory_move_cost call.
1834 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1835 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1836 Change type tmp var to reg_class_t.
1838 2011-04-30 Jan Hubicka <jh@suse.cz>
1840 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1841 inlining into function with flatten attribute.
1842 (want_inline_small_function_p): Be more realistic about inlining
1843 cold calls where callee size grows.
1845 2011-04-30 Jan Hubicka <jh@suse.cz>
1847 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1850 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1852 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1853 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1854 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1855 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1856 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1857 (print_operand): Rename to...
1858 (sparc_print_operand): ...this. Make static. Adjust
1859 sparc_print_operand function call.
1860 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1863 2011-04-30 Jan Hubicka <jh@suse.cz>
1866 * ipa-inline.c (early_inliner): Disable when doing late
1867 addition of function.
1869 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1871 * dwarf2out.c (get_address_mode): New inline.
1872 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1873 if not dwarf_strict emit
1874 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1875 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1876 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1877 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1878 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1879 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1880 mem_loc_descriptor callers.
1881 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1882 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1883 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1884 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1885 (base_types): New variable.
1886 (get_base_type_offset, calc_base_type_die_sizes,
1887 base_type_for_mode, mark_base_types, base_type_cmp,
1888 move_marked_base_types): New functions.
1889 (calc_die_sizes): Assert that die_offset is 0 or equal to
1891 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1892 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1893 callers. If not dwarf_strict, call mem_loc_descriptor even for
1894 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1895 (gen_subprogram_die): Don't give up on call site parameters
1896 with non-integral or large integral modes. Adjust
1897 mem_loc_descriptor callers.
1898 (prune_unused_types): Call prune_unused_types_mark on base_types
1900 (resolve_addr): Call mark_base_types.
1901 (dwarf2out_finish): Call move_marked_base_types.
1903 PR tree-optimization/48809
1904 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1906 (gen_inbound_check): Don't compute index_expr - range_min in utype
1907 again, instead reuse SSA_NAME initialized in build_arrays.
1908 Remove two useless gsi_for_stmt calls.
1910 2011-04-29 Jeff Law <law@redhat.com>
1912 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1914 2011-04-29 Martin Jambor <mjambor@suse.cz>
1916 * cgraph.h (cgraph_postorder): Remove declaration.
1917 * ipa-utils.h (ipa_free_postorder_info): Declare.
1918 (ipa_reverse_postorder): Likewise.
1919 * cgraphunit.c: Include ipa-utils.h.
1920 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1921 * ipa-inline.c: Include ipa-utils.h.
1922 (ipa_inline): Update call to ipa_reverse_postorder.
1923 * ipa-pure-const.c (propagate_pure_const): Update call to
1924 ipa_reduced_postorder and ipa_print_order. Call
1925 ipa_free_postorder_info to clean up.
1926 (propagate_nothrow): Likewise.
1927 * ipa-reference.c (propagate): Removed a useless call to
1928 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1929 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1930 * ipa.c: Include ipa-utils.h.
1931 (ipa_profile): Update call to ipa_reverse_postorder.
1932 (cgraph_postorder): Moved to...
1933 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1934 (ipa_utils_print_order): Renamed to ipa_print_order.
1935 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1937 (ipa_free_postorder_info): New function.
1938 * passes.c: Include ipa-utils.h.
1939 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1940 (ipa_write_summaries): Likewise.
1941 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1942 (cgraphunit.o): Likewise.
1944 (ipa-inline.o): Likewise.
1946 2011-04-29 Jan Hubicka <jh@suse.cz>
1948 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1949 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1950 * ipa-inline.h (clause_t): Turn into unsigned int.
1951 * ipa-inline-analysis.c (add_clause): Do more simplification.
1952 (and_predicates): Shortcut more cases.
1953 (predicates_equal_p): Move forward; check that clauses are properly
1955 (or_predicates): Shortcut more cases.
1956 (edge_execution_predicate): Rewrite as...
1957 (set_cond_stmt_execution_predicate): ... this function; handle
1958 __builtin_constant_p.
1959 (set_switch_stmt_execution_predicate): New .
1960 (compute_bb_predicates): New.
1961 (will_be_nonconstant_predicate): Update TODO.
1962 (estimate_function_body_sizes): Use compute_bb_predicates
1963 and free them later, always try to estimate if stmt is constant.
1964 (estimate_time_after_inlining, estimate_size_after_inlining):
1965 Gracefully handle optimized out edges.
1966 (read_predicate): Fix off by one error.
1968 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1970 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1972 2011-04-27 Xinliang David Li <davidxl@google.com>
1974 * tree-profile.c (init_ic_make_global_vars): Set
1975 tls attribute on ic vars.
1976 * coverage.c (coverage_end_function): Initialize
1977 function_list with zero.
1979 2011-04-29 Richard Guenther <rguenther@suse.de>
1981 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1982 for the type of the result.
1983 (fold_builtin_isascii): Likewise.
1984 (fold_builtin_toascii): Use integer_type_node where appropriate.
1985 (fold_builtin_logb): Likewise.
1986 (fold_builtin_frexp): Likewise.
1987 (fold_builtin_strstr): Likewise.
1988 (fold_builtin_strpbrk): Likewise.
1989 (fold_builtin_fputs): Likewise.
1990 (fold_builtin_sprintf): Likewise.
1991 (fold_builtin_snprintf): Likewise.
1992 (fold_builtin_printf): Likewise.
1993 (do_mpfr_remquo): Use a proper type for the assigned constant.
1994 (do_mpfr_lgamma_r): Likewise.
1995 * dwarf2out.c (resolve_one_addr): Use size_int.
1996 * except.c (init_eh): Likewise.
1997 (assign_filter_values): Use integer_type_node for filter values.
1998 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2000 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2001 for EH region numbers.
2002 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2003 for the shift amount.
2005 2011-04-29 Richard Guenther <rguenther@suse.de>
2007 * expr.h (expand_shift): Rename to ...
2008 (expand_variable_shift): ... this.
2009 (expand_shift): Take a constant shift amount.
2010 * expmed.c (expand_shift): Rename to ...
2011 (expand_variable_shift): ... this.
2012 (expand_shift): New wrapper around expand_variable_shift.
2013 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2014 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2015 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2016 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2017 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2018 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2019 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2020 emit_store_flag_1, emit_store_flag): Likewise.
2021 * builtins.c (expand_builtin_signbit): Likewise.
2022 * calls.c (load_register_parameters): Likewise.
2023 * function.c (assign_parm_setup_block): Likewise.
2024 * lower-subreg.c (resolve_shift_zext): Likewise.
2025 * optabs.c (widen_bswap, expand_abs_nojump,
2026 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2027 * spu/spu.c (spu_expand_extv): Likewise.
2028 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2030 2011-04-29 Richard Guenther <rguenther@suse.de>
2032 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2033 for the remapped region number.
2034 * predict.c (build_predict_expr): Use integer_type_node for the
2036 * fold-const.c (fold_binary_loc): Use integer_type_node for
2037 the shift amount. Use a proper type for the PLUS_EXPR operand.
2039 2011-04-29 Michael Matz <matz@suse.de>
2041 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2042 other trees that just builtins.
2043 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2045 2011-04-29 Richard Guenther <rguenther@suse.de>
2047 * tree-nested.c (get_trampoline_type): Use size_int.
2048 (get_nl_goto_field): Likewise.
2049 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2051 (lower_eh_constructs_2): Likewise.
2052 (lower_resx): Likewise.
2053 (lower_eh_dispatch): Likewise.
2054 * tree-mudflap.c (mf_build_string): Use size_int.
2055 (mudflap_register_call): Use integer_type_node for the flag.
2056 (mudflap_enqueue_constant): Use size_int.
2057 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2058 instead of rebuilding it.
2060 2011-04-29 Richard Guenther <rguenther@suse.de>
2062 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2063 Handle OBJ_TYPE_REF.
2064 (find_func_aliases_for_call): Use it more consistently.
2066 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2068 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2069 (rank_for_schedule): Use it.
2070 (schedule_block): Set it.
2072 2011-04-28 David Li <davidxl@google.com>
2074 * tree.c (crc32_string): Use crc32_byte.
2075 (crc32_byte): New function.
2076 * tree.h (crc32_byte): New function.
2077 * gcov.c (read_graph_file): Handle new cfg_cksum.
2078 (read_count_file): Ditto.
2079 * profile.c (instrument_values): Ditto.
2080 (get_exec_counts): Ditto.
2081 (read_profile_edge_counts): Ditto.
2082 (compute_branch_probabilities): Ditto.
2083 (compute_value_histograms): Ditto.
2084 (branch_prob): Ditto.
2085 (end_branch_prob): Ditto.
2086 * coverage.c (read_counts_file): Ditto.
2087 (get_coverage_counts): Ditto.
2088 (tree_coverage_counter_addr): Ditto.
2089 (coverage_checksum_string): Ditto.
2090 (coverage_begin_output): Ditto.
2091 (coverage_end_function): Ditto.
2092 (build_fn_info_type): Ditto.
2093 (build_fn_info_value): Ditto.
2094 * libgcov.c (gcov_exit): Ditto.
2095 * gcov-dump.c (tag_function): Ditto.
2096 (compute_checksum): Remove.
2098 2011-04-29 Alan Modra <amodra@gmail.com>
2100 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2101 unspec plus offset. Tidy macho code.
2103 2011-04-29 Martin Jambor <mjambor@suse.cz>
2105 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2106 node instead of a decl. Update all callers.
2107 * cgraph.h: Update declaration.
2109 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2111 PR tree-optimization/48765
2112 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2113 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2114 to indicate if loop aware SLP is being used. Scan the statements
2115 and update the vectorization factor according to the type of
2116 vectorization before statement analysis.
2117 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2118 pass it to vect_analyze_loop_operations.
2119 (vectorizable_reduction): Set number of copies to 1 in case of pure
2121 * tree-vect-stmts.c (vectorizable_conversion,
2122 vectorizable_assignment, vectorizable_shift,
2123 vectorizable_operation, vectorizable_type_demotion,
2124 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2126 (vectorizable_condition): Move the check that it is not SLP
2127 vectorization before the number of copies check.
2128 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2129 to vectorize the loop using SLP.
2131 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2134 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2137 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2139 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2140 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2141 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2142 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2143 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2145 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2146 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2147 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2148 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2149 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2150 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2152 * config/i386/linux.h (REG_NAME): Don't define.
2153 * config/i386/linux64.h (REG_NAME): Don't define.
2154 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2155 Undefine before defining.
2157 2011-04-28 Jan Hubicka <jh@suse.cz>
2159 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2160 nonconstant_names array.
2161 (estimate_function_body_sizes): Build nonconstant_names array; handle
2162 BUILT_IN_CONSTANT_P.
2164 2011-04-28 Richard Guenther <rguenther@suse.de>
2168 2011-04-28 Richard Guenther <rguenther@suse.de>
2170 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2171 as late as possible.
2173 2011-04-28 Richard Guenther <rguenther@suse.de>
2175 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2176 (debug_constraint): Do it here.
2177 (dump_constraints): And here.
2178 (rewrite_constraints): And here.
2179 (dump_constraint_edge): Remove.
2180 (dump_constraint_graph): Rewrite to produce DOT output.
2181 (solve_constraints): Build succ graph as late as possible.
2182 Dump constraint graphs before and after solving.
2184 2011-04-28 Richard Guenther <rguenther@suse.de>
2186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2187 New function split out from ...
2188 (find_func_aliases): ... here. Call it.
2189 (find_func_aliases_for_call): Likewise.
2191 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2193 * internal-fn.h (internal_fn_name_array): Declare.
2194 (internal_fn_flags_array): Likewise.
2196 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2198 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2199 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2201 (ssemodefsuffix): Remove.
2202 (ssevecmodesuffix): New mode attribute.
2203 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2204 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2205 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2206 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2207 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2208 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2209 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2210 ssemodesuffix mode attribute.
2211 (float splitters): Use ssevecmodesuffix mode attribute.
2212 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2213 (sseinsmode): Rename from avxvecmode.
2214 (avxsizesuffix): Rename from avxmodesuffix.
2215 (sseintvecmode): Rename from avxpermvecmode.
2216 (ssedoublevecmode): Rename from ssedoublesizemode.
2217 (ssehalfvecmode): Rename from avxhalfvecmode.
2218 (ssescalarmode): Rename from avxscalarmode.
2219 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2220 templates for ssemodesuffix mode attribute.
2221 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2224 Adjust RTX patterns globally for renamed mode attributes.
2226 2011-04-27 Jan Hubcika <jh@suse.cz>
2228 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2229 * ipa-inline-analysis.c: Include alloc-pool.h.
2230 (edge_predicate_pool): New.
2231 (trye_predicate_p): New function
2232 (false_predicate_p): New function.
2233 (add_clause): Sanity check that false clauses are "optimized";
2234 never add clauses to predicate that is already known to be false.
2235 (and_predicate): Use flase_predicate_p.
2236 (evaulate_predicate): Rename to ...
2237 (evaluate_predicate): ... this one; update all callers; assert
2238 that false is not listed among possible truths.
2239 (dump_predicate): Use true_predicate_p.
2240 (account_size_time): Use false_predicate_p.
2241 (evaulate_conditions_for_edge): Rename to ...
2242 (evaluate_conditions_for_edge) ... this one.
2243 (edge_set_predicate): New function.
2244 (inline_edge_duplication_hook): Duplicate edge predicates.
2245 (inline_edge_removal_hook): Free edge predicates.
2246 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2247 (dump_inline_summary): Update.
2248 (estimate_function_body_sizes): Set edge predicates.
2249 (estimate_calls_size_and_time): Handle predicates.
2250 (estimate_callee_size_and_time): Update.
2251 (remap_predicate): Add toplev_predicate; update comment.
2252 (remap_edge_predicates): New function.
2253 (inline_merge_summary): Compute toplev predicate; update.
2254 (read_predicate): New function.
2255 (read_inline_edge_summary): Use it.
2256 (inline_read_section): Likewise.
2257 (write_predicate): New function.
2258 (write_inline_edge_summary): Use it.
2259 (inline_write_summary): Likewise.
2260 (inline_free_summary): Free alloc pool and edge summary vec.
2262 2011-04-27 Richard Guenther <rguenther@suse.de>
2264 * tree-ssa-structalias.c (changed_count): Remove.
2265 (changed): Use a bitmap.
2266 (unify_nodes): Adjust.
2267 (do_sd_constraint): Likewise.
2268 (do_ds_constraint): Likewise.
2269 (do_complex_constraint): Likewise.
2270 (solve_graph): Likewise.
2272 2011-04-27 Jan Hubicka <jh@suse.cz>
2274 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2276 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2278 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2279 (avx_vperm2f128_*_operand): Ditto.
2280 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2281 Use avx_vpermilp_parallel in insn condition.
2282 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2283 Use avx_vperm2f128_parallel in insn condition.
2285 2011-04-27 Richard Guenther <rguenther@suse.de>
2287 * Makefile.in (tree-ssa-structalias.o): Remove
2288 gt-tree-ssa-structalias.h dependency.
2289 (GTFILES): Remove tree-ssa-structalias.c.
2290 * tree.c (allocate_decl_uid): New function.
2291 (make_node_stat): Use it.
2292 (copy_node_stat): Likewise.
2293 * tree.h (allocate_decl_uid): Declare.
2294 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2295 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2296 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2297 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2298 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2299 (struct heapvar_map): Likewise.
2300 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2301 heapvar_insert): Likewise.
2302 (make_heapvar_for): Rename to ...
2303 (make_heapvar): ... this. Simplify.
2304 (fake_var_decl_obstack): New global var.
2305 (build_fake_var_decl): New function.
2306 (make_constraint_from_heapvar): Adjust.
2307 (handle_lhs_call): Likewise.
2308 (create_function_info_for): Likewise.
2309 (intra_create_variable_infos): Likewise.
2310 (init_alias_vars): Allocate fake_var_decl_obstack.
2311 (init_alias_heapvars, delete_alias_heapvars): Remove.
2312 (compute_points_to_sets): Do not call init_alias_heapvars.
2313 (ipa_pta_execute): Likewise.
2314 (delete_points_to_sets): Free fake_var_decl_obstack.
2316 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2318 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2319 (si_from_UTItype, si_to_UTItype): New functions.
2320 (__udivmodti4): Use them to implement type-punning.
2321 * config/spu/multi3.c (union qword_TItype): New data type.
2322 (si_from_TItype, si_to_TItype): New functions.
2323 (__multi3): Use them to implement type-punning.
2325 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2327 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2329 2011-04-27 Jan Hubicka <jh@suse.cz>
2331 * ipa-prop.c (function_insertion_hook_holder): New holder.
2332 (ipa_add_new_function): New function.
2333 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2334 Register/deregister holder.
2336 2011-04-27 Richard Guenther <rguenther@suse.de>
2338 PR tree-optimization/48772
2339 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2341 2011-04-27 Richard Guenther <rguenther@suse.de>
2343 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2344 TARGET_MEM_REF handling.
2346 2011-04-27 Nick Clifton <nickc@redhat.com>
2348 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2349 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2350 (REG_CLASS_NAMES): Likewise.
2351 (REG_CLASS_CONTENTS): Likewise.
2352 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2353 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2354 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2355 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2356 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2357 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2358 duplicate register classes.
2359 (frv_class_likely_spilled_p): Likewise.
2360 (frv_register_move_cost): Likewise.
2362 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2363 end of the regno_reg_class array.
2365 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2368 * c-typeck.c (build_binary_op): Don't wrap arguments if
2369 int_operands is true.
2371 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2374 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2375 targetm.calls.must_pass_in_stack for void type.
2377 2011-04-26 Jan Hubicka <jh@suse.cz>
2379 * cgraphbuild.c (build_cgraph_edges): Update call
2380 of cgraph_create_edge and cgraph_create_indirect_edge.
2381 * cgraph.c (cgraph_create_edge_including_clones,
2382 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2383 cgraph_update_edges_for_call_stmt_node): Do not take nest
2384 argument; do not initialize call_stmt_size/time.
2385 (dump_cgraph_node): Do not dump nest.
2386 (cgraph_clone_edge): Do not take loop_nest argument;
2387 do not propagate it; do not clone call_stmt_size/time.
2388 (cgraph_clone_node): Likewise.
2389 (cgraph_create_virtual_clone): Update.
2390 * cgraph.h (struct cgraph_edge): Remove
2391 call_stmt_size/call_stmt_time/loop_nest.
2392 (cgraph_create_edge, cgraph_create_indirect_edge,
2393 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2395 * tree-emutls.c (gen_emutls_addr): Update.
2396 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2397 loop_nest; handle indirect calls, too.
2398 (clone_inlined_nodes): Do not care about updating inline summaries.
2399 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2400 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2401 stream call_stmt_size/call_stmt_time/loop_nest.
2402 * ipa-inline.c (edge_badness): Update.
2403 (ipa_inline): dump summaries after inlining.
2404 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2406 (inline_edge_summary): New function.
2407 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2408 (inline_edge_removal_hook): Handle edge summaries.
2409 (inline_edge_duplication_hook): New hook.
2410 (inline_summary_alloc): Alloc hooks.
2411 (initialize_growth_caches): Do not register removal hooks.
2412 (free_growth_caches); Do not free removal hook.
2413 (dump_inline_edge_summary): New function.
2414 (dump_inline_summary): Use it.
2415 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2416 (inline_update_callee_summaries): New function.
2417 (inline_merge_summary): Use it.
2418 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2419 (read_inline_edge_summary): New function.
2420 (inline_read_section): Use it.
2421 (write_inline_edge_summary): New function.
2422 (inline_write_summary): Use it.
2423 (inline_free_summary): Free edge new holders.
2424 * tree-inline.c (copy_bb): Update.
2426 2011-04-26 Jason Merrill <jason@redhat.com>
2428 * tree-eh.c (lower_try_finally_switch): Create the label along with
2429 the CASE_LABEL_EXPR.
2431 2011-04-26 David S. Miller <davem@davemloft.net>
2432 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2434 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2435 * configure: Regenerate.
2437 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2440 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2442 (VEC_reduc): New code iterator and splitters for vector reduction.
2443 (VEC_reduc_name): Ditto.
2444 (VEC_reduc_rtx): Ditto.
2445 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2446 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2448 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2449 support for extracting SF on VSX.
2451 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2452 generating xscvspdp.
2453 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2454 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2455 double add, minimum, maximum vector reduction.
2456 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2457 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2458 optimize double vector reduction.
2459 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2461 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2463 * config/fr30/fr30.h (inhibit_libc): Don't define.
2464 * config/m32r/m32r-protos.h: Correct comment.
2465 * config/v850/v850.h (GHS_default_section_names,
2466 GHS_current_section_names): Use tree, not union tree_node *.
2468 2011-04-26 Xinliang David Li <davidxl@google.com>
2470 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2471 * c-family/c-opts.c (c_common_handle_option): Set
2472 warn_maybe_uninitialized.
2473 * opts.c (common_handle_option): Ditto.
2474 * common.opt: New option.
2475 * tree-ssa.c (warn_uninit): Add one more parameter.
2476 (warn_uninitialized_var): Pass warning code.
2477 * tree-flow.h: Interface change.
2480 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2482 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2483 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2484 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2486 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2488 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2489 * config/mips/mips.opt (mmips-tfile): Remove.
2491 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2492 mips-tdump reference to ...
2493 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2494 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2495 reference by Tru64 UNIX.
2497 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2500 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2501 is error_mark_node, set value to NULL.
2503 PR tree-optimization/48734
2504 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2505 if return value from maybe_fold_*_comparsions isn't something
2506 the code is prepared to handle.
2508 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2510 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2512 (ext_QIreg_nomode_operands): Remove.
2513 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2517 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2519 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2521 2011-04-26 Richard Guenther <rguenther@suse.de>
2523 * c-typeck.c (build_unary_op): Do not expand array-refs via
2524 pointer arithmetic. Only adjust qualifiers for function types.
2526 2011-04-26 Richard Guenther <rguenther@suse.de>
2529 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2530 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2531 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2532 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2534 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2536 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2537 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2538 * doc/extend.texi: Document __underlying_type.
2540 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2542 * config/rs6000/titan.md (automata_option "progress"): Remove.
2544 2011-04-25 Jeff Law <law@redhat.com>
2546 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2548 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2550 * system.h (ENUM_BITFIELD): Remove.
2552 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2553 Eric Botcazou <ebotcazou@adacore.com>
2555 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2556 for STORE_FLAG_VALUE==-1 case.
2558 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2561 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2562 LEGITIMATE_PIC_OPERAND_P.
2564 2011-04-24 Jan Hubicka <jh@suse.cz>
2566 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2568 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2569 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2570 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2571 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2572 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2573 Sanity check predicate length.
2574 (remap_predicate): Likewise; sanity check jump functions.
2575 (inline_read_section, inline_write_summary): Sanity check
2578 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2581 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2582 __is_literal_type, and __is_trivial; update throughout about
2583 possibly cv-qualified void types.
2585 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2587 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2588 testsuite and make it version agnostic.
2590 2011-04-22 Jan Hubicka <jh@suse.cz>
2592 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2594 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2597 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2598 to VOID_TYPE even around MODIFY_EXPR.
2600 2011-04-22 Mike Stump <mikestump@comcast.net>
2602 * gensupport.c (read_md_rtx): Fix typo in comment.
2603 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2606 2011-04-22 Jan Hubicka <jh@suse.cz>
2608 * gengtype.c (open_base_files): Add ipa-inline.h include.
2609 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2610 ipa-prop.c; update all uses.
2611 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2612 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2613 merge summary of inlined function into former caller.
2614 * ipa-inline.c (max_benefit): Remove.
2615 (edge_badness): Compensate for removal of benefits.
2616 (update_caller_keys): Use
2617 reset_node_growth_cache/reset_edge_growth_cache.
2618 (update_callee_keys): Likewise.
2619 (update_all_callee_keys): Likewise.
2620 (inline_small_functions): Do not collect max_benefit; do not reset
2621 estimated_growth; call free_growth_caches and initialize_growth_caches.
2622 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2623 struct size_time_entry): New structures.
2624 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2625 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2626 and estimated_growth.
2627 (edge_growth_cache_entry): New structure.
2628 (node_growth_cache, edge_growth_cache): New global vars.
2629 (estimate_growth): Turn into inline.
2630 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2631 initialize_growth_caches, free_growth_caches): Declare.
2632 (estimate_edge_growth): Rewrite.
2633 (estimate_edge_time): Implement as inline cache lookup.
2634 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2636 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2637 (NUM_CONDITIONS): New constant.
2638 (predicate_conditions): New enum.
2639 (IS_NOT_CONSTANT): New constant.
2640 (edge_removal_hook_holder): New var.
2641 (node_growth_cache, edge_growth_cache): New global vars.
2642 (true_predicate, single_cond_predicate, false_predicate,
2643 not_inlined_predicate, add_condition, add_clause, and_predicates,
2644 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2645 dump_clause, dump_predicate, account_size_time,
2646 evaulate_conditions_for_edge): New functions.
2647 (inline_summary_alloc): Move to heap.
2648 (inline_node_removal_hook): Clear condition and entry vectors.
2649 (inline_edge_removal_hook): New function.
2650 (initialize_growth_caches, free_growth_caches): New function.
2651 (dump_inline_summary): Update.
2652 (edge_execution_predicate): New function.
2653 (will_be_nonconstant_predicate): New function.
2654 (estimate_function_body_sizes): Compute BB and constantness predicates.
2655 (compute_inline_parameters): Do not clear estimated_growth.
2656 (estimate_edge_size_and_time): New function.
2657 (estimate_calls_size_and_time): New function.
2658 (estimate_callee_size_and_time): New function.
2659 (remap_predicate): New function.
2660 (inline_merge_summary): New function.
2661 (do_estimate_edge_time): New function based on...
2662 (estimate_edge_time): ... this one.
2663 (do_estimate_edge_growth): New function.
2664 (do_estimate_growth): New function based on....
2665 (estimate_growth): ... this one.
2666 (inline_analyze_function): Analyze after deciding on jump functions.
2667 (inline_read_section): New function.
2668 (inline_read_summary): Use it.
2669 (inline_write_summary): Write all the new data.
2670 * ipa-prop.c (ipa_get_param_decl_index): Export.
2671 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2672 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2674 (ipa_get_lattice): Move here from ipa-cp.c
2675 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2676 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2677 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2678 cgraph_edge_inlinable_p): Remove.
2679 * cgraphunit.c: Include ipainline.h
2680 (cgraph_process_new_functions): Update call of
2681 compute_inline_parameters.
2683 2011-04-22 Richard Guenther <rguenther@suse.de>
2685 * tree.c (build_int_cst): Properly create canonicalized integer
2687 (build_int_cst_type): Remove scary comments.
2689 2011-04-22 Xinliang David Li <davidxl@google.com>
2691 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2692 by default when -Wno-error is not specified.
2693 * opts-global.c (decode_options): Remove call to
2694 control_warning_options.
2696 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2698 PR tree-optimization/48717
2699 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2700 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2702 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2704 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2705 definition where used.
2707 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2710 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2711 TREE_STATIC variables declared inside of some OpenMP construct.
2713 2011-04-22 Martin Jambor <mjambor@suse.cz>
2716 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2718 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2721 * c-typeck.c (pop_init_level): Do not warn about initializing
2724 2011-04-22 Alan Modra <amodra@gmail.com>
2726 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2727 when returning call_cookie.
2728 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2729 pointers, to functions with no more vector args than the current
2730 function, and some non-local calls for ABI_V4.
2731 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2732 sibcall_nonlocal_aix64): Combine to ..
2733 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2734 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2735 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2736 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2737 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2739 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2740 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2741 sibcall_value_symbolic_64): Delete.
2743 2011-04-21 Xinliang David Li <davidxl@google.com>
2745 * cgraph.h: Remove pid.
2746 * cgraph.c: Remove pid.
2747 * value-prof.c (init_node_map): New function.
2748 (del_node_map): New function.
2749 (find_func_by_funcdef_no): New function.
2750 (gimple_ic_transform): Call new function.
2751 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2752 * function.c (get_last_funcdef_no): New function.
2753 * function.h (get_last_funcdef_no): New function.
2754 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2755 to libgcov function.
2756 (tree-profiling): Call node map init and delete function.
2758 2011-04-21 Ian Lance Taylor <iant@google.com>
2760 * godump.c (go_format_type): Use exported Go name for anonymous
2763 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2765 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2766 Call builtin_function_type_list instead of builtin_function_type.
2767 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2769 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2771 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2772 build_function_type_list instead of build_function_type.
2773 Delete variable `endlink'.
2775 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2777 * config/s390/s390.c (s390_init_builtins): Call
2778 build_function_type_list instead of build_function_type.
2780 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2782 * config/ia64/ia64.c (ia64_init_builtins): Call
2783 build_function_type_list instead of builtin_function_type.
2785 2011-04-21 Easwaran Raman <eraman@google.com>
2787 * cfgexpand.c (stack_var): Remove OFFSET...
2788 (add_stack_var): ...and its reference here...
2789 (expand_stack_vars): ...and here.
2790 (stack_var_cmp): Sort by descending order of size.
2791 (partition_stack_vars): Change heuristic.
2792 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2793 (dump_stack_var_partition): Add newline after each partition.
2795 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2796 Jeff Law <law@redhat.com>
2798 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2799 * gengtype.c (matching_file_name_substitute): Likewise.
2801 2011-04-21 Richard Guenther <rguenther@suse.de>
2804 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2806 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2808 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2810 2011-04-21 Richard Guenther <rguenther@suse.de>
2812 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2815 2011-04-21 Richard Guenther <rguenther@suse.de>
2817 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2818 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2819 Use DECL_P, not SSA_VAR_P.
2820 (ptr_derefs_may_alias_p): Likewise.
2821 (ptr_deref_may_alias_ref_p_1): Likewise.
2822 (decl_refs_may_alias_p): Likewise.
2823 (refs_may_alias_p_1): Likewise.
2824 (ref_maybe_used_by_call_p_1): Likewise.
2825 (call_may_clobber_ref_p_1): Likewise.
2826 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2827 are either MEM_REF or TARGET_MEM_REF.
2828 (indirect_refs_may_alias_p): Likewise.
2829 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2830 for MEM_EXPR of indirect calls.
2832 2011-04-21 Tristan Gingold <gingold@adacore.com>
2834 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2835 (dst_file_info_struct): Remove flen field.
2836 (lookup_filename): Remove code that set flen field.
2838 2011-04-21 Tristan Gingold <gingold@adacore.com>
2840 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2842 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2845 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2846 vec_extract and vec_concat for non-SSE4_1 targets.
2848 2011-04-21 Richard Guenther <rguenther@suse.de>
2850 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2853 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2855 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2857 (FILE): Don't undefine.
2859 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2861 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2863 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2865 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2866 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2867 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2869 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2870 definitions where used.
2871 * config/microblaze/microblaze.h (struct microblaze_args): Use
2872 rtx, not struct rtx_def *.
2873 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2875 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2876 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2877 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2878 not struct rtx_def *.
2879 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2881 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2883 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2885 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2887 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2888 operand_equal_p to compare DR_BASE_ADDRESSes.
2889 (vect_check_interleaving): Likewise.
2891 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2894 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2895 for all Neon struct constants.
2897 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2899 * target.def (legitimate_constant_p): New hook.
2900 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2901 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2902 * doc/tm.texi: Regenerate.
2903 * hooks.h (hook_bool_mode_rtx_true): Declare.
2904 * hooks.c (hook_bool_mode_rtx_true): Define.
2905 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2906 * calls.c (precompute_register_parameters): Replace uses of
2907 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2908 (emit_library_call_value_1): Likewise.
2909 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2910 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2911 * ira-costs.c (scan_one_insn): Likewise.
2912 * recog.c (general_operand, immediate_operand): Likewise.
2913 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2914 * reload1.c (init_eliminable_invariants): Likewise.
2916 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2918 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2919 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2921 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922 * config/alpha/predicates.md (input_operand): Update call to
2923 alpha_legitimate_constant_p.
2925 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2926 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2927 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2928 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2929 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2930 (arm_legitimate_constant_p): New functions.
2931 (arm_cannot_force_const_mem): Make static.
2933 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2935 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2936 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2937 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2938 instead of bfin_legitimate_constant_p.
2939 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2940 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2942 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2944 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2946 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2947 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2948 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2949 (frv_legitimate_constant_p): Make static. Add a mode argument.
2951 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2952 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2953 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2955 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2956 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2957 * config/i386/i386.c (legitimate_constant_p): Rename to...
2958 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2960 (ix86_cannot_force_const_mem): Update accordingly.
2961 (ix86_legitimate_address_p): Likewise.
2962 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2963 * config/i386/i386.md: Update commentary.
2965 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2966 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2967 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2968 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2970 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2972 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2973 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2974 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2975 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2977 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2978 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2979 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2981 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2982 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2983 (m32r_legitimate_constant_p): New function.
2985 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2986 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2987 LEGITIMATE_CONSTANT_P.
2988 (LEGITIMATE_CONSTANT_P): Delete.
2989 * config/m68k/m68k.c (m68k_expand_prologue): Call
2990 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2991 (m68k_legitimate_constant_p): New function.
2992 * config/m68k/m68k.md: Update comments.
2994 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2995 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2996 (mcore_legitimate_constant_p): New function.
2998 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2999 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3000 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3001 Add a mode argument.
3002 (mep_legitimate_address): Update accordingly.
3003 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3005 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3007 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3008 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3009 static. Check OP's mode for VOIDmode.
3010 (microblaze_legitimate_constant_p): New function.
3011 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3013 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3014 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3015 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3016 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3017 * config/mips/predicates.md: Update comments.
3019 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3020 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3021 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3022 (mmix_legitimate_constant_p): Make static, return a bool, and take
3024 (mmix_print_operand_address): Update accordingly.
3026 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3028 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3029 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3030 static. Add a mode argument.
3031 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3033 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3035 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3036 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3037 (pa_legitimate_constant_p): New function.
3039 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3041 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3042 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3043 (pdp11_legitimate_constant_p): New function.
3045 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3046 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3047 (rs6000_legitimate_constant_p): New function.
3049 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3050 (rx_legitimate_constant_p): ...this.
3051 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3052 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3053 (rx_legitimate_constant_p): ...this.
3054 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3055 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3057 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3058 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3059 * config/s390/s390.c (legitimate_constant_p): Rename to...
3060 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3061 and add a mode argument.
3062 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3064 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3066 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3067 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3068 (sh_legitimate_constant_p): New function.
3070 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3071 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3072 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3073 (legitimate_constant_p): Rename to...
3074 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3076 (constant_address_p): Update accordingly.
3078 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3079 argument and return a bool.
3080 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3081 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3082 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3083 (spu_rtx_costs): Update accordingly.
3084 * config/spu/predicates.md (vec_imm_operand): Likewise.
3086 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3088 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3089 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3090 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3092 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3093 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3094 * config/vax/vax.c (legitimate_constant_p): Likewise.
3096 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3097 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3098 (xtensa_legitimate_constant_p): New function.
3100 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3102 * target.def (cannot_force_const_mem): Add a mode argument.
3103 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3104 * doc/tm.texi: Regenerate.
3105 * hooks.h (hook_bool_mode_rtx_false): Declare.
3106 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3107 (hook_bool_mode_const_rtx_true): Likewise.
3108 (hook_bool_mode_rtx_false): New function.
3109 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3110 to be non-VOID. Update call to cannot_force_const_mem.
3111 (find_reloads): Update accordingly.
3112 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3113 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3115 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3116 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3117 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3118 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3119 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3120 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3121 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3122 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3123 (m68k_cannot_force_const_mem): ...this new function.
3124 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3126 (mips_const_insns, mips_legitimize_const_move): Update calls.
3127 (mips_secondary_reload_class): Likewise.
3128 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3129 (pa_cannot_force_const_mem): ...this new function.
3130 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3131 (rs6000_cannot_force_const_mem): ...this new function.
3132 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3134 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3135 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3137 (xtensa_cannot_force_const_mem): ...this new function.
3139 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3141 * config/mips/mips.c (mips16_build_function_stub): Call
3142 build_function_type_list instead of build_function_type.
3143 (mips16_build_call_stub): Likewise.
3145 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3147 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3148 instead of build_function_type.
3150 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3152 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3153 instead of build_function_type.
3155 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3158 * config/i386/i386.md (insv): Change operand 0 constraint to
3159 "register_operand". Change operand 1 and 2 constraint to
3160 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3161 * config/i386/sse.md (sse4_1_pinsrb): Export.
3162 (sse2_pinsrw): Ditto.
3163 (sse4_1_pinsrd): Ditto.
3164 (sse4_1_pinsrq): Ditto.
3165 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3166 * config/i386/i386.c (ix86_expand_pinsr): New.
3168 2011-04-20 Easwaran Raman <eraman@google.com>
3170 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3171 containing union type only with -fstrict-aliasing.
3173 2011-04-20 Jim Meyering <meyering@redhat.com>
3175 Remove useless if-before-free tests.
3176 * calls.c (expand_call, save_area): Likewise.
3177 * cfgcleanup.c (try_forward_edges): Likewise.
3178 * collect2.c (collect_execute): Likewise.
3179 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3180 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3181 * coverage.c (coverage_checksum_string): Likewise.
3182 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3183 * cselib.c (cselib_init): Likewise.
3184 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3185 (df_set_clean_cfg): Likewise.
3186 * function.c (free_after_compilation): Likewise.
3187 * gcc.c (do_spec_1, main): Likewise.
3188 * gcov.c (create_file_names): Likewise.
3189 * gensupport.c (identify_predicable_attribute): Likewise.
3190 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3191 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3192 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3193 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3194 * ipa-pure-const.c (local_pure_const): Likewise.
3195 * ipa-reference.c (propagate): Likewise.
3196 * ira-costs.c (free_ira_costs): Likewise.
3197 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3198 * matrix-reorg.c (mat_free): Likewise.
3199 * prefix.c (get_key_value): Likewise.
3200 * profile.c (compute_value_histograms): Likewise.
3201 * reload1.c (free_reg_equiv): Likewise.
3202 * sched-deps.c (free_deps): Likewise.
3203 * sel-sched-ir.c (fence_clear): Likewise.
3204 * sese.c (set_rename, if_region_set_false_region): Likewise.
3205 * tree-data-ref.c (free_rdg): Likewise.
3206 * tree-eh.c (lower_try_finally): Likewise.
3207 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3208 * tree-ssa-live.c (delete_var_map): Likewise.
3209 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3210 * tree-ssa-pre.c (phi_trans_add): Likewise.
3212 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3214 PR tree-optimization/48611
3215 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3216 beyond ERT_MUST_NOT_THROW region.
3218 2011-04-20 Catherine Moore <clm@codesourcery.com>
3220 * config/mips/mips.opt (mfix-24k): New.
3221 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3222 * config/mips/mips.md (length): Increase by 4 for stores if
3224 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3225 all noreorder if fixing 24K errata.
3226 * doc/invoke.texi: Document mfix-24k.
3228 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3230 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3231 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3233 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3235 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3236 (const_ok_for_op): ... to here.
3238 2011-04-20 Kai Tietz <ktietz@redhat.com>
3240 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3241 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3243 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3245 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3247 2011-04-20 Richard Guenther <rguenther@suse.de>
3249 PR tree-optimization/47892
3250 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3253 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3255 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3257 2011-04-20 Tristan Gingold <gingold@adacore.com>
3259 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3261 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3265 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3266 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3267 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3268 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3269 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3271 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3274 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3275 (avr_asm_named_section, avr_asm_output_aligned_common,
3276 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3277 New functions to update...
3278 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3279 (avr_asm_init_sections): Overwrite section callbacks for
3280 data_section, bss_section.
3281 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3283 (avr_file_end): ...here.
3285 2011-04-20 Richard Guenther <rguenther@suse.de>
3288 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3289 objects and types here. Adjust for their offset before comparing.
3291 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3293 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3296 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3298 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3299 (GIMPLE_H): Include $(INTERNAL_FN_H).
3300 (OBJS-common): Add internal-fn.o.
3301 (internal-fn.o): New rule.
3302 * internal-fn.def: New file.
3303 * internal-fn.h: Likewise.
3304 * internal-fn.c: Likewise.
3305 * gimple.h: Include internal-fn.h.
3306 (GF_CALL_INTERNAL): New gf_mask.
3307 (gimple_statement_call): Put fntype into a union with a new
3309 (gimple_build_call_internal): Declare.
3310 (gimple_build_call_internal_vec): Likewise.
3311 (gimple_call_same_target_p): Likewise.
3312 (gimple_call_internal_p): New function.
3313 (gimple_call_internal_fn): Likewise.
3314 (gimple_call_fntype): Return null for internal calls.
3315 (gimple_call_set_fntype): Assert that the function is not internal.
3316 (gimple_call_set_fn): Likewise.
3317 (gimple_call_set_fndecl): Likewise.
3318 (gimple_call_set_internal_fn): New function.
3319 (gimple_call_addr_fndecl): Handle null functions.
3320 (gimple_call_return_type): Likewise null types.
3321 * gimple.c (gimple_build_call_internal_1): New function.
3322 (gimple_build_call_internal): Likewise.
3323 (gimple_build_call_internal_vec): Likewise.
3324 (gimple_call_same_target_p): Likewise.
3325 (gimple_call_flags): Handle calls to internal functions.
3326 (gimple_call_fnspec): New function.
3327 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3328 (gimple_has_side_effects): Handle null functions.
3329 (gimple_rhs_has_side_effects): Likewise.
3330 (gimple_call_copy_skip_args): Handle calls to internal functions.
3331 * cfgexpand.c (expand_call_stmt): Likewise.
3332 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3333 * gimple-fold.c (gimple_fold_call): Handle null functions.
3334 (gimple_fold_stmt_to_constant_1): Don't fold
3335 calls to internal functions.
3336 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3338 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3339 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3340 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3341 (do_warn_unused_result): Likewise.
3342 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3343 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3344 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3345 the target of a call.
3346 (initialize_hash_element): Update accordingly.
3347 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3348 (iterative_hash_hashable_expr): Handle calls to internal functions.
3349 (print_expr_hash_elt): Likewise.
3350 * tree-ssa-pre.c (can_value_number_call): Likewise.
3351 (eliminate): Handle null functions.
3352 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3353 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3354 (find_func_aliases): Likewise.
3355 * value-prof.c (gimple_ic_transform): Likewise.
3356 (gimple_indirect_call_to_profile): Likewise.
3357 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3358 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3360 2011-04-19 Jan Hubicka <jh@suse.cz>
3362 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3363 * ipa-inline.c (inline_small_functions): Compute summaries first,
3364 populate heap later.
3366 2011-04-19 Jan Hubicka <jh@suse.cz>
3368 * cgraph.h (save_inline_function_body): Remove.
3369 * ipa-inline-transform.c: New file, broke out of...
3370 * ipa-inline.c: ... this one; Update toplevel comment.
3371 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3373 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3374 (cgraph_mark_inline_edge): Rename to inline_call; move to
3375 ipa-inline-transform.c.
3376 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3377 move to ipa-inline-transform.c
3378 (recursive_inlining, inline_small_functions, flatten_function,
3379 ipa_inline, inline_always_inline_functions,
3380 early_inline_small_functions): Update.
3381 (inline_transform): Move to ipa-inline-transform.c.
3382 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3384 * Makefile.in (ipa-inline-transform.o): New file.
3385 * cgraphunit.c (save_inline_function_body): Move to
3386 ipa-inline-transform.c
3388 2011-04-19 DJ Delorie <dj@redhat.com>
3390 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3391 registers if we already know there aren't any.
3392 (m32c_emit_epilogue): Don't emit a barrier here.
3393 (m32c_emit_eh_epilogue): Likewise.
3394 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3395 operands at expand time.
3396 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3398 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3399 duplicates. Provide aliases instead.
3400 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3401 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3404 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3406 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3407 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3408 (general_or_i64_p, sparc_register_move_cost): New function.
3410 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3412 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3413 Add lynx, mipssde. Sort table.
3415 2011-04-19 Xinliang David Li <davidxl@google.com>
3417 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3420 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3423 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3424 is a SUBREG with non-MODE_INT mode inside of it.
3426 2011-04-19 Martin Jambor <mjambor@suse.cz>
3428 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3429 also according to actual contants.
3430 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3431 (gimple_fold_call): Use it.
3432 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3434 2011-04-19 Martin Jambor <mjambor@suse.cz>
3436 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3437 non-pointer assignments.
3439 2011-04-19 Martin Jambor <mjambor@suse.cz>
3441 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3442 account anc_offset and otr_type from the indirect edge info.
3443 * ipa-prop.c (get_ancestor_addr_info): New function.
3444 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3445 get_ancestor_addr_info, call it.
3446 (ipa_note_param_call): Do not initialize information about polymorphic
3447 calls, return the indirect call graph edge. Remove the last
3448 parameter, adjust all callers.
3449 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3450 parameters. Initialize polymorphic information in the indirect edge.
3452 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3455 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3456 the types if they have different enumeration identifiers.
3458 2011-04-19 Jan Hubicka <jh@suse.cz>
3460 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3461 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3462 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3463 (optimize_function_for_size_p) ... here.
3465 2011-04-19 Richard Guenther <rguenther@suse.de>
3468 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3471 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3473 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3474 if DECL_NO_INLINE_WARNING_P is set on the function.
3476 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3479 * reload1.c (inc_for_reload): Return void. All callers changed.
3480 (emit_input_reload_insns): Don't try to delete previous output
3481 reloads to a register, or record spill_reg_store for autoincs.
3483 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3485 * gengtype.h: Updated copyright year.
3486 (struct input_file_st): Add inpisplugin field.
3487 (type_fileloc): New function.
3489 (write_typed_struct_alloc_def): Add gcc_assert.
3490 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3491 (write_typed_alloc_defns): Don't output for plugin files.
3492 (input_file_by_name): Clear inpisplugin field.
3493 (main): Set inpisplugin field for plugin files.
3495 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3497 * gengtype-state.c (string_eq): New.
3498 (read_state): Use string_eq instead of strcmp when creating the
3501 2011-04-19 Wei Guozhi <carrot@google.com>
3504 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3505 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3507 * config/arm/constraints.md (Uu): New constraint.
3508 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3510 2011-04-19 Tristan Gingold <gingold@adacore.com>
3512 * config.gcc (-*-*-*vms): Added.
3513 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3515 * config/vms/vms-ld.c: New file.
3516 * config/vms/vms-ar.c: New file.
3517 * config/vms/t-vmsnative: New file.
3519 2011-04-18 Xinliang David Li <davidxl@google.com>
3521 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3523 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3526 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3527 if TREE_TYPE (v) is non-NULL.
3529 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3530 gimple_get_virt_mehtod_for_binfo.
3531 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3532 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3534 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3536 2011-04-18 Michael Matz <matz@suse.de>
3537 Steve Ellcey <sje@cup.hp.com>
3539 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3540 use its mode as source mode if it isn't VOIDmode.
3542 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3544 * doc/passes.texi: Fill crossref nodes.
3546 2011-04-18 Jim Meyering <meyering@redhat.com>
3548 Fix doubled-word typos in comments and strings
3549 * config/alpha/vms-unwind.h: s/for for/for/
3550 * config/arm/unwind-arm.h: Likewise.
3551 * config/microblaze/microblaze.c: Likewise.
3552 * config/sh/constraints.md: s/in in/in/
3553 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3555 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3557 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3558 (AVX_FLOAT_MODE_P): Ditto.
3559 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3560 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3561 (AVX_VEC_FLOAT_MODE_P): Ditto.
3562 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3563 (UNSPEC_MASKSTORE): Ditto.
3564 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3565 Merge from <sse>_movmsk<ssemodesuffix> and
3566 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3567 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3569 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3570 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3571 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3573 2011-04-18 Jan Hubicka <jh@suse.cz>
3575 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3577 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3578 (want_inline_function_called_once_p): Break out the logic from
3580 (edge_badness): Ensure that profile is not misupdated.
3581 (lookup_recursive_calls): Prioritize by call frequencies.
3582 (inline_small_functions): Move program size estimates here;
3583 actually process whole queue even when unit growth has been
3584 met. (to properly compute inline_failed reasons and for the
3585 case unit size decrease.) Revisit comments on recursive inlining.
3586 (ipa_inline): Remove unit summary code; first inline hot calls
3587 of functions called once, cold calls next.
3588 (order, nnodes): Remove unused variables.
3589 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3590 (GTFILES): Remove ipa-inline.c
3591 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3593 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3595 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3597 2011-04-18 Jie Zhang <jie@codesourcery.com>
3598 Richard Earnshaw <rearnsha@arm.com>
3600 * arm.c (neon_builtin_type_bits): Remove.
3601 (typedef enum neon_builtin_mode): New.
3602 (T_MAX): Don't define.
3603 (typedef enum neon_builtin_datum): Remove bits, codes[],
3604 num_vars and base_fcode. Add mode, code and fcode.
3605 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3606 VAR10): Change accordingly.
3607 (neon_builtin_data[]): Change accordingly
3608 (arm_init_neon_builtins): Change accordingly.
3609 (neon_builtin_compare): Remove.
3610 (locate_neon_builtin_icode): Remove.
3611 (arm_expand_neon_builtin): Change accordingly.
3613 * arm.h (enum arm_builtins): Move to ...
3614 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3616 * arm.c (arm_builtin_decl): Declare.
3617 (TARGET_BUILTIN_DECL): Define.
3618 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3619 (arm_builtin_decls[]): New.
3620 (arm_init_neon_builtins): Store builtin declarations in
3621 arm_builtin_decls[].
3622 (arm_init_tls_builtins): Likewise.
3623 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3624 (arm_builtin_decl): New.
3626 2011-04-18 Richard Guenther <rguenther@suse.de>
3628 * tree.c (upper_bound_in_type): Build properly canonicalized
3630 (lower_bound_in_type): Likewise.
3632 2011-04-18 Richard Guenther <rguenther@suse.de>
3634 * gimple.h (gimple_call_addr_fndecl): New function.
3635 (gimple_call_fndecl): Use it.
3636 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3638 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3639 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3641 2011-04-18 Richard Guenther <rguenther@suse.de>
3644 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3646 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3649 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3650 DECL_IN_CONSTANT_POOL without RTL.
3652 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3653 Ira Rosen <ira.rosen@linaro.org>
3656 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3657 to match neon_vzip/vuzp/vtrn_internal.
3658 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3659 outputs explicitly dependent on both inputs.
3660 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3662 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3664 PR tree-optimization/48616
3665 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3666 whether the shift is by scalar or vector based on whether all SLP
3667 scalar stmts have the same rhs.
3669 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3671 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3674 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3676 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3679 2011-04-17 Jan Hubicka <jh@suse.cz>
3681 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3682 * cgrpahunit.c (cgraph_finalize_function): Do not set
3683 finalized_by_frontend.
3684 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3685 finalized_by_frontend.
3687 2011-04-17 Jan Hubicka <jh@suse.cz>
3689 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3690 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3691 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3692 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3694 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3696 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3698 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3701 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3702 is non-null before accessing it.
3703 (input_cgraph): Remove trailing spaces.
3705 2011-04-17 Revital Eres <revital.eres@linaro.org>
3707 * params.def (sms-min-sc): New param flag.
3708 * modulo-sched.c (sms_schedule): Use it.
3709 * doc/invoke.texi (sms-min-sc): Document it.
3711 2011-04-17 Jan Hubicka <jh@suse.cz>
3713 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3714 present, also set gimple_call_set_cannot_inline.
3715 * ipa-inline.c: Update toplevel comment.
3717 (cgraph_clone_inlined_nodes): Fix linebreaks.
3718 (cgraph_check_inline_limits): Restructure to ...
3719 (caller_growth_limits): ... this one; be more tolerant
3720 on growth in nested inline chains; add explanatory comment;
3721 fix stack accounting thinko introduced by previous patch.
3722 (cgraph_default_inline_p): Remove.
3723 (report_inline_failed_reason): New function.
3724 (can_inline_edge_p): New function.
3725 (can_early_inline_edge_p): New function.
3726 (leaf_node_p): Move upwards in file.
3727 (want_early_inline_function_p): New function.
3728 (want_inline_small_function_p): New function.
3729 (want_inline_self_recursive_call_p): New function.
3730 (cgraph_edge_badness): Rename to ...
3731 (edge_badness) ... this one; fix linebreaks.
3732 (update_edge_key): Update call of edge_baddness; add
3733 detailed dump about queue updates.
3734 (update_caller_keys): Use can_inline_edge_p and
3735 want_inline_small_function_p.
3736 (cgraph_decide_recursive_inlining): Rename to...
3737 (recursive_inlining): Use can_inline_edge_p and
3738 want_inline_self_recursive_call_p; simplify and remove no longer
3740 (cgraph_set_inline_failed): Remove.
3741 (add_new_edges_to_heap): Use can_inline_edge_p and
3742 want_inline_small_function_p.
3743 (cgraph_decide_inlining_of_small_functions): Rename to ...
3744 (inline_small_functions): ... this one; cleanup; use
3745 can/want predicates; cleanup debug ouput; work edges till fibheap
3746 is exhausted and do not stop once unit growth is reached; remove
3747 later loop processing remaining edges.
3748 (cgraph_flatten): Rename to ...
3749 (flatten_function): ... this one; use can_inline_edge_p
3750 and can_early_inline_edge_p predicates.
3751 (cgraph_decide_inlining): Rename to ...
3752 (ipa_inline): ... this one; remove unreachable nodes before
3753 inlining functions called once; simplify the pass.
3754 (cgraph_perform_always_inlining): Rename to ...
3755 (inline_always_inline_functions): ... this one; use
3756 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3757 (cgraph_decide_inlining_incrementally): Rename to ...
3758 (early_inline_small_functions): ... this one; simplify
3759 using new predicates; cleanup; make dumps prettier.
3760 (cgraph_early_inlining): Rename to ...
3761 (early_inliner): newer inline regular functions into always-inlines;
3762 fix updating of call stmt summaries.
3763 (pass_early_inline): Update for new names.
3764 (inline_transform): Fix formating.
3765 (gate_cgraph_decide_inlining): Rename to ...
3766 (pass_ipa_inline): ... this one.
3767 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3768 * ipa-inline-analysis.c (dump_inline_summary): Update.
3769 (compute_inline_parameters): Do not compute disregard_inline_limits;
3770 look for mismatching arguments.
3771 (estimate_growth): Fix handlig of non-trivial self recursion.
3772 (inline_read_summary): Do not read info->disregard_inline_limits.
3773 (inline_write_summary): Do not write info->disregard_inline_limits.
3774 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3775 and move all checks into can_inline_edge_p predicate; re-enable code
3776 comparing optimization levels.
3777 (expand_call_inline): Do not test inline_forbidden_into_p.
3778 * Makefile.in (ipa-inline.o): Update arguments.
3780 2011-04-17 Revital Eres <revital.eres@linaro.org>
3782 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3784 2011-04-17 Revital Eres <revital.eres@linaro.org>
3786 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3788 2011-04-17 Michael Matz <matz@suse.de>
3790 PR tree-optimization/48622
3792 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3793 in same order as they're written.
3795 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3797 * config/pa/predicates.md: Reorganize and simplify predicates.
3798 Eliminate duplicate code checks.
3799 (arith_operand): Rename to arith14_operand
3800 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3801 * config/pa/pa.md: Use renamed operands.
3802 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3803 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3804 arith11_operand, adddi3_operand, indexed_memory_operand,
3805 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3806 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3807 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3808 move_dest_operand, move_src_operand, prefetch_cc_operand,
3809 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3810 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3811 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3812 div_operand, int5_operand, movb_comparison_operator,
3813 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3814 arith_double_operand, ireg_operand, lhs_lshift_operand,
3815 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3816 integer_store_memory_operand): Likewise.
3817 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3818 (integer_store_memory_operand, read_only_operand,
3819 function_label_operand, borx_reg_operand,
3820 non_hard_reg_operand): Likewise.
3821 (eq_neq_comparison_operator): Delete unused operator.
3822 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3823 function_label_operand.
3824 (emit_move_sequence): Likewise.
3826 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3828 * config/i386/sse.md (sseunpackmode): New mode attribute.
3829 (ssepackmode): Ditto.
3830 (vec_pack_trunc_<mode>): Macroize expander from
3831 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3832 (vec_unpacks_lo_<mode>): Macroize expander from
3833 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3834 (vec_unpacks_hi_<mode>): Macroize expander from
3835 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3836 (vec_unpacku_lo_<mode>): Macroize expander from
3837 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3838 (vec_unpacku_hi_<mode>): Macroize expander from
3839 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3840 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3841 ix86_expand_sse4_unpack.
3842 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3844 2011-04-16 Jan Hubicka <jh@suse.cz>
3846 * cgraphbuild.c: Include ipa-inline.h.
3847 (reset_inline_failed): Use initialize_inline_failed.
3848 * cgraph.c: Include ipa-inline.h.
3849 (cgraph_create_node_1): Do not initialize estimated_growth.
3850 (initialize_inline_failed): More to ipa-inline-analysis.c
3851 (dump_cgraph_node): Do not dump inline flags.
3852 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3853 and disregard_inline_limits flags.
3854 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3855 time, size, estimated_growth.
3856 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3858 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3859 DECL_DISREGARD_INLINE_LIMITS.
3860 (cgraph_analyze_function): Do not initialize
3861 node->local.disregard_inline_limits.
3862 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3863 inlinable, versionable and disregard_inline_limits.
3864 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3865 cgraph_check_inline_limits, cgraph_default_inline_p,
3866 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3867 add_new_edges_to_heap): Update.
3868 (cgraph_decide_inlining_of_small_function): Update; set
3869 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3870 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3871 cgraph_decide_inlining_incrementally): Update.
3872 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3873 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3874 time, size and estimated_growth parameters.
3875 (estimate_edge_growth): Update.
3876 (initialize_inline_failed): Declare.
3877 * ipa-split.c: Include ipa-inline.h
3878 (execute_split_functions): Update.
3879 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3880 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3881 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3882 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3883 estimated_growth to INT_MIN.
3884 (inline_node_duplication_hook): Likewise.
3885 (dump_inline_summary): Dump new fields.
3886 (compute_inline_parameters): Update.
3887 (estimate_edge_time, estimate_time_after_inlining,
3888 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3889 inline_write_summary):
3890 (initialize_inline_failed): Move here from cgraph.c.
3891 * tree-sra.c: Include ipa-inline.h.
3892 (ipa_sra_preliminary_function_checks): Update.
3893 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3896 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3898 * config/i386/sse.md (V16): New mode iterator.
3900 (AVXMODEQI, AVXMODEDI): Remove.
3901 (sse2, sse3): New mode attribute.
3902 (mov<mode>): Use V16 mode iterator.
3903 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3904 (push<mode>1): Use V16 mode iterator.
3905 (movmisalign<mode>): Ditto.
3906 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3907 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3908 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3909 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3910 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3911 avx_movdqu<avxmodesuffix>.
3912 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3913 *avx_movdqu<avxmodesuffix>.
3914 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3915 avx_lddqu<avxmodesuffix>.
3916 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3917 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3918 avx_movnt<AVXMODEDI:mode>.
3919 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3920 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3922 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3925 * haifa-sched.c (prune_ready_list, schedule_block): Use
3926 sched_pressure_p rather than flag_sched_pressure.
3928 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3930 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3931 cgraph_get_node instead of cgraph_get_create_node.
3933 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3935 * cfgexpand.c (expand_debug_expr): Use
3936 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3938 2011-04-15 Michael Matz <matz@suse.de>
3940 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3941 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3942 * function.c (gimplify_parameters): Ditto.
3943 * gimplify.c (gimplify_vla_decl): Ditto.
3945 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3946 (gimple_call_set_alloca_for_var): New inline function.
3947 (gimple_call_alloca_for_var_p): Ditto.
3948 * gimple.c (gimple_build_call_from_tree): Remember
3949 CALL_ALLOCA_FOR_VAR_P state.
3950 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3952 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3953 calls if they were for VLA objects.
3955 2011-04-15 Martin Jambor <mjambor@suse.cz>
3957 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3960 2011-04-15 Martin Jambor <mjambor@suse.cz>
3963 * tree-emutls.c (lower_emutls_function_body): Call
3964 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3967 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3969 * c-decl.c (detect_field_duplicates): Call
3970 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3972 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3974 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3975 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3976 * ipa-pure-const.c (check_stmt): Call it.
3977 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3979 2011-04-15 Richard Guenther <rguenther@suse.de>
3981 PR tree-optimization/48290
3982 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3983 Properly decide inhibiting propagation based on the valueized
3984 operand. Do loop-closed SSA form preserving here ...
3985 (init_copy_prop): ... not here.
3987 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3990 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3991 (*ieee_smax<mode>3): Likewise.
3993 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3995 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3996 Replace match_operand with match_dup for the third operand in
3999 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4001 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4002 to track processing of conditionals. Update all callers.
4003 (try_combine, simplify_if_then_else): Update.
4005 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4007 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4010 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4012 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4013 instead of match_operand for operand 3.
4015 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4017 * recog.h (insn_operand_data): Add an "allows_mem" field.
4018 * genoutput.c (output_operand_data): Initialize it.
4019 * optabs.c (maybe_legitimize_operand_same_code): New function.
4020 (maybe_legitimize_operand): Use it when matching the original
4023 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4025 * gimplify.c: Fix issues in comments throughout.
4026 (voidify_wrapper_expr): Fix long line.
4027 (build_stack_save_restore): Likewise.
4028 (gimplify_loop_expr): Likewise.
4029 (gimplify_compound_lval): Likewise.
4030 (gimplify_init_ctor_eval): Likewise.
4031 (gimplify_modify_expr_rhs): Likewise.
4032 (omp_notice_threadprivate_variable): Likewise.
4034 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4036 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4037 original one if this is not a builtin function.
4039 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4042 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4043 offset it as needed based on top 2 bits in operands[3], change
4044 MEM mode to SFmode and mask those 2 bits away from operands[3].
4046 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4048 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4049 change from objc_declare_protocols() to objc_declare_protocol().
4051 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4053 * config/i386/sse.md (sse4_1): New mode attribute.
4054 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4055 avx_blend<ssemodesuffix><avxmodesuffix> and
4056 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4057 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4058 avx_blendv<ssemodesuffix><avxmodesuffix> and
4059 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4060 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4061 avx_dp<ssemodesuffix><avxmodesuffix> and
4062 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4063 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4064 (sse4_1_packusdw): Merge with *avx_packusdw.
4065 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4066 (sse4_1_pblendw): Merge with *avx_pblendw.
4067 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4068 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4069 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4071 (sse4_1_round<ssescalarmodesuffix>): Merge with
4072 *avx_round<ssescalarmodesuffix>.
4073 (aesenc): Merge with *avx_aesenc.
4074 (aesenclast): Merge with *avx_aesenclast.
4075 (aesdec): Merge with *avx_aesdec.
4076 (aesdeclast): Merge with *avx_aesdeclast.
4077 (pclmulqdq): Merge with *pclmulqdq.
4078 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4080 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4082 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4085 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4086 (align_local_variable): This. Update DECL_ALIGN.
4087 (add_stack_var): Updated.
4088 (expand_one_stack_var): Likewise.
4090 2011-04-14 Richard Guenther <rguenther@suse.de>
4092 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4094 (dse_initialize_block_local_data, dse_leave_block,
4095 record_voperand_set, get_stmt_uid): Likewise.
4096 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4097 (dse_optimize_stmt): Remove voperand set handling code.
4098 Simplify and improve to handle any kind of killing stmt.
4099 (dse_record_phi): Remove.
4100 (dse_enter_block): Simplify.
4101 (tree_ssa_dse): Likewise.
4102 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4104 2011-04-14 Jan Hubicka <jh@suse.cz>
4106 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4107 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4108 (cgraph_local_info): Remove inline_summary.
4109 * ipa-cp.c: Include ipa-inline.h.
4110 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4111 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4113 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4114 (input_overwrite_node): Do not set inline summary.
4115 (input_node): Do not stream inline summary.
4116 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4117 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4118 growth; we do not have inline parameters computed for that anyway.
4119 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4120 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4121 (inline_summary_t): New type and VECtor.
4122 (debug_inline_summary, dump_inline_summaries): Declare.
4123 (inline_summary): Use VOCtor.
4124 (estimate_edge_growth): Kill hack computing call stmt size directly.
4125 * lto-section-in.c (lto_section_name): Add inline section.
4126 * ipa-inline-analysis.c: Include lto-streamer.h
4127 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4128 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4129 (inline_summary_vec): Define.
4130 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4131 dump_inline_summaries): New functions.
4132 (estimate_function_body_sizes): Properly compute size/time of outgoing
4134 (compute_inline_parameters): Alloc inline_summary; do not compute
4135 size/time of incomming calls.
4136 (estimate_edge_time): Avoid missing time summary hack.
4137 (inline_read_summary): Read inline summary info.
4138 (inline_write_summary): Write inline summary info.
4139 (inline_free_summary): Free all hooks and inline summary vector.
4140 * lto-streamer.h: Add LTO_section_inline_summary section.
4141 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4142 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4144 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4146 * tree-vectorizer.h (vect_strided_store_supported): Add a
4147 HOST_WIDE_INT argument.
4148 (vect_strided_load_supported): Likewise.
4149 (vect_permute_store_chain): Return void.
4150 (vect_transform_strided_load): Likewise.
4151 (vect_permute_load_chain): Delete.
4152 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4153 count argument. Check that the count is a power of two.
4154 (vect_strided_load_supported): Likewise.
4155 (vect_permute_store_chain): Return void. Update after above changes.
4156 Assert that the access is supported.
4157 (vect_permute_load_chain): Likewise.
4158 (vect_transform_strided_load): Return void.
4159 * tree-vect-stmts.c (vectorizable_store): Update calls after
4160 above interface changes.
4161 (vectorizable_load): Likewise.
4162 (vect_analyze_stmt): Don't check for strided powers of two here.
4164 2011-04-14 Richard Guenther <rguenther@suse.de>
4166 PR tree-optimization/48590
4167 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4168 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4169 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4170 BUILT_IN_STACK_SAVE.
4171 * tree-ssa-dce.c (propagate_necessity): Handle
4172 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4174 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4176 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4179 2011-04-14 Richard Guenther <rguenther@suse.de>
4181 * tree.h (get_object_alignment_1): Declare.
4182 * builtins.c (get_object_alignment_1): Split out worker from ...
4183 (get_object_alignment): ... here.
4184 * fold-const.c (get_pointer_modulus_and_residue): Use
4185 get_object_alignment_1.
4187 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4189 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4191 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4192 parameter. Generalise code to handle arrays as well as vectors.
4193 (vect_setup_realignment): Update accordingly.
4194 * tree-vect-stmts.c (vectorizable_store): Likewise.
4195 (vectorizable_load): Likewise.
4197 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4199 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4200 within the per-copy loop.
4202 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4204 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4207 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4209 * doc/options.texi (Negative): Explicitly mention that the
4210 Negative chain must be circular.
4212 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4214 * function.h (block_chainon): Declare.
4215 * function.c (block_chainon): Define.
4217 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4218 Eric Weddington <eric.weddington@atmel.com>
4219 Georg-Johann Lay <avr@gjlay.de>
4221 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4223 (avr_init_builtins, avr_expand_builtin,
4224 avr_expand_delay_cycles, avr_expand_unop_builtin,
4225 avr_expand_binop_builtin ): New functions.
4226 (avr_builtin_id): New enum
4227 (struct avr_builtin_description): New struct
4228 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4229 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4231 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4232 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4233 UNSPECV_DELAY_CYCLES): new enumeration values
4234 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4235 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4236 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4237 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4238 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4239 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4240 "fmulsu"): New insns
4242 * config/avr/avr-c.c: fix line endings
4243 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4244 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4245 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4246 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4247 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4249 * doc/extend.texi (AVR Built-in Functions): New node
4250 (Target Builtins): Add documentation of AVR
4253 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4256 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4257 alone. Error if non-const data has attribute progmem.
4259 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4261 * tree.h (struct tree_constructor): Include tree_typed instead of
4263 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4264 TS_TYPED instead of TS_COMMON.
4266 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4268 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4269 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4270 (sse2_psadbw): Merge with *avx_psadbw.
4271 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4272 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4273 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4274 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4275 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4276 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4277 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4278 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4279 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4280 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4281 (ssse3_palignrti): Merge with *avx_palignrti.
4283 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4285 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4286 * tree-ssanames.c (fini_ssanames): VEC_free it.
4287 (make_ssa_name_fn): Update for VECness of free_ssanames.
4288 (release_ssa_name, release_dead_ssa_names): Likewise.
4289 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4291 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4292 TS_TYPED instead of TS_COMMON.
4294 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4296 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4297 statistics_counter_event.
4298 * tree-ssa-copyrename.c (stats): Define.
4299 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4300 statistics_counter_event.
4301 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4302 (bswap_stats, widen_mul_stats): Define.
4303 (insert_reciprocals): Increment rdivs_inserted.
4304 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4305 rfuncs_inserted. Add calls to statistics_counter_event.
4306 (execute_cse_sincos_1): Increment inserted.
4307 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4308 statistics_counter_event.
4309 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4310 of bswap_stats. Add calls to statistics_counter_event.
4311 (convert_mult_to_widen): Increment widen_mults_inserted.
4312 (convert_plusminus_to_widen): Increment maccs_inserted.
4313 (convert_mult_to_fma): Increment fmas_inserted.
4314 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4315 calls to statistics_counter_event.
4317 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4319 PR rtl-optimization/48455
4320 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4321 `temp_costs->mem_cost'.
4323 2011-04-13 Jan Hubicka <jh@suse.cz>
4325 * ipa-inline.h: New file.
4326 * ipa-inline-analysis.c: New file. Broken out of ...
4327 * ipa-inline.c: ... this file; update toplevel comment;
4328 include ipa-inline.h
4329 (inline_summary): Move to ipa-inline.h
4330 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4331 ipa-inline-analysis.c.
4332 (cgraph_estimate_time_after_inlining): Rename to
4333 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4334 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4335 to estimate_edge_growth.
4336 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4337 rename to estimate_size_after_inlining.
4338 (cgraph_mark_inline_edge): Update for new naming convention.
4339 (cgraph_check_inline_limits): Likewise.
4340 (cgraph_edge_badness): Likewise.
4341 (cgraph_decide_recursive_inlining): Likewise.
4342 (cgraph_decide_inlining_of_small_functions): Likewise.
4343 (cgraph_decide_inlining_incrementally): Likewise.
4344 (cgraph_estimate_growth): Rename to estimate_growth; move to
4345 ipa-inline-analysis.c.
4346 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4347 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4348 (compute_inline_parameters): Likewise.
4349 (compute_inline_parameters_for_current): Likewise.
4350 (pass_inline_parameters): Likewise.
4351 (inline_indirect_intraprocedural_analysis): Likewise.
4352 (analyze_function): Rename to inline_analyze_function; likewise.
4353 (add_new_function): Move to ipa-inline-analysis.c.
4354 (inline_generate_summary): Likewise.
4355 (inline_read_summary): Likewise.
4356 (inline_write_summary): Likewise.
4357 * Makefile.in (ipa-inline-analysis.c): New file.
4359 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4361 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4362 * configure: Regenerate.
4364 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4366 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4367 instead of tree_common.
4368 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4370 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4371 TS_TYPED rather than TS_COMMON.
4372 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4374 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4377 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4378 r20 around calls of __tablejump_elpm__
4380 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4383 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4385 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4387 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4389 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4390 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4391 (cfi_vec): New typedef.
4392 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4393 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4394 (cie_cfi_vec): New static variable.
4395 (cie_cfi_head): Delete.
4396 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4397 declaration changed. Use vector rather than list operations.
4398 (new_cfi): Don't initialize the dw_cfi_next field.
4399 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4400 rather than list operations.
4401 (lookup_cfa): Use vector rather than list operations.
4402 (output_cfis): New argument upto. Accept a cfi_vec rather than
4403 a dw_cfi_ref list head as argument. All callers changed.
4404 Iterate over the vector using upto as a maximum index.
4405 (output_all_cfis): New static function.
4406 (output_fde): Use vector rather than list operations. Use the
4407 new upto argument for output_cfis rather than manipulating a
4409 (dwarf2out_begin_prologue): Change initializations to match
4411 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4412 from the vector length rather than searching for the end of a list.
4413 Use output_all_cfis.
4414 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4416 2011-04-13 Nick Clifton <nickc@redhat.com>
4418 * config/rx/rx.md (movmemsi): Do not use this pattern when
4419 volatile pointers are involved.
4421 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4423 * config/i386/sse.md (pinsrbits): Remove.
4424 (sse2_packsswb): Merge with *avx_packsswb.
4425 (sse2_packssdw): Merge with *avx_packssdw.
4426 (sse2_packuswb): Merge with *avx_packuswb.
4427 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4428 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4429 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4430 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4431 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4432 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4433 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4434 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4435 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4436 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4437 (sse2_loadld): Merge with *avx_loadld.
4438 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4439 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4440 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4441 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4442 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4444 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4446 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4448 * print-tree.c (print_node): Likewise.
4449 * tree-inline.c (copy_tree_r): Likewise.
4450 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4451 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4452 instead of TS_COMMON.
4453 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4454 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4455 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4456 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4457 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4459 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4461 (TREE_CHAIN): Check for a TS_COMMON structure.
4462 (TREE_TYPE): Check for a TS_TYPED structure.
4464 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4466 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4467 cgraph_get_create_node instead of cgraph_node.
4469 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4471 * c-parser.c (c_parser_initelt): Updated call to
4472 objc_build_message_expr.
4473 (c_parser_postfix_expression): Likewise.
4475 2011-04-12 Kai Tietz <ktietz@redhat.com>
4477 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4478 MASK_MS_BITFIELD_LAYOUT bit.
4480 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4482 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4483 assert it is always true.
4484 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4487 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4489 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4490 compiling Objective-C to be more efficient.
4492 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4494 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4497 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4499 * recog.h, genoutput.c, optabs.c: Revert last patch.
4501 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4504 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4506 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4508 * recog.h (insn_operand_data): Add an "allows_mem" field.
4509 * genoutput.c (output_operand_data): Initialize it.
4510 * optabs.c (maybe_legitimize_operand_same_code): New function.
4511 (maybe_legitimize_operand): Use it when matching the original
4514 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4516 * genpreds.c (process_define_predicate): Move most processing
4517 to gensupport.c. Continue to validate the expression.
4518 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4519 (process_define_predicate): Move processing to gensupport.c.
4520 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4521 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4522 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4524 (valid_predicate_name_p): New function, split out from old
4525 genpreds.c:process_define_predicate.
4526 (process_define_predicate): New function, combining code from
4527 old genpreds.c and genrecog.c functions.
4528 (process_rtx): Call it for DEFINE_PREDICATE and
4529 DEFINE_SPECIAL_PREDICATE.
4531 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4533 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4534 size of a '%A' memory reference.
4535 (T_DREG, T_QREG): New neon_builtin_type_bits.
4536 (arm_init_neon_builtins): Assert that the load and store operands
4537 are neon_struct_operands.
4538 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4539 (NEON_ARG_MEMORY): New builtin_arg.
4540 (neon_dereference_pointer): New function.
4541 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4542 Handle NEON_ARG_MEMORY.
4543 (arm_expand_neon_builtin): Update after above interface changes.
4544 Use NEON_ARG_MEMORY for loads and stores.
4545 * config/arm/predicates.md (neon_struct_operand): New predicate.
4546 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4547 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4548 (V_four_elem): Tweak formatting.
4549 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4550 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4551 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4552 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4553 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4554 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4555 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4556 Use %A in the output template.
4557 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4558 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4559 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4560 the width of the memory access. Remove post-increment.
4561 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4563 2011-04-12 Nick Clifton <nickc@redhat.com>
4565 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4566 instruction for interrupt handlers if the target is the basic V850
4568 (expand_epilogue): Likewise.
4570 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4572 PR rtl-optimization/48549
4573 * combine.c (propagate_for_debug): Also stop after BB_END of
4574 this_basic_block. Process LAST and just stop processing after it.
4575 (combine_instructions): If last_combined_insn has been deleted,
4576 set last_combined_insn to its PREV_INSN.
4578 2011-04-12 Richard Guenther <rguenther@suse.de>
4580 PR tree-optimization/46076
4581 * gimple.h (struct gimple_statement_call): Add fntype field.
4582 (gimple_call_fntype): Adjust.
4583 (gimple_call_set_fntype): New function.
4584 * gimple.c (gimple_build_call_1): Set the call function type.
4585 * gimplify.c (gimplify_call_expr): Preserve the function
4586 type the frontend used for the call.
4587 (gimplify_modify_expr): Likewise.
4588 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4590 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4592 * tree-ssa.c (useless_type_conversion_p): Function pointer
4593 conversions are useless.
4595 2011-04-12 Martin Jambor <mjambor@suse.cz>
4597 * cgraph.h (cgraph_node): Remove function declaration.
4598 (cgraph_create_node): Declare.
4599 (cgraph_get_create_node): Likewise.
4600 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4601 Updated all callers.
4602 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4603 the decl does not already exist. Call cgraph_get_create_node instead
4605 (cgraph_get_create_node): New function.
4606 (cgraph_same_body_alias): Update comment.
4607 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4608 assert it does not return NULL.
4609 (cgraph_update_edges_for_call_stmt): Likewise.
4610 (cgraph_clone_edge): Likewise.
4611 (cgraph_create_virtual_clone): Likewise.
4612 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4613 instead of cgraph_node.
4614 (cgraph_add_new_function): Call cgraph_create_node or
4615 cgraph_get_create_node instead of cgraph_node.
4616 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4617 instead of cgraph_node.
4618 (record_eh_tables): Likewise.
4619 (mark_address): Likewise.
4620 (mark_load): Likewise.
4621 (build_cgraph_edges): Call cgraph_get_create_node instead
4623 (rebuild_cgraph_edges): Likewise.
4624 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4625 instead of cgraph_node.
4626 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4628 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4629 cgraph_create_node instead of cgraph_node.
4630 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4632 * lto-cgraph.c (input_node): Likewise.
4633 * lto-streamer-in.c (input_function): Likewise.
4634 * varasm.c (mark_decl_referenced): Likewise.
4635 (assemble_alias): Likewise.
4637 2011-04-12 Martin Jambor <mjambor@suse.cz>
4639 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4640 instead of cgraph_node and assert it does not return NULL.
4641 * lto-streamer-in.c (lto_read_body): Likewise.
4642 * omp-low.c (new_omp_context): Likewise.
4643 (create_task_copyfn): Likewise.
4644 * tree-emutls.c (lower_emutls_function_body): Likewise.
4645 * matrix-reorg.c (transform_allocation_sites): Likewise.
4647 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4650 * c-typeck.c (build_asm_expr): Error out on attempts to use
4651 void type outputs or inputs for constraints that allow reg or
4654 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4655 Richard Earnshaw <rearnsha@arm.com>
4658 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4659 to use sign-magnitude offsets. Reject unsupported unaligned
4660 cases. Add detailed description in comments.
4661 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4662 condition from TARGET_32BIT to TARGET_ARM.
4664 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4666 * tree.h (struct typed_tree): New.
4667 (struct tree_common): Include it instead of tree_base.
4668 (TREE_TYPE): Update for new location of type field.
4669 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4670 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4671 (union tree_node): Add typed field.
4672 * treestruct.def (TS_TYPED): New.
4673 * lto-streamer.c (check_handled_ts_structures): Handle it.
4674 * tree.c (MARK_TS_TYPED): New macro.
4675 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4677 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4679 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4680 (force_nonfallthru): Do not alter the loop nest if no basic block
4683 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4685 * config/i386/sse.md (VI): New mode iterator.
4687 (AVX256MODEI): Ditto.
4688 (AVXMODEF4P): Ditto.
4689 (avxvecpsmode): Ditto.
4690 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4691 (sse2_andnot<mode>3): New expander.
4692 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4693 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4694 (<any_logic:code><mode>3): Use VI mode iterator.
4695 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4696 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4697 (*andnottf3): Handle AVX three-operand constraints.
4698 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4700 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4701 Robert Millan <rmh@gnu.org>
4703 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4704 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4705 GNU_USER_DYNAMIC_LINKER64): Define.
4706 (REG_NAME): Don't undefine.
4707 (MD_UNWIND_SUPPORT): Undefine.
4708 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4709 (REG_NAME): Don't undefine.
4710 (MD_UNWIND_SUPPORT): Undefine.
4711 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4713 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4715 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4716 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4718 2011-04-11 Xinliang David Li <davidxl@google.com>
4720 * value-profile.c (check_ic_target): New function.
4721 (gimple_ic_transform): Sanity check indirect call target.
4722 * gimple-low.c (gimple_check_call_args): Interface change.
4723 (gimple_check_call_matching_types): New function.
4724 * tree-inline.c (tree_can_inline_p): Call new function.
4726 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4728 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4729 tree-pretty-print.h & realmpfr.h.
4731 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4734 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4735 (setup_allocno_and_important_classes): Ditto.
4737 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4739 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4740 GNU_USER_DYNAMIC_LINKER.
4741 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4742 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4743 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4744 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4745 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4746 GNU_USER_TARGET_OS_CPP_BUILTINS.
4747 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4749 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4750 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4751 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4752 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4753 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4754 GNU_USER_TARGET_OS_CPP_BUILTINS.
4755 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4756 GNU_USER_DYNAMIC_LINKER.
4757 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4758 GNU_USER_TARGET_OS_CPP_BUILTINS.
4759 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4760 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4761 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4762 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4763 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4764 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4765 GNU_USER_DYNAMIC_LINKER64): Remove.
4766 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4767 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4768 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4769 GNU_USER_DYNAMIC_LINKER.
4770 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4771 GNU_USER_TARGET_OS_CPP_BUILTINS.
4772 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4773 GNU_USER_TARGET_OS_CPP_BUILTINS.
4774 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4775 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4776 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4777 GNU_USER_TARGET_OS_CPP_BUILTINS.
4778 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4779 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4780 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4781 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4782 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4783 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4784 GNU_USER_DYNAMIC_LINKER.
4785 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4786 GNU_USER_TARGET_OS_CPP_BUILTINS.
4787 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4788 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4789 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4790 GNU_USER_DYNAMIC_LINKER.
4791 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4792 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4793 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4794 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4795 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4796 GNU_USER_DYNAMIC_LINKER.
4797 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4798 GNU_USER_DYNAMIC_LINKERN32.
4799 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4800 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4801 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4802 GNU_USER_DYNAMIC_LINKER32.
4803 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4805 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4806 GNU_USER_DYNAMIC_LINKER.
4807 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4809 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4810 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4811 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4812 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4813 GNU_USER_DYNAMIC_LINKER32.
4814 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4815 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4816 GNU_USER_DYNAMIC_LINKER.
4817 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4818 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4819 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4820 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4821 GNU_USER_DYNAMIC_LINKER64.
4822 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4823 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4824 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4825 GNU_USER_DYNAMIC_LINKER.
4826 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4827 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4828 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4829 GNU_USER_DYNAMIC_LINKER.
4830 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4831 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4832 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4833 GNU_USER_DYNAMIC_LINKER32.
4834 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4835 GNU_USER_DYNAMIC_LINKER64.
4836 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4837 GNU_USER_DYNAMIC_LINKER64.
4838 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4839 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4840 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4841 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4842 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4844 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4846 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4847 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4848 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4849 GNU_USER_DYNAMIC_LINKER.
4850 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4851 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4852 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4853 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4854 GNU_USER_DYNAMIC_LINKER64.
4855 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4856 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4857 GNU_USER_LINK_EMULATION.
4858 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4859 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4860 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4861 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4862 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4863 CPP_SPEC, CC1_SPEC): Remove.
4864 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4865 (GNU_USER_DYNAMIC_LINKER): Define.
4866 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4867 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4868 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4869 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4870 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4871 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4872 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4873 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4874 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4875 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4876 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4877 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4878 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4879 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4880 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4881 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4882 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4883 GNU_USER_DYNAMIC_LINKER.
4884 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4885 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4886 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4887 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4888 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4889 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4890 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4891 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4892 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4893 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4895 2011-04-11 Kai Tietz <ktietz@redhat.com>
4899 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4900 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4902 (ix86_is_msabi_thiscall): Removed.
4903 (ix86_is_type_thiscall): Likewise.
4904 (ix86_get_callcvt): New function.
4905 (ix86_comp_type_attributes): Simplify check.
4906 (ix86_function_regparm): Use ix86_get_callcvt for calling
4907 convention attribute checks.
4908 (ix86_return_pops_args): Likewise.
4909 (ix86_static_chain): Likewise.
4910 (x86_this_parameter): Likewise.
4911 (x86_output_mi_thunk): Likewise.
4912 (ix86_function_type_abi): Optimize check for types without attributes.
4913 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4914 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4915 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4917 (IX86_BASE_CALLCVT): Helper macro.
4918 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4919 Use ix86_get_callcvt for calling convention attribute checks and avoid
4920 symbol-decoration for stdcall in TARGET_RTD case.
4921 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4923 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4926 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4928 * config/i386/sse.md (VI_128): New mode iterator.
4929 (VI12_128): Rename from SSEMODE12.
4930 (VI14_128): Rename from SSEMODE14.
4931 (VI124_128): New mode iterator.
4932 (VI24_128): Rename from SSEMODE248.
4933 (VI248_128): Rename from SSEMODE248.
4934 (SSEMODE124C8): Remove.
4935 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4936 (*sse2_<plusminus_insn><mode>3): Merge with
4937 *avx_<plusminus_insn><mode>3.
4938 (*mulv8hi3): Merge with *avx_mulv8hi3.
4939 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4940 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4941 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4942 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4943 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4944 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4945 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4946 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4947 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4948 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4949 (*<smaxmin:code>v8hi3): Ditto.
4950 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4951 (*<smaxmin:code>v16qi3): Ditto.
4952 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4953 (*sse2_eq<mode>3): Ditto.
4954 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4955 (*sse2_gt<mode>3): Ditto.
4956 (vcondv2di): Split out of vcond<mode>.
4957 (vconduv2di): Split out of vcondu<mode>.
4959 2011-04-11 Richard Guenther <rguenther@suse.de>
4961 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4962 before calling tree_low_cst.
4964 2011-04-11 Richard Guenther <rguenther@suse.de>
4966 * stor-layout.c (layout_type): Compute all array index size operations
4967 in the original type.
4968 (initialize_sizetypes): Add comment.
4969 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4971 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4973 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4975 2011-04-11 Martin Jambor <mjambor@suse.cz>
4977 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4978 of cgraph_node, handle NULL return value.
4979 (cgraph_global_info): Likewise.
4980 (cgraph_rtl_info): Likewise.
4981 * tree-inline.c (estimate_num_insns): Likewise.
4982 * gimplify.c (unshare_body): Likewise.
4983 (unvisit_body): Likewise.
4984 (gimplify_body): Likewise.
4985 * predict.c (optimize_function_for_size_p): Likewise.
4986 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4987 (call_may_clobber_ref_p_1): Likewise.
4988 * varasm.c (function_section_1): Likewise.
4989 (assemble_start_function): Likewise.
4991 2011-04-11 Martin Jambor <mjambor@suse.cz>
4993 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4995 * final.c (rest_of_clean_state): Likewise.
4996 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4997 * passes.c (pass_init_dump_file): Likewise.
4998 (execute_all_ipa_transforms): Likewise.
4999 (function_called_by_processed_nodes_p): Likewise.
5000 * predict.c (maybe_hot_frequency_p): Likewise.
5001 (probably_never_executed_bb_p): Likewise.
5002 (compute_function_frequency): Likewise.
5003 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5004 (unnest_nesting_tree_1): Likewise.
5005 (lower_nested_functions): Likewise.
5006 * tree-optimize.c (execute_fixup_cfg): Likewise.
5007 (tree_rest_of_compilation): Likewise.
5008 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5009 * tree-sra.c (ipa_early_sra): Likewise.
5010 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5011 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5012 * ipa.c (record_cdtor_fn): Likewise.
5013 * ipa-inline.c (cgraph_early_inlining): Likewise.
5014 (compute_inline_parameters_for_current): Likewise.
5015 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5016 * ipa-pure-const.c (local_pure_const): Likewise.
5017 * ipa-split.c (split_function): Likewise.
5018 (execute_split_functions): Likewise.
5019 * cgraphbuild.c (build_cgraph_edges): Likewise.
5020 (rebuild_cgraph_edges): Likewise.
5021 (cgraph_rebuild_references): Likewise.
5022 (remove_cgraph_callee_edges): Likewise.
5023 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5024 (verify_cgraph_node): Likewise.
5025 (cgraph_analyze_functions): Likewise.
5026 (cgraph_preserve_function_body_p): Likewise.
5027 (save_inline_function_body): Likewise.
5028 (save_inline_function_body): Likewise.
5029 * tree-inline.c (copy_bb): Likewise.
5030 (optimize_inline_calls): Likewise.
5032 2011-04-11 Martin Jambor <mjambor@suse.cz>
5034 PR tree-optimization/48195
5035 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5036 ipa_check_create_edge_args.
5037 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5038 ipa_check_create_edge_args.
5039 * ipa-inline.c (inline_generate_summary): Do not call
5040 ipa_check_create_node_params and ipa_check_create_edge_args.
5041 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5042 ipa_check_create_edge_args.
5044 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5046 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5048 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5049 * function.c (record_hard_reg_sets): Likewise.
5050 * ira.c (compute_regs_asm_clobbered): Likewise.
5051 * sched-deps.c (sched_analyze_1): Likewise.
5052 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5054 2011-04-09 Xinliang David Li <davidxl@google.com>
5056 PR tree-optimization/PR48484
5057 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5058 has_valid_pred lazily
5060 2011-04-09 Duncan Sands <baldrick@free.fr>
5062 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5064 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5066 * combine.c (combine_validate_cost): Adjust comments. Set registered
5067 cost of I0 to zero at the end, if any.
5069 2011-04-08 Xinliang David Li <davidxl@google.com>
5071 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5072 to insane profile data.
5074 2011-04-08 Xinliang David Li <davidxl@google.com>
5076 * ipa-cp.c (ipcp_update_profiling): Correct
5077 negative scale factor due to insane profile data.
5079 2011-04-08 Xinliang David Li <davidxl@google.com>
5081 * final.c (dump_basic_block_info): New function.
5082 (final): Dump basic block.
5083 (final_scan_insn): Remove old dump.
5085 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5088 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5091 2011-04-08 Michael Matz <matz@suse.de>
5094 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5096 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5097 * rtl.h (rebuild_jump_labels_chain): Declare.
5098 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5099 insns inserted on edges.
5101 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5103 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5104 * config/arm/arm-arches.def: New.
5105 * config/arm/arm-opts.h: New.
5106 * config/arm/genopt.sh: New.
5107 * config/arm/arm-tables.opt: New (generated).
5108 * config/arm/arm.c (arm_handle_option, arm_target_help,
5109 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5110 (all_architectures): Get most table contents from arm-arches.def.
5111 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5112 arm_selected_tune here.
5113 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5114 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5115 (march=, mcpu=, mtune=): Use Enum and Var.
5116 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5117 (arm.o): Update dependencies.
5119 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5121 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5123 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5124 (write_typed_alloc_defns): Likewise.
5125 (main): Calls write_typed_alloc_defns with output_header.
5127 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5130 * ira-color.c (setup_profitable_hard_regs): Add comments.
5131 Don't take prohibited hard regs into account.
5132 (setup_conflict_profitable_regs): Rename to
5133 get_conflict_profitable_regs.
5134 (check_hard_reg_p): Check prohibited hard regs.
5136 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5138 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5139 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5140 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5142 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5145 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5146 move from floating point to shift amount register.
5147 (emit_move_sequence): Remove secondary reload support for floating
5148 point to shift amount amount register copies.
5149 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5150 amount register copies.
5151 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5152 register, return false if mode isn't a scalar integer mode.
5153 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5155 2011-04-08 Richard Guenther <rguenther@suse.de>
5157 * gimple.c (gimple_call_flags): Remove kludge.
5159 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5161 * sel-sched.c (sel_region_init): Move call to
5162 sel_setup_region_sched_flags after setup_current_loop_nest.
5164 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5166 PR rtl-optimization/48272
5167 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5168 init_insn_reg_pressure_info. Adjust a caller.
5169 * sched-int.h (init_insn_reg_pressure_info): Declare.
5170 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5171 when sched-pressure is enabled.
5173 2011-04-08 Richard Guenther <rguenther@suse.de>
5175 * gimple.c (gimple_set_modified): Do not queue calls to
5176 MODIFIED_NORETURN_CALLS here ...
5177 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5179 2011-04-08 Richard Guenther <rguenther@suse.de>
5182 * toplev.c (lang_dependent_init): Do not open asm_out_file
5183 in WPA mode, nor perform debug machinery initialization.
5184 (finalize): Do not unlink asm_out_file in WPA mode.
5186 2011-04-08 Richard Guenther <rguenther@suse.de>
5188 * gimple.h (gimple_call_fntype): New function.
5189 (gimple_call_return_type): Use it.
5190 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5191 * gimple-low.c (gimple_check_call_args): Likewise.
5192 * gimple.c (gimple_call_flags): Likewise.
5193 (gimple_call_arg_flags): Likewise.
5194 (gimple_call_return_flags): Likewise.
5195 * tree-cfg.c (verify_gimple_call): Likewise.
5196 (do_warn_unused_result): Likewise.
5197 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5198 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5200 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5202 PR rtl-optimization/48235
5203 * sel-sched.c (code_motion_process_successors): Recompute the last
5204 insn in basic block if control flow changed.
5205 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5206 Update condition for ilist_remove.
5208 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5210 PR rtl-optimization/48302
5211 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5212 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5213 it to record added preheader blocks.
5214 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5215 on to sel_add_loop_preheaders.
5216 (sel_region_init): Move call to setup_current_loop_nest after
5219 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5222 * cfgloop.h (loop_has_exit_edges): New helper.
5223 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5225 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5226 that have no exit edges.
5228 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5230 PR rtl-optimization/48442
5231 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5232 all callers. Adjust assert.
5234 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5236 PR tree-optimization/48377
5237 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5238 is_packed to true even for types with smaller TYPE_ALIGN than
5241 2011-04-08 Richard Guenther <rguenther@suse.de>
5244 * doc/tm.texi: Re-generate.
5246 2011-04-08 Wei Guozhi <carrot@google.com>
5249 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5250 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5251 * config/arm/arm.md (*push_multi): Change the length computation to
5254 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5256 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5257 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5258 * doc/tm.texi: Regenerate.
5259 * system.h (ASM_OUTPUT_BSS): Poison.
5260 * varasm.c (asm_output_bss): Remove function.
5261 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5263 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5264 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5265 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5266 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5268 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5270 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5272 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5274 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5276 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5279 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5281 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5282 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5283 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5285 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5286 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5287 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5288 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5289 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5290 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5291 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5292 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5293 options. Don't map other m68k options manually. Don't handle
5294 old-style options as canonical.
5295 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5296 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5298 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5300 * basic-block.h (force_nonfallthru): Move to...
5301 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5302 (force_nonfallthru): ...here.
5303 * cfghooks.c (force_nonfallthru): New function.
5304 * cfgrtl.c (force_nonfallthru): Rename into...
5305 (rtl_force_nonfallthru): ...this.
5306 (commit_one_edge_insertion): Do not set AUX field.
5307 (commit_edge_insertions): Do not discover new basic blocks.
5308 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5309 (cfg_layout_rtl_cfg_hooks): Likewise.
5310 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5311 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5312 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5314 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5316 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5319 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5321 * config/i386/sse.md: Update copyright year.
5322 (avxcvtvecmode): Remove.
5323 (sse_movhlps): Merge with *avx_movhlps.
5324 (sse_movlhps): Merge with *avx_movlhps.
5325 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5326 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5327 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5328 (sse_loadhps): Merge with *avx_loadhps.
5329 (sse_storelps): Merge with *avx_storelps.
5330 (sse_loadlps): Merge with *avx_loadlps.
5331 (sse_movss): Merge with *avx_movss.
5332 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5333 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5334 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5335 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5336 (vec_set<mode>_0): Ditto.
5337 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5338 (sse4_1_insertps): Merge with *avx_insertps.
5339 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5340 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5341 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5342 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5343 (sse2_storehpd): Merge with *avx_storehpd.
5344 (sse2_loadhpd): Merge with *avx_loadhpd.
5345 (sse2_loadlpd): Merge with *avx_loadlpd.
5346 (sse2_movsd): Merge with *avx_movsd.
5347 (*vec_concatv2df): Merge with *vec_concatv2df.
5349 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5352 * combine.c (combine_instructions): Add last_combined_insn,
5353 update it if insn is after it, pass it to all try_combine calls.
5354 (try_combine): Add last_combined_insn parameter, pass it instead of
5355 i3 to propagate_for_debug.
5357 2011-04-07 Nick Clifton <nickc@redhat.com>
5359 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5360 to handle MDR <-> data register transfers.
5361 (movhi_internal): Likewise.
5363 2011-04-07 Alan Modra <amodra@gmail.com>
5365 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5366 previous stack info.
5368 2011-04-07 Tom de Vries <tom@codesourcery.com>
5371 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5372 flow_find_cross_jump. Swap variables to implement backward replacement.
5373 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5375 2011-04-07 Tom de Vries <tom@codesourcery.com>
5378 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5379 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5381 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5382 src1 or src2. Redirect edges to the last basic block. Update
5383 frequency and count on multiple basic blocks in case of fallthru.
5385 2011-04-07 Tom de Vries <tom@codesourcery.com>
5388 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5390 (old_insns_match_p): Change return type. Replace return false/true
5391 with return dir_none/dir_both. Use can_replace_by.
5392 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5393 direction from dir_p. Register replacement direction in dir, last_dir
5394 and afterlast_dir. Handle new return type of old_insns_match_p using
5395 merge_dir. Return replacement direction in dir_p.
5396 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5397 return type of old_insns_match_p.
5398 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5399 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5400 flow_find_cross_jump.
5401 * basic-block.h (enum replace_direction): New type.
5402 (flow_find_cross_jump): Add parameter to declaration.
5404 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5406 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5407 (AVXMODEDCVTPS2DQ): Ditto.
5408 (VEC_FLOAT_MODE): Ditto.
5409 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5410 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5411 (<any_logic:code><mode>3): Use VF mode iterator.
5412 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5413 Use VF mode iterator.
5414 (copysign<mode>3): Use VF mode iterator.
5415 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5416 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5417 (*<any_logic:code><MODEF:mode>3): Merge with
5418 *avx_<any_logic:code><MODEF:mode>3.
5419 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5420 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5421 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5422 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5423 (sse2_cvtdq2ps): Use %v modifier.
5424 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5425 (avx_cvtps2dq<avxmodesuffix>): Remove.
5426 (sse2_cvtps2dq): Use %v modifier.
5427 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5428 (avx_cvttps2dq<avxmodesuffix>): Remove.
5429 (sse2_cvttps2dq): Use %v modifier.
5430 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5431 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5432 (sse2_cvtsd2siq): Fix insn template.
5433 (sse2_cvtsd2siq_2): Ditto.
5434 (sse2_cvttsd2siq): Ditto.
5435 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5436 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5438 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5440 * gcov-io.c: Use GCC Runtime Library Exception.
5442 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5445 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5446 as base_reg whatever register reg has been eliminated to, instead
5447 of hardcoding STACK_POINTER_REGNUM.
5449 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5451 * doc/tm.texi.in: Document C target hooks as separate from general
5453 * doc/tm.texi: Regenerate.
5454 * genhooks.c (struct hook_desc): Add docname field.
5455 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5457 (hook_array): Include c-target.def.
5458 (emit_documentation): Use docname field in output.
5459 (emit_init_macros): Take docname argument. Only emit definitions
5460 for hooks matching docname.
5461 (main): Expect additional arguments in all cases. Pass argument
5462 to emit_init_macros.
5463 * target.def: Move initial macro definitions and comments to
5464 target-hooks-macros.h.
5465 (gcc_targetcm): Move to c-family/c-target.def.
5466 * target.h (targetcm): Move declaration to c-family/c-target.h.
5467 * targhooks.c (default_handle_c_option): Move to
5469 * targhooks.h (default_handle_c_option): Move declaration to
5470 c-family/c-common.h.
5471 * target-hooks-macros.h: New file.
5472 * config.gcc (target_has_targetcm): Define and use to add to
5473 c_target_objs and cxx_target_objs.
5474 * config/default-c.c: New file.
5475 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5476 of target.h and target-def.h.
5477 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5478 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5479 darwin_check_cfstring_format_arg): Make static.
5480 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5481 TARGET_STRING_OBJECT_REF_TYPE_P,
5482 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5483 * config/darwin-protos.h (darwin_objc_construct_string,
5484 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5486 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5487 TARGET_STRING_OBJECT_REF_TYPE_P,
5488 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5489 * config/t-darwin (darwin-c.o): Update dependencies.
5490 * system.h (TARGET_HAS_TARGETCM): Poison.
5491 * Makefile.in (TARGET_H): Update.
5492 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5493 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5494 (default-c.o): New target.
5495 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5496 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5497 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5499 (build/genhooks.o): Update dependencies.
5501 2011-04-06 Richard Guenther <rguenther@suse.de>
5503 * ipa-inline.c (enum inlining_mode): Remove.
5504 (cgraph_flatten): Use some other token.
5505 (cgraph_edge_early_inlinable_p): New function, split out from ...
5506 (cgraph_perform_always_inlining): New function, split out from ...
5507 (cgraph_decide_inlining_incrementally): ... here.
5508 (cgraph_mark_inline_edge): Adjust.
5509 (cgraph_early_inlining): Re-structure.
5510 (pass_early_inline): Require SSA form.
5512 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5513 Julian Brown <julian@codesourcery.com>
5514 Mark Shinwell <shinwell@codesourcery.com>
5516 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5517 LO_REGS only for Thumb-1.
5518 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5519 be used in short instructions when optimising for size on Thumb-2.
5521 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5523 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5524 associated with user returns to be preserved.
5526 2011-04-06 Tristan Gingold <gingold@adacore.com>
5528 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5529 symbol_queue_size, DBXOUT_DECR_NESTING,
5530 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5531 if XCOFF_DEBUGGING_INFO.
5533 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5535 * config/i386/i386.md (attribute isa): New.
5536 (attribute enabled): New.
5537 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5538 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5539 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5540 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5541 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5542 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5543 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5544 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5546 * config/i386/sse.md (VF): New mode iterator.
5550 (SSEMODEF4): Remove.
5551 (attribute sse): Handle V8SF and V4DF modes.
5552 (<absneg:code><mode>2): Use VF mode iterator.
5553 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5555 (<plusminus_insn><mode>3): Use VF mode iterator.
5556 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5557 Use VF mode iterator.
5558 (<sse>_vm<plusminus_insn><mode>3): Merge with
5559 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5560 (mul<mode>3): Use VF mode iterator.
5561 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5562 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5564 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5565 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5566 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5567 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5569 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5570 Use VF1 mode iterator.
5571 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5572 (sqrt<VF2:mode>2): New expander.
5573 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5574 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5575 and sqrtv2df2. Use VF mode iterator.
5576 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5578 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5579 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5580 Use VF1 mode iterator.
5581 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5582 (<smaxmin:code><mode>3): Use VF mode iterator.
5583 (*<smaxmin:code><mode>3_finite): Merge with
5584 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5585 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5586 (<sse>_vm<smaxmin:code><mode>2): Merge with
5587 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5588 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5590 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5592 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5593 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5594 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5595 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5596 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5598 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5599 Use VF_128 mode iterator.
5600 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5602 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5603 VF_128 mode iterator.
5604 (vcond<mode>): Use VF mode iterator.
5605 * config/i386/predicates.md (sse_comparison_operator): Merge with
5606 avx_comparison_float_operator. Do not declare as special_predicate.
5607 * config/i386/i386.c (struct builtin_description): Update for renamed
5609 (ix86_expand_args_builtin): Ditto.
5610 (ix86_expand_sse_compare_mask): Ditto.
5612 2011-04-06 Richard Guenther <rguenther@suse.de>
5614 * tree-inline.c (estimate_num_insns): For calls simply account
5615 for all passed arguments and a used return value.
5617 2011-04-06 Richard Guenther <rguenther@suse.de>
5619 PR tree-optimization/47663
5620 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5621 call_stmt_time fields.
5622 (cgraph_edge_inlinable_p): Declare.
5623 (cgraph_edge_recursive_p): New inline function.
5624 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5625 (cgraph_clone_edge): Copy it.
5626 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5627 Account for call stmt time.
5628 (cgraph_estimate_time_after_inlining): Take edge argument.
5629 (cgraph_estimate_edge_growth): Account call stmt size.
5630 (cgraph_estimate_size_after_inlining): Take edge argument.
5631 (cgraph_mark_inline_edge): Adjust.
5632 (cgraph_check_inline_limits): Likewise.
5633 (cgraph_recursive_inlining_p): Remove.
5634 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5635 (cgraph_decide_recursive_inlining): Take edge argument and
5637 (cgraph_decide_inlining_of_small_functions): Do not avoid
5638 diags for recursive inlining here.
5639 (cgraph_flatten): Adjust.
5640 (cgraph_decide_inlining_incrementally): Likewise.
5641 (estimate_function_body_sizes): Remove call cost handling.
5642 (compute_inline_parameters): Initialize caller edge call costs.
5643 (cgraph_estimate_edge_growth): New function.
5644 (cgraph_estimate_growth): Use it.
5645 (cgraph_edge_badness): Likewise.
5646 (cgraph_check_inline_limits): Take an edge argument.
5647 (cgraph_decide_inlining_of_small_functions): Adjust.
5648 (cgraph_decide_inlining): Likewise.
5649 * tree-inline.c (estimate_num_insns): Only account for call
5650 return value if it is used.
5651 (expand_call_inline): Avoid diagnostics on recursive inline
5653 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5654 (input_edge): Input edge call costs.
5656 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5658 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5660 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5662 * doc/invoke.texi (Spec Files): Fix typo.
5664 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5666 * profile.c (branch_prob): Move declaration of local variable. Remove
5667 obsolete ??? comment. Expand the location explicitly instead of using
5668 the LOCATION_FILE and LOCATION_LINE macros.
5670 2011-04-06 Wei Guozhi <carrot@google.com>
5673 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5674 (arm_cond_branch): Likewise.
5675 (arm_cond_branch_reversed): Likewise.
5676 (arm_jump): Likewise.
5677 (push_multi): Likewise.
5678 * config/arm/constraints.md (Py): New constraint.
5680 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5683 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5685 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5686 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5687 #ifdef DBX_DEBUGGING_INFO.
5689 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5692 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5693 if old and new states differ.
5695 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5697 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5698 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5699 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5700 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5701 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5703 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5704 ColdFire options to -mcpu= options.
5706 2011-04-05 Jeff Law <law@redhat.com>
5708 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5709 check if BB is a successor of LOOP->header and return
5710 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5712 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5714 * cprop.c (struct reg_use): Remove.
5715 (reg_use_table): Make an array of RTX.
5716 (find_used_regs, constprop_register, local_cprop_pass,
5717 bypass_block): Simplify users of reg_use_table.
5718 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5719 on one of the uses found by find_used_regs.
5721 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5724 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5727 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5729 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5731 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5733 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5736 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5738 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5740 * combine.c: Include obstack.h.
5741 (struct insn_link): Define.
5742 (uid_log_links): Adjust type.
5743 (FOR_EACH_LOG_LINK): New macro.
5744 (insn_link_obstack): Declare.
5745 (alloc_insn_link): Define.
5746 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5747 type of link variables.
5748 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5749 (try_combine, record_promoted_values, distribute_notes): Likewise.
5750 (distribute_links): Likewise. Tweak prototype.
5751 (clear_log_links): Delete.
5752 (adjust_for_new_dest): Call alloc_insn_link.
5753 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5755 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5757 * gcse.c (modify_mem_list): Convert to an array of VECs.
5758 (canon_modify_mem_list, compute_transp): Tweak formatting.
5759 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5760 (load_killed_in_block_p): Likewise.
5761 (record_last_mem_set_info): Likewise.
5762 (clear_modify_mem_tables): Likewise.
5764 2011-04-05 Tom de Vries <tom@codesourcery.com>
5767 * function.c (emit_use_return_register_into_block): Only define if
5770 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5772 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5774 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5776 * config/rx/rx-opts.h: New.
5777 * config/rx/rx.c (rx_cpu_type): Remove.
5778 (rx_handle_option): Don't assert that global structures are in
5779 use. Access variables via opts pointer. Defer most handling of
5780 OPT_mint_register_. Use error_at.
5781 (rx_option_override): Handle deferred OPT_mint_register_ here.
5782 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5783 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5784 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5785 (rx_cpu_types): New Enum and EnumValue entries.
5786 (mint-register=): Use Defer and use Var accordingly.
5788 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5790 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5791 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5792 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5794 (debug_free_queue, debug_nesting, symbol_queue_index):
5796 * dbxout.c: ...to here. Make static.
5798 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5800 * gcse.c (modify_pair): Define. Define a VEC of it.
5801 (canon_modify_mem_list): Convert to an array of VECs.
5802 (free_insn_expr_list_list): Delete.
5803 (clear_modify_mem_tables): Call VEC_free instead.
5804 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5805 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5806 (canon_list_insert, compute_transp): Likewise.
5808 2011-04-05 Tom de Vries <tom@codesourcery.com>
5811 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5814 2011-04-05 Tom de Vries <tom@codesourcery.com>
5817 * function.c (emit_use_return_register_into_block): New function.
5818 (thread_prologue_and_epilogue_insns): Use
5819 emit_use_return_register_into_block.
5821 2011-04-05 Tom de Vries <tom@codesourcery.com>
5824 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5827 2011-04-05 Tom de Vries <tom@codesourcery.com>
5829 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5831 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5833 * config/arm/arm.md (define_constants for unspec): Replace with
5835 (define_constants for unspecv): Replace with define_c_enum.
5836 * config/arm/neon.md (define_constants for unspec): Replace with
5839 2011-04-04 Richard Henderson <rth@redhat.com>
5842 * dwarf2out.c (output_line_info): Always emit line info from
5843 at least one section.
5844 (dwarf2out_init): Create text_section_line_info here ...
5845 (set_cur_line_info_table): ... not here.
5847 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5850 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5853 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5855 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5857 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5858 (expr_equiv_p): Remove.
5859 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5860 (hash_scan_set): Update call to insert_set_in_table.
5861 (dump_hash_table): Dump <dest, src> pair.
5862 (lookup_set): Simplify. Lookup <dest, src> pair.
5863 (compute_transp): Remove, fold heavily simplified code into...
5864 (compute_local_properties): ...here. Expect COMP and TRANSP
5866 (find_avail_set): Take set directly from struct expr.
5867 (find_bypass-set): Likewise.
5868 (bypass_block): Likewise.
5869 (cprop_insn): Likewise. Remove redundant INSN_P test.
5871 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5872 checks on form of COND from find_implicit_sets to here.
5873 (find_implicit_sets): Cleanup control flow. Split critical edges
5874 if it exposes implicit sets. Allocate/resize implicit_sets as
5876 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5877 changed something. Run df_analyze after find_implicit_sets if any
5878 edges were split. Do not allocate implicit_sets here.
5880 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5881 (gcse_obstack): Renamed to cprop_obstack.
5882 (GNEW, GNEWVEC, GNEWVAR): Remove.
5884 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5885 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5886 (gcse_alloc): Likewise, and rename to cprop_alloc.
5887 (alloc_gcse_men, free_gcse_mem): Remove.
5888 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5889 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5890 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5892 * cprop.c (oprs_not_set_p): Remove.
5893 (mark_set, mark_clobber): Remove.
5894 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5895 (reg_not_set_p): New function.
5896 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5897 (cprop_insn): Likewise.
5898 (cprop_jump): Use FOR_EACH_EDGE.
5900 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5903 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5904 (rank_for_schedule): Use scheduled_insns vector instead of
5905 last_scheduled_insn.
5906 (ok_for_early_queue_removal): Likewise.
5907 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5909 (choose_ready): Likewise.
5910 (commit_schedule): Use VEC_iterate.
5911 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5912 a dbg_cnt, use it and ensure the first insn is in the ready list.
5913 (haifa_sched_init): Allocate scheduled_insns.
5914 (sched_extend_ready_list): Don't allocate it; reserve space.
5915 (haifa_sched_finish): Free it.
5917 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5919 * optc-gen.awk: Always remove type from Variable entry before
5920 recording in var_seen.
5922 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5924 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5925 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5926 call to tidy_fallthru_edges.
5928 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5930 * doc/options.texi (ToLower): Document.
5931 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5932 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5933 * opts.h (cl_option): Add cl_tolower field.
5934 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5935 arguments with lowercase strings.
5936 * config/rx/rx.opt (mcpu=): Add ToLower.
5937 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5940 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5942 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5944 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5946 * config/vax/vax.c: Include reload.h.
5948 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5950 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5951 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5952 (sparc_preferred_reload_class): New function.
5954 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5957 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5958 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5960 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5962 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5963 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5965 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5967 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5968 (ASM_OUTPUT_ALIGNED_BSS): Define.
5970 2011-04-03 Michael Matz <matz@suse.de>
5972 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5973 and next_slot members.
5974 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5975 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5976 (lto_streamer_cache_append): Declare.
5977 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5978 unsigned index, remove offset parameter, ensure that we append
5979 or update existing entries.
5980 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5981 parameter, update next_slot for append.
5982 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5984 (lto_streamer_cache_insert_at): Likewise.
5985 (lto_streamer_cache_append): New function.
5986 (lto_streamer_cache_lookup): Use unsigned index.
5987 (lto_streamer_cache_get): Likewise.
5988 (lto_record_common_node): Don't test tree_node_can_be_shared.
5989 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5990 (lto_streamer_cache_delete): Don't free offsets member.
5991 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5992 (lto_output_string_with_length): Use lto_output_data_stream.
5993 (lto_output_tree_header): Remove ix parameter, don't write it.
5994 (lto_output_builtin_tree): Likewise.
5995 (lto_write_tree): Adjust callers to above, don't track and write
5996 offset, write unsigned index.
5997 (output_unreferenced_globals): Don't emit all global vars.
5998 (write_global_references): Use unsigned indices.
5999 (lto_output_decl_state_refs): Likewise.
6000 (write_symbol): Likewise.
6001 * lto-streamer-in.c (lto_input_chain): Move earlier.
6002 (input_function): Use unsigned index.
6003 (input_alias_pairs): Don't read and then ignore all global vars.
6004 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6005 don't pass it back, use lto_streamer_cache_append.
6006 (lto_register_var_decl_in_symtab): Use unsigned index.
6007 (lto_register_function_decl_in_symtab): Likewise.
6008 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6010 (lto_get_builtin_tree): Don't read index, use
6011 lto_streamer_cache_append.
6012 (lto_read_tree): Adjust call to lto_materialize_tree.
6014 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6015 don't use function calls in arguments to MIN.
6017 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6020 * gimple.c (gimple_type_leader_entry): Mark deletable.
6022 2011-04-03 Alan Modra <amodra@gmail.com>
6024 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6026 2011-04-03 Michael Matz <matz@suse.de>
6028 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6030 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6032 2011-04-03 Michael Matz <matz@suse.de>
6034 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6035 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6036 without function context.
6037 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6038 current_function_decl and cfun.
6040 2011-04-03 Michael Matz <matz@suse.de>
6042 * tree.c (decl_init_priority_insert): Don't create entry for
6044 (decl_fini_priority_insert): Ditto.
6045 (fields_compatible_p, find_compatible_field): Remove.
6046 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6047 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6049 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6051 * combine.c (try_combine): Remove useless local variable.
6053 2011-04-03 Richard Guenther <rguenther@suse.de>
6054 Ira Rosen <ira.rosen@linaro.org>
6056 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6057 non-variable offsets and compare the remaining bases of the two
6058 accesses instead of looking for exact same data-ref.
6060 2011-04-02 Kai Tietz <ktietz@redhat.com>
6063 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6065 * i386.c (ix86_is_msabi_thiscall): New helper function.
6066 (ix86_is_type_thiscall): New helper function.
6067 (ix86_comp_type_attributes): Handle thiscall for method-functions
6069 (init_cumulative_args): Likewise.
6070 (find_drap_reg): Likewise.
6071 (ix86_static_chain): Likewise.
6072 (x86_this_parameter): Likewise.
6073 (x86_output_mi_thunk): Likewise.
6075 2011-04-01 Olivier Hainque <hainque@adacore.com>
6076 Nicolas Setton <setton@adacore.com>
6077 Eric Botcazou <ebotcazou@adacore.com>
6079 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6080 (add_gnat_descriptive_type_attribute): New function.
6081 (gen_array_type_die): Call it.
6082 (gen_enumeration_type_die): Likewise.
6083 (gen_struct_or_union_type_die): Likewise.
6084 (modified_type_die): Likewise.
6085 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6086 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6087 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6089 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6092 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6093 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6096 2011-03-17 Richard Guenther <rguenther@suse.de>
6099 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6100 origin for decls in other ltrans units.
6101 (input_varpool_node): Likewise.
6103 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6106 * expr.c (expand_assignment): Handle all possibilities
6107 if TO_RTX is CONCAT.
6108 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6109 (store_split_bit_field): If SUBREG_REG (op0) or
6110 op0 itself has smaller mode than word, return it
6111 for offset 0 and const0_rtx for out-of-bounds stores.
6112 If word is const0_rtx, skip it.
6114 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6116 * config/h8300/h8300.c (print_operand_address): Rename to...
6117 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6118 Call h8300_print_operand and h8300_print_operand_address instead of
6119 print_operand and print_operand_address. Declare.
6120 (print_operand): Renake to...
6121 (h8300_print_operand): ...this. Make static. Adjust comments.
6122 Call h8300_print_operand instead of print_operand. Declare.
6123 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6124 (h8300_register_move_cost): Likewise.
6125 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6126 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6127 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6128 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6129 * config/h8300/h8300-protos.h (print_operand): Delete.
6130 (print_operand_address): Delete.
6132 2011-04-01 Richard Henderson <rth@redhat.com>
6135 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6136 in strict mode before dwarf4. Re-order tests to early out
6137 before switching sections.
6139 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6141 * config/h8300/constraints.md: New file.
6142 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6143 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6144 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6145 * config/h8300/predicates.md (bit_operand): Likewise.
6146 (incdec_operand): Use satisfies_constraint_M and
6147 satisfies_constraint_O. Don't use C code block.
6148 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6149 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6150 (compute_mov_length): Use satisfies_constraint_G.
6151 (fix_bit_operand): Use satisfies_constraint_U.
6152 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6153 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6154 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6155 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6156 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6157 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6158 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6159 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6160 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6161 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6162 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6163 (EXTRA_MEMORY_CONSTRAINT): Delete.
6165 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6166 Michael Meissner <meissner@linux.vnet.ibm.com>
6169 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6170 operands, as per the specifications.
6172 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6173 (vec_extract_evenv4sf): Ditto.
6174 (vec_extract_evenv8hi): Ditto.
6175 (vec_extract_evenv16qi): Ditto.
6176 (vec_extract_oddv4si): Ditto.
6178 2011-03-31 Mark Wielaard <mjw@redhat.com>
6180 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6181 high_pc attribute if the CU has no associated code. Only output
6182 DW_AT_entry_pc for CU if not generating strict dwarf and
6185 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6187 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6188 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6190 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6191 * final.c (final_start_function): Call the new function rather
6192 than using a NULL argument for dwarf2out_frame_debug.
6194 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6195 that contains the prologue.
6197 * haifa-sched.c (queue_insn): New arg REASON. All callers
6198 changed. Print it in debugging output.
6200 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6202 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6203 Split most of the code into...
6204 (begin_move_insn): ... here. New function.
6205 (ebb_sched_info): Add a pointer to it.
6206 * haifa-sched.c (scheduled_insns): New static variable.
6207 (sched_extend_ready_list): Allocate it.
6208 (schedule_block): Use it to record the order of scheduled insns.
6209 Perform RTL changes to move insns only after all scheduling
6210 decisions have been made.
6211 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6212 begin_move_insn field.
6213 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6214 * sched-int.h (struct haifa_sched_info): Remove second argument
6215 from begin_schedule_ready hook. Add new member begin_move_insn.
6216 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6217 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6219 * haifa-sched.c (prune_ready_list): New function, broken out of
6221 (schedule_block): Use it.
6223 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6225 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6227 2011-04-01 Kai Tietz <ktietz@redhat.com>
6229 * config.gcc (*-*-mingw*): Allow as option the
6230 posix threading model.
6231 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6232 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6234 (CPP_SPEC): Add pthread/no-pthread handling.
6235 (LIB_SPEC): Likewise.
6236 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6237 (LIB_SPEC): Likewise.
6238 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6239 flag to pass -pthread option for shared libgcc build.
6240 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6241 for shared libgcc build.
6242 * config/i386/t-mingw-pthread: New file.
6243 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6244 New define to enable use of library pthread by default.
6245 * config/i386/mingw.opt (pthread): New driver option.
6246 (no-pthread): New driver option.
6247 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6248 * config/i386/mingw-w64.opt: Likewise.
6250 2011-04-01 Gary Funck <gary@intrepid.com>
6252 * c-decl.c (grokdeclarator): Fix formatting.
6254 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6256 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6257 instead of n_operands.
6258 (set_storage_via_setmem): Likewise.
6259 * optabs.c (maybe_gen_insn): Likewise.
6260 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6261 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6262 (mips_expand_builtin_direct): Likewise.
6263 * config/spu/spu.c (expand_builtin_args): Likewise.
6265 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6267 * recog.h (insn_data_d): Add n_generator_args.
6268 * genoutput.c (data): Likewise.
6269 (output_insn_data): Print it.
6270 (max_opno, num_dups): Delete.
6271 (scan_operands): Just fill in "d->operand[...]".
6272 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6274 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6276 * gensupport.h (pattern_stats): New structure.
6277 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6278 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6279 (max_operand_1, max_operand_vec): Delete.
6280 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6282 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6284 * emit-rtl.c (emit_pattern_after_setloc): New function.
6285 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6286 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6287 (emit_pattern_after): New function.
6288 (emit_insn_after, emit_jump_insn_after): Call it.
6289 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6290 (emit_pattern_before_setloc): New function.
6291 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6292 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6294 (emit_pattern_before): New function.
6295 (emit_insn_before, emit_jump_insn_before): Call it.
6296 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6298 2011-03-31 Richard Henderson <rth@redhat.com>
6300 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6301 (dw_separate_line_info_entry): Remove.
6302 (enum dw_line_info_opcode): New.
6303 (dw_line_info_entry): Use it.
6304 (dw_line_info_table, dw_line_info_table_p): New.
6305 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6306 (line_info_table, line_info_label_num): Remove.
6307 (line_info_table_in_use): Remove.
6308 (separate_line_info_table): Remove.
6309 (separate_line_info_table_allocated): Remove.
6310 (separate_line_info_table_in_use): Remove.
6311 (LINE_INFO_TABLE_INCREMENT): Remove.
6312 (line_info_label_num): New.
6313 (cur_line_info_table): New.
6314 (text_section_line_info, cold_text_section_line_info): New.
6315 (separate_line_info): New.
6316 (SEPARATE_LINE_CODE_LABEL): Remove.
6317 (print_dwarf_line_table): Remove.
6318 (debug_dwarf): Don't dump it.
6319 (output_one_line_info_table): New.
6320 (output_line_info): Use it.
6321 (new_line_info_table): New.
6322 (set_cur_line_info_table): New.
6323 (dwarf2out_switch_text_section): Use it.
6324 (dwarf2out_begin_function): Likewise.
6325 (push_dw_line_info_entry): New.
6326 (dwarf2out_source_line): Rewrite for new line info tables.
6327 (dwarf2out_init): Remove dead initailizations.
6329 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6331 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6333 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6334 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6335 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6336 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6337 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6338 * opt-functions.awk (flag_init, switch_bit_fields): New.
6339 (switch_flags): Don't handle flags moved to bit-fields. Don't
6340 generate CL_MISSING_OK or CL_SAVE.
6341 * optc-gen.awk: Update to generate bit-field output as well as
6343 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6344 bit-field instead of CL_REJECT_DRIVER flag.
6345 * opts-common.c (generate_canonical_option,
6346 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6347 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6348 instead of CL_REJECT_NEGATIVE flag.
6349 * toplev.c (print_switch_values): Use cl_report bit-field instead
6352 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6354 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6355 a zero minimum index only if it is redundant.
6357 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6359 PR rtl-optimization/48381
6360 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6361 instead of ira_class_hard_reg_index for calculating conflicting
6364 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6366 * cprop.c: Clean up hash table building.
6367 (reg_avail_info): Remove.
6368 (oprs_available_p): Remove.
6369 (record_last_reg_set_info): Remove.
6370 (record_last_set_info): Remove.
6371 (reg_available_p): New function.
6372 (gcse_constant_p): Do not treat unfolded conditions as constants.
6373 (make_set_regs_unavailable): New function.
6374 (hash_scan_set): Simplify with new reg_available_p.
6375 (compute_hash_table_work): Traverse insns stream only once.
6376 Do not compute reg_avail_info. Traverse insns in reverse order.
6377 Record implicit sets after recording explicit sets from the block.
6379 2011-03-31 Michael Matz <matz@suse.de>
6381 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6383 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6385 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6386 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6387 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6388 (h8300_mode_dependent_address_p): New function.
6389 (h8300_get_index): Make static.
6391 2011-03-31 Jeff Law <law@redhat.com>
6393 * reload1.c (elimination_effects): Fix typo in recent change.
6395 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6396 typo potentially leading to null pointer dereference.
6398 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6399 (setup_save_areas): Corresponding changes to avoid useless
6402 * jump.c (reversed_comparison_code_parts): Avoid successive return
6403 statements when REVERSE_CONDITION is defined.
6405 * expr.c (expand_assignment): Avoid useless assignments.
6406 (expand_expr_real_1): Likewise.
6407 (expand_expr_real_2): Avoid useless statements.
6409 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6411 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6413 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6416 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6418 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6421 * doc/tm.texi.in (TARGET_VERSION): Remove.
6422 * doc/tm.texi: Regenerate.
6423 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6424 * collect2.c (main): Don't use TARGET_VERSION.
6425 * mips-tdump.c (main): Don't use TARGET_VERSION.
6426 * mips-tfile.c (main): Don't use TARGET_VERSION.
6427 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6428 * config/rs6000/vxworksae.h: Remove.
6429 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6430 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6431 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6432 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6433 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6434 * config/arm/arm.h (TARGET_VERSION): Remove.
6435 * config/arm/coff.h (TARGET_VERSION): Remove.
6436 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6437 * config/arm/elf.h (TARGET_VERSION): Remove.
6438 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6439 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6440 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6441 * config/arm/pe.h (TARGET_VERSION): Remove.
6442 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6443 * config/arm/semi.h (TARGET_VERSION): Remove.
6444 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6445 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6446 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6447 * config/avr/avr.h (TARGET_VERSION): Remove.
6448 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6449 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6450 * config/frv/frv.h (TARGET_VERSION): Remove.
6451 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6452 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6453 * config/i386/darwin.h (TARGET_VERSION): Remove.
6454 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6455 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6456 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6457 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6458 * config/i386/gnu.h (TARGET_VERSION): Remove.
6459 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6460 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6461 * config/i386/linux.h (TARGET_VERSION): Remove.
6462 * config/i386/linux64.h (TARGET_VERSION): Remove.
6463 * config/i386/lynx.h (TARGET_VERSION): Remove.
6464 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6465 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6466 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6467 * config/i386/netware.h (TARGET_VERSION): Remove.
6468 * config/i386/nto.h (TARGET_VERSION): Remove.
6469 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6470 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6471 * config/ia64/elf.h (TARGET_VERSION): Remove.
6472 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6473 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6474 * config/ia64/linux.h (TARGET_VERSION): Remove.
6475 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6476 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6477 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6478 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6479 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6480 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6481 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6482 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6483 * config/m68k/linux.h (TARGET_VERSION): Remove.
6484 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6485 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6486 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6487 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6488 * config/mep/mep.h (TARGET_VERSION): Remove.
6489 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6490 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6491 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6492 * config/mips/linux.h (TARGET_VERSION): Remove.
6493 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6494 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6495 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6496 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6497 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6498 * config/pa/pa.h (TARGET_VERSION): Remove.
6499 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6500 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6501 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6502 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6503 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6504 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6505 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6506 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6507 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6508 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6509 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6510 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6511 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6512 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6513 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6514 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6515 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6516 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6517 * config/s390/linux.h (TARGET_VERSION): Remove.
6518 * config/s390/s390.h (TARGET_VERSION): Remove.
6519 * config/s390/tpf.h (TARGET_VERSION): Remove.
6520 * config/score/score.h (TARGET_VERSION): Remove.
6521 * config/sh/linux.h (TARGET_VERSION): Remove.
6522 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6523 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6524 * config/sh/sh.h (TARGET_VERSION): Remove.
6525 * config/sh/sh64.h (TARGET_VERSION): Remove.
6526 * config/sh/superh.h (TARGET_VERSION): Remove.
6527 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6528 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6529 * config/sparc/linux.h (TARGET_VERSION): Remove.
6530 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6531 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6532 TARGET_NAME32, TARGET_NAME): Remove.
6533 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6534 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6535 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6536 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6537 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6538 * config/spu/spu.h (TARGET_VERSION): Remove.
6539 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6540 * config/v850/v850.h (TARGET_VERSION): Remove.
6541 * config/vax/linux.h (TARGET_VERSION): Remove.
6542 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6543 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6544 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6546 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6549 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6550 frame-related from frame-unrelated adjustments to the stack pointer.
6552 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6554 * common.opt (fdebug-types-section): Move earlier.
6555 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6557 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6559 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6562 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6564 * tree.h (CASE_CHAIN): Define.
6565 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6566 (gimple_redirect_edge_and_branch): Likewise.
6568 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6571 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6574 2011-03-30 Jeff Law <law@redhat.com>
6576 * PR bootstrap/48371
6577 * reload1.c (reload): Fix botch in last change.
6579 * reload.h (struct reload): Fix typo introduced in last change.
6581 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6583 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6584 Undocumented. Remove help text.
6585 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6588 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6590 * doc/options.texi (NegativeAlias): Document.
6591 (Alias): Mention NegativeAlias.
6592 * opt-functions.awk: Handle NegativeAlias.
6593 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6594 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6595 * opts.h (CL_NEGATIVE_ALIAS): Define.
6596 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6597 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6599 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6601 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6602 mno-spe and mno-isel instead of mspe=no and -misel=no.
6604 2011-03-29 Mark Wielaard <mjw@redhat.com>
6606 * common.opt (fdebug-types-section): New flag.
6607 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6608 * dwarf2out.c (use_debug_types): New define.
6609 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6610 (print_die): Guard output of type unit signatures using
6612 (build_abbrev_table): Replace assert of dwarf_version >= 4
6613 with assert on use_debug_types.
6614 (size_of_die): Likewise.
6615 (unmark_dies): Likewise.
6616 (value_format): Decide AT_ref_external form on use_debug_types.
6617 (output_die): Replace dwarf_version version check guard with
6618 use_debug_types where appropriate.
6619 (modified_type_die): Likewise.
6620 (gen_reference_type_die): Likewise.
6621 (dwarf2out_start_source_file): Likewise.
6622 (dwarf2out_end_source_file): Likewise.
6623 (prune_unused_types_walk_attribs): Likewise.
6624 (dwarf2out_finish): Likewise.
6626 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6628 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6630 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6632 PR rtl-optimization/48332
6633 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6634 mode of input operand N and modeN to its actual mode.
6636 2011-03-30 Jeff Law <law@redhat.com>
6638 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6639 define accessor macro.
6640 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6641 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6642 (reg_equiv_init): Likewise.
6643 (reg_equivs_size): New variable.
6644 (reg_equiv_init_size): Remove.
6645 (allocate_initial_values): Move prototype to here from....
6646 * integrate.h (allocate_initial_values): Remove prototype.
6647 * integrate.c: Include reload.h.
6648 (allocate_initial_values): Corresponding changes.
6649 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6650 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6651 (update_equiv_regs): Corresponding changes.
6652 (ira): Corresponding changes.
6653 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6654 (push_secondary_reload): Corresponding changes.
6655 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6656 (make_memloc, find_reloads_address): Corresponding changes.
6657 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6658 (find_reloads_address_1): Corresponding changes.
6659 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6660 (refers_to_regno_for_reload_p): Corresponding changes.
6661 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6662 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6663 * reload1.c: Include ggc.h.
6664 (grow_reg_equivs): New function.
6665 (replace_pseudos_in, reload): Corresponding changes.
6666 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6667 (eliminate_regs_1, elimination_effects): Corresponding changes.
6668 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6669 (delete_output_reload): Likewise.
6670 * caller-save.c (mark_referenced_regs): Corresponding changes.
6671 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6672 * frv/predicates.md (frv_load_operand): Corresponding changes.
6673 * microblaze/microblaze.c (double_memory_operand): Corresponding
6675 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6676 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6677 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6678 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6679 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6681 * pa/pa.c (emit_move_sequence): Corresponding changes.
6682 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6684 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6687 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6688 structure modes. Don't check neon_vector_mem_operand for
6689 vector or structure modes.
6691 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6692 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6695 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6696 operand 1 and reshuffle the operands to match.
6697 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6699 2011-03-30 Christian Schüler <cschueler@gmx.de>
6702 * config/c.opt (F): Added 'Driver' to -F option.
6705 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6707 * config/darwin.opt: Added '-arch' option.
6709 2011-03-30 Nick Clifton <nickc@redhat.com>
6711 * config/rx/rx.md: Add peepholes and patterns to combine
6712 extending loads and simple arithmetic instructions.
6713 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6714 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6715 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6716 modes to use pre-decrement and post-increment addressing.
6717 (rx_is_restricted_memory_address): Add range checking of REG+INT
6719 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6720 (rx_memory_move_cost): Adjust cost of stores.
6721 (rx_adjust_insn_length): New function.
6723 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6726 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6727 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6728 matching arg00/arg01 types.
6730 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6732 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6733 last_location to UNKNOWN_LOCATION.
6735 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6738 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6741 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6742 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6745 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6747 (sparc_cpu): Likewise.
6748 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6751 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6755 PR rtl-optimization/48345
6756 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6757 hard regs for given mode from profitable regs when doing secondary
6760 2011-03-29 Jeff Law <law@redhat.com>
6763 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6764 do_not_duplicate field.
6765 (lookup_redirection_data): Corresponding changes.
6766 (create_duplicates): Always create a template block.
6767 (redirect_edges): Remove code which reused the original block
6768 when it was going to become unreachable code.
6769 (thread_block): Don't set do_not_duplicate field.
6771 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6773 * lto-opts.c (register_user_option_p, lto_register_user_option):
6774 Make type argument unsigned.
6775 * lto-streamer.h (lto_register_user_option): Make type argument
6777 * opth-gen.awk: Make CL_* macros unsigned.
6778 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6779 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6780 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6781 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6782 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6783 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6784 (find_opt): Make lang_mask argument unsigned.
6786 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6788 PR rtl-optimization/48331
6789 PR rtl-optimization/48334
6790 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6791 for any used algorithm.
6793 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6795 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6798 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6800 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6801 (alpha_option_override): Don't set alpha_sr_alias_set.
6802 (emit_frame_store_1): Use gen_frame_mem rather than calling
6804 (alpha_expand_epilogue): Ditto.
6806 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6808 PR tree-optimization/48290
6809 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6810 vectorization, check that relevant phis in the basic block after
6811 the inner loop are really inner loop's exit phis.
6813 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6816 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6817 (cached_dw_loc_list_def): New structure.
6818 (cached_dw_loc_list): New typedef.
6819 (cached_dw_loc_list_table): New variable.
6820 (cached_dw_loc_list_table_hash): New function.
6821 (cached_dw_loc_list_table_eq): Likewise.
6822 (add_location_or_const_value_attribute): Take a bool cache_p.
6823 Cache the list when the parameter is true.
6824 (gen_formal_parameter_die): Update caller.
6825 (gen_variable_die): Likewise.
6826 (dwarf2out_finish): Likewise.
6827 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6828 while generating debug info for the decl.
6829 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6830 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6831 (resolve_addr): Cache the result of resolving a chain of
6834 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6836 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6837 conflict object hard regset nodes have intersecting hard reg sets.
6839 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6840 after regstat_init_n_sets_and_refs.
6842 * ira.c: Add more comments at the top.
6843 (setup_stack_reg_pressure_class, setup_pressure_classes):
6844 Add comments how we compute the register pressure classes.
6845 (setup_allocno_and_important_classes): Add more comments.
6846 (setup_class_translate_array, reorder_important_classes)
6847 (setup_reg_class_relations): Add comments.
6849 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6852 * ira-color.c: Add 2011 to the Copyright line.
6853 (assign_hard_reg): Add more comments.
6854 (improve_allocation): Ditto.
6856 * ira-costs.c: Add 2011 to the Copyright line.
6857 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6859 (setup_regno_cost_classes_by_mode): Ditto.
6861 Initial patches from ira-improv branch:
6863 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6865 * ira-build.c (ira_create_object): Remove initialization of
6866 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6867 (ira_create_allocno): Remove initialization of
6868 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6869 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6870 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6871 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6872 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6873 Initialize ALLOCNO_ADD_DATA.
6874 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6875 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6877 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6878 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6880 * ira.c (ira_reallocate): Remove.
6881 (setup_pressure_classes): Call
6882 ira_init_register_move_cost_if_necessary. Use
6883 ira_register_move_cost instead of ira_get_register_move_cost.
6884 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6885 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6887 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6888 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6889 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6890 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6891 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6892 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6894 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6895 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6896 (struct allocno_color_data): New.
6897 (allocno_color_data_t): New typedef.
6898 (allocno_color_data): New definition.
6899 (ALLOCNO_COLOR_DATA): New macro.
6900 (struct object_color_data): New.
6901 (object_color_data_t): New typedef.
6902 (object_color_data): New definition.
6903 (OBJECT_COLOR_DATA): New macro.
6904 (update_copy_costs, calculate_allocno_spill_cost): Call
6905 ira_init_register_move_cost_if_necessary. Use
6906 ira_register_move_cost instead of ira_get_register_move_cost.
6907 (move_spill_restore, update_curr_costs): Ditto.
6908 (allocno_spill_priority): Make it inline.
6909 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6910 (struct coalesce_data, coalesce_data_t): New.
6911 (allocno_coalesce_data): New definition.
6912 (ALLOCNO_COALESCE_DATA): New macro.
6913 (merge_allocnos, coalesced_allocno_conflict_p): Use
6914 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6915 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6916 (coalesce_allocnos): Ditto.
6917 (setup_coalesced_allocno_costs_and_nums): Ditto.
6918 (collect_spilled_coalesced_allocnos): Ditto.
6919 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6920 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6921 (coalesce_spill_slots): Ditto.
6922 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6923 free allocno_coalesce_data.
6925 * ira-conflicts.c: Fix formatting.
6926 (process_regs_for_copy): Call
6927 ira_init_register_move_cost_if_necessary. Use
6928 ira_register_move_cost instead of ira_get_register_move_cost.
6929 (build_object_conflicts): Optimize.
6931 * ira-costs.c (record_reg_classes): Optimize. Call
6932 ira_init_register_move_cost_if_necessary. Use
6933 ira_register_move_cost, ira_may_move_in_cost, and
6934 ira_may_move_out_cost instead of ira_get_register_move_cost and
6935 ira_get_may_move_cost.
6936 (record_address_regs): Ditto.
6937 (scan_one_insn): Optimize.
6938 (find_costs_and_classes): Optimize.
6939 (process_bb_node_for_hard_reg_moves): Call
6940 ira_init_register_move_cost_if_necessary. Use
6941 ira_register_move_cost instead of ira_get_register_move_cost.
6943 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6944 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6945 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6946 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6948 (ira_initiate_emit_data, ira_finish_emit_data)
6949 (create_new_allocno): New functions.
6950 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6951 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6952 Use ira_register_move_cost instead of ira_get_register_move_cost.
6954 * ira-int.h: Fix some comments.
6955 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6956 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6957 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6958 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6960 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6961 bitfield after mode. Make hard_regno a short int. Make
6962 hard_regno short. Remove first_coalesced_allocno and
6963 next_coalesced_allocno. Move mem_optimized_dest_p,
6964 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6965 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6966 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6967 temp, colorable_p. Add new member add_data.
6968 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6969 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6970 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6971 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6972 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6973 (ALLOCNO_ADD_DATA): New macro.
6974 (ira_emit_data_t): New typedef.
6975 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6976 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6977 from struct ira_allocno.
6978 (ALLOCNO_EMIT_DATA): New macro.
6979 (ira_allocno_emit_data, allocno_emit_reg): New.
6980 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6981 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6982 (OBJECT_ADD_DATA): New macro.
6983 (ira_reallocate): Remove.
6984 (ira_initiate_emit_data, ira_finish_emit_data): New.
6985 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6986 (ira_init_register_move_cost_if_necessary): New.
6987 (ira_object_conflict_iter_next): Merge into
6988 ira_object_conflict_iter_cond.
6989 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6991 * ira-live.c (process_single_reg_class_operands): Call
6992 ira_init_register_move_cost_if_necessary. Use
6993 ira_register_move_cost instead of ira_get_register_move_cost.
6995 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6997 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6999 * ira-costs.c: Fix formatting.
7000 (cost_classes, cost_classes_num): Remove.
7001 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7002 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7003 (cost_classes_del, cost_classes_htab): New.
7004 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7005 (initiate_regno_cost_classes, setup_cost_classes): New.
7006 (setup_regno_cost_classes_by_aclass): New.
7007 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7008 (record_reg_classes): Use regno_cost_classes instead of
7009 cost_classes. Move checking opposite operand up.
7010 (record_address_regs): Use regno_cost_classes
7011 instead of cost_classes.
7012 (scan_one_insn): Ditto. Use always general register.
7013 (print_allocno_costs): Use regno_cost_classes instead of
7015 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7016 (find_costs_and_classes): Set up cost classes for each registers.
7017 Use also their mode for this. Use regno_cost_classes instead of
7019 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7021 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7022 (ira_costs, ira_set_pseudo_classes): Call
7023 initiate_regno_cost_classes and finish_regno_cost_classes.
7025 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7027 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7029 * target.def (ira_cover_classes): Remove.
7031 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7033 * doc/tm.texi.in: Ditto.
7035 * ira-conflicts.c: Remove mentioning cover classes from the file.
7036 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7037 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7039 * targhooks.c (default_ira_cover_classes): Remove.
7041 * targhooks.h (default_ira_cover_classes): Ditto.
7043 * haifa-sched.c: Remove mentioning cover classes from the file.
7044 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7045 ira_pressure_classes and ira_pressure_classes_num instead of
7046 ira_reg_class_cover_size and ira_reg_class_cover. Use
7047 sched_regno_pressure_class instead of sched_regno_cover_class.
7048 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7049 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7051 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7052 classes from the file.
7053 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7054 (struct object_hard_regs, struct object_hard_regs_node): New.
7055 (struct ira_object): New members profitable_hard_regs,
7056 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7057 (struct ira_allocno): Rename cover_class to aclass. Rename
7058 cover_class_cost and updated_cover_class_cost to class_cost and
7059 updated_class_cost. Remove splay_removed_p and
7060 left_conflict_size. Add new members colorable_p.
7061 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7062 (ALLOCNO_COLORABLE_P): New macro.
7063 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7064 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7065 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7066 (OBJECT_...): Rename parameter C to O.
7067 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7068 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7069 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7070 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7071 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7072 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7073 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7074 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7075 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7076 x_ira_reg_class_subunion.
7077 (ira_max_memory_move_cost, ira_max_register_move_cost)
7078 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7079 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7080 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7081 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7082 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7083 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7084 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7085 (ira_tune_allocno_costs_and_cover_classes): Rename to
7086 ira_tune_allocno_costs.
7087 (ira_debug_hard_regs_forest): New.
7088 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7089 (ira_object_conflict_iter_next): Fix comments.
7090 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7091 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7092 cover_class to aclass.
7093 (ira_allocate_and_accumulate_costs): Ditto.
7094 (ira_allocate_and_set_or_copy_costs): Ditto.
7096 * opts.c (decode_options): Remove ira_cover_class check.
7098 * ira-color.c: Remove mentioning cover classes from the file. Use
7099 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7100 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7101 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7102 (splay-tree.h): Remove include.
7103 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7104 before copy_freq_compare_func.
7105 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7106 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7108 (hard_regs_roots, hard_regs_node_vec): Ditto.
7109 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7110 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7111 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7112 (create_new_object_hard_regs_node): Ditto.
7113 (add_new_object_hard_regs_node_to_forest): Ditto.
7114 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7115 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7117 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7118 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7119 (remove_unused_object_hard_regs_nodes): Ditto.
7120 (enumerate_object_hard_regs_nodes): Ditto.
7121 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7122 (object_hard_regs_subnode_t): Ditto.
7123 (struct object_hard_regs_subnode): Ditto.
7124 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7125 (setup_object_hard_regs_subnode_index): Ditto.
7126 (get_object_hard_regs_subnodes_num): Ditto.
7127 (form_object_hard_regs_nodes_forest): Ditto.
7128 (finish_object_hard_regs_nodes_tree): Ditto.
7129 (finish_object_hard_regs_nodes_forest): Ditto.
7130 (allocnos_have_intersected_live_ranges_p): Rename to
7131 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7132 (pseudos_have_intersected_live_ranges_p): Rename to
7133 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7134 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7135 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7136 (update_copy_costs): Remove assert. Skip cost update if the hard
7137 reg does not belong the class.
7138 (assign_hard_reg): Process only profitable hard regs.
7139 (uncolorable_allocnos_num): Make it scalar.
7140 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7141 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7142 and ira_reg_class_max_nregs.
7143 (bucket_allocno_compare_func): Check frequency first.
7144 (sort_bucket): Add compare function as a parameter.
7145 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7146 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7147 (push_allocno_to_stack): Rewrite for checking new allocno
7149 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7150 (push_only_colorable): Pass new parameter to sort_bucket.
7151 (push_allocno_to_spill): Remove.
7152 (allocno_spill_priority_compare): Make it inline and rewrite.
7153 (splay_tree_allocate, splay_tree_free): Remove.
7154 (allocno_spill_sort_compare): New function.
7155 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7156 build and use splay tree. Choose first allocno in uncolorable
7157 allocno bucket to spill. Remove setting spill cost.
7158 (all_conflicting_hard_regs): Remove.
7159 (setup_allocno_available_regs_num): Check only profitable hard
7160 regs. Print info about hard regs nodes.
7161 (setup_allocno_left_conflicts_size): Remove.
7162 (put_allocno_into_bucket): Don't call
7163 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7164 (improve_allocation): New.
7165 (color_allocnos): Call setup_profitable_hard_regs,
7166 form_object_hard_regs_nodes_forest, improve_allocation,
7167 finish_object_hard_regs_nodes_forest. Setup spill cost.
7168 (print_loop_title): Use pressure classes.
7169 (color_allocnso): Ditto.
7170 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7171 and allocnos_for_spilling.
7172 (ira_sort_regnos_for_alter_reg): Don't setup members
7173 {first,next}_coalesced_allocno.
7174 (color): Remove allocating and freeing removed_splay_allocno_vec.
7175 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7176 prohibited_class_mode_regs.
7178 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7180 (update_allocno_pressure_excess_length): Use pressure classes.
7181 (inc_register_pressure, dec_register_pressure): Check for pressure
7183 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7184 pressure class. Use ira_reg_class_nregs instead of
7185 ira_reg_class_max_nregs.
7186 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7187 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7188 (single_reg_class): Use ira_reg_class_nregs instead of
7189 ira_reg_class_max_nregs.
7190 (process_bb_node_lives): Use pressure classes.
7192 * ira-emit.c: Remove mentioning cover classes from the file. Use
7193 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7194 (change_loop): Use pressure classes.
7195 (modify_move_list): Call ira_set_allocno_class instead of
7196 ira_set_allocno_cover_class.
7198 * ira-build.c: Remove mentioning cover classes from the file. Use
7199 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7200 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7201 ALLOCNO_UPDATED_CLASS_COST instead of
7202 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7203 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7204 (ira_create_allocno): Remove initialization of
7205 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7206 ALLOCNO_COLORABLE_P.
7207 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7208 Update conflict regs for the objects.
7209 (create_cap_allocno): Remove assert. Don't propagate
7210 ALLOCNO_AVAILABLE_REGS_NUM.
7211 (ira_free_allocno_costs): New function.
7212 (finish_allocno): Change a part of code into call of
7213 ira_free_allocno_costs.
7214 (low_pressure_loop_node_p): Use pressure classes.
7215 (object_range_compare_func): Don't compare classes.
7216 (setup_min_max_conflict_allocno_ids): Ditto.
7218 * loop-invariant.c: Remove mentioning cover classes from the file.
7219 Use ira_pressure_classes and ira_pressure_classes_num instead of
7220 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7221 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7222 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7223 Use reg_allocno_class instead of reg_cover_class.
7224 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7225 STACK_REG_COVER_CLASS.
7226 (get_regno_cover_class): Rename to get_regno_pressure_class.
7227 (move_loop_invariants): Initialize and finalize regstat.
7229 * ira.c: Remove mentioning cover classes from the file. Add
7230 comments about coloring without cover classes. Use ALLOCNO_CLASS
7231 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7232 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7233 setup_class_subset_and_memory_move_costs.
7234 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7235 (setup_cover_and_important_classes): Rename to
7236 setup_allocno_and_important_classes.
7237 (setup_class_translate_array): New.
7238 (setup_class_translate): Call it for allocno and pressure classes.
7239 (cover_class_order): Rename to allocno_class_order.
7240 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7241 of ira_class_translate.
7242 (reorder_important_classes): Set up ira_important_class_nums.
7243 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7244 (print_class_cover): Rename to print_classes. Add parameter.
7245 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7246 Print pressure classes too.
7247 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7248 setup_reg_subclasses.
7249 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7250 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7251 (setup_prohibited_class_mode_regs): Use
7252 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7253 (clarify_prohibited_class_mode_regs): New function.
7254 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7255 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7256 (ira_init_once): Initialize them.
7257 (free_register_move_costs): Process them.
7258 (ira_init): Move calls of find_reg_classes and
7259 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7260 Call clarify_prohibited_class_mode_regs.
7261 (ira_no_alloc_reg): Remove.
7262 (too_high_register_pressure_p): Use pressure classes.
7264 * sched-deps.c: Remove mentioning cover classes from the file.
7265 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7266 ira_pressure_classes and ira_pressure_classes_num instead of
7267 ira_reg_class_cover_size and ira_reg_class_cover.
7268 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7269 sched_regno_pressure_class instead of sched_regno_cover_class.
7270 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7271 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7273 * ira.h: Add 2010 to Copyright.
7274 (ira_no_alloc_reg): Remove external.
7275 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7276 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7277 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7278 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7279 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7280 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7281 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7282 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7283 x_ira_no_alloc_regs.
7284 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7285 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7286 ira_allocno_classes_num and ira_allocno_classes.
7287 (ira_class_translate): Rename to ira_allocno_class_translate.
7288 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7289 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7290 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7291 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7292 (ira_no_alloc_regs): New.
7294 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7295 classes from the file. Use ALLOCNO_CLASS instead of
7296 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7297 ALLOCNO_COVER_CLASS_COST.
7298 (regno_cover_class): Rename to regno_aclass.
7299 (record_reg_classes): Use ira_reg_class_subunion instead of
7300 ira_reg_class_union.
7301 (record_address_regs): Check overflow.
7302 (scan_one_insn): Ditto.
7303 (print_allocno_costs): Print total mem cost fore regional allocation.
7304 (print_pseudo_costs): Use REG_N_REFS.
7305 (find_costs_and_classes): Use classes intersected with them on the
7306 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7307 ira_reg_class_union. Use ira_allocno_class_translate and
7308 regno_aclass instead of ira_class_translate and regno_cover_class.
7309 Modify code for finding regno_aclass. Setup preferred classes for
7311 (setup_allocno_cover_class_and_costs): Rename to
7312 setup_allocno_class_and_costs. Use regno_aclass instead of
7313 regno_cover_class. Use ira_set_allocno_class instead of
7314 ira_set_allocno_cover_class.
7315 (init_costs, finish_costs): Use regno_aclass instead of
7317 (ira_costs): Use setup_allocno_class_and_costs instead of
7318 setup_allocno_cover_class_and_costs.
7319 (ira_tune_allocno_costs_and_cover_classes): Rename to
7320 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7321 by processing objects. Use ira_reg_class_max_nregs instead of
7322 ira_reg_class_nregs.
7324 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7326 * sched-int.h: Remove mentioning cover classes from the file.
7327 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7329 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7330 classes from the file.
7331 (struct reg_pref): Rename coverclass into allocnoclass.
7332 (reg_cover_class): Rename to reg_allocno_class.
7334 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7336 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7338 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7340 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7342 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7344 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7346 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7348 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7350 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7352 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7354 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7355 (i386_ira_cover_classes): Ditto.
7357 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7359 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7361 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7363 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7365 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7367 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7369 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7370 (mips_ira_cover_classes): Ditto.
7372 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7374 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7376 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7378 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7380 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7382 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7383 (IRA_COVER_CLASSES_VSX): Ditto.
7385 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7386 (rs6000_ira_cover_classes): Ditto.
7388 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7390 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7392 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7394 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7396 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7398 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7400 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7402 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7404 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7406 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7408 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7411 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7412 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7413 dw_fde_unlikely_section_end_label, cold_in_std_section,
7414 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7415 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7417 (output_fde): Use dw_fde_second_{begin,end} if second is
7418 true, otherwise dw_fde_{begin,end}.
7419 (output_call_frame_info): Test dw_fde_second_begin != NULL
7420 instead of dw_fde_switched_sections.
7421 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7422 fields, initialize new fields. Initialize in_std_section
7423 unconditionally from the first partition.
7424 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7425 dw_fde_second_begin is non-NULL.
7426 (dwarf2out_switch_text_section): Stop initializing removed
7427 dw_fde_struct fields, initialize new fields, initialize
7428 also dw_fde_end here. Set dw_fde_switch_cfi even when
7429 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7430 (struct var_loc_list_def): Add last_before_switch field.
7431 (arange_table, arange_table_allocated, arange_table_in_use,
7432 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7433 (size_of_aranges): Count !in_std_section and !second_in_std_section
7434 hunks in fdes, instead of looking at arange_table_in_use.
7435 (output_aranges): Add aranges_length argument, don't call
7436 size_of_aranges here. Instead of using aranges_table*
7437 emit ranges for fdes when !in_std_section resp.
7438 !second_in_std_section.
7439 (dw_loc_list): Break ranges crossing section switch.
7440 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7441 use dw_fde_second_end instead of dw_fde_end as end of last range.
7442 (gen_subprogram_die): Don't call add_arange. Use
7443 dw_fde_{begin,end} for first partition and if switched
7444 section dw_fde_second_{begin,end} for the second.
7445 (var_location_switch_text_section_1,
7446 var_location_switch_text_section): New functions.
7447 (dwarf2out_begin_function): Initialize cold_text_section even
7448 when function_section () isn't text_section.
7449 (prune_unused_types): Don't walk arange_table.
7450 (dwarf2out_finish): Don't needlessly test
7451 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7452 If info_section_emitted, call size_of_aranges and if it indicates
7453 non-empty .debug_aranges, call output_aranges with the computed
7454 size. Stop using removed dw_fde_struct fields, use
7455 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7459 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7460 create ENTRY_VALUE if incoming or address of incoming's MEM
7462 * dwarf2out.c (mem_loc_descriptor): Don't emit
7463 DW_OP_GNU_entry_value of DW_OP_fbreg.
7464 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7465 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7466 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7467 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7469 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7470 is a REG_P or MEM_P with REG_P address, compute hash directly
7471 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7472 (preserve_only_constants): Don't clear VALUES forwaring
7473 ENTRY_VALUE to some other VALUE.
7475 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7477 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7480 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7482 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7483 block before expanding the statement.
7484 (expand_gimple_stmt_1): Likewise. Set them here...
7485 (expand_gimple_stmt): ...and not here. Tidy.
7486 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7489 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7491 * Makefile.in: New rule for cprop.o.
7492 * gcse.c: Move constant/copy propagation to cprop.c.
7493 (compute_local_properties): Only handle expression tables.
7494 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7495 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7496 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7497 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7498 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7499 compute_cprop_data, find_used_regs, try_replace_reg,
7500 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7501 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7502 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7503 find_bypass_set, reg_killed_on_edge, bypass_block,
7504 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7505 execute_rtl_cprop, pass_rtl_cprop): Move to...
7506 * cprop.c: ...here. New file, constant/copy propagation for RTL
7507 moved from gcse.c to here with minor cleanups in duplicated code.
7509 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7511 * config/i386/i386.c (flag_opts): Fix a typo in
7512 -mavx256-split-unaligned-store.
7514 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7516 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7517 LIBCALL_VALUE): Remove macros.
7518 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7519 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7520 (h8300_function_value, h8300_libcall_value,
7521 h8300_function_value_regno_p): New functions.
7523 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7525 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7527 2011-03-28 Jeff Law <law@redhat.com>
7529 * tree-ssa-threadupdate.c (redirect_edges): Call
7530 create_edge_and_update_destination_phis as needed.
7531 (create_edge_and_update_destination_phis): Accept new BB argument.
7532 All callers updated.
7533 (thread_block): Do not update the profile when threading around
7534 intermediate blocks.
7535 (thread_single_edge): Likewise.
7536 (determine_bb_domination_status): If BB is not a successor of the
7537 loop header, return NONDOMINATING.
7538 (register_jump_thread): Note when we register a jump thread around
7539 an intermediate block.
7540 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7541 (thread_across_edge): Use it.
7543 2011-03-28 Tristan Gingold <gingold@adacore.com>
7545 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7546 when for_return is 2.
7548 2011-03-28 Jeff Law <law@redhat.com>
7550 * var-tracking.c (canonicalize_values_mark): Delete unused
7552 (canonicalize_values_star, set_variable_part): Likewise.
7553 (clobber_variable_part, delete_variable_part): Likewise.
7555 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7557 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7559 2011-03-28 Martin Jambor <mjambor@suse.cz>
7561 * tree-inline.c (expand_call_inline): Do not check that destination
7563 (optimize_inline_calls): Assert that destination node is analyzed.
7564 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7565 not call tree_lowering_passes.
7566 * cgraph.h (cgraph_analyze_function): Declare.
7567 * cgraphunit.c (cgraph_analyze_function): Make public.
7569 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7571 * config/sparc/sparc-opts.h: New.
7572 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7573 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7574 (sparc_option_override): Store processor_type enumeration rather
7575 than string in cpu_default. Remove name and enumeration from
7576 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7577 without using sparc_select. Use target_flags_explicit instead of
7579 * config/sparc/sparc.h (enum processor_type): Move to
7581 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7582 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7583 HeaderInclude entry.
7584 (mcpu=, mtune=): Use Var and Enum.
7585 (sparc_processor_type): New Enum and EnumValue entries.
7587 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7588 Iain Sandoe <iains@gcc.gnu.org>
7591 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7593 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7595 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7596 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7597 Insert new statements at it in lieu of STMT.
7598 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7599 * tree-vect-stmts.c (vectorizable_store): Likewise.
7600 (vectorizable_load): Likewise.
7602 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7604 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7609 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7611 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7612 unaligned 256bit load/store.
7613 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7614 (*avx_movdqu<avxmodesuffix>): Likewise.
7616 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7619 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7620 * config/pa/pa.md (iordi3): Use new predicate in expander.
7623 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7625 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7626 FUNCTION_VALUE_REGNO_P): Remove macros.
7627 * config/mips/mips-protos.h (mips_function_value): Remove.
7628 * config/mips/mips.c (mips_function_value): Rename to...
7629 (mips_function_value_1): ... this. Make static. Handle receiving
7630 the function type in 'fn_decl_or_type' argument.
7631 (mips_function_value, mips_libcall_value,
7632 mips_function_value_regno_p): New function.
7633 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7634 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7636 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7638 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7639 and -mavx256-split-unaligned-store.
7640 (ix86_option_override_internal): Split 32-byte AVX unaligned
7641 load/store by default.
7642 (ix86_avx256_split_vector_move_misalign): New.
7643 (ix86_expand_vector_move_misalign): Use it.
7645 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7646 -mavx256-split-unaligned-store.
7648 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7649 256bit load/store. Generate unaligned store on misaligned memory
7651 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7653 (*avx_movdqu<avxmodesuffix>): Likewise.
7655 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7656 -mavx256-split-unaligned-store.
7658 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7661 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7664 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7666 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7667 opno arguments with an expand_operand. Use create_input_operand.
7668 (mips_prepare_builtin_target): Delete.
7669 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7671 (mips_expand_builtin_direct): Use create_output_operand and
7672 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7673 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7674 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7676 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7678 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7680 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7682 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7684 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7685 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7686 basic blocks and call commit_edge_insertions directly.
7687 (fixup_abnormal_edges): Move from here to...
7688 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7689 on the edges and return whether some have actually been inserted.
7690 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7693 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7695 PR rtl-optimization/48144
7696 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7697 (merge_expr_data): ... here.
7698 (av_set_intersect): Rename to av_set_code_motion_filter.
7699 Update all callers. Call merge_history_vect when an expression
7700 is found in both sets.
7701 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7703 2011-03-26 Alan Modra <amodra@gmail.com>
7705 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7706 cmodel medium addresses.
7707 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7708 64-bit gpr loads and stores.
7709 (rs6000_secondary_reload_ppc64): New function.
7710 * config/rs6000/rs6000-protos.h: Declare it.
7711 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7713 2011-03-26 Alan Modra <amodra@gmail.com>
7716 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7717 GNU Go in traceback table.
7719 2011-03-25 Richard Henderson <rth@redhat.com>
7721 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7722 if there are exactly 6 operands.
7723 (set_storage_via_setmem): Similarly.
7725 2011-03-25 Kai Tietz <ktietz@redhat.com>
7727 * collect2.c (write_c_file_stat): Handle backslash
7728 as right-hand directory separator.
7729 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7730 checking just for slash.
7731 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7732 instead of checking for trailing slash.
7733 * gcc.c (record_temp_file): Use filename_cmp instead
7735 (do_spec_1): Likewise.
7736 (replace_outfile_spec_function): Likewise.
7737 (is_directory): Use filename_ncmp instead of strncmp.
7738 (print_multilib_info): Likewise.
7739 * gcov.c (find_source): Use filename_cmp instead
7741 (make_gcov_file_name): Fix order of slash/backslash
7743 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7744 (add_standard_paths): Likewise.
7745 * mips-tfile.c (saber_stop): Handle backslash.
7746 * prefix.c (update_path): Use filename_ncmp instead of
7748 * profile.c (output_location): Use filename_cmp instead
7750 * read-md.c (handle_toplevel_file): Handle backslash.
7751 * tlink.c (frob_extension): Likewise.
7752 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7754 * tree-dump.c (dequeue_and_dump): Handle backslash.
7755 * tree.c (get_file_function_name): Likewise.
7756 * gengtype.c (read_input_list): Likewise.
7757 (get_file_realbasename): Likewise.
7758 (get_output_file_with_visibility): Use filename_cmp
7761 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7763 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7766 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7768 * fold-const.c (expr_location_or): New function.
7769 (fold_truth_not_expr): Call it.
7771 2011-03-25 Jeff Law <law@redhat.com>
7773 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7775 * c-family/c-common.c (def_fn_type): Likewise.
7776 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7777 * emit-rtl.c (gen_rtvec): Likewise.
7778 * lto/lto-lang.c (def_fn_type): Likewise.
7780 2011-03-25 Richard Guenther <rguenther@suse.de>
7782 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7783 also generate copies.
7784 (fini_copy_prop): Handle constant values properly.
7786 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7788 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7789 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7790 (hash_loc_operands, compare_loc_operands): Handle
7791 DW_OP_GNU_entry_value.
7793 2011-03-25 Kai Tietz <ktietz@redhat.com>
7795 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7796 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7797 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7798 comment and use macro TARGET_64BIT_MS_ABI instead.
7799 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7800 and change default behavior for 32-bit MS_ABI.
7801 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7802 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7804 (ix86_cfun_abi): Likewise.
7805 (ix86_maybe_switch_abi): Adjust comment.
7806 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7807 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7808 instead of checking for SYSV_ABI.
7809 (ix86_nsaved_sseregs): Likewise.
7810 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7812 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7813 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7814 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7815 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7816 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7818 2011-03-25 Richard Guenther <rguenther@suse.de>
7820 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7821 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7822 (verify_gimple): Remove.
7823 * tree-cfg.c (verify_gimple_call): Merge verification
7825 (verify_gimple_phi): Merge verification from verify_stmts.
7826 (verify_gimple_label): New function.
7827 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7828 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7829 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7830 (verify_stmts): Rename to verify_gimple_in_cfg.
7831 (verify_gimple_in_cfg): New function.
7832 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7833 * tree-ssa.c (verify_ssa): Likewise.
7834 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7836 2011-03-25 Richard Guenther <rguenther@suse.de>
7838 * passes.c (init_optimization_passes): Add FRE pass after
7841 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7842 Andrew Stubbs <ams@codesourcery.com>
7844 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7846 (arm_movdi_vfp_cortexa8): New pattern.
7847 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7848 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7849 instructions when tuning for Cortex-A8. Set attribute "arch".
7850 * config/arm/arm.md: Move include arm-tune.md up a bit.
7851 (define_attr "arch"): Add "onlya8" and "nota8" values.
7852 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7854 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7858 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7860 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7861 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7862 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7863 * passes.c (init_optimization_passes): Move
7864 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7866 2011-03-25 Kai Tietz <ktietz@redhat.com>
7868 * c-typeck.c (comptypes_internal): Replace target
7869 hook call of comp_type_attributes by version in tree.c file.
7870 * gimple.c (gimple_types_compatible_p_1): Likewise.
7871 * tree-ssa.c (useless_type_conversion_p): Likewise.
7872 * tree.c (build_type_attribute_qual_variant): Likewise.
7873 (attribute_value_equal): New static helper function.
7874 (comp_type_attributes): New function.
7875 (merge_attributes): Use attribute_value_equal for comparison.
7876 (attribute_list_contained): Likewise.
7877 * tree.h (comp_type_attributes): New prototype.
7879 2011-03-25 Richard Guenther <rguenther@suse.de>
7881 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7882 of complex types at -O0.
7883 (verify_gimple_assign_binary): Likewise.
7884 (verify_gimple_assign_ternary): Likewise.
7886 2011-03-24 Mark Wielaard <mjw@redhat.com>
7888 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7889 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7891 2011-03-24 Mark Wielaard <mjw@redhat.com>
7894 * dwarf2out.c (output_abbrev_section): Only write table when
7895 abbrev_die_table_in_use > 1.
7897 2011-02-24 Richard Henderson <rth@redhat.com>
7899 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7900 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7901 (alpha_expand_unaligned_load_words): Use extql.
7902 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7903 (emit_insxl): Handle all modes for consistency.
7905 2011-02-24 Richard Henderson <rth@redhat.com>
7907 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7908 (alpha_expand_unaligned_load): Likewise.
7909 (alpha_expand_unaligned_store): Likewise.
7910 (alpha_expand_unaligned_load_words): Likewise.
7911 (alpha_expand_unaligned_store_words): Likewise.
7912 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7913 (alpha_split_lock_test_and_set_12): Likewise.
7914 (print_operand, alpha_fold_builtin_extxx): Likewise.
7915 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7916 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7917 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7918 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7919 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7920 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7921 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7922 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7923 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7924 (extwl, extll, extql): Similarly.
7925 (inswh, inslh, insqh): Similarly.
7926 (mskbl, mskwl, mskll, mskql): Similarly.
7927 (mskwh, msklh, mskqh): Similarly.
7929 2011-02-24 Richard Henderson <rth@redhat.com>
7931 * config/alpha/alpha.md (attribute isa): Add er, ner.
7932 (attribute enabled): Handle them.
7933 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7935 2011-02-24 Richard Henderson <rth@redhat.com>
7937 * config/alpha/alpha.md (attribute isa): Add vms.
7938 (attribute enabled): Handle it.
7939 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7940 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7941 (*movtf): Rename from *movtf_internal for consistency.
7942 (*movsi): Merge with *movsi_nt_vms.
7943 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7944 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7945 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7946 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7948 2011-02-24 Richard Henderson <rth@redhat.com>
7950 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7951 (extendqisi2, extendhisi2): Likewise.
7952 (extendqidi2): Simplify BWX/non-BWX expansions.
7953 (extendhidi2): Similarly.
7955 2011-02-24 Richard Henderson <rth@redhat.com>
7957 * config/alpha/alpha.md (attribute isa): New.
7958 (attribute enabled): New.
7959 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7960 (zero_extendqisi2, zero_extendqidi2): Similarly.
7961 (zero_extendhisi2, zero_extendhidi2): Similarly.
7962 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7964 2011-02-24 Richard Henderson <rth@redhat.com>
7966 * config/alpha/predicates.md (input_operand): Revert last change;
7967 update comment to mention 32-bit VMS rather than Windows.
7969 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7971 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7972 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7973 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7974 * passes.c (init_optimization_passes): Move
7975 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7977 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7979 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7981 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7983 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7986 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7989 * simplify-rtx.c (simplify_const_unary_operation): Call
7990 real_convert when changing mode class with FLOAT_EXTEND.
7992 2011-03-24 Nick Clifton <nickc@redhat.com>
7994 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7995 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7996 * config/rx/rx.c (rx_option_override): Set align_jumps,
7997 align_loops and align_labels if not set by the user.
7998 (rx_align_for_label): New function.
7999 (rx_max_skip_for_label): New function.
8000 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8001 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8002 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8003 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8004 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8006 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8008 PR rtl-optimization/48263
8009 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8010 and original commutative_p handling. Use maybe_gen_insn.
8012 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8014 * reload.c (find_reloads_subreg_address): Add address_reloaded
8015 parameter and return true there if the full address has been
8017 (find_reloads_toplev): Pass address_reloaded flag.
8018 (find_reloads_address_1): Don't use address_reloaded parameter.
8020 2011-03-24 Jeff Law <law@redhat.com>
8022 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8023 unused variable "ann".
8024 (remove_unused_locals): Likewise.
8026 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8029 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8032 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8034 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8035 for invalid symbolic addresses.
8036 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8039 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8041 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8042 the argument in calls to fold_truth_not_expr.
8044 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8046 * tree.c (record_node_allocation_statistics): New function.
8047 (make_node_stat, copy_node_stat, build_string): Call it.
8048 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8049 (build1_stat, build_omp_clause): Likewise.
8051 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8053 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8056 2011-03-24 Richard Guenther <rguenther@suse.de>
8058 PR tree-optimization/48271
8059 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8060 blocks that still exist.
8062 2011-03-24 Richard Guenther <rguenther@suse.de>
8064 PR tree-optimization/48270
8065 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8066 not free datarefs before ddrs.
8068 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8070 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8071 from the address built for a reference with variable offset.
8073 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8076 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8077 alternatives that can be handled with movq or movabsq insn.
8078 (*movdf_internal): Disable for !TARGET_64BIT.
8079 (*movdf_internal_nointeger): Ditto.
8080 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8082 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8084 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8085 (FUNCTION_ARG_ADVANCE): Likewise.
8086 * tm.texi.in: Change references to them to hook references.
8087 * tm.texi: Regenerate.
8088 * targhooks.c (default_function_arg): Eliminate check for target macro.
8089 (default_function_incoming_arg): Likewise.
8090 (default_function_arg_advance): Likewise.
8091 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8092 (function_arg_advance): Likewise.
8093 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8095 2011-03-24 Richard Guenther <rguenther@suse.de>
8098 * tree-object-size.c (addr_object_size): Do not double-account
8099 for MEM_REF offsets.
8101 2011-03-24 Diego Novillo <dnovillo@google.com>
8103 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8104 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8105 (lto_input_data_block): Move from lto-opts.c. Make extern.
8107 (lto_input_string): Rename from input_string. Make extern.
8109 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8110 output_string_with_length.
8111 Output 0 to indicate a non-NULL string. Update all callers to
8113 (lto_output_string): Rename from output_string. Make extern.
8115 (lto_output_decl_state_streams): Make extern.
8116 (lto_output_decl_state_refs): Make extern.
8117 * lto-streamer.h (lto_input_string): Declare.
8118 (lto_input_data_block): Declare.
8119 (lto_output_string): Declare.
8120 (lto_output_string_with_length): Declare.
8121 (lto_output_decl_state_streams): Declare.
8122 (lto_output_decl_state_refs): Declare.
8124 2011-03-24 Richard Guenther <rguenther@suse.de>
8126 PR tree-optimization/46562
8127 * tree.c (build_invariant_address): New function.
8128 * tree.h (build_invariant_address): Declare.
8129 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8130 a renamed function moved ...
8131 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8132 Take valueization callback parameter.
8133 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8134 * gimple-fold.h: New file.
8135 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8136 (ccp_fold, fold_const_aggregate_ref,
8137 fold_ctor_reference, fold_nonarray_ctor_reference,
8138 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8139 get_base_constructor): Move ...
8140 * gimple-fold.c: ... here.
8141 (gimple_fold_stmt_to_constant_1): New function
8142 split out from ccp_fold. Take a valueization callback parameter.
8143 Valueize all operands.
8144 (gimple_fold_stmt_to_constant): New wrapper function.
8145 (fold_const_aggregate_ref_1): New function split out from
8146 fold_const_aggregate_ref. Take a valueization callback parameter.
8147 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8148 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8149 invariant POINTER_PLUS_EXPRs to invariant form.
8150 (vn_valueize): New function.
8151 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8152 * tree-vrp.c (vrp_valueize): New function.
8153 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8154 to fold statements to constants.
8155 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8156 function declarations.
8157 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8158 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8160 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8162 * config/h8300/predicates.md (jump_address_operand): Fix register
8165 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8167 * doc/invoke.texi (max-stores-to-sink): Document.
8168 * params.h (MAX_STORES_TO_SINK): Define.
8169 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8170 if either vectorization or if-conversion is disabled.
8171 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8172 tree-vect-data-refs.c vect_equal_offsets.
8173 (dr_equal_offsets_p): New function.
8174 (find_data_references_in_bb): Remove static.
8175 * tree-data-ref.h (find_data_references_in_bb): Declare.
8176 (dr_equal_offsets_p): Likewise.
8177 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8178 (vect_drs_dependent_in_basic_block): Update calls to
8180 (vect_check_interleaving): Likewise.
8181 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8182 (cond_if_else_store_replacement): Rename to...
8183 (cond_if_else_store_replacement_1): ... this. Change arguments and
8185 (cond_if_else_store_replacement): New function.
8186 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8187 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8189 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8192 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8193 to subtract lower bound instead of GEN_INT().
8195 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8200 * doc/extend.texi (Alignment): Move section to match order in TOC.
8201 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8202 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8204 2011-03-23 Jeff Law <law@redhat.com>
8206 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8207 before removing the edge.
8209 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8210 it may have been freed by redirect_branch_edge or
8211 redirect_edge_succ_nodup.
8213 2011-03-23 Richard Guenther <rguenther@suse.de>
8215 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8216 (check_va_list_escapes): Likewise.
8217 (check_all_va_list_escapes): Likewise.
8219 2011-03-23 Richard Guenther <rguenther@suse.de>
8221 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8222 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8223 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8224 (alias.o): Likewise.
8225 (ipa-type-escape.o): Remove.
8226 (ipa-struct-reorg.o): Likewise.
8227 (GTFILES): Remove ipa-struct-reorg.c.
8228 * alias.c: Do not include ipa-type-escape.h.
8229 * tree-ssa-alias.c: Likewise.
8230 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8231 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8232 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8233 and ipa-type-escape passes.
8234 * tree-pass.h (pass_ipa_type_escape): Remove.
8235 (pass_ipa_struct_reorg): Likewise.
8236 * ipa-struct-reorg.h: Remove.
8237 * ipa-struct-reorg.c: Likewise.
8238 * ipa-type-escape.h: Likewise.
8239 * ipa-type-escape.c: Likewise.
8240 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8241 (--param struct-reorg-cold-struct-ratio): Likewise.
8242 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8243 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8244 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8246 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8248 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8249 cpu attribute value.
8250 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8251 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8252 * config/s390/s390.c (processor_flags_table): New constant array.
8253 (s390_handle_arch_option): Remove.
8254 (s390_handle_option): Remove s390_handle_arch_option invocations
8255 and OPT_mwarn_framesize_ handling.
8256 (s390_option_override): Remove s390_handle_arch_option invocation.
8257 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8259 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8260 * config/s390/s390.opt (s390_tune, s390_arch)
8261 (march=): Replace s390_arch_option enum and values with
8262 processor_type. Set variable name to s390_arch. Set
8263 initialization value.
8264 (mtune=): Replace s390_arch_option with processor_type. Set
8265 variable name to s390_tune. Set initialization value.
8267 2011-03-23 Julian Brown <julian@codesourcery.com>
8269 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8270 accesses which are not naturally aligned.
8272 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8275 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8277 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8279 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8280 parameter from "int" to "enum insn_code".
8281 (expand_operand_type): New enum.
8282 (expand_operand): New structure.
8283 (create_expand_operand): New function.
8284 (create_fixed_operand, create_output_operand): Likewise
8285 (create_input_operand, create_convert_operand_to): Likewise.
8286 (create_convert_operand_from, create_address_operand): Likewise.
8287 (create_integer_operand): Likewise.
8288 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8289 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8290 (expand_insn, expand_jump_insn): Likewise.
8291 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8292 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8293 (expand_movstr, expand_builtin___clear_cache): Likewise.
8294 (expand_builtin_lock_release): Likewise.
8295 * explow.c (allocate_dynamic_stack_space): Likewise.
8296 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8297 and use the default handling in that case.
8298 * expmed.c (check_predicate_volatile_ok): Delete.
8299 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8300 (emit_cstore): Likewise.
8301 * expr.c (emit_block_move_via_movmem): Likewise.
8302 (set_storage_via_setmem, expand_assignment): Likewise.
8303 (emit_storent_insn, try_casesi): Likewise.
8304 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8305 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8306 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8307 (expand_twoval_unop, expand_twoval_binop): Likewise.
8308 (expand_unop_direct, emit_indirect_jump): Likewise.
8309 (emit_conditional_move, vector_compare_rtx): Likewise.
8310 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8311 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8312 (expand_sync_lock_test_and_set): Likewise.
8313 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8314 (emit_unop_insn): Likewise.
8315 (expand_copysign_absneg): Change icode to an insn_code.
8316 (create_convert_operand_from_type): New function.
8317 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8318 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8319 (expand_insn, expand_jump_insn): Likewise.
8320 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8321 than const_int_operand for operand 2.
8323 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8325 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8328 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8330 * emit-rtl.c (emit_pattern_before_noloc): New function.
8331 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8332 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8333 (emit_pattern_after_noloc): New function.
8334 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8335 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8337 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8339 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8340 (__ffsDI2): Likewise.
8342 2011-03-22 Richard Henderson <rth@redhat.com>
8344 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8345 of !TARGET_ABI_OPEN_VMS.
8346 (alpha_trampoline_init, alpha_start_function): Likewise.
8347 (alpha_expand_epilogue, alpha_file_start): Likewise.
8348 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8349 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8350 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8351 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8352 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8354 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8356 * config/s390/s390-opts.h: New.
8357 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8358 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8359 s390_stack_guard): Remove.
8360 (s390_handle_arch_option): Return void. Take enum
8361 s390_arch_option value instead of string and searching array.
8362 (s390_handle_option): Don't assert that global structures are in
8363 use. Access variables via opts pointer. Use error_at. Don't use
8364 sscanf for -mstack-guard= or -mstack-size=. Update call to
8365 s390_handle_arch_option.
8366 (s390_option_override): Update call to s390_handle_arch_option.
8367 (s390_emit_prologue): Use %d format for s390_stack_size in
8368 diagnostic. Use %wd for HOST_WIDE_INT.
8369 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8370 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8371 * config/s390/s390.opt (config/s390/s390-opts.h): New
8372 HeaderInclude entry.
8373 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8374 s390_arch_flags, s390_warn_framesize): New Variable entries.
8375 (s390_arch_option): New Enum and EnumValue entries.
8376 (march=): Use Enum instead of Var.
8377 (mstack-guard=, mstack-size=): Use UInteger and Var.
8380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8382 * config/score/score.c (score_handle_option): Don't assert that
8383 global structures are in use. Access target_flags via opts
8384 pointer. Use value of -march= option to determine target_flags
8386 * config/score/score.opt (march=): Use Enum.
8387 (score_arch): New Enum and EnumValue entries.
8389 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8391 * config/mep/mep.c (option_mtiny_specified): Remove.
8392 (mep_option_override): Move register handling for -mivc2 from
8393 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8394 instead of option_mtiny_specified.
8395 (mep_handle_option): Access target_flags via opts pointer. Don't
8396 assert that global structures are in use. Defer part of -mivc2
8397 handling and move it to mep_option_override.
8398 * config/mep/mep.opt (IVC2): New Mask entry.
8399 (mivc2): Use Var and Defer instead of Mask.
8401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8403 * config/v850/v850-opts.h: New.
8404 * config/v850/v850.c (small_memory): Replace with
8405 small_memory_physical_max array. Make that array static const.
8406 (v850_handle_memory_option): Take integer value of argument. Take
8407 gcc_options pointer, option text and location. Return void.
8408 Update for changes to small memory structures.
8409 (v850_handle_option): Access target_flags via opts pointer. Don't
8410 assert that global structures are in use. Update calls to
8411 v850_handle_memory_option.
8412 (v850_encode_data_area): Update references to small memory settings.
8413 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8414 (enum small_memory_type): Move to v850-opts.h.
8415 * config/v850/v850.opt (config/v850/v850-opts.h): New
8416 HeaderInclude entry.
8417 (small_memory_max): New Variable entry.
8418 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8419 (mtda, mzda): Likewise.
8421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8423 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8424 pointer. Don't assert that global structures are in use.
8426 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8428 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8429 via opts pointer. Don't assert that global structures are in use.
8431 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8433 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8434 (munix=93): Use Var.
8435 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8436 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8437 * config/pa/pa-opts.h: New.
8438 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8439 (pa_handle_option): Don't assert that global structures are in
8440 use. Access target_flags via opts pointer. Don't handle
8441 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8443 (pa_option_override): Handle deferred OPT_mfixed_range_.
8445 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8447 * config/mn10300/mn10300-opts.h: New.
8448 * config/mn10300/mn10300.c (mn10300_processor,
8449 mn10300_tune_string): Remove.
8450 (mn10300_handle_option): Don't assert that global structures are
8451 in use. Access mn10300_processor via opts pointer. Don't handle
8453 * config/mn10300/mn10300.h (enum processor_type): Move to
8455 (mn10300_processor): Remove.
8456 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8457 HeaderInclude entry.
8458 (mn10300_processor): New Variable entry.
8461 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8463 * config/microblaze/microblaze.c: Don't include opts.h.
8464 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8465 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8466 (mno-clearbss): Use Var and Warn.
8468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8470 * config/m32r/m32r-opts.h: New.
8471 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8472 (m32r_handle_option): Don't assert that global structures are in
8473 use. Access target_flags and m32r_cache_flush_func via opts
8474 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8475 OPT_mno_flush_trap here.
8476 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8477 include of m32r-opts.h.
8478 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8479 HeaderInclude entry.
8480 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8481 (mmodel=): Use Enum and Var.
8482 (m32r_model): New Enum and EnumValue entries.
8483 (mno-flush-trap): Use Var.
8484 (msdata=): Use Enum and Var.
8485 (m32r_sdata): New Enum and EnumValue entries.
8487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8489 * config/m32c/m32c.c: Don't include opts.h.
8490 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8491 m32c_handle_option): Remove.
8492 (m32c_option_override): Check global_options_set.x_target_memregs
8493 instead of target_memregs_set.
8494 * config/m32c/m32c.h (target_memregs): Remove.
8495 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8498 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8500 * config/iq2000/iq2000-opts.h: New.
8501 * config/iq2000/iq2000.c: Don't include opts.h.
8502 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8503 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8504 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8505 HeaderInclude entry.
8506 (iq2000_tune): New Variable entry.
8507 (march=): Add comment. Use Enum.
8508 (iq2000_arch): New Enum and EnumValue entries.
8509 (mcpu=): Use Enum and Var.
8510 (iq2000_tune): New Enum and EnumValue entries.
8512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8514 * config/ia64/ia64-opts.h: New.
8515 * config/ia64/ia64.c (ia64_tune): Remove.
8516 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8518 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8519 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8520 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8521 HeaderInclude entry.
8522 (ia64_tune): New Variable entry.
8523 (mfixed-range=): Use Defer and Var.
8524 (mtune=): Use Enum and Var.
8525 (ia64_tune): New Enum and EnumValue entries.
8527 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8529 * config/frv/frv-opts.h: New.
8530 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8532 (frv_cpu_type): Remove.
8533 * config/frv/frv.c: Don't include opts.h.
8534 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8535 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8536 (frv_cpu_type): New Variable entry.
8537 (frv_cpu): New Enum and EnumValue entries.
8539 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8541 * config/cris/cris.c (cris_handle_option): Access target_flags via
8542 opts pointer. Don't assert that global structures are in use.
8543 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8544 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8546 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8548 * config/bfin/bfin-opts.h: New.
8549 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8550 bfin_si_revision, bfin_workarounds): Remove.
8551 (bfin_cpus): Make static const.
8552 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8553 not bfin_lib_id_given.
8554 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8555 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8556 pointer. Use error_at. Don't assert that global structures are in use.
8557 * config/bfin/bfin.h: Include bfin-opts.h.
8558 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8559 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8560 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8561 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8564 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8566 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8567 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8568 or -msoft-float here.
8569 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8570 -msoft-float and -mhard-float.
8571 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8572 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8574 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8576 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8577 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8579 (LIBGCC_SPEC): Don't handle -msoft-float.
8580 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8582 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8584 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8585 -mfloat-abi=*, not -msoft-float and -mhard-float.
8586 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8588 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8589 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8590 mhard-float and msoft-float.
8591 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8592 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8593 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8594 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8596 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8597 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8599 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8601 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8604 2011-03-22 Richard Henderson <rth@redhat.com>
8606 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8607 TARGET_ABI_WINDOWS_NT.
8608 (alpha_output_function_end_prologue): Likewise.
8609 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8610 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8611 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8612 (trap, *movsi_nt_vms): Likewise.
8613 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8614 (*tablejump_osf_nt_internal): Remove.
8615 * config/alpha/predicates.md (input_operand): Only test Pmode.
8617 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8619 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8620 via opts pointer. Use error_at. Don't assert that global
8621 structures are in use.
8623 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8625 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8626 (ix86_handle_option): Access ix86_isa_flags and
8627 ix86_isa_flags_explicit via opts pointer. Don't assert that
8628 global structures are in use.
8629 (ix86_function_specific_save, ix86_function_specific_restore):
8630 Update ix86_isa_flags_explicit field name.
8631 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8632 (ix86_isa_flags_explicit): Rename TargetSave entry to
8633 x_ix86_isa_flags_explicit.
8635 2011-03-22 Richard Henderson <rth@redhat.com>
8637 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8638 (alpha_option_override, direct_return): Likewise.
8639 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8640 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8641 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8642 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8643 (alpha_expand_epilogue, alpha_end_function): Likewise.
8644 (alpha_init_libfuncs): Likewise.
8645 (struct machine_function): Remove unicosmk members.
8646 (print_operand) ['t']: Remove.
8647 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8648 unicosmk_output_module_name, unicosmk_output_common,
8649 current_section_align, unicosmk_output_text_section_asm_op,
8650 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8651 unicosmk_section_type_flags, unicosmk_unique_section,
8652 unicosmk_asm_named_section, unicosmk_insert_attributes,
8653 unicosmk_output_align, unicosmk_defer_case_vector,
8654 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8655 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8656 unicosmk_output_ssib, unicosmk_add_call_info_word,
8657 unicosmk_extern_head, unicosmk_output_default_externs,
8658 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8659 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8660 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8661 * config/alpha/alpha-protos.h: Update.
8662 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8663 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8664 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8665 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8666 (*mulsi_se, mulvsi3): Likewise.
8667 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8668 (*divmodsi_internal, call, call_value, realign): Likewise.
8669 (moddi3, umoddi3): Likewise; remove duplicate expander.
8670 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8671 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8672 (*movdi_nofix): Remove r/U alternative.
8673 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8674 * config/alpha/constraints.md ("U"): Remove.
8675 * config/alpha/predicates.md (call_operand"): Don't test
8676 TARGET_ABI_UNICOSMK.
8678 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8680 * target.def (handle_option): Take gcc_options and
8681 cl_decoded_option pointers and location_t.
8682 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8683 * doc/tm.texi: Regenerate.
8684 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8685 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8686 * lto-opts.c (lto_reissue_options): Generate option structure for
8687 targetm.handle_option call.
8688 * opts.c (target_handle_option): Update call to
8689 targetm.handle_option. Remove assertions about values now passed
8691 * targhooks.c (default_target_handle_option): New.
8692 * targhooks.h (default_target_handle_option): Declare.
8693 * config/alpha/alpha.c: Include opts.h.
8694 (alpha_handle_option): Update to new hook interface.
8695 * config/arm/arm.c: Include opts.h.
8696 (arm_handle_option): Update to new hook interface.
8697 * config/arm/t-arm (arm.o): Update dependencies.
8698 * config/bfin/bfin.c: Include opts.h.
8699 (bfin_handle_option): Update to new hook interface.
8700 * config/cris/cris.c: Include opts.h.
8701 (cris_handle_option): Update to new hook interface.
8702 * config/frv/frv.c: Include opts.h.
8703 (frv_handle_option): Update to new hook interface.
8704 * config/i386/i386.c: Include opts.h.
8705 (ix86_handle_option): Update to new hook interface.
8706 (ix86_valid_target_attribute_inner_p): Generate option structure
8707 for call to ix86_handle_option.
8708 * config/i386/t-i386 (i386.o): Update dependencies.
8709 * config/ia64/ia64.c: Include opts.h.
8710 (ia64_handle_option): Update to new hook interface.
8711 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8712 * config/iq2000/iq2000.c: Include opts.h.
8713 (iq2000_handle_option): Update to new hook interface.
8714 * config/m32c/m32c.c: Include opts.h.
8715 (m32c_handle_option): Update to new hook interface.
8716 * config/m32r/m32r.c: Include opts.h.
8717 (m32r_handle_option): Update to new hook interface.
8718 * config/m68k/m68k.c: Include opts.h.
8719 (m68k_handle_option): Update to new hook interface.
8720 * config/mep/mep.c: Include opts.h.
8721 (mep_handle_option): Update to new hook interface.
8722 * config/microblaze/microblaze.c: Include opts.h.
8723 (microblaze_handle_option): Update to new hook interface.
8724 * config/mips/mips.c: Include opts.h.
8725 (mips_handle_option): Update to new hook interface.
8726 * config/mn10300/mn10300.c: Include opts.h.
8727 (mn10300_handle_option): Update to new hook interface.
8728 * config/pa/pa.c: Include opts.h.
8729 (pa_handle_option): Update to new hook interface.
8730 * config/pdp11/pdp11.c: Include opts.h.
8731 (pdp11_handle_option): Update to new hook interface.
8732 * config/rs6000/rs6000.c: Include opts.h.
8733 (rs6000_handle_option): Update to new hook interface.
8734 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8735 * config/rx/rx.c: Include opts.h.
8736 (rx_handle_option): Update to new hook interface.
8737 * config/s390/s390.c: Include opts.h.
8738 (s390_handle_option): Update to new hook interface.
8739 * config/score/score.c: Include opts.h.
8740 (score_handle_option): Update to new hook interface.
8741 * config/sh/sh.c: Include opts.h.
8742 (sh_handle_option): Update to new hook interface.
8743 * config/sparc/sparc.c: Include opts.h.
8744 (sparc_handle_option): Update to new hook interface.
8745 * config/v850/v850.c: Include opts.h.
8746 (v850_handle_option): Update to new hook interface.
8748 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8750 * gcc.c (driver_unknown_option_callback): Only permit and save
8751 unknown -Wno- options.
8752 (driver_wrong_lang_callback): Save options directly instead of via
8753 driver_unknown_option_callback.
8755 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8757 * combine.c (simplify_set): Try harder to find the best CC mode when
8758 simplifying a nested COMPARE on the RHS.
8760 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8762 * config/alpha/gnu.h: Remove.
8763 * config/arc: Remove directory.
8764 * config/arm/netbsd.h: Remove.
8765 * config/arm/t-pe: Remove.
8766 * config/crx: Remove directory.
8767 * config/i386/netbsd.h: Remove.
8768 * config/m68hc11: Remove directory.
8769 * config/m68k/uclinux-oldabi.h: Remove.
8770 * config/mcore/mcore-pe.h: Remove.
8771 * config/mcore/t-mcore-pe: Remove.
8772 * config/netbsd-aout.h: Remove.
8773 * config/rs6000/gnu.h: Remove.
8774 * config/sh/sh-symbian.h: Remove.
8775 * config/sh/symbian-base.c: Remove.
8776 * config/sh/symbian-c.c: Remove.
8777 * config/sh/symbian-cxx.c: Remove.
8778 * config/sh/symbian-post.h: Remove.
8779 * config/sh/symbian-pre.h: Remove.
8780 * config/sh/t-symbian: Remove.
8781 * config/svr3.h: Remove.
8782 * config/vax/netbsd.h: Remove.
8783 * config.build: Don't handle i[34567]86-*-pe.
8784 * config.gcc: Remove handling of deprecations for most deprecated
8786 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8787 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8788 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8789 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8790 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8791 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8793 * config.host: Don't handle i[34567]86-*-pe.
8794 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8795 (ASM_SPEC32): Don't handle -mcall-gnu.
8796 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8798 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8799 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8800 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8801 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8802 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8803 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8804 conditional on SYMBIAN.
8805 * configure.ac: Don't handle powerpc*-*-gnu*.
8806 * configure: Regenerate.
8807 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8808 * doc/install-old.texi (m6811, m6812): Don't mention.
8809 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8810 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8811 (m68k-uclinuxoldabi): Don't mention.
8812 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8814 (-mcall-gnu): Remove.
8815 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8816 families): Remove constraint documentation.
8818 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8820 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8821 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8822 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8824 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8827 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8828 vector when peeking at the next token for vector, don't expand the
8831 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8833 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8834 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8835 * config/avr/avr.c (init_cumulative_args)
8836 (avr_function_arg_advance): Use it.
8837 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8839 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8840 (avr_function_ok_for_sibcall): ...this new function.
8841 (avr_lookup_function_attribute1): New static Function.
8842 (avr_naked_function_p, interrupt_function_p)
8843 (signal_function_p, avr_OS_task_function_p)
8844 (avr_OS_main_function_p): Use it.
8845 * config/avr/avr.md ("sibcall", "sibcall_value")
8846 ("sibcall_epilogue"): New expander.
8847 ("*call_insn", "*call_value_insn"): New insn.
8848 ("call_insn", "call_value_insn"): Remove
8849 ("call", "call_value", "epilogue"): Change expander to handle
8852 2011-03-21 Nick Clifton <nickc@redhat.com>
8854 * doc/invoke.texi (Overall Options): Move closing brace to end of
8856 (Optimization Options): Add missing @gol.
8857 (Directory Options): Likewise.
8858 (i386 and x86-64 Options): Likewise.
8859 (RS6000 and PowerPC Options): Likewise.
8860 (i386 and x86-64 Windows Options): Likewise.
8861 (V850 Options): Add text missing from descriptions.
8863 2011-03-22 Richard Henderson <rth@redhat.com>
8865 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8866 (avr_incoming_return_addr_rtx): New.
8867 (emit_push_byte): New.
8868 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8869 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8870 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8871 (emit_pop_byte): New.
8872 (expand_epilogue): Use it. Pop frame pointer by bytes.
8873 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8874 (INCOMING_RETURN_ADDR_RTX): New.
8875 (INCOMING_FRAME_SP_OFFSET): New.
8876 (ARG_POINTER_CFA_OFFSET): New.
8877 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8878 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8881 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8883 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8885 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8886 (FUNCTION_ARG_ADVANCE): Likewise.
8887 * tm.texi.in: Change references to them to hook references.
8888 * tm.texi: Regenerate.
8889 * targhooks.c (default_function_arg): Eliminate check for target
8891 (default_function_incoming_arg): Likewise.
8892 (default_function_arg_advance): Likewise.
8893 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8894 (function_arg_advance): Likewise.
8895 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8897 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8899 * tree.c (build_call_1): New function.
8900 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8902 2011-03-22 Richard Guenther <rguenther@suse.de>
8904 PR tree-optimization/48228
8905 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8906 for single-arg PHIs.
8908 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8910 PR rtl-optimization/48143
8911 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8912 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8913 sse2_cvtps2pd): Likewise.
8915 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8917 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8919 2011-03-22 Richard Guenther <rguenther@suse.de>
8921 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8922 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8923 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8924 and REALIGN_LOAD_EXPR.
8925 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8926 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8927 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8928 DOT_PROD_EXPR case ...
8929 (expand_expr_real_2): ... here.
8930 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8931 and REALIGN_LOAD_EXPR.
8932 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8933 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8934 (vect_create_epilog_for_reduction): Likewise.
8935 (vectorizable_reduction): Likewise.
8936 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8937 * tree-vect-stmts.c (vectorizable_load): Likewise.
8939 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8941 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8943 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8945 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8946 handling for PLTOFF/GOTOFF.
8948 2011-03-22 Nick Clifton <nickc@redhat.com>
8950 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8951 trailing backslash from the end of the macro definition.
8953 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8955 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8958 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8960 * expr.h (prepare_operand): Move to...
8961 * optabs.h (prepare_operand): ...here and change the insn code
8962 parameter from "int" to "enum insn_code".
8963 (insn_operand_matches): Declare.
8964 * expr.c (init_expr_target): Use insn_operand_matches.
8965 (compress_float_constant): Likewise.
8966 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8967 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8968 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8969 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8971 (gen_cond_trap): Likewise.
8972 (prepare_operand): Likewise. Change icode to an insn_code.
8973 (insn_operand_matches): New function.
8974 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8975 * reload1.c (gen_reload): Likewise.
8976 * targhooks.c (default_secondary_reload): Likewise.
8978 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8980 * config/alpha/alpha.md (unspec): New define_c_enum.
8983 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8986 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8987 between a call and its CALL_ARG_LOCATION note.
8989 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8991 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8993 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8997 * c-common.c (shorten_compare): If primopN is first sign-extended
8998 to opN and then zero-extended to result type, set primopN to opN.
9000 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9002 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9003 for barrier handlers.
9005 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9007 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9008 UNSPEC constants to be in the unspec enumeration, and redefine
9009 all UNSPECV constants to be in the unspecv enumeration, so that
9010 dumps print which unspec/unspec_volatile this is.
9011 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9012 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9013 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9014 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9015 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9017 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9018 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9019 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9020 * config/rs6000/sync.md (isync, lwsync): Ditto.
9022 2011-03-21 Richard Guenther <rguenther@suse.de>
9024 * params.def (lto-min-partition): Fix typo.
9026 2011-03-21 Richard Guenther <rguenther@suse.de>
9029 * c-decl.c (grokdeclarator): Drop to the main variant only
9030 for array types. Drop flag_gen_aux_info check.
9032 2011-03-21 Richard Guenther <rguenther@suse.de>
9034 PR translation/47911
9035 * params.def (lto-partitions): Fix typo.
9036 (lto-min-partition): Fix wording.
9038 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9040 * config/rs6000/t-freebsd: Remove duplication from file.
9042 2011-03-21 Richard Guenther <rguenther@suse.de>
9045 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9047 2011-03-21 Richard Guenther <rguenther@suse.de>
9050 * params.def (lto-partitions): Require at least 1 partition.
9052 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9054 * gthr-solaris.h: Remove.
9055 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9056 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9057 (LIB_SPEC): Likewise.
9058 * config/sol2.opt (threads): Remove.
9059 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9060 (sparc*-*-solaris2*): Likewise.
9061 * configure.ac (enable_threads): Enable solaris support.
9062 * configure: Regenerate.
9063 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9064 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9067 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9069 * config.gcc: Obsolete *-*-solaris2.8*.
9070 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9072 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9075 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9076 reference. Solaris 8 perl works.
9078 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9081 * doc/install.texi (Prerequisites): Move jar etc. up.
9082 Explain support library version requirements.
9084 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9087 * doc/install.texi (Prerequisites): Move Perl to build
9088 requirements. Always necessary on Solaris 2 with Sun ld.
9090 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9092 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9094 (Specific, i?86-*-solaris2.[89]): Likewise.
9095 (Specific, i?86-*-solaris2.10): Likewise.
9096 (Specific, mips-sgi-irix6): Likewise.
9097 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9098 Update for binutils 2.21.
9100 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9102 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9103 Allow -fuse-linker-plugin for non-default plugin linker.
9104 * configure: Regenerate.
9106 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9109 * gengtype.c (files_rules): Added rule for cp/parser.h.
9111 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9114 * config/s390/s390.c (s390_delegitimize_address): Don't call
9115 lowpart_subreg if orig_x has BLKmode.
9117 2011-03-21 Kai Tietz <ktietz@redhat.com>
9120 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9121 * tree.h (attribute_spec): Add new member affects_type_identity.
9122 * attribs.c (empty_attribute_table): Adjust attribute_spec
9124 * config/alpha/alpha.c: Likewise.
9125 * config/arc/arc.c: Likewise.
9126 * config/arm/arm.c: Likewise.
9127 * config/avr/avr.c: Likewise.
9128 * config/bfin/bfin.c: Likewise.
9129 * config/crx/crx.c: Likewise.
9130 * config/darwin.h: Likewise.
9131 * config/h8300/h8300.c: Likewise.
9132 * config/i386/cygming.h: Likewise.
9133 * config/i386/i386.c: Likewise.
9134 * config/ia64/ia64.c: Likewise.
9135 * config/m32c/m32c.c: Likewise.
9136 * config/m32r/m32r.c: Likewise.
9137 * config/m68hc11/m68hc11.c: Likewise.
9138 * config/m68k/m68k.c: Likewise.
9139 * config/mcore/mcore.c: Likewise.
9140 * config/mep/mep.c: Likewise.
9141 * config/microblaze/microblaze.c: Likewise.
9142 * config/mips/mips.c: Likewise.
9143 * config/rs6000/rs6000.c: Likewise.
9144 * config/rx/rx.c: Likewise.
9145 * config/sh/sh.c: Likewise.
9146 * config/sol2.h: Likewise.
9147 * config/sparc/sparc.c: Likewise.
9148 * config/spu/spu.c: Likewise.
9149 * config/stormy16/stormy16.c: Likewise.
9150 * config/v850/v850.c: Likewise.
9152 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9154 * simplify-rtx.c (simplify_binary_operation_1): Handle
9155 (xor (and A B) C) case when B and C are both constants.
9157 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9159 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9161 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9164 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9166 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9168 PR rtl-optimization/48156
9169 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9170 assume df and df_lr are not NULL.
9172 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9175 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9176 between a call and its CALL_ARG_LOCATION note.
9178 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9181 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9182 between a call and its corresponding CALL_ARG_LOCATION note.
9184 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9186 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9187 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9188 * haifa-sched.c (setup_ref_regs): Ditto.
9189 * caller-save.c (add_used_regs_1): Ditto.
9190 * dse.c (look_for_hardregs): Ditto.
9191 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9192 * sched-rgn.c (check_live_1): Ditto.
9194 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9196 * c-decl.c (diagnose_mismatched_decls): Give an error for
9197 redefining a typedef with variably modified type.
9199 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9201 * c-decl.c (grokfield): Don't allow typedefs for structures or
9202 unions with no tag by default.
9203 * doc/extend.texi (Unnamed Fields): Update.
9205 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9207 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9208 Rewrite using indirect functions.
9209 (lwp_slwpcb): Ditto.
9210 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9211 (avx_vinsertf128<mode>): Ditto.
9213 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9215 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9218 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9220 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9221 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9223 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9225 PR rtl-optimization/48170
9226 * gcse.c (hoist_code): Remove bogus asserts.
9228 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9230 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9231 computation for prologue/epilogue.
9233 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9235 * Makefile.in (check-consistency): Remove.
9237 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9240 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9241 arange_table_in_use is 0, but either text_section_used or
9242 cold_text_section_used is true. Don't call it if
9243 !info_section_emitted.
9245 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9247 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9248 FUNCTION_VALUE_REGNO_P): Remove.
9249 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9251 * config/avr/avr.c (avr_ret_register): Make static inline.
9252 (avr_function_value_regno_p): New function.
9253 (avr_libcall_value): Make static. Add 'func' argument.
9254 (avr_function_value): Make static. Rename 'func' argument to
9255 'fn_decl_or_type', forward it to avr_libcall_value. Call
9256 avr_ret_register function instead of RET_REGISTER macro.
9257 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9259 2011-03-18 Jason Merrill <jason@redhat.com>
9262 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9264 2011-03-18 Richard Guenther <rguenther@suse.de>
9266 * doc/install.texi (--enable-gold): Remove.
9267 (--with-plugin-ld): Document.
9268 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9270 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9273 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9274 again after expansion changes.
9276 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9278 * combine.c (try_combine): Do simplification only call of
9279 subst() on i2 even when i1 is present. Update comments.
9281 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9283 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9284 and UNSPEC_PCREL_SYMOFF.
9286 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9288 * config/s390/s390.md: Use define_c_enum for the unspec constant
9291 2011-03-18 Richard Henderson <rth@redhat.com>
9292 Jakub Jelinek <jakub@redhat.com>
9295 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9296 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9298 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9301 * combine.c (cant_combine_insn_p): Don't check zero/sign
9302 extended hard registers.
9304 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9307 * combine.c (cant_combine_insn_p): Check zero/sign extended
9310 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9312 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9313 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9314 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9315 Change return type to bool.
9316 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9318 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9321 * var-tracking.c (prepare_call_arguments): If CALL target
9322 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9323 pc instead of looking it up using cselib_lookup and use
9324 Pmode for it if x has VOIDmode.
9325 * dwarf2out.c (gen_subprogram_die): If also both first and
9326 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9329 * function.c (assign_parms): For data.passed_pointer parms
9330 use MEM of data.entry_parm instead of data.entry_parm itself
9331 as DECL_INCOMING_RTL.
9332 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9333 also when passed and declared mode is the same, DECL_RTL
9334 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9337 2011-03-16 Jeff Law <law@redhat.com>
9339 PR rtl-optimization/37273
9340 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9341 handle them like argument loads from stack slots. Do not double
9342 count memory for memory constants and argument loads from stack slots.
9344 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9347 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9349 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9352 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9354 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9357 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9359 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9360 Clear call_arg_locations and call_arg_loc_last always.
9363 * var-tracking.c (prepare_call_arguments): If argument needs to be
9364 passed by reference, adjust argtype and mode.
9366 2011-03-17 Richard Guenther <rguenther@suse.de>
9369 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9370 a value make sure to fold the statement.
9372 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9375 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9376 return condition with !cfun->calls_alloca.
9378 2011-03-17 Richard Guenther <rguenther@suse.de>
9381 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9382 origin for decls in other ltrans units.
9383 (input_varpool_node): Likewise.
9385 2011-03-17 Richard Guenther <rguenther@suse.de>
9388 * tree-object-size.c (compute_object_offset): Properly return
9389 the offset operand of MEM_REFs as sizetype.
9391 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9393 PR rtl-optimization/48141
9394 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9395 * dse.c: Include params.h.
9396 (active_local_stores_len): New variable.
9397 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9399 (record_store, check_mem_read_rtx): Decrease it when removing
9401 (scan_insn): Likewise. Increase it when adding to chain, if it
9402 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9403 set active_local_stores to NULL before the addition.
9404 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9406 PR rtl-optimization/48141
9407 * dse.c (record_store): If no positions are needed in an insn
9408 that cannot be deleted, at least unchain it from active_local_stores.
9410 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9413 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9414 (lookup_type_die_strip_naming_typedef): ... here.
9415 (get_context_die): Use it.
9416 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9417 the anonymous struct named by the naming typedef.
9419 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9422 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9423 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9425 2011-03-16 Jeff Law <law@redhat.com>
9427 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9428 check for operands of conditional. Allow type to be a pointer.
9430 2011-03-16 Richard Guenther <rguenther@suse.de>
9432 PR tree-optimization/48149
9433 * fold-const.c (fold_binary_loc): Fold
9434 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9436 2011-03-16 Richard Guenther <rguenther@suse.de>
9438 PR tree-optimization/26134
9439 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9440 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9441 (non_rewritable_mem_ref_base): Handle complex type component
9442 accesses, constrain offsets for vector and complex extracts
9445 2011-03-16 Richard Guenther <rguenther@suse.de>
9447 PR tree-optimization/48146
9448 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9449 operands avoiding the need for renaming.
9451 2011-03-16 Richard Guenther <rguenther@suse.de>
9453 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9454 constant folding. Move MEM_REF canonicalization first.
9455 Rely on fold_const_aggregate_ref for initializer folding.
9456 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9458 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9461 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9462 arg0/arg1 or their arguments are always fold converted to matching
9465 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9468 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9471 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9472 Handle in-tree gold.
9473 (ld_vers): Extract binutils version for gold.
9474 (gcc_cv_ld_hidden): Handle gold here.
9475 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9476 * configure: Regenerate.
9477 * config.in: Regenerate.
9478 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9479 -fuse-linker-plugin otherwise.
9480 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9481 (LINK_COMMAND_SPEC): Use it.
9482 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9484 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9486 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9487 * calls.c: Remove debug.h include.
9488 (emit_call_1): Don't call virtual_call_token debug hook.
9489 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9490 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9491 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9492 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9493 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9494 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9495 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9496 dwarf2out_virtual_call): Remove.
9497 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9498 copy_call_info and virtual_call hooks.
9499 (dwarf2out_init): Don't initialize vcall_insn_table,
9500 debug_dcall_section and debug_vcall_section.
9501 (prune_unused_types): Don't mark nodes from dcall_table.
9502 (dwarf2out_finish): Don't output dcall or vcall tables.
9503 * final.c (final_scan_insn): Don't call direct_call or
9504 virtual_call debug hooks.
9505 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9506 virtual_call_token, copy_call_info and virtual_call hooks.
9507 (debug_nothing_uid): Remove prototype.
9508 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9509 copy_call_info and virtual_call hooks.
9510 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9511 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9512 * debug.c (do_nothing_debug_hooks): Likewise.
9513 (debug_nothing_uid): Remove.
9514 * doc/invoke.texi (-fenable-icf-debug): Remove.
9515 * common.opt (-fenable-icf-debug): Likewise.
9517 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9518 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9519 call's MEM. Handle functions returning aggregate through a hidden
9520 first pointer. For virtual calls add clobbered pc to call arguments
9522 * dwarf2out.c (gen_subprogram_die): Emit
9523 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9527 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9528 * rtl.h (ENTRY_VALUE_EXP): Define.
9529 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9530 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9531 * print-rtl.c (print_rtx): Likewise.
9532 * gengtype.c (adjust_field_rtx_def): Likewise.
9533 * var-tracking.c (vt_add_function_parameter): Adjust
9534 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9535 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9536 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9537 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9538 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9540 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9541 Call var_location debug hook even on CALL_INSNs.
9542 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9543 * rtl.def (ENTRY_VALUE): New.
9544 * dwarf2out.c: Include cfglayout.h.
9545 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9546 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9547 (struct call_arg_loc_node): New type.
9548 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9549 tail_call_site_count): New variables.
9550 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9551 DW_TAG_GNU_call_site_parameter.
9552 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9553 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9554 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9555 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9556 and DW_AT_GNU_all_source_call_sites.
9557 (mem_loc_descriptor): Handle ENTRY_VALUE.
9558 (add_src_coords_attributes): Don't add enything if
9559 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9560 (dwarf2out_abstract_function): Save and clear call_arg_location,
9561 call_site_count and tail_call_site_count around dwarf2out_decl call.
9562 (gen_call_site_die): New function.
9563 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9564 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9565 (dwarf2out_function_decl): Clear call_arg_locations,
9566 call_arg_loc_last, set call_site_count and tail_call_site_count
9567 to -1 and free block_map.
9568 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9569 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9570 followed by any real instructions.
9571 (dwarf2out_begin_function): Set call_site_count and
9572 tail_call_site_count to 0.
9573 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9574 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9575 attempt to force a DIE for it and worst case remove the attribute.
9576 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9577 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9579 * var-tracking.c: Include tm_p.h.
9580 (vt_stack_adjustments): For calls call note_register_arguments.
9581 (argument_reg_set): New variable.
9582 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9583 ensure the VALUE is resolved.
9584 (call_arguments): New variable.
9585 (prepare_call_arguments): New function.
9586 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9587 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9588 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9589 always use the best expression.
9590 (vt_expand_loc): Add ignore_cur_loc argument.
9591 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9592 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9593 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9595 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9596 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9597 argument. Don't call cselib_preserve_only_values and
9599 (note_register_arguments): New function.
9600 (vt_initialize): Compute argument_reg_set. Call
9601 vt_add_function_parameters before processing basic blocks instead of
9602 afterwards. For calls call prepare_call_arguments before calling
9603 cselib_process_insn.
9604 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9605 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9606 (var-tracking.o): Depend on $(TM_P_H).
9607 * cfglayout.h (insn_scope): New prototype.
9608 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9609 * cfglayout.c (insn_scope): No longer static.
9610 * insn-notes.def (CALL_ARG_LOCATION): New.
9611 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9612 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9613 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9614 nothing for DECL_EXTERNAL BLOCK_VARS.
9616 2011-03-16 Alan Modra <amodra@gmail.com>
9619 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9620 create invalid offset address for vsx splat insn.
9621 * config/rs6000/predicates.md (splat_input_operand): New.
9622 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9624 2011-03-15 Xinliang David Li <davidxl@google.com>
9627 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9628 (normalize_preds): New function.
9629 (is_use_properly_guarded): Normalize def predicates.
9631 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9634 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9635 in the output template.
9637 2011-03-15 Richard Guenther <rguenther@suse.de>
9640 * tree-pretty-print.c (dump_function_declaration): Properly
9641 dump unprototyped and varargs function types.
9643 2011-03-15 Richard Guenther <rguenther@suse.de>
9645 PR tree-optimization/13954
9646 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9649 2011-03-15 Richard Guenther <rguenther@suse.de>
9651 PR tree-optimization/48037
9652 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9653 selects into BIT_FIELD_REFs.
9654 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9657 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9659 PR tree-optimization/48129
9660 * builtins.c (fold_builtin_snprintf): Convert to type of
9661 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9662 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9664 2011-03-15 Richard Guenther <rguenther@suse.de>
9666 PR tree-optimization/41490
9667 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9668 value but with VUSE.
9669 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9671 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9672 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9673 * tree-tailcall.c (find_tail_calls): Ignore returns.
9675 2011-03-15 Richard Guenther <rguenther@suse.de>
9678 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9679 or variable-indexed array accesses when in gimple form.
9681 2011-03-15 Richard Guenther <rguenther@suse.de>
9683 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9685 2011-03-15 Alan Modra <amodra@gmail.com>
9688 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9689 presume symbol_refs without a symbol_ref_decl are suitably
9690 aligned, nor other trees we may see here. Handle anchor symbols.
9691 (legitimate_constant_pool_address_p): Comment. Add mode param.
9692 Check cmodel=medium addresses. Adjust all calls.
9693 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9694 creating cmodel=medium optimized access to locals.
9695 * config/rs6000/constraints.md (R): Pass QImode to
9696 legitimate_constant_pool_address_p.
9697 * config/rs6000/predicates.md (input_operand): Pass mode to
9698 legitimate_constant_pool_address_p.
9699 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9702 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9705 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9706 64-bit constants being loaded into registers other than GPRs such
9707 as loading 0 into a VSX register.
9709 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9711 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9713 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9716 * builtins.c (fold_builtin_snprintf): New function.
9717 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9718 (fold_builtin_4): Likewise.
9721 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9722 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9723 and C - X == X also strip nops from +/-/p+ operand.
9724 When optimizing -X == C, fold C to arg0's type.
9727 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9728 emit it as add_AT_int instead of add_AT_unsigned.
9730 2011-03-14 Tom Tromey <tromey@redhat.com>
9732 * unwind-dw2.c: Include sys/sdt.h if it exists.
9733 (_Unwind_DebugHook): Use STAP_PROBE2.
9734 * config.in, configure: Rebuild.
9735 * configure.ac: Check for sys/sdt.h.
9737 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9739 * config/i386/i386.md (ROUND_FLOOR): New constant.
9740 (ROUND_CEIL): Ditto.
9741 (ROUND_TRUNC): Ditto.
9742 (ROUND_MXCSR): Ditto.
9743 (ROUND_NO_EXC): Ditto.
9744 (rint<mode>2): Use new defines instead of numerical constants.
9745 (floor<mode>2): Ditto.
9746 (ceil<mode>2): Ditto.
9747 (btrunc<mode>2): Ditto.
9748 * config/i386/i386-builtin-types.def: Define ROUND function type
9750 * config/i386/i386.c (enum ix86_builtins): Add
9751 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9752 (struct builtin_description): Add
9753 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9754 (ix86_expand_sse_round): New static function.
9755 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9757 (ix86_builtin_vectorized_function): Handle
9758 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9760 2011-03-14 Tom Tromey <tromey@redhat.com>
9762 * c-parser.c (c_parser_asm_string_literal): Clear
9763 warn_overlength_strings.
9765 2011-03-14 Tom Tromey <tromey@redhat.com>
9767 * c-parser.c (disable_extension_diagnostics): Save
9768 warn_overlength_strings.
9769 (restore_extension_diagnostics): Restore warn_overlength_strings.
9771 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9773 * BASE-VER: Change to 4.7.0.
9775 2011-03-14 Richard Guenther <rguenther@suse.de>
9778 * tree.c (build_vector_from_val): Adjust assert to requirements
9781 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9784 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9786 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9788 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9789 terms of target_flags_explicit. Adjust copyright year.
9791 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9792 * config/rs6000/t-freebsd: New file. Add override for
9795 2011-03-13 Chris Demetriou <cgd@google.com>
9797 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9798 (-fno-diagnostics-show-option): this, to reflect current default.
9799 (-Werror=): Update text about -fno-diagnostics-show-option.
9801 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9804 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9805 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9806 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9807 mode is not V2DImode or V2DFmode.
9808 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9809 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9810 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9812 (movdi_internal64): Likewise.
9814 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9816 PR tree-optimization/47127
9817 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9819 (set_cloog_options): Same.
9820 (scop_to_clast): Same.
9821 (print_clast_stmt): Do not call cloog_state_malloc and
9823 (print_generated_program): Same.
9825 * graphite-clast-to-gimple.h (cloog_state): Declared.
9826 (scop_to_clast): Adjust declaration.
9827 * graphite.c (cloog_state): Defined here.
9828 (graphite_initialize): Call cloog_state_malloc.
9829 (graphite_finalize): Call cloog_state_free.
9831 2011-03-11 Jason Merrill <jason@redhat.com>
9833 * attribs.c (lookup_attribute_spec): Take const_tree.
9836 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9838 * config/sparc/sparc.c (sparc_option_override): Use
9839 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9841 2011-03-11 Richard Guenther <rguenther@suse.de>
9843 PR tree-optimization/48067
9844 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9845 multiplication result will be only used once on the target
9848 2011-03-11 Richard Guenther <rguenther@suse.de>
9850 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9852 2011-03-11 Richard Guenther <rguenther@suse.de>
9855 * tree.c (find_decls_types_r): Do not walk types only reachable
9856 from IDENTIFIER_NODEs.
9858 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9861 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9862 all vnode->force_output nodes as needed.
9864 2011-03-11 Jason Merrill <jason@redhat.com>
9867 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9868 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9870 2011-03-11 Martin Jambor <mjambor@suse.cz>
9872 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9875 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9877 PR tree-optimization/48063
9878 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9879 inline functions called once if !tree_can_inline_p (node->callers).
9881 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9883 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9885 * config/score/score3.c: Delete.
9886 * config/score/score3.h: Delete.
9887 * config/score/mul-div.S: Delete.
9888 * config/score/sfp-machine.h: Add new file.
9889 * config/score/constraints.md: Add new file.
9890 * config/score/t-score-softfp: Add new file.
9891 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9892 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9893 (score7_extra_constraint): Delete.
9894 (score7_option_override): Remove unused code.
9895 * config/score/score.c: Remove score3 and score5 define and code.
9896 * config/score/score.h: Remove score3 and score5 define and code.
9897 * config/score/score.md: Remove score3 template and unusual insn.
9898 * config/score/score.opt: Remove score3 and score5 options.
9900 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9902 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9903 when _HPUX_SOURCE is defined.
9904 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9906 2011-03-10 Jason Merrill <jason@redhat.com>
9909 * stor-layout.c (layout_type): Don't set structural equality
9910 on arrays of incomplete type.
9911 * tree.c (type_hash_eq): Handle comparing them properly.
9913 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9916 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9917 result mode matches original rtl mode.
9919 2011-03-10 Nick Clifton <nickc@redhat.com>
9921 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9922 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9924 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9926 PR rtl-optimization/47866
9927 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9928 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9929 if target wasn't scalar.
9930 * function.c (assign_stack_temp_for_type): Assert that neither
9931 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9932 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9934 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9936 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9938 * config/s390/s390-protos.h (s390_label_align): New prototype.
9939 * config/s390/s390.c (s390_label_align): New function.
9940 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9942 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9945 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9946 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9947 (output_vec_const_move): Ditto.
9949 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9951 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9952 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9953 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9954 Change 'rclass' argument and result type to reg_class_t.
9955 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9957 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9959 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9960 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9961 (TARGET_MEMORY_MOVE_COST): Define.
9962 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9964 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9967 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9970 PR tree-optimization/48022
9971 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9974 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9977 * var-tracking.c (find_use_val): Return NULL for
9978 cui->sets && cui->store_p BLKmode MEMs.
9980 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9982 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9984 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9985 xstormy16_print_operand_address): Remove.
9986 * config/stormy16/stormy16.c (xstormy16_print_operand,
9987 xstormy16_print_operand_address): Make static.
9988 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9990 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9993 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9994 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9997 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10000 * cfgloopmanip.c (fix_bb_placements): Return immediately
10001 if FROM is BASE_LOOP's header.
10003 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10005 * gimplify.c (gimplify_function_tree): Fix building calls
10006 to __builtin_return_address.
10008 2011-03-07 Alan Modra <amodra@gmail.com>
10010 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10011 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10012 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10013 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10015 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10016 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10017 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10018 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10019 * config/rs6000/rs6000.c
10020 (rs6000_elf_end_indicate_exec_stack): Rename to..
10021 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10022 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10023 (rs6000_file_start): ..here.
10024 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10025 file scope variables.
10026 (call_ABI_of_interest): New function.
10027 (init_cumulative_args): Set above vars when function return value
10028 is a float, vector, or small struct.
10029 (rs6000_function_arg_advance_1): Likewise for function args.
10030 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10031 references float args.
10033 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10035 * doc/cfg.texi: Remove "See" before @ref.
10036 * doc/invoke.texi: Likewise.
10038 2011-03-05 Jason Merrill <jason@redhat.com>
10040 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10042 2011-03-05 Anthony Green <green@moxielogic.com>
10044 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10046 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10048 PR rtl-optimization/47899
10049 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10050 to flow_loop_nested_p when moving the loop upward.
10052 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10055 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10057 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10059 PR tree-optimization/47967
10060 * ipa-cp.c (build_const_val): Return NULL instead of creating
10061 VIEW_CONVERT_EXPR for mismatching sizes.
10062 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10063 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10064 give up on versioning.
10066 2011-03-05 Alan Modra <amodra@gmail.com>
10069 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10070 full cmodel medium/large lo_sum + high addresses.
10072 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10074 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10075 pool references in UNSPEC_LTREL_OFFSET.
10077 2011-03-04 Jan Hubicka <jh@suse.cz>
10080 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10081 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10082 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10084 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10085 cgraph_add_thunk): Add node pointers.
10086 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10087 associated to right node.
10088 (input_node): Update use of cgraph_same_body_alias
10089 and cgraph_add_thunk.
10091 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10093 * config/i386/i386.opt (mprefer-avx128): New flag.
10094 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10095 modes when the flag -mprefer-avx128 is on.
10097 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10099 * dwarf2out.c (compare_loc_operands): Fix address handling.
10101 2011-03-04 Alan Modra <amodra@gmail.com>
10103 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10105 2011-03-04 Richard Guenther <rguenther@suse.de>
10107 PR middle-end/47968
10108 * expmed.c (extract_bit_field_1): Prefer vector modes that
10109 vec_extract patterns can handle.
10111 2011-03-04 Richard Guenther <rguenther@suse.de>
10113 PR middle-end/47975
10114 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10116 2011-03-04 Richard Henderson <rth@redhat.com>
10118 * explow.c (emit_stack_save): Remove 'after' parameter.
10119 (emit_stack_restore): Likewise.
10120 * expr.h: Update to match.
10121 * builtins.c, calls.c, stmt.c: Likewise.
10122 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10123 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10124 * function.c (expand_function_end): Insert the emit_stack_save
10125 sequence before parm_birth_insn instead of after.
10127 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10129 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10130 (ssse3_pmaddubsw128): Ditto.
10131 (ssse3_pmaddubsw): Ditto.
10133 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10135 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10137 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10140 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10141 on TYPE_SIZE_UNIT if it is a DECL.
10144 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10145 first operand is not is_gimple_mem_ref_addr, try to fold it.
10146 If the operand still isn't is_gimple_mem_ref_addr, clear
10149 2011-03-03 Richard Guenther <rguenther@suse.de>
10151 PR middle-end/47283
10152 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10154 (refs_may_alias_p_1): For release branches return true if
10155 we are confused by our input.
10157 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10159 * config/s390/s390.c (s390_function_value): Rename to ...
10160 (s390_function_and_libcall_value): ... this.
10161 (s390_function_value): New function.
10162 (s390_libcall_value): New function.
10163 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10164 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10165 target macro definitions.
10166 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10168 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10170 * config/i386/freebsd64.h (CC1_SPEC): Define.
10171 * config/i386/linux64.h (CC1_SPEC): Define.
10172 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10174 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10176 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10178 * config/stormy16/stormy16.c: Include reload.h.
10179 (xstormy16_memory_move_cost): New function.
10180 (TARGET_MEMORY_MOVE_COST): Define.
10182 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10184 PR rtl-optimization/47925
10185 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10186 with side effects. Remove the more-specific check for volatile asms.
10188 2011-03-02 Alan Modra <amodra@gmail.com>
10191 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10192 toc relative addresses for valid offsets.
10194 2011-03-01 Richard Guenther <rguenther@suse.de>
10196 PR tree-optimization/47890
10197 * tree-vect-loop.c (get_initial_def_for_induction): Set
10198 related stmt properly.
10200 2011-03-01 Richard Guenther <rguenther@suse.de>
10203 * lto-streamer.c (lto_record_common_node): Also register
10204 the canonical type.
10206 2011-03-01 Richard Guenther <rguenther@suse.de>
10209 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10210 Do not stream DECL_ABSTRACT_ORIGIN.
10211 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10212 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10213 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10214 Do not stream DECL_ABSTRACT_ORIGIN.
10215 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10216 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10218 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10220 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10221 FUNCTION_VALUE_REGNO_P): Remove.
10222 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10223 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10224 Add 'outgoing' argument.
10225 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10227 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10228 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10230 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10233 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10234 (lookup_filename): Likewise.
10235 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10237 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10238 Jakub Jelinek <jakub@redhat.com>
10240 PR middle-end/47893
10241 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10242 (assign_stack_local_1): Change last argument type to int.
10243 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10244 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10245 don't record padding space into frame_space_list nor use those areas.
10246 (assign_stack_local): Adjust caller.
10247 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10248 of assign_stack_local, pass 0 as last argument.
10249 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10252 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10255 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10256 Use target address_mode and pointer_mode hooks instead of hardcoded
10257 Pmode and ptr_mode. Handle some simple cases of extending if
10258 POINTERS_EXTEND_UNSIGNED < 0.
10259 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10260 Call convert_debug_memory_address.
10261 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10262 convert_debug_memory_address.
10264 PR middle-end/46790
10265 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10266 * configure: Regenerated.
10267 * config.in: Regenerated.
10268 * varasm.c (default_function_section): Return NULL
10269 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10271 2011-02-28 Martin Jambor <mjambor@suse.cz>
10273 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10274 the description to match the printed values.
10276 2011-02-28 Richard Guenther <rguenther@suse.de>
10278 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10279 of the copied scope tree.
10281 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10283 * doc/extend.texi (Function Attributes): Avoid deeply (and
10284 wrongly) nested tables.
10286 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10288 PR middle-end/47903
10289 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10290 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10291 r isn't op0 nor op1.
10293 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10295 * config/avr/avr.md: Remove magic comment for emacs.
10297 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10300 * config/avr/avr.c (avr_option_override): Use error on bad options.
10301 (avr_help): New function.
10302 (TARGET_HELP): Define.
10304 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10307 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10308 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10310 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10312 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10313 (ARM Options): Ditto.
10314 (i386 and x86-64 Options): Ditto.
10315 (RX Options): Ditto.
10316 (SPARC Options): Ditto.
10318 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10320 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10321 FreeBSD 6 and later. Generally use cpu generic.
10323 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10325 * doc/cpp.texi: Update copyright years.
10327 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10330 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10332 2011-02-25 Jon Beniston <jon@beniston.com>
10335 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10336 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10337 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10338 (lm32_block_move_inline): Add type cast to remove warning.
10339 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10340 (gen_int_relational): Move declarations to start of function.
10342 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10344 PR tree-optimization/45470
10345 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10346 can throw internally only.
10347 * tree-vect-stmts.c (vectorizable_call): Likewise.
10349 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10351 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10352 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10353 * config/stormy16/stormy16-protos.h
10354 (xstormy16_preferred_reload_class): Remove.
10355 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10356 static. Change 'rclass' argument and return type to reg_class_t.
10357 (TARGET_PREFERRED_RELOAD_CLASS,
10358 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10360 2011-02-24 Richard Guenther <rguenther@suse.de>
10362 * lto-streamer-in.c (input_bb): Do not find referenced vars
10363 in debug statements.
10365 2011-02-23 Jason Merrill <jason@redhat.com>
10367 * common.opt (fabi-version): Document v5 and v6.
10369 2011-02-23 Richard Guenther <rguenther@suse.de>
10371 PR tree-optimization/47849
10372 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10374 2011-02-23 Jie Zhang <jie@codesourcery.com>
10376 * opts-common.c (decode_cmdline_option): Print empty string
10377 argument as "" in decoded->orig_option_with_args_text.
10378 * gcc.c (execute): Print empty string argument as ""
10379 in the verbose output.
10380 (do_spec_1): Keep empty string argument.
10382 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10384 * config.gcc: Declare score-* and crx-* obsolete.
10386 2011-02-23 Jie Zhang <jie@codesourcery.com>
10388 PR rtl-optimization/47763
10389 * web.c (web_main): Ignore naked clobber when replacing register.
10391 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10393 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10396 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10399 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10401 2011-02-22 Mike Stump <mikestump@comcast.net>
10403 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10405 * configure: Regenerate.
10407 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10409 PR rtl-optimization/46002
10410 * ira-color.c (update_copy_costs): Change class intersection
10411 test to reg_class_contents[] test of 'hard_regno'.
10413 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10415 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10416 than Driver option.
10417 * config/hpux11.opt (mt): Likewise.
10418 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10419 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10420 * config/vax/elf.opt (mno-asm-pic): Likewise.
10421 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10423 2011-02-21 Mike Stump <mikestump@comcast.net>
10426 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10427 tree so we can get save the type.
10428 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10429 for CFString instead of trying to use past the end of the builtins.
10430 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10431 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10432 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10433 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10434 Rename to darwin_builtin_cfstring.
10435 (darwin_init_cfstring_builtins): Return the built type.
10437 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10440 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10441 (_mm256_insert_epi64): Use _mm_insert_epi64.
10443 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10445 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10446 * config/stormy16/stormy16-protos.h
10447 (xstormy16_mode_dependent_address_p): Remove.
10448 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10449 Make static. Change return type to bool. Change argument type to
10450 const_rtx. Remove dead code.
10451 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10453 2011-02-21 Richard Guenther <rguenther@suse.de>
10456 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10457 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10458 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10460 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10461 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10463 2011-02-20 Richard Guenther <rguenther@suse.de>
10466 * tree.c (free_lang_data_in_decl): Clean builtins from
10467 the TU decl BLOCK_VARS.
10469 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10473 * haifa-sched.c (fix_tick_ready): Skip tick computation
10476 2011-02-19 Richard Guenther <rguenther@suse.de>
10479 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10480 Remove lazy BLOCK_VARS streaming.
10481 (lto_input_ts_block_tree_pointers): Likewise.
10482 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10484 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10486 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10488 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10490 * config/i386/biarch32.h, config/i386/mach.h,
10491 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10493 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10496 * config/i386/i386.md (peephole2 for shift and plus): Use
10497 operands[1] original mode in the first insn.
10499 2011-02-18 Mike Stump <mikestump@comcast.net>
10501 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10503 2011-02-18 Jan Hubicka <jh@suse.cz>
10505 PR middle-end/47788
10506 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10507 to zero when the function is not inlinable at all.
10509 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10511 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10512 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10513 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10514 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10515 * config/pa/t-pa64: Likewise.
10516 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10518 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10521 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10523 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10526 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10528 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10530 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10531 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10532 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10533 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10534 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10535 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10536 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10537 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10538 m32r_legitimate_address_p): New functions.
10539 * config/m32r/constraints.md (constraint "S"): Don't use
10540 STORE_PREINC_PREDEC_P.
10541 (constraint "U"): Don't use LOAD_POSTINC_P.
10543 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10545 PR rtl-optimization/46178
10546 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10547 compute ira_hard_regno_cover_class[].
10549 2011-02-18 Richard Guenther <rguenther@suse.de>
10552 * lto-streamer.h (lto_global_var_decls): Declare.
10553 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10554 statics for global var processing.
10556 2011-02-18 Richard Guenther <rguenther@suse.de>
10558 PR tree-optimization/47737
10559 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10560 edge dominance check.
10562 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10565 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10566 avoid invalid rtx sharing.
10568 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10570 * doc/cpp.texi (Obsolete Features): Add background on the
10571 origin of assertions.
10573 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10575 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10577 * config/darwin.c (output_objc_section_asm_op): Added support for
10579 (is_objc_metadata): New.
10580 (darwin_objc2_section): New.
10581 (darwin_objc1_section): New.
10582 (machopic_select_section): Added support for ABI v1 and v2.
10583 (darwin_emit_objc_zeroed): New.
10584 (darwin_output_aligned_bss): Detect objc metadata and treat it
10586 (darwin_asm_output_aligned_decl_common): Same.
10587 (darwin_asm_output_aligned_decl_local): Same.
10588 * config/darwin-sections.def: Updated for ABI v1 and v2.
10589 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10590 compiling Objective-C code for the NeXT runtime, default to using
10591 ABI version 0 for 32-bit, and version 2 for 64-bit.
10593 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10595 * common.opt (optimize_fast): New Variable.
10596 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10597 instead of local variable ofast.
10599 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10601 * doc/invoke.texi (fobjc-abi-version): Documented.
10602 (fobjc-nilcheck): Documented.
10603 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10606 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10609 * common.opt (export-dynamic): New Driver option.
10610 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10612 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10614 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10616 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10617 Jan Hubicka <jh@suse.cz>
10621 * cfgexpand.c (account_used_vars_for_block): Remove.
10622 (estimated_stack_frame_size): Use referenced vars.
10623 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10624 that were referenced in the original function. Test src_fn
10625 rather than cfun. Drop redundant get_var_ann.
10626 (setup_one_parameter): Drop redundant get_var_ann.
10627 (declare_return_variable): Likewise.
10628 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10629 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10630 * ipa-inline.c (compute_inline_parameters): Do not compute
10631 disregard_inline_limits here.
10632 (compute_inlinable_for_current, pass_inlinable): New.
10633 (pass_inline_parameters): Require PROP_referenced_vars.
10634 * cgraphunit.c (cgraph_process_new_functions): Don't run
10635 compute_inline_parameters explicitly unless function is in SSA form.
10636 (cgraph_analyze_function): Set .disregard_inline_limits.
10637 * tree-sra.c (convert_callers): Compute inliner parameters
10638 only for functions already in SSA form.
10640 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10642 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10643 -mlittle-endian-data.
10645 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10647 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10648 -mno-fpu, not -fpu and -no-fpu.
10649 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10650 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10652 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10655 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10656 input reload with PLUS RTX.
10658 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10660 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10661 of InverseVar(MDMX).
10663 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10665 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10668 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10670 * config/mn10300/mn10300.opt (mno-crt0): New.
10672 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10674 * config/m68k/uclinux.opt (static-libc): New Driver option.
10676 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10678 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10680 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10682 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10683 %{muser-extend-enabled}.
10685 2011-02-16 Richard Guenther <rguenther@suse.de>
10687 PR tree-optimization/47738
10688 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10689 the TODO from tree_predictive_commoning.
10691 2011-02-15 Jeff Law <law@redhat.com>
10694 2011-01-25 Jeff Law <law@redhat.com>
10696 PR rtl-optimization/37273
10697 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10698 handle them like argument loads from stack slots. Do not double
10699 count memory for memory constants and argument loads from stack slots.
10701 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10703 PR middle-end/47725
10704 * combine.c (cant_combine_insn_p): Revert the last change.
10706 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10709 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10710 mode for vector constants. Remove code that checks for TImode.
10712 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10716 * cgraph.h (compute_inline_parameters): Return void.
10717 * ipa-inline.c (compute_inline_parameters): Adjust.
10719 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10723 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10725 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10726 * ipa-inline.c (compute_inline_parameters): Adjust.
10728 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10732 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10733 Adjust all users. Pass FN to...
10734 * tree-flow-inline.h (first_referenced_var): ... this. Add
10736 * ipa-struct-reorg.c: Adjust.
10737 * tree-dfa.c: Adjust.
10738 * tree-into-ssa.c: Adjust.
10739 * tree-sra.c: Adjust.
10740 * tree-ssa-alias.c: Adjust.
10741 * tree-ssa-live.c: Adjust.
10742 * tree-ssa.c: Adjust.
10743 * tree-ssanames.c: Adjust.
10744 * tree-tailcall.c: Adjust.
10746 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10750 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10751 Adjust all callers.
10752 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10753 * tree-flow-inline.h: Adjust.
10754 * gimple-pretty-print.c: Adjust.
10755 * tree-into-ssa.c: Adjust.
10756 * tree-ssa.c: Adjust.
10757 * cfgexpand.c: Adjust.
10759 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10761 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10762 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10763 (EXTRA_CONSTRAINT): Delete.
10764 * config/iq2000/constraints.md: New file.
10765 * config/iq2000/iq2000.md: Include it.
10766 (define_insn ""): Delete.
10767 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10768 unsupported constraint letters from patterns.
10769 (call_value, call_value_internal1): Likewise.
10770 (call_value_multiple_internal1): Likewise.
10772 2011-02-15 Nick Clifton <nickc@redhat.com>
10774 * config/mn10300/mn10300.c: Include tm-constrs.h.
10775 (struct liw_data): New data structure describing an LIW candidate
10777 (extract_bundle): Use struct liw_data. Allow small integer
10778 operands for some instructions.
10779 (check_liw_constraints): Use struct liw_data. Remove swapped
10780 parameter. Add comments describing the checks. Fix bug when
10781 assigning the source of liw1 to the source of liw2.
10782 (liw_candidate): Delete. Code moved into extract_bundle.
10783 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10785 * config/mn10300/predicates.md (liw_operand): New predicate.
10786 Allows registers and small integer constants.
10787 * config/mn10300/constraints.md (O): New constraint. Accetps
10788 integers in the range -8 to +7 inclusive.
10789 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10790 for moving a small integer into a register. Give this alternative
10792 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10793 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10794 using the J,K,L and M constraints,
10795 (liw): Remove SI mode on second operands to allow for HI and QI
10797 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10800 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10802 PR middle-end/47725
10803 * combine.c (cant_combine_insn_p): Check zero/sign extended
10806 2011-02-15 Richard Guenther <rguenther@suse.de>
10808 PR tree-optimization/47743
10809 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10810 for a non-type-compatible VN lookup bail out.
10812 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10814 * config/fr30/constraints.md: New file.
10815 * config/fr30/fr30.md: Include it.
10816 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10817 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10818 (EXTRA_CONSTRAINT): Delete.
10820 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10822 * config/frv/constraints.md: New file.
10823 * config/frv/predicates.md: Include it.
10824 * config/frv/frv.c (reg_class_from_letter): Delete.
10825 (frv_option_override): Don't initialize it.
10826 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10827 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10828 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10829 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10830 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10831 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10832 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10833 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10834 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10835 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10836 (REG_CLASS_FROM_CONSTRAINT): Delete.
10838 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10840 PR middle-end/47581
10841 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10842 if frame size is 0 in a leaf function.
10844 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10847 * config/alpha/host-osf.c: New file.
10848 * config/alpha/x-osf: New file.
10849 * config.host (alpha*-dec-osf*): Use it.
10851 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10853 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10854 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10855 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10856 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10858 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10860 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10862 * config/stormy16/constraints.md: New file.
10863 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10864 Use satisfies_constraint_Q and satisfies_constraint_R.
10865 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10867 (xstormy16_legitiamte_address_p): Declare.
10868 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10869 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10870 (EXTRA_CONSTRAINT): Delete.
10871 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10873 (xstormy16_extra_constraint_p): Delete.
10875 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10877 PR tree-optimization/46494
10878 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10879 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10880 (pass_rtl_loop_done): Add TODO_verify_flow.
10881 * fwprop.c (pass_rtl_fwprop): Likewise.
10882 * modulo-sched.c (pass_sms): Likewise.
10883 * tree-ssa-dom.c (pass_dominator): Likewise.
10884 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10885 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10886 (pass_tree_loop_done): Likewise.
10887 * tree-ssa-pre.c (execute_pre): Likewise.
10888 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10889 * tree-ssa-sink.c (pass_sink_code): Likewise.
10890 * tree-vrp.c (pass_vrp): Likewise.
10892 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10894 * config/v850/constraints.md: New file.
10895 * config/v850/v850.md: Include it.
10896 * config/v850/predicates.md (reg_or_0_operand): Use
10897 satisfies_constraint_G.
10898 (special_symbolref_operand): Use satisfies_constraint_K.
10899 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10900 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10901 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10902 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10903 (EXTRA_CONSTRAINT): Delete.
10904 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10905 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10906 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10908 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10911 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10914 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10916 * config/mcore/constraints.md: New file.
10917 * config/mcore/mcore.md: Include it.
10918 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10919 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10920 (REG_CLASS_FROM_LETTER): Delete.
10921 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10922 insn_const_int_ok_for_constraint.
10923 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10924 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10925 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10926 (EXTRA_CONSTRAINT): Delete.
10928 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10931 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10932 (IS_SIGHANDLER): Define.
10933 (sparc64_is_sighandler): New function, split off from
10934 sparc64_fallback_frame_state.
10935 (sparc_is_sighandler): New function, split off from
10936 sparc_fallback_frame_state.
10937 (sparc64_fallback_frame_state): Merge with ...
10938 (sparc_fallback_frame_state): ... this into ...
10939 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10940 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10941 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10942 stack instead of hardcoded offsets.
10944 2011-02-14 Andriy Gapon <avg@freebsd.org>
10947 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10949 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10951 * configure: Regenerate.
10953 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10956 * gcc.c (asm_options): Correct spec matching --target-help.
10958 2011-02-12 Martin Jambor <mjambor@suse.cz>
10960 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10961 to gimple call error.
10963 2011-02-12 Mike Stump <mikestump@comcast.net>
10965 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10966 comments in backslash regions.
10968 2011-02-12 Mike Stump <mikestump@comcast.net>
10969 Jakub Jelinek <jakub@redhat.com>
10970 Iain Sandoe <iains@gcc.gnu.org>
10973 * dwarf2out.c (output_cfa_loc): When required, apply the
10974 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10975 (output_loc_sequence): Likewise.
10976 (output_loc_operands_raw): Likewise.
10977 (output_loc_sequence_raw): Likewise.
10978 (output_cfa_loc): Likewise.
10979 (output_loc_list): Suppress register number adjustment when
10980 calling output_loc_sequence()
10981 (output_die): Likewise.
10983 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10985 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10987 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10988 xtensa_memory_move_cost): New functions.
10989 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10991 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10994 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10995 in the current directory.
10996 * configure: Rebuilt.
10998 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11000 * config/darwin.c (darwin_override_options): Add a hunk missed
11001 from the commit of r168571. Trim comment line lengths and
11002 correct indents of the preceding block.
11004 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11006 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11009 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11011 * common.opt (nostartfiles): New Driver option.
11013 2011-02-11 Xinliang David Li <davidxl@google.com>
11015 PR tree-optimization/47707
11016 * tree-chrec.c (convert_affine_scev): Keep type precision.
11018 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11020 PR tree-optimization/47420
11021 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11023 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11025 PR rtl-optimization/47614
11026 * rtl.h (check_for_inc_dec): Declare.
11027 * dse.c (check_for_inc_dec): Externalize...
11028 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11029 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11031 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11034 * gcc.c (main): Do not compile inputs if there were errors in
11036 * opts-common.c (read_cmdline_option): Check for wrong language
11037 after other error checks.
11039 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11041 * cgraph.c: Fix comment typos.
11042 * cgraph.h: Likewise.
11043 * cgraphunit.c: Likewise.
11044 * ipa-cp.c: Likewise.
11045 * ipa-inline.c: Likewise.
11046 * ipa-prop.c: Likewise.
11047 * ipa-pure-const.c: Likewise.
11048 * ipa-ref.c: Likewise.
11049 * ipa-reference.c: Likewise.
11051 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11054 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11056 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11059 * doc/sourcebuild.texi (Require Support): Document
11060 dg-require-ascii-locale.
11062 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11064 * doc/lto.texi (Write summary): Fix missing parentheses.
11066 2011-02-10 DJ Delorie <dj@redhat.com>
11068 * config/m32c/m32c.c (m32c_option_override): Disable
11069 -fcombine-stack-adjustments until flag value tracking and compare
11070 optimization can be rewritten.
11072 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11074 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11076 (PROCESSOR_DEFAULT64): Likewise.
11078 2011-02-10 Richard Henderson <rth@redhat.com>
11080 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11081 change from 2011-02-03.
11082 * config/rx/rx.c (flags_from_code): Likewise.
11083 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11084 is valid, n/pz otherwise.
11085 (rx_select_cc_mode): Return CCmode if Y is not zero.
11087 2011-02-10 Richard Guenther <rguenther@suse.de>
11089 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11091 2011-02-10 Richard Guenther <rguenther@suse.de>
11093 PR tree-optimization/47677
11094 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11096 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11099 * combine.c (make_compound_operation): Only change shifts into
11100 multiplication for SCALAR_INT_MODE_P.
11102 2011-02-10 Jie Zhang <jie@codesourcery.com>
11106 2011-02-05 Jie Zhang <jie@codesourcery.com>
11108 * web.c (entry_register): Don't clobber the number of the
11109 first uninitialized reference in used[].
11111 2011-02-09 Richard Guenther <rguenther@suse.de>
11113 PR tree-optimization/47664
11114 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11117 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11121 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11123 (PROCESSOR_DEFAULT64): Same.
11124 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11126 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11128 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11130 2011-02-09 Martin Jambor <mjambor@suse.cz>
11132 PR middle-end/45505
11133 * tree-sra.c (struct access): New flags grp_scalar_read and
11134 grp_scalar_write. Changed description of assignment read and write
11136 (dump_access): Dump new flags, reorder all of them.
11137 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11138 to detect multiple scalar reads.
11139 (analyze_access_subtree): Use the new scalar read write flags instead
11140 of the old flags. Adjusted comments.
11142 2011-02-08 DJ Delorie <dj@redhat.com>
11145 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11148 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11150 * config/m68k/uclinux.opt: New.
11151 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11153 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11155 * config/cris/elf.opt (sim): New Driver option.
11157 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11159 * config/xtensa/elf.opt: New.
11160 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11162 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11164 * config/vax/elf.opt: New.
11165 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11167 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11169 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11171 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11173 * config/gnu-user.opt: New.
11174 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11175 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11176 *-*-uclinux*): Use gnu-user.opt.
11178 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11180 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11181 * config/i386/gnu.h (CPP_SPEC): Likewise.
11183 2011-02-08 Ian Lance Taylor <iant@google.com>
11185 * common.opt (fcx-limited-range): Add SetByCombined flag.
11186 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11187 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11188 (fassociative-math, freciprocal-math): Likewise.
11189 (funsafe-math-optimizations): Likewise.
11190 * opth-gen.awk: Handle SetByCombined.
11191 * optc-gen.awk: Likewise.
11192 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11193 (set_unsafe_math_optimizations_flags): Likewise.
11194 * doc/options.texi (Option properties): Document SetByCombined.
11196 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11198 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11199 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11200 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11201 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11202 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11204 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11206 PR tree-optimization/46834
11207 PR tree-optimization/46994
11208 PR tree-optimization/46995
11209 * graphite-sese-to-poly.c (used_outside_reduction): New.
11210 (detect_commutative_reduction): Call used_outside_reduction.
11211 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11212 translate_scalar_reduction_to_array only when at least one
11213 loop-phi/close-phi tuple has been detected.
11215 2011-02-08 Richard Guenther <rguenther@suse.de>
11217 PR middle-end/47639
11218 * tree-vect-generic.c (expand_vector_operations_1): Update
11220 (expand_vector_operations): ... not here. Cleanup EH info
11221 and the CFG if required.
11223 2011-02-08 Richard Guenther <rguenther@suse.de>
11225 PR tree-optimization/47641
11226 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11227 require type compatibility.
11229 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11231 * gimple-low.c (lower_function_body): Don't remove the location of
11232 the return statement here.
11233 (lower_gimple_return): Do it here instead but only if the return
11234 statement is actually used twice.
11236 2011-02-08 Richard Guenther <rguenther@suse.de>
11238 PR tree-optimization/47632
11239 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11240 unused up_to_stmt parameter, return whether cfg-cleanup is
11241 necessary, remove EH info properly.
11242 (forward_propagate_into_gimple_cond): Adjust caller.
11243 (forward_propagate_into_cond): Likewise.
11244 (forward_propagate_comparison): Likewise.
11245 (tree_ssa_forward_propagate_single_use_vars): Make
11246 forward_propagate_comparison case similar to the two others.
11248 2011-02-08 Nick Clifton <nickc@redhat.com>
11250 * config/mn10300/mn10300.opt (mliw): New command line option.
11251 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11252 (liw_bundling): New automaton.
11253 (liw): New attribute.
11254 (liw_op): New attribute.
11255 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11256 (movsi_internal): Add LIW attributes.
11257 (andsi3): Likewise.
11258 (iorsi3): Likewise.
11259 (xorsi3): Likewise.
11260 (addsi3): Separate register and immediate alternatives.
11261 Add LIW attributes.
11262 (subsi3): Likewise.
11264 (aslsi3): Likewise.
11265 (lshrsi3): Likewise.
11266 (ashrsi3): Likewise.
11267 (liw): New pattern.
11268 * config/mn10300/mn10300.c (liw_op_names): New
11269 (mn10300_print_operand): Handle 'W' operand descriptor.
11270 (extract_bundle): New function.
11271 (check_liw_constraints): New function.
11272 (liw_candidate): New function.
11273 (mn10300_bundle_liw): New function.
11274 (mn10300_reorg): New function.
11275 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11276 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11277 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11278 __LIW__ or __NO_LIW__.
11279 * doc/invoke.texi: Describe the -mliw command line option.
11281 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11283 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11284 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11285 pthread_mutex_unlock): Remove.
11286 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11287 * config/pa/t-pa64: Likewise.
11288 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11289 shared libc if not linking against libpthread.
11290 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11292 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11295 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11296 on 10.6 and later to ensure that we always use the unwinder from
11297 the system. Only add -no_compact_unwind when tarteting darwin
11300 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11303 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11304 (vec_interleave_lowv2sf): Ditto.
11305 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11306 (vec_extract_oddv2sf): Ditto.
11308 2011-02-07 Mike Stump <mikestump@comcast.net>
11311 Add __ieee_divdc3 entry point.
11312 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11314 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11315 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11316 * config/darwin.c (darwin_rename_builtins): Add.
11317 * config/darwin-protos.h (darwin_rename_builtins): Add.
11319 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11322 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11325 2011-02-07 Mike Stump <mikestump@comcast.net>
11327 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11329 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11332 * config/avr/libgcc.S (exit): Move .endfunc
11334 2011-02-07 Richard Guenther <rguenther@suse.de>
11336 PR tree-optimization/47615
11337 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11338 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11339 (run_scc_vn): Initialize it.
11340 (visit_reference_op_load): Use it.
11341 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11343 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11345 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11346 DImode trapping arithmetic libfuncs.
11348 2011-02-07 Richard Guenther <rguenther@suse.de>
11350 PR tree-optimization/47621
11351 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11353 (execute_update_addresses_taken): ... here. Make it more
11354 conservative in what we accept.
11356 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11358 * config/sparc/freebsd.h (ASM_SPEC): Define.
11359 * config/sparc/vxworks.h (ASM_SPEC): Define.
11361 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11363 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11365 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11367 * doc/invoke.texi: Remove reference to compiler internals from
11368 user documentation.
11370 * reg-notes.def: Remove REG_VALUE_PROFILE.
11371 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11373 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11375 PR middle-end/47610
11376 * varasm.c (default_section_type_flags): If decl is NULL,
11377 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11379 2011-02-05 Jie Zhang <jie@codesourcery.com>
11382 * web.c (entry_register): Don't clobber the number of the
11383 first uninitialized reference in used[].
11385 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11387 PR tree-optimization/46194
11388 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11389 (build_classic_dist_vector_1): Do not represent classic distance
11390 vectors when the access functions are variating in different loops.
11392 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11394 * config/mips/iris6.opt: New.
11395 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11397 2011-02-04 Richard Henderson <rth@redhat.com>
11398 Steve Ellcey <sje@cup.hp.com>
11401 * config/ia64/predicates.md (mux1_brcst_element): New.
11402 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11403 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11404 (ia64_unpack_sign): New.
11405 (ia64_expand_unpack): Rewrite using new routines.
11406 (ia64_expand_widen_sum): Ditto.
11407 (ia64_expand_dot_prod_v8qi): Ditto.
11408 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11409 routines, add endian check.
11410 (pmpy2_even): Rename from pmpy2_r, add endian check.
11411 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11412 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11413 (vec_widen_smult_hi_v4hi): Ditto.
11414 (vec_widen_umult_lo_v4hi): Ditto.
11415 (vec_widen_umult_hi_v4hi): Ditto.
11416 (mulv2si3): Change endian checks.
11417 (sdot_prodv4hi): Rewrite with new calls.
11418 (udot_prodv4hi): New.
11419 (vec_pack_ssat_v4hi): Add endian check.
11420 (vec_pack_usat_v4hi): Ditto.
11421 (vec_pack_ssat_v2si): Ditto.
11422 (max1_even): Rename from max1_r, add endian check.
11423 (max1_odd): Rename from max1_l, add endian check.
11424 (*mux1_rev): Format change.
11425 (*mux1_mix): Ditto.
11426 (*mux1_shuf): Ditto.
11427 (*mux1_alt): Ditto.
11428 (*mux1_brcst_v8qi): Use new predicate.
11429 (vec_extract_evenv8qi): Remove endian check.
11430 (vec_extract_oddv8qi): Ditto.
11431 (vec_interleave_lowv4hi): Format change.
11432 (vec_interleave_highv4hi): Ditto.
11433 (mix2_even): Rename from mix2_r, add endian check.
11434 (mix2_odd): Rename from mux2_l, add endian check.
11435 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11436 (vec_extract_evenodd_helper): Format change.
11437 (vec_extract_evenv4hi): Remove endian check.
11438 (vec_extract_oddv4hi): Remove endian check.
11439 (vec_interleave_lowv2si): Format change.
11440 (vec_interleave_highv2si): Format change.
11441 (vec_initv2si): Remove endian check.
11442 (vecinit_v2si): Add endian check.
11443 (reduc_splus_v2sf): Add endian check.
11444 (reduc_smax_v2sf): Ditto.
11445 (reduc_smin_v2sf): Ditto.
11446 (vec_initv2sf): Remove endian check.
11447 (fpack): Add endian check.
11448 (fswap): Add endian check.
11449 (vec_interleave_highv2sf): Add endian check.
11450 (vec_interleave_lowv2sf): Add endian check.
11451 (fmix_lr): Add endian check.
11452 (vec_setv2sf): Format change.
11453 (*vec_extractv2sf_0_be): Use shift to extract operand.
11454 (*vec_extractv2sf_1_be): New.
11455 (vec_pack_trunc_v4hi): Add endian check.
11456 (vec_pack_trunc_v2si): Format change.
11458 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11460 PR inline-asm/23200
11461 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11462 do bb, locus and block comparison and disallow loads if it is not set.
11463 (stmt_is_replaceable_p): New function.
11464 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11466 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11467 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11469 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11471 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11473 * config/rs6000/xilinx.opt: New.
11474 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11476 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11478 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11480 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11482 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11483 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11484 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11485 secondary_reload_info, xtensa_secondary_reload): Remove.
11486 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11487 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11488 (xtensa_preferred_reload_class): Make static. Change return and
11489 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11490 Use CONST_DOUBLE_P predicate.
11491 (xtensa_preferred_output_reload_class): New function.
11492 (xtensa_secondary_reload): Make static.
11494 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11496 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11497 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11498 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11500 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11502 PR middle-end/31490
11503 * output.h (SECTION_RELRO): Define.
11504 (SECTION_MACH_DEP): Adjust.
11505 (get_variable_section): New prototype.
11506 * varpool.c (varpool_finalize_named_section_flags): New function.
11507 (varpool_assemble_pending_decls): Call it.
11508 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11509 * cgraphunit.c (cgraph_output_in_order): Call
11510 varpool_finalize_named_section_flags.
11511 * varasm.c (get_section): Allow section flags conflicts between
11512 relro and read-only sections if the section hasn't been declared yet.
11513 Set SECTION_OVERRIDE after diagnosing section type conflict.
11514 (get_variable_section): No longer static.
11515 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11516 readonly sections that need relocations.
11517 (decl_readonly_section_1): New function.
11518 (decl_readonly_section): Use it.
11521 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11522 Steve Ellcey <sje@cup.hp.com>
11524 PR middle-end/31490
11525 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11526 if section attribute used.
11528 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11530 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11531 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11532 (darwin_init_sections): Remove assertion.
11534 2011-02-03 Nick Clifton <nickc@redhat.com>
11536 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11538 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11539 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11540 instead of "n" and "pz".
11541 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11544 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11547 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11548 fma, expand FMA_EXPR as fma{,f,l} call.
11551 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11552 copy them into a unsigned char variable and pass address of it to
11553 lto_output_data_stream.
11556 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11557 around backend_init_target and lang_dependent_init_target calls.
11558 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11559 (verify_cgraph_node): Don't call set_cfun here. Use
11560 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11561 Set error_found for incorrectly represented calls to thunks.
11563 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11566 PR rtl-optimization/43494
11567 * rtl.h (for_each_inc_dec_fn): New type.
11568 (for_each_inc_dec): Declare.
11569 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11570 (for_each_inc_dec_find_inc_dec): New fn.
11571 (for_each_inc_dec_find_mem): New fn.
11572 (for_each_inc_dec): New fn.
11573 * dse.c (struct insn_size): Remove.
11574 (replace_inc_dec, replace_inc_dec_mem): Remove.
11575 (emit_inc_dec_insn_before): New fn.
11576 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11577 (canon_address): Pass mem modes to cselib_lookup.
11578 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11579 (cselib_lookup_from_insn): Likewise.
11580 (cselib_subst_to_values): Likewise.
11581 * cselib.c (find_slot_memmode): New var.
11582 (cselib_find_slot): New fn. Use it instead of
11583 htab_find_slot_with_hash everywhere.
11584 (entry_and_rtx_equal_p): Use find_slot_memmode.
11585 (autoinc_split): New fn.
11586 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11587 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11588 Deal with autoinc. Special-case recursion into MEMs.
11589 (cselib_hash_rtx): Likewise.
11590 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11591 address and MEM modes.
11592 (cselib_subst_to_values): Add memmode, pass it on.
11594 (cselib_lookup): Add memmode argument, pass it on.
11595 (cselib_lookup_from_insn): Add memmode.
11596 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11597 (struct cselib_record_autoinc_data): New.
11598 (cselib_record_autoinc_cb): New fn.
11599 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11600 mode to cselib_lookup. Reset autoinced REGs here instead of...
11601 (cselib_process_insn): ... here.
11602 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11604 (add_uses): Likewise, also to cselib_subst_to_values.
11605 (add_stores): Likewise.
11606 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11607 cselib_subst_to_values.
11608 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11609 * gcse.c (do_local_cprop): Adjusted.
11610 * postreload.c (reload_cse_simplify_set): Adjusted.
11611 (reload_cse_simplify_operands): Adjusted.
11612 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11614 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11616 PR tree-optimization/45122
11617 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11618 unsafe assumptions when there's more than one loop exit.
11620 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11623 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11624 Document using vector double with the load/store builtins, and
11625 that the load/store builtins always use Altivec instructions.
11627 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11628 to use altivec memory instructions, even on VSX.
11629 (vector_altivec_store_<mode>): Ditto.
11631 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11634 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11635 V2DF, V2DI support to load/store overloaded builtins.
11637 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11638 altivec load/store builtins for V2DF/V2DI types.
11640 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11641 set avoid indexed addresses on power6 if -maltivec.
11642 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11643 vector_altivec_load/vector_altivec_store builtins.
11644 (altivec_expand_st_builtin): Ditto.
11645 (altivec_expand_builtin): Add VSX memory builtins.
11646 (rs6000_init_builtins): Add V2DI types to internal types.
11647 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11648 load/store builtins.
11649 (rs6000_address_for_altivec): Insure memory address is appropriate
11652 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11653 vec_vsx_ld and vec_vsx_st.
11654 (vsx_store_<mode>): Ditto.
11656 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11657 variables to hold long long types for VSX vector memory builtins.
11658 (RS6000_BTI_unsigned_long_long): Ditto.
11659 (long_long_integer_type_internal_node): Ditti.
11660 (long_long_unsigned_type_internal_node): Ditti.
11662 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11663 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11664 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11666 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11668 (vec_vsx_st): Ditto.
11670 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11672 * config/pa/pa-hpux10.opt: New.
11673 * config/hpux11.opt (pthread): New Driver option.
11674 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11675 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11677 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11679 * config/ia64/vms.opt: New.
11680 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11682 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11685 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11686 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11687 generator functions.
11688 (vsx_floatuns<VSi><mode>2): Ditto.
11689 (vsx_fix_trunc<mode><VSi>2): Ditto.
11690 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11692 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11694 * config/i386/djgpp.opt (posix): New Driver option.
11696 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11698 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11699 Move to the unsupported targets list.
11701 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11703 PR rtl-optimization/47525
11704 * df-scan.c: Update copyright years.
11705 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11706 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11708 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11710 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11711 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11712 (ASM_OUTPUT_ASCII): Remove.
11713 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11715 2011-02-02 Jeff Law <law@redhat.com>
11717 PR middle-end/47543
11718 * reload.c (find_reloads_address): Handle reg+d address where both
11719 components are invalid by reloading the entire address.
11721 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11722 Richard Guenther <rguenther@suse.de>
11724 PR tree-optimization/40979
11726 * passes.c (init_optimization_passes): After LIM call copy_prop
11727 and DCE to clean up.
11728 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11730 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11732 PR tree-optimization/47576
11733 PR tree-optimization/47555
11734 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11735 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11736 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11737 * tree-scalar-evolution.c (follow_ssa_edge): Use
11738 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11740 2011-02-02 Richard Guenther <rguenther@suse.de>
11742 PR tree-optimization/47566
11743 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11745 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11749 * tree-inline.c (declare_return_variable): Remove unused caller
11754 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11755 * cfgexpand.c (account_used_vars_for_block): Use them.
11756 * tree-nrv.c (tree_nrv): Likewise.
11757 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11758 (dump_scope_block): Likewise.
11759 (remove_unused_locals): Likewise.
11763 * tree-inline.c (declare_return_variable): Add result decl to
11764 local decls only once.
11765 * gimple-low.c (record_vars_into): Mark newly-created variables
11768 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11774 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11776 (no_real_insns_p, schedule_block, set_priorities): Drop special
11777 treatment of boundary debug insns.
11778 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11779 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11780 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11781 (BOUNDARY_DEBUG_INSN_P): Likewise.
11782 (SCHEDULE_DEBUG_INSN_P): Likewise.
11783 * sched-rgn.c (init_ready_list): Drop special treatment of
11784 boundary debug insns.
11785 * final.c (rest_of_clean_state): Clear notes' BB.
11787 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11789 * config/openbsd.opt (assert=): New Driver option.
11791 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11793 * config/i386/nto.opt: New.
11794 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11796 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11798 * config/i386/netware.opt: New.
11799 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11801 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11803 * config/interix.opt (posix): New Driver option.
11805 2011-02-01 DJ Delorie <dj@redhat.com>
11807 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11809 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11812 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11814 PR tree-optimization/47561
11815 * toplev.c (process_options): Print the Graphite flags. Add
11816 flag_loop_flatten to the list of options requiring Graphite.
11818 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11820 * config/i386/cygming.opt (posix): New Driver option.
11822 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11824 * config/arm/vxworks.opt: New.
11825 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11827 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11829 * config/alpha/elf.opt: New.
11830 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11831 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11833 2011-02-01 Richard Guenther <rguenther@suse.de>
11835 PR tree-optimization/47559
11836 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11837 store-motion on references that can throw.
11839 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11841 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11842 * tree-pass.h (TDF_CSELIB): New macro.
11843 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11844 cselib_lookup): Check for it rather than for TDF_DETAILS.
11846 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11849 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11850 is HOST_BIT_BUCKET.
11852 * opts.c (finish_options): Don't add x_aux_base_name if it is
11855 2011-02-01 Richard Guenther <rguenther@suse.de>
11857 PR tree-optimization/47555
11859 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11861 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11863 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11866 * config/lm32/t-lm32: Add multilib for all CPU options.
11868 2011-02-01 Richard Guenther <rguenther@suse.de>
11870 PR tree-optimization/47541
11871 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11872 sure to have a field at offset zero.
11874 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11876 * config/arc/arc.opt (EB, EL): New Driver options.
11878 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11880 * config/alpha/osf5.opt: New.
11881 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11883 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11885 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11887 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11889 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11890 -floop-interchange.
11891 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11892 is an alias of -floop-interchange and that it requires the
11893 Graphite infrastructure.
11894 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11895 flag_loop_interchange based on the value of flag_tree_loop_linear.
11897 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11898 Richard Guenther <rguenther@suse.de>
11900 PR tree-optimization/47538
11901 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11902 type instead of r1type, except for comparisons. For right
11903 shifts and comparisons punt if there are mismatches in
11904 sizetype vs. non-sizetype types.
11906 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11908 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11911 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11913 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11915 * configure: Regenerate.
11917 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11919 * configure.ac (gcc_cv_ld_static_option): Define.
11920 (gcc_cv_ld_dynamic_option): Define.
11921 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11923 (HAVE_LD_STATIC_DYNAMIC): Update message.
11924 (LD_STATIC_OPTION): Define.
11925 (LD_DYNAMIC_OPTION): Define.
11926 * configure: Regenerate.
11927 * config.in: Regenerate.
11928 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11929 HAVE_LD_STATIC_DYNAMIC]: Use them.
11931 2011-01-31 Nick Clifton <nickc@redhat.com>
11933 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11934 registers inside interrupt handlers if the handler is not a leaf
11937 2011-01-31 Nick Clifton <nickc@redhat.com>
11939 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11940 reg_renumber returning an INVALID_REGNUM.
11942 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11945 * doc/install.texi: Document host options discarded when cross
11946 configuring target libraries.
11948 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11951 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11954 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11956 (no_real_insns_p, schedule_block, set_priorities): Drop special
11957 treatment of boundary debug insns.
11958 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11959 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11960 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11961 (BOUNDARY_DEBUG_INSN_P): Likewise.
11962 (SCHEDULE_DEBUG_INSN_P): Likewise.
11963 * sched-rgn.c (init_ready_list): Drop special treatment of
11964 boundary debug insns.
11965 * final.c (rest_of_clean-state): Clear notes' BB.
11967 2011-01-31 Alan Modra <amodra@gmail.com>
11969 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11970 toc relative expressions as we do in print_operand_address.
11972 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11974 * doc/extend.texi: Follow spelling conventions.
11975 * doc/invoke.texi: Fix a typo.
11977 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11979 * config/hpux11.opt: New.
11980 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11981 ia64*-*-hpux*): Use hpux11.opt.
11983 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11985 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11988 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11990 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11993 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11995 * doc/install.texi (Binaries): Remove outdated reference for
11996 Motorola 68HC11/68HC12 downloads.
11998 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12000 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12003 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12006 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12009 2011-01-28 Ahmad Sharif <asharif@google.com>
12011 * value-prof.c (check_counter): Corrected error message.
12013 2011-01-29 Jie Zhang <jie@codesourcery.com>
12015 * config/arm/arm.c (arm_legitimize_reload_address): New.
12016 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12017 arm_legitimize_reload_address.
12018 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12020 2011-01-28 Ian Lance Taylor <iant@google.com>
12022 * godump.c (go_define): Ignore macros whose definitions include
12023 two adjacent operands.
12025 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12028 * varasm.c (force_const_mem): Store copy of x in desc->constant
12029 instead of x itself.
12030 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12031 itself into REG_EQUAL note.
12033 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12035 * config/freebsd.opt (posix, rdynamic): New Driver options.
12037 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12039 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12040 -Bstatic/-Bdynamic.
12041 * configure: Regenerate.
12043 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12045 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12046 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12048 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12050 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12051 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12052 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12053 (s390_preferred_reload_class): Make static. Change return and
12054 'rclass' argument type to reg_class_t.
12056 2011-01-27 Jan Hubicka <jh@suse.cz>
12058 PR middle-end/46949
12059 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12060 (process_function_and_variable_attributes): Check defined weakrefs.
12062 2011-01-27 Martin Jambor <mjambor@suse.cz>
12064 PR tree-optimization/47228
12065 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12066 build_ref_for_offset.
12068 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12070 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12072 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12074 PR rtl-optimization/46856
12075 * postreload.c (reload_combine_recognize_const_pattern): Do not
12076 separate cc0 setter and user on cc0 targets.
12078 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12081 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12082 passed a VOID_TYPE expression, immediately emit an error and
12083 return error_mark_node.
12085 2011-01-26 Jeff Law <law@redhat.com>
12087 PR rtl-optimization/47464
12088 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12089 rather than may_trap_p as needed.
12091 2011-01-26 DJ Delorie <dj@redhat.com>
12093 PR rtl-optimization/46878
12094 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12095 setter/user dependency as well.
12097 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12099 PR rtl-optimization/44469
12100 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12101 after removing trivially dead basic blocks.
12103 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12105 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12106 * config/frv/frv.h (LINK_SPEC): Likewise.
12107 * config/i386/netware.h (LINK_SPEC): Likewise.
12108 * config/m68k/linux.h (ASM_SPEC): Likewise.
12109 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12110 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12111 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12112 * config/sparc/linux.h (ASM_SPEC): Likewise.
12113 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12114 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12116 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12118 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12119 * config/frv/frv.h (ASM_SPEC): Likewise.
12120 * config/m68k/linux.h (ASM_SPEC): Likewise.
12121 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12122 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12123 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12124 * config/sparc/linux.h (ASM_SPEC): Likewise.
12125 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12126 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12128 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12130 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12131 * config/frv/frv.h (LINK_SPEC): Likewise.
12132 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12134 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12136 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12137 * config/frv/frv.h (ASM_SPEC): Likewise.
12138 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12139 * config/m68k/linux.h (ASM_SPEC): Likewise.
12140 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12141 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12142 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12143 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12144 * config/sparc/linux.h (ASM_SPEC): Likewise.
12145 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12146 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12147 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12149 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12152 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12154 (vec_extract_evenodd_help): Ditto.
12155 (vec_extract_evenv4hi): Ditto.
12156 (vec_extract_oddv4hi): Ditto.
12157 (vec_interleave_lowv2si): Ditto.
12158 (vec_interleave_highv2si): Ditto.
12159 (vec_extract_evenv2si): Ditto.
12160 (vec_extract_oddv2si: Ditto.
12161 (vec_pack_trunc_v2si): Ditto.
12163 2011-01-22 Jan Hubicka <jh@suse.cz>
12166 * cgraph.h (cgraph_local_info): New field can_change_signature.
12167 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12168 signature can change.
12169 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12171 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12172 (cgraph_function_versioning): We can not change signature of functions
12173 that don't allow that.
12174 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12175 (lto_input_node): Likewise.
12176 * ipa-inline.c (compute_inline_parameters): Compute
12177 local.can_change_signature.
12178 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12179 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12180 functions that can not change signature.
12181 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12182 init_cumulative_args): Do not use local calling conventions
12183 for functions that can not change signature.
12185 2011-01-22 Jan Hubicka <jh@suse.cz>
12187 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12189 2011-01-26 Richard Guenther <rguenther@suse.de>
12191 PR tree-optimization/47190
12192 * cgraphunit.c (process_common_attributes): New function.
12193 (process_function_and_variable_attributes): Use it.
12195 2011-01-26 Richard Guenther <rguenther@suse.de>
12198 * cgraphbuild.c (record_eh_tables): Record reference to personality
12201 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12204 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12205 non-debug insns from moving up.
12207 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12210 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12211 t-dlldir{,-x} fragment for build and add it to tmake_file.
12212 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12213 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12214 * config/i386/t-dlldir: New file.
12215 (SHLIB_DLLDIR): Define.
12216 * config/i386/t-dlldir-x: New file.
12217 (SHLIB_DLLDIR): Define.
12218 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12219 (SHLIB_INSTALL): Use it.
12221 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12224 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12225 lower bound of the allowed Thumb-2 coprocessor load/store
12226 index range to -256. Add explaining comment.
12228 2011-01-25 Ian Lance Taylor <iant@google.com>
12230 * godump.c (go_define): Improve lexing of macro expansion to only
12231 accept expressions which match Go spec.
12233 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12236 * tree.c (handle_dll_attribute): Handle it.
12237 * doc/extend.texi (@item dllexport): Mention it.
12238 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12240 2011-01-25 Ian Lance Taylor <iant@google.com>
12242 PR tree-optimization/26854
12243 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12244 (decl_jump_unsafe): Move higher in file, with no other change.
12245 (bind): Set has_jump_unsafe_decl if appropriate.
12246 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12247 (check_earlier_gotos): Likewise.
12248 (c_check_switch_jump_warnings): Likewise.
12250 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12252 * doc/invoke.texi (Warning Options): Add missing hyphen.
12253 (-fprofile-dir): Minor grammatical fixes.
12254 (-fbranch-probabilities): Likewise.
12256 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12260 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12262 (no_real_insns_p, schedule_block, set_priorities): Drop special
12263 treatment of boundary debug insns.
12264 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12265 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12266 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12267 (BOUNDARY_DEBUG_INSN_P): Likewise.
12268 (SCHEDULE_DEBUG_INSN_P): Likewise.
12269 * sched-rgn.c (init_ready_list): Drop special treatment of
12270 boundary debug insns.
12271 * final.c (rest_of_clean-state): Clear notes' BB.
12273 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12275 * Makefile.in (LAMBDA_H): Removed.
12276 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12277 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12278 lambda-trans.o, and tree-loop-linear.o.
12279 (lto-symtab.o): Remove dependence on LAMBDA_H.
12280 (tree-loop-linear.o): Remove rule.
12281 (lambda-mat.o): Same.
12282 (lambda-trans.o): Same.
12283 (lambda-code.o): Same.
12284 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12285 (tree-vect-slp.o): Same.
12286 * hwint.h (gcd): Moved here.
12287 (least_common_multiple): Same.
12288 * lambda-code.c: Removed.
12289 * lambda-mat.c: Removed.
12290 * lambda-trans.c: Removed.
12291 * lambda.h: Removed.
12292 * tree-loop-linear.c: Removed.
12293 * lto-symtab.c: Do not include lambda.h.
12294 * omega.c (gcd): Removed.
12295 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12296 * tree-data-ref.c (print_lambda_vector): Moved here.
12297 (lambda_vector_copy): Same.
12298 (lambda_matrix_copy): Same.
12299 (lambda_matrix_id): Same.
12300 (lambda_vector_first_nz): Same.
12301 (lambda_matrix_row_add): Same.
12302 (lambda_matrix_row_exchange): Same.
12303 (lambda_vector_mult_const): Same.
12304 (lambda_vector_negate): Same.
12305 (lambda_matrix_row_negate): Same.
12306 (lambda_vector_equal): Same.
12307 (lambda_matrix_right_hermite): Same.
12308 * tree-data-ref.h: Do not include lambda.h.
12309 (lambda_vector): Moved here.
12310 (lambda_matrix): Same.
12311 (dependence_level): Same.
12312 (lambda_transform_legal_p): Removed declaration.
12313 (lambda_collect_parameters): Same.
12314 (lambda_compute_access_matrices): Same.
12315 (lambda_vector_gcd): Same.
12316 (lambda_vector_new): Same.
12317 (lambda_vector_clear): Same.
12318 (lambda_vector_lexico_pos): Same.
12319 (lambda_vector_zerop): Same.
12320 (lambda_matrix_new): Same.
12321 * tree-flow.h (least_common_multiple): Removed declaration.
12322 * tree-parloops.c (lambda_trans_matrix): Moved here.
12323 (LTM_MATRIX): Same.
12324 (LTM_ROWSIZE): Same.
12325 (LTM_COLSIZE): Same.
12326 (LTM_DENOMINATOR): Same.
12327 (lambda_trans_matrix_new): Same.
12328 (lambda_matrix_vector_mult): Same.
12329 (lambda_transform_legal_p): Same.
12330 * tree-pass.h (pass_linear_transform): Removed declaration.
12331 * tree-ssa-loop.c (tree_linear_transform): Removed.
12332 (gate_tree_linear_transform): Removed.
12333 (pass_linear_transform): Removed.
12334 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12335 flag_loop_interchange.
12337 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12339 PR tree-optimization/47265
12340 PR tree-optimization/47443
12341 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12342 if name still has some uses.
12344 2011-01-25 Martin Jambor <mjambor@suse.cz>
12346 PR tree-optimization/47382
12347 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12348 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12350 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12352 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12353 sjlj_except_unwind_info.
12355 2011-01-25 Richard Guenther <rguenther@suse.de>
12357 PR tree-optimization/47426
12358 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12359 visible functions results escape.
12361 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12364 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12365 (arm_get_frame_offsets): Use it.
12367 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12368 Jakub Jelinek <jakub@redhat.com>
12370 PR tree-optimization/47271
12371 * tree-if-conv.c (bb_postdominates_preds): New.
12372 (if_convertible_bb_p): Call bb_postdominates_preds.
12373 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12374 (predicate_scalar_phi): Call bb_postdominates_preds.
12376 2011-01-25 Nick Clifton <nickc@redhat.com>
12378 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12379 * config/rx/rx.c (rx_function_value): Likewise.
12380 (rx_promote_function_mode): Likewise.
12381 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12382 in order to make it legitimate.
12383 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12384 make sure that the first operand is the same as the result register.
12385 (addsi3_unspec): Delete.
12386 (subdi3): Do not accept immediate operands.
12387 (subdi3_internal): Likewise.
12389 2011-01-25 Jeff Law <law@redhat.com>
12391 PR rtl-optimization/37273
12392 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12393 handle them like argument loads from stack slots. Do not double
12394 count memory for memory constants and argument loads from stack slots.
12396 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12398 PR tree-optimization/47427
12399 PR tree-optimization/47428
12400 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12401 coalesce if the new root var would be TREE_READONLY.
12403 2011-01-25 Richard Guenther <rguenther@suse.de>
12405 PR middle-end/47414
12406 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12407 correct type for TBAA.
12409 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12411 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12412 (close_phi_written_to_memory): Call for_each_index with
12413 dr_indices_valid_in_loop.
12415 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12417 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12418 when it is initialized.
12420 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12422 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12423 call to graphite_find_data_references_in_stmt.
12424 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12425 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12426 call to graphite_find_data_references_in_stmt.
12427 (analyze_drs_in_stmts): Same.
12428 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12429 in which the scalar analysis of indices is performed.
12430 (create_data_ref): Same. Update call to dr_analyze_indices.
12431 (find_data_references_in_stmt): Update call to create_data_ref.
12432 (graphite_find_data_references_in_stmt): Same.
12433 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12435 (create_data_ref): Same.
12436 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12437 call to create_data_ref.
12439 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12441 * graphite-sese-to-poly.c (build_poly_scop): Move
12442 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12446 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12447 VAR_DECL, PARM_DECL, and RESULT_DECL.
12449 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12451 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12452 in a reduction PBB.
12453 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12454 that have already been marked as PBB_IS_REDUCTION.
12456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12458 * graphite-scop-detection.c (same_close_phi_node): New.
12459 (remove_duplicate_close_phi): New.
12460 (make_close_phi_nodes_unique): New.
12461 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12463 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12465 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12466 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12467 of both data references to be the same.
12469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12471 * graphite-dependences.c (build_lexicographical_constraint): Remove
12472 the gdim parameter.
12473 (build_lexicographical_constraint): Adjust call to
12474 ppl_powerset_is_empty.
12475 (dependence_polyhedron): Same.
12476 (graphite_legal_transform_dr): Same.
12477 (graphite_carried_dependence_level_k): Same.
12478 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12480 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12482 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12484 * graphite-sese-to-poly.c
12485 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12486 (close_phi_written_to_memory): New.
12487 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12490 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12492 * doc/install.texi: Update the expected version number of PPL to 0.11.
12493 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12494 #if PPL_VERSION_MINOR < 11.
12496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12498 * graphite-dependences.c: Include graphite-cloog-util.h.
12499 (new_poly_ddr): Inlined into dependence_polyhedron.
12500 (free_poly_ddr): Moved close by new_poly_ddr.
12501 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12502 Early return NULL when ppl_powerset_is_empty returns true.
12503 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12504 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12505 (graphite_legal_transform_dr): Call new_poly_ddr.
12506 (graphite_carried_dependence_level_k): Same.
12507 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12508 (dot_transformed_deps_stmt_1): Removed.
12509 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12510 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12511 (dot_deps_1): Call dot_deps_2.
12512 * Makefile.in (graphite-dependences.o): Add missing dependence on
12513 graphite-cloog-util.h.
12515 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12517 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12518 (build_lexicographical_constraint): Same.
12519 (dependence_polyhedron_1): Same.
12520 (graphite_legal_transform_dr): Same.
12521 (graphite_carried_dependence_level_k): Same.
12522 * graphite-ppl.c (ppl_powerset_is_empty): New.
12523 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12524 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12526 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12528 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12529 the "a followed by b" relation and document it.
12531 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12533 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12534 iteration when the bag of constraints is empty.
12536 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12538 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12540 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12542 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12543 nest and two loop depths as parameters.
12544 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12545 lst_perfect_nestify.
12547 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12549 * graphite-dependences.c (print_pddr): Call
12550 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12552 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12554 * graphite-ppl.c (debug_gmp_value): New.
12555 * graphite-ppl.h (debug_gmp_value): Declared.
12557 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12559 * doc/install.texi: Document availability of cloog-0.16.
12561 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12563 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12564 invalid postdominance info.
12566 2011-01-24 Jan Hubicka <jh@suse.cz>
12569 * doc/extend.texi (weak pragma): Drop claim that it must
12570 appear before definition.
12571 * varasm.c (merge_weak, declare_weak): Only sanity check
12572 that DECL is not output at a time it is declared weak.
12574 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12576 * machmode.def: Fixed comments.
12578 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12580 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12582 2011-01-24 Paul Koning <ni1d@arrl.net>
12584 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12587 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12590 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12591 (block_info): Add scanned and prev.
12592 (move_or_delete_vzeroupper_2): Return if the basic block
12593 has been scanned and the upper 128bit state is unchanged
12594 from the last scan.
12595 (move_or_delete_vzeroupper_1): Return true if the exit
12597 (move_or_delete_vzeroupper): Visit basic blocks using the
12598 work-list based algorithm based on vt_find_locations in
12601 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12603 2011-01-24 Nick Clifton <nickc@redhat.com>
12605 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12606 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12607 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12608 then define __v850e1__.
12609 * doc/invoke.texi: Document -mv850es.
12611 2011-01-24 Richard Henderson <rth@redhat.com>
12613 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12614 compound unordered comparisons.
12615 * config/rx/rx.c (rx_split_fp_compare): Remove.
12616 * config/rx/rx-protos.h: Update.
12617 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12618 (cbranchsf4): Don't call rx_split_fp_compare.
12619 (*cbranchsf4): Use rx_split_cbranch.
12620 (*cmpsf): Don't accept "i" constraint.
12621 (*conditional_branch): Only valid after reload.
12622 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12624 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12627 * config/rs6000/altivec.md (vector constant splitters): Add
12628 support for creating vector single precision constants if -mvsx is
12629 used and we would create the constant using Altivec primitives.
12631 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12632 Richard Sandiford <rdsandiford@googlemail.com>
12634 PR rtl-optimization/47166
12635 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12636 mechanism for PRE_MODIFY and POST_MODIFY.
12637 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12640 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12642 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12644 2011-01-22 Jan Hubicka <jh@suse.cz>
12647 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12649 2011-01-22 Jan Hubicka <jh@suse.cz>
12651 PR tree-optimization/43884
12653 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12654 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12656 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12658 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12659 * config/s390/s390.c (s390_register_move_cost,
12660 s390_memory_move_cost): New.
12661 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12663 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12665 PR middle-end/47401
12666 * except.c (sjlj_assign_call_site_values): Move setting the
12667 crtl->uses_eh_lsda flag to ...
12668 (sjlj_mark_call_sites): ... here.
12669 (sjlj_emit_function_enter): Support NULL dispatch label.
12670 (sjlj_build_landing_pads): In a function with no landing pads
12671 that still has must-not-throw regions, generate code to register
12672 a personality function with empty LSDA.
12674 2011-01-21 Richard Henderson <rth@redhat.com>
12676 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12678 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12680 * compare-elim.c: New file.
12681 * Makefile.in (OBJS-common): Add it.
12682 (compare-elim.o): New.
12683 * common.opt (fcompare-elim): New.
12684 * opts.c (default_options_table): Add OPT_fcompare_elim.
12685 * tree-pass.h (pass_compare_elim_after_reload): New.
12686 * passes.c (init_optimization_passes): Add it.
12687 * recog.h: Protect against re-inclusion.
12688 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12689 * doc/invoke.texi (-fcompare-elim): Document it.
12690 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12691 * doc/tm.texi: Rebuild.
12693 2011-01-22 Nick Clifton <nickc@redhat.com>
12695 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12696 rx_split_fp_compare.
12698 2011-01-22 Nick Clifton <nickc@redhat.com>
12700 * config/rx/rx.md (UNSPEC_CONST): New.
12701 (deallocate_and_return): Wrap the amount popped off the stack in
12702 an UNSPEC_CONST in order to stop it being rejected by
12703 -mmax-constant-size.
12704 (pop_and_return): Add a "(return)" rtx.
12705 (call): Drop the immediate operand.
12706 (call_internal): Likewise.
12707 (call_value): Likewise.
12708 (call_value_internal): Likewise.
12709 (sibcall_internal): Likewise.
12710 (sibcall_value_internal): Likewise.
12711 (sibcall): Likewise. Generate an explicit call using
12713 (sibcall_value): Likewise.
12714 (mov<>): FAIL if a constant operand is not legitimate.
12715 (addsi3_unpsec): New pattern.
12717 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12718 (ok_for_max_constant): New function.
12719 (gen_safe_add): New function.
12720 (rx_expand_prologue): Use gen_safe_add.
12721 (rx_expand_epilogue): Likewise.
12722 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12725 2011-01-21 Jeff Law <law@redhat.com>
12727 PR tree-optimization/47053
12728 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12729 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12730 statements are deleted.
12731 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12732 is nonempty, then purge dead edges and cleanup the CFG.
12734 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12737 Temporarily revert:
12738 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12740 * tree-dfa.c (create_var_ann): Mark variable as used.
12742 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12744 PR middle-end/45566
12745 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12746 notes from other section in hot/cold partitioning even if
12747 last_action is -3. Increment call_site_base.
12749 PR rtl-optimization/47366
12750 * fwprop.c (forward_propagate_into): Return bool. If
12751 any changes are made, -fnon-call-exceptions is used and
12752 REG_EH_REGION note is present, call purge_dead_edges
12753 and return true if it purged anything.
12754 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12755 any EH edges were purged.
12757 2011-01-21 Jeff Law <law@redhat.com>
12759 PR rtl-optimization/41619
12760 * caller-save.c (setup_save_areas): Break out code to determine
12761 which hard regs are live across calls by examining the reload chains
12762 so that it is always used.
12763 Eliminate code which checked REG_N_CALLS_CROSSED.
12765 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12767 PR tree-optimization/47355
12768 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12769 NOP has non-debug uses beyond PHIs in new_bb.
12771 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12774 * cfgexpand.c (account_used_vars_for_block): Only account vars
12775 that are annotated as used.
12776 (estimated_stack_frame_size): Don't set TREE_USED.
12777 * tree-dfa.c (create_var_ann): Mark variable as used.
12779 2011-01-21 Richard Guenther <rguenther@suse.de>
12781 PR middle-end/47395
12782 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12784 2011-01-21 Richard Guenther <rguenther@suse.de>
12786 PR tree-optimization/47365
12787 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12788 (vn_reference_lookup_pieces): Adjust.
12789 (vn_reference_lookup): Likewise.
12790 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12791 (vn_reference_lookup_3): Only look through kills if in
12792 VN_WALKREWRITE mode.
12793 (vn_reference_lookup_pieces): Adjust.
12794 (vn_reference_lookup): Likewise.
12795 (visit_reference_op_load): Likewise.
12796 (visit_reference_op_store): Likewise.
12797 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12798 (compute_avail): Likewise.
12799 (eliminate): Likewise.
12801 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12803 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12804 DECL_IGNORED_P non-reg vars if they are used.
12806 PR tree-optimization/47391
12807 * varpool.c (const_value_known_p): Return false if
12810 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12813 * config/i386/i386.c (ix86_local_alignment): Handle
12814 case for va_list_type_node is nil.
12815 (ix86_canonical_va_list_type): Likewise.
12817 2011-01-21 Alan Modra <amodra@gmail.com>
12819 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12820 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12822 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12824 * config/arm/arm.md (define_attr type): Rename f_load
12825 and f_store to f_fpa_load and f_fpa_store. Update.
12826 (write_conflict): Deal with rename fallout.
12827 (*push_fp_multi): Likewise.
12828 * config/arm/fpa.md (f_load): Use f_fpa_load.
12829 (f_store): Use f_fpa_store.
12830 (*movsf_fpa): Likewise.
12831 (*movdf_fpa): Likewise.
12832 (*movxf_fpa): Likewise.
12833 (*thumb2_movsf_fpa): Likewise.
12834 (*thumb2_movdf_fpa): Likewise.
12835 (*thumb2_movxf_fpa): Likewise.
12836 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12837 f_loadd and f_stored.
12838 (*thumb2_movdi_vfp): Likewise.
12839 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12840 (*thumb2_movsi_vfp): Likewise.
12841 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12842 Use f_loads instead of f_load.
12843 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12845 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12847 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12848 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12849 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12850 (xtensa_mode_dependent_address_p): New function.
12851 (constantpool_address_p): Make static. Change return type to bool.
12852 Change argument type to const_rtx. Use CONST_INT_P predicate.
12854 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12857 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12859 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12862 * cfgexpand.c (expand_debug_expr): Instead of generating
12863 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12866 2011-01-20 Richard Guenther <rguenther@suse.de>
12868 PR middle-end/47370
12869 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12870 the pointer operand of MEM_REFs.
12872 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12874 PR tree-optimization/46130
12875 * ipa-split.c (consider_split): If return_bb contains non-virtual
12876 PHIs other than for retval or if split_function would not adjust it,
12879 2011-01-20 Richard Guenther <rguenther@suse.de>
12881 PR tree-optimization/47167
12882 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12883 Revert previous change, only avoid enumeral type changes.
12885 2011-01-19 Mike Stump <mikestump@comcast.net>
12887 * doc/tm.texi.in (BRANCH_COST): Englishify.
12888 * doc/tm.texi (BRANCH_COST): Likewise.
12890 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12893 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12894 (gen_scheduled_generic_parms_dies): New functions.
12895 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12896 generation for the end of CU compilation.
12897 (dwarf2out_finish): Generate template parameters DIEs here.
12899 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12902 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12903 debug bind stmt on merge edges.
12905 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12909 * function.c (instantiate_expr): Instantiate incoming rtl of
12910 implicit arguments, and recurse on VALUE_EXPRs.
12911 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12912 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12914 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12916 * c-parser.c (c_parser_for_statement): Initialize
12917 collection_expression.
12919 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12921 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12923 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12925 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12926 (LINK_SHLIB_SPEC): Don't use %(link_path).
12927 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12929 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12931 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12932 (NO_SHARED_LIB_SUPPORT): Remove.
12933 (LINK_SHLIB_SPEC): Remove one conditional definition.
12935 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12937 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12939 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12940 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12941 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12942 %{call_shared} and conditionals on these options not being passed.
12943 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12946 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12948 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12951 * ipa-split.c: Spelling fixes.
12953 2011-01-19 Richard Henderson <rth@redhat.com>
12955 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12956 (*mulsi3): Likewise.
12958 * longlong.h [__mn10300__] (count_leading_zeros): New.
12959 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12960 [__mn10300__] (add_ssaaaa, subddmmss): New.
12961 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12962 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12964 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12966 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12968 2011-01-19 Richard Henderson <rth@redhat.com>
12970 * config/mn10300/mn10300.md (addsi3_flags): New.
12971 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12972 (subsi3_flags, subc_internal, subdi3): New.
12973 (subdi3_internal, *subdi3_degenerate): New.
12974 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12976 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12977 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12978 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12979 * config/mn10300/mn10300-protos.h: Update.
12980 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12981 (return_ret): Likewise. Rename from return_internal_regs.
12982 (return_internal): Remove.
12984 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12985 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12986 (mn10300_legitimate_constant_p): Likewise.
12987 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12988 (mn10300_frame_size): New.
12989 (mn10300_expand_prologue): Use it.
12990 (mn10300_expand_epilogue): Likewise.
12991 (mn10300_initial_offset): Likewise.
12992 * config/mn10300/mn10300-protos.h: Update.
12993 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12994 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12995 (prologue, epilogue, return_internal): Tidy output code.
12996 (mn10300_store_multiple_operation, return): Likewise.
12997 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12998 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12999 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13000 (load_pic, am33_load_pic): New.
13001 (mn10300_load_pic0, mn10300_load_pic1): New.
13003 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13004 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13005 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13006 (cc_flags_for_mode, cc_flags_for_code): New.
13007 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13008 overflow flag is not valid. Validate that the flags we need
13009 for the comparison are valid.
13010 (mn10300_output_cmp): Remove.
13011 (mn10300_output_add): New.
13012 (mn10300_select_cc_mode): Use cc_flags_for_code.
13013 (mn10300_split_cbranch): New.
13014 (mn10300_match_ccmode): New.
13015 (mn10300_split_and_operand_count): New.
13016 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13018 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13019 (addsi3): ... here. Use mn10300_output_add.
13020 (*addsi3_flags): New.
13021 (*am33_subsi3, *mn10300_subsi3): Merge...
13022 (subsi3): ... here. Use attribute isa.
13023 (*subsi3_flags): New.
13024 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13026 (*am33_andsi3, *mn10300_andsi3): Merge...
13027 (andsi3): ... here.
13028 (*andsi3_flags): New.
13029 (andsi3 splitters): New.
13030 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13031 (iorsi3): ... here.
13032 (*iorsi3_flags): New.
13033 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13034 (xorsi3): ... here.
13035 (*xorsi3_flags): New.
13036 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13037 (one_cmplsi2): ... here.
13038 (*one_cmplsi2_flags): New.
13039 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13040 instead of "dax" in constraints. Use mn10300_split_cbranch.
13041 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13042 use matching constraints to eliminate a self-comparison.
13043 (*integer_conditional_branch): Rename from integer_conditional_branch.
13044 Use int_mode_flags to match CC_REG.
13045 (*cbranchsi4_btst, *btstsi): New.
13046 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13047 mn10300_split_cbranch.
13048 (*am33_cmpsf): Rename from am33_cmpsf.
13049 (*float_conditional_branch): Rename from float_conditional_branch.
13050 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13051 (zero_extendqisi2): ... here.
13052 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13053 (zero_extendhisi2): ... here.
13054 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13055 (extendqisi2): ... here.
13056 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13057 (extendhisi2): ... here.
13058 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13059 (ashlsi3): ... here.
13060 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13061 (lshrsi3): ... here.
13062 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13063 (ashrsi3): ... here.
13064 (consecutive add peephole): Remove.
13065 * config/mn10300/predicates.md (label_ref_operand): New.
13066 (int_mode_flags): New.
13067 (CCZN_comparison_operator): New.
13069 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13070 (throughput_42_latency_43): New reservation.
13071 (mulsidi3, umulsidi3): New expanders.
13072 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13073 the MDR register to allocation; separately allocate the low and
13074 high parts of the DImode result.
13075 (umulsidi3_internal): Similarly.
13076 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13077 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13078 (udivsi3, umodsi3): Remove.
13079 (udivmodsi4, divmodsi4): New expanders.
13080 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13081 (*divmodsi4): Simiarly.
13082 (ext_internal): New.
13084 * config/mn10300/constraints.md ("z"): New constraint.
13085 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13086 (FIXED_REGISTERS): Don't fix MDR.
13087 (CALL_USED_REGSITERS): Reformat nicely.
13088 (REG_ALLOC_ORDER): Add MDR.
13089 (enum regclass): Add MDR_REGS.
13090 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13091 (IRA_COVER_CLASSES): Add MDR_REGS.
13092 (REGNO_REG_CLASS): Handle MDR_REG.
13093 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13094 (mn10300_register_move_cost): Likewise.
13095 * config/mn10300/mn10300.md (MDR_REG): New.
13096 (*movsi_internal): Handle moves to/from MDR_REGS.
13098 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13100 (mn10300_secondary_reload): Tidy combination reload classes.
13101 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13102 addresses for AM33. Allow symbolic offsets for reg+imm.
13103 (mn10300_regno_in_class_p): New.
13104 (mn10300_legitimize_reload_address): New.
13105 * config/mn10300/mn10300.h (enum reg_class): Remove
13106 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13107 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13108 SP_OR_GENERAL_REGS.
13109 (REG_CLASS_NAMES): Update to match.
13110 (REG_CLASS_CONTENTS): Likewise.
13111 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13112 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13113 (REGNO_IN_RANGE_P): Remove.
13114 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13115 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13116 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13117 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13118 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13119 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13120 (REGNO_GENERAL_P): New.
13121 (HAVE_POST_MODIFY_DISP): New.
13122 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13123 (LEGITIMIZE_RELOAD_ADDRESS): New.
13124 * config/mn10300/mn10300-protos.h: Update.
13126 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13127 DATA_REGS for AM33 stack-pointer destination.
13128 (mn10300_preferred_output_reload_class): Likewise.
13129 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13130 into a form appropriate for ...
13131 (TARGET_SECONDARY_RELOAD): New.
13132 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13133 * config/mn10300/mn10300-protos.h: Update.
13134 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13135 reload_insi; use the "A" constraint for the scratch; handle AM33
13136 moves of sp to non-address registers.
13138 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13139 (*movqi_internal): ... here.
13140 (*am33_movhi, *mn10300_movhi): Merge into...
13141 (*movhi_internal): ... here.
13142 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13143 as the source/destination of moves from/to SP.
13144 (movsf): Only allow for AM33-2.
13145 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13146 any integer constant constraint. Only allow for AM33-2. Tidy
13147 all of the alternative outputs.
13148 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13149 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13151 (udivsi3, umodsi3): New patterns for MN103 only.
13153 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13155 * doc/tm.texi.in: Spell out that a lack of register class unions
13157 * doc/tm.texi: Regenerate.
13159 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13161 PR rtl-optimization/47337
13162 * dce.c (check_argument_store): New function.
13163 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13165 PR tree-optimization/47290
13166 * tree-eh.c (infinite_empty_loop_p): New function.
13167 (cleanup_empty_eh): Use it.
13169 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13172 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13173 (a64_expand_widen_sum): Ditto.
13174 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13175 (vec_extract_evenodd_help): Ditto.
13176 (vec_extract_evenv4hi): Ditto.
13177 (vec_extract_oddv4hi): Ditto.
13178 (vec_extract_evenv2si): Ditto.
13179 (vec_extract_oddv2si): Ditto.
13180 (vec_extract_evenv2sf): Ditto.
13181 (vec_extract_oddv2sf): Ditto.
13182 (vec_pack_trunc_v4hi: Ditto.
13183 (vec_pack_trunc_v2si): Ditto.
13184 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13185 (vec_interleave_highv8qi): Ditto.
13187 (vec_extract_oddv8qi): Ditto.
13188 (vec_interleave_lowv4hi): Ditto.
13189 (vec_interleave_highv4hi): Ditto.
13190 (vec_interleave_lowv2si): Ditto.
13191 (vec_interleave_highv2si): Ditto.
13193 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13195 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13196 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13197 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13198 (pa_c_mode_for_suffix): New.
13199 (TARGET_EXPAND_BUILTIN): Define.
13200 (TARGET_C_MODE_FOR_SUFFIX): Define.
13201 (pa_builtins): Define.
13202 (pa_init_builtins): Register __float128 type and init new support
13204 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13205 * config/pa/quadlib.c (_U_Qfcopysign): New.
13207 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13209 PR middle-end/46894
13210 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13211 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13214 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13216 PR tree-optimization/47179
13217 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13218 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13220 2011-01-18 Richard Guenther <rguenther@suse.de>
13222 PR rtl-optimization/47216
13223 * emit-rtl.c: Include tree-flow.h.
13224 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13225 of replicating it with different semantics.
13226 * Makefile.in (emit-rtl.o): Adjust.
13228 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13230 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13231 (cortex_a9_dp): Handle neon types correctly.
13233 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13235 PR rtl-optimization/47299
13236 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13237 subtarget. Use normal multiplication if both operands are constants.
13238 * expmed.c (expand_widening_mult): Don't try to optimize constant
13239 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13242 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13244 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13245 spacing after 'e.g.', typos, comma, hyphenation.
13247 2011-01-17 Richard Henderson <rth@redhat.com>
13249 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13250 (rx_restricted_mem_operand): New.
13251 (rx_shift_operand): Use register_operand.
13252 (rx_source_operand, rx_compare_operand): Likewise.
13253 * config/rx/rx.md (addsi3_flags): New expander.
13254 (adddi3): Rewrite as expander.
13255 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13256 (subsi3_flags): New expander.
13257 (subdi3): Rewrite as expander.
13258 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13260 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13261 (rx_init_builtins): Remove sat builtin.
13262 (rx_expand_builtin): Likewise.
13263 * config/rx/rx.md (ssaddsi3): New.
13264 (*sat): Rename from sat. Represent the CC_REG input.
13266 * config/rx/predicates.md (rshift_operator): New.
13267 * config/rx/rx.c (rx_expand_insv): Remove.
13268 * config/rx/rx-protos.h: Update.
13269 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13270 operand to the canonical position.
13271 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13272 (*bitclr, *bitclr_in_memory): Similarly.
13273 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13274 (insv): Retain the zero_extract in the expansion.
13276 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13277 (bswaphi2, bitinvert, revw): Likewise.
13279 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13280 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13281 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13282 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13283 (bitset, bitset_in_memory): Likewise.
13284 (bitinvert, bitinvert_in_memory): Likewise.
13285 (bitclr, bitclr_in_memory): Likewise.
13286 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13287 (rx_strend, rx_cmpstrn): Likewise.
13288 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13289 (bitop peep2 patterns): Remove.
13291 * config/rx/rx.c (rx_match_ccmode): New.
13292 * config/rx/rx-protos.h: Update.
13293 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13294 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13295 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13296 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13297 (fix_truncsfsi2, floatsisf2): Likewise.
13298 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13299 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13300 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13301 (*subsi3_flags, *xorsi3_flags): New.
13303 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13305 * config/rx/rx.c (rx_print_operand): Remove workaround for
13306 unsplit comparison operations.
13308 * config/rx/rx.md (movsicc): Split after reload.
13309 (*movsicc): Merge *movsieq and *movsine via match_operator.
13310 (*stcc): New pattern.
13312 * config/rx/rx.c (rx_float_compare_mode): Remove.
13313 * config/rx/rx.h (rx_float_compare_mode): Remove.
13314 * config/rx/rx.md (cstoresi4): Split after reload.
13315 (*sccc): New pattern.
13317 * config/rx/predicates.md (label_ref_operand): New.
13318 (rx_z_comparison_operator): New.
13319 (rx_zs_comparison_operator): New.
13320 (rx_fp_comparison_operator): New.
13321 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13322 Validate that the flags are set properly for the comparison.
13323 (rx_gen_cond_branch_template): Remove.
13324 (rx_cc_modes_compatible): Remove.
13325 (mode_from_flags): New.
13326 (flags_from_code): Rename from flags_needed_for_conditional.
13327 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13328 (rx_select_cc_mode): Likewise.
13329 (rx_split_fp_compare): New.
13330 (rx_split_cbranch): New.
13331 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13332 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13333 (*cbranchsf4): Similarly.
13334 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13335 match_operator and rx_split_cbranch.
13336 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13337 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13338 (*cmpsi): Rename from cmpsi.
13339 (*tstsi): Rename from tstsi.
13340 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13341 (*conditional_branch): Rename from conditional_branch.
13342 (*reveresed_conditional_branch): Remove.
13343 (b<code>): Remove expander.
13344 * config/rx/rx-protos.h: Update.
13346 * config/rx/rx.c (rx_compare_redundant): Remove.
13347 * config/rx/rx.md (cmpsi): Don't use it.
13348 * config/rx/rx-protos.h: Update.
13350 * config/rx/rx-modes.def (CC_F): New mode.
13351 * config/rx/rx.c (rx_select_cc_mode): New.
13352 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13353 * config/rx/rx-protos.h: Update.
13355 2011-01-17 Richard Henderson <rth@redhat.com>
13357 * except.c (dump_eh_tree): Fix stray ; after for statement.
13359 2011-01-17 Richard Guenther <rguenther@suse.de>
13361 PR tree-optimization/47313
13362 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13363 handling before copying the body. Properly deal with
13364 by-reference result in SSA form.
13366 2011-01-17 Ian Lance Taylor <iant@google.com>
13369 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13370 (struct_value_alias_set): Don't define.
13371 (sparc_option_override): Don't set sparc_sr_alias_set and
13372 struct_value_alias_set.
13373 (save_or_restore_regs): Use gen_frame_mem rather than calling
13375 (sparc_struct_value_rtx): Likewise.
13377 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13380 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13381 (_mm_maskstore_pd): Likewise.
13382 (_mm_maskload_ps): Likewise.
13383 (_mm_maskstore_ps): Likewise.
13384 (_mm256_maskload_pd): Change mask to __m256i.
13385 (_mm256_maskstore_pd): Likewise.
13386 (_mm256_maskload_ps): Likewise.
13387 (_mm256_maskstore_ps): Likewise.
13389 * config/i386/i386-builtin-types.def: Updated.
13390 (ix86_expand_special_args_builtin): Likewise.
13392 * config/i386/i386.c (bdesc_special_args): Update
13393 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13394 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13395 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13396 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13398 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13399 Use <avxpermvecmode> on mask register.
13400 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13402 2011-01-17 Olivier Hainque <hainque@adacore.com>
13403 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13404 Eric Botcazou <ebotcazou@adacore.com>
13407 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13408 if <= USHRT_MAX in 32-bit mode.
13410 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13412 * doc/install.texi (Configuration, Specific): Wrap long
13413 lines in examples. Allow line wrapping in long options
13414 and URLs where beneficial for PDF output.
13416 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13418 * config/mips/mips.c (mips_classify_symbol): Don't return
13419 SYMBOL_PC_RELATIVE for nonlocal labels.
13421 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13423 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13425 2011-01-15 Jan Hubicka <jh@suse.cz>
13427 PR tree-optimization/47276
13428 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13429 declarations as needed.
13431 2011-01-15 Martin Jambor <mjambor@suse.cz>
13433 * common.opt (fdevirtualize): New flag.
13434 * doc/invoke.texi (Option Summary): Document it.
13435 * opts.c (default_options_table): Add devirtualize flag.
13436 * ipa-prop.c (detect_type_change): Return immediately if
13437 devirtualize flag is not set.
13438 (detect_type_change_ssa): Likewise.
13439 (compute_known_type_jump_func): Likewise.
13440 (ipa_analyze_virtual_call_uses): Likewise.
13442 2011-01-14 Martin Jambor <mjambor@suse.cz>
13444 PR tree-optimization/45934
13445 PR tree-optimization/46302
13446 * ipa-prop.c (type_change_info): New type.
13447 (stmt_may_be_vtbl_ptr_store): New function.
13448 (check_stmt_for_type_change): Likewise.
13449 (detect_type_change): Likewise.
13450 (detect_type_change_ssa): Likewise.
13451 (compute_complex_assign_jump_func): Check for dynamic type change.
13452 (compute_complex_ancestor_jump_func): Likewise.
13453 (compute_known_type_jump_func): Likewise.
13454 (compute_scalar_jump_functions): Likewise.
13455 (ipa_analyze_virtual_call_uses): Likewise.
13456 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13458 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13460 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13461 * config/i386/i386.opt (msse5): New Alias.
13463 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13465 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13466 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13467 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13468 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13470 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13472 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13474 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13475 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13476 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13477 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13479 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13481 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13483 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13485 2011-01-14 Mike Stump <mikestump@comcast.net>
13487 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13488 * config/fr30/fr30.md: Likweise
13489 (movsi_push): Likewise.
13490 (movsi_pop): Likewise.
13491 (enter_func): Likewise.
13492 * config/moxie/moxie.md (movsi_push): Likewise.
13493 (movsi_pop): Likewise.
13495 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13497 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13498 %{no_archive} %{exact_version}.
13499 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13500 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13501 %{no_archive} %{exact_version}.
13502 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13503 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13504 * config/mips/vxworks.h: Likewise.
13506 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13508 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13510 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13512 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13513 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13515 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13517 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13520 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13522 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13524 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13525 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13527 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13528 Don't handle -shlib.
13530 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13532 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13533 (CC1_SPEC): Don't handle -profile.
13535 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13537 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13538 * config/mips/mips.h (CC1_SPEC): Likewise.
13540 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13542 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13543 * config/mips/mips.h (CC1_SPEC): Likewise.
13545 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13547 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13548 * config/m32r/linux.h (LINK_SPEC): Likewise.
13549 * config/mips/linux.h (LINK_SPEC): Likewise.
13550 * config/mips/linux64.h (LINK_SPEC): Likewise.
13551 * config/sparc/linux.h (LINK_SPEC): Likewise.
13552 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13553 LINK_SPEC): Likewise.
13554 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13556 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13558 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13560 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13564 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13565 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13567 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13569 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13571 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13573 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13574 supports -Bstatic/-Bdynamic.
13575 * configure: Regenerate.
13577 2011-01-14 Jan Hubicka <jh@suse.cz>
13578 Jack Howarth <howarth@bromo.med.uc.edu>
13581 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13582 when checking debug_info_level. Test write_symbols instead of
13583 debug_hooks->var_location when setting flag_var_tracking_uninit.
13585 2011-01-14 Richard Guenther <rguenther@suse.de>
13587 PR tree-optimization/47179
13588 * target.def (ref_may_alias_errno): New target hook.
13589 * targhooks.h (default_ref_may_alias_errno): Declare.
13590 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13591 (default_ref_may_alias_errno): New function.
13592 * target.h (struct ao_ref_s): Declare.
13593 * tree-ssa-alias.c: Include target.h.
13594 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13595 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13596 (targhooks.o): Likewise.
13597 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13598 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13600 2011-01-14 Richard Guenther <rguenther@suse.de>
13602 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13604 2011-01-14 Richard Guenther <rguenther@suse.de>
13606 PR tree-optimization/47280
13607 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13608 return CFG changes.
13609 (tree_ssa_forward_propagate_single_use_vars): Deal with
13610 CFG changes from associate_plusminus.
13612 2011-01-14 Richard Guenther <rguenther@suse.de>
13614 PR middle-end/47281
13616 2011-01-11 Richard Guenther <rguenther@suse.de>
13618 PR tree-optimization/46076
13619 * tree-ssa.c (useless_type_conversion_p): Conversions from
13620 unprototyped to empty argument list function types are useless.
13622 2011-01-14 Richard Guenther <rguenther@suse.de>
13624 PR tree-optimization/47286
13625 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13627 2011-01-14 Martin Jambor <mjambor@suse.cz>
13629 PR middle-end/46823
13630 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13632 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13634 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13635 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13636 * config/xtensa/xtensa.c (xtensa_libcall_value,
13637 xtensa_function_value_regno_p): New functions.
13638 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13640 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13643 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13645 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13646 New function prototype.
13647 * config/i386/winnt.c (i386_pe_assemble_visibility):
13648 Warn only if attribute was specified by user.
13650 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13653 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13655 (floatunsdidf2_fcfidu): Ditto.
13657 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13659 * config/s390/s390.c (print_operand_address): Replace 'error' with
13660 'output_operand_lossage'.
13661 (print_operand): Likewise.
13663 2011-01-13 Jeff Law <law@redhat.com>
13665 PR rtl-optimization/39077
13666 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13667 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13668 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13669 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13670 * gcse.c (prune_insertions_deletions): New function.
13671 (compute_pre_data): Use it.
13673 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13676 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13678 (prune_unused_types_mark): Use it.
13680 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13682 PR rtl-optimization/45352
13683 * sel-sched.c: Update copyright years.
13684 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13685 in the advancing loop when we have issued issue_rate insns.
13687 2011-01-12 Richard Henderson <rth@redhat.com>
13689 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13690 (TARGET_MD_ASM_CLOBBERS): New.
13692 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13693 (TARGET_DELEGITIMIZE_ADDRESS): New.
13695 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13696 (clzsi2, *bsch): New patterns.
13698 * config/mn10300/mn10300.md (INT): New mode iterator.
13699 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13701 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13702 flag_split_wide_types.
13704 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13705 (mn10300_trampoline_init): Rewrite without a template, an immediate
13706 load and a direct branch.
13707 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13709 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13711 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13712 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13713 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13714 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13716 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13719 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13722 2011-01-12 Jan Hubicka <jh@suse.cz>
13725 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13726 (PLUGIN_COND_CLOSE): New macro.
13727 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13729 2011-01-12 Richard Guenther <rguenther@suse.de>
13732 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13733 register variables in a MEM_REF.
13735 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13737 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13738 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13739 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13740 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13741 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13742 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13743 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13744 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13745 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13746 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13747 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13748 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13749 * config/gnu-user.h: New. Copied from linux.h.
13750 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13751 GNU_USER_TARGET_STARTFILE_SPEC.
13752 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13753 GNU_USER_TARGET_ENDFILE_SPEC.
13754 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13755 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13756 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13757 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13758 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13759 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13760 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13761 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13762 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13763 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13764 * config/arm/linux-eabi.h (CC1_SPEC): Use
13765 GNU_USER_TARGET_CC1_SPEC.
13766 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13767 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13768 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13769 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13770 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13771 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13772 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13773 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13775 2011-01-12 Richard Guenther <rguenther@suse.de>
13778 * doc/invoke.texi (ffast-math): Document it is turned on
13781 2011-01-12 Jan Hubicka <jh@suse.cz>
13783 PR tree-optimization/47233
13784 * opts.c (common_handle_option): Disable ipa-reference with profile
13787 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13789 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13792 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13794 * c-parser.c (c_lex_one_token): Updated and reindented some
13795 comments. No changes in code.
13797 2011-01-11 Ian Lance Taylor <iant@google.com>
13799 * godump.c (go_output_var): Don't output the variable if there is
13800 already a type with the same name.
13802 2011-01-11 Ian Lance Taylor <iant@google.com>
13804 * godump.c (go_format_type): Don't generate float80.
13806 2011-01-11 Richard Henderson <rth@redhat.com>
13808 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13809 declaration. Rewrite for both speed and size.
13810 (mn10300_address_cost_1): Remove.
13811 (mn10300_register_move_cost): New.
13812 (mn10300_memory_move_cost): New.
13813 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13814 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13815 extensions, shifts, BSWAP, CLZ.
13816 (mn10300_wide_const_load_uses_clr): Remove.
13817 (TARGET_REGISTER_MOVE_COST): New.
13818 (TARGET_MEMORY_MOVE_COST): New.
13819 * config/mn10300/mn10300-protos.h: Update.
13820 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13822 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13823 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13824 * config/mn10300/mn10300-protos.h: Update.
13825 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13826 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13827 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13828 (*test_int_bitfield, *test_byte_bitfield): Remove.
13829 (*bit_test, *subreg_bit_test): Remove.
13830 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13832 * config/mn10300/constraints.md ("c"): Rename from "A".
13833 ("A", "D"): New constraint letters.
13834 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13835 (fmssf4, fnmasf4, fnmssf4): Likewise.
13837 * config/mn10300/mn10300.md (isa): New attribute.
13838 (enabled): New attribute.
13840 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13841 (abssf2, negsf2): Define only for hardware fp.
13842 (sqrtsf2): Reformat.
13843 (addsf3, subsf3, mulsf3): Merge expander and insn.
13845 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13846 (DEBUGGER_AUTO_OFFSET): Remove.
13847 (DEBUGGER_ARG_OFFSET): Remove.
13849 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13850 Emit register stores with the same offsets as the hardware.
13851 (mn10300_store_multiple_operation): Don't check that the register
13852 save offsets are monotonic.
13853 * config/mn10300/mn10300-protos.h: Update.
13855 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13857 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13858 in terms of the value on the stack, not the MDR register.
13860 2011-01-11 Jan Hubicka <jh@suse.cz>
13864 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13865 (symbol_alias_set_destroy, symbol_alias_set_contains,
13866 propagate_aliases_backward): Declare.
13867 * lto-streamer-out.c (struct sets): New sturcture.
13868 (trivally_defined_alias): New function.
13869 (output_alias_pair_p): Rewrite.
13870 (output_unreferenced_globals): Fix output of alias pairs.
13871 (produce_symtab): Likewise.
13872 * ipa.c (function_and_variable_visibility): Set weak alias destination
13874 * varasm.c (symbol_alias_set_t): Remove.
13875 (symbol_alias_set_destroy): Export.
13876 (propagate_aliases_forward, propagate_aliases_backward): New functions
13878 (compute_visible_aliases): ... this one; remove.
13879 (trivially_visible_alias): New
13880 (trivially_defined_alias): New.
13881 (remove_unreachable_alias_pairs): Rewrite.
13882 (finish_aliases_1): Reorganize code checking if alias is defined.
13883 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13886 2011-01-11 Richard Guenther <rguenther@suse.de>
13888 PR tree-optimization/46076
13889 * tree-ssa.c (useless_type_conversion_p): Conversions from
13890 unprototyped to empty argument list function types are useless.
13892 2011-01-11 Richard Guenther <rguenther@suse.de>
13894 PR middle-end/45235
13895 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13896 volatile MEMs as MEM_READONLY_P.
13898 2011-01-11 Richard Guenther <rguenther@suse.de>
13900 PR tree-optimization/47239
13901 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13903 2011-01-11 Jeff Law <law@redhat.com>
13905 PR tree-optimization/47086
13906 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13907 IVs from statements that might throw.
13909 2011-01-10 Jan Hubicka <jh@suse.cz>
13912 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13914 2011-01-10 Jan Hubicka <jh@suse.cz>
13917 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13918 when correcting profile.
13920 2011-01-10 Jan Hubicka <jh@suse.cz>
13923 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13924 DECL_FINI_PRIORITY.
13925 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13926 Restore DECL_FINI_PRIORITY.
13928 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13930 * doc/gimple.texi: Fix quoting of multi-word return values in
13931 @deftypefn statements. Ensure presence of return value. Wrap
13932 overlong @deftypefn lines.
13933 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13934 descriptions of removed functions.
13935 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13936 of multi-word return value in @deftypefn statement.
13938 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13940 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13941 (Conditional Expressions, Logical Operators)
13942 (Statement and operand traversals): Do not indent smallexample
13943 code. Fix duplicate function argument in example.
13945 2011-01-10 Jeff Law <law@redhat.com>
13947 PR tree-optimization/47141
13948 * ipa-split.c (split_function): Handle case where we are
13949 returning a value and the return block has a virtual operand phi.
13951 2011-01-10 Jan Hubicka <jh@suse.cz>
13953 PR tree-optimization/47234
13954 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13955 (pass_feedback_split_functions): Declare.
13956 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13958 * ipa-split.c (gate_split_functions): Update comments; disable
13959 split-functions for profile_arc_flag and branch_probabilities.
13960 (gate_feedback_split_functions): New function.
13961 (execute_feedback_split_functions): New function.
13962 (pass_feedback_split_functions): New global var.
13964 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13967 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13968 calling gimple_call_set_cannot_inline.
13970 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13972 * config/darwin-sections.def: Remove unused section.
13974 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13977 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13979 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13982 * c-parser.c (c_parser_declaration_or_fndef): Improved
13985 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13987 * config/i386/winnt.c (i386_pe_start_function): Make sure
13988 to switch back to function's section.
13990 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13994 * plugin.c: Move include of dlfcn.h from here...
13995 * system.h: ... to here.
13997 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13999 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14001 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14002 two extra empty pages in PDF output.
14004 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14007 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14008 for error recovery purposes behave as if it was not specified so
14009 that the default type is usd.
14011 2011-01-07 Jan Hubicka <jh@suse.cz>
14013 PR tree-optmization/46469
14014 * ipa.c (function_and_variable_visibility): Clear needed flags on
14015 nodes with external decls; handle weakrefs merging correctly.
14017 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14019 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14022 2011-01-07 Jan Hubicka <jh@suse.cz>
14024 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14025 and no longer claim that gold is required for linker plugin.
14026 * configure: Regenerate.
14027 * gcc.c (PLUGIN_COND): New macro.
14028 (LINK_COMMAND_SPEC): Use it.
14029 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14030 * config.in (HAVE_LTO_PLUGIN): New.
14031 * configure.ac (--with-lto-plugin): New parameter; autodetect
14034 2011-01-07 Jan Hubicka <jh@suse.cz>
14036 PR tree-optimization/46367
14037 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14038 when we can update original.
14039 (cgraph_mark_inline_edge): Sanity check.
14040 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14042 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14044 * config/spu/spu.h (ASM_COMMENT_START): Define.
14046 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14049 * gcc.c (%>S): New.
14050 (SWITCH_KEEP_FOR_GCC): Likewise.
14051 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14052 (do_spec_1): Handle "%>".
14054 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14056 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14059 * config/i386/i386.c (ix86_delegitimize_address): If
14060 simplify_gen_subreg fails, return orig_x.
14063 * value-prof.c (gimple_stringop_fixed_value): Handle
14064 lhs of the call properly.
14066 2011-01-07 Jan Hubicka <jh@suse.cz>
14069 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14071 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14073 * target.def (function_switched_text_sections): New hook.
14074 * doc/tm.texi: Regenerated.
14075 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14076 * final.c (default_function_switched_text_sections): New.
14077 (final_scan_insn): Call function_switched_text_sections when a
14078 mid-function section change occurs.
14079 * output.h (default_function_switched_text_sections): Declare.
14080 * config/darwin-protos.h (darwin_function_switched_text_sections):
14082 * config/darwin.c (darwin_function_switched_text_sections): New.
14083 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14085 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14087 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14088 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14089 the secondary code fragment when outputting for DWARF == 2.
14091 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14093 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14094 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14096 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14097 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14099 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14102 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14103 when it is not empty.
14105 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14108 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14109 (case ${target}): Add btver1.
14110 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14111 -march=native recognize btver1 processors.
14112 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14113 btver1 def_and_undef
14114 * config/i386/i386.c (struct processor_costs btver1_cost): New
14116 (m_BTVER1): New definition.
14117 (m_AMD_MULTIPLE): Includes m_BTVER1.
14118 (initial_ix86_tune_features): Add btver1 tune.
14119 (processor_target_table): Add btver1 entry.
14120 (static const char *const cpu_names): Add btver1 entry.
14121 (software_prefetching_beneficial_p): Add btver1.
14122 (ix86_option_override_internal): Add btver1 instruction sets.
14123 (ix86_issue_rate): Add btver1.
14124 (ix86_adjust_cost): Add btver1.
14125 * config/i386/i386.h (TARGET_BTVER1): New definition.
14126 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14127 (enum processor_type): Add PROCESSOR_BTVER1.
14128 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14130 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14133 * config/i386/i386.c (legitimize_tls_address)
14134 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14135 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14136 (tls_initial_exec_64_sun): New pattern.
14138 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14140 * doc/invoke.texi (Overall Options): Improve wording and markup
14141 of the description of -wrapper.
14143 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14145 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14146 rdynamic, threads): New Driver options.
14148 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14151 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14152 if coming from .tdata.
14153 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14155 2011-01-06 Jan Hubicka <jh@suse.cz>
14158 * collect2.c (main): Do not enable LTOmode when plugin is active.
14160 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14163 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14164 --version output if supported.
14165 * configure: Regenerate.
14167 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14169 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14172 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14175 * c-convert.c (convert): When converting a complex expression
14176 other than COMPLEX_EXPR to a different complex type, ensure
14177 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14178 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14179 when converting COMPLEX_TYPE.
14181 2011-01-06 Ira Rosen <irar@il.ibm.com>
14183 PR tree-optimization/47139
14184 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14185 only the last reduction value is used outside the loop. Update
14188 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14190 * config/rtems.opt: New.
14191 * config.gcc (*-*-rtems*): Use rtems.opt.
14193 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14195 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14196 processors do not support 3DNow instructions.
14198 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14200 * config/spu/spu.c (spu_option_override): Set parameter
14201 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14203 2011-01-05 Jan Hubicka <jh@suse.cz>
14205 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14206 at the command line.
14208 2011-01-05 Martin Jambor <mjambor@suse.cz>
14211 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14212 deltas on streamed outgoing edges.
14213 (output_node_opt_summary): Output info for outgoing edges only when
14214 the node is in new parameter set.
14215 (output_cgraph_opt_summary): New parameter set, passed to the two
14216 aforementioned functions. Update its forward declaration and its
14219 2011-01-05 Tom Tromey <tromey@redhat.com>
14221 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14222 operator to c_finish_omp_atomic.
14223 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14224 (build_unary_op): Update.
14225 (build_modify_expr): Update.
14226 (build_asm_expr): Update.
14228 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14230 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14231 newly inserted insns.
14232 (pad_bb): Likewise.
14233 (spu_emit_branch_hint): Likewise.
14234 (insert_hbrp_for_ilb_runout): Likewise.
14235 (spu_machine_dependent_reorg): Call df_finish_pass after
14236 schedule_insns returns.
14238 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14240 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14242 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14244 PR tree-optimization/47005
14245 * tree-sra.c (struct access): Add 'non_addressable' bit.
14246 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14247 (decide_one_param_reduction): Return 0 if the parameter is passed by
14248 reference and one of the accesses in the group is non_addressable.
14250 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14252 PR tree-optimization/47056
14253 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14254 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14255 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14257 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14259 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14260 initializer. Skip view conversions from aggregate types.
14262 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14265 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14267 2011-01-04 Philipp Thomas <pth@suse.de>
14269 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14272 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14274 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14275 on empty epilogue sequences.
14277 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14279 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14280 non-static): New Driver options.
14282 2011-01-04 Jie Zhang <jie@codesourcery.com>
14285 * gcc.c (default_compilers[]): Set combinable field to 0
14286 for all assembly languages.
14288 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14290 * config/mips/loongson3a.md: New file.
14291 * config/mips/mips.md: Include loongson3a.md.
14292 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14295 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14297 PR middle-end/47017
14298 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14299 instead of convert_memory_address_addr_space on the base expression.
14301 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14303 * config/spu/spu.c (spu_option_override): Update error text
14304 for bad -march= / -mtune= values.
14306 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14308 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14309 if branch-hint optimization will be performed.
14311 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14313 PR tree-optimization/47148
14314 * ipa-split.c (split_function): Convert arguments to
14315 DECL_ARG_TYPE if possible.
14317 PR tree-optimization/47155
14318 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14319 when computing uns.
14321 PR rtl-optimization/47157
14322 * combine.c (try_combine): If undobuf.other_insn becomes
14323 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14324 and set *new_direct_jump_p too.
14326 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14328 PR tree-optimization/47021
14329 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14331 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14333 * gcc.c (process_command): Update copyright notice dates.
14334 * gcov.c (print_version): Likewise.
14335 * gcov-dump.c (print_version): Likewise.
14336 * mips-tfile.c (main): Likewise.
14337 * mips-tdump.c (main): Likewise.
14339 2011-01-03 Martin Jambor <mjambor@suse.cz>
14341 PR tree-optimization/46801
14342 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14343 aggregate fields start at byte boundary instead of the bit-field flag.
14345 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14348 * gcc.c (main): Revert revision 168407.
14350 2011-01-03 Martin Jambor <mjambor@suse.cz>
14352 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14354 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14356 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14357 vector optab to expand vector/scalar shift, update gimple to vector.
14359 2011-01-03 Martin Jambor <mjambor@suse.cz>
14361 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14364 2011-01-03 Martin Jambor <mjambor@suse.cz>
14366 PR tree-optimization/46984
14367 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14369 (cgraph_create_indirect_edge): Fixed line length.
14370 (cgraph_indirect_call_info): Declare.
14371 (cgraph_make_edge_direct) Update declaration.
14372 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14373 (cgraph_create_indirect_edge): Use it.
14374 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14376 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14377 the new thunk_delta representation.
14378 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14380 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14381 (ipa_read_indirect_edge_info): Likewise.
14382 * lto-cgraph.c (output_edge_opt_summary): New function.
14383 (output_node_opt_summary): Call it on all outgoing edges.
14384 (input_edge_opt_summary): New function.
14385 (input_node_opt_summary): Call it on all outgoing edges.
14387 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14390 * gcc.c (main): Don't check have_o when settting combine_inputs.
14392 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14394 * regrename.c: Add general comment describing the pass.
14395 (struct du_head): Remove 'length' field.
14396 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14397 (regrename_optimize): Do not sort chains. Rework comments, add others.
14398 Force renaming to the preferred class (if any) in the first pass and do
14399 not consider registers that belong to it in the second pass.
14400 (create_new_chain): Do not set 'length' field.
14401 (scan_rtx_reg): Likewise.
14403 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14405 PR tree-optimization/47140
14406 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14407 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14408 to bit_value_binop.
14410 PR rtl-optimization/47028
14411 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14412 parm_birth_insn instead of at the beginning of first bb.
14414 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14416 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14417 Remove the word "see" before "@pxref".
14418 * doc/rtl.texi: Remove the word "see" before "@pxref".
14420 2011-01-01 Jan Hubicka <jh@suse.cz>
14422 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14425 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14428 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14431 Copyright (C) 2011 Free Software Foundation, Inc.
14433 Copying and distribution of this file, with or without modification,
14434 are permitted in any medium without royalty provided the copyright
14435 notice and this notice are preserved.