1 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5 lieu of MAY_HAVE_DEBUG_STMTS.
6 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
7 debug statements if !MAY_HAVE_DEBUG_STMTS.
9 2011-05-13 Martin Thuresson <martint@google.com>
12 * libgcov.c (gcov_exit): Support relative profile paths.
13 * doc/invoke.texi (-fprofile-dir): Update for above change.
15 2011-05-13 Richard Guenther <rguenther@suse.de>
17 * gimple.c (gimple_canonical_types_compatible_p): Do not use
18 type-pair caching, do not compare hashes.
20 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
23 * tree-cfg.c (edge_to_cases_cleanup): Return true.
24 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
26 2011-05-13 Kai Tietz <ktietz@redhat.com>
28 * gimplify.c (gimplify_expr): Make sure operand is boolified.
29 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
30 compatible type for TRUTH_NOT_EXPR.
32 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
34 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
35 (ix86_hard_regno_mode_ok): Change return value to bool. Use
36 can_create_pseudo_p ().
38 2011-05-13 Richard Guenther <rguenther@suse.de>
41 * gimple.c (iterative_hash_gimple_type): Revert change in
42 pointer target and function result and argument hashing.
44 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
46 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
47 (*movxf_internal_nointeger): Ditto.
48 (*movdf_internal_rex64): Ditto.
49 (*movdf_internal): Ditto.
50 (*movdf_internal_nointeger): Ditto.
51 (*movsf_internal): Ditto.
52 (sincos splitters): Use can_create_pseudo ().
54 2011-05-13 Joseph Myers <joseph@codesourcery.com>
56 * config/i386/i386-opts.h: New.
57 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
58 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
59 ix86_section_threshold): Remove.
60 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
61 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
63 (ix86_option_override_internal): Don't decode strings for options
64 other than -march=, -mtune= and -mfpmath=. Don't allow for
65 __attribute__ uses in remaining diagnostics for options with
66 string arguments. Don't check for integer arguments being negative.
67 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
68 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
69 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
70 ix86_branch_cost, ix86_section_threshold): Remove.
71 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
73 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
75 (masm=): Use Enum and Init.
76 (asm_dialect): New Enum and EnumValue entries.
77 (mbranch-cost=): Use UInteger.
78 (mlarge-data-threshold=): Use UInteger and Init.
79 (mcmodel=): Use Enum and Init.
80 (cmodel): New Enum and EnumValue entries.
81 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
82 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
83 mregparm=): Use UInteger.
84 (mstringop-strategy=): Use Enum and Init.
85 (stringop_alg): New Enum and EnumValue entries.
86 (mtls-dialect=): Use Enum and Init.
87 (tls_dialect): New Enum and EnumValue entries.
88 (mabi=): Use Enum and Init.
89 (calling_abi): New Enum and EnumValue entries.
90 (mveclibabi=): Use Enum and Init.
91 (ix86_veclibabi): New Enum and EnumValue entries.
93 2011-05-13 Nick Clifton <nickc@redhat.com>
95 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
96 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
98 2011-05-13 Kai Tietz <ktietz@redhat.com>
101 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
102 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
103 (gimple_boolify): Check for cast for boolean_type_node instead for
106 2011-05-13 Richard Guenther <rguenther@suse.de>
108 PR tree-optimization/48172
109 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
110 multiplying by number of iterations for equal step.
111 (vect_create_cond_for_alias_checks): Likewise.
113 2011-05-13 Andreas Schwab <schwab@redhat.com>
115 * configure.ac: Use AS_HELP_STRING throughout.
116 * configure: Regenerate.
119 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
121 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
122 (ix86_emit_restore_regs_using_mov): Likewise.
123 (ix86_emit_restore_sse_regs_using_mov): Likewise.
125 2011-05-12 Anatoly Sokolov <aesok@post.ru>
127 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
128 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
129 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
130 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
131 RTX_OK_FOR_OLO10_P): ...here.
132 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
135 2011-05-12 Kai Tietz <ktietz@redhat.com>
137 * gimplify.c (gimple_boolify): Re-boolify expression
138 arguments even if expression type is of kind BOOLEAN_TYPE.
139 (gimplify_boolean_expr): Removed.
140 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
141 and XOR. Additional take care that we keep expression's type.
142 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
143 of TRUTH_AND|OR|XOR_EXPR.
145 2011-05-12 Jakub Jelinek <jakub@redhat.com>
147 PR tree-optimization/48975
148 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
149 on all bbs here and free and clear ifc_bbs at the end.
151 2011-05-12 Richard Guenther <rguenther@suse.de>
153 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
154 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
155 until after simple checks.
156 (gimple_types_compatible_p): Likewise.
157 (iterative_hash_gimple_type): Always hash pointer targets
158 and function return and argument types.
159 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
160 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
161 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
162 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
163 completely in the simple compare section.
164 (gimple_register_canonical_type): Query the cache again after
167 2011-05-12 Richard Guenther <rguenther@suse.de>
169 PR tree-optimization/48172
170 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
171 the number of iterations from the segment size calculation.
172 (vect_create_cond_for_alias_checks): Adjust.
174 2011-05-12 Jakub Jelinek <jakub@redhat.com>
177 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
178 if validate_subreg fails.
180 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
182 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
183 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
186 2011-05-12 DJ Delorie <dj@redhat.com>
188 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
189 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
190 created builtin into rx_builtins array.
191 (rx_builtin_decl): New function.
192 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
194 2011-05-12 DJ Delorie <dj@redhat.com>
195 Nick Clifton <nickc@redhat.com>
197 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
198 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
199 (rx_is_legitimate_address): Add pre-decrement and post-increment
200 addressing in HImode and QImode. Fix test for out of range
202 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
203 (rx_align_for_label): Test label before extracting its usage count.
204 (rx_adjust_insn_lengths): Fix selection of insn codes.
205 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
207 2011-05-11 Jason Merrill <jason@redhat.com>
209 * tree.c (type_hash_canon): Use struct tree_type_non_common.
211 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
213 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
214 reindent the subsequent block.
216 2011-05-11 Satoru Takabayashi <satorux@google.com>
217 Paul Pluzhnikov <ppluzhnikov@google.com>
219 * doc/install.texi (Configuration): Document --with-linker-hash-style.
220 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
221 * config.in: Add LINKER_HASH_STYLE.
222 * configure.ac: Add --with-linker-hash-style.
223 * configure: Regenerate.
225 2011-05-11 Richard Guenther <rguenther@suse.de>
228 * gimple.c (iterative_hash_canonical_type): Fix typo.
230 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
232 * config/i386/i386.c (legitimize_tls_address)
233 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
234 expanders directly for TARGET_GNU2_TLS. Determine pic and
235 __tls_get_addr symbol reference here. Update call to
236 gen_tls_global_dynamic_{32,64} for added arguments.
237 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
238 expanders directly for TARGET_GNU2_TLS. Determine
239 __tls_get_addr symbol reference here. Update call to
240 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
241 unique UNSPEC REG_EQUIV to libcall block.
242 (ix86_tls_get_addr): Declare static.
243 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
244 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
245 Do not determine pic and __tls_get_addr symbol reference here. Do not
246 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
247 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
248 (tls_global_dynamic_64): Add operand 2. Do not determine
249 __tls_get_addr symbol reference here. Do not call
250 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
251 (tls_local_dynamic_base64): Ditto for operand 1.
253 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
255 * function.c (expand_function_start): Initialize stack_check_probe_note
256 only if the generic stack checking mechanism is used.
258 2011-05-11 Richard Guenther <rguenther@suse.de>
260 PR tree-optimization/15256
261 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
262 (A & B) | C, combine (A op CST1) op CST2.
263 (tree_ssa_forward_propagate_single_use_vars): Only bother to
264 visit assigns that have uses.
266 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
268 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
269 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
270 (unpack_ts_type_common_value_fields): ...this. Update comment.
271 (unpack_value_fields): Adjust for renaming.
272 (lto_input_ts_type_tree_pointers): Split into...
273 (lto_input_ts_type_common_tree_pointer): ...this and...
274 (lto_input_ts_type_non_common_tree_pointers): ...this.
275 (lto_input_tree_pointers): Adjust for above split.
276 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
277 (pack_ts_type_common_value_fields): ...this. Update comment.
278 (lto_output_ts_type_tree_pointers): Split into...
279 (lto_output_ts_type_common_tree_pointers): ...this and...
280 (lto_output_ts_type_non_common_tree_pointers): ...this.
281 (lto_output_tree_pointers): Adjust for above split.
282 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
283 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
284 * stor-layout.c (vector_type_mode): Adjust location of mode field.
285 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
287 (struct tree_type): Split into...
288 (struct tree_type_common: ...this and...
289 (struct tree_type_with_lang_specific): ...this and...
290 (struct tree_type_non_common): ...this. Adjust accessor macros
292 (TYPE_VALUES_RAW): Define.
293 (union tree_node): Update for above changes.
294 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
296 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
297 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
298 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
299 * treestructu.def (TS_TYPE): Remove.
300 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
303 2011-05-11 Jakub Jelinek <jakub@redhat.com>
306 * tree-ssa.c (reset_debug_uses): New function.
307 * tree-flow.h (reset_debug_uses): New prototype.
308 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
309 * tree-loop-distribution.c (generate_loops_for_partition): Call
310 reset_debug_uses on the stmts that will be removed. Keep around
311 all debug stmts, don't count them as bits in partition bitmap.
312 (generate_builtin): Don't count debug stmts or labels as bits in
315 2011-05-11 Richard Guenther <rguenther@suse.de>
317 * gimple.c (gimple_type_hash_1): Merge with ...
318 (gimple_type_hash): ... this.
319 (gtc_visit): Remove mode parameter and simplify accordingly.
320 (gimple_types_compatible_p_1): Likewise.
321 (gimple_types_compatible_p): Likewise.
322 (iterative_hash_gimple_type): Likewise.
324 (gimple_type_eq): Adjust.
326 2011-05-11 Revital Eres <revital.eres@linaro.org>
328 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
329 enters the branch create an anti edge in the opposite direction
330 to prevent the creation of reg-moves.
331 * modulo-sched.c: Adjust comment to reflect the fact we are
332 scheduling closing branch.
333 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
334 (stage_count): New field in struct partial_schedule.
335 (calculate_stage_count): New function.
336 (normalize_sched_times): Rename to reset_sched_times and handle
337 incrementing the sched time of the nodes by a constant value
339 (duplicate_insns_of_cycles): Skip closing branch.
340 (sms_schedule_by_order): Schedule closing branch.
341 (ps_insn_find_column): Handle closing branch.
342 (sms_schedule): Call reset_sched_times and adjust the code to
343 support scheduling of the closing branch.
344 (ps_insert_empty_row): Update calls to normalize_sched_times
345 and rotate_partial_schedule functions.
347 2011-05-11 Richard Guenther <rguenther@suse.de>
350 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
352 2011-05-11 Joseph Myers <joseph@codesourcery.com>
354 * opts.c (finish_options): Move warning settings from process_options.
355 * toplev.c (process_options): Move warning settings to finish_options.
357 2011-05-11 Richard Guenther <rguenther@suse.de>
359 PR tree-optimization/18041
360 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
361 (simplify_bitwise_binary): ... this. Handle operand conversions
362 by applying them to the result instead.
363 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
365 2011-05-11 Richard Guenther <rguenther@suse.de>
367 * gimple.c (gimple_canonical_types_compatible_p): Split out
368 from gimple_types_compatible_p and friends. Do not recurse
370 (gimple_canonical_type_eq): Use it.
371 (iterative_hash_canonical_type): Split out from
372 iterative_hash_gimple_type and friends. Do not recurse
374 (gimple_canonical_type_hash): Use it, allocate the hash here.
376 2011-05-11 Revital Eres <revital.eres@linaro.org>
378 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
381 2011-05-11 Revital Eres <revital.eres@linaro.org>
383 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
384 instead of PREV_INSN.
386 2011-05-11 Revital Eres <revital.eres@linaro.org>
388 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
389 * loop-doloop.c (doloop_condition_get): Likewise.
390 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
392 * config/arm/arm.md (*addsi3_compare0): Remove "*".
394 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
396 * tree.def (CASE_LABEL_EXPR): Add an operand.
397 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
399 2011-05-10 Joseph Myers <joseph@codesourcery.com>
401 * c-decl.c (c_override_global_bindings_to_false): Remove.
402 (global_bindings_p): Don't check
403 c_override_global_bindings_to_false.
404 * c-tree.h (c_override_global_bindings_to_false): Remove.
405 * c-typeck.c (composite_type): Don't set
406 c_override_global_bindings_to_false.
408 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
410 PR target/48857, 48495
411 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
413 (VSX_MOVE_MODE): Ditto.
414 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
415 VSX vector types. Add V2DImode.
416 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
417 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
418 (MODES_TIEABLE_P): Ditto.
420 * config/rs6000/rs6000.c (rs6000_emit_move): Use
421 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
423 (init_cumulative_args): Ditto.
424 (rs6000_function_arg_boundary): Ditto.
425 (rs6000_function_arg_advance_1): Ditto.
426 (rs6000_function_arg): Ditto.
427 (rs6000_function_ok_for_sibcall): Ditto.
428 (emit_frame_save): Ditto.
429 (rs6000_function_value): Ditto.
430 (rs6000_libcall_value): Ditto.
432 2011-05-10 Joseph Myers <joseph@codesourcery.com>
434 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
435 i386/darwin-lib.h to $libgcc_tm_file.
436 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
438 2011-05-10 Joseph Myers <joseph@codesourcery.com>
440 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
442 2011-05-10 Joseph Myers <joseph@codesourcery.com>
444 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
445 * config/rs6000/rs6000-tables.opt: New file (generated).
446 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
447 rs6000/rs6000-tables.opt to extra_options.
448 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
449 * config/rs6000/rs6000.c (rs6000_select): Remove.
450 (processor_target_table): Move contents to rs6000-cpus.def.
451 (darwin_rs6000_override_options): Check
452 global_options_set.x_rs6000_cpu_index instead of
453 rs6000_select[1].string.
454 (rs6000_option_override_internal): Likewise.
455 (rs6000_handle_option): Don't assert that global structures are in
456 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
457 (rs6000_default_cpu): New variable.
458 (rs6000_file_start): Set it instead of local default_cpu. Check
459 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
460 global_options_set.x_rs6000_tune_index instead of rs6000_select.
461 (rs6000_darwin_file_start): Check rs6000_default_cpu and
462 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
463 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
464 rs6000_select): Remove.
465 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
467 (mcpu=, mtune=): Use Var, Init, Enum and Save.
468 * config/rs6000/t-rs6000
469 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
470 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
471 global_options_set.x_rs6000_cpu_index instead of
472 rs6000_select[1].string.
473 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
474 global_options_set.x_rs6000_cpu_index instead of
475 rs6000_select[1].string.
477 2011-05-10 Joseph Myers <joseph@codesourcery.com>
479 * config.gcc (libgcc_tm_file): Define instead of including files
480 from ../../libgcc/config/ in tm_file.
481 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
482 * configure: Regenerate.
483 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
484 libgcc_tm.h, cs-libgcc_tm.h): New.
485 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
486 (clean): Remove libgcc_tm.h.
487 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
488 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
489 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
491 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
494 * config/avr/avr.c (avr_ret_register): Return unsigned int
496 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
497 it to avr_libcall_value.
498 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
500 (avr_expand_binop_builtin): Ditto.
501 (avr_expand_unop_builtin): Ditto.
503 2011-05-10 DJ Delorie <dj@redhat.com>
505 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
506 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
507 * config/rx/rx.c (rx_align_for_label): Add label and
508 uses_threshold parameters. Do not align when the label is not
510 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
512 2011-05-10 Richard Guenther <rguenther@suse.de>
514 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
515 a series of conversions and apply foldings similar to what
517 (tree_ssa_forward_propagate_single_use_vars): Call it.
519 2011-05-10 Jakub Jelinek <jakub@redhat.com>
521 PR tree-optimization/48611
522 PR tree-optimization/48794
523 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
524 referenced from RESX or EH_DISPATCH arguments.
527 * dfp.c (decimal_to_decnumber): Handle conversion from
530 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
532 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
533 for !flag_prefer_avx128.
534 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
536 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
538 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
539 (fold_ternary_loc): Use expr_location_or.
541 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
544 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
545 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
546 Pmode and mem_mode is not VOIDmode.
548 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
550 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
551 TYPE_QUAL_RESTRICT): Convert to enum.
553 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
555 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
556 (const_pow2_1_to_8_operand): Ditto.
557 (const_pow2_1_to_128_operand): Ditto.
558 (const_pow2_1_to_32768_operand): Ditto.
559 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
560 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
561 in insn constraint to check integer value of operand 3.
562 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
564 (PINSR_MODE): New mode iterator.
565 (sse2p4_1): New mode attribute.
566 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
567 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
568 iterator. Use const_int_operand instead of
569 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
570 exact_log2 in insn constraint to check integer value of operand 3.
572 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
574 * config/i386/sse.md (blendbits): Remove mode attribute.
575 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
576 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
577 Check integer value of operand 3 in insn constraint.
579 2011-05-09 Richard Guenther <rguenther@suse.de>
581 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
583 (lto_symtab_merge): Likewise. Do not register types here.
584 (lto_symtab_merge_decls_2): Likewise.
585 (lto_symtab_merge_decls_1): Likewise.
586 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
587 * gimple.c (enum gtc_mode): Declare.
588 (gimple_types_compatible_p): Make static.
590 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
592 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
593 temporary register to match Pmode.
595 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
597 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
598 and *vec_concatv4si_1_avx.
600 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
602 PR rtl-optimization/48927
603 * ira-conflicts.c (commutative_constraint_p): Use
604 recog_data.alternative_enabled_p to disable alternatives where
605 "enabled" attribute is false.
606 (get_dup_num): Ditto.
607 * ira-lives.c (single_reg_class): Ditto.
608 (ira_implicitly_set_insn_hard_regs): Ditto.
610 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
612 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
613 (dataflow_set_preserve_mem_locs): Likewise.
615 2011-05-09 Philipp Thomas <pth@suse.de>
617 * config/mep/mep.c (mep_validate_vliw): Syntax description
618 should not be translated.
620 2011-05-09 Joseph Myers <joseph@codesourcery.com>
622 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
623 * config/mips/mips-tables.opt: New file (generated).
624 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
625 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
626 MIPS_ARCH_OPTION_NATIVE): Define.
627 * config/mips/mips.c (mips_cpu_info_table): Move contents to
629 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
630 mips_parse_cpu): Remove.
631 (mips_cpu_info_from_opt, mips_default_arch): New.
632 (mips_handle_option): Don't assert that global structures are in
633 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
634 (mips_option_override): Use new variables and functions to set
635 state of these options. Use strcmp to check for individual CPU names.
636 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
638 * config/mips/mips.opt (march=): Use ToLower and Enum.
639 (mips): Use ToLower, Enum and Var.
640 (mtune=): Use ToLower and Enum.
641 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
643 2011-05-08 Jan Hubicka <jh@suse.cz>
645 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
646 Arrange type pairs to be UID ordered.
647 (gimple_lookup_type_leader): Make inline.
649 2011-05-09 Nick Clifton <nickc@redhat.com>
652 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
656 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
659 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
661 * combine.c (simplify_comparison): Abstract out parts into...
662 (simplify_compare_const): ... new function.
663 (try_combine): Generalize parallel arithmetic/compare combining
664 to call simplify_compare_const() and CANONICALIZE_COMPARE().
666 2011-05-08 Jan Hubicka <jh@suse.cz>
668 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
669 (cgraph_create_virtual_clone): Call hooks once virtual clone
671 * cgraph.h (cgraph_clone_node): Update prototype.
672 * ipa-cp.c (ipcp_estimate_growth): Use
673 estimate_ipcp_clone_size_and_time.
674 * ipa-inline-transform.c (clone_inlined_nodes): Update.
675 * lto-cgraph.c (input_node): Update.
676 * ipa-inline.c (recursive_inlining): Update.
677 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
678 (evaluate_conditions_for_known_args): Break out from ...
679 (evaluate_conditions_for_edge): ... here.
680 (evaluate_conditions_for_ipcp_clone): New function.
681 (inline_node_duplication_hook): Update clone summary based
683 (estimate_callee_size_and_time): Rename to ...
684 (estimate_node_size_and_time): take NODE instead of EDGE;
685 take POSSIBLE_TRUTHS as argument.
686 (estimate_callee_size_and_time): Update.
687 (estimate_ipcp_clone_size_and_time): New function.
688 (do_estimate_edge_time): Update.
690 2011-05-08 Richard Guenther <rguenther@suse.de>
694 * expmed.c (expand_shift_1): Compute adjusted constant shift
697 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
699 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
701 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
703 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
705 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
707 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
709 2011-05-07 Jan Hubicka <jh@suse.cz>
711 * ipa-inline-transform.c (inline_call): Account when program size
713 * ipa-inline.c (relative_time_benefit): New function.
714 (edge_badness): Reorganize to be power 2 based; fix thinko when
715 computing badness for negative growth; update comments to match
716 reality; better dumps.
718 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
720 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
721 type to bool and adjust comment.
722 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
723 (fold_mathfn_compare): Remove calls to global_bindings_p.
724 (fold_inf_compare): Likewise.
725 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
726 * c-tree.h (global_bindings_p): Adjust prototype.
727 * c-decl.c (global_bindings_p): Return bool and simplify.
729 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
731 PR tree-optimization/48837
732 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
733 when accumulator transformation is performed.
735 2011-05-06 Jan Hubicka <jh@suse.cz>
737 * i386.h (ix86_tune_indices): Add
738 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
739 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
740 * i386.c (initial_ix86_tune_features): Add
741 X86_SOFTARE_PREFETCHING_BENEFICIAL.
742 (software_prefetching_beneficial_p): Remove predicate.
743 (ix86_option_override_internal): Use new macro.
745 2011-05-06 Jan Hubicka <jh@suse.cz>
747 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
749 2011-05-06 Jan Hubicka <jh@suse.cz>
751 * cgraph.c (cgraph_add_thunk): Create real function node instead
752 of alias node; finalize it and mark needed/reachale; arrange visibility
753 to be right and add it into the corresponding same comdat group list.
754 (dump_cgraph_node): Dump thunks.
755 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
756 cgraph_function_with_gimple_body_p,
757 cgraph_first_function_with_gimple_body,
758 cgraph_next_function_with_gimple_body): New functions.
759 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
761 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
762 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
763 * cgraphunit.c (cgraph_finalize_function): Only look into possible
764 devirtualization when optimizing.
765 (verify_cgraph_node): Verify thunks.
766 (cgraph_analyze_function): Analyze thunks.
767 (cgraph_mark_functions_to_output): Output thunks only in combination
768 with function they are assigned to.
769 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
770 alias into normal node.
771 (assemble_thunks): New functoin.
772 (cgraph_expand_function): Use it.
773 * lto-cgraph.c (lto_output_node): Stream thunks.
774 (input_overwrite_node): Stream in thunks.
775 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
776 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
777 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
778 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
779 (inline_analyze_function): Do not care about thunk jump functions.
780 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
781 * ipa-prop.c (ipa_prop_write_jump_functions): Use
782 cgraph_function_with_gimple_body_p.
783 * passes.c (do_per_function_toporder): Use
784 cgraph_function_with_gimple_body_p.
785 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
786 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
787 (function_called_by_processed_nodes_p): Likewise.
789 2011-05-06 Joseph Myers <joseph@codesourcery.com>
791 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
792 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
794 (mabi=): Replace with separate entries for mabi=altivec,
795 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
796 mabi=ieeelongdouble and mabi=ibmlongdouble.
797 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
798 check for -mabi=spe without SPE ABI support here.
799 (rs6000_handle_option): Replace OPT_mabi_ handling with
800 OPT_mabi_altivec and OPT_mabi_spe handling.
802 2011-05-06 Cary Coutant <ccoutant@google.com>
804 * dwarf2out.c (contains_subprogram_definition): New function.
805 (should_move_die_to_comdat): Call it.
807 2011-05-06 Jeff Law <law@redhat.com>
809 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
810 remove_ctrl_stmt_and_useless_edges.
811 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
812 (fixup_template_block, thread_single_edge): Likewise.
813 (mark_threaded_blocks): Use THREAD_TARGET.
815 2011-05-06 Alan Modra <amodra@gmail.com>
818 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
819 const0_rtx as the arg to the dummy __tls_get_addr libcall.
821 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
823 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
824 constraint modifier to "r".
826 2011-05-06 Joseph Myers <joseph@codesourcery.com>
828 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
829 fall through for OPT_mcmodel_.
831 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
833 * config/s390/s390.c (s390_asm_trampoline_template): Comment
835 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
837 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
840 * config/arm/arm.opt (marm): Document it.
841 (mthumb): Reject negative variant.
843 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
846 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
847 Fix typo in "ccvt" variable name.
849 2011-05-06 Tristan Gingold <gingold@adacore.com>
852 * config/vms/vms-ar.c (main): Remove cwd variable.
854 2011-05-06 Jakub Jelinek <jakub@redhat.com>
857 * var-tracking.c (prepare_call_arguments): Move else before #endif.
859 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
861 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
862 * gimplify.c (gimplify_switch_expr): Likewise.
863 * omp-low.c (expand_omp_sections): Likewise.
864 * tree-eh.c (lower_try_finally_switch): Likewise.
865 (lower_eh_dispatch): Likewise.
866 * tree.h (build_case_label): Declare.
867 * tree.c (build_case_label): Define.
869 2011-05-05 Jason Merrill <jason@redhat.com>
872 * tree-inline.c (copy_tree_r): Use copy_statement_list.
873 (copy_statement_list): Don't recurse.
874 * stor-layout.c (copy_self_referential_tree_r): Don't allow
877 2011-05-05 Joseph Myers <joseph@codesourcery.com>
879 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
880 through from -mfpu= handling.
881 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
883 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
885 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
888 2011-05-05 Steve Ellcey <sje@cup.hp.com>
890 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
892 (hppa[12]*-*-hpux11*): Ditto.
893 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
894 * config/ia64/hpux-unix2003.h: New.
895 * config/pa/pa-hpux1131.opt: New.
896 * config/pa/pa-hpux1131.h: New.
897 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
898 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
899 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
901 2011-05-05 Jakub Jelinek <jakub@redhat.com>
904 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
905 instead of mode as 3rd argument to recursive call.
906 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
907 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
909 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
910 don't give up if mode is Pmode and mem_mode is not VOIDmode.
911 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
912 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
914 2011-05-05 Julian Brown <julian@codesourcery.com>
916 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
917 parenthesis in D-register case.
919 2011-05-05 Joseph Myers <joseph@codesourcery.com>
921 * opt-functions.awk (var_type_struct): Handle Enum options.
922 * optc-gen.awk: Don't check range of variables of character type.
923 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
924 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
925 rs6000_sdata_name, rs6000_explicit_options): Remove.
926 (rs6000_option_override_internal): Check for -malign-power here.
927 Use global_options_set instead of rs6000_explicit_options.
928 (rs6000_parse_fpu_option): Remove.
929 (rs6000_handle_option): Access variables via opts and opts_set
930 pointers. Use error_at and warning_at. Add fall-through
931 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
932 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
933 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
934 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
935 here. Don't use rs6000_parse_fpu_option.
936 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
937 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
938 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
940 (mspe): Use Var and Save.
941 (mtraceback=): Use Enum and Var.
942 (rs6000_traceback_type): New Enum and EnumValue entries.
943 (mfloat-gprs=): Use Enum, Var and Save.
944 (rs6000_float_gprs): New Enum and EnumValue entries.
945 (mlong-double-): use Var and Save.
946 (msched-costly-dep=, minsert-sched-nops=): Use Var.
947 (malign-): Use Enum and Var.
948 (rs6000_alignment_flags): New Enum and EnumValue entries.
950 (fpu_type_t): New Enum and EnumValue entries.
951 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
952 global_options_set instead of rs6000_explicit_options.
953 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
954 global_options_set instead of rs6000_explicit_options.
955 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
956 global_options_set instead of rs6000_explicit_options.
957 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
958 global_options_set instead of rs6000_explicit_options.
959 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
960 global_options_set instead of rs6000_explicit_options.
961 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
962 global_options_set instead of rs6000_explicit_options.
963 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
965 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
966 global_options_set instead of rs6000_explicit_options.
967 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
968 (rs6000_cmodel): New Enum and EnumValue entries.
969 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
970 global_options_set instead of rs6000_explicit_options.
971 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
972 (mtls-size=): Use Enum and Var.
973 (rs6000_tls_size): New Enum and EnumValue entries.
975 2011-05-05 Michael Matz <matz@suse.de>
977 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
978 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
979 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
980 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
981 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
982 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
983 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
984 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
985 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
986 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
987 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
988 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
989 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
990 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
991 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
992 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
994 2011-05-05 Richard Guenther <rguenther@suse.de>
996 * expmed.c (expand_variable_shift): Rename to ...
997 (expand_shift_1): ... this. Take an expanded shift amount.
998 For rotates recurse directly not building trees for the shift amount.
999 (expand_variable_shift): Wrap around expand_shift_1.
1000 (expand_shift): Adjust.
1002 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1004 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1006 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1008 * tree.h (get_pending_sizes): Remove prototype.
1009 (put_pending_size): Likewise.
1010 (put_pending_sizes): Likewise.
1011 * stor-layout.c (pending_sizes): Delete.
1012 (get_pending_sizes): Likewise.
1013 (put_pending_size): Likewise.
1014 (put_pending_sizes): Likewise.
1015 (variable_size): Do not call put_pending_size and tidy up.
1016 * function.h (struct function): Remove dont_save_pending_sizes_p.
1017 * lto-streamer-in.c (input_function): Do not stream it.
1018 * lto-streamer-out.c (output_function): Likewise.
1019 * tree-inline.c (initialize_cfun): Do not copy it.
1020 * c-decl.c (store_parm_decls): Do not set it.
1021 * omp-low.c (create_task_copyfn): Likewise.
1022 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1024 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1026 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1028 (*movdf_internal): Ditto.
1029 (*movdf_internal_nointeger): Ditto.
1030 (*movsf_internal): Ditto.
1032 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1034 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1035 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1036 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1037 (c_variable_size): Remove.
1038 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1039 call put_pending_sizes.
1040 (get_parm_info): Add parameter expr. Use it to set
1041 arg_info->pending_sizes.
1042 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1044 * c-parser.c (c_parser_parms_declarator): Update call to
1045 c_parser_parms_list_declarator.
1046 (c_parser_parms_list_declarator): Take parameter expr. Update
1047 call to push_parm_decl. Update recursive call. Don't call
1048 get_pending_sizes. Update calls to get_parm_info.
1049 (c_parser_objc_method_definition): Update calls to
1050 c_parser_objc_method_decl and objc_start_method_definition.
1051 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1052 (c_parser_objc_method_decl): Add parameter expr. Update call to
1054 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1055 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1056 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1058 2011-05-05 Michael Hope <michael.hope@linaro.org>
1061 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1064 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1066 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1067 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1068 (spu_output_mi_thunk): New function.
1070 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1072 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1073 targetm.asm_out.print_operand.
1074 * config/sol2.c: Include target.h.
1076 2011-05-04 Jan Hubicka <jh@suse.cz>
1078 * ipa-inline.c (reset_edge_caches): New function.
1079 (update_caller_keys): Add check_inlinablity_for; do not
1080 reset edge caches; remove now unnecesary loop.
1081 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1082 (update_all_callee_keys): Likewise.
1083 (inline_small_functions): Sanity check cache; update code
1086 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1088 PR rtl-optimization/47612
1089 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1090 as the last insn of the sequence to be moved.
1092 2011-05-04 Tobias Burnus <burnus@net-b.de>
1095 * doc/invoke.texi (Ofast): Document that it
1096 enables Fortran's -fno-protect-parens.
1098 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1100 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1102 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1104 * stor-layout.c (variable_size): Do not issue errors.
1106 2011-05-04 Richard Guenther <rguenther@suse.de>
1108 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1109 for array-ref indices.
1110 (tree_coverage_counter_addr): Likewise.
1111 (build_fn_info_type): Use size_int for index types.
1112 (build_gcov_info): Likewise.
1114 2011-05-04 Richard Guenther <rguenther@suse.de>
1116 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1118 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1119 for constructor indices.
1120 (push_init_level): Likewise.
1122 2011-05-04 Richard Guenther <rguenther@suse.de>
1124 * explow.c (promote_mode): Move variable declarations before code.
1126 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1128 * tree.h (build_function_type_array): Declare.
1129 (build_varargs_function_type_array): Declare.
1130 (build_function_type_vec, build_varargs_function_type_vec): Define.
1131 * tree.c (build_function_type_array_1): New function.
1132 (build_function_type_array): New function.
1133 (build_varargs_function_type_array): New function.
1135 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1137 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1138 before setting STMT_VINFO_TYPE.
1140 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1142 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1143 instead of spu_pass_by_reference.
1145 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1147 * calls.c (emit_library_call_value_1): Invoke
1148 promote_function_mode hook on libcall arguments.
1149 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1150 argument being NULL.
1151 * targhooks.c (default_promote_function_mode): Lisewise.
1152 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1153 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1155 * doc/tm.texi: Document that TYPE argument might be NULL.
1157 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1159 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1161 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1164 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1166 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1168 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1169 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1171 * mips-tfile.c: ... here.
1172 Don't include coretypes.h, tm.h, filenames.h.
1173 (saber_stop): Remove definition and all calls.
1174 [__SABER__]: Remove.
1175 (__LINE__): Remove default.
1176 (Size_t, Ptrdiff_t): Remove definitions.
1177 Replace by size_t, ptrdiff_t.
1178 [!MIPS_DEBUGGING_INFO]: Remove.
1179 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1180 (progname): Add const.
1182 Replace all uses by static.
1183 (ALIGN_SYMTABLE_OFFSET): Remove default.
1184 * mips-tdump.c: Don't include coretypes.h, tm.h.
1185 Remove !MIPS_IS_STAB guard.
1186 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1187 $(TM_H), filenames.h dependencies.
1188 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1190 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1193 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1194 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1196 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1199 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1200 account and save/restore RETS.
1201 (PROFILE_BEFORE_PROLOGUE): Define.
1202 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1203 the push insn to use predecrement.
1205 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1208 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1210 2011-05-04 Nick Clifton <nickc@redhat.com>
1212 * config/mn10300/mn10300.c: Include cfgloop.h.
1214 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1215 Lcc or a FLcc insn into the instruction stream.
1216 (mn10300_block_contains_call): New function. Returns true if the
1217 given basic block contains a CALL insn.
1218 (mn10300_loop_contains_call_insn): New function. Returns true if
1219 the given loop contains a CALL insn.
1220 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1221 to use the SETLB and Lcc or FLcc insns.
1222 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1223 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1224 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1225 disable the SETLB optimization.
1226 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1227 __SETLB__ or __NO_SETLB__.
1228 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1229 (movsf_internal): Handle MDR register.
1230 (cmpsi): Make visible.
1231 (setlb): New pattern.
1233 (FLcc): New pattern.
1235 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1238 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1239 for reg<->xmm moves.
1240 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1241 (vec_concatv2di_rex64_sse): Ditto.
1242 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1243 (*vec_extractv2di_1_rex64): Ditto.
1246 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1248 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1250 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1252 2011-05-04 Richard Guenther <rguenther@suse.de>
1254 * tree.h (int_const_binop): Remove notrunc argument.
1255 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1256 create integer constants that are properly truncated.
1257 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1258 (const_binop): Remove zero notrunc argument to int_const_binop.
1259 (size_binop_loc): Likewise.
1260 (fold_div_compare): Likewise.
1261 (maybe_canonicalize_comparison_1): Likewise.
1262 (fold_comparison): Likewise.
1263 (fold_binary_loc): Likewise.
1264 (multiple_of_p): Likewise.
1265 * expr.c (store_constructor): Likewise.
1266 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1267 (maybe_fold_stmt_addition): Likewise.
1268 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1269 * stor-layout.c (layout_type): Likewise.
1270 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1271 * tree-sra.c (build_ref_for_offset): Likewise.
1272 (build_user_friendly_ref_for_offset): Likewise.
1273 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1274 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1275 * tree-ssa-loop-niter.c (inverse): Likewise.
1276 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1277 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1278 * tree-switch-conversion.c (check_range): Likewise.
1279 (build_constructors): Likewise.
1280 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1281 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1282 (extract_range_from_assert): Likewise.
1283 (vrp_int_const_binop): Likewise.
1284 (extract_range_from_binary_expr): Likewise.
1285 (extract_range_from_unary_expr): Likewise.
1286 (check_array_ref): Likewise.
1287 (find_case_label_range): Likewise.
1288 (simplify_div_or_mod_using_ranges): Likewise.
1289 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1290 comparing case labels for merging.
1292 2011-05-03 Mark Wielaard <mjw@redhat.com>
1294 * dwarf2out.c (debug_str_hash_forced): Removed.
1295 (gen_label_for_indirect_string): Removed.
1296 (get_debug_string_label): Removed.
1297 (AT_string_form): Generate label directly.
1298 (output_indirect_string): Test indirect_string_node for
1299 DW_FORM_strp instead of checking label and refcount.
1300 (prune_indirect_string): Removed.
1301 (prune_unused_types): Don't check debug_str_hash_forced or
1302 call prune_indirect_string.
1304 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1307 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1309 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1313 * combine.c (try_combine): Skip debug insns at m_split tests.
1315 2011-04-26 Mark Wielaard <mjw@redhat.com>
1318 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1319 when info_section_emitted.
1321 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1323 * config/mips/mips-opts.h: New.
1324 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1326 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1327 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1328 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1330 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1332 (mips_abi, mips_code_readable): Don't declare.
1333 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1334 (mabi=): Use Enum and Var.
1335 (mips_abi): New Enum and EnumValue entries.
1336 (mcode-readable=): Use Enum and Var.
1337 (mips_code_readable_setting): New Enum and EnumValue entries.
1338 (mr10k-cache-barrier=): Use Enum and Var.
1339 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1341 2011-05-03 Jan Hubicka <jh@suse.cz>
1343 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1344 replace hash by pointer map.
1345 (cgraph_node_set_element_def, cgraph_node_set_element,
1346 const_cgraph_node_set_element, varpool_node_set_element_def,
1347 varpool_node_set_element, const_varpool_node_set_element): Remove.
1348 (free_cgraph_node_set, free_varpool_node_set): New function.
1349 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1350 * tree-emutls.c: Free varpool node set.
1351 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1352 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1353 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1354 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1355 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1356 Move here from ipa.c; implement using pointer_map
1357 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1358 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1359 debug_cgraph_node_set, varpool_node_set_new,
1360 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1361 dump_varpool_node_set, debug_varpool_node_set):
1362 Move to ipa-uitls.c.
1363 * passes.c (ipa_write_summaries): Update.
1365 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1367 From Mike Frysinger:
1368 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1369 bf542/bf544/bf547/bf548/bf549.
1371 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1373 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1375 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1378 * config/bfin/bfin.md (MOVCC): New mode_macro.
1379 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1380 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1381 comments from generated assembly.
1383 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1386 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1387 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1388 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1389 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1390 * config/bfin/lib1funcs.asm (___muldi3): New function.
1392 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1394 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1395 build_function_type_list instead of build_function_type.
1396 Rearrange initialization of `args' to do so.
1398 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1400 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1401 instead of build_function_type.
1403 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1405 * config/rs6000/rs6000.c (spe_init_builtins): Call
1406 build_function_type_list instead of build_function_type.
1407 (paired_init_builtins, altivec_init_builtins): Likewise.
1408 (builtin_function_type): Likewise.
1410 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1412 * config/sh/sh.c (sh_media_init_builtins): Call
1413 build_function_type_list instead of build_function_type.
1415 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1417 * config/sparc/sparc.c (sparc_file_end): Call
1418 build_function_type_list instead of build_function_type.
1420 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1422 * config/alpha/alpha.c (alpha_init_builtins): Call
1423 build_function_type_list instead of build_function_type.
1425 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1427 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1428 build_function_type_list instead of build_function_type.
1430 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1432 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1433 build_function_type_list instead of build_function_type.
1434 Delete `endlink' variable.
1436 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1438 * config/avr/avr.c (avr_init_builtins): Call
1439 build_function_type_list instead of build_function_type.
1441 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1443 * config/picochip/picochip.c (picochip_init_builtins): Call
1444 build_function_type_list instead of build_function_type.
1445 Delete `endlink' variable.
1447 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1449 * config/bfin/bfin.c (bfin_init_builtins): Call
1450 build_function_type_list instead of build_function_type.
1452 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1455 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1456 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1458 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1461 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1462 libbffastfp overrides libgcc when -mfast-fp.
1464 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1466 Originally from Bernd Schmidt
1467 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1468 * config/bfin/bfin.c (override_options): Test it and error if
1471 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1473 Originally From Bernd Schmidt
1474 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1477 2011-05-03 Jeff Law <law@redhat.com>
1479 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1480 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1481 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1482 than accessing AUX field directly. Free the AUX field before
1484 (thread_block, thread_through_loop_header): Likewise.
1485 (thread_single_edge, mark_threaded_blocks): Likewise.
1486 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1487 (register_jump_thread): Do not attempt to thread to a NULL edge.
1489 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1491 * function.c (init_function_start): Call decide_function_section.
1492 * varasm.c (decide_function_section): New function.
1493 (assemble_start_function): When not using
1494 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1495 or first_function_block_is_cold.
1496 * rtl.h (decide_function_section): Declare.
1498 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1499 Jakub Jelinek <jakub@redhat.com>
1502 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1503 only succeed if req_mode is the same as set_mode.
1505 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1507 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1508 * genemit.c (gen_exp): Handle RETURN.
1509 * emit-rtl.c (verify_rtx_sharing): Likewise.
1510 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1511 * rtl.c (copy_rtx): RETURN is shared.
1512 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1514 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1515 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1516 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1517 * config/cris/cris.c (cris_expand_return): Likewise.
1518 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1519 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1520 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1521 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1522 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1524 * config/v850/v850.c (expand_epilogue): Likewise.
1525 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1526 * config/arm/arm.md (epilogue): Likewise.
1527 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1528 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1529 variable to ret_reg.
1531 2011-05-03 Richard Guenther <rguenther@suse.de>
1534 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1535 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1536 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1538 2011-05-03 Richard Guenther <rguenther@suse.de>
1540 * c-decl.c (grokdeclarator): Instead of looking at
1541 TREE_OVERFLOW check if the constant fits in the index type.
1543 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1545 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1546 (vec_store_lanes<mode><mode>): Likewise.
1548 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1550 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1551 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1552 convert_optab_index values.
1553 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1554 * genopinit.c (optabs): Initialize the new optabs.
1555 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1556 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1557 (expand_STORE_LANES): New functions.
1558 * tree.h (build_array_type_nelts): Declare.
1559 * tree.c (build_array_type_nelts): New function.
1560 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1561 (vect_model_load_cost): Likewise.
1562 (vect_store_lanes_supported, vect_load_lanes_supported)
1563 (vect_record_strided_load_vectors): Declare.
1564 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1565 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1566 (vect_transform_strided_load): Split out statement recording into...
1567 (vect_record_strided_load_vectors): ...this new function.
1568 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1569 (write_vector_array, create_array_ref): New functions.
1570 (vect_model_store_cost): Add store_lanes_p argument.
1571 (vect_model_load_cost): Add load_lanes_p argument.
1572 (vectorizable_store): Try to use store-lanes functions for
1574 (vectorizable_load): Likewise load-lanes and loads.
1575 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1576 to vect_model_store_cost.
1577 (vect_build_slp_tree): Likewise vect_model_load_cost.
1579 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1581 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1582 * hooks.c (hook_bool_mode_uhwi_false): New function.
1583 * target.def (array_mode_supported_p): New hook.
1584 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1585 * doc/tm.texi: Regenerate.
1586 * stor-layout.c (mode_for_array): New function.
1587 (layout_type): Use it.
1588 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1589 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1591 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1594 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1595 for -fstack-check if the size to allocate is negative.
1597 2011-05-02 Lawrence Crowl <crowl@google.com>
1599 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1600 (timevar_cond_start): New for starting a timer only when it is not
1602 (timevar_cond_stop): New for stopping a timer when it was not already
1605 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1606 (timevar_cond_start): New as above.
1607 (timevar_cond_stop): New as above.
1609 * timevar.def: Add start/stop timers for compiler phases,
1610 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1611 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1612 and TV_PHASE_FINALIZE.
1613 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1614 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1615 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1616 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1617 Make unused TV_OVERLOAD into a start/stop timer.
1619 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1620 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1621 to indicate that they are start/stop timers.
1623 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1624 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1625 Move initialization to do_compile.
1626 (do_compile): Add initialization from above.
1627 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1629 * c-decl.c (c_write_global_declarations): Add start/stop of
1630 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1632 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1633 or TV_PARSE_INLINE, as appropriate.
1634 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1635 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1637 2011-05-02 Jason Merrill <jason@redhat.com>
1640 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1642 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1645 * c-decl.c (finish_decl): Only create a composite if the types are
1648 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1650 * config/fr30/fr30-protos.h (Mmode): Don't define.
1651 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1652 definition where used.
1653 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1654 define. Expand definitions where used.
1655 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1656 Expand definitions where used.
1657 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1658 rx_function_arg, rx_function_arg_advance,
1659 rx_function_arg_boundary): Expand definitions of those macros.
1660 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1661 definition where used.
1663 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1665 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1667 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1668 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1669 with *movv2sf_internal_rex64_avx.
1670 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1671 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1672 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1673 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1674 "vex" in "prefix" attribute calculation.
1675 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1677 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1680 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1681 inputs match the output.
1683 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1686 * config/m68k/m68k.c (m68k_expand_prologue): Set
1687 current_function_static_stack_size.
1689 2011-05-02 Jan Hubicka <jh@suse.cz>
1691 * lto-streamer.c (lto_streamer_cache_insert_1,
1692 lto_streamer_cache_lookup, lto_streamer_cache_create,
1693 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1694 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1696 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1698 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1699 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1700 config/m68k/t-opts: New files.
1701 * config/m68k/m68k-tables.opt: New file (generated).
1702 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1703 extra_options and m68k/t-opts to tmake_file.
1704 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1705 (all_isas): Initialize using m68k-isas.def.
1706 (all_microarchs): Initialize using m68k-microarchs.def.
1707 (m68k_find_selection): Remove.
1708 (m68k_handle_option): Don't assert that global structures are in
1709 use. Use error_at. Access variables via opts pointer. Don't
1710 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1711 directly for -m68020-40 and -m68020-60.
1712 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1713 m68k_tune_entry here.
1714 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1716 (m68k_library_id_string): Remove declaration.
1717 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1718 (m68k_library_id_string): New Variable.
1719 (march=, mcpu=, mtune=): Use Enum and Var.
1721 2011-05-02 Richard Guenther <rguenther@suse.de>
1723 * varasm.c (output_constructor_regular_field): Compute zero-based
1724 index with double-ints. Make sure to ICE instead of producing
1726 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1727 in asserts. Properly use a signed type.
1729 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1731 * config/i386/sse.md (V): New mode iterator.
1732 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1734 (V_256): Rename from AVX256MODE.
1735 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1736 condition to all users.
1738 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1739 condition to all users.
1740 (VF_128): Make V4SF mode unconditional.
1741 (VF_256): Rename from AVX256MODEF2P.
1742 (VI4F_128): Rename from SSEMODE4S.
1743 (VI8F_128): Rename from SSEMODE2D.
1744 (VI4F_256): Rename from AVX256MODE8P.
1745 (VI8F_256): Rename from AVX256MODE4P.
1746 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1747 (ssescalarmodesuffix): Remove SF and DF modes.
1748 (SSEMODE124): Remove.
1749 (SSEMODE1248): Ditto.
1750 (SSEMODEF2P): Ditto.
1751 (AVXMODEF2P): Ditto.
1752 (AVXMODEFDP): Ditto.
1753 (AVXMODEFSP): Ditto.
1754 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1756 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1758 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1759 xop_pcmov_<mode>256. Use V mode iterator.
1761 Adjust RTX patterns globally for renamed mode attributes.
1763 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1765 * haifa-sched.c (sched_emit_insn): Emit insn before first
1766 non-scheduled insn. Inform back-end about new insn. Add
1767 new insn to scheduled_insns list.
1769 2011-05-02 Richard Guenther <rguenther@suse.de>
1771 PR tree-optimization/48822
1772 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1773 (process_scc): Indicate which iteration we start.
1775 2011-05-02 Jan Hubicka <jh@suse.cz>
1777 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1778 (lto_section_overrun): New.
1779 * lto-section-out.c (append_block): Rename to ...
1780 (lto_append_block): ... this one; export.
1781 (lto_output_1_stream): Move lto lto-streamer.h
1782 (lto_output_data_stream): Update.
1783 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1784 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1787 2011-05-02 Richard Guenther <rguenther@suse.de>
1789 * tree.c (tree_code_counts): New global array.
1790 (record_node_allocation_statistics): Count individual tree codes.
1791 (dump_tree_statistics): Dump individual code stats.
1793 2011-05-01 Jan Hubicka <jh@suse.cz>
1795 * ipa-inline.c (caller_growth_limits): Fix thinko when
1796 looking for largest stack frame.
1797 * ipa-inline.h (dump_inline_summary): Declare.
1798 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1800 (dump_inline_summary): Export.
1801 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1803 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1805 * reginfo.c (memory_move_cost): Change rclass argument type form
1806 'enum reg_class' to reg_class_t.
1807 * reload.h (memory_move_cost): Update prototype.
1808 * postreload.c reload_cse_simplify_set): Change type dclass var to
1810 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1812 (ira_allocate_and_set_costs): Change aclass argument type form
1813 'enum reg_class' to reg_class_t.
1814 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1815 Change aclass argument type to reg_class_t.
1816 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1818 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1819 memory_move_cost call.
1821 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1822 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1823 Change type tmp var to reg_class_t.
1825 2011-04-30 Jan Hubicka <jh@suse.cz>
1827 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1828 inlining into function with flatten attribute.
1829 (want_inline_small_function_p): Be more realistic about inlining
1830 cold calls where callee size grows.
1832 2011-04-30 Jan Hubicka <jh@suse.cz>
1834 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1837 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1839 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1840 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1841 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1842 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1843 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1844 (print_operand): Rename to...
1845 (sparc_print_operand): ...this. Make static. Adjust
1846 sparc_print_operand function call.
1847 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1850 2011-04-30 Jan Hubicka <jh@suse.cz>
1853 * ipa-inline.c (early_inliner): Disable when doing late
1854 addition of function.
1856 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1858 * dwarf2out.c (get_address_mode): New inline.
1859 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1860 if not dwarf_strict emit
1861 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1862 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1863 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1864 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1865 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1866 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1867 mem_loc_descriptor callers.
1868 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1869 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1870 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1871 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1872 (base_types): New variable.
1873 (get_base_type_offset, calc_base_type_die_sizes,
1874 base_type_for_mode, mark_base_types, base_type_cmp,
1875 move_marked_base_types): New functions.
1876 (calc_die_sizes): Assert that die_offset is 0 or equal to
1878 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1879 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1880 callers. If not dwarf_strict, call mem_loc_descriptor even for
1881 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1882 (gen_subprogram_die): Don't give up on call site parameters
1883 with non-integral or large integral modes. Adjust
1884 mem_loc_descriptor callers.
1885 (prune_unused_types): Call prune_unused_types_mark on base_types
1887 (resolve_addr): Call mark_base_types.
1888 (dwarf2out_finish): Call move_marked_base_types.
1890 PR tree-optimization/48809
1891 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1893 (gen_inbound_check): Don't compute index_expr - range_min in utype
1894 again, instead reuse SSA_NAME initialized in build_arrays.
1895 Remove two useless gsi_for_stmt calls.
1897 2011-04-29 Jeff Law <law@redhat.com>
1899 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1901 2011-04-29 Martin Jambor <mjambor@suse.cz>
1903 * cgraph.h (cgraph_postorder): Remove declaration.
1904 * ipa-utils.h (ipa_free_postorder_info): Declare.
1905 (ipa_reverse_postorder): Likewise.
1906 * cgraphunit.c: Include ipa-utils.h.
1907 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1908 * ipa-inline.c: Include ipa-utils.h.
1909 (ipa_inline): Update call to ipa_reverse_postorder.
1910 * ipa-pure-const.c (propagate_pure_const): Update call to
1911 ipa_reduced_postorder and ipa_print_order. Call
1912 ipa_free_postorder_info to clean up.
1913 (propagate_nothrow): Likewise.
1914 * ipa-reference.c (propagate): Removed a useless call to
1915 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1916 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1917 * ipa.c: Include ipa-utils.h.
1918 (ipa_profile): Update call to ipa_reverse_postorder.
1919 (cgraph_postorder): Moved to...
1920 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1921 (ipa_utils_print_order): Renamed to ipa_print_order.
1922 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1924 (ipa_free_postorder_info): New function.
1925 * passes.c: Include ipa-utils.h.
1926 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1927 (ipa_write_summaries): Likewise.
1928 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1929 (cgraphunit.o): Likewise.
1931 (ipa-inline.o): Likewise.
1933 2011-04-29 Jan Hubicka <jh@suse.cz>
1935 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1936 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1937 * ipa-inline.h (clause_t): Turn into unsigned int.
1938 * ipa-inline-analysis.c (add_clause): Do more simplification.
1939 (and_predicates): Shortcut more cases.
1940 (predicates_equal_p): Move forward; check that clauses are properly
1942 (or_predicates): Shortcut more cases.
1943 (edge_execution_predicate): Rewrite as...
1944 (set_cond_stmt_execution_predicate): ... this function; handle
1945 __builtin_constant_p.
1946 (set_switch_stmt_execution_predicate): New .
1947 (compute_bb_predicates): New.
1948 (will_be_nonconstant_predicate): Update TODO.
1949 (estimate_function_body_sizes): Use compute_bb_predicates
1950 and free them later, always try to estimate if stmt is constant.
1951 (estimate_time_after_inlining, estimate_size_after_inlining):
1952 Gracefully handle optimized out edges.
1953 (read_predicate): Fix off by one error.
1955 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1957 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1959 2011-04-27 Xinliang David Li <davidxl@google.com>
1961 * tree-profile.c (init_ic_make_global_vars): Set
1962 tls attribute on ic vars.
1963 * coverage.c (coverage_end_function): Initialize
1964 function_list with zero.
1966 2011-04-29 Richard Guenther <rguenther@suse.de>
1968 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1969 for the type of the result.
1970 (fold_builtin_isascii): Likewise.
1971 (fold_builtin_toascii): Use integer_type_node where appropriate.
1972 (fold_builtin_logb): Likewise.
1973 (fold_builtin_frexp): Likewise.
1974 (fold_builtin_strstr): Likewise.
1975 (fold_builtin_strpbrk): Likewise.
1976 (fold_builtin_fputs): Likewise.
1977 (fold_builtin_sprintf): Likewise.
1978 (fold_builtin_snprintf): Likewise.
1979 (fold_builtin_printf): Likewise.
1980 (do_mpfr_remquo): Use a proper type for the assigned constant.
1981 (do_mpfr_lgamma_r): Likewise.
1982 * dwarf2out.c (resolve_one_addr): Use size_int.
1983 * except.c (init_eh): Likewise.
1984 (assign_filter_values): Use integer_type_node for filter values.
1985 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1987 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1988 for EH region numbers.
1989 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1990 for the shift amount.
1992 2011-04-29 Richard Guenther <rguenther@suse.de>
1994 * expr.h (expand_shift): Rename to ...
1995 (expand_variable_shift): ... this.
1996 (expand_shift): Take a constant shift amount.
1997 * expmed.c (expand_shift): Rename to ...
1998 (expand_variable_shift): ... this.
1999 (expand_shift): New wrapper around expand_variable_shift.
2000 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2001 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2002 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2003 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2004 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2005 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2006 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2007 emit_store_flag_1, emit_store_flag): Likewise.
2008 * builtins.c (expand_builtin_signbit): Likewise.
2009 * calls.c (load_register_parameters): Likewise.
2010 * function.c (assign_parm_setup_block): Likewise.
2011 * lower-subreg.c (resolve_shift_zext): Likewise.
2012 * optabs.c (widen_bswap, expand_abs_nojump,
2013 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2014 * spu/spu.c (spu_expand_extv): Likewise.
2015 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2017 2011-04-29 Richard Guenther <rguenther@suse.de>
2019 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2020 for the remapped region number.
2021 * predict.c (build_predict_expr): Use integer_type_node for the
2023 * fold-const.c (fold_binary_loc): Use integer_type_node for
2024 the shift amount. Use a proper type for the PLUS_EXPR operand.
2026 2011-04-29 Michael Matz <matz@suse.de>
2028 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2029 other trees that just builtins.
2030 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2032 2011-04-29 Richard Guenther <rguenther@suse.de>
2034 * tree-nested.c (get_trampoline_type): Use size_int.
2035 (get_nl_goto_field): Likewise.
2036 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2038 (lower_eh_constructs_2): Likewise.
2039 (lower_resx): Likewise.
2040 (lower_eh_dispatch): Likewise.
2041 * tree-mudflap.c (mf_build_string): Use size_int.
2042 (mudflap_register_call): Use integer_type_node for the flag.
2043 (mudflap_enqueue_constant): Use size_int.
2044 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2045 instead of rebuilding it.
2047 2011-04-29 Richard Guenther <rguenther@suse.de>
2049 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2050 Handle OBJ_TYPE_REF.
2051 (find_func_aliases_for_call): Use it more consistently.
2053 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2055 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2056 (rank_for_schedule): Use it.
2057 (schedule_block): Set it.
2059 2011-04-28 David Li <davidxl@google.com>
2061 * tree.c (crc32_string): Use crc32_byte.
2062 (crc32_byte): New function.
2063 * tree.h (crc32_byte): New function.
2064 * gcov.c (read_graph_file): Handle new cfg_cksum.
2065 (read_count_file): Ditto.
2066 * profile.c (instrument_values): Ditto.
2067 (get_exec_counts): Ditto.
2068 (read_profile_edge_counts): Ditto.
2069 (compute_branch_probabilities): Ditto.
2070 (compute_value_histograms): Ditto.
2071 (branch_prob): Ditto.
2072 (end_branch_prob): Ditto.
2073 * coverage.c (read_counts_file): Ditto.
2074 (get_coverage_counts): Ditto.
2075 (tree_coverage_counter_addr): Ditto.
2076 (coverage_checksum_string): Ditto.
2077 (coverage_begin_output): Ditto.
2078 (coverage_end_function): Ditto.
2079 (build_fn_info_type): Ditto.
2080 (build_fn_info_value): Ditto.
2081 * libgcov.c (gcov_exit): Ditto.
2082 * gcov-dump.c (tag_function): Ditto.
2083 (compute_checksum): Remove.
2085 2011-04-29 Alan Modra <amodra@gmail.com>
2087 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2088 unspec plus offset. Tidy macho code.
2090 2011-04-29 Martin Jambor <mjambor@suse.cz>
2092 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2093 node instead of a decl. Update all callers.
2094 * cgraph.h: Update declaration.
2096 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2098 PR tree-optimization/48765
2099 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2100 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2101 to indicate if loop aware SLP is being used. Scan the statements
2102 and update the vectorization factor according to the type of
2103 vectorization before statement analysis.
2104 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2105 pass it to vect_analyze_loop_operations.
2106 (vectorizable_reduction): Set number of copies to 1 in case of pure
2108 * tree-vect-stmts.c (vectorizable_conversion,
2109 vectorizable_assignment, vectorizable_shift,
2110 vectorizable_operation, vectorizable_type_demotion,
2111 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2113 (vectorizable_condition): Move the check that it is not SLP
2114 vectorization before the number of copies check.
2115 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2116 to vectorize the loop using SLP.
2118 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2121 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2124 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2126 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2127 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2128 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2129 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2130 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2132 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2133 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2134 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2135 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2136 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2137 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2139 * config/i386/linux.h (REG_NAME): Don't define.
2140 * config/i386/linux64.h (REG_NAME): Don't define.
2141 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2142 Undefine before defining.
2144 2011-04-28 Jan Hubicka <jh@suse.cz>
2146 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2147 nonconstant_names array.
2148 (estimate_function_body_sizes): Build nonconstant_names array; handle
2149 BUILT_IN_CONSTANT_P.
2151 2011-04-28 Richard Guenther <rguenther@suse.de>
2155 2011-04-28 Richard Guenther <rguenther@suse.de>
2157 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2158 as late as possible.
2160 2011-04-28 Richard Guenther <rguenther@suse.de>
2162 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2163 (debug_constraint): Do it here.
2164 (dump_constraints): And here.
2165 (rewrite_constraints): And here.
2166 (dump_constraint_edge): Remove.
2167 (dump_constraint_graph): Rewrite to produce DOT output.
2168 (solve_constraints): Build succ graph as late as possible.
2169 Dump constraint graphs before and after solving.
2171 2011-04-28 Richard Guenther <rguenther@suse.de>
2173 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2174 New function split out from ...
2175 (find_func_aliases): ... here. Call it.
2176 (find_func_aliases_for_call): Likewise.
2178 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2180 * internal-fn.h (internal_fn_name_array): Declare.
2181 (internal_fn_flags_array): Likewise.
2183 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2185 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2186 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2188 (ssemodefsuffix): Remove.
2189 (ssevecmodesuffix): New mode attribute.
2190 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2191 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2192 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2193 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2194 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2195 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2196 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2197 ssemodesuffix mode attribute.
2198 (float splitters): Use ssevecmodesuffix mode attribute.
2199 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2200 (sseinsmode): Rename from avxvecmode.
2201 (avxsizesuffix): Rename from avxmodesuffix.
2202 (sseintvecmode): Rename from avxpermvecmode.
2203 (ssedoublevecmode): Rename from ssedoublesizemode.
2204 (ssehalfvecmode): Rename from avxhalfvecmode.
2205 (ssescalarmode): Rename from avxscalarmode.
2206 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2207 templates for ssemodesuffix mode attribute.
2208 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2211 Adjust RTX patterns globally for renamed mode attributes.
2213 2011-04-27 Jan Hubcika <jh@suse.cz>
2215 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2216 * ipa-inline-analysis.c: Include alloc-pool.h.
2217 (edge_predicate_pool): New.
2218 (trye_predicate_p): New function
2219 (false_predicate_p): New function.
2220 (add_clause): Sanity check that false clauses are "optimized";
2221 never add clauses to predicate that is already known to be false.
2222 (and_predicate): Use flase_predicate_p.
2223 (evaulate_predicate): Rename to ...
2224 (evaluate_predicate): ... this one; update all callers; assert
2225 that false is not listed among possible truths.
2226 (dump_predicate): Use true_predicate_p.
2227 (account_size_time): Use false_predicate_p.
2228 (evaulate_conditions_for_edge): Rename to ...
2229 (evaluate_conditions_for_edge) ... this one.
2230 (edge_set_predicate): New function.
2231 (inline_edge_duplication_hook): Duplicate edge predicates.
2232 (inline_edge_removal_hook): Free edge predicates.
2233 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2234 (dump_inline_summary): Update.
2235 (estimate_function_body_sizes): Set edge predicates.
2236 (estimate_calls_size_and_time): Handle predicates.
2237 (estimate_callee_size_and_time): Update.
2238 (remap_predicate): Add toplev_predicate; update comment.
2239 (remap_edge_predicates): New function.
2240 (inline_merge_summary): Compute toplev predicate; update.
2241 (read_predicate): New function.
2242 (read_inline_edge_summary): Use it.
2243 (inline_read_section): Likewise.
2244 (write_predicate): New function.
2245 (write_inline_edge_summary): Use it.
2246 (inline_write_summary): Likewise.
2247 (inline_free_summary): Free alloc pool and edge summary vec.
2249 2011-04-27 Richard Guenther <rguenther@suse.de>
2251 * tree-ssa-structalias.c (changed_count): Remove.
2252 (changed): Use a bitmap.
2253 (unify_nodes): Adjust.
2254 (do_sd_constraint): Likewise.
2255 (do_ds_constraint): Likewise.
2256 (do_complex_constraint): Likewise.
2257 (solve_graph): Likewise.
2259 2011-04-27 Jan Hubicka <jh@suse.cz>
2261 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2263 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2265 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2266 (avx_vperm2f128_*_operand): Ditto.
2267 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2268 Use avx_vpermilp_parallel in insn condition.
2269 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2270 Use avx_vperm2f128_parallel in insn condition.
2272 2011-04-27 Richard Guenther <rguenther@suse.de>
2274 * Makefile.in (tree-ssa-structalias.o): Remove
2275 gt-tree-ssa-structalias.h dependency.
2276 (GTFILES): Remove tree-ssa-structalias.c.
2277 * tree.c (allocate_decl_uid): New function.
2278 (make_node_stat): Use it.
2279 (copy_node_stat): Likewise.
2280 * tree.h (allocate_decl_uid): Declare.
2281 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2282 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2283 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2284 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2285 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2286 (struct heapvar_map): Likewise.
2287 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2288 heapvar_insert): Likewise.
2289 (make_heapvar_for): Rename to ...
2290 (make_heapvar): ... this. Simplify.
2291 (fake_var_decl_obstack): New global var.
2292 (build_fake_var_decl): New function.
2293 (make_constraint_from_heapvar): Adjust.
2294 (handle_lhs_call): Likewise.
2295 (create_function_info_for): Likewise.
2296 (intra_create_variable_infos): Likewise.
2297 (init_alias_vars): Allocate fake_var_decl_obstack.
2298 (init_alias_heapvars, delete_alias_heapvars): Remove.
2299 (compute_points_to_sets): Do not call init_alias_heapvars.
2300 (ipa_pta_execute): Likewise.
2301 (delete_points_to_sets): Free fake_var_decl_obstack.
2303 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2305 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2306 (si_from_UTItype, si_to_UTItype): New functions.
2307 (__udivmodti4): Use them to implement type-punning.
2308 * config/spu/multi3.c (union qword_TItype): New data type.
2309 (si_from_TItype, si_to_TItype): New functions.
2310 (__multi3): Use them to implement type-punning.
2312 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2314 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2316 2011-04-27 Jan Hubicka <jh@suse.cz>
2318 * ipa-prop.c (function_insertion_hook_holder): New holder.
2319 (ipa_add_new_function): New function.
2320 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2321 Register/deregister holder.
2323 2011-04-27 Richard Guenther <rguenther@suse.de>
2325 PR tree-optimization/48772
2326 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2328 2011-04-27 Richard Guenther <rguenther@suse.de>
2330 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2331 TARGET_MEM_REF handling.
2333 2011-04-27 Nick Clifton <nickc@redhat.com>
2335 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2336 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2337 (REG_CLASS_NAMES): Likewise.
2338 (REG_CLASS_CONTENTS): Likewise.
2339 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2340 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2341 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2342 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2343 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2344 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2345 duplicate register classes.
2346 (frv_class_likely_spilled_p): Likewise.
2347 (frv_register_move_cost): Likewise.
2349 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2350 end of the regno_reg_class array.
2352 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2355 * c-typeck.c (build_binary_op): Don't wrap arguments if
2356 int_operands is true.
2358 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2361 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2362 targetm.calls.must_pass_in_stack for void type.
2364 2011-04-26 Jan Hubicka <jh@suse.cz>
2366 * cgraphbuild.c (build_cgraph_edges): Update call
2367 of cgraph_create_edge and cgraph_create_indirect_edge.
2368 * cgraph.c (cgraph_create_edge_including_clones,
2369 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2370 cgraph_update_edges_for_call_stmt_node): Do not take nest
2371 argument; do not initialize call_stmt_size/time.
2372 (dump_cgraph_node): Do not dump nest.
2373 (cgraph_clone_edge): Do not take loop_nest argument;
2374 do not propagate it; do not clone call_stmt_size/time.
2375 (cgraph_clone_node): Likewise.
2376 (cgraph_create_virtual_clone): Update.
2377 * cgraph.h (struct cgraph_edge): Remove
2378 call_stmt_size/call_stmt_time/loop_nest.
2379 (cgraph_create_edge, cgraph_create_indirect_edge,
2380 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2382 * tree-emutls.c (gen_emutls_addr): Update.
2383 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2384 loop_nest; handle indirect calls, too.
2385 (clone_inlined_nodes): Do not care about updating inline summaries.
2386 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2387 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2388 stream call_stmt_size/call_stmt_time/loop_nest.
2389 * ipa-inline.c (edge_badness): Update.
2390 (ipa_inline): dump summaries after inlining.
2391 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2393 (inline_edge_summary): New function.
2394 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2395 (inline_edge_removal_hook): Handle edge summaries.
2396 (inline_edge_duplication_hook): New hook.
2397 (inline_summary_alloc): Alloc hooks.
2398 (initialize_growth_caches): Do not register removal hooks.
2399 (free_growth_caches); Do not free removal hook.
2400 (dump_inline_edge_summary): New function.
2401 (dump_inline_summary): Use it.
2402 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2403 (inline_update_callee_summaries): New function.
2404 (inline_merge_summary): Use it.
2405 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2406 (read_inline_edge_summary): New function.
2407 (inline_read_section): Use it.
2408 (write_inline_edge_summary): New function.
2409 (inline_write_summary): Use it.
2410 (inline_free_summary): Free edge new holders.
2411 * tree-inline.c (copy_bb): Update.
2413 2011-04-26 Jason Merrill <jason@redhat.com>
2415 * tree-eh.c (lower_try_finally_switch): Create the label along with
2416 the CASE_LABEL_EXPR.
2418 2011-04-26 David S. Miller <davem@davemloft.net>
2419 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2421 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2422 * configure: Regenerate.
2424 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2427 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2429 (VEC_reduc): New code iterator and splitters for vector reduction.
2430 (VEC_reduc_name): Ditto.
2431 (VEC_reduc_rtx): Ditto.
2432 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2433 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2435 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2436 support for extracting SF on VSX.
2438 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2439 generating xscvspdp.
2440 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2441 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2442 double add, minimum, maximum vector reduction.
2443 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2444 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2445 optimize double vector reduction.
2446 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2448 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2450 * config/fr30/fr30.h (inhibit_libc): Don't define.
2451 * config/m32r/m32r-protos.h: Correct comment.
2452 * config/v850/v850.h (GHS_default_section_names,
2453 GHS_current_section_names): Use tree, not union tree_node *.
2455 2011-04-26 Xinliang David Li <davidxl@google.com>
2457 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2458 * c-family/c-opts.c (c_common_handle_option): Set
2459 warn_maybe_uninitialized.
2460 * opts.c (common_handle_option): Ditto.
2461 * common.opt: New option.
2462 * tree-ssa.c (warn_uninit): Add one more parameter.
2463 (warn_uninitialized_var): Pass warning code.
2464 * tree-flow.h: Interface change.
2467 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2469 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2470 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2471 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2473 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2475 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2476 * config/mips/mips.opt (mmips-tfile): Remove.
2478 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2479 mips-tdump reference to ...
2480 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2481 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2482 reference by Tru64 UNIX.
2484 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2487 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2488 is error_mark_node, set value to NULL.
2490 PR tree-optimization/48734
2491 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2492 if return value from maybe_fold_*_comparsions isn't something
2493 the code is prepared to handle.
2495 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2497 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2499 (ext_QIreg_nomode_operands): Remove.
2500 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2504 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2506 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2508 2011-04-26 Richard Guenther <rguenther@suse.de>
2510 * c-typeck.c (build_unary_op): Do not expand array-refs via
2511 pointer arithmetic. Only adjust qualifiers for function types.
2513 2011-04-26 Richard Guenther <rguenther@suse.de>
2516 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2517 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2518 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2519 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2521 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2523 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2524 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2525 * doc/extend.texi: Document __underlying_type.
2527 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2529 * config/rs6000/titan.md (automata_option "progress"): Remove.
2531 2011-04-25 Jeff Law <law@redhat.com>
2533 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2535 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2537 * system.h (ENUM_BITFIELD): Remove.
2539 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2540 Eric Botcazou <ebotcazou@adacore.com>
2542 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2543 for STORE_FLAG_VALUE==-1 case.
2545 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2548 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2549 LEGITIMATE_PIC_OPERAND_P.
2551 2011-04-24 Jan Hubicka <jh@suse.cz>
2553 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2555 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2556 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2557 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2558 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2559 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2560 Sanity check predicate length.
2561 (remap_predicate): Likewise; sanity check jump functions.
2562 (inline_read_section, inline_write_summary): Sanity check
2565 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2568 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2569 __is_literal_type, and __is_trivial; update throughout about
2570 possibly cv-qualified void types.
2572 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2574 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2575 testsuite and make it version agnostic.
2577 2011-04-22 Jan Hubicka <jh@suse.cz>
2579 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2581 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2584 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2585 to VOID_TYPE even around MODIFY_EXPR.
2587 2011-04-22 Mike Stump <mikestump@comcast.net>
2589 * gensupport.c (read_md_rtx): Fix typo in comment.
2590 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2593 2011-04-22 Jan Hubicka <jh@suse.cz>
2595 * gengtype.c (open_base_files): Add ipa-inline.h include.
2596 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2597 ipa-prop.c; update all uses.
2598 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2599 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2600 merge summary of inlined function into former caller.
2601 * ipa-inline.c (max_benefit): Remove.
2602 (edge_badness): Compensate for removal of benefits.
2603 (update_caller_keys): Use
2604 reset_node_growth_cache/reset_edge_growth_cache.
2605 (update_callee_keys): Likewise.
2606 (update_all_callee_keys): Likewise.
2607 (inline_small_functions): Do not collect max_benefit; do not reset
2608 estimated_growth; call free_growth_caches and initialize_growth_caches.
2609 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2610 struct size_time_entry): New structures.
2611 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2612 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2613 and estimated_growth.
2614 (edge_growth_cache_entry): New structure.
2615 (node_growth_cache, edge_growth_cache): New global vars.
2616 (estimate_growth): Turn into inline.
2617 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2618 initialize_growth_caches, free_growth_caches): Declare.
2619 (estimate_edge_growth): Rewrite.
2620 (estimate_edge_time): Implement as inline cache lookup.
2621 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2623 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2624 (NUM_CONDITIONS): New constant.
2625 (predicate_conditions): New enum.
2626 (IS_NOT_CONSTANT): New constant.
2627 (edge_removal_hook_holder): New var.
2628 (node_growth_cache, edge_growth_cache): New global vars.
2629 (true_predicate, single_cond_predicate, false_predicate,
2630 not_inlined_predicate, add_condition, add_clause, and_predicates,
2631 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2632 dump_clause, dump_predicate, account_size_time,
2633 evaulate_conditions_for_edge): New functions.
2634 (inline_summary_alloc): Move to heap.
2635 (inline_node_removal_hook): Clear condition and entry vectors.
2636 (inline_edge_removal_hook): New function.
2637 (initialize_growth_caches, free_growth_caches): New function.
2638 (dump_inline_summary): Update.
2639 (edge_execution_predicate): New function.
2640 (will_be_nonconstant_predicate): New function.
2641 (estimate_function_body_sizes): Compute BB and constantness predicates.
2642 (compute_inline_parameters): Do not clear estimated_growth.
2643 (estimate_edge_size_and_time): New function.
2644 (estimate_calls_size_and_time): New function.
2645 (estimate_callee_size_and_time): New function.
2646 (remap_predicate): New function.
2647 (inline_merge_summary): New function.
2648 (do_estimate_edge_time): New function based on...
2649 (estimate_edge_time): ... this one.
2650 (do_estimate_edge_growth): New function.
2651 (do_estimate_growth): New function based on....
2652 (estimate_growth): ... this one.
2653 (inline_analyze_function): Analyze after deciding on jump functions.
2654 (inline_read_section): New function.
2655 (inline_read_summary): Use it.
2656 (inline_write_summary): Write all the new data.
2657 * ipa-prop.c (ipa_get_param_decl_index): Export.
2658 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2659 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2661 (ipa_get_lattice): Move here from ipa-cp.c
2662 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2663 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2664 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2665 cgraph_edge_inlinable_p): Remove.
2666 * cgraphunit.c: Include ipainline.h
2667 (cgraph_process_new_functions): Update call of
2668 compute_inline_parameters.
2670 2011-04-22 Richard Guenther <rguenther@suse.de>
2672 * tree.c (build_int_cst): Properly create canonicalized integer
2674 (build_int_cst_type): Remove scary comments.
2676 2011-04-22 Xinliang David Li <davidxl@google.com>
2678 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2679 by default when -Wno-error is not specified.
2680 * opts-global.c (decode_options): Remove call to
2681 control_warning_options.
2683 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2685 PR tree-optimization/48717
2686 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2687 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2689 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2691 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2692 definition where used.
2694 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2697 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2698 TREE_STATIC variables declared inside of some OpenMP construct.
2700 2011-04-22 Martin Jambor <mjambor@suse.cz>
2703 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2705 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2708 * c-typeck.c (pop_init_level): Do not warn about initializing
2711 2011-04-22 Alan Modra <amodra@gmail.com>
2713 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2714 when returning call_cookie.
2715 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2716 pointers, to functions with no more vector args than the current
2717 function, and some non-local calls for ABI_V4.
2718 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2719 sibcall_nonlocal_aix64): Combine to ..
2720 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2721 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2722 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2723 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2724 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2726 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2727 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2728 sibcall_value_symbolic_64): Delete.
2730 2011-04-21 Xinliang David Li <davidxl@google.com>
2732 * cgraph.h: Remove pid.
2733 * cgraph.c: Remove pid.
2734 * value-prof.c (init_node_map): New function.
2735 (del_node_map): New function.
2736 (find_func_by_funcdef_no): New function.
2737 (gimple_ic_transform): Call new function.
2738 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2739 * function.c (get_last_funcdef_no): New function.
2740 * function.h (get_last_funcdef_no): New function.
2741 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2742 to libgcov function.
2743 (tree-profiling): Call node map init and delete function.
2745 2011-04-21 Ian Lance Taylor <iant@google.com>
2747 * godump.c (go_format_type): Use exported Go name for anonymous
2750 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2752 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2753 Call builtin_function_type_list instead of builtin_function_type.
2754 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2756 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2758 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2759 build_function_type_list instead of build_function_type.
2760 Delete variable `endlink'.
2762 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2764 * config/s390/s390.c (s390_init_builtins): Call
2765 build_function_type_list instead of build_function_type.
2767 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2769 * config/ia64/ia64.c (ia64_init_builtins): Call
2770 build_function_type_list instead of builtin_function_type.
2772 2011-04-21 Easwaran Raman <eraman@google.com>
2774 * cfgexpand.c (stack_var): Remove OFFSET...
2775 (add_stack_var): ...and its reference here...
2776 (expand_stack_vars): ...and here.
2777 (stack_var_cmp): Sort by descending order of size.
2778 (partition_stack_vars): Change heuristic.
2779 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2780 (dump_stack_var_partition): Add newline after each partition.
2782 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2783 Jeff Law <law@redhat.com>
2785 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2786 * gengtype.c (matching_file_name_substitute): Likewise.
2788 2011-04-21 Richard Guenther <rguenther@suse.de>
2791 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2793 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2795 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2797 2011-04-21 Richard Guenther <rguenther@suse.de>
2799 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2802 2011-04-21 Richard Guenther <rguenther@suse.de>
2804 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2805 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2806 Use DECL_P, not SSA_VAR_P.
2807 (ptr_derefs_may_alias_p): Likewise.
2808 (ptr_deref_may_alias_ref_p_1): Likewise.
2809 (decl_refs_may_alias_p): Likewise.
2810 (refs_may_alias_p_1): Likewise.
2811 (ref_maybe_used_by_call_p_1): Likewise.
2812 (call_may_clobber_ref_p_1): Likewise.
2813 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2814 are either MEM_REF or TARGET_MEM_REF.
2815 (indirect_refs_may_alias_p): Likewise.
2816 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2817 for MEM_EXPR of indirect calls.
2819 2011-04-21 Tristan Gingold <gingold@adacore.com>
2821 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2822 (dst_file_info_struct): Remove flen field.
2823 (lookup_filename): Remove code that set flen field.
2825 2011-04-21 Tristan Gingold <gingold@adacore.com>
2827 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2829 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2832 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2833 vec_extract and vec_concat for non-SSE4_1 targets.
2835 2011-04-21 Richard Guenther <rguenther@suse.de>
2837 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2840 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2842 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2844 (FILE): Don't undefine.
2846 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2848 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2850 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2852 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2853 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2854 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2856 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2857 definitions where used.
2858 * config/microblaze/microblaze.h (struct microblaze_args): Use
2859 rtx, not struct rtx_def *.
2860 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2862 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2863 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2864 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2865 not struct rtx_def *.
2866 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2868 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2870 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2872 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2874 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2875 operand_equal_p to compare DR_BASE_ADDRESSes.
2876 (vect_check_interleaving): Likewise.
2878 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2881 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2882 for all Neon struct constants.
2884 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2886 * target.def (legitimate_constant_p): New hook.
2887 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2888 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2889 * doc/tm.texi: Regenerate.
2890 * hooks.h (hook_bool_mode_rtx_true): Declare.
2891 * hooks.c (hook_bool_mode_rtx_true): Define.
2892 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2893 * calls.c (precompute_register_parameters): Replace uses of
2894 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2895 (emit_library_call_value_1): Likewise.
2896 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2897 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2898 * ira-costs.c (scan_one_insn): Likewise.
2899 * recog.c (general_operand, immediate_operand): Likewise.
2900 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2901 * reload1.c (init_eliminable_invariants): Likewise.
2903 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2905 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2906 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2908 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2909 * config/alpha/predicates.md (input_operand): Update call to
2910 alpha_legitimate_constant_p.
2912 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2913 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2914 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2915 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2916 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2917 (arm_legitimate_constant_p): New functions.
2918 (arm_cannot_force_const_mem): Make static.
2920 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2922 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2923 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2924 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2925 instead of bfin_legitimate_constant_p.
2926 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2927 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2929 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2931 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2933 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2934 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2935 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2936 (frv_legitimate_constant_p): Make static. Add a mode argument.
2938 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2939 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2940 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2942 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2943 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2944 * config/i386/i386.c (legitimate_constant_p): Rename to...
2945 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2947 (ix86_cannot_force_const_mem): Update accordingly.
2948 (ix86_legitimate_address_p): Likewise.
2949 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2950 * config/i386/i386.md: Update commentary.
2952 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2953 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2954 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2955 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2957 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2959 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2960 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2961 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2962 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2964 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2965 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2966 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2968 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2969 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2970 (m32r_legitimate_constant_p): New function.
2972 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2973 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2974 LEGITIMATE_CONSTANT_P.
2975 (LEGITIMATE_CONSTANT_P): Delete.
2976 * config/m68k/m68k.c (m68k_expand_prologue): Call
2977 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2978 (m68k_legitimate_constant_p): New function.
2979 * config/m68k/m68k.md: Update comments.
2981 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2982 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2983 (mcore_legitimate_constant_p): New function.
2985 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2986 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2987 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2988 Add a mode argument.
2989 (mep_legitimate_address): Update accordingly.
2990 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2992 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2994 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2995 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2996 static. Check OP's mode for VOIDmode.
2997 (microblaze_legitimate_constant_p): New function.
2998 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3000 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3001 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3002 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3003 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3004 * config/mips/predicates.md: Update comments.
3006 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3007 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3008 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3009 (mmix_legitimate_constant_p): Make static, return a bool, and take
3011 (mmix_print_operand_address): Update accordingly.
3013 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3015 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3016 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3017 static. Add a mode argument.
3018 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3020 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3022 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3023 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3024 (pa_legitimate_constant_p): New function.
3026 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3028 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3029 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3030 (pdp11_legitimate_constant_p): New function.
3032 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3033 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3034 (rs6000_legitimate_constant_p): New function.
3036 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3037 (rx_legitimate_constant_p): ...this.
3038 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3039 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3040 (rx_legitimate_constant_p): ...this.
3041 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3042 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3044 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3045 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3046 * config/s390/s390.c (legitimate_constant_p): Rename to...
3047 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3048 and add a mode argument.
3049 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3051 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3053 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3054 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3055 (sh_legitimate_constant_p): New function.
3057 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3058 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3059 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3060 (legitimate_constant_p): Rename to...
3061 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3063 (constant_address_p): Update accordingly.
3065 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3066 argument and return a bool.
3067 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3068 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3069 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3070 (spu_rtx_costs): Update accordingly.
3071 * config/spu/predicates.md (vec_imm_operand): Likewise.
3073 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3075 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3076 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3077 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3079 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3080 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3081 * config/vax/vax.c (legitimate_constant_p): Likewise.
3083 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3084 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3085 (xtensa_legitimate_constant_p): New function.
3087 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3089 * target.def (cannot_force_const_mem): Add a mode argument.
3090 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3091 * doc/tm.texi: Regenerate.
3092 * hooks.h (hook_bool_mode_rtx_false): Declare.
3093 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3094 (hook_bool_mode_const_rtx_true): Likewise.
3095 (hook_bool_mode_rtx_false): New function.
3096 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3097 to be non-VOID. Update call to cannot_force_const_mem.
3098 (find_reloads): Update accordingly.
3099 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3100 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3102 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3103 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3104 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3105 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3106 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3107 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3108 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3109 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3110 (m68k_cannot_force_const_mem): ...this new function.
3111 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3113 (mips_const_insns, mips_legitimize_const_move): Update calls.
3114 (mips_secondary_reload_class): Likewise.
3115 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3116 (pa_cannot_force_const_mem): ...this new function.
3117 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3118 (rs6000_cannot_force_const_mem): ...this new function.
3119 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3121 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3122 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3124 (xtensa_cannot_force_const_mem): ...this new function.
3126 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3128 * config/mips/mips.c (mips16_build_function_stub): Call
3129 build_function_type_list instead of build_function_type.
3130 (mips16_build_call_stub): Likewise.
3132 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3134 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3135 instead of build_function_type.
3137 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3139 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3140 instead of build_function_type.
3142 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3145 * config/i386/i386.md (insv): Change operand 0 constraint to
3146 "register_operand". Change operand 1 and 2 constraint to
3147 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3148 * config/i386/sse.md (sse4_1_pinsrb): Export.
3149 (sse2_pinsrw): Ditto.
3150 (sse4_1_pinsrd): Ditto.
3151 (sse4_1_pinsrq): Ditto.
3152 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3153 * config/i386/i386.c (ix86_expand_pinsr): New.
3155 2011-04-20 Easwaran Raman <eraman@google.com>
3157 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3158 containing union type only with -fstrict-aliasing.
3160 2011-04-20 Jim Meyering <meyering@redhat.com>
3162 Remove useless if-before-free tests.
3163 * calls.c (expand_call, save_area): Likewise.
3164 * cfgcleanup.c (try_forward_edges): Likewise.
3165 * collect2.c (collect_execute): Likewise.
3166 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3167 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3168 * coverage.c (coverage_checksum_string): Likewise.
3169 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3170 * cselib.c (cselib_init): Likewise.
3171 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3172 (df_set_clean_cfg): Likewise.
3173 * function.c (free_after_compilation): Likewise.
3174 * gcc.c (do_spec_1, main): Likewise.
3175 * gcov.c (create_file_names): Likewise.
3176 * gensupport.c (identify_predicable_attribute): Likewise.
3177 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3178 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3179 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3180 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3181 * ipa-pure-const.c (local_pure_const): Likewise.
3182 * ipa-reference.c (propagate): Likewise.
3183 * ira-costs.c (free_ira_costs): Likewise.
3184 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3185 * matrix-reorg.c (mat_free): Likewise.
3186 * prefix.c (get_key_value): Likewise.
3187 * profile.c (compute_value_histograms): Likewise.
3188 * reload1.c (free_reg_equiv): Likewise.
3189 * sched-deps.c (free_deps): Likewise.
3190 * sel-sched-ir.c (fence_clear): Likewise.
3191 * sese.c (set_rename, if_region_set_false_region): Likewise.
3192 * tree-data-ref.c (free_rdg): Likewise.
3193 * tree-eh.c (lower_try_finally): Likewise.
3194 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3195 * tree-ssa-live.c (delete_var_map): Likewise.
3196 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3197 * tree-ssa-pre.c (phi_trans_add): Likewise.
3199 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3201 PR tree-optimization/48611
3202 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3203 beyond ERT_MUST_NOT_THROW region.
3205 2011-04-20 Catherine Moore <clm@codesourcery.com>
3207 * config/mips/mips.opt (mfix-24k): New.
3208 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3209 * config/mips/mips.md (length): Increase by 4 for stores if
3211 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3212 all noreorder if fixing 24K errata.
3213 * doc/invoke.texi: Document mfix-24k.
3215 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3217 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3218 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3220 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3222 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3223 (const_ok_for_op): ... to here.
3225 2011-04-20 Kai Tietz <ktietz@redhat.com>
3227 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3228 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3230 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3232 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3234 2011-04-20 Richard Guenther <rguenther@suse.de>
3236 PR tree-optimization/47892
3237 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3240 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3242 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3244 2011-04-20 Tristan Gingold <gingold@adacore.com>
3246 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3248 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3252 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3253 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3254 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3255 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3256 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3258 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3261 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3262 (avr_asm_named_section, avr_asm_output_aligned_common,
3263 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3264 New functions to update...
3265 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3266 (avr_asm_init_sections): Overwrite section callbacks for
3267 data_section, bss_section.
3268 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3270 (avr_file_end): ...here.
3272 2011-04-20 Richard Guenther <rguenther@suse.de>
3275 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3276 objects and types here. Adjust for their offset before comparing.
3278 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3280 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3283 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3285 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3286 (GIMPLE_H): Include $(INTERNAL_FN_H).
3287 (OBJS-common): Add internal-fn.o.
3288 (internal-fn.o): New rule.
3289 * internal-fn.def: New file.
3290 * internal-fn.h: Likewise.
3291 * internal-fn.c: Likewise.
3292 * gimple.h: Include internal-fn.h.
3293 (GF_CALL_INTERNAL): New gf_mask.
3294 (gimple_statement_call): Put fntype into a union with a new
3296 (gimple_build_call_internal): Declare.
3297 (gimple_build_call_internal_vec): Likewise.
3298 (gimple_call_same_target_p): Likewise.
3299 (gimple_call_internal_p): New function.
3300 (gimple_call_internal_fn): Likewise.
3301 (gimple_call_fntype): Return null for internal calls.
3302 (gimple_call_set_fntype): Assert that the function is not internal.
3303 (gimple_call_set_fn): Likewise.
3304 (gimple_call_set_fndecl): Likewise.
3305 (gimple_call_set_internal_fn): New function.
3306 (gimple_call_addr_fndecl): Handle null functions.
3307 (gimple_call_return_type): Likewise null types.
3308 * gimple.c (gimple_build_call_internal_1): New function.
3309 (gimple_build_call_internal): Likewise.
3310 (gimple_build_call_internal_vec): Likewise.
3311 (gimple_call_same_target_p): Likewise.
3312 (gimple_call_flags): Handle calls to internal functions.
3313 (gimple_call_fnspec): New function.
3314 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3315 (gimple_has_side_effects): Handle null functions.
3316 (gimple_rhs_has_side_effects): Likewise.
3317 (gimple_call_copy_skip_args): Handle calls to internal functions.
3318 * cfgexpand.c (expand_call_stmt): Likewise.
3319 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3320 * gimple-fold.c (gimple_fold_call): Handle null functions.
3321 (gimple_fold_stmt_to_constant_1): Don't fold
3322 calls to internal functions.
3323 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3325 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3326 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3327 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3328 (do_warn_unused_result): Likewise.
3329 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3330 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3331 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3332 the target of a call.
3333 (initialize_hash_element): Update accordingly.
3334 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3335 (iterative_hash_hashable_expr): Handle calls to internal functions.
3336 (print_expr_hash_elt): Likewise.
3337 * tree-ssa-pre.c (can_value_number_call): Likewise.
3338 (eliminate): Handle null functions.
3339 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3340 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3341 (find_func_aliases): Likewise.
3342 * value-prof.c (gimple_ic_transform): Likewise.
3343 (gimple_indirect_call_to_profile): Likewise.
3344 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3345 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3347 2011-04-19 Jan Hubicka <jh@suse.cz>
3349 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3350 * ipa-inline.c (inline_small_functions): Compute summaries first,
3351 populate heap later.
3353 2011-04-19 Jan Hubicka <jh@suse.cz>
3355 * cgraph.h (save_inline_function_body): Remove.
3356 * ipa-inline-transform.c: New file, broke out of...
3357 * ipa-inline.c: ... this one; Update toplevel comment.
3358 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3360 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3361 (cgraph_mark_inline_edge): Rename to inline_call; move to
3362 ipa-inline-transform.c.
3363 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3364 move to ipa-inline-transform.c
3365 (recursive_inlining, inline_small_functions, flatten_function,
3366 ipa_inline, inline_always_inline_functions,
3367 early_inline_small_functions): Update.
3368 (inline_transform): Move to ipa-inline-transform.c.
3369 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3371 * Makefile.in (ipa-inline-transform.o): New file.
3372 * cgraphunit.c (save_inline_function_body): Move to
3373 ipa-inline-transform.c
3375 2011-04-19 DJ Delorie <dj@redhat.com>
3377 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3378 registers if we already know there aren't any.
3379 (m32c_emit_epilogue): Don't emit a barrier here.
3380 (m32c_emit_eh_epilogue): Likewise.
3381 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3382 operands at expand time.
3383 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3385 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3386 duplicates. Provide aliases instead.
3387 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3388 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3391 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3393 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3394 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3395 (general_or_i64_p, sparc_register_move_cost): New function.
3397 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3399 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3400 Add lynx, mipssde. Sort table.
3402 2011-04-19 Xinliang David Li <davidxl@google.com>
3404 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3407 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3410 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3411 is a SUBREG with non-MODE_INT mode inside of it.
3413 2011-04-19 Martin Jambor <mjambor@suse.cz>
3415 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3416 also according to actual contants.
3417 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3418 (gimple_fold_call): Use it.
3419 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3421 2011-04-19 Martin Jambor <mjambor@suse.cz>
3423 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3424 non-pointer assignments.
3426 2011-04-19 Martin Jambor <mjambor@suse.cz>
3428 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3429 account anc_offset and otr_type from the indirect edge info.
3430 * ipa-prop.c (get_ancestor_addr_info): New function.
3431 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3432 get_ancestor_addr_info, call it.
3433 (ipa_note_param_call): Do not initialize information about polymorphic
3434 calls, return the indirect call graph edge. Remove the last
3435 parameter, adjust all callers.
3436 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3437 parameters. Initialize polymorphic information in the indirect edge.
3439 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3442 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3443 the types if they have different enumeration identifiers.
3445 2011-04-19 Jan Hubicka <jh@suse.cz>
3447 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3448 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3449 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3450 (optimize_function_for_size_p) ... here.
3452 2011-04-19 Richard Guenther <rguenther@suse.de>
3455 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3458 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3460 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3461 if DECL_NO_INLINE_WARNING_P is set on the function.
3463 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3466 * reload1.c (inc_for_reload): Return void. All callers changed.
3467 (emit_input_reload_insns): Don't try to delete previous output
3468 reloads to a register, or record spill_reg_store for autoincs.
3470 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3472 * gengtype.h: Updated copyright year.
3473 (struct input_file_st): Add inpisplugin field.
3474 (type_fileloc): New function.
3476 (write_typed_struct_alloc_def): Add gcc_assert.
3477 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3478 (write_typed_alloc_defns): Don't output for plugin files.
3479 (input_file_by_name): Clear inpisplugin field.
3480 (main): Set inpisplugin field for plugin files.
3482 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3484 * gengtype-state.c (string_eq): New.
3485 (read_state): Use string_eq instead of strcmp when creating the
3488 2011-04-19 Wei Guozhi <carrot@google.com>
3491 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3492 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3494 * config/arm/constraints.md (Uu): New constraint.
3495 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3497 2011-04-19 Tristan Gingold <gingold@adacore.com>
3499 * config.gcc (-*-*-*vms): Added.
3500 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3502 * config/vms/vms-ld.c: New file.
3503 * config/vms/vms-ar.c: New file.
3504 * config/vms/t-vmsnative: New file.
3506 2011-04-18 Xinliang David Li <davidxl@google.com>
3508 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3510 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3513 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3514 if TREE_TYPE (v) is non-NULL.
3516 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3517 gimple_get_virt_mehtod_for_binfo.
3518 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3519 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3521 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3523 2011-04-18 Michael Matz <matz@suse.de>
3524 Steve Ellcey <sje@cup.hp.com>
3526 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3527 use its mode as source mode if it isn't VOIDmode.
3529 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3531 * doc/passes.texi: Fill crossref nodes.
3533 2011-04-18 Jim Meyering <meyering@redhat.com>
3535 Fix doubled-word typos in comments and strings
3536 * config/alpha/vms-unwind.h: s/for for/for/
3537 * config/arm/unwind-arm.h: Likewise.
3538 * config/microblaze/microblaze.c: Likewise.
3539 * config/sh/constraints.md: s/in in/in/
3540 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3542 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3544 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3545 (AVX_FLOAT_MODE_P): Ditto.
3546 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3547 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3548 (AVX_VEC_FLOAT_MODE_P): Ditto.
3549 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3550 (UNSPEC_MASKSTORE): Ditto.
3551 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3552 Merge from <sse>_movmsk<ssemodesuffix> and
3553 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3554 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3556 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3557 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3558 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3560 2011-04-18 Jan Hubicka <jh@suse.cz>
3562 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3564 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3565 (want_inline_function_called_once_p): Break out the logic from
3567 (edge_badness): Ensure that profile is not misupdated.
3568 (lookup_recursive_calls): Prioritize by call frequencies.
3569 (inline_small_functions): Move program size estimates here;
3570 actually process whole queue even when unit growth has been
3571 met. (to properly compute inline_failed reasons and for the
3572 case unit size decrease.) Revisit comments on recursive inlining.
3573 (ipa_inline): Remove unit summary code; first inline hot calls
3574 of functions called once, cold calls next.
3575 (order, nnodes): Remove unused variables.
3576 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3577 (GTFILES): Remove ipa-inline.c
3578 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3580 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3582 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3584 2011-04-18 Jie Zhang <jie@codesourcery.com>
3585 Richard Earnshaw <rearnsha@arm.com>
3587 * arm.c (neon_builtin_type_bits): Remove.
3588 (typedef enum neon_builtin_mode): New.
3589 (T_MAX): Don't define.
3590 (typedef enum neon_builtin_datum): Remove bits, codes[],
3591 num_vars and base_fcode. Add mode, code and fcode.
3592 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3593 VAR10): Change accordingly.
3594 (neon_builtin_data[]): Change accordingly
3595 (arm_init_neon_builtins): Change accordingly.
3596 (neon_builtin_compare): Remove.
3597 (locate_neon_builtin_icode): Remove.
3598 (arm_expand_neon_builtin): Change accordingly.
3600 * arm.h (enum arm_builtins): Move to ...
3601 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3603 * arm.c (arm_builtin_decl): Declare.
3604 (TARGET_BUILTIN_DECL): Define.
3605 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3606 (arm_builtin_decls[]): New.
3607 (arm_init_neon_builtins): Store builtin declarations in
3608 arm_builtin_decls[].
3609 (arm_init_tls_builtins): Likewise.
3610 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3611 (arm_builtin_decl): New.
3613 2011-04-18 Richard Guenther <rguenther@suse.de>
3615 * tree.c (upper_bound_in_type): Build properly canonicalized
3617 (lower_bound_in_type): Likewise.
3619 2011-04-18 Richard Guenther <rguenther@suse.de>
3621 * gimple.h (gimple_call_addr_fndecl): New function.
3622 (gimple_call_fndecl): Use it.
3623 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3625 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3626 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3628 2011-04-18 Richard Guenther <rguenther@suse.de>
3631 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3633 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3636 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3637 DECL_IN_CONSTANT_POOL without RTL.
3639 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3640 Ira Rosen <ira.rosen@linaro.org>
3643 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3644 to match neon_vzip/vuzp/vtrn_internal.
3645 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3646 outputs explicitly dependent on both inputs.
3647 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3649 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3651 PR tree-optimization/48616
3652 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3653 whether the shift is by scalar or vector based on whether all SLP
3654 scalar stmts have the same rhs.
3656 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3658 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3661 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3663 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3666 2011-04-17 Jan Hubicka <jh@suse.cz>
3668 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3669 * cgrpahunit.c (cgraph_finalize_function): Do not set
3670 finalized_by_frontend.
3671 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3672 finalized_by_frontend.
3674 2011-04-17 Jan Hubicka <jh@suse.cz>
3676 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3677 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3678 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3679 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3681 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3683 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3685 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3688 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3689 is non-null before accessing it.
3690 (input_cgraph): Remove trailing spaces.
3692 2011-04-17 Revital Eres <revital.eres@linaro.org>
3694 * params.def (sms-min-sc): New param flag.
3695 * modulo-sched.c (sms_schedule): Use it.
3696 * doc/invoke.texi (sms-min-sc): Document it.
3698 2011-04-17 Jan Hubicka <jh@suse.cz>
3700 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3701 present, also set gimple_call_set_cannot_inline.
3702 * ipa-inline.c: Update toplevel comment.
3704 (cgraph_clone_inlined_nodes): Fix linebreaks.
3705 (cgraph_check_inline_limits): Restructure to ...
3706 (caller_growth_limits): ... this one; be more tolerant
3707 on growth in nested inline chains; add explanatory comment;
3708 fix stack accounting thinko introduced by previous patch.
3709 (cgraph_default_inline_p): Remove.
3710 (report_inline_failed_reason): New function.
3711 (can_inline_edge_p): New function.
3712 (can_early_inline_edge_p): New function.
3713 (leaf_node_p): Move upwards in file.
3714 (want_early_inline_function_p): New function.
3715 (want_inline_small_function_p): New function.
3716 (want_inline_self_recursive_call_p): New function.
3717 (cgraph_edge_badness): Rename to ...
3718 (edge_badness) ... this one; fix linebreaks.
3719 (update_edge_key): Update call of edge_baddness; add
3720 detailed dump about queue updates.
3721 (update_caller_keys): Use can_inline_edge_p and
3722 want_inline_small_function_p.
3723 (cgraph_decide_recursive_inlining): Rename to...
3724 (recursive_inlining): Use can_inline_edge_p and
3725 want_inline_self_recursive_call_p; simplify and remove no longer
3727 (cgraph_set_inline_failed): Remove.
3728 (add_new_edges_to_heap): Use can_inline_edge_p and
3729 want_inline_small_function_p.
3730 (cgraph_decide_inlining_of_small_functions): Rename to ...
3731 (inline_small_functions): ... this one; cleanup; use
3732 can/want predicates; cleanup debug ouput; work edges till fibheap
3733 is exhausted and do not stop once unit growth is reached; remove
3734 later loop processing remaining edges.
3735 (cgraph_flatten): Rename to ...
3736 (flatten_function): ... this one; use can_inline_edge_p
3737 and can_early_inline_edge_p predicates.
3738 (cgraph_decide_inlining): Rename to ...
3739 (ipa_inline): ... this one; remove unreachable nodes before
3740 inlining functions called once; simplify the pass.
3741 (cgraph_perform_always_inlining): Rename to ...
3742 (inline_always_inline_functions): ... this one; use
3743 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3744 (cgraph_decide_inlining_incrementally): Rename to ...
3745 (early_inline_small_functions): ... this one; simplify
3746 using new predicates; cleanup; make dumps prettier.
3747 (cgraph_early_inlining): Rename to ...
3748 (early_inliner): newer inline regular functions into always-inlines;
3749 fix updating of call stmt summaries.
3750 (pass_early_inline): Update for new names.
3751 (inline_transform): Fix formating.
3752 (gate_cgraph_decide_inlining): Rename to ...
3753 (pass_ipa_inline): ... this one.
3754 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3755 * ipa-inline-analysis.c (dump_inline_summary): Update.
3756 (compute_inline_parameters): Do not compute disregard_inline_limits;
3757 look for mismatching arguments.
3758 (estimate_growth): Fix handlig of non-trivial self recursion.
3759 (inline_read_summary): Do not read info->disregard_inline_limits.
3760 (inline_write_summary): Do not write info->disregard_inline_limits.
3761 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3762 and move all checks into can_inline_edge_p predicate; re-enable code
3763 comparing optimization levels.
3764 (expand_call_inline): Do not test inline_forbidden_into_p.
3765 * Makefile.in (ipa-inline.o): Update arguments.
3767 2011-04-17 Revital Eres <revital.eres@linaro.org>
3769 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3771 2011-04-17 Revital Eres <revital.eres@linaro.org>
3773 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3775 2011-04-17 Michael Matz <matz@suse.de>
3777 PR tree-optimization/48622
3779 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3780 in same order as they're written.
3782 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3784 * config/pa/predicates.md: Reorganize and simplify predicates.
3785 Eliminate duplicate code checks.
3786 (arith_operand): Rename to arith14_operand
3787 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3788 * config/pa/pa.md: Use renamed operands.
3789 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3790 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3791 arith11_operand, adddi3_operand, indexed_memory_operand,
3792 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3793 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3794 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3795 move_dest_operand, move_src_operand, prefetch_cc_operand,
3796 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3797 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3798 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3799 div_operand, int5_operand, movb_comparison_operator,
3800 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3801 arith_double_operand, ireg_operand, lhs_lshift_operand,
3802 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3803 integer_store_memory_operand): Likewise.
3804 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3805 (integer_store_memory_operand, read_only_operand,
3806 function_label_operand, borx_reg_operand,
3807 non_hard_reg_operand): Likewise.
3808 (eq_neq_comparison_operator): Delete unused operator.
3809 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3810 function_label_operand.
3811 (emit_move_sequence): Likewise.
3813 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3815 * config/i386/sse.md (sseunpackmode): New mode attribute.
3816 (ssepackmode): Ditto.
3817 (vec_pack_trunc_<mode>): Macroize expander from
3818 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3819 (vec_unpacks_lo_<mode>): Macroize expander from
3820 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3821 (vec_unpacks_hi_<mode>): Macroize expander from
3822 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3823 (vec_unpacku_lo_<mode>): Macroize expander from
3824 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3825 (vec_unpacku_hi_<mode>): Macroize expander from
3826 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3827 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3828 ix86_expand_sse4_unpack.
3829 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3831 2011-04-16 Jan Hubicka <jh@suse.cz>
3833 * cgraphbuild.c: Include ipa-inline.h.
3834 (reset_inline_failed): Use initialize_inline_failed.
3835 * cgraph.c: Include ipa-inline.h.
3836 (cgraph_create_node_1): Do not initialize estimated_growth.
3837 (initialize_inline_failed): More to ipa-inline-analysis.c
3838 (dump_cgraph_node): Do not dump inline flags.
3839 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3840 and disregard_inline_limits flags.
3841 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3842 time, size, estimated_growth.
3843 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3845 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3846 DECL_DISREGARD_INLINE_LIMITS.
3847 (cgraph_analyze_function): Do not initialize
3848 node->local.disregard_inline_limits.
3849 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3850 inlinable, versionable and disregard_inline_limits.
3851 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3852 cgraph_check_inline_limits, cgraph_default_inline_p,
3853 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3854 add_new_edges_to_heap): Update.
3855 (cgraph_decide_inlining_of_small_function): Update; set
3856 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3857 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3858 cgraph_decide_inlining_incrementally): Update.
3859 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3860 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3861 time, size and estimated_growth parameters.
3862 (estimate_edge_growth): Update.
3863 (initialize_inline_failed): Declare.
3864 * ipa-split.c: Include ipa-inline.h
3865 (execute_split_functions): Update.
3866 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3867 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3868 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3869 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3870 estimated_growth to INT_MIN.
3871 (inline_node_duplication_hook): Likewise.
3872 (dump_inline_summary): Dump new fields.
3873 (compute_inline_parameters): Update.
3874 (estimate_edge_time, estimate_time_after_inlining,
3875 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3876 inline_write_summary):
3877 (initialize_inline_failed): Move here from cgraph.c.
3878 * tree-sra.c: Include ipa-inline.h.
3879 (ipa_sra_preliminary_function_checks): Update.
3880 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3883 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3885 * config/i386/sse.md (V16): New mode iterator.
3887 (AVXMODEQI, AVXMODEDI): Remove.
3888 (sse2, sse3): New mode attribute.
3889 (mov<mode>): Use V16 mode iterator.
3890 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3891 (push<mode>1): Use V16 mode iterator.
3892 (movmisalign<mode>): Ditto.
3893 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3894 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3895 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3896 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3897 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3898 avx_movdqu<avxmodesuffix>.
3899 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3900 *avx_movdqu<avxmodesuffix>.
3901 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3902 avx_lddqu<avxmodesuffix>.
3903 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3904 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3905 avx_movnt<AVXMODEDI:mode>.
3906 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3907 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3909 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3912 * haifa-sched.c (prune_ready_list, schedule_block): Use
3913 sched_pressure_p rather than flag_sched_pressure.
3915 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3917 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3918 cgraph_get_node instead of cgraph_get_create_node.
3920 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3922 * cfgexpand.c (expand_debug_expr): Use
3923 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3925 2011-04-15 Michael Matz <matz@suse.de>
3927 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3928 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3929 * function.c (gimplify_parameters): Ditto.
3930 * gimplify.c (gimplify_vla_decl): Ditto.
3932 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3933 (gimple_call_set_alloca_for_var): New inline function.
3934 (gimple_call_alloca_for_var_p): Ditto.
3935 * gimple.c (gimple_build_call_from_tree): Remember
3936 CALL_ALLOCA_FOR_VAR_P state.
3937 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3939 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3940 calls if they were for VLA objects.
3942 2011-04-15 Martin Jambor <mjambor@suse.cz>
3944 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3947 2011-04-15 Martin Jambor <mjambor@suse.cz>
3950 * tree-emutls.c (lower_emutls_function_body): Call
3951 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3954 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3956 * c-decl.c (detect_field_duplicates): Call
3957 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3959 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3961 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3962 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3963 * ipa-pure-const.c (check_stmt): Call it.
3964 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3966 2011-04-15 Richard Guenther <rguenther@suse.de>
3968 PR tree-optimization/48290
3969 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3970 Properly decide inhibiting propagation based on the valueized
3971 operand. Do loop-closed SSA form preserving here ...
3972 (init_copy_prop): ... not here.
3974 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3977 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3978 (*ieee_smax<mode>3): Likewise.
3980 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3982 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3983 Replace match_operand with match_dup for the third operand in
3986 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3988 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3989 to track processing of conditionals. Update all callers.
3990 (try_combine, simplify_if_then_else): Update.
3992 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3994 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3997 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3999 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4000 instead of match_operand for operand 3.
4002 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4004 * recog.h (insn_operand_data): Add an "allows_mem" field.
4005 * genoutput.c (output_operand_data): Initialize it.
4006 * optabs.c (maybe_legitimize_operand_same_code): New function.
4007 (maybe_legitimize_operand): Use it when matching the original
4010 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4012 * gimplify.c: Fix issues in comments throughout.
4013 (voidify_wrapper_expr): Fix long line.
4014 (build_stack_save_restore): Likewise.
4015 (gimplify_loop_expr): Likewise.
4016 (gimplify_compound_lval): Likewise.
4017 (gimplify_init_ctor_eval): Likewise.
4018 (gimplify_modify_expr_rhs): Likewise.
4019 (omp_notice_threadprivate_variable): Likewise.
4021 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4023 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4024 original one if this is not a builtin function.
4026 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4029 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4030 offset it as needed based on top 2 bits in operands[3], change
4031 MEM mode to SFmode and mask those 2 bits away from operands[3].
4033 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4035 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4036 change from objc_declare_protocols() to objc_declare_protocol().
4038 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4040 * config/i386/sse.md (sse4_1): New mode attribute.
4041 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4042 avx_blend<ssemodesuffix><avxmodesuffix> and
4043 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4044 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4045 avx_blendv<ssemodesuffix><avxmodesuffix> and
4046 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4047 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4048 avx_dp<ssemodesuffix><avxmodesuffix> and
4049 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4050 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4051 (sse4_1_packusdw): Merge with *avx_packusdw.
4052 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4053 (sse4_1_pblendw): Merge with *avx_pblendw.
4054 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4055 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4056 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4058 (sse4_1_round<ssescalarmodesuffix>): Merge with
4059 *avx_round<ssescalarmodesuffix>.
4060 (aesenc): Merge with *avx_aesenc.
4061 (aesenclast): Merge with *avx_aesenclast.
4062 (aesdec): Merge with *avx_aesdec.
4063 (aesdeclast): Merge with *avx_aesdeclast.
4064 (pclmulqdq): Merge with *pclmulqdq.
4065 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4067 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4069 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4072 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4073 (align_local_variable): This. Update DECL_ALIGN.
4074 (add_stack_var): Updated.
4075 (expand_one_stack_var): Likewise.
4077 2011-04-14 Richard Guenther <rguenther@suse.de>
4079 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4081 (dse_initialize_block_local_data, dse_leave_block,
4082 record_voperand_set, get_stmt_uid): Likewise.
4083 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4084 (dse_optimize_stmt): Remove voperand set handling code.
4085 Simplify and improve to handle any kind of killing stmt.
4086 (dse_record_phi): Remove.
4087 (dse_enter_block): Simplify.
4088 (tree_ssa_dse): Likewise.
4089 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4091 2011-04-14 Jan Hubicka <jh@suse.cz>
4093 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4094 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4095 (cgraph_local_info): Remove inline_summary.
4096 * ipa-cp.c: Include ipa-inline.h.
4097 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4098 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4100 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4101 (input_overwrite_node): Do not set inline summary.
4102 (input_node): Do not stream inline summary.
4103 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4104 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4105 growth; we do not have inline parameters computed for that anyway.
4106 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4107 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4108 (inline_summary_t): New type and VECtor.
4109 (debug_inline_summary, dump_inline_summaries): Declare.
4110 (inline_summary): Use VOCtor.
4111 (estimate_edge_growth): Kill hack computing call stmt size directly.
4112 * lto-section-in.c (lto_section_name): Add inline section.
4113 * ipa-inline-analysis.c: Include lto-streamer.h
4114 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4115 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4116 (inline_summary_vec): Define.
4117 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4118 dump_inline_summaries): New functions.
4119 (estimate_function_body_sizes): Properly compute size/time of outgoing
4121 (compute_inline_parameters): Alloc inline_summary; do not compute
4122 size/time of incomming calls.
4123 (estimate_edge_time): Avoid missing time summary hack.
4124 (inline_read_summary): Read inline summary info.
4125 (inline_write_summary): Write inline summary info.
4126 (inline_free_summary): Free all hooks and inline summary vector.
4127 * lto-streamer.h: Add LTO_section_inline_summary section.
4128 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4129 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4131 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4133 * tree-vectorizer.h (vect_strided_store_supported): Add a
4134 HOST_WIDE_INT argument.
4135 (vect_strided_load_supported): Likewise.
4136 (vect_permute_store_chain): Return void.
4137 (vect_transform_strided_load): Likewise.
4138 (vect_permute_load_chain): Delete.
4139 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4140 count argument. Check that the count is a power of two.
4141 (vect_strided_load_supported): Likewise.
4142 (vect_permute_store_chain): Return void. Update after above changes.
4143 Assert that the access is supported.
4144 (vect_permute_load_chain): Likewise.
4145 (vect_transform_strided_load): Return void.
4146 * tree-vect-stmts.c (vectorizable_store): Update calls after
4147 above interface changes.
4148 (vectorizable_load): Likewise.
4149 (vect_analyze_stmt): Don't check for strided powers of two here.
4151 2011-04-14 Richard Guenther <rguenther@suse.de>
4153 PR tree-optimization/48590
4154 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4155 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4156 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4157 BUILT_IN_STACK_SAVE.
4158 * tree-ssa-dce.c (propagate_necessity): Handle
4159 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4161 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4163 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4166 2011-04-14 Richard Guenther <rguenther@suse.de>
4168 * tree.h (get_object_alignment_1): Declare.
4169 * builtins.c (get_object_alignment_1): Split out worker from ...
4170 (get_object_alignment): ... here.
4171 * fold-const.c (get_pointer_modulus_and_residue): Use
4172 get_object_alignment_1.
4174 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4176 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4178 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4179 parameter. Generalise code to handle arrays as well as vectors.
4180 (vect_setup_realignment): Update accordingly.
4181 * tree-vect-stmts.c (vectorizable_store): Likewise.
4182 (vectorizable_load): Likewise.
4184 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4186 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4187 within the per-copy loop.
4189 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4191 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4194 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4196 * doc/options.texi (Negative): Explicitly mention that the
4197 Negative chain must be circular.
4199 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4201 * function.h (block_chainon): Declare.
4202 * function.c (block_chainon): Define.
4204 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4205 Eric Weddington <eric.weddington@atmel.com>
4206 Georg-Johann Lay <avr@gjlay.de>
4208 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4210 (avr_init_builtins, avr_expand_builtin,
4211 avr_expand_delay_cycles, avr_expand_unop_builtin,
4212 avr_expand_binop_builtin ): New functions.
4213 (avr_builtin_id): New enum
4214 (struct avr_builtin_description): New struct
4215 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4216 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4218 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4219 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4220 UNSPECV_DELAY_CYCLES): new enumeration values
4221 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4222 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4223 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4224 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4225 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4226 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4227 "fmulsu"): New insns
4229 * config/avr/avr-c.c: fix line endings
4230 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4231 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4232 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4233 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4234 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4236 * doc/extend.texi (AVR Built-in Functions): New node
4237 (Target Builtins): Add documentation of AVR
4240 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4243 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4244 alone. Error if non-const data has attribute progmem.
4246 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4248 * tree.h (struct tree_constructor): Include tree_typed instead of
4250 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4251 TS_TYPED instead of TS_COMMON.
4253 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4255 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4256 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4257 (sse2_psadbw): Merge with *avx_psadbw.
4258 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4259 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4260 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4261 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4262 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4263 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4264 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4265 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4266 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4267 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4268 (ssse3_palignrti): Merge with *avx_palignrti.
4270 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4272 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4273 * tree-ssanames.c (fini_ssanames): VEC_free it.
4274 (make_ssa_name_fn): Update for VECness of free_ssanames.
4275 (release_ssa_name, release_dead_ssa_names): Likewise.
4276 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4278 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4279 TS_TYPED instead of TS_COMMON.
4281 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4283 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4284 statistics_counter_event.
4285 * tree-ssa-copyrename.c (stats): Define.
4286 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4287 statistics_counter_event.
4288 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4289 (bswap_stats, widen_mul_stats): Define.
4290 (insert_reciprocals): Increment rdivs_inserted.
4291 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4292 rfuncs_inserted. Add calls to statistics_counter_event.
4293 (execute_cse_sincos_1): Increment inserted.
4294 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4295 statistics_counter_event.
4296 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4297 of bswap_stats. Add calls to statistics_counter_event.
4298 (convert_mult_to_widen): Increment widen_mults_inserted.
4299 (convert_plusminus_to_widen): Increment maccs_inserted.
4300 (convert_mult_to_fma): Increment fmas_inserted.
4301 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4302 calls to statistics_counter_event.
4304 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4306 PR rtl-optimization/48455
4307 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4308 `temp_costs->mem_cost'.
4310 2011-04-13 Jan Hubicka <jh@suse.cz>
4312 * ipa-inline.h: New file.
4313 * ipa-inline-analysis.c: New file. Broken out of ...
4314 * ipa-inline.c: ... this file; update toplevel comment;
4315 include ipa-inline.h
4316 (inline_summary): Move to ipa-inline.h
4317 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4318 ipa-inline-analysis.c.
4319 (cgraph_estimate_time_after_inlining): Rename to
4320 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4321 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4322 to estimate_edge_growth.
4323 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4324 rename to estimate_size_after_inlining.
4325 (cgraph_mark_inline_edge): Update for new naming convention.
4326 (cgraph_check_inline_limits): Likewise.
4327 (cgraph_edge_badness): Likewise.
4328 (cgraph_decide_recursive_inlining): Likewise.
4329 (cgraph_decide_inlining_of_small_functions): Likewise.
4330 (cgraph_decide_inlining_incrementally): Likewise.
4331 (cgraph_estimate_growth): Rename to estimate_growth; move to
4332 ipa-inline-analysis.c.
4333 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4334 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4335 (compute_inline_parameters): Likewise.
4336 (compute_inline_parameters_for_current): Likewise.
4337 (pass_inline_parameters): Likewise.
4338 (inline_indirect_intraprocedural_analysis): Likewise.
4339 (analyze_function): Rename to inline_analyze_function; likewise.
4340 (add_new_function): Move to ipa-inline-analysis.c.
4341 (inline_generate_summary): Likewise.
4342 (inline_read_summary): Likewise.
4343 (inline_write_summary): Likewise.
4344 * Makefile.in (ipa-inline-analysis.c): New file.
4346 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4348 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4349 * configure: Regenerate.
4351 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4353 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4354 instead of tree_common.
4355 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4357 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4358 TS_TYPED rather than TS_COMMON.
4359 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4361 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4364 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4365 r20 around calls of __tablejump_elpm__
4367 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4370 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4372 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4374 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4376 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4377 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4378 (cfi_vec): New typedef.
4379 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4380 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4381 (cie_cfi_vec): New static variable.
4382 (cie_cfi_head): Delete.
4383 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4384 declaration changed. Use vector rather than list operations.
4385 (new_cfi): Don't initialize the dw_cfi_next field.
4386 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4387 rather than list operations.
4388 (lookup_cfa): Use vector rather than list operations.
4389 (output_cfis): New argument upto. Accept a cfi_vec rather than
4390 a dw_cfi_ref list head as argument. All callers changed.
4391 Iterate over the vector using upto as a maximum index.
4392 (output_all_cfis): New static function.
4393 (output_fde): Use vector rather than list operations. Use the
4394 new upto argument for output_cfis rather than manipulating a
4396 (dwarf2out_begin_prologue): Change initializations to match
4398 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4399 from the vector length rather than searching for the end of a list.
4400 Use output_all_cfis.
4401 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4403 2011-04-13 Nick Clifton <nickc@redhat.com>
4405 * config/rx/rx.md (movmemsi): Do not use this pattern when
4406 volatile pointers are involved.
4408 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4410 * config/i386/sse.md (pinsrbits): Remove.
4411 (sse2_packsswb): Merge with *avx_packsswb.
4412 (sse2_packssdw): Merge with *avx_packssdw.
4413 (sse2_packuswb): Merge with *avx_packuswb.
4414 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4415 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4416 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4417 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4418 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4419 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4420 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4421 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4422 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4423 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4424 (sse2_loadld): Merge with *avx_loadld.
4425 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4426 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4427 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4428 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4429 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4431 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4433 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4435 * print-tree.c (print_node): Likewise.
4436 * tree-inline.c (copy_tree_r): Likewise.
4437 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4438 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4439 instead of TS_COMMON.
4440 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4441 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4442 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4443 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4444 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4446 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4448 (TREE_CHAIN): Check for a TS_COMMON structure.
4449 (TREE_TYPE): Check for a TS_TYPED structure.
4451 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4453 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4454 cgraph_get_create_node instead of cgraph_node.
4456 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4458 * c-parser.c (c_parser_initelt): Updated call to
4459 objc_build_message_expr.
4460 (c_parser_postfix_expression): Likewise.
4462 2011-04-12 Kai Tietz <ktietz@redhat.com>
4464 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4465 MASK_MS_BITFIELD_LAYOUT bit.
4467 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4469 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4470 assert it is always true.
4471 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4474 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4476 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4477 compiling Objective-C to be more efficient.
4479 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4481 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4484 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4486 * recog.h, genoutput.c, optabs.c: Revert last patch.
4488 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4491 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4493 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4495 * recog.h (insn_operand_data): Add an "allows_mem" field.
4496 * genoutput.c (output_operand_data): Initialize it.
4497 * optabs.c (maybe_legitimize_operand_same_code): New function.
4498 (maybe_legitimize_operand): Use it when matching the original
4501 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4503 * genpreds.c (process_define_predicate): Move most processing
4504 to gensupport.c. Continue to validate the expression.
4505 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4506 (process_define_predicate): Move processing to gensupport.c.
4507 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4508 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4509 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4511 (valid_predicate_name_p): New function, split out from old
4512 genpreds.c:process_define_predicate.
4513 (process_define_predicate): New function, combining code from
4514 old genpreds.c and genrecog.c functions.
4515 (process_rtx): Call it for DEFINE_PREDICATE and
4516 DEFINE_SPECIAL_PREDICATE.
4518 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4520 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4521 size of a '%A' memory reference.
4522 (T_DREG, T_QREG): New neon_builtin_type_bits.
4523 (arm_init_neon_builtins): Assert that the load and store operands
4524 are neon_struct_operands.
4525 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4526 (NEON_ARG_MEMORY): New builtin_arg.
4527 (neon_dereference_pointer): New function.
4528 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4529 Handle NEON_ARG_MEMORY.
4530 (arm_expand_neon_builtin): Update after above interface changes.
4531 Use NEON_ARG_MEMORY for loads and stores.
4532 * config/arm/predicates.md (neon_struct_operand): New predicate.
4533 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4534 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4535 (V_four_elem): Tweak formatting.
4536 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4537 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4538 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4539 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4540 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4541 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4542 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4543 Use %A in the output template.
4544 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4545 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4546 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4547 the width of the memory access. Remove post-increment.
4548 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4550 2011-04-12 Nick Clifton <nickc@redhat.com>
4552 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4553 instruction for interrupt handlers if the target is the basic V850
4555 (expand_epilogue): Likewise.
4557 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4559 PR rtl-optimization/48549
4560 * combine.c (propagate_for_debug): Also stop after BB_END of
4561 this_basic_block. Process LAST and just stop processing after it.
4562 (combine_instructions): If last_combined_insn has been deleted,
4563 set last_combined_insn to its PREV_INSN.
4565 2011-04-12 Richard Guenther <rguenther@suse.de>
4567 PR tree-optimization/46076
4568 * gimple.h (struct gimple_statement_call): Add fntype field.
4569 (gimple_call_fntype): Adjust.
4570 (gimple_call_set_fntype): New function.
4571 * gimple.c (gimple_build_call_1): Set the call function type.
4572 * gimplify.c (gimplify_call_expr): Preserve the function
4573 type the frontend used for the call.
4574 (gimplify_modify_expr): Likewise.
4575 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4577 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4579 * tree-ssa.c (useless_type_conversion_p): Function pointer
4580 conversions are useless.
4582 2011-04-12 Martin Jambor <mjambor@suse.cz>
4584 * cgraph.h (cgraph_node): Remove function declaration.
4585 (cgraph_create_node): Declare.
4586 (cgraph_get_create_node): Likewise.
4587 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4588 Updated all callers.
4589 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4590 the decl does not already exist. Call cgraph_get_create_node instead
4592 (cgraph_get_create_node): New function.
4593 (cgraph_same_body_alias): Update comment.
4594 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4595 assert it does not return NULL.
4596 (cgraph_update_edges_for_call_stmt): Likewise.
4597 (cgraph_clone_edge): Likewise.
4598 (cgraph_create_virtual_clone): Likewise.
4599 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4600 instead of cgraph_node.
4601 (cgraph_add_new_function): Call cgraph_create_node or
4602 cgraph_get_create_node instead of cgraph_node.
4603 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4604 instead of cgraph_node.
4605 (record_eh_tables): Likewise.
4606 (mark_address): Likewise.
4607 (mark_load): Likewise.
4608 (build_cgraph_edges): Call cgraph_get_create_node instead
4610 (rebuild_cgraph_edges): Likewise.
4611 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4612 instead of cgraph_node.
4613 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4615 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4616 cgraph_create_node instead of cgraph_node.
4617 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4619 * lto-cgraph.c (input_node): Likewise.
4620 * lto-streamer-in.c (input_function): Likewise.
4621 * varasm.c (mark_decl_referenced): Likewise.
4622 (assemble_alias): Likewise.
4624 2011-04-12 Martin Jambor <mjambor@suse.cz>
4626 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4627 instead of cgraph_node and assert it does not return NULL.
4628 * lto-streamer-in.c (lto_read_body): Likewise.
4629 * omp-low.c (new_omp_context): Likewise.
4630 (create_task_copyfn): Likewise.
4631 * tree-emutls.c (lower_emutls_function_body): Likewise.
4632 * matrix-reorg.c (transform_allocation_sites): Likewise.
4634 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4637 * c-typeck.c (build_asm_expr): Error out on attempts to use
4638 void type outputs or inputs for constraints that allow reg or
4641 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4642 Richard Earnshaw <rearnsha@arm.com>
4645 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4646 to use sign-magnitude offsets. Reject unsupported unaligned
4647 cases. Add detailed description in comments.
4648 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4649 condition from TARGET_32BIT to TARGET_ARM.
4651 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4653 * tree.h (struct typed_tree): New.
4654 (struct tree_common): Include it instead of tree_base.
4655 (TREE_TYPE): Update for new location of type field.
4656 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4657 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4658 (union tree_node): Add typed field.
4659 * treestruct.def (TS_TYPED): New.
4660 * lto-streamer.c (check_handled_ts_structures): Handle it.
4661 * tree.c (MARK_TS_TYPED): New macro.
4662 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4664 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4666 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4667 (force_nonfallthru): Do not alter the loop nest if no basic block
4670 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4672 * config/i386/sse.md (VI): New mode iterator.
4674 (AVX256MODEI): Ditto.
4675 (AVXMODEF4P): Ditto.
4676 (avxvecpsmode): Ditto.
4677 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4678 (sse2_andnot<mode>3): New expander.
4679 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4680 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4681 (<any_logic:code><mode>3): Use VI mode iterator.
4682 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4683 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4684 (*andnottf3): Handle AVX three-operand constraints.
4685 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4687 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4688 Robert Millan <rmh@gnu.org>
4690 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4691 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4692 GNU_USER_DYNAMIC_LINKER64): Define.
4693 (REG_NAME): Don't undefine.
4694 (MD_UNWIND_SUPPORT): Undefine.
4695 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4696 (REG_NAME): Don't undefine.
4697 (MD_UNWIND_SUPPORT): Undefine.
4698 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4700 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4702 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4703 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4705 2011-04-11 Xinliang David Li <davidxl@google.com>
4707 * value-profile.c (check_ic_target): New function.
4708 (gimple_ic_transform): Sanity check indirect call target.
4709 * gimple-low.c (gimple_check_call_args): Interface change.
4710 (gimple_check_call_matching_types): New function.
4711 * tree-inline.c (tree_can_inline_p): Call new function.
4713 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4715 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4716 tree-pretty-print.h & realmpfr.h.
4718 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4721 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4722 (setup_allocno_and_important_classes): Ditto.
4724 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4726 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4727 GNU_USER_DYNAMIC_LINKER.
4728 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4730 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4731 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4732 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4733 GNU_USER_TARGET_OS_CPP_BUILTINS.
4734 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4736 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4737 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4738 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4739 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4740 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4741 GNU_USER_TARGET_OS_CPP_BUILTINS.
4742 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4743 GNU_USER_DYNAMIC_LINKER.
4744 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4745 GNU_USER_TARGET_OS_CPP_BUILTINS.
4746 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4747 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4748 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4750 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4751 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4752 GNU_USER_DYNAMIC_LINKER64): Remove.
4753 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4754 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4755 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4756 GNU_USER_DYNAMIC_LINKER.
4757 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4758 GNU_USER_TARGET_OS_CPP_BUILTINS.
4759 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4760 GNU_USER_TARGET_OS_CPP_BUILTINS.
4761 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4762 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4763 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4764 GNU_USER_TARGET_OS_CPP_BUILTINS.
4765 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4766 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4767 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4768 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4769 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4770 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4771 GNU_USER_DYNAMIC_LINKER.
4772 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4773 GNU_USER_TARGET_OS_CPP_BUILTINS.
4774 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4775 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4776 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4777 GNU_USER_DYNAMIC_LINKER.
4778 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4779 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4780 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4781 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4782 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4783 GNU_USER_DYNAMIC_LINKER.
4784 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4785 GNU_USER_DYNAMIC_LINKERN32.
4786 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4787 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4788 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4789 GNU_USER_DYNAMIC_LINKER32.
4790 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4791 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4792 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4793 GNU_USER_DYNAMIC_LINKER.
4794 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4795 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4796 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4797 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4798 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4799 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4800 GNU_USER_DYNAMIC_LINKER32.
4801 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4802 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4803 GNU_USER_DYNAMIC_LINKER.
4804 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4805 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4806 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4807 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4808 GNU_USER_DYNAMIC_LINKER64.
4809 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4810 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4811 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4812 GNU_USER_DYNAMIC_LINKER.
4813 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4814 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4815 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4816 GNU_USER_DYNAMIC_LINKER.
4817 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4818 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4819 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4820 GNU_USER_DYNAMIC_LINKER32.
4821 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4822 GNU_USER_DYNAMIC_LINKER64.
4823 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4824 GNU_USER_DYNAMIC_LINKER64.
4825 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4826 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4827 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4828 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4829 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4831 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4833 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4834 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4835 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4836 GNU_USER_DYNAMIC_LINKER.
4837 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4838 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4839 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4840 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4841 GNU_USER_DYNAMIC_LINKER64.
4842 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4843 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4844 GNU_USER_LINK_EMULATION.
4845 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4846 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4847 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4848 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4849 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4850 CPP_SPEC, CC1_SPEC): Remove.
4851 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4852 (GNU_USER_DYNAMIC_LINKER): Define.
4853 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4854 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4855 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4856 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4857 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4858 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4859 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4860 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4861 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4862 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4863 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4864 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4865 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4866 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4867 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4868 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4869 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4870 GNU_USER_DYNAMIC_LINKER.
4871 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4872 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4873 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4874 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4875 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4876 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4877 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4878 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4879 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4880 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4882 2011-04-11 Kai Tietz <ktietz@redhat.com>
4886 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4887 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4889 (ix86_is_msabi_thiscall): Removed.
4890 (ix86_is_type_thiscall): Likewise.
4891 (ix86_get_callcvt): New function.
4892 (ix86_comp_type_attributes): Simplify check.
4893 (ix86_function_regparm): Use ix86_get_callcvt for calling
4894 convention attribute checks.
4895 (ix86_return_pops_args): Likewise.
4896 (ix86_static_chain): Likewise.
4897 (x86_this_parameter): Likewise.
4898 (x86_output_mi_thunk): Likewise.
4899 (ix86_function_type_abi): Optimize check for types without attributes.
4900 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4901 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4902 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4904 (IX86_BASE_CALLCVT): Helper macro.
4905 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4906 Use ix86_get_callcvt for calling convention attribute checks and avoid
4907 symbol-decoration for stdcall in TARGET_RTD case.
4908 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4910 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4913 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4915 * config/i386/sse.md (VI_128): New mode iterator.
4916 (VI12_128): Rename from SSEMODE12.
4917 (VI14_128): Rename from SSEMODE14.
4918 (VI124_128): New mode iterator.
4919 (VI24_128): Rename from SSEMODE248.
4920 (VI248_128): Rename from SSEMODE248.
4921 (SSEMODE124C8): Remove.
4922 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4923 (*sse2_<plusminus_insn><mode>3): Merge with
4924 *avx_<plusminus_insn><mode>3.
4925 (*mulv8hi3): Merge with *avx_mulv8hi3.
4926 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4927 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4928 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4929 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4930 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4931 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4932 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4933 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4934 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4935 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4936 (*<smaxmin:code>v8hi3): Ditto.
4937 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4938 (*<smaxmin:code>v16qi3): Ditto.
4939 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4940 (*sse2_eq<mode>3): Ditto.
4941 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4942 (*sse2_gt<mode>3): Ditto.
4943 (vcondv2di): Split out of vcond<mode>.
4944 (vconduv2di): Split out of vcondu<mode>.
4946 2011-04-11 Richard Guenther <rguenther@suse.de>
4948 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4949 before calling tree_low_cst.
4951 2011-04-11 Richard Guenther <rguenther@suse.de>
4953 * stor-layout.c (layout_type): Compute all array index size operations
4954 in the original type.
4955 (initialize_sizetypes): Add comment.
4956 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4958 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4960 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4962 2011-04-11 Martin Jambor <mjambor@suse.cz>
4964 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4965 of cgraph_node, handle NULL return value.
4966 (cgraph_global_info): Likewise.
4967 (cgraph_rtl_info): Likewise.
4968 * tree-inline.c (estimate_num_insns): Likewise.
4969 * gimplify.c (unshare_body): Likewise.
4970 (unvisit_body): Likewise.
4971 (gimplify_body): Likewise.
4972 * predict.c (optimize_function_for_size_p): Likewise.
4973 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4974 (call_may_clobber_ref_p_1): Likewise.
4975 * varasm.c (function_section_1): Likewise.
4976 (assemble_start_function): Likewise.
4978 2011-04-11 Martin Jambor <mjambor@suse.cz>
4980 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4982 * final.c (rest_of_clean_state): Likewise.
4983 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4984 * passes.c (pass_init_dump_file): Likewise.
4985 (execute_all_ipa_transforms): Likewise.
4986 (function_called_by_processed_nodes_p): Likewise.
4987 * predict.c (maybe_hot_frequency_p): Likewise.
4988 (probably_never_executed_bb_p): Likewise.
4989 (compute_function_frequency): Likewise.
4990 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4991 (unnest_nesting_tree_1): Likewise.
4992 (lower_nested_functions): Likewise.
4993 * tree-optimize.c (execute_fixup_cfg): Likewise.
4994 (tree_rest_of_compilation): Likewise.
4995 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4996 * tree-sra.c (ipa_early_sra): Likewise.
4997 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4998 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4999 * ipa.c (record_cdtor_fn): Likewise.
5000 * ipa-inline.c (cgraph_early_inlining): Likewise.
5001 (compute_inline_parameters_for_current): Likewise.
5002 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5003 * ipa-pure-const.c (local_pure_const): Likewise.
5004 * ipa-split.c (split_function): Likewise.
5005 (execute_split_functions): Likewise.
5006 * cgraphbuild.c (build_cgraph_edges): Likewise.
5007 (rebuild_cgraph_edges): Likewise.
5008 (cgraph_rebuild_references): Likewise.
5009 (remove_cgraph_callee_edges): Likewise.
5010 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5011 (verify_cgraph_node): Likewise.
5012 (cgraph_analyze_functions): Likewise.
5013 (cgraph_preserve_function_body_p): Likewise.
5014 (save_inline_function_body): Likewise.
5015 (save_inline_function_body): Likewise.
5016 * tree-inline.c (copy_bb): Likewise.
5017 (optimize_inline_calls): Likewise.
5019 2011-04-11 Martin Jambor <mjambor@suse.cz>
5021 PR tree-optimization/48195
5022 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5023 ipa_check_create_edge_args.
5024 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5025 ipa_check_create_edge_args.
5026 * ipa-inline.c (inline_generate_summary): Do not call
5027 ipa_check_create_node_params and ipa_check_create_edge_args.
5028 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5029 ipa_check_create_edge_args.
5031 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5033 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5035 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5036 * function.c (record_hard_reg_sets): Likewise.
5037 * ira.c (compute_regs_asm_clobbered): Likewise.
5038 * sched-deps.c (sched_analyze_1): Likewise.
5039 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5041 2011-04-09 Xinliang David Li <davidxl@google.com>
5043 PR tree-optimization/PR48484
5044 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5045 has_valid_pred lazily
5047 2011-04-09 Duncan Sands <baldrick@free.fr>
5049 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5051 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5053 * combine.c (combine_validate_cost): Adjust comments. Set registered
5054 cost of I0 to zero at the end, if any.
5056 2011-04-08 Xinliang David Li <davidxl@google.com>
5058 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5059 to insane profile data.
5061 2011-04-08 Xinliang David Li <davidxl@google.com>
5063 * ipa-cp.c (ipcp_update_profiling): Correct
5064 negative scale factor due to insane profile data.
5066 2011-04-08 Xinliang David Li <davidxl@google.com>
5068 * final.c (dump_basic_block_info): New function.
5069 (final): Dump basic block.
5070 (final_scan_insn): Remove old dump.
5072 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5075 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5078 2011-04-08 Michael Matz <matz@suse.de>
5081 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5083 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5084 * rtl.h (rebuild_jump_labels_chain): Declare.
5085 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5086 insns inserted on edges.
5088 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5090 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5091 * config/arm/arm-arches.def: New.
5092 * config/arm/arm-opts.h: New.
5093 * config/arm/genopt.sh: New.
5094 * config/arm/arm-tables.opt: New (generated).
5095 * config/arm/arm.c (arm_handle_option, arm_target_help,
5096 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5097 (all_architectures): Get most table contents from arm-arches.def.
5098 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5099 arm_selected_tune here.
5100 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5101 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5102 (march=, mcpu=, mtune=): Use Enum and Var.
5103 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5104 (arm.o): Update dependencies.
5106 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5108 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5110 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5111 (write_typed_alloc_defns): Likewise.
5112 (main): Calls write_typed_alloc_defns with output_header.
5114 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5117 * ira-color.c (setup_profitable_hard_regs): Add comments.
5118 Don't take prohibited hard regs into account.
5119 (setup_conflict_profitable_regs): Rename to
5120 get_conflict_profitable_regs.
5121 (check_hard_reg_p): Check prohibited hard regs.
5123 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5125 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5126 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5127 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5129 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5132 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5133 move from floating point to shift amount register.
5134 (emit_move_sequence): Remove secondary reload support for floating
5135 point to shift amount amount register copies.
5136 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5137 amount register copies.
5138 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5139 register, return false if mode isn't a scalar integer mode.
5140 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5142 2011-04-08 Richard Guenther <rguenther@suse.de>
5144 * gimple.c (gimple_call_flags): Remove kludge.
5146 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5148 * sel-sched.c (sel_region_init): Move call to
5149 sel_setup_region_sched_flags after setup_current_loop_nest.
5151 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5153 PR rtl-optimization/48272
5154 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5155 init_insn_reg_pressure_info. Adjust a caller.
5156 * sched-int.h (init_insn_reg_pressure_info): Declare.
5157 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5158 when sched-pressure is enabled.
5160 2011-04-08 Richard Guenther <rguenther@suse.de>
5162 * gimple.c (gimple_set_modified): Do not queue calls to
5163 MODIFIED_NORETURN_CALLS here ...
5164 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5166 2011-04-08 Richard Guenther <rguenther@suse.de>
5169 * toplev.c (lang_dependent_init): Do not open asm_out_file
5170 in WPA mode, nor perform debug machinery initialization.
5171 (finalize): Do not unlink asm_out_file in WPA mode.
5173 2011-04-08 Richard Guenther <rguenther@suse.de>
5175 * gimple.h (gimple_call_fntype): New function.
5176 (gimple_call_return_type): Use it.
5177 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5178 * gimple-low.c (gimple_check_call_args): Likewise.
5179 * gimple.c (gimple_call_flags): Likewise.
5180 (gimple_call_arg_flags): Likewise.
5181 (gimple_call_return_flags): Likewise.
5182 * tree-cfg.c (verify_gimple_call): Likewise.
5183 (do_warn_unused_result): Likewise.
5184 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5185 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5187 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5189 PR rtl-optimization/48235
5190 * sel-sched.c (code_motion_process_successors): Recompute the last
5191 insn in basic block if control flow changed.
5192 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5193 Update condition for ilist_remove.
5195 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5197 PR rtl-optimization/48302
5198 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5199 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5200 it to record added preheader blocks.
5201 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5202 on to sel_add_loop_preheaders.
5203 (sel_region_init): Move call to setup_current_loop_nest after
5206 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5209 * cfgloop.h (loop_has_exit_edges): New helper.
5210 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5212 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5213 that have no exit edges.
5215 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5217 PR rtl-optimization/48442
5218 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5219 all callers. Adjust assert.
5221 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5223 PR tree-optimization/48377
5224 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5225 is_packed to true even for types with smaller TYPE_ALIGN than
5228 2011-04-08 Richard Guenther <rguenther@suse.de>
5231 * doc/tm.texi: Re-generate.
5233 2011-04-08 Wei Guozhi <carrot@google.com>
5236 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5237 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5238 * config/arm/arm.md (*push_multi): Change the length computation to
5241 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5243 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5244 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5245 * doc/tm.texi: Regenerate.
5246 * system.h (ASM_OUTPUT_BSS): Poison.
5247 * varasm.c (asm_output_bss): Remove function.
5248 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5250 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5251 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5252 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5253 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5255 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5257 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5259 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5261 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5263 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5266 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5268 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5269 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5270 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5272 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5273 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5274 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5275 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5276 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5277 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5278 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5279 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5280 options. Don't map other m68k options manually. Don't handle
5281 old-style options as canonical.
5282 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5283 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5285 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5287 * basic-block.h (force_nonfallthru): Move to...
5288 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5289 (force_nonfallthru): ...here.
5290 * cfghooks.c (force_nonfallthru): New function.
5291 * cfgrtl.c (force_nonfallthru): Rename into...
5292 (rtl_force_nonfallthru): ...this.
5293 (commit_one_edge_insertion): Do not set AUX field.
5294 (commit_edge_insertions): Do not discover new basic blocks.
5295 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5296 (cfg_layout_rtl_cfg_hooks): Likewise.
5297 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5298 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5299 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5301 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5303 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5306 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5308 * config/i386/sse.md: Update copyright year.
5309 (avxcvtvecmode): Remove.
5310 (sse_movhlps): Merge with *avx_movhlps.
5311 (sse_movlhps): Merge with *avx_movlhps.
5312 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5313 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5314 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5315 (sse_loadhps): Merge with *avx_loadhps.
5316 (sse_storelps): Merge with *avx_storelps.
5317 (sse_loadlps): Merge with *avx_loadlps.
5318 (sse_movss): Merge with *avx_movss.
5319 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5320 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5321 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5322 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5323 (vec_set<mode>_0): Ditto.
5324 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5325 (sse4_1_insertps): Merge with *avx_insertps.
5326 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5327 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5328 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5329 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5330 (sse2_storehpd): Merge with *avx_storehpd.
5331 (sse2_loadhpd): Merge with *avx_loadhpd.
5332 (sse2_loadlpd): Merge with *avx_loadlpd.
5333 (sse2_movsd): Merge with *avx_movsd.
5334 (*vec_concatv2df): Merge with *vec_concatv2df.
5336 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5339 * combine.c (combine_instructions): Add last_combined_insn,
5340 update it if insn is after it, pass it to all try_combine calls.
5341 (try_combine): Add last_combined_insn parameter, pass it instead of
5342 i3 to propagate_for_debug.
5344 2011-04-07 Nick Clifton <nickc@redhat.com>
5346 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5347 to handle MDR <-> data register transfers.
5348 (movhi_internal): Likewise.
5350 2011-04-07 Alan Modra <amodra@gmail.com>
5352 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5353 previous stack info.
5355 2011-04-07 Tom de Vries <tom@codesourcery.com>
5358 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5359 flow_find_cross_jump. Swap variables to implement backward replacement.
5360 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5362 2011-04-07 Tom de Vries <tom@codesourcery.com>
5365 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5366 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5368 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5369 src1 or src2. Redirect edges to the last basic block. Update
5370 frequency and count on multiple basic blocks in case of fallthru.
5372 2011-04-07 Tom de Vries <tom@codesourcery.com>
5375 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5377 (old_insns_match_p): Change return type. Replace return false/true
5378 with return dir_none/dir_both. Use can_replace_by.
5379 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5380 direction from dir_p. Register replacement direction in dir, last_dir
5381 and afterlast_dir. Handle new return type of old_insns_match_p using
5382 merge_dir. Return replacement direction in dir_p.
5383 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5384 return type of old_insns_match_p.
5385 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5386 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5387 flow_find_cross_jump.
5388 * basic-block.h (enum replace_direction): New type.
5389 (flow_find_cross_jump): Add parameter to declaration.
5391 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5393 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5394 (AVXMODEDCVTPS2DQ): Ditto.
5395 (VEC_FLOAT_MODE): Ditto.
5396 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5397 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5398 (<any_logic:code><mode>3): Use VF mode iterator.
5399 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5400 Use VF mode iterator.
5401 (copysign<mode>3): Use VF mode iterator.
5402 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5403 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5404 (*<any_logic:code><MODEF:mode>3): Merge with
5405 *avx_<any_logic:code><MODEF:mode>3.
5406 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5407 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5408 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5409 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5410 (sse2_cvtdq2ps): Use %v modifier.
5411 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5412 (avx_cvtps2dq<avxmodesuffix>): Remove.
5413 (sse2_cvtps2dq): Use %v modifier.
5414 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5415 (avx_cvttps2dq<avxmodesuffix>): Remove.
5416 (sse2_cvttps2dq): Use %v modifier.
5417 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5418 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5419 (sse2_cvtsd2siq): Fix insn template.
5420 (sse2_cvtsd2siq_2): Ditto.
5421 (sse2_cvttsd2siq): Ditto.
5422 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5423 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5425 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5427 * gcov-io.c: Use GCC Runtime Library Exception.
5429 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5432 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5433 as base_reg whatever register reg has been eliminated to, instead
5434 of hardcoding STACK_POINTER_REGNUM.
5436 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5438 * doc/tm.texi.in: Document C target hooks as separate from general
5440 * doc/tm.texi: Regenerate.
5441 * genhooks.c (struct hook_desc): Add docname field.
5442 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5444 (hook_array): Include c-target.def.
5445 (emit_documentation): Use docname field in output.
5446 (emit_init_macros): Take docname argument. Only emit definitions
5447 for hooks matching docname.
5448 (main): Expect additional arguments in all cases. Pass argument
5449 to emit_init_macros.
5450 * target.def: Move initial macro definitions and comments to
5451 target-hooks-macros.h.
5452 (gcc_targetcm): Move to c-family/c-target.def.
5453 * target.h (targetcm): Move declaration to c-family/c-target.h.
5454 * targhooks.c (default_handle_c_option): Move to
5456 * targhooks.h (default_handle_c_option): Move declaration to
5457 c-family/c-common.h.
5458 * target-hooks-macros.h: New file.
5459 * config.gcc (target_has_targetcm): Define and use to add to
5460 c_target_objs and cxx_target_objs.
5461 * config/default-c.c: New file.
5462 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5463 of target.h and target-def.h.
5464 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5465 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5466 darwin_check_cfstring_format_arg): Make static.
5467 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5468 TARGET_STRING_OBJECT_REF_TYPE_P,
5469 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5470 * config/darwin-protos.h (darwin_objc_construct_string,
5471 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5473 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5474 TARGET_STRING_OBJECT_REF_TYPE_P,
5475 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5476 * config/t-darwin (darwin-c.o): Update dependencies.
5477 * system.h (TARGET_HAS_TARGETCM): Poison.
5478 * Makefile.in (TARGET_H): Update.
5479 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5480 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5481 (default-c.o): New target.
5482 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5483 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5484 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5486 (build/genhooks.o): Update dependencies.
5488 2011-04-06 Richard Guenther <rguenther@suse.de>
5490 * ipa-inline.c (enum inlining_mode): Remove.
5491 (cgraph_flatten): Use some other token.
5492 (cgraph_edge_early_inlinable_p): New function, split out from ...
5493 (cgraph_perform_always_inlining): New function, split out from ...
5494 (cgraph_decide_inlining_incrementally): ... here.
5495 (cgraph_mark_inline_edge): Adjust.
5496 (cgraph_early_inlining): Re-structure.
5497 (pass_early_inline): Require SSA form.
5499 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5500 Julian Brown <julian@codesourcery.com>
5501 Mark Shinwell <shinwell@codesourcery.com>
5503 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5504 LO_REGS only for Thumb-1.
5505 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5506 be used in short instructions when optimising for size on Thumb-2.
5508 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5510 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5511 associated with user returns to be preserved.
5513 2011-04-06 Tristan Gingold <gingold@adacore.com>
5515 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5516 symbol_queue_size, DBXOUT_DECR_NESTING,
5517 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5518 if XCOFF_DEBUGGING_INFO.
5520 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5522 * config/i386/i386.md (attribute isa): New.
5523 (attribute enabled): New.
5524 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5525 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5526 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5527 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5528 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5529 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5530 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5531 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5533 * config/i386/sse.md (VF): New mode iterator.
5537 (SSEMODEF4): Remove.
5538 (attribute sse): Handle V8SF and V4DF modes.
5539 (<absneg:code><mode>2): Use VF mode iterator.
5540 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5542 (<plusminus_insn><mode>3): Use VF mode iterator.
5543 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5544 Use VF mode iterator.
5545 (<sse>_vm<plusminus_insn><mode>3): Merge with
5546 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5547 (mul<mode>3): Use VF mode iterator.
5548 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5549 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5551 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5552 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5553 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5554 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5556 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5557 Use VF1 mode iterator.
5558 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5559 (sqrt<VF2:mode>2): New expander.
5560 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5561 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5562 and sqrtv2df2. Use VF mode iterator.
5563 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5565 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5566 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5567 Use VF1 mode iterator.
5568 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5569 (<smaxmin:code><mode>3): Use VF mode iterator.
5570 (*<smaxmin:code><mode>3_finite): Merge with
5571 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5572 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5573 (<sse>_vm<smaxmin:code><mode>2): Merge with
5574 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5575 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5577 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5579 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5580 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5581 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5582 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5583 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5585 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5586 Use VF_128 mode iterator.
5587 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5589 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5590 VF_128 mode iterator.
5591 (vcond<mode>): Use VF mode iterator.
5592 * config/i386/predicates.md (sse_comparison_operator): Merge with
5593 avx_comparison_float_operator. Do not declare as special_predicate.
5594 * config/i386/i386.c (struct builtin_description): Update for renamed
5596 (ix86_expand_args_builtin): Ditto.
5597 (ix86_expand_sse_compare_mask): Ditto.
5599 2011-04-06 Richard Guenther <rguenther@suse.de>
5601 * tree-inline.c (estimate_num_insns): For calls simply account
5602 for all passed arguments and a used return value.
5604 2011-04-06 Richard Guenther <rguenther@suse.de>
5606 PR tree-optimization/47663
5607 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5608 call_stmt_time fields.
5609 (cgraph_edge_inlinable_p): Declare.
5610 (cgraph_edge_recursive_p): New inline function.
5611 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5612 (cgraph_clone_edge): Copy it.
5613 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5614 Account for call stmt time.
5615 (cgraph_estimate_time_after_inlining): Take edge argument.
5616 (cgraph_estimate_edge_growth): Account call stmt size.
5617 (cgraph_estimate_size_after_inlining): Take edge argument.
5618 (cgraph_mark_inline_edge): Adjust.
5619 (cgraph_check_inline_limits): Likewise.
5620 (cgraph_recursive_inlining_p): Remove.
5621 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5622 (cgraph_decide_recursive_inlining): Take edge argument and
5624 (cgraph_decide_inlining_of_small_functions): Do not avoid
5625 diags for recursive inlining here.
5626 (cgraph_flatten): Adjust.
5627 (cgraph_decide_inlining_incrementally): Likewise.
5628 (estimate_function_body_sizes): Remove call cost handling.
5629 (compute_inline_parameters): Initialize caller edge call costs.
5630 (cgraph_estimate_edge_growth): New function.
5631 (cgraph_estimate_growth): Use it.
5632 (cgraph_edge_badness): Likewise.
5633 (cgraph_check_inline_limits): Take an edge argument.
5634 (cgraph_decide_inlining_of_small_functions): Adjust.
5635 (cgraph_decide_inlining): Likewise.
5636 * tree-inline.c (estimate_num_insns): Only account for call
5637 return value if it is used.
5638 (expand_call_inline): Avoid diagnostics on recursive inline
5640 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5641 (input_edge): Input edge call costs.
5643 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5645 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5647 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5649 * doc/invoke.texi (Spec Files): Fix typo.
5651 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5653 * profile.c (branch_prob): Move declaration of local variable. Remove
5654 obsolete ??? comment. Expand the location explicitly instead of using
5655 the LOCATION_FILE and LOCATION_LINE macros.
5657 2011-04-06 Wei Guozhi <carrot@google.com>
5660 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5661 (arm_cond_branch): Likewise.
5662 (arm_cond_branch_reversed): Likewise.
5663 (arm_jump): Likewise.
5664 (push_multi): Likewise.
5665 * config/arm/constraints.md (Py): New constraint.
5667 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5670 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5672 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5673 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5674 #ifdef DBX_DEBUGGING_INFO.
5676 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5679 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5680 if old and new states differ.
5682 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5684 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5685 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5686 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5687 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5688 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5690 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5691 ColdFire options to -mcpu= options.
5693 2011-04-05 Jeff Law <law@redhat.com>
5695 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5696 check if BB is a successor of LOOP->header and return
5697 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5699 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5701 * cprop.c (struct reg_use): Remove.
5702 (reg_use_table): Make an array of RTX.
5703 (find_used_regs, constprop_register, local_cprop_pass,
5704 bypass_block): Simplify users of reg_use_table.
5705 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5706 on one of the uses found by find_used_regs.
5708 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5711 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5714 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5716 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5718 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5720 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5723 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5725 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5727 * combine.c: Include obstack.h.
5728 (struct insn_link): Define.
5729 (uid_log_links): Adjust type.
5730 (FOR_EACH_LOG_LINK): New macro.
5731 (insn_link_obstack): Declare.
5732 (alloc_insn_link): Define.
5733 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5734 type of link variables.
5735 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5736 (try_combine, record_promoted_values, distribute_notes): Likewise.
5737 (distribute_links): Likewise. Tweak prototype.
5738 (clear_log_links): Delete.
5739 (adjust_for_new_dest): Call alloc_insn_link.
5740 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5742 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5744 * gcse.c (modify_mem_list): Convert to an array of VECs.
5745 (canon_modify_mem_list, compute_transp): Tweak formatting.
5746 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5747 (load_killed_in_block_p): Likewise.
5748 (record_last_mem_set_info): Likewise.
5749 (clear_modify_mem_tables): Likewise.
5751 2011-04-05 Tom de Vries <tom@codesourcery.com>
5754 * function.c (emit_use_return_register_into_block): Only define if
5757 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5759 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5761 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5763 * config/rx/rx-opts.h: New.
5764 * config/rx/rx.c (rx_cpu_type): Remove.
5765 (rx_handle_option): Don't assert that global structures are in
5766 use. Access variables via opts pointer. Defer most handling of
5767 OPT_mint_register_. Use error_at.
5768 (rx_option_override): Handle deferred OPT_mint_register_ here.
5769 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5770 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5771 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5772 (rx_cpu_types): New Enum and EnumValue entries.
5773 (mint-register=): Use Defer and use Var accordingly.
5775 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5777 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5778 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5779 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5781 (debug_free_queue, debug_nesting, symbol_queue_index):
5783 * dbxout.c: ...to here. Make static.
5785 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5787 * gcse.c (modify_pair): Define. Define a VEC of it.
5788 (canon_modify_mem_list): Convert to an array of VECs.
5789 (free_insn_expr_list_list): Delete.
5790 (clear_modify_mem_tables): Call VEC_free instead.
5791 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5792 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5793 (canon_list_insert, compute_transp): Likewise.
5795 2011-04-05 Tom de Vries <tom@codesourcery.com>
5798 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5801 2011-04-05 Tom de Vries <tom@codesourcery.com>
5804 * function.c (emit_use_return_register_into_block): New function.
5805 (thread_prologue_and_epilogue_insns): Use
5806 emit_use_return_register_into_block.
5808 2011-04-05 Tom de Vries <tom@codesourcery.com>
5811 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5814 2011-04-05 Tom de Vries <tom@codesourcery.com>
5816 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5818 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5820 * config/arm/arm.md (define_constants for unspec): Replace with
5822 (define_constants for unspecv): Replace with define_c_enum.
5823 * config/arm/neon.md (define_constants for unspec): Replace with
5826 2011-04-04 Richard Henderson <rth@redhat.com>
5829 * dwarf2out.c (output_line_info): Always emit line info from
5830 at least one section.
5831 (dwarf2out_init): Create text_section_line_info here ...
5832 (set_cur_line_info_table): ... not here.
5834 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5837 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5840 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5842 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5844 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5845 (expr_equiv_p): Remove.
5846 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5847 (hash_scan_set): Update call to insert_set_in_table.
5848 (dump_hash_table): Dump <dest, src> pair.
5849 (lookup_set): Simplify. Lookup <dest, src> pair.
5850 (compute_transp): Remove, fold heavily simplified code into...
5851 (compute_local_properties): ...here. Expect COMP and TRANSP
5853 (find_avail_set): Take set directly from struct expr.
5854 (find_bypass-set): Likewise.
5855 (bypass_block): Likewise.
5856 (cprop_insn): Likewise. Remove redundant INSN_P test.
5858 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5859 checks on form of COND from find_implicit_sets to here.
5860 (find_implicit_sets): Cleanup control flow. Split critical edges
5861 if it exposes implicit sets. Allocate/resize implicit_sets as
5863 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5864 changed something. Run df_analyze after find_implicit_sets if any
5865 edges were split. Do not allocate implicit_sets here.
5867 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5868 (gcse_obstack): Renamed to cprop_obstack.
5869 (GNEW, GNEWVEC, GNEWVAR): Remove.
5871 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5872 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5873 (gcse_alloc): Likewise, and rename to cprop_alloc.
5874 (alloc_gcse_men, free_gcse_mem): Remove.
5875 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5876 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5877 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5879 * cprop.c (oprs_not_set_p): Remove.
5880 (mark_set, mark_clobber): Remove.
5881 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5882 (reg_not_set_p): New function.
5883 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5884 (cprop_insn): Likewise.
5885 (cprop_jump): Use FOR_EACH_EDGE.
5887 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5890 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5891 (rank_for_schedule): Use scheduled_insns vector instead of
5892 last_scheduled_insn.
5893 (ok_for_early_queue_removal): Likewise.
5894 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5896 (choose_ready): Likewise.
5897 (commit_schedule): Use VEC_iterate.
5898 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5899 a dbg_cnt, use it and ensure the first insn is in the ready list.
5900 (haifa_sched_init): Allocate scheduled_insns.
5901 (sched_extend_ready_list): Don't allocate it; reserve space.
5902 (haifa_sched_finish): Free it.
5904 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5906 * optc-gen.awk: Always remove type from Variable entry before
5907 recording in var_seen.
5909 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5911 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5912 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5913 call to tidy_fallthru_edges.
5915 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5917 * doc/options.texi (ToLower): Document.
5918 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5919 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5920 * opts.h (cl_option): Add cl_tolower field.
5921 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5922 arguments with lowercase strings.
5923 * config/rx/rx.opt (mcpu=): Add ToLower.
5924 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5927 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5929 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5931 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5933 * config/vax/vax.c: Include reload.h.
5935 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5937 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5938 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5939 (sparc_preferred_reload_class): New function.
5941 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5944 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5945 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5947 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5949 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5950 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5952 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5954 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5955 (ASM_OUTPUT_ALIGNED_BSS): Define.
5957 2011-04-03 Michael Matz <matz@suse.de>
5959 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5960 and next_slot members.
5961 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5962 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5963 (lto_streamer_cache_append): Declare.
5964 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5965 unsigned index, remove offset parameter, ensure that we append
5966 or update existing entries.
5967 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5968 parameter, update next_slot for append.
5969 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5971 (lto_streamer_cache_insert_at): Likewise.
5972 (lto_streamer_cache_append): New function.
5973 (lto_streamer_cache_lookup): Use unsigned index.
5974 (lto_streamer_cache_get): Likewise.
5975 (lto_record_common_node): Don't test tree_node_can_be_shared.
5976 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5977 (lto_streamer_cache_delete): Don't free offsets member.
5978 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5979 (lto_output_string_with_length): Use lto_output_data_stream.
5980 (lto_output_tree_header): Remove ix parameter, don't write it.
5981 (lto_output_builtin_tree): Likewise.
5982 (lto_write_tree): Adjust callers to above, don't track and write
5983 offset, write unsigned index.
5984 (output_unreferenced_globals): Don't emit all global vars.
5985 (write_global_references): Use unsigned indices.
5986 (lto_output_decl_state_refs): Likewise.
5987 (write_symbol): Likewise.
5988 * lto-streamer-in.c (lto_input_chain): Move earlier.
5989 (input_function): Use unsigned index.
5990 (input_alias_pairs): Don't read and then ignore all global vars.
5991 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5992 don't pass it back, use lto_streamer_cache_append.
5993 (lto_register_var_decl_in_symtab): Use unsigned index.
5994 (lto_register_function_decl_in_symtab): Likewise.
5995 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5997 (lto_get_builtin_tree): Don't read index, use
5998 lto_streamer_cache_append.
5999 (lto_read_tree): Adjust call to lto_materialize_tree.
6001 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6002 don't use function calls in arguments to MIN.
6004 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6007 * gimple.c (gimple_type_leader_entry): Mark deletable.
6009 2011-04-03 Alan Modra <amodra@gmail.com>
6011 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6013 2011-04-03 Michael Matz <matz@suse.de>
6015 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6017 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6019 2011-04-03 Michael Matz <matz@suse.de>
6021 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6022 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6023 without function context.
6024 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6025 current_function_decl and cfun.
6027 2011-04-03 Michael Matz <matz@suse.de>
6029 * tree.c (decl_init_priority_insert): Don't create entry for
6031 (decl_fini_priority_insert): Ditto.
6032 (fields_compatible_p, find_compatible_field): Remove.
6033 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6034 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6036 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6038 * combine.c (try_combine): Remove useless local variable.
6040 2011-04-03 Richard Guenther <rguenther@suse.de>
6041 Ira Rosen <ira.rosen@linaro.org>
6043 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6044 non-variable offsets and compare the remaining bases of the two
6045 accesses instead of looking for exact same data-ref.
6047 2011-04-02 Kai Tietz <ktietz@redhat.com>
6050 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6052 * i386.c (ix86_is_msabi_thiscall): New helper function.
6053 (ix86_is_type_thiscall): New helper function.
6054 (ix86_comp_type_attributes): Handle thiscall for method-functions
6056 (init_cumulative_args): Likewise.
6057 (find_drap_reg): Likewise.
6058 (ix86_static_chain): Likewise.
6059 (x86_this_parameter): Likewise.
6060 (x86_output_mi_thunk): Likewise.
6062 2011-04-01 Olivier Hainque <hainque@adacore.com>
6063 Nicolas Setton <setton@adacore.com>
6064 Eric Botcazou <ebotcazou@adacore.com>
6066 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6067 (add_gnat_descriptive_type_attribute): New function.
6068 (gen_array_type_die): Call it.
6069 (gen_enumeration_type_die): Likewise.
6070 (gen_struct_or_union_type_die): Likewise.
6071 (modified_type_die): Likewise.
6072 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6073 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6074 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6076 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6079 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6080 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6083 2011-03-17 Richard Guenther <rguenther@suse.de>
6086 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6087 origin for decls in other ltrans units.
6088 (input_varpool_node): Likewise.
6090 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6093 * expr.c (expand_assignment): Handle all possibilities
6094 if TO_RTX is CONCAT.
6095 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6096 (store_split_bit_field): If SUBREG_REG (op0) or
6097 op0 itself has smaller mode than word, return it
6098 for offset 0 and const0_rtx for out-of-bounds stores.
6099 If word is const0_rtx, skip it.
6101 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6103 * config/h8300/h8300.c (print_operand_address): Rename to...
6104 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6105 Call h8300_print_operand and h8300_print_operand_address instead of
6106 print_operand and print_operand_address. Declare.
6107 (print_operand): Renake to...
6108 (h8300_print_operand): ...this. Make static. Adjust comments.
6109 Call h8300_print_operand instead of print_operand. Declare.
6110 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6111 (h8300_register_move_cost): Likewise.
6112 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6113 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6114 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6115 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6116 * config/h8300/h8300-protos.h (print_operand): Delete.
6117 (print_operand_address): Delete.
6119 2011-04-01 Richard Henderson <rth@redhat.com>
6122 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6123 in strict mode before dwarf4. Re-order tests to early out
6124 before switching sections.
6126 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6128 * config/h8300/constraints.md: New file.
6129 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6130 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6131 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6132 * config/h8300/predicates.md (bit_operand): Likewise.
6133 (incdec_operand): Use satisfies_constraint_M and
6134 satisfies_constraint_O. Don't use C code block.
6135 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6136 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6137 (compute_mov_length): Use satisfies_constraint_G.
6138 (fix_bit_operand): Use satisfies_constraint_U.
6139 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6140 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6141 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6142 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6143 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6144 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6145 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6146 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6147 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6148 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6149 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6150 (EXTRA_MEMORY_CONSTRAINT): Delete.
6152 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6153 Michael Meissner <meissner@linux.vnet.ibm.com>
6156 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6157 operands, as per the specifications.
6159 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6160 (vec_extract_evenv4sf): Ditto.
6161 (vec_extract_evenv8hi): Ditto.
6162 (vec_extract_evenv16qi): Ditto.
6163 (vec_extract_oddv4si): Ditto.
6165 2011-03-31 Mark Wielaard <mjw@redhat.com>
6167 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6168 high_pc attribute if the CU has no associated code. Only output
6169 DW_AT_entry_pc for CU if not generating strict dwarf and
6172 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6174 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6175 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6177 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6178 * final.c (final_start_function): Call the new function rather
6179 than using a NULL argument for dwarf2out_frame_debug.
6181 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6182 that contains the prologue.
6184 * haifa-sched.c (queue_insn): New arg REASON. All callers
6185 changed. Print it in debugging output.
6187 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6189 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6190 Split most of the code into...
6191 (begin_move_insn): ... here. New function.
6192 (ebb_sched_info): Add a pointer to it.
6193 * haifa-sched.c (scheduled_insns): New static variable.
6194 (sched_extend_ready_list): Allocate it.
6195 (schedule_block): Use it to record the order of scheduled insns.
6196 Perform RTL changes to move insns only after all scheduling
6197 decisions have been made.
6198 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6199 begin_move_insn field.
6200 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6201 * sched-int.h (struct haifa_sched_info): Remove second argument
6202 from begin_schedule_ready hook. Add new member begin_move_insn.
6203 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6204 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6206 * haifa-sched.c (prune_ready_list): New function, broken out of
6208 (schedule_block): Use it.
6210 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6212 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6214 2011-04-01 Kai Tietz <ktietz@redhat.com>
6216 * config.gcc (*-*-mingw*): Allow as option the
6217 posix threading model.
6218 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6219 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6221 (CPP_SPEC): Add pthread/no-pthread handling.
6222 (LIB_SPEC): Likewise.
6223 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6224 (LIB_SPEC): Likewise.
6225 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6226 flag to pass -pthread option for shared libgcc build.
6227 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6228 for shared libgcc build.
6229 * config/i386/t-mingw-pthread: New file.
6230 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6231 New define to enable use of library pthread by default.
6232 * config/i386/mingw.opt (pthread): New driver option.
6233 (no-pthread): New driver option.
6234 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6235 * config/i386/mingw-w64.opt: Likewise.
6237 2011-04-01 Gary Funck <gary@intrepid.com>
6239 * c-decl.c (grokdeclarator): Fix formatting.
6241 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6243 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6244 instead of n_operands.
6245 (set_storage_via_setmem): Likewise.
6246 * optabs.c (maybe_gen_insn): Likewise.
6247 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6248 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6249 (mips_expand_builtin_direct): Likewise.
6250 * config/spu/spu.c (expand_builtin_args): Likewise.
6252 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6254 * recog.h (insn_data_d): Add n_generator_args.
6255 * genoutput.c (data): Likewise.
6256 (output_insn_data): Print it.
6257 (max_opno, num_dups): Delete.
6258 (scan_operands): Just fill in "d->operand[...]".
6259 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6261 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6263 * gensupport.h (pattern_stats): New structure.
6264 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6265 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6266 (max_operand_1, max_operand_vec): Delete.
6267 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6269 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6271 * emit-rtl.c (emit_pattern_after_setloc): New function.
6272 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6273 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6274 (emit_pattern_after): New function.
6275 (emit_insn_after, emit_jump_insn_after): Call it.
6276 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6277 (emit_pattern_before_setloc): New function.
6278 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6279 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6281 (emit_pattern_before): New function.
6282 (emit_insn_before, emit_jump_insn_before): Call it.
6283 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6285 2011-03-31 Richard Henderson <rth@redhat.com>
6287 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6288 (dw_separate_line_info_entry): Remove.
6289 (enum dw_line_info_opcode): New.
6290 (dw_line_info_entry): Use it.
6291 (dw_line_info_table, dw_line_info_table_p): New.
6292 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6293 (line_info_table, line_info_label_num): Remove.
6294 (line_info_table_in_use): Remove.
6295 (separate_line_info_table): Remove.
6296 (separate_line_info_table_allocated): Remove.
6297 (separate_line_info_table_in_use): Remove.
6298 (LINE_INFO_TABLE_INCREMENT): Remove.
6299 (line_info_label_num): New.
6300 (cur_line_info_table): New.
6301 (text_section_line_info, cold_text_section_line_info): New.
6302 (separate_line_info): New.
6303 (SEPARATE_LINE_CODE_LABEL): Remove.
6304 (print_dwarf_line_table): Remove.
6305 (debug_dwarf): Don't dump it.
6306 (output_one_line_info_table): New.
6307 (output_line_info): Use it.
6308 (new_line_info_table): New.
6309 (set_cur_line_info_table): New.
6310 (dwarf2out_switch_text_section): Use it.
6311 (dwarf2out_begin_function): Likewise.
6312 (push_dw_line_info_entry): New.
6313 (dwarf2out_source_line): Rewrite for new line info tables.
6314 (dwarf2out_init): Remove dead initailizations.
6316 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6318 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6320 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6321 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6322 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6323 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6324 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6325 * opt-functions.awk (flag_init, switch_bit_fields): New.
6326 (switch_flags): Don't handle flags moved to bit-fields. Don't
6327 generate CL_MISSING_OK or CL_SAVE.
6328 * optc-gen.awk: Update to generate bit-field output as well as
6330 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6331 bit-field instead of CL_REJECT_DRIVER flag.
6332 * opts-common.c (generate_canonical_option,
6333 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6334 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6335 instead of CL_REJECT_NEGATIVE flag.
6336 * toplev.c (print_switch_values): Use cl_report bit-field instead
6339 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6341 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6342 a zero minimum index only if it is redundant.
6344 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6346 PR rtl-optimization/48381
6347 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6348 instead of ira_class_hard_reg_index for calculating conflicting
6351 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6353 * cprop.c: Clean up hash table building.
6354 (reg_avail_info): Remove.
6355 (oprs_available_p): Remove.
6356 (record_last_reg_set_info): Remove.
6357 (record_last_set_info): Remove.
6358 (reg_available_p): New function.
6359 (gcse_constant_p): Do not treat unfolded conditions as constants.
6360 (make_set_regs_unavailable): New function.
6361 (hash_scan_set): Simplify with new reg_available_p.
6362 (compute_hash_table_work): Traverse insns stream only once.
6363 Do not compute reg_avail_info. Traverse insns in reverse order.
6364 Record implicit sets after recording explicit sets from the block.
6366 2011-03-31 Michael Matz <matz@suse.de>
6368 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6370 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6372 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6373 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6374 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6375 (h8300_mode_dependent_address_p): New function.
6376 (h8300_get_index): Make static.
6378 2011-03-31 Jeff Law <law@redhat.com>
6380 * reload1.c (elimination_effects): Fix typo in recent change.
6382 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6383 typo potentially leading to null pointer dereference.
6385 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6386 (setup_save_areas): Corresponding changes to avoid useless
6389 * jump.c (reversed_comparison_code_parts): Avoid successive return
6390 statements when REVERSE_CONDITION is defined.
6392 * expr.c (expand_assignment): Avoid useless assignments.
6393 (expand_expr_real_1): Likewise.
6394 (expand_expr_real_2): Avoid useless statements.
6396 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6398 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6400 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6403 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6405 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6408 * doc/tm.texi.in (TARGET_VERSION): Remove.
6409 * doc/tm.texi: Regenerate.
6410 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6411 * collect2.c (main): Don't use TARGET_VERSION.
6412 * mips-tdump.c (main): Don't use TARGET_VERSION.
6413 * mips-tfile.c (main): Don't use TARGET_VERSION.
6414 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6415 * config/rs6000/vxworksae.h: Remove.
6416 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6417 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6418 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6419 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6420 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6421 * config/arm/arm.h (TARGET_VERSION): Remove.
6422 * config/arm/coff.h (TARGET_VERSION): Remove.
6423 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6424 * config/arm/elf.h (TARGET_VERSION): Remove.
6425 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6426 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6427 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6428 * config/arm/pe.h (TARGET_VERSION): Remove.
6429 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6430 * config/arm/semi.h (TARGET_VERSION): Remove.
6431 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6432 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6433 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6434 * config/avr/avr.h (TARGET_VERSION): Remove.
6435 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6436 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6437 * config/frv/frv.h (TARGET_VERSION): Remove.
6438 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6439 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6440 * config/i386/darwin.h (TARGET_VERSION): Remove.
6441 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6442 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6443 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6444 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6445 * config/i386/gnu.h (TARGET_VERSION): Remove.
6446 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6447 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6448 * config/i386/linux.h (TARGET_VERSION): Remove.
6449 * config/i386/linux64.h (TARGET_VERSION): Remove.
6450 * config/i386/lynx.h (TARGET_VERSION): Remove.
6451 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6452 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6453 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6454 * config/i386/netware.h (TARGET_VERSION): Remove.
6455 * config/i386/nto.h (TARGET_VERSION): Remove.
6456 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6457 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6458 * config/ia64/elf.h (TARGET_VERSION): Remove.
6459 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6460 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6461 * config/ia64/linux.h (TARGET_VERSION): Remove.
6462 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6463 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6464 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6465 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6466 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6467 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6468 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6469 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6470 * config/m68k/linux.h (TARGET_VERSION): Remove.
6471 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6472 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6473 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6474 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6475 * config/mep/mep.h (TARGET_VERSION): Remove.
6476 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6477 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6478 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6479 * config/mips/linux.h (TARGET_VERSION): Remove.
6480 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6481 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6482 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6483 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6484 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6485 * config/pa/pa.h (TARGET_VERSION): Remove.
6486 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6487 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6488 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6489 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6490 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6491 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6492 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6493 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6494 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6495 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6496 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6497 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6498 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6499 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6500 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6501 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6502 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6503 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6504 * config/s390/linux.h (TARGET_VERSION): Remove.
6505 * config/s390/s390.h (TARGET_VERSION): Remove.
6506 * config/s390/tpf.h (TARGET_VERSION): Remove.
6507 * config/score/score.h (TARGET_VERSION): Remove.
6508 * config/sh/linux.h (TARGET_VERSION): Remove.
6509 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6510 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6511 * config/sh/sh.h (TARGET_VERSION): Remove.
6512 * config/sh/sh64.h (TARGET_VERSION): Remove.
6513 * config/sh/superh.h (TARGET_VERSION): Remove.
6514 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6515 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6516 * config/sparc/linux.h (TARGET_VERSION): Remove.
6517 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6518 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6519 TARGET_NAME32, TARGET_NAME): Remove.
6520 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6521 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6522 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6523 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6524 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6525 * config/spu/spu.h (TARGET_VERSION): Remove.
6526 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6527 * config/v850/v850.h (TARGET_VERSION): Remove.
6528 * config/vax/linux.h (TARGET_VERSION): Remove.
6529 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6530 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6531 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6533 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6536 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6537 frame-related from frame-unrelated adjustments to the stack pointer.
6539 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6541 * common.opt (fdebug-types-section): Move earlier.
6542 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6544 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6546 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6549 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6551 * tree.h (CASE_CHAIN): Define.
6552 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6553 (gimple_redirect_edge_and_branch): Likewise.
6555 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6558 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6561 2011-03-30 Jeff Law <law@redhat.com>
6563 * PR bootstrap/48371
6564 * reload1.c (reload): Fix botch in last change.
6566 * reload.h (struct reload): Fix typo introduced in last change.
6568 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6570 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6571 Undocumented. Remove help text.
6572 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6575 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6577 * doc/options.texi (NegativeAlias): Document.
6578 (Alias): Mention NegativeAlias.
6579 * opt-functions.awk: Handle NegativeAlias.
6580 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6581 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6582 * opts.h (CL_NEGATIVE_ALIAS): Define.
6583 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6584 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6586 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6588 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6589 mno-spe and mno-isel instead of mspe=no and -misel=no.
6591 2011-03-29 Mark Wielaard <mjw@redhat.com>
6593 * common.opt (fdebug-types-section): New flag.
6594 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6595 * dwarf2out.c (use_debug_types): New define.
6596 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6597 (print_die): Guard output of type unit signatures using
6599 (build_abbrev_table): Replace assert of dwarf_version >= 4
6600 with assert on use_debug_types.
6601 (size_of_die): Likewise.
6602 (unmark_dies): Likewise.
6603 (value_format): Decide AT_ref_external form on use_debug_types.
6604 (output_die): Replace dwarf_version version check guard with
6605 use_debug_types where appropriate.
6606 (modified_type_die): Likewise.
6607 (gen_reference_type_die): Likewise.
6608 (dwarf2out_start_source_file): Likewise.
6609 (dwarf2out_end_source_file): Likewise.
6610 (prune_unused_types_walk_attribs): Likewise.
6611 (dwarf2out_finish): Likewise.
6613 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6615 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6617 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6619 PR rtl-optimization/48332
6620 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6621 mode of input operand N and modeN to its actual mode.
6623 2011-03-30 Jeff Law <law@redhat.com>
6625 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6626 define accessor macro.
6627 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6628 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6629 (reg_equiv_init): Likewise.
6630 (reg_equivs_size): New variable.
6631 (reg_equiv_init_size): Remove.
6632 (allocate_initial_values): Move prototype to here from....
6633 * integrate.h (allocate_initial_values): Remove prototype.
6634 * integrate.c: Include reload.h.
6635 (allocate_initial_values): Corresponding changes.
6636 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6637 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6638 (update_equiv_regs): Corresponding changes.
6639 (ira): Corresponding changes.
6640 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6641 (push_secondary_reload): Corresponding changes.
6642 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6643 (make_memloc, find_reloads_address): Corresponding changes.
6644 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6645 (find_reloads_address_1): Corresponding changes.
6646 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6647 (refers_to_regno_for_reload_p): Corresponding changes.
6648 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6649 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6650 * reload1.c: Include ggc.h.
6651 (grow_reg_equivs): New function.
6652 (replace_pseudos_in, reload): Corresponding changes.
6653 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6654 (eliminate_regs_1, elimination_effects): Corresponding changes.
6655 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6656 (delete_output_reload): Likewise.
6657 * caller-save.c (mark_referenced_regs): Corresponding changes.
6658 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6659 * frv/predicates.md (frv_load_operand): Corresponding changes.
6660 * microblaze/microblaze.c (double_memory_operand): Corresponding
6662 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6663 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6664 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6665 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6666 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6668 * pa/pa.c (emit_move_sequence): Corresponding changes.
6669 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6671 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6674 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6675 structure modes. Don't check neon_vector_mem_operand for
6676 vector or structure modes.
6678 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6679 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6682 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6683 operand 1 and reshuffle the operands to match.
6684 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6686 2011-03-30 Christian Schüler <cschueler@gmx.de>
6689 * config/c.opt (F): Added 'Driver' to -F option.
6692 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6694 * config/darwin.opt: Added '-arch' option.
6696 2011-03-30 Nick Clifton <nickc@redhat.com>
6698 * config/rx/rx.md: Add peepholes and patterns to combine
6699 extending loads and simple arithmetic instructions.
6700 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6701 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6702 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6703 modes to use pre-decrement and post-increment addressing.
6704 (rx_is_restricted_memory_address): Add range checking of REG+INT
6706 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6707 (rx_memory_move_cost): Adjust cost of stores.
6708 (rx_adjust_insn_length): New function.
6710 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6713 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6714 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6715 matching arg00/arg01 types.
6717 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6719 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6720 last_location to UNKNOWN_LOCATION.
6722 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6725 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6728 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6729 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6732 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6734 (sparc_cpu): Likewise.
6735 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6738 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6742 PR rtl-optimization/48345
6743 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6744 hard regs for given mode from profitable regs when doing secondary
6747 2011-03-29 Jeff Law <law@redhat.com>
6750 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6751 do_not_duplicate field.
6752 (lookup_redirection_data): Corresponding changes.
6753 (create_duplicates): Always create a template block.
6754 (redirect_edges): Remove code which reused the original block
6755 when it was going to become unreachable code.
6756 (thread_block): Don't set do_not_duplicate field.
6758 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6760 * lto-opts.c (register_user_option_p, lto_register_user_option):
6761 Make type argument unsigned.
6762 * lto-streamer.h (lto_register_user_option): Make type argument
6764 * opth-gen.awk: Make CL_* macros unsigned.
6765 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6766 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6767 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6768 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6769 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6770 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6771 (find_opt): Make lang_mask argument unsigned.
6773 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6775 PR rtl-optimization/48331
6776 PR rtl-optimization/48334
6777 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6778 for any used algorithm.
6780 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6782 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6785 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6787 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6788 (alpha_option_override): Don't set alpha_sr_alias_set.
6789 (emit_frame_store_1): Use gen_frame_mem rather than calling
6791 (alpha_expand_epilogue): Ditto.
6793 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6795 PR tree-optimization/48290
6796 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6797 vectorization, check that relevant phis in the basic block after
6798 the inner loop are really inner loop's exit phis.
6800 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6803 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6804 (cached_dw_loc_list_def): New structure.
6805 (cached_dw_loc_list): New typedef.
6806 (cached_dw_loc_list_table): New variable.
6807 (cached_dw_loc_list_table_hash): New function.
6808 (cached_dw_loc_list_table_eq): Likewise.
6809 (add_location_or_const_value_attribute): Take a bool cache_p.
6810 Cache the list when the parameter is true.
6811 (gen_formal_parameter_die): Update caller.
6812 (gen_variable_die): Likewise.
6813 (dwarf2out_finish): Likewise.
6814 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6815 while generating debug info for the decl.
6816 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6817 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6818 (resolve_addr): Cache the result of resolving a chain of
6821 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6823 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6824 conflict object hard regset nodes have intersecting hard reg sets.
6826 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6827 after regstat_init_n_sets_and_refs.
6829 * ira.c: Add more comments at the top.
6830 (setup_stack_reg_pressure_class, setup_pressure_classes):
6831 Add comments how we compute the register pressure classes.
6832 (setup_allocno_and_important_classes): Add more comments.
6833 (setup_class_translate_array, reorder_important_classes)
6834 (setup_reg_class_relations): Add comments.
6836 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6839 * ira-color.c: Add 2011 to the Copyright line.
6840 (assign_hard_reg): Add more comments.
6841 (improve_allocation): Ditto.
6843 * ira-costs.c: Add 2011 to the Copyright line.
6844 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6846 (setup_regno_cost_classes_by_mode): Ditto.
6848 Initial patches from ira-improv branch:
6850 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6852 * ira-build.c (ira_create_object): Remove initialization of
6853 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6854 (ira_create_allocno): Remove initialization of
6855 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6856 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6857 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6858 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6859 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6860 Initialize ALLOCNO_ADD_DATA.
6861 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6862 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6864 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6865 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6867 * ira.c (ira_reallocate): Remove.
6868 (setup_pressure_classes): Call
6869 ira_init_register_move_cost_if_necessary. Use
6870 ira_register_move_cost instead of ira_get_register_move_cost.
6871 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6872 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6874 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6875 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6876 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6877 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6878 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6879 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6881 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6882 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6883 (struct allocno_color_data): New.
6884 (allocno_color_data_t): New typedef.
6885 (allocno_color_data): New definition.
6886 (ALLOCNO_COLOR_DATA): New macro.
6887 (struct object_color_data): New.
6888 (object_color_data_t): New typedef.
6889 (object_color_data): New definition.
6890 (OBJECT_COLOR_DATA): New macro.
6891 (update_copy_costs, calculate_allocno_spill_cost): Call
6892 ira_init_register_move_cost_if_necessary. Use
6893 ira_register_move_cost instead of ira_get_register_move_cost.
6894 (move_spill_restore, update_curr_costs): Ditto.
6895 (allocno_spill_priority): Make it inline.
6896 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6897 (struct coalesce_data, coalesce_data_t): New.
6898 (allocno_coalesce_data): New definition.
6899 (ALLOCNO_COALESCE_DATA): New macro.
6900 (merge_allocnos, coalesced_allocno_conflict_p): Use
6901 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6902 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6903 (coalesce_allocnos): Ditto.
6904 (setup_coalesced_allocno_costs_and_nums): Ditto.
6905 (collect_spilled_coalesced_allocnos): Ditto.
6906 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6907 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6908 (coalesce_spill_slots): Ditto.
6909 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6910 free allocno_coalesce_data.
6912 * ira-conflicts.c: Fix formatting.
6913 (process_regs_for_copy): Call
6914 ira_init_register_move_cost_if_necessary. Use
6915 ira_register_move_cost instead of ira_get_register_move_cost.
6916 (build_object_conflicts): Optimize.
6918 * ira-costs.c (record_reg_classes): Optimize. Call
6919 ira_init_register_move_cost_if_necessary. Use
6920 ira_register_move_cost, ira_may_move_in_cost, and
6921 ira_may_move_out_cost instead of ira_get_register_move_cost and
6922 ira_get_may_move_cost.
6923 (record_address_regs): Ditto.
6924 (scan_one_insn): Optimize.
6925 (find_costs_and_classes): Optimize.
6926 (process_bb_node_for_hard_reg_moves): Call
6927 ira_init_register_move_cost_if_necessary. Use
6928 ira_register_move_cost instead of ira_get_register_move_cost.
6930 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6931 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6932 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6933 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6935 (ira_initiate_emit_data, ira_finish_emit_data)
6936 (create_new_allocno): New functions.
6937 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6938 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6939 Use ira_register_move_cost instead of ira_get_register_move_cost.
6941 * ira-int.h: Fix some comments.
6942 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6943 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6944 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6945 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6947 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6948 bitfield after mode. Make hard_regno a short int. Make
6949 hard_regno short. Remove first_coalesced_allocno and
6950 next_coalesced_allocno. Move mem_optimized_dest_p,
6951 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6952 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6953 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6954 temp, colorable_p. Add new member add_data.
6955 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6956 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6957 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6958 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6959 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6960 (ALLOCNO_ADD_DATA): New macro.
6961 (ira_emit_data_t): New typedef.
6962 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6963 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6964 from struct ira_allocno.
6965 (ALLOCNO_EMIT_DATA): New macro.
6966 (ira_allocno_emit_data, allocno_emit_reg): New.
6967 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6968 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6969 (OBJECT_ADD_DATA): New macro.
6970 (ira_reallocate): Remove.
6971 (ira_initiate_emit_data, ira_finish_emit_data): New.
6972 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6973 (ira_init_register_move_cost_if_necessary): New.
6974 (ira_object_conflict_iter_next): Merge into
6975 ira_object_conflict_iter_cond.
6976 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6978 * ira-live.c (process_single_reg_class_operands): Call
6979 ira_init_register_move_cost_if_necessary. Use
6980 ira_register_move_cost instead of ira_get_register_move_cost.
6982 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6984 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6986 * ira-costs.c: Fix formatting.
6987 (cost_classes, cost_classes_num): Remove.
6988 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6989 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6990 (cost_classes_del, cost_classes_htab): New.
6991 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6992 (initiate_regno_cost_classes, setup_cost_classes): New.
6993 (setup_regno_cost_classes_by_aclass): New.
6994 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6995 (record_reg_classes): Use regno_cost_classes instead of
6996 cost_classes. Move checking opposite operand up.
6997 (record_address_regs): Use regno_cost_classes
6998 instead of cost_classes.
6999 (scan_one_insn): Ditto. Use always general register.
7000 (print_allocno_costs): Use regno_cost_classes instead of
7002 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7003 (find_costs_and_classes): Set up cost classes for each registers.
7004 Use also their mode for this. Use regno_cost_classes instead of
7006 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7008 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7009 (ira_costs, ira_set_pseudo_classes): Call
7010 initiate_regno_cost_classes and finish_regno_cost_classes.
7012 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7014 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7016 * target.def (ira_cover_classes): Remove.
7018 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7020 * doc/tm.texi.in: Ditto.
7022 * ira-conflicts.c: Remove mentioning cover classes from the file.
7023 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7024 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7026 * targhooks.c (default_ira_cover_classes): Remove.
7028 * targhooks.h (default_ira_cover_classes): Ditto.
7030 * haifa-sched.c: Remove mentioning cover classes from the file.
7031 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7032 ira_pressure_classes and ira_pressure_classes_num instead of
7033 ira_reg_class_cover_size and ira_reg_class_cover. Use
7034 sched_regno_pressure_class instead of sched_regno_cover_class.
7035 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7036 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7038 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7039 classes from the file.
7040 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7041 (struct object_hard_regs, struct object_hard_regs_node): New.
7042 (struct ira_object): New members profitable_hard_regs,
7043 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7044 (struct ira_allocno): Rename cover_class to aclass. Rename
7045 cover_class_cost and updated_cover_class_cost to class_cost and
7046 updated_class_cost. Remove splay_removed_p and
7047 left_conflict_size. Add new members colorable_p.
7048 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7049 (ALLOCNO_COLORABLE_P): New macro.
7050 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7051 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7052 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7053 (OBJECT_...): Rename parameter C to O.
7054 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7055 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7056 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7057 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7058 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7059 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7060 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7061 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7062 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7063 x_ira_reg_class_subunion.
7064 (ira_max_memory_move_cost, ira_max_register_move_cost)
7065 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7066 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7067 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7068 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7069 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7070 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7071 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7072 (ira_tune_allocno_costs_and_cover_classes): Rename to
7073 ira_tune_allocno_costs.
7074 (ira_debug_hard_regs_forest): New.
7075 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7076 (ira_object_conflict_iter_next): Fix comments.
7077 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7078 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7079 cover_class to aclass.
7080 (ira_allocate_and_accumulate_costs): Ditto.
7081 (ira_allocate_and_set_or_copy_costs): Ditto.
7083 * opts.c (decode_options): Remove ira_cover_class check.
7085 * ira-color.c: Remove mentioning cover classes from the file. Use
7086 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7087 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7088 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7089 (splay-tree.h): Remove include.
7090 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7091 before copy_freq_compare_func.
7092 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7093 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7095 (hard_regs_roots, hard_regs_node_vec): Ditto.
7096 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7097 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7098 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7099 (create_new_object_hard_regs_node): Ditto.
7100 (add_new_object_hard_regs_node_to_forest): Ditto.
7101 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7102 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7104 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7105 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7106 (remove_unused_object_hard_regs_nodes): Ditto.
7107 (enumerate_object_hard_regs_nodes): Ditto.
7108 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7109 (object_hard_regs_subnode_t): Ditto.
7110 (struct object_hard_regs_subnode): Ditto.
7111 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7112 (setup_object_hard_regs_subnode_index): Ditto.
7113 (get_object_hard_regs_subnodes_num): Ditto.
7114 (form_object_hard_regs_nodes_forest): Ditto.
7115 (finish_object_hard_regs_nodes_tree): Ditto.
7116 (finish_object_hard_regs_nodes_forest): Ditto.
7117 (allocnos_have_intersected_live_ranges_p): Rename to
7118 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7119 (pseudos_have_intersected_live_ranges_p): Rename to
7120 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7121 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7122 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7123 (update_copy_costs): Remove assert. Skip cost update if the hard
7124 reg does not belong the class.
7125 (assign_hard_reg): Process only profitable hard regs.
7126 (uncolorable_allocnos_num): Make it scalar.
7127 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7128 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7129 and ira_reg_class_max_nregs.
7130 (bucket_allocno_compare_func): Check frequency first.
7131 (sort_bucket): Add compare function as a parameter.
7132 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7133 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7134 (push_allocno_to_stack): Rewrite for checking new allocno
7136 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7137 (push_only_colorable): Pass new parameter to sort_bucket.
7138 (push_allocno_to_spill): Remove.
7139 (allocno_spill_priority_compare): Make it inline and rewrite.
7140 (splay_tree_allocate, splay_tree_free): Remove.
7141 (allocno_spill_sort_compare): New function.
7142 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7143 build and use splay tree. Choose first allocno in uncolorable
7144 allocno bucket to spill. Remove setting spill cost.
7145 (all_conflicting_hard_regs): Remove.
7146 (setup_allocno_available_regs_num): Check only profitable hard
7147 regs. Print info about hard regs nodes.
7148 (setup_allocno_left_conflicts_size): Remove.
7149 (put_allocno_into_bucket): Don't call
7150 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7151 (improve_allocation): New.
7152 (color_allocnos): Call setup_profitable_hard_regs,
7153 form_object_hard_regs_nodes_forest, improve_allocation,
7154 finish_object_hard_regs_nodes_forest. Setup spill cost.
7155 (print_loop_title): Use pressure classes.
7156 (color_allocnso): Ditto.
7157 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7158 and allocnos_for_spilling.
7159 (ira_sort_regnos_for_alter_reg): Don't setup members
7160 {first,next}_coalesced_allocno.
7161 (color): Remove allocating and freeing removed_splay_allocno_vec.
7162 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7163 prohibited_class_mode_regs.
7165 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7167 (update_allocno_pressure_excess_length): Use pressure classes.
7168 (inc_register_pressure, dec_register_pressure): Check for pressure
7170 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7171 pressure class. Use ira_reg_class_nregs instead of
7172 ira_reg_class_max_nregs.
7173 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7174 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7175 (single_reg_class): Use ira_reg_class_nregs instead of
7176 ira_reg_class_max_nregs.
7177 (process_bb_node_lives): Use pressure classes.
7179 * ira-emit.c: Remove mentioning cover classes from the file. Use
7180 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7181 (change_loop): Use pressure classes.
7182 (modify_move_list): Call ira_set_allocno_class instead of
7183 ira_set_allocno_cover_class.
7185 * ira-build.c: Remove mentioning cover classes from the file. Use
7186 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7187 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7188 ALLOCNO_UPDATED_CLASS_COST instead of
7189 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7190 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7191 (ira_create_allocno): Remove initialization of
7192 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7193 ALLOCNO_COLORABLE_P.
7194 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7195 Update conflict regs for the objects.
7196 (create_cap_allocno): Remove assert. Don't propagate
7197 ALLOCNO_AVAILABLE_REGS_NUM.
7198 (ira_free_allocno_costs): New function.
7199 (finish_allocno): Change a part of code into call of
7200 ira_free_allocno_costs.
7201 (low_pressure_loop_node_p): Use pressure classes.
7202 (object_range_compare_func): Don't compare classes.
7203 (setup_min_max_conflict_allocno_ids): Ditto.
7205 * loop-invariant.c: Remove mentioning cover classes from the file.
7206 Use ira_pressure_classes and ira_pressure_classes_num instead of
7207 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7208 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7209 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7210 Use reg_allocno_class instead of reg_cover_class.
7211 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7212 STACK_REG_COVER_CLASS.
7213 (get_regno_cover_class): Rename to get_regno_pressure_class.
7214 (move_loop_invariants): Initialize and finalize regstat.
7216 * ira.c: Remove mentioning cover classes from the file. Add
7217 comments about coloring without cover classes. Use ALLOCNO_CLASS
7218 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7219 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7220 setup_class_subset_and_memory_move_costs.
7221 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7222 (setup_cover_and_important_classes): Rename to
7223 setup_allocno_and_important_classes.
7224 (setup_class_translate_array): New.
7225 (setup_class_translate): Call it for allocno and pressure classes.
7226 (cover_class_order): Rename to allocno_class_order.
7227 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7228 of ira_class_translate.
7229 (reorder_important_classes): Set up ira_important_class_nums.
7230 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7231 (print_class_cover): Rename to print_classes. Add parameter.
7232 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7233 Print pressure classes too.
7234 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7235 setup_reg_subclasses.
7236 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7237 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7238 (setup_prohibited_class_mode_regs): Use
7239 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7240 (clarify_prohibited_class_mode_regs): New function.
7241 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7242 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7243 (ira_init_once): Initialize them.
7244 (free_register_move_costs): Process them.
7245 (ira_init): Move calls of find_reg_classes and
7246 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7247 Call clarify_prohibited_class_mode_regs.
7248 (ira_no_alloc_reg): Remove.
7249 (too_high_register_pressure_p): Use pressure classes.
7251 * sched-deps.c: Remove mentioning cover classes from the file.
7252 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7253 ira_pressure_classes and ira_pressure_classes_num instead of
7254 ira_reg_class_cover_size and ira_reg_class_cover.
7255 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7256 sched_regno_pressure_class instead of sched_regno_cover_class.
7257 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7258 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7260 * ira.h: Add 2010 to Copyright.
7261 (ira_no_alloc_reg): Remove external.
7262 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7263 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7264 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7265 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7266 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7267 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7268 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7269 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7270 x_ira_no_alloc_regs.
7271 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7272 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7273 ira_allocno_classes_num and ira_allocno_classes.
7274 (ira_class_translate): Rename to ira_allocno_class_translate.
7275 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7276 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7277 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7278 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7279 (ira_no_alloc_regs): New.
7281 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7282 classes from the file. Use ALLOCNO_CLASS instead of
7283 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7284 ALLOCNO_COVER_CLASS_COST.
7285 (regno_cover_class): Rename to regno_aclass.
7286 (record_reg_classes): Use ira_reg_class_subunion instead of
7287 ira_reg_class_union.
7288 (record_address_regs): Check overflow.
7289 (scan_one_insn): Ditto.
7290 (print_allocno_costs): Print total mem cost fore regional allocation.
7291 (print_pseudo_costs): Use REG_N_REFS.
7292 (find_costs_and_classes): Use classes intersected with them on the
7293 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7294 ira_reg_class_union. Use ira_allocno_class_translate and
7295 regno_aclass instead of ira_class_translate and regno_cover_class.
7296 Modify code for finding regno_aclass. Setup preferred classes for
7298 (setup_allocno_cover_class_and_costs): Rename to
7299 setup_allocno_class_and_costs. Use regno_aclass instead of
7300 regno_cover_class. Use ira_set_allocno_class instead of
7301 ira_set_allocno_cover_class.
7302 (init_costs, finish_costs): Use regno_aclass instead of
7304 (ira_costs): Use setup_allocno_class_and_costs instead of
7305 setup_allocno_cover_class_and_costs.
7306 (ira_tune_allocno_costs_and_cover_classes): Rename to
7307 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7308 by processing objects. Use ira_reg_class_max_nregs instead of
7309 ira_reg_class_nregs.
7311 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7313 * sched-int.h: Remove mentioning cover classes from the file.
7314 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7316 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7317 classes from the file.
7318 (struct reg_pref): Rename coverclass into allocnoclass.
7319 (reg_cover_class): Rename to reg_allocno_class.
7321 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7323 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7325 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7327 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7329 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7331 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7333 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7335 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7337 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7339 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7341 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7342 (i386_ira_cover_classes): Ditto.
7344 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7346 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7348 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7350 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7352 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7354 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7356 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7357 (mips_ira_cover_classes): Ditto.
7359 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7361 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7363 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7365 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7367 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7369 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7370 (IRA_COVER_CLASSES_VSX): Ditto.
7372 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7373 (rs6000_ira_cover_classes): Ditto.
7375 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7377 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7379 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7381 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7383 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7385 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7387 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7389 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7391 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7393 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7395 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7398 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7399 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7400 dw_fde_unlikely_section_end_label, cold_in_std_section,
7401 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7402 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7404 (output_fde): Use dw_fde_second_{begin,end} if second is
7405 true, otherwise dw_fde_{begin,end}.
7406 (output_call_frame_info): Test dw_fde_second_begin != NULL
7407 instead of dw_fde_switched_sections.
7408 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7409 fields, initialize new fields. Initialize in_std_section
7410 unconditionally from the first partition.
7411 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7412 dw_fde_second_begin is non-NULL.
7413 (dwarf2out_switch_text_section): Stop initializing removed
7414 dw_fde_struct fields, initialize new fields, initialize
7415 also dw_fde_end here. Set dw_fde_switch_cfi even when
7416 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7417 (struct var_loc_list_def): Add last_before_switch field.
7418 (arange_table, arange_table_allocated, arange_table_in_use,
7419 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7420 (size_of_aranges): Count !in_std_section and !second_in_std_section
7421 hunks in fdes, instead of looking at arange_table_in_use.
7422 (output_aranges): Add aranges_length argument, don't call
7423 size_of_aranges here. Instead of using aranges_table*
7424 emit ranges for fdes when !in_std_section resp.
7425 !second_in_std_section.
7426 (dw_loc_list): Break ranges crossing section switch.
7427 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7428 use dw_fde_second_end instead of dw_fde_end as end of last range.
7429 (gen_subprogram_die): Don't call add_arange. Use
7430 dw_fde_{begin,end} for first partition and if switched
7431 section dw_fde_second_{begin,end} for the second.
7432 (var_location_switch_text_section_1,
7433 var_location_switch_text_section): New functions.
7434 (dwarf2out_begin_function): Initialize cold_text_section even
7435 when function_section () isn't text_section.
7436 (prune_unused_types): Don't walk arange_table.
7437 (dwarf2out_finish): Don't needlessly test
7438 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7439 If info_section_emitted, call size_of_aranges and if it indicates
7440 non-empty .debug_aranges, call output_aranges with the computed
7441 size. Stop using removed dw_fde_struct fields, use
7442 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7446 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7447 create ENTRY_VALUE if incoming or address of incoming's MEM
7449 * dwarf2out.c (mem_loc_descriptor): Don't emit
7450 DW_OP_GNU_entry_value of DW_OP_fbreg.
7451 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7452 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7453 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7454 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7456 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7457 is a REG_P or MEM_P with REG_P address, compute hash directly
7458 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7459 (preserve_only_constants): Don't clear VALUES forwaring
7460 ENTRY_VALUE to some other VALUE.
7462 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7464 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7467 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7469 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7470 block before expanding the statement.
7471 (expand_gimple_stmt_1): Likewise. Set them here...
7472 (expand_gimple_stmt): ...and not here. Tidy.
7473 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7476 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7478 * Makefile.in: New rule for cprop.o.
7479 * gcse.c: Move constant/copy propagation to cprop.c.
7480 (compute_local_properties): Only handle expression tables.
7481 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7482 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7483 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7484 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7485 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7486 compute_cprop_data, find_used_regs, try_replace_reg,
7487 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7488 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7489 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7490 find_bypass_set, reg_killed_on_edge, bypass_block,
7491 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7492 execute_rtl_cprop, pass_rtl_cprop): Move to...
7493 * cprop.c: ...here. New file, constant/copy propagation for RTL
7494 moved from gcse.c to here with minor cleanups in duplicated code.
7496 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7498 * config/i386/i386.c (flag_opts): Fix a typo in
7499 -mavx256-split-unaligned-store.
7501 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7503 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7504 LIBCALL_VALUE): Remove macros.
7505 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7506 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7507 (h8300_function_value, h8300_libcall_value,
7508 h8300_function_value_regno_p): New functions.
7510 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7512 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7514 2011-03-28 Jeff Law <law@redhat.com>
7516 * tree-ssa-threadupdate.c (redirect_edges): Call
7517 create_edge_and_update_destination_phis as needed.
7518 (create_edge_and_update_destination_phis): Accept new BB argument.
7519 All callers updated.
7520 (thread_block): Do not update the profile when threading around
7521 intermediate blocks.
7522 (thread_single_edge): Likewise.
7523 (determine_bb_domination_status): If BB is not a successor of the
7524 loop header, return NONDOMINATING.
7525 (register_jump_thread): Note when we register a jump thread around
7526 an intermediate block.
7527 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7528 (thread_across_edge): Use it.
7530 2011-03-28 Tristan Gingold <gingold@adacore.com>
7532 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7533 when for_return is 2.
7535 2011-03-28 Jeff Law <law@redhat.com>
7537 * var-tracking.c (canonicalize_values_mark): Delete unused
7539 (canonicalize_values_star, set_variable_part): Likewise.
7540 (clobber_variable_part, delete_variable_part): Likewise.
7542 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7544 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7546 2011-03-28 Martin Jambor <mjambor@suse.cz>
7548 * tree-inline.c (expand_call_inline): Do not check that destination
7550 (optimize_inline_calls): Assert that destination node is analyzed.
7551 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7552 not call tree_lowering_passes.
7553 * cgraph.h (cgraph_analyze_function): Declare.
7554 * cgraphunit.c (cgraph_analyze_function): Make public.
7556 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7558 * config/sparc/sparc-opts.h: New.
7559 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7560 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7561 (sparc_option_override): Store processor_type enumeration rather
7562 than string in cpu_default. Remove name and enumeration from
7563 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7564 without using sparc_select. Use target_flags_explicit instead of
7566 * config/sparc/sparc.h (enum processor_type): Move to
7568 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7569 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7570 HeaderInclude entry.
7571 (mcpu=, mtune=): Use Var and Enum.
7572 (sparc_processor_type): New Enum and EnumValue entries.
7574 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575 Iain Sandoe <iains@gcc.gnu.org>
7578 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7580 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7582 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7583 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7584 Insert new statements at it in lieu of STMT.
7585 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7586 * tree-vect-stmts.c (vectorizable_store): Likewise.
7587 (vectorizable_load): Likewise.
7589 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7591 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7596 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7598 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7599 unaligned 256bit load/store.
7600 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7601 (*avx_movdqu<avxmodesuffix>): Likewise.
7603 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7606 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7607 * config/pa/pa.md (iordi3): Use new predicate in expander.
7610 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7612 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7613 FUNCTION_VALUE_REGNO_P): Remove macros.
7614 * config/mips/mips-protos.h (mips_function_value): Remove.
7615 * config/mips/mips.c (mips_function_value): Rename to...
7616 (mips_function_value_1): ... this. Make static. Handle receiving
7617 the function type in 'fn_decl_or_type' argument.
7618 (mips_function_value, mips_libcall_value,
7619 mips_function_value_regno_p): New function.
7620 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7621 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7623 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7625 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7626 and -mavx256-split-unaligned-store.
7627 (ix86_option_override_internal): Split 32-byte AVX unaligned
7628 load/store by default.
7629 (ix86_avx256_split_vector_move_misalign): New.
7630 (ix86_expand_vector_move_misalign): Use it.
7632 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7633 -mavx256-split-unaligned-store.
7635 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7636 256bit load/store. Generate unaligned store on misaligned memory
7638 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7640 (*avx_movdqu<avxmodesuffix>): Likewise.
7642 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7643 -mavx256-split-unaligned-store.
7645 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7648 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7651 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7653 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7654 opno arguments with an expand_operand. Use create_input_operand.
7655 (mips_prepare_builtin_target): Delete.
7656 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7658 (mips_expand_builtin_direct): Use create_output_operand and
7659 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7660 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7661 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7663 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7665 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7667 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7669 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7671 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7672 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7673 basic blocks and call commit_edge_insertions directly.
7674 (fixup_abnormal_edges): Move from here to...
7675 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7676 on the edges and return whether some have actually been inserted.
7677 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7680 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7682 PR rtl-optimization/48144
7683 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7684 (merge_expr_data): ... here.
7685 (av_set_intersect): Rename to av_set_code_motion_filter.
7686 Update all callers. Call merge_history_vect when an expression
7687 is found in both sets.
7688 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7690 2011-03-26 Alan Modra <amodra@gmail.com>
7692 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7693 cmodel medium addresses.
7694 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7695 64-bit gpr loads and stores.
7696 (rs6000_secondary_reload_ppc64): New function.
7697 * config/rs6000/rs6000-protos.h: Declare it.
7698 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7700 2011-03-26 Alan Modra <amodra@gmail.com>
7703 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7704 GNU Go in traceback table.
7706 2011-03-25 Richard Henderson <rth@redhat.com>
7708 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7709 if there are exactly 6 operands.
7710 (set_storage_via_setmem): Similarly.
7712 2011-03-25 Kai Tietz <ktietz@redhat.com>
7714 * collect2.c (write_c_file_stat): Handle backslash
7715 as right-hand directory separator.
7716 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7717 checking just for slash.
7718 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7719 instead of checking for trailing slash.
7720 * gcc.c (record_temp_file): Use filename_cmp instead
7722 (do_spec_1): Likewise.
7723 (replace_outfile_spec_function): Likewise.
7724 (is_directory): Use filename_ncmp instead of strncmp.
7725 (print_multilib_info): Likewise.
7726 * gcov.c (find_source): Use filename_cmp instead
7728 (make_gcov_file_name): Fix order of slash/backslash
7730 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7731 (add_standard_paths): Likewise.
7732 * mips-tfile.c (saber_stop): Handle backslash.
7733 * prefix.c (update_path): Use filename_ncmp instead of
7735 * profile.c (output_location): Use filename_cmp instead
7737 * read-md.c (handle_toplevel_file): Handle backslash.
7738 * tlink.c (frob_extension): Likewise.
7739 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7741 * tree-dump.c (dequeue_and_dump): Handle backslash.
7742 * tree.c (get_file_function_name): Likewise.
7743 * gengtype.c (read_input_list): Likewise.
7744 (get_file_realbasename): Likewise.
7745 (get_output_file_with_visibility): Use filename_cmp
7748 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7750 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7753 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7755 * fold-const.c (expr_location_or): New function.
7756 (fold_truth_not_expr): Call it.
7758 2011-03-25 Jeff Law <law@redhat.com>
7760 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7762 * c-family/c-common.c (def_fn_type): Likewise.
7763 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7764 * emit-rtl.c (gen_rtvec): Likewise.
7765 * lto/lto-lang.c (def_fn_type): Likewise.
7767 2011-03-25 Richard Guenther <rguenther@suse.de>
7769 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7770 also generate copies.
7771 (fini_copy_prop): Handle constant values properly.
7773 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7775 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7776 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7777 (hash_loc_operands, compare_loc_operands): Handle
7778 DW_OP_GNU_entry_value.
7780 2011-03-25 Kai Tietz <ktietz@redhat.com>
7782 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7783 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7784 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7785 comment and use macro TARGET_64BIT_MS_ABI instead.
7786 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7787 and change default behavior for 32-bit MS_ABI.
7788 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7789 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7791 (ix86_cfun_abi): Likewise.
7792 (ix86_maybe_switch_abi): Adjust comment.
7793 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7794 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7795 instead of checking for SYSV_ABI.
7796 (ix86_nsaved_sseregs): Likewise.
7797 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7799 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7800 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7801 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7802 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7803 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7805 2011-03-25 Richard Guenther <rguenther@suse.de>
7807 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7808 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7809 (verify_gimple): Remove.
7810 * tree-cfg.c (verify_gimple_call): Merge verification
7812 (verify_gimple_phi): Merge verification from verify_stmts.
7813 (verify_gimple_label): New function.
7814 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7815 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7816 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7817 (verify_stmts): Rename to verify_gimple_in_cfg.
7818 (verify_gimple_in_cfg): New function.
7819 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7820 * tree-ssa.c (verify_ssa): Likewise.
7821 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7823 2011-03-25 Richard Guenther <rguenther@suse.de>
7825 * passes.c (init_optimization_passes): Add FRE pass after
7828 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7829 Andrew Stubbs <ams@codesourcery.com>
7831 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7833 (arm_movdi_vfp_cortexa8): New pattern.
7834 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7835 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7836 instructions when tuning for Cortex-A8. Set attribute "arch".
7837 * config/arm/arm.md: Move include arm-tune.md up a bit.
7838 (define_attr "arch"): Add "onlya8" and "nota8" values.
7839 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7841 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7845 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7847 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7848 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7849 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7850 * passes.c (init_optimization_passes): Move
7851 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7853 2011-03-25 Kai Tietz <ktietz@redhat.com>
7855 * c-typeck.c (comptypes_internal): Replace target
7856 hook call of comp_type_attributes by version in tree.c file.
7857 * gimple.c (gimple_types_compatible_p_1): Likewise.
7858 * tree-ssa.c (useless_type_conversion_p): Likewise.
7859 * tree.c (build_type_attribute_qual_variant): Likewise.
7860 (attribute_value_equal): New static helper function.
7861 (comp_type_attributes): New function.
7862 (merge_attributes): Use attribute_value_equal for comparison.
7863 (attribute_list_contained): Likewise.
7864 * tree.h (comp_type_attributes): New prototype.
7866 2011-03-25 Richard Guenther <rguenther@suse.de>
7868 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7869 of complex types at -O0.
7870 (verify_gimple_assign_binary): Likewise.
7871 (verify_gimple_assign_ternary): Likewise.
7873 2011-03-24 Mark Wielaard <mjw@redhat.com>
7875 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7876 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7878 2011-03-24 Mark Wielaard <mjw@redhat.com>
7881 * dwarf2out.c (output_abbrev_section): Only write table when
7882 abbrev_die_table_in_use > 1.
7884 2011-02-24 Richard Henderson <rth@redhat.com>
7886 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7887 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7888 (alpha_expand_unaligned_load_words): Use extql.
7889 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7890 (emit_insxl): Handle all modes for consistency.
7892 2011-02-24 Richard Henderson <rth@redhat.com>
7894 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7895 (alpha_expand_unaligned_load): Likewise.
7896 (alpha_expand_unaligned_store): Likewise.
7897 (alpha_expand_unaligned_load_words): Likewise.
7898 (alpha_expand_unaligned_store_words): Likewise.
7899 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7900 (alpha_split_lock_test_and_set_12): Likewise.
7901 (print_operand, alpha_fold_builtin_extxx): Likewise.
7902 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7903 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7904 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7905 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7906 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7907 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7908 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7909 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7910 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7911 (extwl, extll, extql): Similarly.
7912 (inswh, inslh, insqh): Similarly.
7913 (mskbl, mskwl, mskll, mskql): Similarly.
7914 (mskwh, msklh, mskqh): Similarly.
7916 2011-02-24 Richard Henderson <rth@redhat.com>
7918 * config/alpha/alpha.md (attribute isa): Add er, ner.
7919 (attribute enabled): Handle them.
7920 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7922 2011-02-24 Richard Henderson <rth@redhat.com>
7924 * config/alpha/alpha.md (attribute isa): Add vms.
7925 (attribute enabled): Handle it.
7926 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7927 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7928 (*movtf): Rename from *movtf_internal for consistency.
7929 (*movsi): Merge with *movsi_nt_vms.
7930 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7931 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7932 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7933 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7935 2011-02-24 Richard Henderson <rth@redhat.com>
7937 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7938 (extendqisi2, extendhisi2): Likewise.
7939 (extendqidi2): Simplify BWX/non-BWX expansions.
7940 (extendhidi2): Similarly.
7942 2011-02-24 Richard Henderson <rth@redhat.com>
7944 * config/alpha/alpha.md (attribute isa): New.
7945 (attribute enabled): New.
7946 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7947 (zero_extendqisi2, zero_extendqidi2): Similarly.
7948 (zero_extendhisi2, zero_extendhidi2): Similarly.
7949 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7951 2011-02-24 Richard Henderson <rth@redhat.com>
7953 * config/alpha/predicates.md (input_operand): Revert last change;
7954 update comment to mention 32-bit VMS rather than Windows.
7956 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7958 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7959 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7960 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7961 * passes.c (init_optimization_passes): Move
7962 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7964 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7966 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7968 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7970 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7973 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7976 * simplify-rtx.c (simplify_const_unary_operation): Call
7977 real_convert when changing mode class with FLOAT_EXTEND.
7979 2011-03-24 Nick Clifton <nickc@redhat.com>
7981 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7982 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7983 * config/rx/rx.c (rx_option_override): Set align_jumps,
7984 align_loops and align_labels if not set by the user.
7985 (rx_align_for_label): New function.
7986 (rx_max_skip_for_label): New function.
7987 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7988 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7989 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7990 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7991 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7993 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7995 PR rtl-optimization/48263
7996 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7997 and original commutative_p handling. Use maybe_gen_insn.
7999 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8001 * reload.c (find_reloads_subreg_address): Add address_reloaded
8002 parameter and return true there if the full address has been
8004 (find_reloads_toplev): Pass address_reloaded flag.
8005 (find_reloads_address_1): Don't use address_reloaded parameter.
8007 2011-03-24 Jeff Law <law@redhat.com>
8009 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8010 unused variable "ann".
8011 (remove_unused_locals): Likewise.
8013 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8016 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8019 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8021 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8022 for invalid symbolic addresses.
8023 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8026 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8028 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8029 the argument in calls to fold_truth_not_expr.
8031 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8033 * tree.c (record_node_allocation_statistics): New function.
8034 (make_node_stat, copy_node_stat, build_string): Call it.
8035 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8036 (build1_stat, build_omp_clause): Likewise.
8038 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8040 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8043 2011-03-24 Richard Guenther <rguenther@suse.de>
8045 PR tree-optimization/48271
8046 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8047 blocks that still exist.
8049 2011-03-24 Richard Guenther <rguenther@suse.de>
8051 PR tree-optimization/48270
8052 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8053 not free datarefs before ddrs.
8055 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8057 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8058 from the address built for a reference with variable offset.
8060 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8063 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8064 alternatives that can be handled with movq or movabsq insn.
8065 (*movdf_internal): Disable for !TARGET_64BIT.
8066 (*movdf_internal_nointeger): Ditto.
8067 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8069 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8071 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8072 (FUNCTION_ARG_ADVANCE): Likewise.
8073 * tm.texi.in: Change references to them to hook references.
8074 * tm.texi: Regenerate.
8075 * targhooks.c (default_function_arg): Eliminate check for target macro.
8076 (default_function_incoming_arg): Likewise.
8077 (default_function_arg_advance): Likewise.
8078 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8079 (function_arg_advance): Likewise.
8080 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8082 2011-03-24 Richard Guenther <rguenther@suse.de>
8085 * tree-object-size.c (addr_object_size): Do not double-account
8086 for MEM_REF offsets.
8088 2011-03-24 Diego Novillo <dnovillo@google.com>
8090 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8091 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8092 (lto_input_data_block): Move from lto-opts.c. Make extern.
8094 (lto_input_string): Rename from input_string. Make extern.
8096 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8097 output_string_with_length.
8098 Output 0 to indicate a non-NULL string. Update all callers to
8100 (lto_output_string): Rename from output_string. Make extern.
8102 (lto_output_decl_state_streams): Make extern.
8103 (lto_output_decl_state_refs): Make extern.
8104 * lto-streamer.h (lto_input_string): Declare.
8105 (lto_input_data_block): Declare.
8106 (lto_output_string): Declare.
8107 (lto_output_string_with_length): Declare.
8108 (lto_output_decl_state_streams): Declare.
8109 (lto_output_decl_state_refs): Declare.
8111 2011-03-24 Richard Guenther <rguenther@suse.de>
8113 PR tree-optimization/46562
8114 * tree.c (build_invariant_address): New function.
8115 * tree.h (build_invariant_address): Declare.
8116 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8117 a renamed function moved ...
8118 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8119 Take valueization callback parameter.
8120 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8121 * gimple-fold.h: New file.
8122 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8123 (ccp_fold, fold_const_aggregate_ref,
8124 fold_ctor_reference, fold_nonarray_ctor_reference,
8125 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8126 get_base_constructor): Move ...
8127 * gimple-fold.c: ... here.
8128 (gimple_fold_stmt_to_constant_1): New function
8129 split out from ccp_fold. Take a valueization callback parameter.
8130 Valueize all operands.
8131 (gimple_fold_stmt_to_constant): New wrapper function.
8132 (fold_const_aggregate_ref_1): New function split out from
8133 fold_const_aggregate_ref. Take a valueization callback parameter.
8134 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8135 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8136 invariant POINTER_PLUS_EXPRs to invariant form.
8137 (vn_valueize): New function.
8138 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8139 * tree-vrp.c (vrp_valueize): New function.
8140 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8141 to fold statements to constants.
8142 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8143 function declarations.
8144 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8145 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8147 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8149 * config/h8300/predicates.md (jump_address_operand): Fix register
8152 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8154 * doc/invoke.texi (max-stores-to-sink): Document.
8155 * params.h (MAX_STORES_TO_SINK): Define.
8156 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8157 if either vectorization or if-conversion is disabled.
8158 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8159 tree-vect-data-refs.c vect_equal_offsets.
8160 (dr_equal_offsets_p): New function.
8161 (find_data_references_in_bb): Remove static.
8162 * tree-data-ref.h (find_data_references_in_bb): Declare.
8163 (dr_equal_offsets_p): Likewise.
8164 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8165 (vect_drs_dependent_in_basic_block): Update calls to
8167 (vect_check_interleaving): Likewise.
8168 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8169 (cond_if_else_store_replacement): Rename to...
8170 (cond_if_else_store_replacement_1): ... this. Change arguments and
8172 (cond_if_else_store_replacement): New function.
8173 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8174 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8176 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8179 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8180 to subtract lower bound instead of GEN_INT().
8182 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8187 * doc/extend.texi (Alignment): Move section to match order in TOC.
8188 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8189 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8191 2011-03-23 Jeff Law <law@redhat.com>
8193 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8194 before removing the edge.
8196 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8197 it may have been freed by redirect_branch_edge or
8198 redirect_edge_succ_nodup.
8200 2011-03-23 Richard Guenther <rguenther@suse.de>
8202 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8203 (check_va_list_escapes): Likewise.
8204 (check_all_va_list_escapes): Likewise.
8206 2011-03-23 Richard Guenther <rguenther@suse.de>
8208 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8209 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8210 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8211 (alias.o): Likewise.
8212 (ipa-type-escape.o): Remove.
8213 (ipa-struct-reorg.o): Likewise.
8214 (GTFILES): Remove ipa-struct-reorg.c.
8215 * alias.c: Do not include ipa-type-escape.h.
8216 * tree-ssa-alias.c: Likewise.
8217 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8218 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8219 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8220 and ipa-type-escape passes.
8221 * tree-pass.h (pass_ipa_type_escape): Remove.
8222 (pass_ipa_struct_reorg): Likewise.
8223 * ipa-struct-reorg.h: Remove.
8224 * ipa-struct-reorg.c: Likewise.
8225 * ipa-type-escape.h: Likewise.
8226 * ipa-type-escape.c: Likewise.
8227 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8228 (--param struct-reorg-cold-struct-ratio): Likewise.
8229 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8230 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8231 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8233 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8235 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8236 cpu attribute value.
8237 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8238 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8239 * config/s390/s390.c (processor_flags_table): New constant array.
8240 (s390_handle_arch_option): Remove.
8241 (s390_handle_option): Remove s390_handle_arch_option invocations
8242 and OPT_mwarn_framesize_ handling.
8243 (s390_option_override): Remove s390_handle_arch_option invocation.
8244 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8246 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8247 * config/s390/s390.opt (s390_tune, s390_arch)
8248 (march=): Replace s390_arch_option enum and values with
8249 processor_type. Set variable name to s390_arch. Set
8250 initialization value.
8251 (mtune=): Replace s390_arch_option with processor_type. Set
8252 variable name to s390_tune. Set initialization value.
8254 2011-03-23 Julian Brown <julian@codesourcery.com>
8256 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8257 accesses which are not naturally aligned.
8259 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8262 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8264 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8266 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8267 parameter from "int" to "enum insn_code".
8268 (expand_operand_type): New enum.
8269 (expand_operand): New structure.
8270 (create_expand_operand): New function.
8271 (create_fixed_operand, create_output_operand): Likewise
8272 (create_input_operand, create_convert_operand_to): Likewise.
8273 (create_convert_operand_from, create_address_operand): Likewise.
8274 (create_integer_operand): Likewise.
8275 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8276 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8277 (expand_insn, expand_jump_insn): Likewise.
8278 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8279 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8280 (expand_movstr, expand_builtin___clear_cache): Likewise.
8281 (expand_builtin_lock_release): Likewise.
8282 * explow.c (allocate_dynamic_stack_space): Likewise.
8283 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8284 and use the default handling in that case.
8285 * expmed.c (check_predicate_volatile_ok): Delete.
8286 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8287 (emit_cstore): Likewise.
8288 * expr.c (emit_block_move_via_movmem): Likewise.
8289 (set_storage_via_setmem, expand_assignment): Likewise.
8290 (emit_storent_insn, try_casesi): Likewise.
8291 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8292 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8293 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8294 (expand_twoval_unop, expand_twoval_binop): Likewise.
8295 (expand_unop_direct, emit_indirect_jump): Likewise.
8296 (emit_conditional_move, vector_compare_rtx): Likewise.
8297 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8298 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8299 (expand_sync_lock_test_and_set): Likewise.
8300 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8301 (emit_unop_insn): Likewise.
8302 (expand_copysign_absneg): Change icode to an insn_code.
8303 (create_convert_operand_from_type): New function.
8304 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8305 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8306 (expand_insn, expand_jump_insn): Likewise.
8307 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8308 than const_int_operand for operand 2.
8310 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8312 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8315 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8317 * emit-rtl.c (emit_pattern_before_noloc): New function.
8318 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8319 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8320 (emit_pattern_after_noloc): New function.
8321 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8322 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8324 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8326 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8327 (__ffsDI2): Likewise.
8329 2011-03-22 Richard Henderson <rth@redhat.com>
8331 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8332 of !TARGET_ABI_OPEN_VMS.
8333 (alpha_trampoline_init, alpha_start_function): Likewise.
8334 (alpha_expand_epilogue, alpha_file_start): Likewise.
8335 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8336 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8337 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8338 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8339 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8343 * config/s390/s390-opts.h: New.
8344 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8345 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8346 s390_stack_guard): Remove.
8347 (s390_handle_arch_option): Return void. Take enum
8348 s390_arch_option value instead of string and searching array.
8349 (s390_handle_option): Don't assert that global structures are in
8350 use. Access variables via opts pointer. Use error_at. Don't use
8351 sscanf for -mstack-guard= or -mstack-size=. Update call to
8352 s390_handle_arch_option.
8353 (s390_option_override): Update call to s390_handle_arch_option.
8354 (s390_emit_prologue): Use %d format for s390_stack_size in
8355 diagnostic. Use %wd for HOST_WIDE_INT.
8356 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8357 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8358 * config/s390/s390.opt (config/s390/s390-opts.h): New
8359 HeaderInclude entry.
8360 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8361 s390_arch_flags, s390_warn_framesize): New Variable entries.
8362 (s390_arch_option): New Enum and EnumValue entries.
8363 (march=): Use Enum instead of Var.
8364 (mstack-guard=, mstack-size=): Use UInteger and Var.
8367 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8369 * config/score/score.c (score_handle_option): Don't assert that
8370 global structures are in use. Access target_flags via opts
8371 pointer. Use value of -march= option to determine target_flags
8373 * config/score/score.opt (march=): Use Enum.
8374 (score_arch): New Enum and EnumValue entries.
8376 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8378 * config/mep/mep.c (option_mtiny_specified): Remove.
8379 (mep_option_override): Move register handling for -mivc2 from
8380 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8381 instead of option_mtiny_specified.
8382 (mep_handle_option): Access target_flags via opts pointer. Don't
8383 assert that global structures are in use. Defer part of -mivc2
8384 handling and move it to mep_option_override.
8385 * config/mep/mep.opt (IVC2): New Mask entry.
8386 (mivc2): Use Var and Defer instead of Mask.
8388 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8390 * config/v850/v850-opts.h: New.
8391 * config/v850/v850.c (small_memory): Replace with
8392 small_memory_physical_max array. Make that array static const.
8393 (v850_handle_memory_option): Take integer value of argument. Take
8394 gcc_options pointer, option text and location. Return void.
8395 Update for changes to small memory structures.
8396 (v850_handle_option): Access target_flags via opts pointer. Don't
8397 assert that global structures are in use. Update calls to
8398 v850_handle_memory_option.
8399 (v850_encode_data_area): Update references to small memory settings.
8400 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8401 (enum small_memory_type): Move to v850-opts.h.
8402 * config/v850/v850.opt (config/v850/v850-opts.h): New
8403 HeaderInclude entry.
8404 (small_memory_max): New Variable entry.
8405 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8406 (mtda, mzda): Likewise.
8408 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8410 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8411 pointer. Don't assert that global structures are in use.
8413 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8415 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8416 via opts pointer. Don't assert that global structures are in use.
8418 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8420 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8421 (munix=93): Use Var.
8422 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8423 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8424 * config/pa/pa-opts.h: New.
8425 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8426 (pa_handle_option): Don't assert that global structures are in
8427 use. Access target_flags via opts pointer. Don't handle
8428 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8430 (pa_option_override): Handle deferred OPT_mfixed_range_.
8432 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8434 * config/mn10300/mn10300-opts.h: New.
8435 * config/mn10300/mn10300.c (mn10300_processor,
8436 mn10300_tune_string): Remove.
8437 (mn10300_handle_option): Don't assert that global structures are
8438 in use. Access mn10300_processor via opts pointer. Don't handle
8440 * config/mn10300/mn10300.h (enum processor_type): Move to
8442 (mn10300_processor): Remove.
8443 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8444 HeaderInclude entry.
8445 (mn10300_processor): New Variable entry.
8448 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8450 * config/microblaze/microblaze.c: Don't include opts.h.
8451 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8452 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8453 (mno-clearbss): Use Var and Warn.
8455 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8457 * config/m32r/m32r-opts.h: New.
8458 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8459 (m32r_handle_option): Don't assert that global structures are in
8460 use. Access target_flags and m32r_cache_flush_func via opts
8461 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8462 OPT_mno_flush_trap here.
8463 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8464 include of m32r-opts.h.
8465 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8466 HeaderInclude entry.
8467 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8468 (mmodel=): Use Enum and Var.
8469 (m32r_model): New Enum and EnumValue entries.
8470 (mno-flush-trap): Use Var.
8471 (msdata=): Use Enum and Var.
8472 (m32r_sdata): New Enum and EnumValue entries.
8474 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8476 * config/m32c/m32c.c: Don't include opts.h.
8477 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8478 m32c_handle_option): Remove.
8479 (m32c_option_override): Check global_options_set.x_target_memregs
8480 instead of target_memregs_set.
8481 * config/m32c/m32c.h (target_memregs): Remove.
8482 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8485 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8487 * config/iq2000/iq2000-opts.h: New.
8488 * config/iq2000/iq2000.c: Don't include opts.h.
8489 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8490 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8491 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8492 HeaderInclude entry.
8493 (iq2000_tune): New Variable entry.
8494 (march=): Add comment. Use Enum.
8495 (iq2000_arch): New Enum and EnumValue entries.
8496 (mcpu=): Use Enum and Var.
8497 (iq2000_tune): New Enum and EnumValue entries.
8499 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8501 * config/ia64/ia64-opts.h: New.
8502 * config/ia64/ia64.c (ia64_tune): Remove.
8503 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8505 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8506 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8507 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8508 HeaderInclude entry.
8509 (ia64_tune): New Variable entry.
8510 (mfixed-range=): Use Defer and Var.
8511 (mtune=): Use Enum and Var.
8512 (ia64_tune): New Enum and EnumValue entries.
8514 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8516 * config/frv/frv-opts.h: New.
8517 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8519 (frv_cpu_type): Remove.
8520 * config/frv/frv.c: Don't include opts.h.
8521 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8522 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8523 (frv_cpu_type): New Variable entry.
8524 (frv_cpu): New Enum and EnumValue entries.
8526 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8528 * config/cris/cris.c (cris_handle_option): Access target_flags via
8529 opts pointer. Don't assert that global structures are in use.
8530 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8531 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8533 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8535 * config/bfin/bfin-opts.h: New.
8536 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8537 bfin_si_revision, bfin_workarounds): Remove.
8538 (bfin_cpus): Make static const.
8539 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8540 not bfin_lib_id_given.
8541 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8542 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8543 pointer. Use error_at. Don't assert that global structures are in use.
8544 * config/bfin/bfin.h: Include bfin-opts.h.
8545 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8546 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8547 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8548 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8551 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8553 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8554 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8555 or -msoft-float here.
8556 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8557 -msoft-float and -mhard-float.
8558 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8559 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8561 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8563 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8564 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8566 (LIBGCC_SPEC): Don't handle -msoft-float.
8567 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8569 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8571 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8572 -mfloat-abi=*, not -msoft-float and -mhard-float.
8573 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8575 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8576 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8577 mhard-float and msoft-float.
8578 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8579 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8580 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8581 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8583 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8584 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8586 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8588 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8591 2011-03-22 Richard Henderson <rth@redhat.com>
8593 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8594 TARGET_ABI_WINDOWS_NT.
8595 (alpha_output_function_end_prologue): Likewise.
8596 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8597 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8598 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8599 (trap, *movsi_nt_vms): Likewise.
8600 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8601 (*tablejump_osf_nt_internal): Remove.
8602 * config/alpha/predicates.md (input_operand): Only test Pmode.
8604 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8606 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8607 via opts pointer. Use error_at. Don't assert that global
8608 structures are in use.
8610 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8612 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8613 (ix86_handle_option): Access ix86_isa_flags and
8614 ix86_isa_flags_explicit via opts pointer. Don't assert that
8615 global structures are in use.
8616 (ix86_function_specific_save, ix86_function_specific_restore):
8617 Update ix86_isa_flags_explicit field name.
8618 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8619 (ix86_isa_flags_explicit): Rename TargetSave entry to
8620 x_ix86_isa_flags_explicit.
8622 2011-03-22 Richard Henderson <rth@redhat.com>
8624 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8625 (alpha_option_override, direct_return): Likewise.
8626 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8627 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8628 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8629 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8630 (alpha_expand_epilogue, alpha_end_function): Likewise.
8631 (alpha_init_libfuncs): Likewise.
8632 (struct machine_function): Remove unicosmk members.
8633 (print_operand) ['t']: Remove.
8634 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8635 unicosmk_output_module_name, unicosmk_output_common,
8636 current_section_align, unicosmk_output_text_section_asm_op,
8637 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8638 unicosmk_section_type_flags, unicosmk_unique_section,
8639 unicosmk_asm_named_section, unicosmk_insert_attributes,
8640 unicosmk_output_align, unicosmk_defer_case_vector,
8641 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8642 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8643 unicosmk_output_ssib, unicosmk_add_call_info_word,
8644 unicosmk_extern_head, unicosmk_output_default_externs,
8645 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8646 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8647 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8648 * config/alpha/alpha-protos.h: Update.
8649 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8650 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8651 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8652 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8653 (*mulsi_se, mulvsi3): Likewise.
8654 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8655 (*divmodsi_internal, call, call_value, realign): Likewise.
8656 (moddi3, umoddi3): Likewise; remove duplicate expander.
8657 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8658 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8659 (*movdi_nofix): Remove r/U alternative.
8660 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8661 * config/alpha/constraints.md ("U"): Remove.
8662 * config/alpha/predicates.md (call_operand"): Don't test
8663 TARGET_ABI_UNICOSMK.
8665 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8667 * target.def (handle_option): Take gcc_options and
8668 cl_decoded_option pointers and location_t.
8669 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8670 * doc/tm.texi: Regenerate.
8671 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8672 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8673 * lto-opts.c (lto_reissue_options): Generate option structure for
8674 targetm.handle_option call.
8675 * opts.c (target_handle_option): Update call to
8676 targetm.handle_option. Remove assertions about values now passed
8678 * targhooks.c (default_target_handle_option): New.
8679 * targhooks.h (default_target_handle_option): Declare.
8680 * config/alpha/alpha.c: Include opts.h.
8681 (alpha_handle_option): Update to new hook interface.
8682 * config/arm/arm.c: Include opts.h.
8683 (arm_handle_option): Update to new hook interface.
8684 * config/arm/t-arm (arm.o): Update dependencies.
8685 * config/bfin/bfin.c: Include opts.h.
8686 (bfin_handle_option): Update to new hook interface.
8687 * config/cris/cris.c: Include opts.h.
8688 (cris_handle_option): Update to new hook interface.
8689 * config/frv/frv.c: Include opts.h.
8690 (frv_handle_option): Update to new hook interface.
8691 * config/i386/i386.c: Include opts.h.
8692 (ix86_handle_option): Update to new hook interface.
8693 (ix86_valid_target_attribute_inner_p): Generate option structure
8694 for call to ix86_handle_option.
8695 * config/i386/t-i386 (i386.o): Update dependencies.
8696 * config/ia64/ia64.c: Include opts.h.
8697 (ia64_handle_option): Update to new hook interface.
8698 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8699 * config/iq2000/iq2000.c: Include opts.h.
8700 (iq2000_handle_option): Update to new hook interface.
8701 * config/m32c/m32c.c: Include opts.h.
8702 (m32c_handle_option): Update to new hook interface.
8703 * config/m32r/m32r.c: Include opts.h.
8704 (m32r_handle_option): Update to new hook interface.
8705 * config/m68k/m68k.c: Include opts.h.
8706 (m68k_handle_option): Update to new hook interface.
8707 * config/mep/mep.c: Include opts.h.
8708 (mep_handle_option): Update to new hook interface.
8709 * config/microblaze/microblaze.c: Include opts.h.
8710 (microblaze_handle_option): Update to new hook interface.
8711 * config/mips/mips.c: Include opts.h.
8712 (mips_handle_option): Update to new hook interface.
8713 * config/mn10300/mn10300.c: Include opts.h.
8714 (mn10300_handle_option): Update to new hook interface.
8715 * config/pa/pa.c: Include opts.h.
8716 (pa_handle_option): Update to new hook interface.
8717 * config/pdp11/pdp11.c: Include opts.h.
8718 (pdp11_handle_option): Update to new hook interface.
8719 * config/rs6000/rs6000.c: Include opts.h.
8720 (rs6000_handle_option): Update to new hook interface.
8721 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8722 * config/rx/rx.c: Include opts.h.
8723 (rx_handle_option): Update to new hook interface.
8724 * config/s390/s390.c: Include opts.h.
8725 (s390_handle_option): Update to new hook interface.
8726 * config/score/score.c: Include opts.h.
8727 (score_handle_option): Update to new hook interface.
8728 * config/sh/sh.c: Include opts.h.
8729 (sh_handle_option): Update to new hook interface.
8730 * config/sparc/sparc.c: Include opts.h.
8731 (sparc_handle_option): Update to new hook interface.
8732 * config/v850/v850.c: Include opts.h.
8733 (v850_handle_option): Update to new hook interface.
8735 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8737 * gcc.c (driver_unknown_option_callback): Only permit and save
8738 unknown -Wno- options.
8739 (driver_wrong_lang_callback): Save options directly instead of via
8740 driver_unknown_option_callback.
8742 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8744 * combine.c (simplify_set): Try harder to find the best CC mode when
8745 simplifying a nested COMPARE on the RHS.
8747 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8749 * config/alpha/gnu.h: Remove.
8750 * config/arc: Remove directory.
8751 * config/arm/netbsd.h: Remove.
8752 * config/arm/t-pe: Remove.
8753 * config/crx: Remove directory.
8754 * config/i386/netbsd.h: Remove.
8755 * config/m68hc11: Remove directory.
8756 * config/m68k/uclinux-oldabi.h: Remove.
8757 * config/mcore/mcore-pe.h: Remove.
8758 * config/mcore/t-mcore-pe: Remove.
8759 * config/netbsd-aout.h: Remove.
8760 * config/rs6000/gnu.h: Remove.
8761 * config/sh/sh-symbian.h: Remove.
8762 * config/sh/symbian-base.c: Remove.
8763 * config/sh/symbian-c.c: Remove.
8764 * config/sh/symbian-cxx.c: Remove.
8765 * config/sh/symbian-post.h: Remove.
8766 * config/sh/symbian-pre.h: Remove.
8767 * config/sh/t-symbian: Remove.
8768 * config/svr3.h: Remove.
8769 * config/vax/netbsd.h: Remove.
8770 * config.build: Don't handle i[34567]86-*-pe.
8771 * config.gcc: Remove handling of deprecations for most deprecated
8773 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8774 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8775 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8776 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8777 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8778 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8780 * config.host: Don't handle i[34567]86-*-pe.
8781 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8782 (ASM_SPEC32): Don't handle -mcall-gnu.
8783 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8785 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8786 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8787 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8788 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8789 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8790 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8791 conditional on SYMBIAN.
8792 * configure.ac: Don't handle powerpc*-*-gnu*.
8793 * configure: Regenerate.
8794 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8795 * doc/install-old.texi (m6811, m6812): Don't mention.
8796 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8797 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8798 (m68k-uclinuxoldabi): Don't mention.
8799 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8801 (-mcall-gnu): Remove.
8802 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8803 families): Remove constraint documentation.
8805 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8807 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8808 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8809 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8811 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8814 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8815 vector when peeking at the next token for vector, don't expand the
8818 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8820 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8821 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8822 * config/avr/avr.c (init_cumulative_args)
8823 (avr_function_arg_advance): Use it.
8824 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8826 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8827 (avr_function_ok_for_sibcall): ...this new function.
8828 (avr_lookup_function_attribute1): New static Function.
8829 (avr_naked_function_p, interrupt_function_p)
8830 (signal_function_p, avr_OS_task_function_p)
8831 (avr_OS_main_function_p): Use it.
8832 * config/avr/avr.md ("sibcall", "sibcall_value")
8833 ("sibcall_epilogue"): New expander.
8834 ("*call_insn", "*call_value_insn"): New insn.
8835 ("call_insn", "call_value_insn"): Remove
8836 ("call", "call_value", "epilogue"): Change expander to handle
8839 2011-03-21 Nick Clifton <nickc@redhat.com>
8841 * doc/invoke.texi (Overall Options): Move closing brace to end of
8843 (Optimization Options): Add missing @gol.
8844 (Directory Options): Likewise.
8845 (i386 and x86-64 Options): Likewise.
8846 (RS6000 and PowerPC Options): Likewise.
8847 (i386 and x86-64 Windows Options): Likewise.
8848 (V850 Options): Add text missing from descriptions.
8850 2011-03-22 Richard Henderson <rth@redhat.com>
8852 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8853 (avr_incoming_return_addr_rtx): New.
8854 (emit_push_byte): New.
8855 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8856 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8857 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8858 (emit_pop_byte): New.
8859 (expand_epilogue): Use it. Pop frame pointer by bytes.
8860 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8861 (INCOMING_RETURN_ADDR_RTX): New.
8862 (INCOMING_FRAME_SP_OFFSET): New.
8863 (ARG_POINTER_CFA_OFFSET): New.
8864 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8865 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8868 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8870 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8872 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8873 (FUNCTION_ARG_ADVANCE): Likewise.
8874 * tm.texi.in: Change references to them to hook references.
8875 * tm.texi: Regenerate.
8876 * targhooks.c (default_function_arg): Eliminate check for target
8878 (default_function_incoming_arg): Likewise.
8879 (default_function_arg_advance): Likewise.
8880 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8881 (function_arg_advance): Likewise.
8882 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8884 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8886 * tree.c (build_call_1): New function.
8887 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8889 2011-03-22 Richard Guenther <rguenther@suse.de>
8891 PR tree-optimization/48228
8892 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8893 for single-arg PHIs.
8895 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8897 PR rtl-optimization/48143
8898 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8899 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8900 sse2_cvtps2pd): Likewise.
8902 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8904 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8906 2011-03-22 Richard Guenther <rguenther@suse.de>
8908 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8909 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8910 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8911 and REALIGN_LOAD_EXPR.
8912 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8913 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8914 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8915 DOT_PROD_EXPR case ...
8916 (expand_expr_real_2): ... here.
8917 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8918 and REALIGN_LOAD_EXPR.
8919 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8920 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8921 (vect_create_epilog_for_reduction): Likewise.
8922 (vectorizable_reduction): Likewise.
8923 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8924 * tree-vect-stmts.c (vectorizable_load): Likewise.
8926 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8928 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8930 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8932 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8933 handling for PLTOFF/GOTOFF.
8935 2011-03-22 Nick Clifton <nickc@redhat.com>
8937 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8938 trailing backslash from the end of the macro definition.
8940 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8942 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8945 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8947 * expr.h (prepare_operand): Move to...
8948 * optabs.h (prepare_operand): ...here and change the insn code
8949 parameter from "int" to "enum insn_code".
8950 (insn_operand_matches): Declare.
8951 * expr.c (init_expr_target): Use insn_operand_matches.
8952 (compress_float_constant): Likewise.
8953 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8954 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8955 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8956 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8958 (gen_cond_trap): Likewise.
8959 (prepare_operand): Likewise. Change icode to an insn_code.
8960 (insn_operand_matches): New function.
8961 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8962 * reload1.c (gen_reload): Likewise.
8963 * targhooks.c (default_secondary_reload): Likewise.
8965 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8967 * config/alpha/alpha.md (unspec): New define_c_enum.
8970 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8973 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8974 between a call and its CALL_ARG_LOCATION note.
8976 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8978 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8980 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8984 * c-common.c (shorten_compare): If primopN is first sign-extended
8985 to opN and then zero-extended to result type, set primopN to opN.
8987 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8989 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8990 for barrier handlers.
8992 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8994 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8995 UNSPEC constants to be in the unspec enumeration, and redefine
8996 all UNSPECV constants to be in the unspecv enumeration, so that
8997 dumps print which unspec/unspec_volatile this is.
8998 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8999 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9000 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9001 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9002 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9004 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9005 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9006 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9007 * config/rs6000/sync.md (isync, lwsync): Ditto.
9009 2011-03-21 Richard Guenther <rguenther@suse.de>
9011 * params.def (lto-min-partition): Fix typo.
9013 2011-03-21 Richard Guenther <rguenther@suse.de>
9016 * c-decl.c (grokdeclarator): Drop to the main variant only
9017 for array types. Drop flag_gen_aux_info check.
9019 2011-03-21 Richard Guenther <rguenther@suse.de>
9021 PR translation/47911
9022 * params.def (lto-partitions): Fix typo.
9023 (lto-min-partition): Fix wording.
9025 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9027 * config/rs6000/t-freebsd: Remove duplication from file.
9029 2011-03-21 Richard Guenther <rguenther@suse.de>
9032 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9034 2011-03-21 Richard Guenther <rguenther@suse.de>
9037 * params.def (lto-partitions): Require at least 1 partition.
9039 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9041 * gthr-solaris.h: Remove.
9042 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9043 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9044 (LIB_SPEC): Likewise.
9045 * config/sol2.opt (threads): Remove.
9046 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9047 (sparc*-*-solaris2*): Likewise.
9048 * configure.ac (enable_threads): Enable solaris support.
9049 * configure: Regenerate.
9050 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9051 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9054 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9056 * config.gcc: Obsolete *-*-solaris2.8*.
9057 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9059 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9062 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9063 reference. Solaris 8 perl works.
9065 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9068 * doc/install.texi (Prerequisites): Move jar etc. up.
9069 Explain support library version requirements.
9071 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9074 * doc/install.texi (Prerequisites): Move Perl to build
9075 requirements. Always necessary on Solaris 2 with Sun ld.
9077 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9079 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9081 (Specific, i?86-*-solaris2.[89]): Likewise.
9082 (Specific, i?86-*-solaris2.10): Likewise.
9083 (Specific, mips-sgi-irix6): Likewise.
9084 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9085 Update for binutils 2.21.
9087 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9089 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9090 Allow -fuse-linker-plugin for non-default plugin linker.
9091 * configure: Regenerate.
9093 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9096 * gengtype.c (files_rules): Added rule for cp/parser.h.
9098 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9101 * config/s390/s390.c (s390_delegitimize_address): Don't call
9102 lowpart_subreg if orig_x has BLKmode.
9104 2011-03-21 Kai Tietz <ktietz@redhat.com>
9107 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9108 * tree.h (attribute_spec): Add new member affects_type_identity.
9109 * attribs.c (empty_attribute_table): Adjust attribute_spec
9111 * config/alpha/alpha.c: Likewise.
9112 * config/arc/arc.c: Likewise.
9113 * config/arm/arm.c: Likewise.
9114 * config/avr/avr.c: Likewise.
9115 * config/bfin/bfin.c: Likewise.
9116 * config/crx/crx.c: Likewise.
9117 * config/darwin.h: Likewise.
9118 * config/h8300/h8300.c: Likewise.
9119 * config/i386/cygming.h: Likewise.
9120 * config/i386/i386.c: Likewise.
9121 * config/ia64/ia64.c: Likewise.
9122 * config/m32c/m32c.c: Likewise.
9123 * config/m32r/m32r.c: Likewise.
9124 * config/m68hc11/m68hc11.c: Likewise.
9125 * config/m68k/m68k.c: Likewise.
9126 * config/mcore/mcore.c: Likewise.
9127 * config/mep/mep.c: Likewise.
9128 * config/microblaze/microblaze.c: Likewise.
9129 * config/mips/mips.c: Likewise.
9130 * config/rs6000/rs6000.c: Likewise.
9131 * config/rx/rx.c: Likewise.
9132 * config/sh/sh.c: Likewise.
9133 * config/sol2.h: Likewise.
9134 * config/sparc/sparc.c: Likewise.
9135 * config/spu/spu.c: Likewise.
9136 * config/stormy16/stormy16.c: Likewise.
9137 * config/v850/v850.c: Likewise.
9139 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9141 * simplify-rtx.c (simplify_binary_operation_1): Handle
9142 (xor (and A B) C) case when B and C are both constants.
9144 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9146 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9148 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9151 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9153 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9155 PR rtl-optimization/48156
9156 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9157 assume df and df_lr are not NULL.
9159 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9162 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9163 between a call and its CALL_ARG_LOCATION note.
9165 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9168 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9169 between a call and its corresponding CALL_ARG_LOCATION note.
9171 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9173 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9174 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9175 * haifa-sched.c (setup_ref_regs): Ditto.
9176 * caller-save.c (add_used_regs_1): Ditto.
9177 * dse.c (look_for_hardregs): Ditto.
9178 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9179 * sched-rgn.c (check_live_1): Ditto.
9181 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9183 * c-decl.c (diagnose_mismatched_decls): Give an error for
9184 redefining a typedef with variably modified type.
9186 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9188 * c-decl.c (grokfield): Don't allow typedefs for structures or
9189 unions with no tag by default.
9190 * doc/extend.texi (Unnamed Fields): Update.
9192 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9194 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9195 Rewrite using indirect functions.
9196 (lwp_slwpcb): Ditto.
9197 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9198 (avx_vinsertf128<mode>): Ditto.
9200 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9202 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9205 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9207 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9208 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9210 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9212 PR rtl-optimization/48170
9213 * gcse.c (hoist_code): Remove bogus asserts.
9215 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9217 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9218 computation for prologue/epilogue.
9220 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9222 * Makefile.in (check-consistency): Remove.
9224 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9227 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9228 arange_table_in_use is 0, but either text_section_used or
9229 cold_text_section_used is true. Don't call it if
9230 !info_section_emitted.
9232 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9234 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9235 FUNCTION_VALUE_REGNO_P): Remove.
9236 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9238 * config/avr/avr.c (avr_ret_register): Make static inline.
9239 (avr_function_value_regno_p): New function.
9240 (avr_libcall_value): Make static. Add 'func' argument.
9241 (avr_function_value): Make static. Rename 'func' argument to
9242 'fn_decl_or_type', forward it to avr_libcall_value. Call
9243 avr_ret_register function instead of RET_REGISTER macro.
9244 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9246 2011-03-18 Jason Merrill <jason@redhat.com>
9249 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9251 2011-03-18 Richard Guenther <rguenther@suse.de>
9253 * doc/install.texi (--enable-gold): Remove.
9254 (--with-plugin-ld): Document.
9255 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9257 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9260 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9261 again after expansion changes.
9263 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9265 * combine.c (try_combine): Do simplification only call of
9266 subst() on i2 even when i1 is present. Update comments.
9268 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9270 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9271 and UNSPEC_PCREL_SYMOFF.
9273 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9275 * config/s390/s390.md: Use define_c_enum for the unspec constant
9278 2011-03-18 Richard Henderson <rth@redhat.com>
9279 Jakub Jelinek <jakub@redhat.com>
9282 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9283 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9285 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9288 * combine.c (cant_combine_insn_p): Don't check zero/sign
9289 extended hard registers.
9291 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9294 * combine.c (cant_combine_insn_p): Check zero/sign extended
9297 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9299 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9300 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9301 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9302 Change return type to bool.
9303 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9305 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9308 * var-tracking.c (prepare_call_arguments): If CALL target
9309 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9310 pc instead of looking it up using cselib_lookup and use
9311 Pmode for it if x has VOIDmode.
9312 * dwarf2out.c (gen_subprogram_die): If also both first and
9313 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9316 * function.c (assign_parms): For data.passed_pointer parms
9317 use MEM of data.entry_parm instead of data.entry_parm itself
9318 as DECL_INCOMING_RTL.
9319 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9320 also when passed and declared mode is the same, DECL_RTL
9321 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9324 2011-03-16 Jeff Law <law@redhat.com>
9326 PR rtl-optimization/37273
9327 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9328 handle them like argument loads from stack slots. Do not double
9329 count memory for memory constants and argument loads from stack slots.
9331 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9334 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9336 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9339 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9341 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9344 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9346 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9347 Clear call_arg_locations and call_arg_loc_last always.
9350 * var-tracking.c (prepare_call_arguments): If argument needs to be
9351 passed by reference, adjust argtype and mode.
9353 2011-03-17 Richard Guenther <rguenther@suse.de>
9356 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9357 a value make sure to fold the statement.
9359 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9362 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9363 return condition with !cfun->calls_alloca.
9365 2011-03-17 Richard Guenther <rguenther@suse.de>
9368 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9369 origin for decls in other ltrans units.
9370 (input_varpool_node): Likewise.
9372 2011-03-17 Richard Guenther <rguenther@suse.de>
9375 * tree-object-size.c (compute_object_offset): Properly return
9376 the offset operand of MEM_REFs as sizetype.
9378 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9380 PR rtl-optimization/48141
9381 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9382 * dse.c: Include params.h.
9383 (active_local_stores_len): New variable.
9384 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9386 (record_store, check_mem_read_rtx): Decrease it when removing
9388 (scan_insn): Likewise. Increase it when adding to chain, if it
9389 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9390 set active_local_stores to NULL before the addition.
9391 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9393 PR rtl-optimization/48141
9394 * dse.c (record_store): If no positions are needed in an insn
9395 that cannot be deleted, at least unchain it from active_local_stores.
9397 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9400 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9401 (lookup_type_die_strip_naming_typedef): ... here.
9402 (get_context_die): Use it.
9403 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9404 the anonymous struct named by the naming typedef.
9406 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9409 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9410 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9412 2011-03-16 Jeff Law <law@redhat.com>
9414 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9415 check for operands of conditional. Allow type to be a pointer.
9417 2011-03-16 Richard Guenther <rguenther@suse.de>
9419 PR tree-optimization/48149
9420 * fold-const.c (fold_binary_loc): Fold
9421 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9423 2011-03-16 Richard Guenther <rguenther@suse.de>
9425 PR tree-optimization/26134
9426 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9427 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9428 (non_rewritable_mem_ref_base): Handle complex type component
9429 accesses, constrain offsets for vector and complex extracts
9432 2011-03-16 Richard Guenther <rguenther@suse.de>
9434 PR tree-optimization/48146
9435 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9436 operands avoiding the need for renaming.
9438 2011-03-16 Richard Guenther <rguenther@suse.de>
9440 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9441 constant folding. Move MEM_REF canonicalization first.
9442 Rely on fold_const_aggregate_ref for initializer folding.
9443 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9445 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9448 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9449 arg0/arg1 or their arguments are always fold converted to matching
9452 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9455 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9458 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9459 Handle in-tree gold.
9460 (ld_vers): Extract binutils version for gold.
9461 (gcc_cv_ld_hidden): Handle gold here.
9462 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9463 * configure: Regenerate.
9464 * config.in: Regenerate.
9465 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9466 -fuse-linker-plugin otherwise.
9467 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9468 (LINK_COMMAND_SPEC): Use it.
9469 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9471 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9473 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9474 * calls.c: Remove debug.h include.
9475 (emit_call_1): Don't call virtual_call_token debug hook.
9476 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9477 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9478 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9479 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9480 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9481 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9482 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9483 dwarf2out_virtual_call): Remove.
9484 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9485 copy_call_info and virtual_call hooks.
9486 (dwarf2out_init): Don't initialize vcall_insn_table,
9487 debug_dcall_section and debug_vcall_section.
9488 (prune_unused_types): Don't mark nodes from dcall_table.
9489 (dwarf2out_finish): Don't output dcall or vcall tables.
9490 * final.c (final_scan_insn): Don't call direct_call or
9491 virtual_call debug hooks.
9492 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9493 virtual_call_token, copy_call_info and virtual_call hooks.
9494 (debug_nothing_uid): Remove prototype.
9495 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9496 copy_call_info and virtual_call hooks.
9497 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9498 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9499 * debug.c (do_nothing_debug_hooks): Likewise.
9500 (debug_nothing_uid): Remove.
9501 * doc/invoke.texi (-fenable-icf-debug): Remove.
9502 * common.opt (-fenable-icf-debug): Likewise.
9504 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9505 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9506 call's MEM. Handle functions returning aggregate through a hidden
9507 first pointer. For virtual calls add clobbered pc to call arguments
9509 * dwarf2out.c (gen_subprogram_die): Emit
9510 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9514 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9515 * rtl.h (ENTRY_VALUE_EXP): Define.
9516 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9517 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9518 * print-rtl.c (print_rtx): Likewise.
9519 * gengtype.c (adjust_field_rtx_def): Likewise.
9520 * var-tracking.c (vt_add_function_parameter): Adjust
9521 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9522 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9523 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9524 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9525 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9527 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9528 Call var_location debug hook even on CALL_INSNs.
9529 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9530 * rtl.def (ENTRY_VALUE): New.
9531 * dwarf2out.c: Include cfglayout.h.
9532 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9533 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9534 (struct call_arg_loc_node): New type.
9535 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9536 tail_call_site_count): New variables.
9537 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9538 DW_TAG_GNU_call_site_parameter.
9539 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9540 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9541 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9542 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9543 and DW_AT_GNU_all_source_call_sites.
9544 (mem_loc_descriptor): Handle ENTRY_VALUE.
9545 (add_src_coords_attributes): Don't add enything if
9546 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9547 (dwarf2out_abstract_function): Save and clear call_arg_location,
9548 call_site_count and tail_call_site_count around dwarf2out_decl call.
9549 (gen_call_site_die): New function.
9550 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9551 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9552 (dwarf2out_function_decl): Clear call_arg_locations,
9553 call_arg_loc_last, set call_site_count and tail_call_site_count
9554 to -1 and free block_map.
9555 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9556 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9557 followed by any real instructions.
9558 (dwarf2out_begin_function): Set call_site_count and
9559 tail_call_site_count to 0.
9560 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9561 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9562 attempt to force a DIE for it and worst case remove the attribute.
9563 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9564 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9566 * var-tracking.c: Include tm_p.h.
9567 (vt_stack_adjustments): For calls call note_register_arguments.
9568 (argument_reg_set): New variable.
9569 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9570 ensure the VALUE is resolved.
9571 (call_arguments): New variable.
9572 (prepare_call_arguments): New function.
9573 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9574 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9575 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9576 always use the best expression.
9577 (vt_expand_loc): Add ignore_cur_loc argument.
9578 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9579 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9580 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9582 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9583 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9584 argument. Don't call cselib_preserve_only_values and
9586 (note_register_arguments): New function.
9587 (vt_initialize): Compute argument_reg_set. Call
9588 vt_add_function_parameters before processing basic blocks instead of
9589 afterwards. For calls call prepare_call_arguments before calling
9590 cselib_process_insn.
9591 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9592 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9593 (var-tracking.o): Depend on $(TM_P_H).
9594 * cfglayout.h (insn_scope): New prototype.
9595 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9596 * cfglayout.c (insn_scope): No longer static.
9597 * insn-notes.def (CALL_ARG_LOCATION): New.
9598 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9599 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9600 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9601 nothing for DECL_EXTERNAL BLOCK_VARS.
9603 2011-03-16 Alan Modra <amodra@gmail.com>
9606 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9607 create invalid offset address for vsx splat insn.
9608 * config/rs6000/predicates.md (splat_input_operand): New.
9609 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9611 2011-03-15 Xinliang David Li <davidxl@google.com>
9614 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9615 (normalize_preds): New function.
9616 (is_use_properly_guarded): Normalize def predicates.
9618 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9621 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9622 in the output template.
9624 2011-03-15 Richard Guenther <rguenther@suse.de>
9627 * tree-pretty-print.c (dump_function_declaration): Properly
9628 dump unprototyped and varargs function types.
9630 2011-03-15 Richard Guenther <rguenther@suse.de>
9632 PR tree-optimization/13954
9633 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9636 2011-03-15 Richard Guenther <rguenther@suse.de>
9638 PR tree-optimization/48037
9639 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9640 selects into BIT_FIELD_REFs.
9641 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9644 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9646 PR tree-optimization/48129
9647 * builtins.c (fold_builtin_snprintf): Convert to type of
9648 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9649 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9651 2011-03-15 Richard Guenther <rguenther@suse.de>
9653 PR tree-optimization/41490
9654 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9655 value but with VUSE.
9656 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9658 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9659 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9660 * tree-tailcall.c (find_tail_calls): Ignore returns.
9662 2011-03-15 Richard Guenther <rguenther@suse.de>
9665 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9666 or variable-indexed array accesses when in gimple form.
9668 2011-03-15 Richard Guenther <rguenther@suse.de>
9670 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9672 2011-03-15 Alan Modra <amodra@gmail.com>
9675 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9676 presume symbol_refs without a symbol_ref_decl are suitably
9677 aligned, nor other trees we may see here. Handle anchor symbols.
9678 (legitimate_constant_pool_address_p): Comment. Add mode param.
9679 Check cmodel=medium addresses. Adjust all calls.
9680 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9681 creating cmodel=medium optimized access to locals.
9682 * config/rs6000/constraints.md (R): Pass QImode to
9683 legitimate_constant_pool_address_p.
9684 * config/rs6000/predicates.md (input_operand): Pass mode to
9685 legitimate_constant_pool_address_p.
9686 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9689 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9692 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9693 64-bit constants being loaded into registers other than GPRs such
9694 as loading 0 into a VSX register.
9696 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9698 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9700 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9703 * builtins.c (fold_builtin_snprintf): New function.
9704 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9705 (fold_builtin_4): Likewise.
9708 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9709 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9710 and C - X == X also strip nops from +/-/p+ operand.
9711 When optimizing -X == C, fold C to arg0's type.
9714 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9715 emit it as add_AT_int instead of add_AT_unsigned.
9717 2011-03-14 Tom Tromey <tromey@redhat.com>
9719 * unwind-dw2.c: Include sys/sdt.h if it exists.
9720 (_Unwind_DebugHook): Use STAP_PROBE2.
9721 * config.in, configure: Rebuild.
9722 * configure.ac: Check for sys/sdt.h.
9724 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9726 * config/i386/i386.md (ROUND_FLOOR): New constant.
9727 (ROUND_CEIL): Ditto.
9728 (ROUND_TRUNC): Ditto.
9729 (ROUND_MXCSR): Ditto.
9730 (ROUND_NO_EXC): Ditto.
9731 (rint<mode>2): Use new defines instead of numerical constants.
9732 (floor<mode>2): Ditto.
9733 (ceil<mode>2): Ditto.
9734 (btrunc<mode>2): Ditto.
9735 * config/i386/i386-builtin-types.def: Define ROUND function type
9737 * config/i386/i386.c (enum ix86_builtins): Add
9738 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9739 (struct builtin_description): Add
9740 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9741 (ix86_expand_sse_round): New static function.
9742 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9744 (ix86_builtin_vectorized_function): Handle
9745 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9747 2011-03-14 Tom Tromey <tromey@redhat.com>
9749 * c-parser.c (c_parser_asm_string_literal): Clear
9750 warn_overlength_strings.
9752 2011-03-14 Tom Tromey <tromey@redhat.com>
9754 * c-parser.c (disable_extension_diagnostics): Save
9755 warn_overlength_strings.
9756 (restore_extension_diagnostics): Restore warn_overlength_strings.
9758 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9760 * BASE-VER: Change to 4.7.0.
9762 2011-03-14 Richard Guenther <rguenther@suse.de>
9765 * tree.c (build_vector_from_val): Adjust assert to requirements
9768 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9771 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9773 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9775 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9776 terms of target_flags_explicit. Adjust copyright year.
9778 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9779 * config/rs6000/t-freebsd: New file. Add override for
9782 2011-03-13 Chris Demetriou <cgd@google.com>
9784 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9785 (-fno-diagnostics-show-option): this, to reflect current default.
9786 (-Werror=): Update text about -fno-diagnostics-show-option.
9788 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9791 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9792 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9793 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9794 mode is not V2DImode or V2DFmode.
9795 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9796 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9797 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9799 (movdi_internal64): Likewise.
9801 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9803 PR tree-optimization/47127
9804 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9806 (set_cloog_options): Same.
9807 (scop_to_clast): Same.
9808 (print_clast_stmt): Do not call cloog_state_malloc and
9810 (print_generated_program): Same.
9812 * graphite-clast-to-gimple.h (cloog_state): Declared.
9813 (scop_to_clast): Adjust declaration.
9814 * graphite.c (cloog_state): Defined here.
9815 (graphite_initialize): Call cloog_state_malloc.
9816 (graphite_finalize): Call cloog_state_free.
9818 2011-03-11 Jason Merrill <jason@redhat.com>
9820 * attribs.c (lookup_attribute_spec): Take const_tree.
9823 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9825 * config/sparc/sparc.c (sparc_option_override): Use
9826 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9828 2011-03-11 Richard Guenther <rguenther@suse.de>
9830 PR tree-optimization/48067
9831 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9832 multiplication result will be only used once on the target
9835 2011-03-11 Richard Guenther <rguenther@suse.de>
9837 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9839 2011-03-11 Richard Guenther <rguenther@suse.de>
9842 * tree.c (find_decls_types_r): Do not walk types only reachable
9843 from IDENTIFIER_NODEs.
9845 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9848 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9849 all vnode->force_output nodes as needed.
9851 2011-03-11 Jason Merrill <jason@redhat.com>
9854 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9855 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9857 2011-03-11 Martin Jambor <mjambor@suse.cz>
9859 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9862 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9864 PR tree-optimization/48063
9865 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9866 inline functions called once if !tree_can_inline_p (node->callers).
9868 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9870 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9872 * config/score/score3.c: Delete.
9873 * config/score/score3.h: Delete.
9874 * config/score/mul-div.S: Delete.
9875 * config/score/sfp-machine.h: Add new file.
9876 * config/score/constraints.md: Add new file.
9877 * config/score/t-score-softfp: Add new file.
9878 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9879 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9880 (score7_extra_constraint): Delete.
9881 (score7_option_override): Remove unused code.
9882 * config/score/score.c: Remove score3 and score5 define and code.
9883 * config/score/score.h: Remove score3 and score5 define and code.
9884 * config/score/score.md: Remove score3 template and unusual insn.
9885 * config/score/score.opt: Remove score3 and score5 options.
9887 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9889 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9890 when _HPUX_SOURCE is defined.
9891 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9893 2011-03-10 Jason Merrill <jason@redhat.com>
9896 * stor-layout.c (layout_type): Don't set structural equality
9897 on arrays of incomplete type.
9898 * tree.c (type_hash_eq): Handle comparing them properly.
9900 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9903 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9904 result mode matches original rtl mode.
9906 2011-03-10 Nick Clifton <nickc@redhat.com>
9908 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9909 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9911 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9913 PR rtl-optimization/47866
9914 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9915 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9916 if target wasn't scalar.
9917 * function.c (assign_stack_temp_for_type): Assert that neither
9918 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9919 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9921 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9923 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9925 * config/s390/s390-protos.h (s390_label_align): New prototype.
9926 * config/s390/s390.c (s390_label_align): New function.
9927 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9929 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9932 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9933 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9934 (output_vec_const_move): Ditto.
9936 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9938 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9939 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9940 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9941 Change 'rclass' argument and result type to reg_class_t.
9942 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9944 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9946 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9947 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9948 (TARGET_MEMORY_MOVE_COST): Define.
9949 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9951 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9954 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9957 PR tree-optimization/48022
9958 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9961 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9964 * var-tracking.c (find_use_val): Return NULL for
9965 cui->sets && cui->store_p BLKmode MEMs.
9967 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9969 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9971 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9972 xstormy16_print_operand_address): Remove.
9973 * config/stormy16/stormy16.c (xstormy16_print_operand,
9974 xstormy16_print_operand_address): Make static.
9975 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9977 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9980 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9981 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9984 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9987 * cfgloopmanip.c (fix_bb_placements): Return immediately
9988 if FROM is BASE_LOOP's header.
9990 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9992 * gimplify.c (gimplify_function_tree): Fix building calls
9993 to __builtin_return_address.
9995 2011-03-07 Alan Modra <amodra@gmail.com>
9997 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9998 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9999 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10000 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10002 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10003 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10004 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10005 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10006 * config/rs6000/rs6000.c
10007 (rs6000_elf_end_indicate_exec_stack): Rename to..
10008 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10009 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10010 (rs6000_file_start): ..here.
10011 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10012 file scope variables.
10013 (call_ABI_of_interest): New function.
10014 (init_cumulative_args): Set above vars when function return value
10015 is a float, vector, or small struct.
10016 (rs6000_function_arg_advance_1): Likewise for function args.
10017 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10018 references float args.
10020 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10022 * doc/cfg.texi: Remove "See" before @ref.
10023 * doc/invoke.texi: Likewise.
10025 2011-03-05 Jason Merrill <jason@redhat.com>
10027 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10029 2011-03-05 Anthony Green <green@moxielogic.com>
10031 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10033 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10035 PR rtl-optimization/47899
10036 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10037 to flow_loop_nested_p when moving the loop upward.
10039 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10042 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10044 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10046 PR tree-optimization/47967
10047 * ipa-cp.c (build_const_val): Return NULL instead of creating
10048 VIEW_CONVERT_EXPR for mismatching sizes.
10049 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10050 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10051 give up on versioning.
10053 2011-03-05 Alan Modra <amodra@gmail.com>
10056 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10057 full cmodel medium/large lo_sum + high addresses.
10059 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10061 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10062 pool references in UNSPEC_LTREL_OFFSET.
10064 2011-03-04 Jan Hubicka <jh@suse.cz>
10067 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10068 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10069 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10071 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10072 cgraph_add_thunk): Add node pointers.
10073 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10074 associated to right node.
10075 (input_node): Update use of cgraph_same_body_alias
10076 and cgraph_add_thunk.
10078 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10080 * config/i386/i386.opt (mprefer-avx128): New flag.
10081 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10082 modes when the flag -mprefer-avx128 is on.
10084 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10086 * dwarf2out.c (compare_loc_operands): Fix address handling.
10088 2011-03-04 Alan Modra <amodra@gmail.com>
10090 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10092 2011-03-04 Richard Guenther <rguenther@suse.de>
10094 PR middle-end/47968
10095 * expmed.c (extract_bit_field_1): Prefer vector modes that
10096 vec_extract patterns can handle.
10098 2011-03-04 Richard Guenther <rguenther@suse.de>
10100 PR middle-end/47975
10101 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10103 2011-03-04 Richard Henderson <rth@redhat.com>
10105 * explow.c (emit_stack_save): Remove 'after' parameter.
10106 (emit_stack_restore): Likewise.
10107 * expr.h: Update to match.
10108 * builtins.c, calls.c, stmt.c: Likewise.
10109 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10110 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10111 * function.c (expand_function_end): Insert the emit_stack_save
10112 sequence before parm_birth_insn instead of after.
10114 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10116 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10117 (ssse3_pmaddubsw128): Ditto.
10118 (ssse3_pmaddubsw): Ditto.
10120 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10122 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10124 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10127 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10128 on TYPE_SIZE_UNIT if it is a DECL.
10131 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10132 first operand is not is_gimple_mem_ref_addr, try to fold it.
10133 If the operand still isn't is_gimple_mem_ref_addr, clear
10136 2011-03-03 Richard Guenther <rguenther@suse.de>
10138 PR middle-end/47283
10139 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10141 (refs_may_alias_p_1): For release branches return true if
10142 we are confused by our input.
10144 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10146 * config/s390/s390.c (s390_function_value): Rename to ...
10147 (s390_function_and_libcall_value): ... this.
10148 (s390_function_value): New function.
10149 (s390_libcall_value): New function.
10150 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10151 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10152 target macro definitions.
10153 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10155 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10157 * config/i386/freebsd64.h (CC1_SPEC): Define.
10158 * config/i386/linux64.h (CC1_SPEC): Define.
10159 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10161 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10163 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10165 * config/stormy16/stormy16.c: Include reload.h.
10166 (xstormy16_memory_move_cost): New function.
10167 (TARGET_MEMORY_MOVE_COST): Define.
10169 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10171 PR rtl-optimization/47925
10172 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10173 with side effects. Remove the more-specific check for volatile asms.
10175 2011-03-02 Alan Modra <amodra@gmail.com>
10178 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10179 toc relative addresses for valid offsets.
10181 2011-03-01 Richard Guenther <rguenther@suse.de>
10183 PR tree-optimization/47890
10184 * tree-vect-loop.c (get_initial_def_for_induction): Set
10185 related stmt properly.
10187 2011-03-01 Richard Guenther <rguenther@suse.de>
10190 * lto-streamer.c (lto_record_common_node): Also register
10191 the canonical type.
10193 2011-03-01 Richard Guenther <rguenther@suse.de>
10196 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10197 Do not stream DECL_ABSTRACT_ORIGIN.
10198 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10199 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10200 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10201 Do not stream DECL_ABSTRACT_ORIGIN.
10202 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10203 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10205 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10207 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10208 FUNCTION_VALUE_REGNO_P): Remove.
10209 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10210 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10211 Add 'outgoing' argument.
10212 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10214 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10215 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10217 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10220 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10221 (lookup_filename): Likewise.
10222 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10224 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10225 Jakub Jelinek <jakub@redhat.com>
10227 PR middle-end/47893
10228 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10229 (assign_stack_local_1): Change last argument type to int.
10230 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10231 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10232 don't record padding space into frame_space_list nor use those areas.
10233 (assign_stack_local): Adjust caller.
10234 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10235 of assign_stack_local, pass 0 as last argument.
10236 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10239 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10242 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10243 Use target address_mode and pointer_mode hooks instead of hardcoded
10244 Pmode and ptr_mode. Handle some simple cases of extending if
10245 POINTERS_EXTEND_UNSIGNED < 0.
10246 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10247 Call convert_debug_memory_address.
10248 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10249 convert_debug_memory_address.
10251 PR middle-end/46790
10252 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10253 * configure: Regenerated.
10254 * config.in: Regenerated.
10255 * varasm.c (default_function_section): Return NULL
10256 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10258 2011-02-28 Martin Jambor <mjambor@suse.cz>
10260 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10261 the description to match the printed values.
10263 2011-02-28 Richard Guenther <rguenther@suse.de>
10265 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10266 of the copied scope tree.
10268 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10270 * doc/extend.texi (Function Attributes): Avoid deeply (and
10271 wrongly) nested tables.
10273 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10275 PR middle-end/47903
10276 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10277 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10278 r isn't op0 nor op1.
10280 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10282 * config/avr/avr.md: Remove magic comment for emacs.
10284 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10287 * config/avr/avr.c (avr_option_override): Use error on bad options.
10288 (avr_help): New function.
10289 (TARGET_HELP): Define.
10291 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10294 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10295 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10297 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10299 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10300 (ARM Options): Ditto.
10301 (i386 and x86-64 Options): Ditto.
10302 (RX Options): Ditto.
10303 (SPARC Options): Ditto.
10305 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10307 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10308 FreeBSD 6 and later. Generally use cpu generic.
10310 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10312 * doc/cpp.texi: Update copyright years.
10314 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10317 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10319 2011-02-25 Jon Beniston <jon@beniston.com>
10322 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10323 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10324 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10325 (lm32_block_move_inline): Add type cast to remove warning.
10326 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10327 (gen_int_relational): Move declarations to start of function.
10329 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10331 PR tree-optimization/45470
10332 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10333 can throw internally only.
10334 * tree-vect-stmts.c (vectorizable_call): Likewise.
10336 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10338 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10339 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10340 * config/stormy16/stormy16-protos.h
10341 (xstormy16_preferred_reload_class): Remove.
10342 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10343 static. Change 'rclass' argument and return type to reg_class_t.
10344 (TARGET_PREFERRED_RELOAD_CLASS,
10345 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10347 2011-02-24 Richard Guenther <rguenther@suse.de>
10349 * lto-streamer-in.c (input_bb): Do not find referenced vars
10350 in debug statements.
10352 2011-02-23 Jason Merrill <jason@redhat.com>
10354 * common.opt (fabi-version): Document v5 and v6.
10356 2011-02-23 Richard Guenther <rguenther@suse.de>
10358 PR tree-optimization/47849
10359 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10361 2011-02-23 Jie Zhang <jie@codesourcery.com>
10363 * opts-common.c (decode_cmdline_option): Print empty string
10364 argument as "" in decoded->orig_option_with_args_text.
10365 * gcc.c (execute): Print empty string argument as ""
10366 in the verbose output.
10367 (do_spec_1): Keep empty string argument.
10369 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10371 * config.gcc: Declare score-* and crx-* obsolete.
10373 2011-02-23 Jie Zhang <jie@codesourcery.com>
10375 PR rtl-optimization/47763
10376 * web.c (web_main): Ignore naked clobber when replacing register.
10378 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10380 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10383 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10386 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10388 2011-02-22 Mike Stump <mikestump@comcast.net>
10390 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10392 * configure: Regenerate.
10394 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10396 PR rtl-optimization/46002
10397 * ira-color.c (update_copy_costs): Change class intersection
10398 test to reg_class_contents[] test of 'hard_regno'.
10400 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10402 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10403 than Driver option.
10404 * config/hpux11.opt (mt): Likewise.
10405 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10406 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10407 * config/vax/elf.opt (mno-asm-pic): Likewise.
10408 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10410 2011-02-21 Mike Stump <mikestump@comcast.net>
10413 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10414 tree so we can get save the type.
10415 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10416 for CFString instead of trying to use past the end of the builtins.
10417 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10418 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10419 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10420 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10421 Rename to darwin_builtin_cfstring.
10422 (darwin_init_cfstring_builtins): Return the built type.
10424 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10427 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10428 (_mm256_insert_epi64): Use _mm_insert_epi64.
10430 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10432 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10433 * config/stormy16/stormy16-protos.h
10434 (xstormy16_mode_dependent_address_p): Remove.
10435 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10436 Make static. Change return type to bool. Change argument type to
10437 const_rtx. Remove dead code.
10438 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10440 2011-02-21 Richard Guenther <rguenther@suse.de>
10443 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10444 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10445 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10447 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10448 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10450 2011-02-20 Richard Guenther <rguenther@suse.de>
10453 * tree.c (free_lang_data_in_decl): Clean builtins from
10454 the TU decl BLOCK_VARS.
10456 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10460 * haifa-sched.c (fix_tick_ready): Skip tick computation
10463 2011-02-19 Richard Guenther <rguenther@suse.de>
10466 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10467 Remove lazy BLOCK_VARS streaming.
10468 (lto_input_ts_block_tree_pointers): Likewise.
10469 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10471 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10473 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10475 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10477 * config/i386/biarch32.h, config/i386/mach.h,
10478 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10480 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10483 * config/i386/i386.md (peephole2 for shift and plus): Use
10484 operands[1] original mode in the first insn.
10486 2011-02-18 Mike Stump <mikestump@comcast.net>
10488 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10490 2011-02-18 Jan Hubicka <jh@suse.cz>
10492 PR middle-end/47788
10493 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10494 to zero when the function is not inlinable at all.
10496 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10498 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10499 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10500 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10501 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10502 * config/pa/t-pa64: Likewise.
10503 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10505 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10508 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10510 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10513 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10515 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10517 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10518 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10519 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10520 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10521 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10522 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10523 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10524 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10525 m32r_legitimate_address_p): New functions.
10526 * config/m32r/constraints.md (constraint "S"): Don't use
10527 STORE_PREINC_PREDEC_P.
10528 (constraint "U"): Don't use LOAD_POSTINC_P.
10530 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10532 PR rtl-optimization/46178
10533 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10534 compute ira_hard_regno_cover_class[].
10536 2011-02-18 Richard Guenther <rguenther@suse.de>
10539 * lto-streamer.h (lto_global_var_decls): Declare.
10540 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10541 statics for global var processing.
10543 2011-02-18 Richard Guenther <rguenther@suse.de>
10545 PR tree-optimization/47737
10546 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10547 edge dominance check.
10549 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10552 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10553 avoid invalid rtx sharing.
10555 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10557 * doc/cpp.texi (Obsolete Features): Add background on the
10558 origin of assertions.
10560 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10562 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10564 * config/darwin.c (output_objc_section_asm_op): Added support for
10566 (is_objc_metadata): New.
10567 (darwin_objc2_section): New.
10568 (darwin_objc1_section): New.
10569 (machopic_select_section): Added support for ABI v1 and v2.
10570 (darwin_emit_objc_zeroed): New.
10571 (darwin_output_aligned_bss): Detect objc metadata and treat it
10573 (darwin_asm_output_aligned_decl_common): Same.
10574 (darwin_asm_output_aligned_decl_local): Same.
10575 * config/darwin-sections.def: Updated for ABI v1 and v2.
10576 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10577 compiling Objective-C code for the NeXT runtime, default to using
10578 ABI version 0 for 32-bit, and version 2 for 64-bit.
10580 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10582 * common.opt (optimize_fast): New Variable.
10583 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10584 instead of local variable ofast.
10586 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10588 * doc/invoke.texi (fobjc-abi-version): Documented.
10589 (fobjc-nilcheck): Documented.
10590 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10593 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10596 * common.opt (export-dynamic): New Driver option.
10597 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10599 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10601 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10603 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10604 Jan Hubicka <jh@suse.cz>
10608 * cfgexpand.c (account_used_vars_for_block): Remove.
10609 (estimated_stack_frame_size): Use referenced vars.
10610 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10611 that were referenced in the original function. Test src_fn
10612 rather than cfun. Drop redundant get_var_ann.
10613 (setup_one_parameter): Drop redundant get_var_ann.
10614 (declare_return_variable): Likewise.
10615 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10616 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10617 * ipa-inline.c (compute_inline_parameters): Do not compute
10618 disregard_inline_limits here.
10619 (compute_inlinable_for_current, pass_inlinable): New.
10620 (pass_inline_parameters): Require PROP_referenced_vars.
10621 * cgraphunit.c (cgraph_process_new_functions): Don't run
10622 compute_inline_parameters explicitly unless function is in SSA form.
10623 (cgraph_analyze_function): Set .disregard_inline_limits.
10624 * tree-sra.c (convert_callers): Compute inliner parameters
10625 only for functions already in SSA form.
10627 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10629 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10630 -mlittle-endian-data.
10632 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10634 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10635 -mno-fpu, not -fpu and -no-fpu.
10636 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10637 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10639 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10642 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10643 input reload with PLUS RTX.
10645 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10647 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10648 of InverseVar(MDMX).
10650 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10652 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10655 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10657 * config/mn10300/mn10300.opt (mno-crt0): New.
10659 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10661 * config/m68k/uclinux.opt (static-libc): New Driver option.
10663 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10665 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10667 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10669 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10670 %{muser-extend-enabled}.
10672 2011-02-16 Richard Guenther <rguenther@suse.de>
10674 PR tree-optimization/47738
10675 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10676 the TODO from tree_predictive_commoning.
10678 2011-02-15 Jeff Law <law@redhat.com>
10681 2011-01-25 Jeff Law <law@redhat.com>
10683 PR rtl-optimization/37273
10684 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10685 handle them like argument loads from stack slots. Do not double
10686 count memory for memory constants and argument loads from stack slots.
10688 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10690 PR middle-end/47725
10691 * combine.c (cant_combine_insn_p): Revert the last change.
10693 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10696 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10697 mode for vector constants. Remove code that checks for TImode.
10699 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10703 * cgraph.h (compute_inline_parameters): Return void.
10704 * ipa-inline.c (compute_inline_parameters): Adjust.
10706 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10710 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10712 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10713 * ipa-inline.c (compute_inline_parameters): Adjust.
10715 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10719 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10720 Adjust all users. Pass FN to...
10721 * tree-flow-inline.h (first_referenced_var): ... this. Add
10723 * ipa-struct-reorg.c: Adjust.
10724 * tree-dfa.c: Adjust.
10725 * tree-into-ssa.c: Adjust.
10726 * tree-sra.c: Adjust.
10727 * tree-ssa-alias.c: Adjust.
10728 * tree-ssa-live.c: Adjust.
10729 * tree-ssa.c: Adjust.
10730 * tree-ssanames.c: Adjust.
10731 * tree-tailcall.c: Adjust.
10733 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10737 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10738 Adjust all callers.
10739 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10740 * tree-flow-inline.h: Adjust.
10741 * gimple-pretty-print.c: Adjust.
10742 * tree-into-ssa.c: Adjust.
10743 * tree-ssa.c: Adjust.
10744 * cfgexpand.c: Adjust.
10746 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10748 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10749 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10750 (EXTRA_CONSTRAINT): Delete.
10751 * config/iq2000/constraints.md: New file.
10752 * config/iq2000/iq2000.md: Include it.
10753 (define_insn ""): Delete.
10754 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10755 unsupported constraint letters from patterns.
10756 (call_value, call_value_internal1): Likewise.
10757 (call_value_multiple_internal1): Likewise.
10759 2011-02-15 Nick Clifton <nickc@redhat.com>
10761 * config/mn10300/mn10300.c: Include tm-constrs.h.
10762 (struct liw_data): New data structure describing an LIW candidate
10764 (extract_bundle): Use struct liw_data. Allow small integer
10765 operands for some instructions.
10766 (check_liw_constraints): Use struct liw_data. Remove swapped
10767 parameter. Add comments describing the checks. Fix bug when
10768 assigning the source of liw1 to the source of liw2.
10769 (liw_candidate): Delete. Code moved into extract_bundle.
10770 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10772 * config/mn10300/predicates.md (liw_operand): New predicate.
10773 Allows registers and small integer constants.
10774 * config/mn10300/constraints.md (O): New constraint. Accetps
10775 integers in the range -8 to +7 inclusive.
10776 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10777 for moving a small integer into a register. Give this alternative
10779 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10780 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10781 using the J,K,L and M constraints,
10782 (liw): Remove SI mode on second operands to allow for HI and QI
10784 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10787 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10789 PR middle-end/47725
10790 * combine.c (cant_combine_insn_p): Check zero/sign extended
10793 2011-02-15 Richard Guenther <rguenther@suse.de>
10795 PR tree-optimization/47743
10796 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10797 for a non-type-compatible VN lookup bail out.
10799 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10801 * config/fr30/constraints.md: New file.
10802 * config/fr30/fr30.md: Include it.
10803 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10804 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10805 (EXTRA_CONSTRAINT): Delete.
10807 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10809 * config/frv/constraints.md: New file.
10810 * config/frv/predicates.md: Include it.
10811 * config/frv/frv.c (reg_class_from_letter): Delete.
10812 (frv_option_override): Don't initialize it.
10813 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10814 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10815 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10816 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10817 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10818 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10819 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10820 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10821 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10822 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10823 (REG_CLASS_FROM_CONSTRAINT): Delete.
10825 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10827 PR middle-end/47581
10828 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10829 if frame size is 0 in a leaf function.
10831 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10834 * config/alpha/host-osf.c: New file.
10835 * config/alpha/x-osf: New file.
10836 * config.host (alpha*-dec-osf*): Use it.
10838 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10840 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10841 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10842 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10843 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10845 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10847 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10849 * config/stormy16/constraints.md: New file.
10850 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10851 Use satisfies_constraint_Q and satisfies_constraint_R.
10852 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10854 (xstormy16_legitiamte_address_p): Declare.
10855 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10856 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10857 (EXTRA_CONSTRAINT): Delete.
10858 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10860 (xstormy16_extra_constraint_p): Delete.
10862 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10864 PR tree-optimization/46494
10865 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10866 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10867 (pass_rtl_loop_done): Add TODO_verify_flow.
10868 * fwprop.c (pass_rtl_fwprop): Likewise.
10869 * modulo-sched.c (pass_sms): Likewise.
10870 * tree-ssa-dom.c (pass_dominator): Likewise.
10871 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10872 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10873 (pass_tree_loop_done): Likewise.
10874 * tree-ssa-pre.c (execute_pre): Likewise.
10875 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10876 * tree-ssa-sink.c (pass_sink_code): Likewise.
10877 * tree-vrp.c (pass_vrp): Likewise.
10879 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10881 * config/v850/constraints.md: New file.
10882 * config/v850/v850.md: Include it.
10883 * config/v850/predicates.md (reg_or_0_operand): Use
10884 satisfies_constraint_G.
10885 (special_symbolref_operand): Use satisfies_constraint_K.
10886 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10887 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10888 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10889 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10890 (EXTRA_CONSTRAINT): Delete.
10891 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10892 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10893 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10895 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10898 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10901 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10903 * config/mcore/constraints.md: New file.
10904 * config/mcore/mcore.md: Include it.
10905 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10906 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10907 (REG_CLASS_FROM_LETTER): Delete.
10908 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10909 insn_const_int_ok_for_constraint.
10910 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10911 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10912 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10913 (EXTRA_CONSTRAINT): Delete.
10915 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10918 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10919 (IS_SIGHANDLER): Define.
10920 (sparc64_is_sighandler): New function, split off from
10921 sparc64_fallback_frame_state.
10922 (sparc_is_sighandler): New function, split off from
10923 sparc_fallback_frame_state.
10924 (sparc64_fallback_frame_state): Merge with ...
10925 (sparc_fallback_frame_state): ... this into ...
10926 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10927 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10928 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10929 stack instead of hardcoded offsets.
10931 2011-02-14 Andriy Gapon <avg@freebsd.org>
10934 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10936 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10938 * configure: Regenerate.
10940 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10943 * gcc.c (asm_options): Correct spec matching --target-help.
10945 2011-02-12 Martin Jambor <mjambor@suse.cz>
10947 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10948 to gimple call error.
10950 2011-02-12 Mike Stump <mikestump@comcast.net>
10952 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10953 comments in backslash regions.
10955 2011-02-12 Mike Stump <mikestump@comcast.net>
10956 Jakub Jelinek <jakub@redhat.com>
10957 Iain Sandoe <iains@gcc.gnu.org>
10960 * dwarf2out.c (output_cfa_loc): When required, apply the
10961 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10962 (output_loc_sequence): Likewise.
10963 (output_loc_operands_raw): Likewise.
10964 (output_loc_sequence_raw): Likewise.
10965 (output_cfa_loc): Likewise.
10966 (output_loc_list): Suppress register number adjustment when
10967 calling output_loc_sequence()
10968 (output_die): Likewise.
10970 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10972 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10974 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10975 xtensa_memory_move_cost): New functions.
10976 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10978 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10981 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10982 in the current directory.
10983 * configure: Rebuilt.
10985 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10987 * config/darwin.c (darwin_override_options): Add a hunk missed
10988 from the commit of r168571. Trim comment line lengths and
10989 correct indents of the preceding block.
10991 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10993 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10996 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10998 * common.opt (nostartfiles): New Driver option.
11000 2011-02-11 Xinliang David Li <davidxl@google.com>
11002 PR tree-optimization/47707
11003 * tree-chrec.c (convert_affine_scev): Keep type precision.
11005 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11007 PR tree-optimization/47420
11008 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11010 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11012 PR rtl-optimization/47614
11013 * rtl.h (check_for_inc_dec): Declare.
11014 * dse.c (check_for_inc_dec): Externalize...
11015 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11016 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11018 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11021 * gcc.c (main): Do not compile inputs if there were errors in
11023 * opts-common.c (read_cmdline_option): Check for wrong language
11024 after other error checks.
11026 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11028 * cgraph.c: Fix comment typos.
11029 * cgraph.h: Likewise.
11030 * cgraphunit.c: Likewise.
11031 * ipa-cp.c: Likewise.
11032 * ipa-inline.c: Likewise.
11033 * ipa-prop.c: Likewise.
11034 * ipa-pure-const.c: Likewise.
11035 * ipa-ref.c: Likewise.
11036 * ipa-reference.c: Likewise.
11038 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11041 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11043 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11046 * doc/sourcebuild.texi (Require Support): Document
11047 dg-require-ascii-locale.
11049 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11051 * doc/lto.texi (Write summary): Fix missing parentheses.
11053 2011-02-10 DJ Delorie <dj@redhat.com>
11055 * config/m32c/m32c.c (m32c_option_override): Disable
11056 -fcombine-stack-adjustments until flag value tracking and compare
11057 optimization can be rewritten.
11059 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11061 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11063 (PROCESSOR_DEFAULT64): Likewise.
11065 2011-02-10 Richard Henderson <rth@redhat.com>
11067 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11068 change from 2011-02-03.
11069 * config/rx/rx.c (flags_from_code): Likewise.
11070 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11071 is valid, n/pz otherwise.
11072 (rx_select_cc_mode): Return CCmode if Y is not zero.
11074 2011-02-10 Richard Guenther <rguenther@suse.de>
11076 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11078 2011-02-10 Richard Guenther <rguenther@suse.de>
11080 PR tree-optimization/47677
11081 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11083 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11086 * combine.c (make_compound_operation): Only change shifts into
11087 multiplication for SCALAR_INT_MODE_P.
11089 2011-02-10 Jie Zhang <jie@codesourcery.com>
11093 2011-02-05 Jie Zhang <jie@codesourcery.com>
11095 * web.c (entry_register): Don't clobber the number of the
11096 first uninitialized reference in used[].
11098 2011-02-09 Richard Guenther <rguenther@suse.de>
11100 PR tree-optimization/47664
11101 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11104 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11108 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11110 (PROCESSOR_DEFAULT64): Same.
11111 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11113 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11115 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11117 2011-02-09 Martin Jambor <mjambor@suse.cz>
11119 PR middle-end/45505
11120 * tree-sra.c (struct access): New flags grp_scalar_read and
11121 grp_scalar_write. Changed description of assignment read and write
11123 (dump_access): Dump new flags, reorder all of them.
11124 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11125 to detect multiple scalar reads.
11126 (analyze_access_subtree): Use the new scalar read write flags instead
11127 of the old flags. Adjusted comments.
11129 2011-02-08 DJ Delorie <dj@redhat.com>
11132 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11135 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11137 * config/m68k/uclinux.opt: New.
11138 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11140 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11142 * config/cris/elf.opt (sim): New Driver option.
11144 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11146 * config/xtensa/elf.opt: New.
11147 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11149 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11151 * config/vax/elf.opt: New.
11152 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11154 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11156 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11158 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11160 * config/gnu-user.opt: New.
11161 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11162 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11163 *-*-uclinux*): Use gnu-user.opt.
11165 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11167 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11168 * config/i386/gnu.h (CPP_SPEC): Likewise.
11170 2011-02-08 Ian Lance Taylor <iant@google.com>
11172 * common.opt (fcx-limited-range): Add SetByCombined flag.
11173 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11174 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11175 (fassociative-math, freciprocal-math): Likewise.
11176 (funsafe-math-optimizations): Likewise.
11177 * opth-gen.awk: Handle SetByCombined.
11178 * optc-gen.awk: Likewise.
11179 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11180 (set_unsafe_math_optimizations_flags): Likewise.
11181 * doc/options.texi (Option properties): Document SetByCombined.
11183 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11185 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11186 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11187 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11188 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11189 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11191 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11193 PR tree-optimization/46834
11194 PR tree-optimization/46994
11195 PR tree-optimization/46995
11196 * graphite-sese-to-poly.c (used_outside_reduction): New.
11197 (detect_commutative_reduction): Call used_outside_reduction.
11198 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11199 translate_scalar_reduction_to_array only when at least one
11200 loop-phi/close-phi tuple has been detected.
11202 2011-02-08 Richard Guenther <rguenther@suse.de>
11204 PR middle-end/47639
11205 * tree-vect-generic.c (expand_vector_operations_1): Update
11207 (expand_vector_operations): ... not here. Cleanup EH info
11208 and the CFG if required.
11210 2011-02-08 Richard Guenther <rguenther@suse.de>
11212 PR tree-optimization/47641
11213 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11214 require type compatibility.
11216 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11218 * gimple-low.c (lower_function_body): Don't remove the location of
11219 the return statement here.
11220 (lower_gimple_return): Do it here instead but only if the return
11221 statement is actually used twice.
11223 2011-02-08 Richard Guenther <rguenther@suse.de>
11225 PR tree-optimization/47632
11226 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11227 unused up_to_stmt parameter, return whether cfg-cleanup is
11228 necessary, remove EH info properly.
11229 (forward_propagate_into_gimple_cond): Adjust caller.
11230 (forward_propagate_into_cond): Likewise.
11231 (forward_propagate_comparison): Likewise.
11232 (tree_ssa_forward_propagate_single_use_vars): Make
11233 forward_propagate_comparison case similar to the two others.
11235 2011-02-08 Nick Clifton <nickc@redhat.com>
11237 * config/mn10300/mn10300.opt (mliw): New command line option.
11238 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11239 (liw_bundling): New automaton.
11240 (liw): New attribute.
11241 (liw_op): New attribute.
11242 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11243 (movsi_internal): Add LIW attributes.
11244 (andsi3): Likewise.
11245 (iorsi3): Likewise.
11246 (xorsi3): Likewise.
11247 (addsi3): Separate register and immediate alternatives.
11248 Add LIW attributes.
11249 (subsi3): Likewise.
11251 (aslsi3): Likewise.
11252 (lshrsi3): Likewise.
11253 (ashrsi3): Likewise.
11254 (liw): New pattern.
11255 * config/mn10300/mn10300.c (liw_op_names): New
11256 (mn10300_print_operand): Handle 'W' operand descriptor.
11257 (extract_bundle): New function.
11258 (check_liw_constraints): New function.
11259 (liw_candidate): New function.
11260 (mn10300_bundle_liw): New function.
11261 (mn10300_reorg): New function.
11262 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11263 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11264 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11265 __LIW__ or __NO_LIW__.
11266 * doc/invoke.texi: Describe the -mliw command line option.
11268 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11270 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11271 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11272 pthread_mutex_unlock): Remove.
11273 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11274 * config/pa/t-pa64: Likewise.
11275 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11276 shared libc if not linking against libpthread.
11277 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11279 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11282 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11283 on 10.6 and later to ensure that we always use the unwinder from
11284 the system. Only add -no_compact_unwind when tarteting darwin
11287 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11290 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11291 (vec_interleave_lowv2sf): Ditto.
11292 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11293 (vec_extract_oddv2sf): Ditto.
11295 2011-02-07 Mike Stump <mikestump@comcast.net>
11298 Add __ieee_divdc3 entry point.
11299 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11301 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11302 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11303 * config/darwin.c (darwin_rename_builtins): Add.
11304 * config/darwin-protos.h (darwin_rename_builtins): Add.
11306 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11309 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11312 2011-02-07 Mike Stump <mikestump@comcast.net>
11314 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11316 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11319 * config/avr/libgcc.S (exit): Move .endfunc
11321 2011-02-07 Richard Guenther <rguenther@suse.de>
11323 PR tree-optimization/47615
11324 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11325 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11326 (run_scc_vn): Initialize it.
11327 (visit_reference_op_load): Use it.
11328 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11330 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11332 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11333 DImode trapping arithmetic libfuncs.
11335 2011-02-07 Richard Guenther <rguenther@suse.de>
11337 PR tree-optimization/47621
11338 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11340 (execute_update_addresses_taken): ... here. Make it more
11341 conservative in what we accept.
11343 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11345 * config/sparc/freebsd.h (ASM_SPEC): Define.
11346 * config/sparc/vxworks.h (ASM_SPEC): Define.
11348 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11350 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11352 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11354 * doc/invoke.texi: Remove reference to compiler internals from
11355 user documentation.
11357 * reg-notes.def: Remove REG_VALUE_PROFILE.
11358 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11360 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11362 PR middle-end/47610
11363 * varasm.c (default_section_type_flags): If decl is NULL,
11364 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11366 2011-02-05 Jie Zhang <jie@codesourcery.com>
11369 * web.c (entry_register): Don't clobber the number of the
11370 first uninitialized reference in used[].
11372 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11374 PR tree-optimization/46194
11375 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11376 (build_classic_dist_vector_1): Do not represent classic distance
11377 vectors when the access functions are variating in different loops.
11379 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11381 * config/mips/iris6.opt: New.
11382 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11384 2011-02-04 Richard Henderson <rth@redhat.com>
11385 Steve Ellcey <sje@cup.hp.com>
11388 * config/ia64/predicates.md (mux1_brcst_element): New.
11389 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11390 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11391 (ia64_unpack_sign): New.
11392 (ia64_expand_unpack): Rewrite using new routines.
11393 (ia64_expand_widen_sum): Ditto.
11394 (ia64_expand_dot_prod_v8qi): Ditto.
11395 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11396 routines, add endian check.
11397 (pmpy2_even): Rename from pmpy2_r, add endian check.
11398 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11399 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11400 (vec_widen_smult_hi_v4hi): Ditto.
11401 (vec_widen_umult_lo_v4hi): Ditto.
11402 (vec_widen_umult_hi_v4hi): Ditto.
11403 (mulv2si3): Change endian checks.
11404 (sdot_prodv4hi): Rewrite with new calls.
11405 (udot_prodv4hi): New.
11406 (vec_pack_ssat_v4hi): Add endian check.
11407 (vec_pack_usat_v4hi): Ditto.
11408 (vec_pack_ssat_v2si): Ditto.
11409 (max1_even): Rename from max1_r, add endian check.
11410 (max1_odd): Rename from max1_l, add endian check.
11411 (*mux1_rev): Format change.
11412 (*mux1_mix): Ditto.
11413 (*mux1_shuf): Ditto.
11414 (*mux1_alt): Ditto.
11415 (*mux1_brcst_v8qi): Use new predicate.
11416 (vec_extract_evenv8qi): Remove endian check.
11417 (vec_extract_oddv8qi): Ditto.
11418 (vec_interleave_lowv4hi): Format change.
11419 (vec_interleave_highv4hi): Ditto.
11420 (mix2_even): Rename from mix2_r, add endian check.
11421 (mix2_odd): Rename from mux2_l, add endian check.
11422 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11423 (vec_extract_evenodd_helper): Format change.
11424 (vec_extract_evenv4hi): Remove endian check.
11425 (vec_extract_oddv4hi): Remove endian check.
11426 (vec_interleave_lowv2si): Format change.
11427 (vec_interleave_highv2si): Format change.
11428 (vec_initv2si): Remove endian check.
11429 (vecinit_v2si): Add endian check.
11430 (reduc_splus_v2sf): Add endian check.
11431 (reduc_smax_v2sf): Ditto.
11432 (reduc_smin_v2sf): Ditto.
11433 (vec_initv2sf): Remove endian check.
11434 (fpack): Add endian check.
11435 (fswap): Add endian check.
11436 (vec_interleave_highv2sf): Add endian check.
11437 (vec_interleave_lowv2sf): Add endian check.
11438 (fmix_lr): Add endian check.
11439 (vec_setv2sf): Format change.
11440 (*vec_extractv2sf_0_be): Use shift to extract operand.
11441 (*vec_extractv2sf_1_be): New.
11442 (vec_pack_trunc_v4hi): Add endian check.
11443 (vec_pack_trunc_v2si): Format change.
11445 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11447 PR inline-asm/23200
11448 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11449 do bb, locus and block comparison and disallow loads if it is not set.
11450 (stmt_is_replaceable_p): New function.
11451 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11453 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11454 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11456 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11458 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11460 * config/rs6000/xilinx.opt: New.
11461 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11463 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11465 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11467 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11469 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11470 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11471 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11472 secondary_reload_info, xtensa_secondary_reload): Remove.
11473 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11474 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11475 (xtensa_preferred_reload_class): Make static. Change return and
11476 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11477 Use CONST_DOUBLE_P predicate.
11478 (xtensa_preferred_output_reload_class): New function.
11479 (xtensa_secondary_reload): Make static.
11481 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11483 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11484 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11485 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11487 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11489 PR middle-end/31490
11490 * output.h (SECTION_RELRO): Define.
11491 (SECTION_MACH_DEP): Adjust.
11492 (get_variable_section): New prototype.
11493 * varpool.c (varpool_finalize_named_section_flags): New function.
11494 (varpool_assemble_pending_decls): Call it.
11495 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11496 * cgraphunit.c (cgraph_output_in_order): Call
11497 varpool_finalize_named_section_flags.
11498 * varasm.c (get_section): Allow section flags conflicts between
11499 relro and read-only sections if the section hasn't been declared yet.
11500 Set SECTION_OVERRIDE after diagnosing section type conflict.
11501 (get_variable_section): No longer static.
11502 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11503 readonly sections that need relocations.
11504 (decl_readonly_section_1): New function.
11505 (decl_readonly_section): Use it.
11508 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11509 Steve Ellcey <sje@cup.hp.com>
11511 PR middle-end/31490
11512 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11513 if section attribute used.
11515 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11517 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11518 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11519 (darwin_init_sections): Remove assertion.
11521 2011-02-03 Nick Clifton <nickc@redhat.com>
11523 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11525 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11526 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11527 instead of "n" and "pz".
11528 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11531 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11534 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11535 fma, expand FMA_EXPR as fma{,f,l} call.
11538 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11539 copy them into a unsigned char variable and pass address of it to
11540 lto_output_data_stream.
11543 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11544 around backend_init_target and lang_dependent_init_target calls.
11545 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11546 (verify_cgraph_node): Don't call set_cfun here. Use
11547 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11548 Set error_found for incorrectly represented calls to thunks.
11550 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11553 PR rtl-optimization/43494
11554 * rtl.h (for_each_inc_dec_fn): New type.
11555 (for_each_inc_dec): Declare.
11556 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11557 (for_each_inc_dec_find_inc_dec): New fn.
11558 (for_each_inc_dec_find_mem): New fn.
11559 (for_each_inc_dec): New fn.
11560 * dse.c (struct insn_size): Remove.
11561 (replace_inc_dec, replace_inc_dec_mem): Remove.
11562 (emit_inc_dec_insn_before): New fn.
11563 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11564 (canon_address): Pass mem modes to cselib_lookup.
11565 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11566 (cselib_lookup_from_insn): Likewise.
11567 (cselib_subst_to_values): Likewise.
11568 * cselib.c (find_slot_memmode): New var.
11569 (cselib_find_slot): New fn. Use it instead of
11570 htab_find_slot_with_hash everywhere.
11571 (entry_and_rtx_equal_p): Use find_slot_memmode.
11572 (autoinc_split): New fn.
11573 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11574 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11575 Deal with autoinc. Special-case recursion into MEMs.
11576 (cselib_hash_rtx): Likewise.
11577 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11578 address and MEM modes.
11579 (cselib_subst_to_values): Add memmode, pass it on.
11581 (cselib_lookup): Add memmode argument, pass it on.
11582 (cselib_lookup_from_insn): Add memmode.
11583 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11584 (struct cselib_record_autoinc_data): New.
11585 (cselib_record_autoinc_cb): New fn.
11586 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11587 mode to cselib_lookup. Reset autoinced REGs here instead of...
11588 (cselib_process_insn): ... here.
11589 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11591 (add_uses): Likewise, also to cselib_subst_to_values.
11592 (add_stores): Likewise.
11593 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11594 cselib_subst_to_values.
11595 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11596 * gcse.c (do_local_cprop): Adjusted.
11597 * postreload.c (reload_cse_simplify_set): Adjusted.
11598 (reload_cse_simplify_operands): Adjusted.
11599 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11601 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11603 PR tree-optimization/45122
11604 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11605 unsafe assumptions when there's more than one loop exit.
11607 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11610 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11611 Document using vector double with the load/store builtins, and
11612 that the load/store builtins always use Altivec instructions.
11614 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11615 to use altivec memory instructions, even on VSX.
11616 (vector_altivec_store_<mode>): Ditto.
11618 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11621 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11622 V2DF, V2DI support to load/store overloaded builtins.
11624 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11625 altivec load/store builtins for V2DF/V2DI types.
11627 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11628 set avoid indexed addresses on power6 if -maltivec.
11629 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11630 vector_altivec_load/vector_altivec_store builtins.
11631 (altivec_expand_st_builtin): Ditto.
11632 (altivec_expand_builtin): Add VSX memory builtins.
11633 (rs6000_init_builtins): Add V2DI types to internal types.
11634 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11635 load/store builtins.
11636 (rs6000_address_for_altivec): Insure memory address is appropriate
11639 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11640 vec_vsx_ld and vec_vsx_st.
11641 (vsx_store_<mode>): Ditto.
11643 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11644 variables to hold long long types for VSX vector memory builtins.
11645 (RS6000_BTI_unsigned_long_long): Ditto.
11646 (long_long_integer_type_internal_node): Ditti.
11647 (long_long_unsigned_type_internal_node): Ditti.
11649 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11650 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11651 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11653 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11655 (vec_vsx_st): Ditto.
11657 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11659 * config/pa/pa-hpux10.opt: New.
11660 * config/hpux11.opt (pthread): New Driver option.
11661 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11662 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11664 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11666 * config/ia64/vms.opt: New.
11667 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11669 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11672 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11673 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11674 generator functions.
11675 (vsx_floatuns<VSi><mode>2): Ditto.
11676 (vsx_fix_trunc<mode><VSi>2): Ditto.
11677 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11679 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11681 * config/i386/djgpp.opt (posix): New Driver option.
11683 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11685 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11686 Move to the unsupported targets list.
11688 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11690 PR rtl-optimization/47525
11691 * df-scan.c: Update copyright years.
11692 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11693 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11695 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11697 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11698 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11699 (ASM_OUTPUT_ASCII): Remove.
11700 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11702 2011-02-02 Jeff Law <law@redhat.com>
11704 PR middle-end/47543
11705 * reload.c (find_reloads_address): Handle reg+d address where both
11706 components are invalid by reloading the entire address.
11708 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11709 Richard Guenther <rguenther@suse.de>
11711 PR tree-optimization/40979
11713 * passes.c (init_optimization_passes): After LIM call copy_prop
11714 and DCE to clean up.
11715 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11717 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11719 PR tree-optimization/47576
11720 PR tree-optimization/47555
11721 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11722 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11723 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11724 * tree-scalar-evolution.c (follow_ssa_edge): Use
11725 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11727 2011-02-02 Richard Guenther <rguenther@suse.de>
11729 PR tree-optimization/47566
11730 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11732 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11736 * tree-inline.c (declare_return_variable): Remove unused caller
11741 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11742 * cfgexpand.c (account_used_vars_for_block): Use them.
11743 * tree-nrv.c (tree_nrv): Likewise.
11744 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11745 (dump_scope_block): Likewise.
11746 (remove_unused_locals): Likewise.
11750 * tree-inline.c (declare_return_variable): Add result decl to
11751 local decls only once.
11752 * gimple-low.c (record_vars_into): Mark newly-created variables
11755 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11761 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11763 (no_real_insns_p, schedule_block, set_priorities): Drop special
11764 treatment of boundary debug insns.
11765 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11766 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11767 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11768 (BOUNDARY_DEBUG_INSN_P): Likewise.
11769 (SCHEDULE_DEBUG_INSN_P): Likewise.
11770 * sched-rgn.c (init_ready_list): Drop special treatment of
11771 boundary debug insns.
11772 * final.c (rest_of_clean_state): Clear notes' BB.
11774 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11776 * config/openbsd.opt (assert=): New Driver option.
11778 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11780 * config/i386/nto.opt: New.
11781 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11783 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11785 * config/i386/netware.opt: New.
11786 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11788 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11790 * config/interix.opt (posix): New Driver option.
11792 2011-02-01 DJ Delorie <dj@redhat.com>
11794 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11796 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11799 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11801 PR tree-optimization/47561
11802 * toplev.c (process_options): Print the Graphite flags. Add
11803 flag_loop_flatten to the list of options requiring Graphite.
11805 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11807 * config/i386/cygming.opt (posix): New Driver option.
11809 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11811 * config/arm/vxworks.opt: New.
11812 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11814 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11816 * config/alpha/elf.opt: New.
11817 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11818 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11820 2011-02-01 Richard Guenther <rguenther@suse.de>
11822 PR tree-optimization/47559
11823 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11824 store-motion on references that can throw.
11826 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11828 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11829 * tree-pass.h (TDF_CSELIB): New macro.
11830 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11831 cselib_lookup): Check for it rather than for TDF_DETAILS.
11833 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11836 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11837 is HOST_BIT_BUCKET.
11839 * opts.c (finish_options): Don't add x_aux_base_name if it is
11842 2011-02-01 Richard Guenther <rguenther@suse.de>
11844 PR tree-optimization/47555
11846 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11848 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11850 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11853 * config/lm32/t-lm32: Add multilib for all CPU options.
11855 2011-02-01 Richard Guenther <rguenther@suse.de>
11857 PR tree-optimization/47541
11858 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11859 sure to have a field at offset zero.
11861 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11863 * config/arc/arc.opt (EB, EL): New Driver options.
11865 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11867 * config/alpha/osf5.opt: New.
11868 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11870 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11872 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11874 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11876 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11877 -floop-interchange.
11878 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11879 is an alias of -floop-interchange and that it requires the
11880 Graphite infrastructure.
11881 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11882 flag_loop_interchange based on the value of flag_tree_loop_linear.
11884 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11885 Richard Guenther <rguenther@suse.de>
11887 PR tree-optimization/47538
11888 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11889 type instead of r1type, except for comparisons. For right
11890 shifts and comparisons punt if there are mismatches in
11891 sizetype vs. non-sizetype types.
11893 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11895 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11898 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11900 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11902 * configure: Regenerate.
11904 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11906 * configure.ac (gcc_cv_ld_static_option): Define.
11907 (gcc_cv_ld_dynamic_option): Define.
11908 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11910 (HAVE_LD_STATIC_DYNAMIC): Update message.
11911 (LD_STATIC_OPTION): Define.
11912 (LD_DYNAMIC_OPTION): Define.
11913 * configure: Regenerate.
11914 * config.in: Regenerate.
11915 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11916 HAVE_LD_STATIC_DYNAMIC]: Use them.
11918 2011-01-31 Nick Clifton <nickc@redhat.com>
11920 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11921 registers inside interrupt handlers if the handler is not a leaf
11924 2011-01-31 Nick Clifton <nickc@redhat.com>
11926 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11927 reg_renumber returning an INVALID_REGNUM.
11929 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11932 * doc/install.texi: Document host options discarded when cross
11933 configuring target libraries.
11935 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11938 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11941 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11943 (no_real_insns_p, schedule_block, set_priorities): Drop special
11944 treatment of boundary debug insns.
11945 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11946 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11947 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11948 (BOUNDARY_DEBUG_INSN_P): Likewise.
11949 (SCHEDULE_DEBUG_INSN_P): Likewise.
11950 * sched-rgn.c (init_ready_list): Drop special treatment of
11951 boundary debug insns.
11952 * final.c (rest_of_clean-state): Clear notes' BB.
11954 2011-01-31 Alan Modra <amodra@gmail.com>
11956 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11957 toc relative expressions as we do in print_operand_address.
11959 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11961 * doc/extend.texi: Follow spelling conventions.
11962 * doc/invoke.texi: Fix a typo.
11964 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11966 * config/hpux11.opt: New.
11967 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11968 ia64*-*-hpux*): Use hpux11.opt.
11970 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11972 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11975 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11977 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11980 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11982 * doc/install.texi (Binaries): Remove outdated reference for
11983 Motorola 68HC11/68HC12 downloads.
11985 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11987 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11990 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11993 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11996 2011-01-28 Ahmad Sharif <asharif@google.com>
11998 * value-prof.c (check_counter): Corrected error message.
12000 2011-01-29 Jie Zhang <jie@codesourcery.com>
12002 * config/arm/arm.c (arm_legitimize_reload_address): New.
12003 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12004 arm_legitimize_reload_address.
12005 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12007 2011-01-28 Ian Lance Taylor <iant@google.com>
12009 * godump.c (go_define): Ignore macros whose definitions include
12010 two adjacent operands.
12012 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12015 * varasm.c (force_const_mem): Store copy of x in desc->constant
12016 instead of x itself.
12017 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12018 itself into REG_EQUAL note.
12020 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12022 * config/freebsd.opt (posix, rdynamic): New Driver options.
12024 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12026 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12027 -Bstatic/-Bdynamic.
12028 * configure: Regenerate.
12030 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12032 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12033 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12035 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12037 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12038 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12039 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12040 (s390_preferred_reload_class): Make static. Change return and
12041 'rclass' argument type to reg_class_t.
12043 2011-01-27 Jan Hubicka <jh@suse.cz>
12045 PR middle-end/46949
12046 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12047 (process_function_and_variable_attributes): Check defined weakrefs.
12049 2011-01-27 Martin Jambor <mjambor@suse.cz>
12051 PR tree-optimization/47228
12052 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12053 build_ref_for_offset.
12055 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12057 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12059 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12061 PR rtl-optimization/46856
12062 * postreload.c (reload_combine_recognize_const_pattern): Do not
12063 separate cc0 setter and user on cc0 targets.
12065 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12068 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12069 passed a VOID_TYPE expression, immediately emit an error and
12070 return error_mark_node.
12072 2011-01-26 Jeff Law <law@redhat.com>
12074 PR rtl-optimization/47464
12075 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12076 rather than may_trap_p as needed.
12078 2011-01-26 DJ Delorie <dj@redhat.com>
12080 PR rtl-optimization/46878
12081 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12082 setter/user dependency as well.
12084 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12086 PR rtl-optimization/44469
12087 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12088 after removing trivially dead basic blocks.
12090 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12092 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12093 * config/frv/frv.h (LINK_SPEC): Likewise.
12094 * config/i386/netware.h (LINK_SPEC): Likewise.
12095 * config/m68k/linux.h (ASM_SPEC): Likewise.
12096 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12097 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12098 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12099 * config/sparc/linux.h (ASM_SPEC): Likewise.
12100 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12101 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12103 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12105 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12106 * config/frv/frv.h (ASM_SPEC): Likewise.
12107 * config/m68k/linux.h (ASM_SPEC): Likewise.
12108 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12109 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12110 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12111 * config/sparc/linux.h (ASM_SPEC): Likewise.
12112 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12113 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12115 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12117 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12118 * config/frv/frv.h (LINK_SPEC): Likewise.
12119 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12121 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12123 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12124 * config/frv/frv.h (ASM_SPEC): Likewise.
12125 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12126 * config/m68k/linux.h (ASM_SPEC): Likewise.
12127 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12128 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12129 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12130 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12131 * config/sparc/linux.h (ASM_SPEC): Likewise.
12132 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12133 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12134 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12136 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12139 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12141 (vec_extract_evenodd_help): Ditto.
12142 (vec_extract_evenv4hi): Ditto.
12143 (vec_extract_oddv4hi): Ditto.
12144 (vec_interleave_lowv2si): Ditto.
12145 (vec_interleave_highv2si): Ditto.
12146 (vec_extract_evenv2si): Ditto.
12147 (vec_extract_oddv2si: Ditto.
12148 (vec_pack_trunc_v2si): Ditto.
12150 2011-01-22 Jan Hubicka <jh@suse.cz>
12153 * cgraph.h (cgraph_local_info): New field can_change_signature.
12154 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12155 signature can change.
12156 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12158 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12159 (cgraph_function_versioning): We can not change signature of functions
12160 that don't allow that.
12161 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12162 (lto_input_node): Likewise.
12163 * ipa-inline.c (compute_inline_parameters): Compute
12164 local.can_change_signature.
12165 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12166 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12167 functions that can not change signature.
12168 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12169 init_cumulative_args): Do not use local calling conventions
12170 for functions that can not change signature.
12172 2011-01-22 Jan Hubicka <jh@suse.cz>
12174 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12176 2011-01-26 Richard Guenther <rguenther@suse.de>
12178 PR tree-optimization/47190
12179 * cgraphunit.c (process_common_attributes): New function.
12180 (process_function_and_variable_attributes): Use it.
12182 2011-01-26 Richard Guenther <rguenther@suse.de>
12185 * cgraphbuild.c (record_eh_tables): Record reference to personality
12188 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12191 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12192 non-debug insns from moving up.
12194 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12197 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12198 t-dlldir{,-x} fragment for build and add it to tmake_file.
12199 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12200 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12201 * config/i386/t-dlldir: New file.
12202 (SHLIB_DLLDIR): Define.
12203 * config/i386/t-dlldir-x: New file.
12204 (SHLIB_DLLDIR): Define.
12205 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12206 (SHLIB_INSTALL): Use it.
12208 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12211 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12212 lower bound of the allowed Thumb-2 coprocessor load/store
12213 index range to -256. Add explaining comment.
12215 2011-01-25 Ian Lance Taylor <iant@google.com>
12217 * godump.c (go_define): Improve lexing of macro expansion to only
12218 accept expressions which match Go spec.
12220 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12223 * tree.c (handle_dll_attribute): Handle it.
12224 * doc/extend.texi (@item dllexport): Mention it.
12225 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12227 2011-01-25 Ian Lance Taylor <iant@google.com>
12229 PR tree-optimization/26854
12230 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12231 (decl_jump_unsafe): Move higher in file, with no other change.
12232 (bind): Set has_jump_unsafe_decl if appropriate.
12233 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12234 (check_earlier_gotos): Likewise.
12235 (c_check_switch_jump_warnings): Likewise.
12237 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12239 * doc/invoke.texi (Warning Options): Add missing hyphen.
12240 (-fprofile-dir): Minor grammatical fixes.
12241 (-fbranch-probabilities): Likewise.
12243 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12247 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12249 (no_real_insns_p, schedule_block, set_priorities): Drop special
12250 treatment of boundary debug insns.
12251 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12252 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12253 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12254 (BOUNDARY_DEBUG_INSN_P): Likewise.
12255 (SCHEDULE_DEBUG_INSN_P): Likewise.
12256 * sched-rgn.c (init_ready_list): Drop special treatment of
12257 boundary debug insns.
12258 * final.c (rest_of_clean-state): Clear notes' BB.
12260 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12262 * Makefile.in (LAMBDA_H): Removed.
12263 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12264 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12265 lambda-trans.o, and tree-loop-linear.o.
12266 (lto-symtab.o): Remove dependence on LAMBDA_H.
12267 (tree-loop-linear.o): Remove rule.
12268 (lambda-mat.o): Same.
12269 (lambda-trans.o): Same.
12270 (lambda-code.o): Same.
12271 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12272 (tree-vect-slp.o): Same.
12273 * hwint.h (gcd): Moved here.
12274 (least_common_multiple): Same.
12275 * lambda-code.c: Removed.
12276 * lambda-mat.c: Removed.
12277 * lambda-trans.c: Removed.
12278 * lambda.h: Removed.
12279 * tree-loop-linear.c: Removed.
12280 * lto-symtab.c: Do not include lambda.h.
12281 * omega.c (gcd): Removed.
12282 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12283 * tree-data-ref.c (print_lambda_vector): Moved here.
12284 (lambda_vector_copy): Same.
12285 (lambda_matrix_copy): Same.
12286 (lambda_matrix_id): Same.
12287 (lambda_vector_first_nz): Same.
12288 (lambda_matrix_row_add): Same.
12289 (lambda_matrix_row_exchange): Same.
12290 (lambda_vector_mult_const): Same.
12291 (lambda_vector_negate): Same.
12292 (lambda_matrix_row_negate): Same.
12293 (lambda_vector_equal): Same.
12294 (lambda_matrix_right_hermite): Same.
12295 * tree-data-ref.h: Do not include lambda.h.
12296 (lambda_vector): Moved here.
12297 (lambda_matrix): Same.
12298 (dependence_level): Same.
12299 (lambda_transform_legal_p): Removed declaration.
12300 (lambda_collect_parameters): Same.
12301 (lambda_compute_access_matrices): Same.
12302 (lambda_vector_gcd): Same.
12303 (lambda_vector_new): Same.
12304 (lambda_vector_clear): Same.
12305 (lambda_vector_lexico_pos): Same.
12306 (lambda_vector_zerop): Same.
12307 (lambda_matrix_new): Same.
12308 * tree-flow.h (least_common_multiple): Removed declaration.
12309 * tree-parloops.c (lambda_trans_matrix): Moved here.
12310 (LTM_MATRIX): Same.
12311 (LTM_ROWSIZE): Same.
12312 (LTM_COLSIZE): Same.
12313 (LTM_DENOMINATOR): Same.
12314 (lambda_trans_matrix_new): Same.
12315 (lambda_matrix_vector_mult): Same.
12316 (lambda_transform_legal_p): Same.
12317 * tree-pass.h (pass_linear_transform): Removed declaration.
12318 * tree-ssa-loop.c (tree_linear_transform): Removed.
12319 (gate_tree_linear_transform): Removed.
12320 (pass_linear_transform): Removed.
12321 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12322 flag_loop_interchange.
12324 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12326 PR tree-optimization/47265
12327 PR tree-optimization/47443
12328 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12329 if name still has some uses.
12331 2011-01-25 Martin Jambor <mjambor@suse.cz>
12333 PR tree-optimization/47382
12334 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12335 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12337 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12339 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12340 sjlj_except_unwind_info.
12342 2011-01-25 Richard Guenther <rguenther@suse.de>
12344 PR tree-optimization/47426
12345 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12346 visible functions results escape.
12348 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12351 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12352 (arm_get_frame_offsets): Use it.
12354 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12355 Jakub Jelinek <jakub@redhat.com>
12357 PR tree-optimization/47271
12358 * tree-if-conv.c (bb_postdominates_preds): New.
12359 (if_convertible_bb_p): Call bb_postdominates_preds.
12360 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12361 (predicate_scalar_phi): Call bb_postdominates_preds.
12363 2011-01-25 Nick Clifton <nickc@redhat.com>
12365 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12366 * config/rx/rx.c (rx_function_value): Likewise.
12367 (rx_promote_function_mode): Likewise.
12368 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12369 in order to make it legitimate.
12370 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12371 make sure that the first operand is the same as the result register.
12372 (addsi3_unspec): Delete.
12373 (subdi3): Do not accept immediate operands.
12374 (subdi3_internal): Likewise.
12376 2011-01-25 Jeff Law <law@redhat.com>
12378 PR rtl-optimization/37273
12379 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12380 handle them like argument loads from stack slots. Do not double
12381 count memory for memory constants and argument loads from stack slots.
12383 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12385 PR tree-optimization/47427
12386 PR tree-optimization/47428
12387 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12388 coalesce if the new root var would be TREE_READONLY.
12390 2011-01-25 Richard Guenther <rguenther@suse.de>
12392 PR middle-end/47414
12393 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12394 correct type for TBAA.
12396 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12398 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12399 (close_phi_written_to_memory): Call for_each_index with
12400 dr_indices_valid_in_loop.
12402 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12404 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12405 when it is initialized.
12407 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12409 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12410 call to graphite_find_data_references_in_stmt.
12411 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12412 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12413 call to graphite_find_data_references_in_stmt.
12414 (analyze_drs_in_stmts): Same.
12415 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12416 in which the scalar analysis of indices is performed.
12417 (create_data_ref): Same. Update call to dr_analyze_indices.
12418 (find_data_references_in_stmt): Update call to create_data_ref.
12419 (graphite_find_data_references_in_stmt): Same.
12420 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12422 (create_data_ref): Same.
12423 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12424 call to create_data_ref.
12426 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12428 * graphite-sese-to-poly.c (build_poly_scop): Move
12429 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12433 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12434 VAR_DECL, PARM_DECL, and RESULT_DECL.
12436 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12438 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12439 in a reduction PBB.
12440 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12441 that have already been marked as PBB_IS_REDUCTION.
12443 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12445 * graphite-scop-detection.c (same_close_phi_node): New.
12446 (remove_duplicate_close_phi): New.
12447 (make_close_phi_nodes_unique): New.
12448 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12452 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12453 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12454 of both data references to be the same.
12456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12458 * graphite-dependences.c (build_lexicographical_constraint): Remove
12459 the gdim parameter.
12460 (build_lexicographical_constraint): Adjust call to
12461 ppl_powerset_is_empty.
12462 (dependence_polyhedron): Same.
12463 (graphite_legal_transform_dr): Same.
12464 (graphite_carried_dependence_level_k): Same.
12465 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12467 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12471 * graphite-sese-to-poly.c
12472 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12473 (close_phi_written_to_memory): New.
12474 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12479 * doc/install.texi: Update the expected version number of PPL to 0.11.
12480 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12481 #if PPL_VERSION_MINOR < 11.
12483 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12485 * graphite-dependences.c: Include graphite-cloog-util.h.
12486 (new_poly_ddr): Inlined into dependence_polyhedron.
12487 (free_poly_ddr): Moved close by new_poly_ddr.
12488 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12489 Early return NULL when ppl_powerset_is_empty returns true.
12490 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12491 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12492 (graphite_legal_transform_dr): Call new_poly_ddr.
12493 (graphite_carried_dependence_level_k): Same.
12494 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12495 (dot_transformed_deps_stmt_1): Removed.
12496 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12497 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12498 (dot_deps_1): Call dot_deps_2.
12499 * Makefile.in (graphite-dependences.o): Add missing dependence on
12500 graphite-cloog-util.h.
12502 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12504 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12505 (build_lexicographical_constraint): Same.
12506 (dependence_polyhedron_1): Same.
12507 (graphite_legal_transform_dr): Same.
12508 (graphite_carried_dependence_level_k): Same.
12509 * graphite-ppl.c (ppl_powerset_is_empty): New.
12510 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12511 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12515 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12516 the "a followed by b" relation and document it.
12518 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12520 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12521 iteration when the bag of constraints is empty.
12523 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12525 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12527 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12529 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12530 nest and two loop depths as parameters.
12531 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12532 lst_perfect_nestify.
12534 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12536 * graphite-dependences.c (print_pddr): Call
12537 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12539 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12541 * graphite-ppl.c (debug_gmp_value): New.
12542 * graphite-ppl.h (debug_gmp_value): Declared.
12544 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12546 * doc/install.texi: Document availability of cloog-0.16.
12548 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12550 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12551 invalid postdominance info.
12553 2011-01-24 Jan Hubicka <jh@suse.cz>
12556 * doc/extend.texi (weak pragma): Drop claim that it must
12557 appear before definition.
12558 * varasm.c (merge_weak, declare_weak): Only sanity check
12559 that DECL is not output at a time it is declared weak.
12561 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12563 * machmode.def: Fixed comments.
12565 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12567 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12569 2011-01-24 Paul Koning <ni1d@arrl.net>
12571 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12574 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12577 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12578 (block_info): Add scanned and prev.
12579 (move_or_delete_vzeroupper_2): Return if the basic block
12580 has been scanned and the upper 128bit state is unchanged
12581 from the last scan.
12582 (move_or_delete_vzeroupper_1): Return true if the exit
12584 (move_or_delete_vzeroupper): Visit basic blocks using the
12585 work-list based algorithm based on vt_find_locations in
12588 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12590 2011-01-24 Nick Clifton <nickc@redhat.com>
12592 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12593 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12594 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12595 then define __v850e1__.
12596 * doc/invoke.texi: Document -mv850es.
12598 2011-01-24 Richard Henderson <rth@redhat.com>
12600 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12601 compound unordered comparisons.
12602 * config/rx/rx.c (rx_split_fp_compare): Remove.
12603 * config/rx/rx-protos.h: Update.
12604 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12605 (cbranchsf4): Don't call rx_split_fp_compare.
12606 (*cbranchsf4): Use rx_split_cbranch.
12607 (*cmpsf): Don't accept "i" constraint.
12608 (*conditional_branch): Only valid after reload.
12609 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12611 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12614 * config/rs6000/altivec.md (vector constant splitters): Add
12615 support for creating vector single precision constants if -mvsx is
12616 used and we would create the constant using Altivec primitives.
12618 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12619 Richard Sandiford <rdsandiford@googlemail.com>
12621 PR rtl-optimization/47166
12622 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12623 mechanism for PRE_MODIFY and POST_MODIFY.
12624 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12627 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12629 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12631 2011-01-22 Jan Hubicka <jh@suse.cz>
12634 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12636 2011-01-22 Jan Hubicka <jh@suse.cz>
12638 PR tree-optimization/43884
12640 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12641 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12643 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12645 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12646 * config/s390/s390.c (s390_register_move_cost,
12647 s390_memory_move_cost): New.
12648 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12650 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12652 PR middle-end/47401
12653 * except.c (sjlj_assign_call_site_values): Move setting the
12654 crtl->uses_eh_lsda flag to ...
12655 (sjlj_mark_call_sites): ... here.
12656 (sjlj_emit_function_enter): Support NULL dispatch label.
12657 (sjlj_build_landing_pads): In a function with no landing pads
12658 that still has must-not-throw regions, generate code to register
12659 a personality function with empty LSDA.
12661 2011-01-21 Richard Henderson <rth@redhat.com>
12663 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12665 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12667 * compare-elim.c: New file.
12668 * Makefile.in (OBJS-common): Add it.
12669 (compare-elim.o): New.
12670 * common.opt (fcompare-elim): New.
12671 * opts.c (default_options_table): Add OPT_fcompare_elim.
12672 * tree-pass.h (pass_compare_elim_after_reload): New.
12673 * passes.c (init_optimization_passes): Add it.
12674 * recog.h: Protect against re-inclusion.
12675 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12676 * doc/invoke.texi (-fcompare-elim): Document it.
12677 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12678 * doc/tm.texi: Rebuild.
12680 2011-01-22 Nick Clifton <nickc@redhat.com>
12682 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12683 rx_split_fp_compare.
12685 2011-01-22 Nick Clifton <nickc@redhat.com>
12687 * config/rx/rx.md (UNSPEC_CONST): New.
12688 (deallocate_and_return): Wrap the amount popped off the stack in
12689 an UNSPEC_CONST in order to stop it being rejected by
12690 -mmax-constant-size.
12691 (pop_and_return): Add a "(return)" rtx.
12692 (call): Drop the immediate operand.
12693 (call_internal): Likewise.
12694 (call_value): Likewise.
12695 (call_value_internal): Likewise.
12696 (sibcall_internal): Likewise.
12697 (sibcall_value_internal): Likewise.
12698 (sibcall): Likewise. Generate an explicit call using
12700 (sibcall_value): Likewise.
12701 (mov<>): FAIL if a constant operand is not legitimate.
12702 (addsi3_unpsec): New pattern.
12704 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12705 (ok_for_max_constant): New function.
12706 (gen_safe_add): New function.
12707 (rx_expand_prologue): Use gen_safe_add.
12708 (rx_expand_epilogue): Likewise.
12709 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12712 2011-01-21 Jeff Law <law@redhat.com>
12714 PR tree-optimization/47053
12715 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12716 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12717 statements are deleted.
12718 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12719 is nonempty, then purge dead edges and cleanup the CFG.
12721 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12724 Temporarily revert:
12725 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12727 * tree-dfa.c (create_var_ann): Mark variable as used.
12729 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12731 PR middle-end/45566
12732 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12733 notes from other section in hot/cold partitioning even if
12734 last_action is -3. Increment call_site_base.
12736 PR rtl-optimization/47366
12737 * fwprop.c (forward_propagate_into): Return bool. If
12738 any changes are made, -fnon-call-exceptions is used and
12739 REG_EH_REGION note is present, call purge_dead_edges
12740 and return true if it purged anything.
12741 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12742 any EH edges were purged.
12744 2011-01-21 Jeff Law <law@redhat.com>
12746 PR rtl-optimization/41619
12747 * caller-save.c (setup_save_areas): Break out code to determine
12748 which hard regs are live across calls by examining the reload chains
12749 so that it is always used.
12750 Eliminate code which checked REG_N_CALLS_CROSSED.
12752 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12754 PR tree-optimization/47355
12755 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12756 NOP has non-debug uses beyond PHIs in new_bb.
12758 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12761 * cfgexpand.c (account_used_vars_for_block): Only account vars
12762 that are annotated as used.
12763 (estimated_stack_frame_size): Don't set TREE_USED.
12764 * tree-dfa.c (create_var_ann): Mark variable as used.
12766 2011-01-21 Richard Guenther <rguenther@suse.de>
12768 PR middle-end/47395
12769 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12771 2011-01-21 Richard Guenther <rguenther@suse.de>
12773 PR tree-optimization/47365
12774 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12775 (vn_reference_lookup_pieces): Adjust.
12776 (vn_reference_lookup): Likewise.
12777 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12778 (vn_reference_lookup_3): Only look through kills if in
12779 VN_WALKREWRITE mode.
12780 (vn_reference_lookup_pieces): Adjust.
12781 (vn_reference_lookup): Likewise.
12782 (visit_reference_op_load): Likewise.
12783 (visit_reference_op_store): Likewise.
12784 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12785 (compute_avail): Likewise.
12786 (eliminate): Likewise.
12788 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12790 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12791 DECL_IGNORED_P non-reg vars if they are used.
12793 PR tree-optimization/47391
12794 * varpool.c (const_value_known_p): Return false if
12797 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12800 * config/i386/i386.c (ix86_local_alignment): Handle
12801 case for va_list_type_node is nil.
12802 (ix86_canonical_va_list_type): Likewise.
12804 2011-01-21 Alan Modra <amodra@gmail.com>
12806 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12807 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12809 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12811 * config/arm/arm.md (define_attr type): Rename f_load
12812 and f_store to f_fpa_load and f_fpa_store. Update.
12813 (write_conflict): Deal with rename fallout.
12814 (*push_fp_multi): Likewise.
12815 * config/arm/fpa.md (f_load): Use f_fpa_load.
12816 (f_store): Use f_fpa_store.
12817 (*movsf_fpa): Likewise.
12818 (*movdf_fpa): Likewise.
12819 (*movxf_fpa): Likewise.
12820 (*thumb2_movsf_fpa): Likewise.
12821 (*thumb2_movdf_fpa): Likewise.
12822 (*thumb2_movxf_fpa): Likewise.
12823 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12824 f_loadd and f_stored.
12825 (*thumb2_movdi_vfp): Likewise.
12826 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12827 (*thumb2_movsi_vfp): Likewise.
12828 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12829 Use f_loads instead of f_load.
12830 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12832 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12834 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12835 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12836 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12837 (xtensa_mode_dependent_address_p): New function.
12838 (constantpool_address_p): Make static. Change return type to bool.
12839 Change argument type to const_rtx. Use CONST_INT_P predicate.
12841 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12844 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12846 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12849 * cfgexpand.c (expand_debug_expr): Instead of generating
12850 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12853 2011-01-20 Richard Guenther <rguenther@suse.de>
12855 PR middle-end/47370
12856 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12857 the pointer operand of MEM_REFs.
12859 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12861 PR tree-optimization/46130
12862 * ipa-split.c (consider_split): If return_bb contains non-virtual
12863 PHIs other than for retval or if split_function would not adjust it,
12866 2011-01-20 Richard Guenther <rguenther@suse.de>
12868 PR tree-optimization/47167
12869 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12870 Revert previous change, only avoid enumeral type changes.
12872 2011-01-19 Mike Stump <mikestump@comcast.net>
12874 * doc/tm.texi.in (BRANCH_COST): Englishify.
12875 * doc/tm.texi (BRANCH_COST): Likewise.
12877 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12880 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12881 (gen_scheduled_generic_parms_dies): New functions.
12882 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12883 generation for the end of CU compilation.
12884 (dwarf2out_finish): Generate template parameters DIEs here.
12886 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12889 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12890 debug bind stmt on merge edges.
12892 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12896 * function.c (instantiate_expr): Instantiate incoming rtl of
12897 implicit arguments, and recurse on VALUE_EXPRs.
12898 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12899 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12901 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12903 * c-parser.c (c_parser_for_statement): Initialize
12904 collection_expression.
12906 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12908 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12910 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12912 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12913 (LINK_SHLIB_SPEC): Don't use %(link_path).
12914 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12916 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12918 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12919 (NO_SHARED_LIB_SUPPORT): Remove.
12920 (LINK_SHLIB_SPEC): Remove one conditional definition.
12922 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12924 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12926 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12927 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12928 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12929 %{call_shared} and conditionals on these options not being passed.
12930 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12933 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12935 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12938 * ipa-split.c: Spelling fixes.
12940 2011-01-19 Richard Henderson <rth@redhat.com>
12942 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12943 (*mulsi3): Likewise.
12945 * longlong.h [__mn10300__] (count_leading_zeros): New.
12946 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12947 [__mn10300__] (add_ssaaaa, subddmmss): New.
12948 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12949 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12951 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12953 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12955 2011-01-19 Richard Henderson <rth@redhat.com>
12957 * config/mn10300/mn10300.md (addsi3_flags): New.
12958 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12959 (subsi3_flags, subc_internal, subdi3): New.
12960 (subdi3_internal, *subdi3_degenerate): New.
12961 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12963 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12964 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12965 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12966 * config/mn10300/mn10300-protos.h: Update.
12967 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12968 (return_ret): Likewise. Rename from return_internal_regs.
12969 (return_internal): Remove.
12971 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12972 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12973 (mn10300_legitimate_constant_p): Likewise.
12974 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12975 (mn10300_frame_size): New.
12976 (mn10300_expand_prologue): Use it.
12977 (mn10300_expand_epilogue): Likewise.
12978 (mn10300_initial_offset): Likewise.
12979 * config/mn10300/mn10300-protos.h: Update.
12980 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12981 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12982 (prologue, epilogue, return_internal): Tidy output code.
12983 (mn10300_store_multiple_operation, return): Likewise.
12984 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12985 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12986 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12987 (load_pic, am33_load_pic): New.
12988 (mn10300_load_pic0, mn10300_load_pic1): New.
12990 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12991 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12992 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12993 (cc_flags_for_mode, cc_flags_for_code): New.
12994 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12995 overflow flag is not valid. Validate that the flags we need
12996 for the comparison are valid.
12997 (mn10300_output_cmp): Remove.
12998 (mn10300_output_add): New.
12999 (mn10300_select_cc_mode): Use cc_flags_for_code.
13000 (mn10300_split_cbranch): New.
13001 (mn10300_match_ccmode): New.
13002 (mn10300_split_and_operand_count): New.
13003 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13005 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13006 (addsi3): ... here. Use mn10300_output_add.
13007 (*addsi3_flags): New.
13008 (*am33_subsi3, *mn10300_subsi3): Merge...
13009 (subsi3): ... here. Use attribute isa.
13010 (*subsi3_flags): New.
13011 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13013 (*am33_andsi3, *mn10300_andsi3): Merge...
13014 (andsi3): ... here.
13015 (*andsi3_flags): New.
13016 (andsi3 splitters): New.
13017 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13018 (iorsi3): ... here.
13019 (*iorsi3_flags): New.
13020 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13021 (xorsi3): ... here.
13022 (*xorsi3_flags): New.
13023 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13024 (one_cmplsi2): ... here.
13025 (*one_cmplsi2_flags): New.
13026 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13027 instead of "dax" in constraints. Use mn10300_split_cbranch.
13028 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13029 use matching constraints to eliminate a self-comparison.
13030 (*integer_conditional_branch): Rename from integer_conditional_branch.
13031 Use int_mode_flags to match CC_REG.
13032 (*cbranchsi4_btst, *btstsi): New.
13033 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13034 mn10300_split_cbranch.
13035 (*am33_cmpsf): Rename from am33_cmpsf.
13036 (*float_conditional_branch): Rename from float_conditional_branch.
13037 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13038 (zero_extendqisi2): ... here.
13039 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13040 (zero_extendhisi2): ... here.
13041 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13042 (extendqisi2): ... here.
13043 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13044 (extendhisi2): ... here.
13045 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13046 (ashlsi3): ... here.
13047 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13048 (lshrsi3): ... here.
13049 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13050 (ashrsi3): ... here.
13051 (consecutive add peephole): Remove.
13052 * config/mn10300/predicates.md (label_ref_operand): New.
13053 (int_mode_flags): New.
13054 (CCZN_comparison_operator): New.
13056 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13057 (throughput_42_latency_43): New reservation.
13058 (mulsidi3, umulsidi3): New expanders.
13059 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13060 the MDR register to allocation; separately allocate the low and
13061 high parts of the DImode result.
13062 (umulsidi3_internal): Similarly.
13063 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13064 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13065 (udivsi3, umodsi3): Remove.
13066 (udivmodsi4, divmodsi4): New expanders.
13067 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13068 (*divmodsi4): Simiarly.
13069 (ext_internal): New.
13071 * config/mn10300/constraints.md ("z"): New constraint.
13072 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13073 (FIXED_REGISTERS): Don't fix MDR.
13074 (CALL_USED_REGSITERS): Reformat nicely.
13075 (REG_ALLOC_ORDER): Add MDR.
13076 (enum regclass): Add MDR_REGS.
13077 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13078 (IRA_COVER_CLASSES): Add MDR_REGS.
13079 (REGNO_REG_CLASS): Handle MDR_REG.
13080 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13081 (mn10300_register_move_cost): Likewise.
13082 * config/mn10300/mn10300.md (MDR_REG): New.
13083 (*movsi_internal): Handle moves to/from MDR_REGS.
13085 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13087 (mn10300_secondary_reload): Tidy combination reload classes.
13088 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13089 addresses for AM33. Allow symbolic offsets for reg+imm.
13090 (mn10300_regno_in_class_p): New.
13091 (mn10300_legitimize_reload_address): New.
13092 * config/mn10300/mn10300.h (enum reg_class): Remove
13093 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13094 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13095 SP_OR_GENERAL_REGS.
13096 (REG_CLASS_NAMES): Update to match.
13097 (REG_CLASS_CONTENTS): Likewise.
13098 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13099 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13100 (REGNO_IN_RANGE_P): Remove.
13101 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13102 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13103 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13104 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13105 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13106 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13107 (REGNO_GENERAL_P): New.
13108 (HAVE_POST_MODIFY_DISP): New.
13109 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13110 (LEGITIMIZE_RELOAD_ADDRESS): New.
13111 * config/mn10300/mn10300-protos.h: Update.
13113 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13114 DATA_REGS for AM33 stack-pointer destination.
13115 (mn10300_preferred_output_reload_class): Likewise.
13116 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13117 into a form appropriate for ...
13118 (TARGET_SECONDARY_RELOAD): New.
13119 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13120 * config/mn10300/mn10300-protos.h: Update.
13121 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13122 reload_insi; use the "A" constraint for the scratch; handle AM33
13123 moves of sp to non-address registers.
13125 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13126 (*movqi_internal): ... here.
13127 (*am33_movhi, *mn10300_movhi): Merge into...
13128 (*movhi_internal): ... here.
13129 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13130 as the source/destination of moves from/to SP.
13131 (movsf): Only allow for AM33-2.
13132 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13133 any integer constant constraint. Only allow for AM33-2. Tidy
13134 all of the alternative outputs.
13135 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13136 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13138 (udivsi3, umodsi3): New patterns for MN103 only.
13140 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13142 * doc/tm.texi.in: Spell out that a lack of register class unions
13144 * doc/tm.texi: Regenerate.
13146 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13148 PR rtl-optimization/47337
13149 * dce.c (check_argument_store): New function.
13150 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13152 PR tree-optimization/47290
13153 * tree-eh.c (infinite_empty_loop_p): New function.
13154 (cleanup_empty_eh): Use it.
13156 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13159 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13160 (a64_expand_widen_sum): Ditto.
13161 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13162 (vec_extract_evenodd_help): Ditto.
13163 (vec_extract_evenv4hi): Ditto.
13164 (vec_extract_oddv4hi): Ditto.
13165 (vec_extract_evenv2si): Ditto.
13166 (vec_extract_oddv2si): Ditto.
13167 (vec_extract_evenv2sf): Ditto.
13168 (vec_extract_oddv2sf): Ditto.
13169 (vec_pack_trunc_v4hi: Ditto.
13170 (vec_pack_trunc_v2si): Ditto.
13171 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13172 (vec_interleave_highv8qi): Ditto.
13174 (vec_extract_oddv8qi): Ditto.
13175 (vec_interleave_lowv4hi): Ditto.
13176 (vec_interleave_highv4hi): Ditto.
13177 (vec_interleave_lowv2si): Ditto.
13178 (vec_interleave_highv2si): Ditto.
13180 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13182 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13183 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13184 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13185 (pa_c_mode_for_suffix): New.
13186 (TARGET_EXPAND_BUILTIN): Define.
13187 (TARGET_C_MODE_FOR_SUFFIX): Define.
13188 (pa_builtins): Define.
13189 (pa_init_builtins): Register __float128 type and init new support
13191 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13192 * config/pa/quadlib.c (_U_Qfcopysign): New.
13194 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13196 PR middle-end/46894
13197 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13198 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13201 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13203 PR tree-optimization/47179
13204 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13205 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13207 2011-01-18 Richard Guenther <rguenther@suse.de>
13209 PR rtl-optimization/47216
13210 * emit-rtl.c: Include tree-flow.h.
13211 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13212 of replicating it with different semantics.
13213 * Makefile.in (emit-rtl.o): Adjust.
13215 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13217 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13218 (cortex_a9_dp): Handle neon types correctly.
13220 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13222 PR rtl-optimization/47299
13223 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13224 subtarget. Use normal multiplication if both operands are constants.
13225 * expmed.c (expand_widening_mult): Don't try to optimize constant
13226 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13229 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13231 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13232 spacing after 'e.g.', typos, comma, hyphenation.
13234 2011-01-17 Richard Henderson <rth@redhat.com>
13236 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13237 (rx_restricted_mem_operand): New.
13238 (rx_shift_operand): Use register_operand.
13239 (rx_source_operand, rx_compare_operand): Likewise.
13240 * config/rx/rx.md (addsi3_flags): New expander.
13241 (adddi3): Rewrite as expander.
13242 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13243 (subsi3_flags): New expander.
13244 (subdi3): Rewrite as expander.
13245 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13247 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13248 (rx_init_builtins): Remove sat builtin.
13249 (rx_expand_builtin): Likewise.
13250 * config/rx/rx.md (ssaddsi3): New.
13251 (*sat): Rename from sat. Represent the CC_REG input.
13253 * config/rx/predicates.md (rshift_operator): New.
13254 * config/rx/rx.c (rx_expand_insv): Remove.
13255 * config/rx/rx-protos.h: Update.
13256 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13257 operand to the canonical position.
13258 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13259 (*bitclr, *bitclr_in_memory): Similarly.
13260 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13261 (insv): Retain the zero_extract in the expansion.
13263 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13264 (bswaphi2, bitinvert, revw): Likewise.
13266 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13267 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13268 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13269 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13270 (bitset, bitset_in_memory): Likewise.
13271 (bitinvert, bitinvert_in_memory): Likewise.
13272 (bitclr, bitclr_in_memory): Likewise.
13273 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13274 (rx_strend, rx_cmpstrn): Likewise.
13275 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13276 (bitop peep2 patterns): Remove.
13278 * config/rx/rx.c (rx_match_ccmode): New.
13279 * config/rx/rx-protos.h: Update.
13280 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13281 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13282 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13283 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13284 (fix_truncsfsi2, floatsisf2): Likewise.
13285 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13286 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13287 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13288 (*subsi3_flags, *xorsi3_flags): New.
13290 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13292 * config/rx/rx.c (rx_print_operand): Remove workaround for
13293 unsplit comparison operations.
13295 * config/rx/rx.md (movsicc): Split after reload.
13296 (*movsicc): Merge *movsieq and *movsine via match_operator.
13297 (*stcc): New pattern.
13299 * config/rx/rx.c (rx_float_compare_mode): Remove.
13300 * config/rx/rx.h (rx_float_compare_mode): Remove.
13301 * config/rx/rx.md (cstoresi4): Split after reload.
13302 (*sccc): New pattern.
13304 * config/rx/predicates.md (label_ref_operand): New.
13305 (rx_z_comparison_operator): New.
13306 (rx_zs_comparison_operator): New.
13307 (rx_fp_comparison_operator): New.
13308 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13309 Validate that the flags are set properly for the comparison.
13310 (rx_gen_cond_branch_template): Remove.
13311 (rx_cc_modes_compatible): Remove.
13312 (mode_from_flags): New.
13313 (flags_from_code): Rename from flags_needed_for_conditional.
13314 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13315 (rx_select_cc_mode): Likewise.
13316 (rx_split_fp_compare): New.
13317 (rx_split_cbranch): New.
13318 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13319 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13320 (*cbranchsf4): Similarly.
13321 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13322 match_operator and rx_split_cbranch.
13323 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13324 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13325 (*cmpsi): Rename from cmpsi.
13326 (*tstsi): Rename from tstsi.
13327 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13328 (*conditional_branch): Rename from conditional_branch.
13329 (*reveresed_conditional_branch): Remove.
13330 (b<code>): Remove expander.
13331 * config/rx/rx-protos.h: Update.
13333 * config/rx/rx.c (rx_compare_redundant): Remove.
13334 * config/rx/rx.md (cmpsi): Don't use it.
13335 * config/rx/rx-protos.h: Update.
13337 * config/rx/rx-modes.def (CC_F): New mode.
13338 * config/rx/rx.c (rx_select_cc_mode): New.
13339 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13340 * config/rx/rx-protos.h: Update.
13342 2011-01-17 Richard Henderson <rth@redhat.com>
13344 * except.c (dump_eh_tree): Fix stray ; after for statement.
13346 2011-01-17 Richard Guenther <rguenther@suse.de>
13348 PR tree-optimization/47313
13349 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13350 handling before copying the body. Properly deal with
13351 by-reference result in SSA form.
13353 2011-01-17 Ian Lance Taylor <iant@google.com>
13356 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13357 (struct_value_alias_set): Don't define.
13358 (sparc_option_override): Don't set sparc_sr_alias_set and
13359 struct_value_alias_set.
13360 (save_or_restore_regs): Use gen_frame_mem rather than calling
13362 (sparc_struct_value_rtx): Likewise.
13364 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13367 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13368 (_mm_maskstore_pd): Likewise.
13369 (_mm_maskload_ps): Likewise.
13370 (_mm_maskstore_ps): Likewise.
13371 (_mm256_maskload_pd): Change mask to __m256i.
13372 (_mm256_maskstore_pd): Likewise.
13373 (_mm256_maskload_ps): Likewise.
13374 (_mm256_maskstore_ps): Likewise.
13376 * config/i386/i386-builtin-types.def: Updated.
13377 (ix86_expand_special_args_builtin): Likewise.
13379 * config/i386/i386.c (bdesc_special_args): Update
13380 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13381 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13382 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13383 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13385 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13386 Use <avxpermvecmode> on mask register.
13387 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13389 2011-01-17 Olivier Hainque <hainque@adacore.com>
13390 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13391 Eric Botcazou <ebotcazou@adacore.com>
13394 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13395 if <= USHRT_MAX in 32-bit mode.
13397 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13399 * doc/install.texi (Configuration, Specific): Wrap long
13400 lines in examples. Allow line wrapping in long options
13401 and URLs where beneficial for PDF output.
13403 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13405 * config/mips/mips.c (mips_classify_symbol): Don't return
13406 SYMBOL_PC_RELATIVE for nonlocal labels.
13408 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13410 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13412 2011-01-15 Jan Hubicka <jh@suse.cz>
13414 PR tree-optimization/47276
13415 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13416 declarations as needed.
13418 2011-01-15 Martin Jambor <mjambor@suse.cz>
13420 * common.opt (fdevirtualize): New flag.
13421 * doc/invoke.texi (Option Summary): Document it.
13422 * opts.c (default_options_table): Add devirtualize flag.
13423 * ipa-prop.c (detect_type_change): Return immediately if
13424 devirtualize flag is not set.
13425 (detect_type_change_ssa): Likewise.
13426 (compute_known_type_jump_func): Likewise.
13427 (ipa_analyze_virtual_call_uses): Likewise.
13429 2011-01-14 Martin Jambor <mjambor@suse.cz>
13431 PR tree-optimization/45934
13432 PR tree-optimization/46302
13433 * ipa-prop.c (type_change_info): New type.
13434 (stmt_may_be_vtbl_ptr_store): New function.
13435 (check_stmt_for_type_change): Likewise.
13436 (detect_type_change): Likewise.
13437 (detect_type_change_ssa): Likewise.
13438 (compute_complex_assign_jump_func): Check for dynamic type change.
13439 (compute_complex_ancestor_jump_func): Likewise.
13440 (compute_known_type_jump_func): Likewise.
13441 (compute_scalar_jump_functions): Likewise.
13442 (ipa_analyze_virtual_call_uses): Likewise.
13443 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13447 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13448 * config/i386/i386.opt (msse5): New Alias.
13450 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13452 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13453 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13454 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13455 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13457 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13459 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13461 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13462 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13463 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13464 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13466 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13468 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13470 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13472 2011-01-14 Mike Stump <mikestump@comcast.net>
13474 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13475 * config/fr30/fr30.md: Likweise
13476 (movsi_push): Likewise.
13477 (movsi_pop): Likewise.
13478 (enter_func): Likewise.
13479 * config/moxie/moxie.md (movsi_push): Likewise.
13480 (movsi_pop): Likewise.
13482 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13484 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13485 %{no_archive} %{exact_version}.
13486 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13487 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13488 %{no_archive} %{exact_version}.
13489 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13490 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13491 * config/mips/vxworks.h: Likewise.
13493 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13495 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13497 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13499 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13500 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13502 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13504 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13507 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13509 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13511 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13512 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13514 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13515 Don't handle -shlib.
13517 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13519 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13520 (CC1_SPEC): Don't handle -profile.
13522 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13524 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13525 * config/mips/mips.h (CC1_SPEC): Likewise.
13527 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13529 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13530 * config/mips/mips.h (CC1_SPEC): Likewise.
13532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13534 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13535 * config/m32r/linux.h (LINK_SPEC): Likewise.
13536 * config/mips/linux.h (LINK_SPEC): Likewise.
13537 * config/mips/linux64.h (LINK_SPEC): Likewise.
13538 * config/sparc/linux.h (LINK_SPEC): Likewise.
13539 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13540 LINK_SPEC): Likewise.
13541 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13543 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13545 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13547 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13549 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13551 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13552 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13554 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13556 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13558 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13560 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13561 supports -Bstatic/-Bdynamic.
13562 * configure: Regenerate.
13564 2011-01-14 Jan Hubicka <jh@suse.cz>
13565 Jack Howarth <howarth@bromo.med.uc.edu>
13568 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13569 when checking debug_info_level. Test write_symbols instead of
13570 debug_hooks->var_location when setting flag_var_tracking_uninit.
13572 2011-01-14 Richard Guenther <rguenther@suse.de>
13574 PR tree-optimization/47179
13575 * target.def (ref_may_alias_errno): New target hook.
13576 * targhooks.h (default_ref_may_alias_errno): Declare.
13577 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13578 (default_ref_may_alias_errno): New function.
13579 * target.h (struct ao_ref_s): Declare.
13580 * tree-ssa-alias.c: Include target.h.
13581 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13582 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13583 (targhooks.o): Likewise.
13584 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13585 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13587 2011-01-14 Richard Guenther <rguenther@suse.de>
13589 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13591 2011-01-14 Richard Guenther <rguenther@suse.de>
13593 PR tree-optimization/47280
13594 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13595 return CFG changes.
13596 (tree_ssa_forward_propagate_single_use_vars): Deal with
13597 CFG changes from associate_plusminus.
13599 2011-01-14 Richard Guenther <rguenther@suse.de>
13601 PR middle-end/47281
13603 2011-01-11 Richard Guenther <rguenther@suse.de>
13605 PR tree-optimization/46076
13606 * tree-ssa.c (useless_type_conversion_p): Conversions from
13607 unprototyped to empty argument list function types are useless.
13609 2011-01-14 Richard Guenther <rguenther@suse.de>
13611 PR tree-optimization/47286
13612 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13614 2011-01-14 Martin Jambor <mjambor@suse.cz>
13616 PR middle-end/46823
13617 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13619 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13621 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13622 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13623 * config/xtensa/xtensa.c (xtensa_libcall_value,
13624 xtensa_function_value_regno_p): New functions.
13625 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13627 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13630 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13632 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13633 New function prototype.
13634 * config/i386/winnt.c (i386_pe_assemble_visibility):
13635 Warn only if attribute was specified by user.
13637 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13640 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13642 (floatunsdidf2_fcfidu): Ditto.
13644 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13646 * config/s390/s390.c (print_operand_address): Replace 'error' with
13647 'output_operand_lossage'.
13648 (print_operand): Likewise.
13650 2011-01-13 Jeff Law <law@redhat.com>
13652 PR rtl-optimization/39077
13653 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13654 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13655 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13656 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13657 * gcse.c (prune_insertions_deletions): New function.
13658 (compute_pre_data): Use it.
13660 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13663 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13665 (prune_unused_types_mark): Use it.
13667 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13669 PR rtl-optimization/45352
13670 * sel-sched.c: Update copyright years.
13671 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13672 in the advancing loop when we have issued issue_rate insns.
13674 2011-01-12 Richard Henderson <rth@redhat.com>
13676 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13677 (TARGET_MD_ASM_CLOBBERS): New.
13679 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13680 (TARGET_DELEGITIMIZE_ADDRESS): New.
13682 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13683 (clzsi2, *bsch): New patterns.
13685 * config/mn10300/mn10300.md (INT): New mode iterator.
13686 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13688 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13689 flag_split_wide_types.
13691 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13692 (mn10300_trampoline_init): Rewrite without a template, an immediate
13693 load and a direct branch.
13694 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13696 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13698 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13699 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13700 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13701 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13703 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13706 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13709 2011-01-12 Jan Hubicka <jh@suse.cz>
13712 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13713 (PLUGIN_COND_CLOSE): New macro.
13714 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13716 2011-01-12 Richard Guenther <rguenther@suse.de>
13719 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13720 register variables in a MEM_REF.
13722 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13724 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13725 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13726 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13727 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13728 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13729 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13730 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13731 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13732 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13733 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13734 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13735 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13736 * config/gnu-user.h: New. Copied from linux.h.
13737 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13738 GNU_USER_TARGET_STARTFILE_SPEC.
13739 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13740 GNU_USER_TARGET_ENDFILE_SPEC.
13741 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13742 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13743 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13744 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13745 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13746 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13747 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13748 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13749 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13750 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13751 * config/arm/linux-eabi.h (CC1_SPEC): Use
13752 GNU_USER_TARGET_CC1_SPEC.
13753 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13754 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13755 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13756 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13757 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13758 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13759 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13760 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13762 2011-01-12 Richard Guenther <rguenther@suse.de>
13765 * doc/invoke.texi (ffast-math): Document it is turned on
13768 2011-01-12 Jan Hubicka <jh@suse.cz>
13770 PR tree-optimization/47233
13771 * opts.c (common_handle_option): Disable ipa-reference with profile
13774 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13776 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13779 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13781 * c-parser.c (c_lex_one_token): Updated and reindented some
13782 comments. No changes in code.
13784 2011-01-11 Ian Lance Taylor <iant@google.com>
13786 * godump.c (go_output_var): Don't output the variable if there is
13787 already a type with the same name.
13789 2011-01-11 Ian Lance Taylor <iant@google.com>
13791 * godump.c (go_format_type): Don't generate float80.
13793 2011-01-11 Richard Henderson <rth@redhat.com>
13795 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13796 declaration. Rewrite for both speed and size.
13797 (mn10300_address_cost_1): Remove.
13798 (mn10300_register_move_cost): New.
13799 (mn10300_memory_move_cost): New.
13800 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13801 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13802 extensions, shifts, BSWAP, CLZ.
13803 (mn10300_wide_const_load_uses_clr): Remove.
13804 (TARGET_REGISTER_MOVE_COST): New.
13805 (TARGET_MEMORY_MOVE_COST): New.
13806 * config/mn10300/mn10300-protos.h: Update.
13807 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13809 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13810 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13811 * config/mn10300/mn10300-protos.h: Update.
13812 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13813 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13814 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13815 (*test_int_bitfield, *test_byte_bitfield): Remove.
13816 (*bit_test, *subreg_bit_test): Remove.
13817 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13819 * config/mn10300/constraints.md ("c"): Rename from "A".
13820 ("A", "D"): New constraint letters.
13821 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13822 (fmssf4, fnmasf4, fnmssf4): Likewise.
13824 * config/mn10300/mn10300.md (isa): New attribute.
13825 (enabled): New attribute.
13827 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13828 (abssf2, negsf2): Define only for hardware fp.
13829 (sqrtsf2): Reformat.
13830 (addsf3, subsf3, mulsf3): Merge expander and insn.
13832 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13833 (DEBUGGER_AUTO_OFFSET): Remove.
13834 (DEBUGGER_ARG_OFFSET): Remove.
13836 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13837 Emit register stores with the same offsets as the hardware.
13838 (mn10300_store_multiple_operation): Don't check that the register
13839 save offsets are monotonic.
13840 * config/mn10300/mn10300-protos.h: Update.
13842 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13844 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13845 in terms of the value on the stack, not the MDR register.
13847 2011-01-11 Jan Hubicka <jh@suse.cz>
13851 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13852 (symbol_alias_set_destroy, symbol_alias_set_contains,
13853 propagate_aliases_backward): Declare.
13854 * lto-streamer-out.c (struct sets): New sturcture.
13855 (trivally_defined_alias): New function.
13856 (output_alias_pair_p): Rewrite.
13857 (output_unreferenced_globals): Fix output of alias pairs.
13858 (produce_symtab): Likewise.
13859 * ipa.c (function_and_variable_visibility): Set weak alias destination
13861 * varasm.c (symbol_alias_set_t): Remove.
13862 (symbol_alias_set_destroy): Export.
13863 (propagate_aliases_forward, propagate_aliases_backward): New functions
13865 (compute_visible_aliases): ... this one; remove.
13866 (trivially_visible_alias): New
13867 (trivially_defined_alias): New.
13868 (remove_unreachable_alias_pairs): Rewrite.
13869 (finish_aliases_1): Reorganize code checking if alias is defined.
13870 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13873 2011-01-11 Richard Guenther <rguenther@suse.de>
13875 PR tree-optimization/46076
13876 * tree-ssa.c (useless_type_conversion_p): Conversions from
13877 unprototyped to empty argument list function types are useless.
13879 2011-01-11 Richard Guenther <rguenther@suse.de>
13881 PR middle-end/45235
13882 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13883 volatile MEMs as MEM_READONLY_P.
13885 2011-01-11 Richard Guenther <rguenther@suse.de>
13887 PR tree-optimization/47239
13888 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13890 2011-01-11 Jeff Law <law@redhat.com>
13892 PR tree-optimization/47086
13893 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13894 IVs from statements that might throw.
13896 2011-01-10 Jan Hubicka <jh@suse.cz>
13899 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13901 2011-01-10 Jan Hubicka <jh@suse.cz>
13904 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13905 when correcting profile.
13907 2011-01-10 Jan Hubicka <jh@suse.cz>
13910 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13911 DECL_FINI_PRIORITY.
13912 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13913 Restore DECL_FINI_PRIORITY.
13915 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13917 * doc/gimple.texi: Fix quoting of multi-word return values in
13918 @deftypefn statements. Ensure presence of return value. Wrap
13919 overlong @deftypefn lines.
13920 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13921 descriptions of removed functions.
13922 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13923 of multi-word return value in @deftypefn statement.
13925 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13927 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13928 (Conditional Expressions, Logical Operators)
13929 (Statement and operand traversals): Do not indent smallexample
13930 code. Fix duplicate function argument in example.
13932 2011-01-10 Jeff Law <law@redhat.com>
13934 PR tree-optimization/47141
13935 * ipa-split.c (split_function): Handle case where we are
13936 returning a value and the return block has a virtual operand phi.
13938 2011-01-10 Jan Hubicka <jh@suse.cz>
13940 PR tree-optimization/47234
13941 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13942 (pass_feedback_split_functions): Declare.
13943 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13945 * ipa-split.c (gate_split_functions): Update comments; disable
13946 split-functions for profile_arc_flag and branch_probabilities.
13947 (gate_feedback_split_functions): New function.
13948 (execute_feedback_split_functions): New function.
13949 (pass_feedback_split_functions): New global var.
13951 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13954 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13955 calling gimple_call_set_cannot_inline.
13957 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13959 * config/darwin-sections.def: Remove unused section.
13961 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13964 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13966 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13969 * c-parser.c (c_parser_declaration_or_fndef): Improved
13972 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13974 * config/i386/winnt.c (i386_pe_start_function): Make sure
13975 to switch back to function's section.
13977 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13981 * plugin.c: Move include of dlfcn.h from here...
13982 * system.h: ... to here.
13984 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13986 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13988 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13989 two extra empty pages in PDF output.
13991 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13994 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13995 for error recovery purposes behave as if it was not specified so
13996 that the default type is usd.
13998 2011-01-07 Jan Hubicka <jh@suse.cz>
14000 PR tree-optmization/46469
14001 * ipa.c (function_and_variable_visibility): Clear needed flags on
14002 nodes with external decls; handle weakrefs merging correctly.
14004 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14006 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14009 2011-01-07 Jan Hubicka <jh@suse.cz>
14011 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14012 and no longer claim that gold is required for linker plugin.
14013 * configure: Regenerate.
14014 * gcc.c (PLUGIN_COND): New macro.
14015 (LINK_COMMAND_SPEC): Use it.
14016 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14017 * config.in (HAVE_LTO_PLUGIN): New.
14018 * configure.ac (--with-lto-plugin): New parameter; autodetect
14021 2011-01-07 Jan Hubicka <jh@suse.cz>
14023 PR tree-optimization/46367
14024 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14025 when we can update original.
14026 (cgraph_mark_inline_edge): Sanity check.
14027 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14029 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14031 * config/spu/spu.h (ASM_COMMENT_START): Define.
14033 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14036 * gcc.c (%>S): New.
14037 (SWITCH_KEEP_FOR_GCC): Likewise.
14038 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14039 (do_spec_1): Handle "%>".
14041 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14043 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14046 * config/i386/i386.c (ix86_delegitimize_address): If
14047 simplify_gen_subreg fails, return orig_x.
14050 * value-prof.c (gimple_stringop_fixed_value): Handle
14051 lhs of the call properly.
14053 2011-01-07 Jan Hubicka <jh@suse.cz>
14056 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14058 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14060 * target.def (function_switched_text_sections): New hook.
14061 * doc/tm.texi: Regenerated.
14062 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14063 * final.c (default_function_switched_text_sections): New.
14064 (final_scan_insn): Call function_switched_text_sections when a
14065 mid-function section change occurs.
14066 * output.h (default_function_switched_text_sections): Declare.
14067 * config/darwin-protos.h (darwin_function_switched_text_sections):
14069 * config/darwin.c (darwin_function_switched_text_sections): New.
14070 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14072 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14074 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14075 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14076 the secondary code fragment when outputting for DWARF == 2.
14078 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14080 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14081 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14083 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14084 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14086 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14089 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14090 when it is not empty.
14092 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14095 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14096 (case ${target}): Add btver1.
14097 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14098 -march=native recognize btver1 processors.
14099 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14100 btver1 def_and_undef
14101 * config/i386/i386.c (struct processor_costs btver1_cost): New
14103 (m_BTVER1): New definition.
14104 (m_AMD_MULTIPLE): Includes m_BTVER1.
14105 (initial_ix86_tune_features): Add btver1 tune.
14106 (processor_target_table): Add btver1 entry.
14107 (static const char *const cpu_names): Add btver1 entry.
14108 (software_prefetching_beneficial_p): Add btver1.
14109 (ix86_option_override_internal): Add btver1 instruction sets.
14110 (ix86_issue_rate): Add btver1.
14111 (ix86_adjust_cost): Add btver1.
14112 * config/i386/i386.h (TARGET_BTVER1): New definition.
14113 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14114 (enum processor_type): Add PROCESSOR_BTVER1.
14115 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14117 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14120 * config/i386/i386.c (legitimize_tls_address)
14121 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14122 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14123 (tls_initial_exec_64_sun): New pattern.
14125 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14127 * doc/invoke.texi (Overall Options): Improve wording and markup
14128 of the description of -wrapper.
14130 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14132 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14133 rdynamic, threads): New Driver options.
14135 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14138 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14139 if coming from .tdata.
14140 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14142 2011-01-06 Jan Hubicka <jh@suse.cz>
14145 * collect2.c (main): Do not enable LTOmode when plugin is active.
14147 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14150 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14151 --version output if supported.
14152 * configure: Regenerate.
14154 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14156 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14159 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14162 * c-convert.c (convert): When converting a complex expression
14163 other than COMPLEX_EXPR to a different complex type, ensure
14164 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14165 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14166 when converting COMPLEX_TYPE.
14168 2011-01-06 Ira Rosen <irar@il.ibm.com>
14170 PR tree-optimization/47139
14171 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14172 only the last reduction value is used outside the loop. Update
14175 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14177 * config/rtems.opt: New.
14178 * config.gcc (*-*-rtems*): Use rtems.opt.
14180 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14182 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14183 processors do not support 3DNow instructions.
14185 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14187 * config/spu/spu.c (spu_option_override): Set parameter
14188 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14190 2011-01-05 Jan Hubicka <jh@suse.cz>
14192 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14193 at the command line.
14195 2011-01-05 Martin Jambor <mjambor@suse.cz>
14198 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14199 deltas on streamed outgoing edges.
14200 (output_node_opt_summary): Output info for outgoing edges only when
14201 the node is in new parameter set.
14202 (output_cgraph_opt_summary): New parameter set, passed to the two
14203 aforementioned functions. Update its forward declaration and its
14206 2011-01-05 Tom Tromey <tromey@redhat.com>
14208 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14209 operator to c_finish_omp_atomic.
14210 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14211 (build_unary_op): Update.
14212 (build_modify_expr): Update.
14213 (build_asm_expr): Update.
14215 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14217 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14218 newly inserted insns.
14219 (pad_bb): Likewise.
14220 (spu_emit_branch_hint): Likewise.
14221 (insert_hbrp_for_ilb_runout): Likewise.
14222 (spu_machine_dependent_reorg): Call df_finish_pass after
14223 schedule_insns returns.
14225 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14227 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14229 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14231 PR tree-optimization/47005
14232 * tree-sra.c (struct access): Add 'non_addressable' bit.
14233 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14234 (decide_one_param_reduction): Return 0 if the parameter is passed by
14235 reference and one of the accesses in the group is non_addressable.
14237 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14239 PR tree-optimization/47056
14240 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14241 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14242 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14244 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14246 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14247 initializer. Skip view conversions from aggregate types.
14249 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14252 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14254 2011-01-04 Philipp Thomas <pth@suse.de>
14256 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14259 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14261 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14262 on empty epilogue sequences.
14264 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14266 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14267 non-static): New Driver options.
14269 2011-01-04 Jie Zhang <jie@codesourcery.com>
14272 * gcc.c (default_compilers[]): Set combinable field to 0
14273 for all assembly languages.
14275 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14277 * config/mips/loongson3a.md: New file.
14278 * config/mips/mips.md: Include loongson3a.md.
14279 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14282 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14284 PR middle-end/47017
14285 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14286 instead of convert_memory_address_addr_space on the base expression.
14288 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14290 * config/spu/spu.c (spu_option_override): Update error text
14291 for bad -march= / -mtune= values.
14293 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14295 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14296 if branch-hint optimization will be performed.
14298 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14300 PR tree-optimization/47148
14301 * ipa-split.c (split_function): Convert arguments to
14302 DECL_ARG_TYPE if possible.
14304 PR tree-optimization/47155
14305 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14306 when computing uns.
14308 PR rtl-optimization/47157
14309 * combine.c (try_combine): If undobuf.other_insn becomes
14310 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14311 and set *new_direct_jump_p too.
14313 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14315 PR tree-optimization/47021
14316 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14318 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14320 * gcc.c (process_command): Update copyright notice dates.
14321 * gcov.c (print_version): Likewise.
14322 * gcov-dump.c (print_version): Likewise.
14323 * mips-tfile.c (main): Likewise.
14324 * mips-tdump.c (main): Likewise.
14326 2011-01-03 Martin Jambor <mjambor@suse.cz>
14328 PR tree-optimization/46801
14329 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14330 aggregate fields start at byte boundary instead of the bit-field flag.
14332 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14335 * gcc.c (main): Revert revision 168407.
14337 2011-01-03 Martin Jambor <mjambor@suse.cz>
14339 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14341 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14343 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14344 vector optab to expand vector/scalar shift, update gimple to vector.
14346 2011-01-03 Martin Jambor <mjambor@suse.cz>
14348 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14351 2011-01-03 Martin Jambor <mjambor@suse.cz>
14353 PR tree-optimization/46984
14354 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14356 (cgraph_create_indirect_edge): Fixed line length.
14357 (cgraph_indirect_call_info): Declare.
14358 (cgraph_make_edge_direct) Update declaration.
14359 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14360 (cgraph_create_indirect_edge): Use it.
14361 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14363 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14364 the new thunk_delta representation.
14365 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14367 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14368 (ipa_read_indirect_edge_info): Likewise.
14369 * lto-cgraph.c (output_edge_opt_summary): New function.
14370 (output_node_opt_summary): Call it on all outgoing edges.
14371 (input_edge_opt_summary): New function.
14372 (input_node_opt_summary): Call it on all outgoing edges.
14374 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14377 * gcc.c (main): Don't check have_o when settting combine_inputs.
14379 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14381 * regrename.c: Add general comment describing the pass.
14382 (struct du_head): Remove 'length' field.
14383 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14384 (regrename_optimize): Do not sort chains. Rework comments, add others.
14385 Force renaming to the preferred class (if any) in the first pass and do
14386 not consider registers that belong to it in the second pass.
14387 (create_new_chain): Do not set 'length' field.
14388 (scan_rtx_reg): Likewise.
14390 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14392 PR tree-optimization/47140
14393 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14394 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14395 to bit_value_binop.
14397 PR rtl-optimization/47028
14398 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14399 parm_birth_insn instead of at the beginning of first bb.
14401 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14403 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14404 Remove the word "see" before "@pxref".
14405 * doc/rtl.texi: Remove the word "see" before "@pxref".
14407 2011-01-01 Jan Hubicka <jh@suse.cz>
14409 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14412 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14415 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14418 Copyright (C) 2011 Free Software Foundation, Inc.
14420 Copying and distribution of this file, with or without modification,
14421 are permitted in any medium without royalty provided the copyright
14422 notice and this notice are preserved.