1 2011-05-13 Richard Guenther <rguenther@suse.de>
4 * gimple.c (iterative_hash_gimple_type): Revert change in
5 pointer target and function result and argument hashing.
7 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
9 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
10 (*movxf_internal_nointeger): Ditto.
11 (*movdf_internal_rex64): Ditto.
12 (*movdf_internal): Ditto.
13 (*movdf_internal_nointeger): Ditto.
14 (*movsf_internal): Ditto.
15 (sincos splitters): Use can_create_pseudo ().
17 2011-05-13 Joseph Myers <joseph@codesourcery.com>
19 * config/i386/i386-opts.h: New.
20 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
21 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
22 ix86_section_threshold): Remove.
23 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
24 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
26 (ix86_option_override_internal): Don't decode strings for options
27 other than -march=, -mtune= and -mfpmath=. Don't allow for
28 __attribute__ uses in remaining diagnostics for options with
29 string arguments. Don't check for integer arguments being negative.
30 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
31 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
32 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
33 ix86_branch_cost, ix86_section_threshold): Remove.
34 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
36 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
38 (masm=): Use Enum and Init.
39 (asm_dialect): New Enum and EnumValue entries.
40 (mbranch-cost=): Use UInteger.
41 (mlarge-data-threshold=): Use UInteger and Init.
42 (mcmodel=): Use Enum and Init.
43 (cmodel): New Enum and EnumValue entries.
44 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
45 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
46 mregparm=): Use UInteger.
47 (mstringop-strategy=): Use Enum and Init.
48 (stringop_alg): New Enum and EnumValue entries.
49 (mtls-dialect=): Use Enum and Init.
50 (tls_dialect): New Enum and EnumValue entries.
51 (mabi=): Use Enum and Init.
52 (calling_abi): New Enum and EnumValue entries.
53 (mveclibabi=): Use Enum and Init.
54 (ix86_veclibabi): New Enum and EnumValue entries.
56 2011-05-13 Nick Clifton <nickc@redhat.com>
58 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
59 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
61 2011-05-13 Kai Tietz <ktietz@redhat.com>
64 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
65 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
66 (gimple_boolify): Check for cast for boolean_type_node instead for
69 2011-05-13 Richard Guenther <rguenther@suse.de>
71 PR tree-optimization/48172
72 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
73 multiplying by number of iterations for equal step.
74 (vect_create_cond_for_alias_checks): Likewise.
76 2011-05-13 Andreas Schwab <schwab@redhat.com>
78 * configure.ac: Use AS_HELP_STRING throughout.
79 * configure: Regenerate.
81 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
83 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
84 (ix86_emit_restore_regs_using_mov): Likewise.
85 (ix86_emit_restore_sse_regs_using_mov): Likewise.
87 2011-05-12 Anatoly Sokolov <aesok@post.ru>
89 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
90 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
91 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
92 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
93 RTX_OK_FOR_OLO10_P): ...here.
94 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
97 2011-05-12 Kai Tietz <ktietz@redhat.com>
99 * gimplify.c (gimple_boolify): Re-boolify expression
100 arguments even if expression type is of kind BOOLEAN_TYPE.
101 (gimplify_boolean_expr): Removed.
102 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
103 and XOR. Additional take care that we keep expression's type.
104 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
105 of TRUTH_AND|OR|XOR_EXPR.
107 2011-05-12 Jakub Jelinek <jakub@redhat.com>
109 PR tree-optimization/48975
110 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
111 on all bbs here and free and clear ifc_bbs at the end.
113 2011-05-12 Richard Guenther <rguenther@suse.de>
115 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
116 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
117 until after simple checks.
118 (gimple_types_compatible_p): Likewise.
119 (iterative_hash_gimple_type): Always hash pointer targets
120 and function return and argument types.
121 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
122 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
123 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
124 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
125 completely in the simple compare section.
126 (gimple_register_canonical_type): Query the cache again after
129 2011-05-12 Richard Guenther <rguenther@suse.de>
131 PR tree-optimization/48172
132 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
133 the number of iterations from the segment size calculation.
134 (vect_create_cond_for_alias_checks): Adjust.
136 2011-05-12 Jakub Jelinek <jakub@redhat.com>
139 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
140 if validate_subreg fails.
142 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
144 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
145 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
148 2011-05-12 DJ Delorie <dj@redhat.com>
150 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
151 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
152 created builtin into rx_builtins array.
153 (rx_builtin_decl): New function.
154 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
156 2011-05-12 DJ Delorie <dj@redhat.com>
157 Nick Clifton <nickc@redhat.com>
159 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
160 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
161 (rx_is_legitimate_address): Add pre-decrement and post-increment
162 addressing in HImode and QImode. Fix test for out of range
164 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
165 (rx_align_for_label): Test label before extracting its usage count.
166 (rx_adjust_insn_lengths): Fix selection of insn codes.
167 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
169 2011-05-11 Jason Merrill <jason@redhat.com>
171 * tree.c (type_hash_canon): Use struct tree_type_non_common.
173 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
175 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
176 reindent the subsequent block.
178 2011-05-11 Satoru Takabayashi <satorux@google.com>
179 Paul Pluzhnikov <ppluzhnikov@google.com>
181 * doc/install.texi (Configuration): Document --with-linker-hash-style.
182 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
183 * config.in: Add LINKER_HASH_STYLE.
184 * configure.ac: Add --with-linker-hash-style.
185 * configure: Regenerate.
187 2011-05-11 Richard Guenther <rguenther@suse.de>
190 * gimple.c (iterative_hash_canonical_type): Fix typo.
192 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
194 * config/i386/i386.c (legitimize_tls_address)
195 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
196 expanders directly for TARGET_GNU2_TLS. Determine pic and
197 __tls_get_addr symbol reference here. Update call to
198 gen_tls_global_dynamic_{32,64} for added arguments.
199 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
200 expanders directly for TARGET_GNU2_TLS. Determine
201 __tls_get_addr symbol reference here. Update call to
202 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
203 unique UNSPEC REG_EQUIV to libcall block.
204 (ix86_tls_get_addr): Declare static.
205 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
206 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
207 Do not determine pic and __tls_get_addr symbol reference here. Do not
208 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
209 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
210 (tls_global_dynamic_64): Add operand 2. Do not determine
211 __tls_get_addr symbol reference here. Do not call
212 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
213 (tls_local_dynamic_base64): Ditto for operand 1.
215 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
217 * function.c (expand_function_start): Initialize stack_check_probe_note
218 only if the generic stack checking mechanism is used.
220 2011-05-11 Richard Guenther <rguenther@suse.de>
222 PR tree-optimization/15256
223 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
224 (A & B) | C, combine (A op CST1) op CST2.
225 (tree_ssa_forward_propagate_single_use_vars): Only bother to
226 visit assigns that have uses.
228 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
230 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
231 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
232 (unpack_ts_type_common_value_fields): ...this. Update comment.
233 (unpack_value_fields): Adjust for renaming.
234 (lto_input_ts_type_tree_pointers): Split into...
235 (lto_input_ts_type_common_tree_pointer): ...this and...
236 (lto_input_ts_type_non_common_tree_pointers): ...this.
237 (lto_input_tree_pointers): Adjust for above split.
238 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
239 (pack_ts_type_common_value_fields): ...this. Update comment.
240 (lto_output_ts_type_tree_pointers): Split into...
241 (lto_output_ts_type_common_tree_pointers): ...this and...
242 (lto_output_ts_type_non_common_tree_pointers): ...this.
243 (lto_output_tree_pointers): Adjust for above split.
244 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
245 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
246 * stor-layout.c (vector_type_mode): Adjust location of mode field.
247 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
249 (struct tree_type): Split into...
250 (struct tree_type_common: ...this and...
251 (struct tree_type_with_lang_specific): ...this and...
252 (struct tree_type_non_common): ...this. Adjust accessor macros
254 (TYPE_VALUES_RAW): Define.
255 (union tree_node): Update for above changes.
256 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
258 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
259 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
260 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
261 * treestructu.def (TS_TYPE): Remove.
262 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
265 2011-05-11 Jakub Jelinek <jakub@redhat.com>
268 * tree-ssa.c (reset_debug_uses): New function.
269 * tree-flow.h (reset_debug_uses): New prototype.
270 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
271 * tree-loop-distribution.c (generate_loops_for_partition): Call
272 reset_debug_uses on the stmts that will be removed. Keep around
273 all debug stmts, don't count them as bits in partition bitmap.
274 (generate_builtin): Don't count debug stmts or labels as bits in
277 2011-05-11 Richard Guenther <rguenther@suse.de>
279 * gimple.c (gimple_type_hash_1): Merge with ...
280 (gimple_type_hash): ... this.
281 (gtc_visit): Remove mode parameter and simplify accordingly.
282 (gimple_types_compatible_p_1): Likewise.
283 (gimple_types_compatible_p): Likewise.
284 (iterative_hash_gimple_type): Likewise.
286 (gimple_type_eq): Adjust.
288 2011-05-11 Revital Eres <revital.eres@linaro.org>
290 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
291 enters the branch create an anti edge in the opposite direction
292 to prevent the creation of reg-moves.
293 * modulo-sched.c: Adjust comment to reflect the fact we are
294 scheduling closing branch.
295 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
296 (stage_count): New field in struct partial_schedule.
297 (calculate_stage_count): New function.
298 (normalize_sched_times): Rename to reset_sched_times and handle
299 incrementing the sched time of the nodes by a constant value
301 (duplicate_insns_of_cycles): Skip closing branch.
302 (sms_schedule_by_order): Schedule closing branch.
303 (ps_insn_find_column): Handle closing branch.
304 (sms_schedule): Call reset_sched_times and adjust the code to
305 support scheduling of the closing branch.
306 (ps_insert_empty_row): Update calls to normalize_sched_times
307 and rotate_partial_schedule functions.
309 2011-05-11 Richard Guenther <rguenther@suse.de>
312 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
314 2011-05-11 Joseph Myers <joseph@codesourcery.com>
316 * opts.c (finish_options): Move warning settings from process_options.
317 * toplev.c (process_options): Move warning settings to finish_options.
319 2011-05-11 Richard Guenther <rguenther@suse.de>
321 PR tree-optimization/18041
322 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
323 (simplify_bitwise_binary): ... this. Handle operand conversions
324 by applying them to the result instead.
325 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
327 2011-05-11 Richard Guenther <rguenther@suse.de>
329 * gimple.c (gimple_canonical_types_compatible_p): Split out
330 from gimple_types_compatible_p and friends. Do not recurse
332 (gimple_canonical_type_eq): Use it.
333 (iterative_hash_canonical_type): Split out from
334 iterative_hash_gimple_type and friends. Do not recurse
336 (gimple_canonical_type_hash): Use it, allocate the hash here.
338 2011-05-11 Revital Eres <revital.eres@linaro.org>
340 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
343 2011-05-11 Revital Eres <revital.eres@linaro.org>
345 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
346 instead of PREV_INSN.
348 2011-05-11 Revital Eres <revital.eres@linaro.org>
350 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
351 * loop-doloop.c (doloop_condition_get): Likewise.
352 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
354 * config/arm/arm.md (*addsi3_compare0): Remove "*".
356 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
358 * tree.def (CASE_LABEL_EXPR): Add an operand.
359 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
361 2011-05-10 Joseph Myers <joseph@codesourcery.com>
363 * c-decl.c (c_override_global_bindings_to_false): Remove.
364 (global_bindings_p): Don't check
365 c_override_global_bindings_to_false.
366 * c-tree.h (c_override_global_bindings_to_false): Remove.
367 * c-typeck.c (composite_type): Don't set
368 c_override_global_bindings_to_false.
370 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
372 PR target/48857, 48495
373 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
375 (VSX_MOVE_MODE): Ditto.
376 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
377 VSX vector types. Add V2DImode.
378 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
379 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
380 (MODES_TIEABLE_P): Ditto.
382 * config/rs6000/rs6000.c (rs6000_emit_move): Use
383 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
385 (init_cumulative_args): Ditto.
386 (rs6000_function_arg_boundary): Ditto.
387 (rs6000_function_arg_advance_1): Ditto.
388 (rs6000_function_arg): Ditto.
389 (rs6000_function_ok_for_sibcall): Ditto.
390 (emit_frame_save): Ditto.
391 (rs6000_function_value): Ditto.
392 (rs6000_libcall_value): Ditto.
394 2011-05-10 Joseph Myers <joseph@codesourcery.com>
396 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
397 i386/darwin-lib.h to $libgcc_tm_file.
398 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
400 2011-05-10 Joseph Myers <joseph@codesourcery.com>
402 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
404 2011-05-10 Joseph Myers <joseph@codesourcery.com>
406 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
407 * config/rs6000/rs6000-tables.opt: New file (generated).
408 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
409 rs6000/rs6000-tables.opt to extra_options.
410 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
411 * config/rs6000/rs6000.c (rs6000_select): Remove.
412 (processor_target_table): Move contents to rs6000-cpus.def.
413 (darwin_rs6000_override_options): Check
414 global_options_set.x_rs6000_cpu_index instead of
415 rs6000_select[1].string.
416 (rs6000_option_override_internal): Likewise.
417 (rs6000_handle_option): Don't assert that global structures are in
418 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
419 (rs6000_default_cpu): New variable.
420 (rs6000_file_start): Set it instead of local default_cpu. Check
421 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
422 global_options_set.x_rs6000_tune_index instead of rs6000_select.
423 (rs6000_darwin_file_start): Check rs6000_default_cpu and
424 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
425 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
426 rs6000_select): Remove.
427 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
429 (mcpu=, mtune=): Use Var, Init, Enum and Save.
430 * config/rs6000/t-rs6000
431 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
432 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
433 global_options_set.x_rs6000_cpu_index instead of
434 rs6000_select[1].string.
435 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
436 global_options_set.x_rs6000_cpu_index instead of
437 rs6000_select[1].string.
439 2011-05-10 Joseph Myers <joseph@codesourcery.com>
441 * config.gcc (libgcc_tm_file): Define instead of including files
442 from ../../libgcc/config/ in tm_file.
443 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
444 * configure: Regenerate.
445 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
446 libgcc_tm.h, cs-libgcc_tm.h): New.
447 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
448 (clean): Remove libgcc_tm.h.
449 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
450 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
451 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
453 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
456 * config/avr/avr.c (avr_ret_register): Return unsigned int
458 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
459 it to avr_libcall_value.
460 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
462 (avr_expand_binop_builtin): Ditto.
463 (avr_expand_unop_builtin): Ditto.
465 2011-05-10 DJ Delorie <dj@redhat.com>
467 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
468 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
469 * config/rx/rx.c (rx_align_for_label): Add label and
470 uses_threshold parameters. Do not align when the label is not
472 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
474 2011-05-10 Richard Guenther <rguenther@suse.de>
476 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
477 a series of conversions and apply foldings similar to what
479 (tree_ssa_forward_propagate_single_use_vars): Call it.
481 2011-05-10 Jakub Jelinek <jakub@redhat.com>
483 PR tree-optimization/48611
484 PR tree-optimization/48794
485 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
486 referenced from RESX or EH_DISPATCH arguments.
489 * dfp.c (decimal_to_decnumber): Handle conversion from
492 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
494 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
495 for !flag_prefer_avx128.
496 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
498 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
500 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
501 (fold_ternary_loc): Use expr_location_or.
503 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
506 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
507 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
508 Pmode and mem_mode is not VOIDmode.
510 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
512 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
513 TYPE_QUAL_RESTRICT): Convert to enum.
515 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
517 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
518 (const_pow2_1_to_8_operand): Ditto.
519 (const_pow2_1_to_128_operand): Ditto.
520 (const_pow2_1_to_32768_operand): Ditto.
521 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
522 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
523 in insn constraint to check integer value of operand 3.
524 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
526 (PINSR_MODE): New mode iterator.
527 (sse2p4_1): New mode attribute.
528 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
529 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
530 iterator. Use const_int_operand instead of
531 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
532 exact_log2 in insn constraint to check integer value of operand 3.
534 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
536 * config/i386/sse.md (blendbits): Remove mode attribute.
537 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
538 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
539 Check integer value of operand 3 in insn constraint.
541 2011-05-09 Richard Guenther <rguenther@suse.de>
543 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
545 (lto_symtab_merge): Likewise. Do not register types here.
546 (lto_symtab_merge_decls_2): Likewise.
547 (lto_symtab_merge_decls_1): Likewise.
548 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
549 * gimple.c (enum gtc_mode): Declare.
550 (gimple_types_compatible_p): Make static.
552 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
554 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
555 temporary register to match Pmode.
557 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
559 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
560 and *vec_concatv4si_1_avx.
562 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
564 PR rtl-optimization/48927
565 * ira-conflicts.c (commutative_constraint_p): Use
566 recog_data.alternative_enabled_p to disable alternatives where
567 "enabled" attribute is false.
568 (get_dup_num): Ditto.
569 * ira-lives.c (single_reg_class): Ditto.
570 (ira_implicitly_set_insn_hard_regs): Ditto.
572 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
574 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
575 (dataflow_set_preserve_mem_locs): Likewise.
577 2011-05-09 Philipp Thomas <pth@suse.de>
579 * config/mep/mep.c (mep_validate_vliw): Syntax description
580 should not be translated.
582 2011-05-09 Joseph Myers <joseph@codesourcery.com>
584 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
585 * config/mips/mips-tables.opt: New file (generated).
586 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
587 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
588 MIPS_ARCH_OPTION_NATIVE): Define.
589 * config/mips/mips.c (mips_cpu_info_table): Move contents to
591 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
592 mips_parse_cpu): Remove.
593 (mips_cpu_info_from_opt, mips_default_arch): New.
594 (mips_handle_option): Don't assert that global structures are in
595 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
596 (mips_option_override): Use new variables and functions to set
597 state of these options. Use strcmp to check for individual CPU names.
598 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
600 * config/mips/mips.opt (march=): Use ToLower and Enum.
601 (mips): Use ToLower, Enum and Var.
602 (mtune=): Use ToLower and Enum.
603 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
605 2011-05-08 Jan Hubicka <jh@suse.cz>
607 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
608 Arrange type pairs to be UID ordered.
609 (gimple_lookup_type_leader): Make inline.
611 2011-05-09 Nick Clifton <nickc@redhat.com>
614 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
618 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
621 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
623 * combine.c (simplify_comparison): Abstract out parts into...
624 (simplify_compare_const): ... new function.
625 (try_combine): Generalize parallel arithmetic/compare combining
626 to call simplify_compare_const() and CANONICALIZE_COMPARE().
628 2011-05-08 Jan Hubicka <jh@suse.cz>
630 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
631 (cgraph_create_virtual_clone): Call hooks once virtual clone
633 * cgraph.h (cgraph_clone_node): Update prototype.
634 * ipa-cp.c (ipcp_estimate_growth): Use
635 estimate_ipcp_clone_size_and_time.
636 * ipa-inline-transform.c (clone_inlined_nodes): Update.
637 * lto-cgraph.c (input_node): Update.
638 * ipa-inline.c (recursive_inlining): Update.
639 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
640 (evaluate_conditions_for_known_args): Break out from ...
641 (evaluate_conditions_for_edge): ... here.
642 (evaluate_conditions_for_ipcp_clone): New function.
643 (inline_node_duplication_hook): Update clone summary based
645 (estimate_callee_size_and_time): Rename to ...
646 (estimate_node_size_and_time): take NODE instead of EDGE;
647 take POSSIBLE_TRUTHS as argument.
648 (estimate_callee_size_and_time): Update.
649 (estimate_ipcp_clone_size_and_time): New function.
650 (do_estimate_edge_time): Update.
652 2011-05-08 Richard Guenther <rguenther@suse.de>
656 * expmed.c (expand_shift_1): Compute adjusted constant shift
659 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
661 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
663 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
665 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
667 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
669 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
671 2011-05-07 Jan Hubicka <jh@suse.cz>
673 * ipa-inline-transform.c (inline_call): Account when program size
675 * ipa-inline.c (relative_time_benefit): New function.
676 (edge_badness): Reorganize to be power 2 based; fix thinko when
677 computing badness for negative growth; update comments to match
678 reality; better dumps.
680 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
682 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
683 type to bool and adjust comment.
684 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
685 (fold_mathfn_compare): Remove calls to global_bindings_p.
686 (fold_inf_compare): Likewise.
687 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
688 * c-tree.h (global_bindings_p): Adjust prototype.
689 * c-decl.c (global_bindings_p): Return bool and simplify.
691 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
693 PR tree-optimization/48837
694 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
695 when accumulator transformation is performed.
697 2011-05-06 Jan Hubicka <jh@suse.cz>
699 * i386.h (ix86_tune_indices): Add
700 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
701 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
702 * i386.c (initial_ix86_tune_features): Add
703 X86_SOFTARE_PREFETCHING_BENEFICIAL.
704 (software_prefetching_beneficial_p): Remove predicate.
705 (ix86_option_override_internal): Use new macro.
707 2011-05-06 Jan Hubicka <jh@suse.cz>
709 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
711 2011-05-06 Jan Hubicka <jh@suse.cz>
713 * cgraph.c (cgraph_add_thunk): Create real function node instead
714 of alias node; finalize it and mark needed/reachale; arrange visibility
715 to be right and add it into the corresponding same comdat group list.
716 (dump_cgraph_node): Dump thunks.
717 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
718 cgraph_function_with_gimple_body_p,
719 cgraph_first_function_with_gimple_body,
720 cgraph_next_function_with_gimple_body): New functions.
721 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
723 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
724 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
725 * cgraphunit.c (cgraph_finalize_function): Only look into possible
726 devirtualization when optimizing.
727 (verify_cgraph_node): Verify thunks.
728 (cgraph_analyze_function): Analyze thunks.
729 (cgraph_mark_functions_to_output): Output thunks only in combination
730 with function they are assigned to.
731 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
732 alias into normal node.
733 (assemble_thunks): New functoin.
734 (cgraph_expand_function): Use it.
735 * lto-cgraph.c (lto_output_node): Stream thunks.
736 (input_overwrite_node): Stream in thunks.
737 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
738 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
739 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
740 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
741 (inline_analyze_function): Do not care about thunk jump functions.
742 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
743 * ipa-prop.c (ipa_prop_write_jump_functions): Use
744 cgraph_function_with_gimple_body_p.
745 * passes.c (do_per_function_toporder): Use
746 cgraph_function_with_gimple_body_p.
747 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
748 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
749 (function_called_by_processed_nodes_p): Likewise.
751 2011-05-06 Joseph Myers <joseph@codesourcery.com>
753 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
754 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
756 (mabi=): Replace with separate entries for mabi=altivec,
757 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
758 mabi=ieeelongdouble and mabi=ibmlongdouble.
759 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
760 check for -mabi=spe without SPE ABI support here.
761 (rs6000_handle_option): Replace OPT_mabi_ handling with
762 OPT_mabi_altivec and OPT_mabi_spe handling.
764 2011-05-06 Cary Coutant <ccoutant@google.com>
766 * dwarf2out.c (contains_subprogram_definition): New function.
767 (should_move_die_to_comdat): Call it.
769 2011-05-06 Jeff Law <law@redhat.com>
771 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
772 remove_ctrl_stmt_and_useless_edges.
773 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
774 (fixup_template_block, thread_single_edge): Likewise.
775 (mark_threaded_blocks): Use THREAD_TARGET.
777 2011-05-06 Alan Modra <amodra@gmail.com>
780 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
781 const0_rtx as the arg to the dummy __tls_get_addr libcall.
783 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
785 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
786 constraint modifier to "r".
788 2011-05-06 Joseph Myers <joseph@codesourcery.com>
790 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
791 fall through for OPT_mcmodel_.
793 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
795 * config/s390/s390.c (s390_asm_trampoline_template): Comment
797 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
799 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
802 * config/arm/arm.opt (marm): Document it.
803 (mthumb): Reject negative variant.
805 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
808 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
809 Fix typo in "ccvt" variable name.
811 2011-05-06 Tristan Gingold <gingold@adacore.com>
814 * config/vms/vms-ar.c (main): Remove cwd variable.
816 2011-05-06 Jakub Jelinek <jakub@redhat.com>
819 * var-tracking.c (prepare_call_arguments): Move else before #endif.
821 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
823 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
824 * gimplify.c (gimplify_switch_expr): Likewise.
825 * omp-low.c (expand_omp_sections): Likewise.
826 * tree-eh.c (lower_try_finally_switch): Likewise.
827 (lower_eh_dispatch): Likewise.
828 * tree.h (build_case_label): Declare.
829 * tree.c (build_case_label): Define.
831 2011-05-05 Jason Merrill <jason@redhat.com>
834 * tree-inline.c (copy_tree_r): Use copy_statement_list.
835 (copy_statement_list): Don't recurse.
836 * stor-layout.c (copy_self_referential_tree_r): Don't allow
839 2011-05-05 Joseph Myers <joseph@codesourcery.com>
841 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
842 through from -mfpu= handling.
843 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
845 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
847 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
850 2011-05-05 Steve Ellcey <sje@cup.hp.com>
852 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
854 (hppa[12]*-*-hpux11*): Ditto.
855 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
856 * config/ia64/hpux-unix2003.h: New.
857 * config/pa/pa-hpux1131.opt: New.
858 * config/pa/pa-hpux1131.h: New.
859 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
860 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
861 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
863 2011-05-05 Jakub Jelinek <jakub@redhat.com>
866 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
867 instead of mode as 3rd argument to recursive call.
868 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
869 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
871 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
872 don't give up if mode is Pmode and mem_mode is not VOIDmode.
873 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
874 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
876 2011-05-05 Julian Brown <julian@codesourcery.com>
878 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
879 parenthesis in D-register case.
881 2011-05-05 Joseph Myers <joseph@codesourcery.com>
883 * opt-functions.awk (var_type_struct): Handle Enum options.
884 * optc-gen.awk: Don't check range of variables of character type.
885 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
886 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
887 rs6000_sdata_name, rs6000_explicit_options): Remove.
888 (rs6000_option_override_internal): Check for -malign-power here.
889 Use global_options_set instead of rs6000_explicit_options.
890 (rs6000_parse_fpu_option): Remove.
891 (rs6000_handle_option): Access variables via opts and opts_set
892 pointers. Use error_at and warning_at. Add fall-through
893 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
894 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
895 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
896 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
897 here. Don't use rs6000_parse_fpu_option.
898 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
899 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
900 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
902 (mspe): Use Var and Save.
903 (mtraceback=): Use Enum and Var.
904 (rs6000_traceback_type): New Enum and EnumValue entries.
905 (mfloat-gprs=): Use Enum, Var and Save.
906 (rs6000_float_gprs): New Enum and EnumValue entries.
907 (mlong-double-): use Var and Save.
908 (msched-costly-dep=, minsert-sched-nops=): Use Var.
909 (malign-): Use Enum and Var.
910 (rs6000_alignment_flags): New Enum and EnumValue entries.
912 (fpu_type_t): New Enum and EnumValue entries.
913 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
914 global_options_set instead of rs6000_explicit_options.
915 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
916 global_options_set instead of rs6000_explicit_options.
917 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
918 global_options_set instead of rs6000_explicit_options.
919 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
920 global_options_set instead of rs6000_explicit_options.
921 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
922 global_options_set instead of rs6000_explicit_options.
923 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
924 global_options_set instead of rs6000_explicit_options.
925 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
927 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
928 global_options_set instead of rs6000_explicit_options.
929 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
930 (rs6000_cmodel): New Enum and EnumValue entries.
931 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
932 global_options_set instead of rs6000_explicit_options.
933 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
934 (mtls-size=): Use Enum and Var.
935 (rs6000_tls_size): New Enum and EnumValue entries.
937 2011-05-05 Michael Matz <matz@suse.de>
939 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
940 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
941 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
942 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
943 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
944 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
945 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
946 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
947 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
948 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
949 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
950 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
951 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
952 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
953 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
954 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
956 2011-05-05 Richard Guenther <rguenther@suse.de>
958 * expmed.c (expand_variable_shift): Rename to ...
959 (expand_shift_1): ... this. Take an expanded shift amount.
960 For rotates recurse directly not building trees for the shift amount.
961 (expand_variable_shift): Wrap around expand_shift_1.
962 (expand_shift): Adjust.
964 2011-05-05 Jakub Jelinek <jakub@redhat.com>
966 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
968 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
970 * tree.h (get_pending_sizes): Remove prototype.
971 (put_pending_size): Likewise.
972 (put_pending_sizes): Likewise.
973 * stor-layout.c (pending_sizes): Delete.
974 (get_pending_sizes): Likewise.
975 (put_pending_size): Likewise.
976 (put_pending_sizes): Likewise.
977 (variable_size): Do not call put_pending_size and tidy up.
978 * function.h (struct function): Remove dont_save_pending_sizes_p.
979 * lto-streamer-in.c (input_function): Do not stream it.
980 * lto-streamer-out.c (output_function): Likewise.
981 * tree-inline.c (initialize_cfun): Do not copy it.
982 * c-decl.c (store_parm_decls): Do not set it.
983 * omp-low.c (create_task_copyfn): Likewise.
984 * tree-optimize.c (tree_rest_of_compilation): Likewise.
986 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
988 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
990 (*movdf_internal): Ditto.
991 (*movdf_internal_nointeger): Ditto.
992 (*movsf_internal): Ditto.
994 2011-05-05 Joseph Myers <joseph@codesourcery.com>
996 * c-decl.c (finish_decl): Don't call get_pending_sizes.
997 (grokparm): Add parameter expr. Pass it to grokdeclarator.
998 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
999 (c_variable_size): Remove.
1000 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1001 call put_pending_sizes.
1002 (get_parm_info): Add parameter expr. Use it to set
1003 arg_info->pending_sizes.
1004 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1006 * c-parser.c (c_parser_parms_declarator): Update call to
1007 c_parser_parms_list_declarator.
1008 (c_parser_parms_list_declarator): Take parameter expr. Update
1009 call to push_parm_decl. Update recursive call. Don't call
1010 get_pending_sizes. Update calls to get_parm_info.
1011 (c_parser_objc_method_definition): Update calls to
1012 c_parser_objc_method_decl and objc_start_method_definition.
1013 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1014 (c_parser_objc_method_decl): Add parameter expr. Update call to
1016 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1017 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1018 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1020 2011-05-05 Michael Hope <michael.hope@linaro.org>
1023 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1026 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1028 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1029 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1030 (spu_output_mi_thunk): New function.
1032 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1034 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1035 targetm.asm_out.print_operand.
1036 * config/sol2.c: Include target.h.
1038 2011-05-04 Jan Hubicka <jh@suse.cz>
1040 * ipa-inline.c (reset_edge_caches): New function.
1041 (update_caller_keys): Add check_inlinablity_for; do not
1042 reset edge caches; remove now unnecesary loop.
1043 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1044 (update_all_callee_keys): Likewise.
1045 (inline_small_functions): Sanity check cache; update code
1048 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1050 PR rtl-optimization/47612
1051 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1052 as the last insn of the sequence to be moved.
1054 2011-05-04 Tobias Burnus <burnus@net-b.de>
1057 * doc/invoke.texi (Ofast): Document that it
1058 enables Fortran's -fno-protect-parens.
1060 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1062 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1064 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1066 * stor-layout.c (variable_size): Do not issue errors.
1068 2011-05-04 Richard Guenther <rguenther@suse.de>
1070 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1071 for array-ref indices.
1072 (tree_coverage_counter_addr): Likewise.
1073 (build_fn_info_type): Use size_int for index types.
1074 (build_gcov_info): Likewise.
1076 2011-05-04 Richard Guenther <rguenther@suse.de>
1078 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1080 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1081 for constructor indices.
1082 (push_init_level): Likewise.
1084 2011-05-04 Richard Guenther <rguenther@suse.de>
1086 * explow.c (promote_mode): Move variable declarations before code.
1088 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1090 * tree.h (build_function_type_array): Declare.
1091 (build_varargs_function_type_array): Declare.
1092 (build_function_type_vec, build_varargs_function_type_vec): Define.
1093 * tree.c (build_function_type_array_1): New function.
1094 (build_function_type_array): New function.
1095 (build_varargs_function_type_array): New function.
1097 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1099 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1100 before setting STMT_VINFO_TYPE.
1102 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1104 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1105 instead of spu_pass_by_reference.
1107 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1109 * calls.c (emit_library_call_value_1): Invoke
1110 promote_function_mode hook on libcall arguments.
1111 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1112 argument being NULL.
1113 * targhooks.c (default_promote_function_mode): Lisewise.
1114 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1115 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1117 * doc/tm.texi: Document that TYPE argument might be NULL.
1119 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1121 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1123 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1126 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1128 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1130 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1131 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1133 * mips-tfile.c: ... here.
1134 Don't include coretypes.h, tm.h, filenames.h.
1135 (saber_stop): Remove definition and all calls.
1136 [__SABER__]: Remove.
1137 (__LINE__): Remove default.
1138 (Size_t, Ptrdiff_t): Remove definitions.
1139 Replace by size_t, ptrdiff_t.
1140 [!MIPS_DEBUGGING_INFO]: Remove.
1141 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1142 (progname): Add const.
1144 Replace all uses by static.
1145 (ALIGN_SYMTABLE_OFFSET): Remove default.
1146 * mips-tdump.c: Don't include coretypes.h, tm.h.
1147 Remove !MIPS_IS_STAB guard.
1148 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1149 $(TM_H), filenames.h dependencies.
1150 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1152 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1155 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1156 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1158 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1161 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1162 account and save/restore RETS.
1163 (PROFILE_BEFORE_PROLOGUE): Define.
1164 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1165 the push insn to use predecrement.
1167 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1170 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1172 2011-05-04 Nick Clifton <nickc@redhat.com>
1174 * config/mn10300/mn10300.c: Include cfgloop.h.
1176 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1177 Lcc or a FLcc insn into the instruction stream.
1178 (mn10300_block_contains_call): New function. Returns true if the
1179 given basic block contains a CALL insn.
1180 (mn10300_loop_contains_call_insn): New function. Returns true if
1181 the given loop contains a CALL insn.
1182 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1183 to use the SETLB and Lcc or FLcc insns.
1184 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1185 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1186 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1187 disable the SETLB optimization.
1188 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1189 __SETLB__ or __NO_SETLB__.
1190 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1191 (movsf_internal): Handle MDR register.
1192 (cmpsi): Make visible.
1193 (setlb): New pattern.
1195 (FLcc): New pattern.
1197 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1200 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1201 for reg<->xmm moves.
1202 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1203 (vec_concatv2di_rex64_sse): Ditto.
1204 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1205 (*vec_extractv2di_1_rex64): Ditto.
1208 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1210 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1212 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1214 2011-05-04 Richard Guenther <rguenther@suse.de>
1216 * tree.h (int_const_binop): Remove notrunc argument.
1217 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1218 create integer constants that are properly truncated.
1219 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1220 (const_binop): Remove zero notrunc argument to int_const_binop.
1221 (size_binop_loc): Likewise.
1222 (fold_div_compare): Likewise.
1223 (maybe_canonicalize_comparison_1): Likewise.
1224 (fold_comparison): Likewise.
1225 (fold_binary_loc): Likewise.
1226 (multiple_of_p): Likewise.
1227 * expr.c (store_constructor): Likewise.
1228 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1229 (maybe_fold_stmt_addition): Likewise.
1230 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1231 * stor-layout.c (layout_type): Likewise.
1232 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1233 * tree-sra.c (build_ref_for_offset): Likewise.
1234 (build_user_friendly_ref_for_offset): Likewise.
1235 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1236 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1237 * tree-ssa-loop-niter.c (inverse): Likewise.
1238 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1239 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1240 * tree-switch-conversion.c (check_range): Likewise.
1241 (build_constructors): Likewise.
1242 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1243 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1244 (extract_range_from_assert): Likewise.
1245 (vrp_int_const_binop): Likewise.
1246 (extract_range_from_binary_expr): Likewise.
1247 (extract_range_from_unary_expr): Likewise.
1248 (check_array_ref): Likewise.
1249 (find_case_label_range): Likewise.
1250 (simplify_div_or_mod_using_ranges): Likewise.
1251 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1252 comparing case labels for merging.
1254 2011-05-03 Mark Wielaard <mjw@redhat.com>
1256 * dwarf2out.c (debug_str_hash_forced): Removed.
1257 (gen_label_for_indirect_string): Removed.
1258 (get_debug_string_label): Removed.
1259 (AT_string_form): Generate label directly.
1260 (output_indirect_string): Test indirect_string_node for
1261 DW_FORM_strp instead of checking label and refcount.
1262 (prune_indirect_string): Removed.
1263 (prune_unused_types): Don't check debug_str_hash_forced or
1264 call prune_indirect_string.
1266 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1269 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1271 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1275 * combine.c (try_combine): Skip debug insns at m_split tests.
1277 2011-04-26 Mark Wielaard <mjw@redhat.com>
1280 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1281 when info_section_emitted.
1283 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1285 * config/mips/mips-opts.h: New.
1286 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1288 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1289 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1290 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1292 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1294 (mips_abi, mips_code_readable): Don't declare.
1295 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1296 (mabi=): Use Enum and Var.
1297 (mips_abi): New Enum and EnumValue entries.
1298 (mcode-readable=): Use Enum and Var.
1299 (mips_code_readable_setting): New Enum and EnumValue entries.
1300 (mr10k-cache-barrier=): Use Enum and Var.
1301 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1303 2011-05-03 Jan Hubicka <jh@suse.cz>
1305 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1306 replace hash by pointer map.
1307 (cgraph_node_set_element_def, cgraph_node_set_element,
1308 const_cgraph_node_set_element, varpool_node_set_element_def,
1309 varpool_node_set_element, const_varpool_node_set_element): Remove.
1310 (free_cgraph_node_set, free_varpool_node_set): New function.
1311 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1312 * tree-emutls.c: Free varpool node set.
1313 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1314 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1315 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1316 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1317 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1318 Move here from ipa.c; implement using pointer_map
1319 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1320 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1321 debug_cgraph_node_set, varpool_node_set_new,
1322 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1323 dump_varpool_node_set, debug_varpool_node_set):
1324 Move to ipa-uitls.c.
1325 * passes.c (ipa_write_summaries): Update.
1327 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1329 From Mike Frysinger:
1330 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1331 bf542/bf544/bf547/bf548/bf549.
1333 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1335 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1337 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1340 * config/bfin/bfin.md (MOVCC): New mode_macro.
1341 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1342 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1343 comments from generated assembly.
1345 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1348 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1349 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1350 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1351 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1352 * config/bfin/lib1funcs.asm (___muldi3): New function.
1354 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1356 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1357 build_function_type_list instead of build_function_type.
1358 Rearrange initialization of `args' to do so.
1360 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1362 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1363 instead of build_function_type.
1365 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1367 * config/rs6000/rs6000.c (spe_init_builtins): Call
1368 build_function_type_list instead of build_function_type.
1369 (paired_init_builtins, altivec_init_builtins): Likewise.
1370 (builtin_function_type): Likewise.
1372 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1374 * config/sh/sh.c (sh_media_init_builtins): Call
1375 build_function_type_list instead of build_function_type.
1377 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1379 * config/sparc/sparc.c (sparc_file_end): Call
1380 build_function_type_list instead of build_function_type.
1382 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1384 * config/alpha/alpha.c (alpha_init_builtins): Call
1385 build_function_type_list instead of build_function_type.
1387 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1389 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1390 build_function_type_list instead of build_function_type.
1392 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1394 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1395 build_function_type_list instead of build_function_type.
1396 Delete `endlink' variable.
1398 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1400 * config/avr/avr.c (avr_init_builtins): Call
1401 build_function_type_list instead of build_function_type.
1403 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1405 * config/picochip/picochip.c (picochip_init_builtins): Call
1406 build_function_type_list instead of build_function_type.
1407 Delete `endlink' variable.
1409 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1411 * config/bfin/bfin.c (bfin_init_builtins): Call
1412 build_function_type_list instead of build_function_type.
1414 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1417 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1418 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1420 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1423 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1424 libbffastfp overrides libgcc when -mfast-fp.
1426 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1428 Originally from Bernd Schmidt
1429 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1430 * config/bfin/bfin.c (override_options): Test it and error if
1433 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1435 Originally From Bernd Schmidt
1436 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1439 2011-05-03 Jeff Law <law@redhat.com>
1441 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1442 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1443 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1444 than accessing AUX field directly. Free the AUX field before
1446 (thread_block, thread_through_loop_header): Likewise.
1447 (thread_single_edge, mark_threaded_blocks): Likewise.
1448 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1449 (register_jump_thread): Do not attempt to thread to a NULL edge.
1451 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1453 * function.c (init_function_start): Call decide_function_section.
1454 * varasm.c (decide_function_section): New function.
1455 (assemble_start_function): When not using
1456 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1457 or first_function_block_is_cold.
1458 * rtl.h (decide_function_section): Declare.
1460 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1461 Jakub Jelinek <jakub@redhat.com>
1464 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1465 only succeed if req_mode is the same as set_mode.
1467 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1469 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1470 * genemit.c (gen_exp): Handle RETURN.
1471 * emit-rtl.c (verify_rtx_sharing): Likewise.
1472 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1473 * rtl.c (copy_rtx): RETURN is shared.
1474 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1476 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1477 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1478 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1479 * config/cris/cris.c (cris_expand_return): Likewise.
1480 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1481 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1482 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1483 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1484 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1486 * config/v850/v850.c (expand_epilogue): Likewise.
1487 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1488 * config/arm/arm.md (epilogue): Likewise.
1489 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1490 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1491 variable to ret_reg.
1493 2011-05-03 Richard Guenther <rguenther@suse.de>
1496 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1497 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1498 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1500 2011-05-03 Richard Guenther <rguenther@suse.de>
1502 * c-decl.c (grokdeclarator): Instead of looking at
1503 TREE_OVERFLOW check if the constant fits in the index type.
1505 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1507 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1508 (vec_store_lanes<mode><mode>): Likewise.
1510 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1512 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1513 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1514 convert_optab_index values.
1515 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1516 * genopinit.c (optabs): Initialize the new optabs.
1517 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1518 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1519 (expand_STORE_LANES): New functions.
1520 * tree.h (build_array_type_nelts): Declare.
1521 * tree.c (build_array_type_nelts): New function.
1522 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1523 (vect_model_load_cost): Likewise.
1524 (vect_store_lanes_supported, vect_load_lanes_supported)
1525 (vect_record_strided_load_vectors): Declare.
1526 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1527 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1528 (vect_transform_strided_load): Split out statement recording into...
1529 (vect_record_strided_load_vectors): ...this new function.
1530 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1531 (write_vector_array, create_array_ref): New functions.
1532 (vect_model_store_cost): Add store_lanes_p argument.
1533 (vect_model_load_cost): Add load_lanes_p argument.
1534 (vectorizable_store): Try to use store-lanes functions for
1536 (vectorizable_load): Likewise load-lanes and loads.
1537 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1538 to vect_model_store_cost.
1539 (vect_build_slp_tree): Likewise vect_model_load_cost.
1541 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1543 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1544 * hooks.c (hook_bool_mode_uhwi_false): New function.
1545 * target.def (array_mode_supported_p): New hook.
1546 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1547 * doc/tm.texi: Regenerate.
1548 * stor-layout.c (mode_for_array): New function.
1549 (layout_type): Use it.
1550 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1551 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1553 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1556 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1557 for -fstack-check if the size to allocate is negative.
1559 2011-05-02 Lawrence Crowl <crowl@google.com>
1561 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1562 (timevar_cond_start): New for starting a timer only when it is not
1564 (timevar_cond_stop): New for stopping a timer when it was not already
1567 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1568 (timevar_cond_start): New as above.
1569 (timevar_cond_stop): New as above.
1571 * timevar.def: Add start/stop timers for compiler phases,
1572 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1573 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1574 and TV_PHASE_FINALIZE.
1575 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1576 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1577 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1578 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1579 Make unused TV_OVERLOAD into a start/stop timer.
1581 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1582 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1583 to indicate that they are start/stop timers.
1585 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1586 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1587 Move initialization to do_compile.
1588 (do_compile): Add initialization from above.
1589 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1591 * c-decl.c (c_write_global_declarations): Add start/stop of
1592 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1594 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1595 or TV_PARSE_INLINE, as appropriate.
1596 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1597 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1599 2011-05-02 Jason Merrill <jason@redhat.com>
1602 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1604 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1607 * c-decl.c (finish_decl): Only create a composite if the types are
1610 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1612 * config/fr30/fr30-protos.h (Mmode): Don't define.
1613 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1614 definition where used.
1615 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1616 define. Expand definitions where used.
1617 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1618 Expand definitions where used.
1619 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1620 rx_function_arg, rx_function_arg_advance,
1621 rx_function_arg_boundary): Expand definitions of those macros.
1622 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1623 definition where used.
1625 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1627 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1629 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1630 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1631 with *movv2sf_internal_rex64_avx.
1632 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1633 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1634 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1635 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1636 "vex" in "prefix" attribute calculation.
1637 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1639 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1642 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1643 inputs match the output.
1645 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1648 * config/m68k/m68k.c (m68k_expand_prologue): Set
1649 current_function_static_stack_size.
1651 2011-05-02 Jan Hubicka <jh@suse.cz>
1653 * lto-streamer.c (lto_streamer_cache_insert_1,
1654 lto_streamer_cache_lookup, lto_streamer_cache_create,
1655 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1656 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1658 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1660 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1661 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1662 config/m68k/t-opts: New files.
1663 * config/m68k/m68k-tables.opt: New file (generated).
1664 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1665 extra_options and m68k/t-opts to tmake_file.
1666 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1667 (all_isas): Initialize using m68k-isas.def.
1668 (all_microarchs): Initialize using m68k-microarchs.def.
1669 (m68k_find_selection): Remove.
1670 (m68k_handle_option): Don't assert that global structures are in
1671 use. Use error_at. Access variables via opts pointer. Don't
1672 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1673 directly for -m68020-40 and -m68020-60.
1674 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1675 m68k_tune_entry here.
1676 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1678 (m68k_library_id_string): Remove declaration.
1679 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1680 (m68k_library_id_string): New Variable.
1681 (march=, mcpu=, mtune=): Use Enum and Var.
1683 2011-05-02 Richard Guenther <rguenther@suse.de>
1685 * varasm.c (output_constructor_regular_field): Compute zero-based
1686 index with double-ints. Make sure to ICE instead of producing
1688 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1689 in asserts. Properly use a signed type.
1691 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1693 * config/i386/sse.md (V): New mode iterator.
1694 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1696 (V_256): Rename from AVX256MODE.
1697 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1698 condition to all users.
1700 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1701 condition to all users.
1702 (VF_128): Make V4SF mode unconditional.
1703 (VF_256): Rename from AVX256MODEF2P.
1704 (VI4F_128): Rename from SSEMODE4S.
1705 (VI8F_128): Rename from SSEMODE2D.
1706 (VI4F_256): Rename from AVX256MODE8P.
1707 (VI8F_256): Rename from AVX256MODE4P.
1708 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1709 (ssescalarmodesuffix): Remove SF and DF modes.
1710 (SSEMODE124): Remove.
1711 (SSEMODE1248): Ditto.
1712 (SSEMODEF2P): Ditto.
1713 (AVXMODEF2P): Ditto.
1714 (AVXMODEFDP): Ditto.
1715 (AVXMODEFSP): Ditto.
1716 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1718 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1720 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1721 xop_pcmov_<mode>256. Use V mode iterator.
1723 Adjust RTX patterns globally for renamed mode attributes.
1725 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1727 * haifa-sched.c (sched_emit_insn): Emit insn before first
1728 non-scheduled insn. Inform back-end about new insn. Add
1729 new insn to scheduled_insns list.
1731 2011-05-02 Richard Guenther <rguenther@suse.de>
1733 PR tree-optimization/48822
1734 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1735 (process_scc): Indicate which iteration we start.
1737 2011-05-02 Jan Hubicka <jh@suse.cz>
1739 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1740 (lto_section_overrun): New.
1741 * lto-section-out.c (append_block): Rename to ...
1742 (lto_append_block): ... this one; export.
1743 (lto_output_1_stream): Move lto lto-streamer.h
1744 (lto_output_data_stream): Update.
1745 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1746 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1749 2011-05-02 Richard Guenther <rguenther@suse.de>
1751 * tree.c (tree_code_counts): New global array.
1752 (record_node_allocation_statistics): Count individual tree codes.
1753 (dump_tree_statistics): Dump individual code stats.
1755 2011-05-01 Jan Hubicka <jh@suse.cz>
1757 * ipa-inline.c (caller_growth_limits): Fix thinko when
1758 looking for largest stack frame.
1759 * ipa-inline.h (dump_inline_summary): Declare.
1760 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1762 (dump_inline_summary): Export.
1763 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1765 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1767 * reginfo.c (memory_move_cost): Change rclass argument type form
1768 'enum reg_class' to reg_class_t.
1769 * reload.h (memory_move_cost): Update prototype.
1770 * postreload.c reload_cse_simplify_set): Change type dclass var to
1772 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1774 (ira_allocate_and_set_costs): Change aclass argument type form
1775 'enum reg_class' to reg_class_t.
1776 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1777 Change aclass argument type to reg_class_t.
1778 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1780 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1781 memory_move_cost call.
1783 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1784 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1785 Change type tmp var to reg_class_t.
1787 2011-04-30 Jan Hubicka <jh@suse.cz>
1789 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1790 inlining into function with flatten attribute.
1791 (want_inline_small_function_p): Be more realistic about inlining
1792 cold calls where callee size grows.
1794 2011-04-30 Jan Hubicka <jh@suse.cz>
1796 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1799 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1801 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1802 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1803 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1804 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1805 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1806 (print_operand): Rename to...
1807 (sparc_print_operand): ...this. Make static. Adjust
1808 sparc_print_operand function call.
1809 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1812 2011-04-30 Jan Hubicka <jh@suse.cz>
1815 * ipa-inline.c (early_inliner): Disable when doing late
1816 addition of function.
1818 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1820 * dwarf2out.c (get_address_mode): New inline.
1821 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1822 if not dwarf_strict emit
1823 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1824 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1825 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1826 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1827 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1828 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1829 mem_loc_descriptor callers.
1830 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1831 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1832 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1833 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1834 (base_types): New variable.
1835 (get_base_type_offset, calc_base_type_die_sizes,
1836 base_type_for_mode, mark_base_types, base_type_cmp,
1837 move_marked_base_types): New functions.
1838 (calc_die_sizes): Assert that die_offset is 0 or equal to
1840 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1841 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1842 callers. If not dwarf_strict, call mem_loc_descriptor even for
1843 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1844 (gen_subprogram_die): Don't give up on call site parameters
1845 with non-integral or large integral modes. Adjust
1846 mem_loc_descriptor callers.
1847 (prune_unused_types): Call prune_unused_types_mark on base_types
1849 (resolve_addr): Call mark_base_types.
1850 (dwarf2out_finish): Call move_marked_base_types.
1852 PR tree-optimization/48809
1853 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1855 (gen_inbound_check): Don't compute index_expr - range_min in utype
1856 again, instead reuse SSA_NAME initialized in build_arrays.
1857 Remove two useless gsi_for_stmt calls.
1859 2011-04-29 Jeff Law <law@redhat.com>
1861 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1863 2011-04-29 Martin Jambor <mjambor@suse.cz>
1865 * cgraph.h (cgraph_postorder): Remove declaration.
1866 * ipa-utils.h (ipa_free_postorder_info): Declare.
1867 (ipa_reverse_postorder): Likewise.
1868 * cgraphunit.c: Include ipa-utils.h.
1869 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1870 * ipa-inline.c: Include ipa-utils.h.
1871 (ipa_inline): Update call to ipa_reverse_postorder.
1872 * ipa-pure-const.c (propagate_pure_const): Update call to
1873 ipa_reduced_postorder and ipa_print_order. Call
1874 ipa_free_postorder_info to clean up.
1875 (propagate_nothrow): Likewise.
1876 * ipa-reference.c (propagate): Removed a useless call to
1877 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1878 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1879 * ipa.c: Include ipa-utils.h.
1880 (ipa_profile): Update call to ipa_reverse_postorder.
1881 (cgraph_postorder): Moved to...
1882 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1883 (ipa_utils_print_order): Renamed to ipa_print_order.
1884 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1886 (ipa_free_postorder_info): New function.
1887 * passes.c: Include ipa-utils.h.
1888 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1889 (ipa_write_summaries): Likewise.
1890 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1891 (cgraphunit.o): Likewise.
1893 (ipa-inline.o): Likewise.
1895 2011-04-29 Jan Hubicka <jh@suse.cz>
1897 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1898 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1899 * ipa-inline.h (clause_t): Turn into unsigned int.
1900 * ipa-inline-analysis.c (add_clause): Do more simplification.
1901 (and_predicates): Shortcut more cases.
1902 (predicates_equal_p): Move forward; check that clauses are properly
1904 (or_predicates): Shortcut more cases.
1905 (edge_execution_predicate): Rewrite as...
1906 (set_cond_stmt_execution_predicate): ... this function; handle
1907 __builtin_constant_p.
1908 (set_switch_stmt_execution_predicate): New .
1909 (compute_bb_predicates): New.
1910 (will_be_nonconstant_predicate): Update TODO.
1911 (estimate_function_body_sizes): Use compute_bb_predicates
1912 and free them later, always try to estimate if stmt is constant.
1913 (estimate_time_after_inlining, estimate_size_after_inlining):
1914 Gracefully handle optimized out edges.
1915 (read_predicate): Fix off by one error.
1917 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1919 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1921 2011-04-27 Xinliang David Li <davidxl@google.com>
1923 * tree-profile.c (init_ic_make_global_vars): Set
1924 tls attribute on ic vars.
1925 * coverage.c (coverage_end_function): Initialize
1926 function_list with zero.
1928 2011-04-29 Richard Guenther <rguenther@suse.de>
1930 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1931 for the type of the result.
1932 (fold_builtin_isascii): Likewise.
1933 (fold_builtin_toascii): Use integer_type_node where appropriate.
1934 (fold_builtin_logb): Likewise.
1935 (fold_builtin_frexp): Likewise.
1936 (fold_builtin_strstr): Likewise.
1937 (fold_builtin_strpbrk): Likewise.
1938 (fold_builtin_fputs): Likewise.
1939 (fold_builtin_sprintf): Likewise.
1940 (fold_builtin_snprintf): Likewise.
1941 (fold_builtin_printf): Likewise.
1942 (do_mpfr_remquo): Use a proper type for the assigned constant.
1943 (do_mpfr_lgamma_r): Likewise.
1944 * dwarf2out.c (resolve_one_addr): Use size_int.
1945 * except.c (init_eh): Likewise.
1946 (assign_filter_values): Use integer_type_node for filter values.
1947 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1949 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1950 for EH region numbers.
1951 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1952 for the shift amount.
1954 2011-04-29 Richard Guenther <rguenther@suse.de>
1956 * expr.h (expand_shift): Rename to ...
1957 (expand_variable_shift): ... this.
1958 (expand_shift): Take a constant shift amount.
1959 * expmed.c (expand_shift): Rename to ...
1960 (expand_variable_shift): ... this.
1961 (expand_shift): New wrapper around expand_variable_shift.
1962 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1963 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1964 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1965 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1966 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1967 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1968 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1969 emit_store_flag_1, emit_store_flag): Likewise.
1970 * builtins.c (expand_builtin_signbit): Likewise.
1971 * calls.c (load_register_parameters): Likewise.
1972 * function.c (assign_parm_setup_block): Likewise.
1973 * lower-subreg.c (resolve_shift_zext): Likewise.
1974 * optabs.c (widen_bswap, expand_abs_nojump,
1975 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1976 * spu/spu.c (spu_expand_extv): Likewise.
1977 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1979 2011-04-29 Richard Guenther <rguenther@suse.de>
1981 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1982 for the remapped region number.
1983 * predict.c (build_predict_expr): Use integer_type_node for the
1985 * fold-const.c (fold_binary_loc): Use integer_type_node for
1986 the shift amount. Use a proper type for the PLUS_EXPR operand.
1988 2011-04-29 Michael Matz <matz@suse.de>
1990 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1991 other trees that just builtins.
1992 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1994 2011-04-29 Richard Guenther <rguenther@suse.de>
1996 * tree-nested.c (get_trampoline_type): Use size_int.
1997 (get_nl_goto_field): Likewise.
1998 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2000 (lower_eh_constructs_2): Likewise.
2001 (lower_resx): Likewise.
2002 (lower_eh_dispatch): Likewise.
2003 * tree-mudflap.c (mf_build_string): Use size_int.
2004 (mudflap_register_call): Use integer_type_node for the flag.
2005 (mudflap_enqueue_constant): Use size_int.
2006 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2007 instead of rebuilding it.
2009 2011-04-29 Richard Guenther <rguenther@suse.de>
2011 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2012 Handle OBJ_TYPE_REF.
2013 (find_func_aliases_for_call): Use it more consistently.
2015 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2017 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2018 (rank_for_schedule): Use it.
2019 (schedule_block): Set it.
2021 2011-04-28 David Li <davidxl@google.com>
2023 * tree.c (crc32_string): Use crc32_byte.
2024 (crc32_byte): New function.
2025 * tree.h (crc32_byte): New function.
2026 * gcov.c (read_graph_file): Handle new cfg_cksum.
2027 (read_count_file): Ditto.
2028 * profile.c (instrument_values): Ditto.
2029 (get_exec_counts): Ditto.
2030 (read_profile_edge_counts): Ditto.
2031 (compute_branch_probabilities): Ditto.
2032 (compute_value_histograms): Ditto.
2033 (branch_prob): Ditto.
2034 (end_branch_prob): Ditto.
2035 * coverage.c (read_counts_file): Ditto.
2036 (get_coverage_counts): Ditto.
2037 (tree_coverage_counter_addr): Ditto.
2038 (coverage_checksum_string): Ditto.
2039 (coverage_begin_output): Ditto.
2040 (coverage_end_function): Ditto.
2041 (build_fn_info_type): Ditto.
2042 (build_fn_info_value): Ditto.
2043 * libgcov.c (gcov_exit): Ditto.
2044 * gcov-dump.c (tag_function): Ditto.
2045 (compute_checksum): Remove.
2047 2011-04-29 Alan Modra <amodra@gmail.com>
2049 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2050 unspec plus offset. Tidy macho code.
2052 2011-04-29 Martin Jambor <mjambor@suse.cz>
2054 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2055 node instead of a decl. Update all callers.
2056 * cgraph.h: Update declaration.
2058 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2060 PR tree-optimization/48765
2061 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2062 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2063 to indicate if loop aware SLP is being used. Scan the statements
2064 and update the vectorization factor according to the type of
2065 vectorization before statement analysis.
2066 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2067 pass it to vect_analyze_loop_operations.
2068 (vectorizable_reduction): Set number of copies to 1 in case of pure
2070 * tree-vect-stmts.c (vectorizable_conversion,
2071 vectorizable_assignment, vectorizable_shift,
2072 vectorizable_operation, vectorizable_type_demotion,
2073 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2075 (vectorizable_condition): Move the check that it is not SLP
2076 vectorization before the number of copies check.
2077 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2078 to vectorize the loop using SLP.
2080 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2083 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2086 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2088 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2089 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2090 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2091 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2092 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2094 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2095 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2096 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2097 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2098 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2099 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2101 * config/i386/linux.h (REG_NAME): Don't define.
2102 * config/i386/linux64.h (REG_NAME): Don't define.
2103 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2104 Undefine before defining.
2106 2011-04-28 Jan Hubicka <jh@suse.cz>
2108 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2109 nonconstant_names array.
2110 (estimate_function_body_sizes): Build nonconstant_names array; handle
2111 BUILT_IN_CONSTANT_P.
2113 2011-04-28 Richard Guenther <rguenther@suse.de>
2117 2011-04-28 Richard Guenther <rguenther@suse.de>
2119 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2120 as late as possible.
2122 2011-04-28 Richard Guenther <rguenther@suse.de>
2124 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2125 (debug_constraint): Do it here.
2126 (dump_constraints): And here.
2127 (rewrite_constraints): And here.
2128 (dump_constraint_edge): Remove.
2129 (dump_constraint_graph): Rewrite to produce DOT output.
2130 (solve_constraints): Build succ graph as late as possible.
2131 Dump constraint graphs before and after solving.
2133 2011-04-28 Richard Guenther <rguenther@suse.de>
2135 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2136 New function split out from ...
2137 (find_func_aliases): ... here. Call it.
2138 (find_func_aliases_for_call): Likewise.
2140 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2142 * internal-fn.h (internal_fn_name_array): Declare.
2143 (internal_fn_flags_array): Likewise.
2145 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2147 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2148 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2150 (ssemodefsuffix): Remove.
2151 (ssevecmodesuffix): New mode attribute.
2152 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2153 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2154 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2155 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2156 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2157 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2158 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2159 ssemodesuffix mode attribute.
2160 (float splitters): Use ssevecmodesuffix mode attribute.
2161 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2162 (sseinsmode): Rename from avxvecmode.
2163 (avxsizesuffix): Rename from avxmodesuffix.
2164 (sseintvecmode): Rename from avxpermvecmode.
2165 (ssedoublevecmode): Rename from ssedoublesizemode.
2166 (ssehalfvecmode): Rename from avxhalfvecmode.
2167 (ssescalarmode): Rename from avxscalarmode.
2168 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2169 templates for ssemodesuffix mode attribute.
2170 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2173 Adjust RTX patterns globally for renamed mode attributes.
2175 2011-04-27 Jan Hubcika <jh@suse.cz>
2177 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2178 * ipa-inline-analysis.c: Include alloc-pool.h.
2179 (edge_predicate_pool): New.
2180 (trye_predicate_p): New function
2181 (false_predicate_p): New function.
2182 (add_clause): Sanity check that false clauses are "optimized";
2183 never add clauses to predicate that is already known to be false.
2184 (and_predicate): Use flase_predicate_p.
2185 (evaulate_predicate): Rename to ...
2186 (evaluate_predicate): ... this one; update all callers; assert
2187 that false is not listed among possible truths.
2188 (dump_predicate): Use true_predicate_p.
2189 (account_size_time): Use false_predicate_p.
2190 (evaulate_conditions_for_edge): Rename to ...
2191 (evaluate_conditions_for_edge) ... this one.
2192 (edge_set_predicate): New function.
2193 (inline_edge_duplication_hook): Duplicate edge predicates.
2194 (inline_edge_removal_hook): Free edge predicates.
2195 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2196 (dump_inline_summary): Update.
2197 (estimate_function_body_sizes): Set edge predicates.
2198 (estimate_calls_size_and_time): Handle predicates.
2199 (estimate_callee_size_and_time): Update.
2200 (remap_predicate): Add toplev_predicate; update comment.
2201 (remap_edge_predicates): New function.
2202 (inline_merge_summary): Compute toplev predicate; update.
2203 (read_predicate): New function.
2204 (read_inline_edge_summary): Use it.
2205 (inline_read_section): Likewise.
2206 (write_predicate): New function.
2207 (write_inline_edge_summary): Use it.
2208 (inline_write_summary): Likewise.
2209 (inline_free_summary): Free alloc pool and edge summary vec.
2211 2011-04-27 Richard Guenther <rguenther@suse.de>
2213 * tree-ssa-structalias.c (changed_count): Remove.
2214 (changed): Use a bitmap.
2215 (unify_nodes): Adjust.
2216 (do_sd_constraint): Likewise.
2217 (do_ds_constraint): Likewise.
2218 (do_complex_constraint): Likewise.
2219 (solve_graph): Likewise.
2221 2011-04-27 Jan Hubicka <jh@suse.cz>
2223 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2225 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2227 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2228 (avx_vperm2f128_*_operand): Ditto.
2229 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2230 Use avx_vpermilp_parallel in insn condition.
2231 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2232 Use avx_vperm2f128_parallel in insn condition.
2234 2011-04-27 Richard Guenther <rguenther@suse.de>
2236 * Makefile.in (tree-ssa-structalias.o): Remove
2237 gt-tree-ssa-structalias.h dependency.
2238 (GTFILES): Remove tree-ssa-structalias.c.
2239 * tree.c (allocate_decl_uid): New function.
2240 (make_node_stat): Use it.
2241 (copy_node_stat): Likewise.
2242 * tree.h (allocate_decl_uid): Declare.
2243 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2244 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2245 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2246 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2247 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2248 (struct heapvar_map): Likewise.
2249 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2250 heapvar_insert): Likewise.
2251 (make_heapvar_for): Rename to ...
2252 (make_heapvar): ... this. Simplify.
2253 (fake_var_decl_obstack): New global var.
2254 (build_fake_var_decl): New function.
2255 (make_constraint_from_heapvar): Adjust.
2256 (handle_lhs_call): Likewise.
2257 (create_function_info_for): Likewise.
2258 (intra_create_variable_infos): Likewise.
2259 (init_alias_vars): Allocate fake_var_decl_obstack.
2260 (init_alias_heapvars, delete_alias_heapvars): Remove.
2261 (compute_points_to_sets): Do not call init_alias_heapvars.
2262 (ipa_pta_execute): Likewise.
2263 (delete_points_to_sets): Free fake_var_decl_obstack.
2265 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2267 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2268 (si_from_UTItype, si_to_UTItype): New functions.
2269 (__udivmodti4): Use them to implement type-punning.
2270 * config/spu/multi3.c (union qword_TItype): New data type.
2271 (si_from_TItype, si_to_TItype): New functions.
2272 (__multi3): Use them to implement type-punning.
2274 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2276 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2278 2011-04-27 Jan Hubicka <jh@suse.cz>
2280 * ipa-prop.c (function_insertion_hook_holder): New holder.
2281 (ipa_add_new_function): New function.
2282 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2283 Register/deregister holder.
2285 2011-04-27 Richard Guenther <rguenther@suse.de>
2287 PR tree-optimization/48772
2288 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2290 2011-04-27 Richard Guenther <rguenther@suse.de>
2292 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2293 TARGET_MEM_REF handling.
2295 2011-04-27 Nick Clifton <nickc@redhat.com>
2297 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2298 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2299 (REG_CLASS_NAMES): Likewise.
2300 (REG_CLASS_CONTENTS): Likewise.
2301 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2302 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2303 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2304 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2305 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2306 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2307 duplicate register classes.
2308 (frv_class_likely_spilled_p): Likewise.
2309 (frv_register_move_cost): Likewise.
2311 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2312 end of the regno_reg_class array.
2314 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2317 * c-typeck.c (build_binary_op): Don't wrap arguments if
2318 int_operands is true.
2320 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2323 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2324 targetm.calls.must_pass_in_stack for void type.
2326 2011-04-26 Jan Hubicka <jh@suse.cz>
2328 * cgraphbuild.c (build_cgraph_edges): Update call
2329 of cgraph_create_edge and cgraph_create_indirect_edge.
2330 * cgraph.c (cgraph_create_edge_including_clones,
2331 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2332 cgraph_update_edges_for_call_stmt_node): Do not take nest
2333 argument; do not initialize call_stmt_size/time.
2334 (dump_cgraph_node): Do not dump nest.
2335 (cgraph_clone_edge): Do not take loop_nest argument;
2336 do not propagate it; do not clone call_stmt_size/time.
2337 (cgraph_clone_node): Likewise.
2338 (cgraph_create_virtual_clone): Update.
2339 * cgraph.h (struct cgraph_edge): Remove
2340 call_stmt_size/call_stmt_time/loop_nest.
2341 (cgraph_create_edge, cgraph_create_indirect_edge,
2342 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2344 * tree-emutls.c (gen_emutls_addr): Update.
2345 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2346 loop_nest; handle indirect calls, too.
2347 (clone_inlined_nodes): Do not care about updating inline summaries.
2348 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2349 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2350 stream call_stmt_size/call_stmt_time/loop_nest.
2351 * ipa-inline.c (edge_badness): Update.
2352 (ipa_inline): dump summaries after inlining.
2353 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2355 (inline_edge_summary): New function.
2356 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2357 (inline_edge_removal_hook): Handle edge summaries.
2358 (inline_edge_duplication_hook): New hook.
2359 (inline_summary_alloc): Alloc hooks.
2360 (initialize_growth_caches): Do not register removal hooks.
2361 (free_growth_caches); Do not free removal hook.
2362 (dump_inline_edge_summary): New function.
2363 (dump_inline_summary): Use it.
2364 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2365 (inline_update_callee_summaries): New function.
2366 (inline_merge_summary): Use it.
2367 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2368 (read_inline_edge_summary): New function.
2369 (inline_read_section): Use it.
2370 (write_inline_edge_summary): New function.
2371 (inline_write_summary): Use it.
2372 (inline_free_summary): Free edge new holders.
2373 * tree-inline.c (copy_bb): Update.
2375 2011-04-26 Jason Merrill <jason@redhat.com>
2377 * tree-eh.c (lower_try_finally_switch): Create the label along with
2378 the CASE_LABEL_EXPR.
2380 2011-04-26 David S. Miller <davem@davemloft.net>
2381 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2383 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2384 * configure: Regenerate.
2386 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2389 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2391 (VEC_reduc): New code iterator and splitters for vector reduction.
2392 (VEC_reduc_name): Ditto.
2393 (VEC_reduc_rtx): Ditto.
2394 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2395 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2397 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2398 support for extracting SF on VSX.
2400 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2401 generating xscvspdp.
2402 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2403 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2404 double add, minimum, maximum vector reduction.
2405 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2406 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2407 optimize double vector reduction.
2408 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2410 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2412 * config/fr30/fr30.h (inhibit_libc): Don't define.
2413 * config/m32r/m32r-protos.h: Correct comment.
2414 * config/v850/v850.h (GHS_default_section_names,
2415 GHS_current_section_names): Use tree, not union tree_node *.
2417 2011-04-26 Xinliang David Li <davidxl@google.com>
2419 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2420 * c-family/c-opts.c (c_common_handle_option): Set
2421 warn_maybe_uninitialized.
2422 * opts.c (common_handle_option): Ditto.
2423 * common.opt: New option.
2424 * tree-ssa.c (warn_uninit): Add one more parameter.
2425 (warn_uninitialized_var): Pass warning code.
2426 * tree-flow.h: Interface change.
2429 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2431 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2432 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2433 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2435 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2437 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2438 * config/mips/mips.opt (mmips-tfile): Remove.
2440 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2441 mips-tdump reference to ...
2442 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2443 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2444 reference by Tru64 UNIX.
2446 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2449 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2450 is error_mark_node, set value to NULL.
2452 PR tree-optimization/48734
2453 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2454 if return value from maybe_fold_*_comparsions isn't something
2455 the code is prepared to handle.
2457 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2459 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2461 (ext_QIreg_nomode_operands): Remove.
2462 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2466 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2468 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2470 2011-04-26 Richard Guenther <rguenther@suse.de>
2472 * c-typeck.c (build_unary_op): Do not expand array-refs via
2473 pointer arithmetic. Only adjust qualifiers for function types.
2475 2011-04-26 Richard Guenther <rguenther@suse.de>
2478 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2479 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2480 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2481 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2483 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2485 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2486 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2487 * doc/extend.texi: Document __underlying_type.
2489 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2491 * config/rs6000/titan.md (automata_option "progress"): Remove.
2493 2011-04-25 Jeff Law <law@redhat.com>
2495 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2497 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2499 * system.h (ENUM_BITFIELD): Remove.
2501 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2502 Eric Botcazou <ebotcazou@adacore.com>
2504 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2505 for STORE_FLAG_VALUE==-1 case.
2507 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2510 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2511 LEGITIMATE_PIC_OPERAND_P.
2513 2011-04-24 Jan Hubicka <jh@suse.cz>
2515 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2517 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2518 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2519 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2520 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2521 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2522 Sanity check predicate length.
2523 (remap_predicate): Likewise; sanity check jump functions.
2524 (inline_read_section, inline_write_summary): Sanity check
2527 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2530 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2531 __is_literal_type, and __is_trivial; update throughout about
2532 possibly cv-qualified void types.
2534 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2536 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2537 testsuite and make it version agnostic.
2539 2011-04-22 Jan Hubicka <jh@suse.cz>
2541 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2543 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2546 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2547 to VOID_TYPE even around MODIFY_EXPR.
2549 2011-04-22 Mike Stump <mikestump@comcast.net>
2551 * gensupport.c (read_md_rtx): Fix typo in comment.
2552 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2555 2011-04-22 Jan Hubicka <jh@suse.cz>
2557 * gengtype.c (open_base_files): Add ipa-inline.h include.
2558 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2559 ipa-prop.c; update all uses.
2560 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2561 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2562 merge summary of inlined function into former caller.
2563 * ipa-inline.c (max_benefit): Remove.
2564 (edge_badness): Compensate for removal of benefits.
2565 (update_caller_keys): Use
2566 reset_node_growth_cache/reset_edge_growth_cache.
2567 (update_callee_keys): Likewise.
2568 (update_all_callee_keys): Likewise.
2569 (inline_small_functions): Do not collect max_benefit; do not reset
2570 estimated_growth; call free_growth_caches and initialize_growth_caches.
2571 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2572 struct size_time_entry): New structures.
2573 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2574 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2575 and estimated_growth.
2576 (edge_growth_cache_entry): New structure.
2577 (node_growth_cache, edge_growth_cache): New global vars.
2578 (estimate_growth): Turn into inline.
2579 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2580 initialize_growth_caches, free_growth_caches): Declare.
2581 (estimate_edge_growth): Rewrite.
2582 (estimate_edge_time): Implement as inline cache lookup.
2583 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2585 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2586 (NUM_CONDITIONS): New constant.
2587 (predicate_conditions): New enum.
2588 (IS_NOT_CONSTANT): New constant.
2589 (edge_removal_hook_holder): New var.
2590 (node_growth_cache, edge_growth_cache): New global vars.
2591 (true_predicate, single_cond_predicate, false_predicate,
2592 not_inlined_predicate, add_condition, add_clause, and_predicates,
2593 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2594 dump_clause, dump_predicate, account_size_time,
2595 evaulate_conditions_for_edge): New functions.
2596 (inline_summary_alloc): Move to heap.
2597 (inline_node_removal_hook): Clear condition and entry vectors.
2598 (inline_edge_removal_hook): New function.
2599 (initialize_growth_caches, free_growth_caches): New function.
2600 (dump_inline_summary): Update.
2601 (edge_execution_predicate): New function.
2602 (will_be_nonconstant_predicate): New function.
2603 (estimate_function_body_sizes): Compute BB and constantness predicates.
2604 (compute_inline_parameters): Do not clear estimated_growth.
2605 (estimate_edge_size_and_time): New function.
2606 (estimate_calls_size_and_time): New function.
2607 (estimate_callee_size_and_time): New function.
2608 (remap_predicate): New function.
2609 (inline_merge_summary): New function.
2610 (do_estimate_edge_time): New function based on...
2611 (estimate_edge_time): ... this one.
2612 (do_estimate_edge_growth): New function.
2613 (do_estimate_growth): New function based on....
2614 (estimate_growth): ... this one.
2615 (inline_analyze_function): Analyze after deciding on jump functions.
2616 (inline_read_section): New function.
2617 (inline_read_summary): Use it.
2618 (inline_write_summary): Write all the new data.
2619 * ipa-prop.c (ipa_get_param_decl_index): Export.
2620 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2621 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2623 (ipa_get_lattice): Move here from ipa-cp.c
2624 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2625 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2626 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2627 cgraph_edge_inlinable_p): Remove.
2628 * cgraphunit.c: Include ipainline.h
2629 (cgraph_process_new_functions): Update call of
2630 compute_inline_parameters.
2632 2011-04-22 Richard Guenther <rguenther@suse.de>
2634 * tree.c (build_int_cst): Properly create canonicalized integer
2636 (build_int_cst_type): Remove scary comments.
2638 2011-04-22 Xinliang David Li <davidxl@google.com>
2640 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2641 by default when -Wno-error is not specified.
2642 * opts-global.c (decode_options): Remove call to
2643 control_warning_options.
2645 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2647 PR tree-optimization/48717
2648 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2649 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2651 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2653 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2654 definition where used.
2656 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2659 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2660 TREE_STATIC variables declared inside of some OpenMP construct.
2662 2011-04-22 Martin Jambor <mjambor@suse.cz>
2665 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2667 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2670 * c-typeck.c (pop_init_level): Do not warn about initializing
2673 2011-04-22 Alan Modra <amodra@gmail.com>
2675 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2676 when returning call_cookie.
2677 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2678 pointers, to functions with no more vector args than the current
2679 function, and some non-local calls for ABI_V4.
2680 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2681 sibcall_nonlocal_aix64): Combine to ..
2682 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2683 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2684 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2685 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2686 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2688 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2689 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2690 sibcall_value_symbolic_64): Delete.
2692 2011-04-21 Xinliang David Li <davidxl@google.com>
2694 * cgraph.h: Remove pid.
2695 * cgraph.c: Remove pid.
2696 * value-prof.c (init_node_map): New function.
2697 (del_node_map): New function.
2698 (find_func_by_funcdef_no): New function.
2699 (gimple_ic_transform): Call new function.
2700 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2701 * function.c (get_last_funcdef_no): New function.
2702 * function.h (get_last_funcdef_no): New function.
2703 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2704 to libgcov function.
2705 (tree-profiling): Call node map init and delete function.
2707 2011-04-21 Ian Lance Taylor <iant@google.com>
2709 * godump.c (go_format_type): Use exported Go name for anonymous
2712 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2714 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2715 Call builtin_function_type_list instead of builtin_function_type.
2716 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2718 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2720 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2721 build_function_type_list instead of build_function_type.
2722 Delete variable `endlink'.
2724 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2726 * config/s390/s390.c (s390_init_builtins): Call
2727 build_function_type_list instead of build_function_type.
2729 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2731 * config/ia64/ia64.c (ia64_init_builtins): Call
2732 build_function_type_list instead of builtin_function_type.
2734 2011-04-21 Easwaran Raman <eraman@google.com>
2736 * cfgexpand.c (stack_var): Remove OFFSET...
2737 (add_stack_var): ...and its reference here...
2738 (expand_stack_vars): ...and here.
2739 (stack_var_cmp): Sort by descending order of size.
2740 (partition_stack_vars): Change heuristic.
2741 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2742 (dump_stack_var_partition): Add newline after each partition.
2744 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2745 Jeff Law <law@redhat.com>
2747 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2748 * gengtype.c (matching_file_name_substitute): Likewise.
2750 2011-04-21 Richard Guenther <rguenther@suse.de>
2753 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2755 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2757 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2759 2011-04-21 Richard Guenther <rguenther@suse.de>
2761 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2764 2011-04-21 Richard Guenther <rguenther@suse.de>
2766 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2767 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2768 Use DECL_P, not SSA_VAR_P.
2769 (ptr_derefs_may_alias_p): Likewise.
2770 (ptr_deref_may_alias_ref_p_1): Likewise.
2771 (decl_refs_may_alias_p): Likewise.
2772 (refs_may_alias_p_1): Likewise.
2773 (ref_maybe_used_by_call_p_1): Likewise.
2774 (call_may_clobber_ref_p_1): Likewise.
2775 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2776 are either MEM_REF or TARGET_MEM_REF.
2777 (indirect_refs_may_alias_p): Likewise.
2778 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2779 for MEM_EXPR of indirect calls.
2781 2011-04-21 Tristan Gingold <gingold@adacore.com>
2783 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2784 (dst_file_info_struct): Remove flen field.
2785 (lookup_filename): Remove code that set flen field.
2787 2011-04-21 Tristan Gingold <gingold@adacore.com>
2789 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2791 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2794 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2795 vec_extract and vec_concat for non-SSE4_1 targets.
2797 2011-04-21 Richard Guenther <rguenther@suse.de>
2799 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2802 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2804 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2806 (FILE): Don't undefine.
2808 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2810 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2812 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2814 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2815 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2816 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2818 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2819 definitions where used.
2820 * config/microblaze/microblaze.h (struct microblaze_args): Use
2821 rtx, not struct rtx_def *.
2822 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2824 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2825 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2826 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2827 not struct rtx_def *.
2828 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2830 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2832 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2834 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2836 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2837 operand_equal_p to compare DR_BASE_ADDRESSes.
2838 (vect_check_interleaving): Likewise.
2840 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2843 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2844 for all Neon struct constants.
2846 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2848 * target.def (legitimate_constant_p): New hook.
2849 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2850 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2851 * doc/tm.texi: Regenerate.
2852 * hooks.h (hook_bool_mode_rtx_true): Declare.
2853 * hooks.c (hook_bool_mode_rtx_true): Define.
2854 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2855 * calls.c (precompute_register_parameters): Replace uses of
2856 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2857 (emit_library_call_value_1): Likewise.
2858 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2859 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2860 * ira-costs.c (scan_one_insn): Likewise.
2861 * recog.c (general_operand, immediate_operand): Likewise.
2862 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2863 * reload1.c (init_eliminable_invariants): Likewise.
2865 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2867 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2868 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2870 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2871 * config/alpha/predicates.md (input_operand): Update call to
2872 alpha_legitimate_constant_p.
2874 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2875 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2876 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2877 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2878 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2879 (arm_legitimate_constant_p): New functions.
2880 (arm_cannot_force_const_mem): Make static.
2882 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2884 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2885 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2886 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2887 instead of bfin_legitimate_constant_p.
2888 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2889 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2891 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2893 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2895 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2896 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2897 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2898 (frv_legitimate_constant_p): Make static. Add a mode argument.
2900 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2901 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2902 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2904 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2905 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2906 * config/i386/i386.c (legitimate_constant_p): Rename to...
2907 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2909 (ix86_cannot_force_const_mem): Update accordingly.
2910 (ix86_legitimate_address_p): Likewise.
2911 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2912 * config/i386/i386.md: Update commentary.
2914 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2915 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2916 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2917 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2919 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2921 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2922 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2923 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2924 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2926 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2927 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2928 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2930 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2931 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2932 (m32r_legitimate_constant_p): New function.
2934 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2935 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2936 LEGITIMATE_CONSTANT_P.
2937 (LEGITIMATE_CONSTANT_P): Delete.
2938 * config/m68k/m68k.c (m68k_expand_prologue): Call
2939 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2940 (m68k_legitimate_constant_p): New function.
2941 * config/m68k/m68k.md: Update comments.
2943 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2944 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2945 (mcore_legitimate_constant_p): New function.
2947 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2948 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2949 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2950 Add a mode argument.
2951 (mep_legitimate_address): Update accordingly.
2952 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2954 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2956 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2957 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2958 static. Check OP's mode for VOIDmode.
2959 (microblaze_legitimate_constant_p): New function.
2960 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2962 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2963 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2964 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2965 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2966 * config/mips/predicates.md: Update comments.
2968 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2969 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2970 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2971 (mmix_legitimate_constant_p): Make static, return a bool, and take
2973 (mmix_print_operand_address): Update accordingly.
2975 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2977 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2978 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2979 static. Add a mode argument.
2980 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2982 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2984 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2985 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2986 (pa_legitimate_constant_p): New function.
2988 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2990 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2991 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2992 (pdp11_legitimate_constant_p): New function.
2994 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2995 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2996 (rs6000_legitimate_constant_p): New function.
2998 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2999 (rx_legitimate_constant_p): ...this.
3000 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3001 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3002 (rx_legitimate_constant_p): ...this.
3003 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3004 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3006 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3007 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3008 * config/s390/s390.c (legitimate_constant_p): Rename to...
3009 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3010 and add a mode argument.
3011 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3013 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3015 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3016 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3017 (sh_legitimate_constant_p): New function.
3019 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3020 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3021 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3022 (legitimate_constant_p): Rename to...
3023 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3025 (constant_address_p): Update accordingly.
3027 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3028 argument and return a bool.
3029 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3030 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3031 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3032 (spu_rtx_costs): Update accordingly.
3033 * config/spu/predicates.md (vec_imm_operand): Likewise.
3035 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3037 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3038 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3039 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3041 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3042 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3043 * config/vax/vax.c (legitimate_constant_p): Likewise.
3045 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3046 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3047 (xtensa_legitimate_constant_p): New function.
3049 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3051 * target.def (cannot_force_const_mem): Add a mode argument.
3052 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3053 * doc/tm.texi: Regenerate.
3054 * hooks.h (hook_bool_mode_rtx_false): Declare.
3055 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3056 (hook_bool_mode_const_rtx_true): Likewise.
3057 (hook_bool_mode_rtx_false): New function.
3058 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3059 to be non-VOID. Update call to cannot_force_const_mem.
3060 (find_reloads): Update accordingly.
3061 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3062 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3064 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3065 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3066 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3067 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3068 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3069 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3070 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3071 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3072 (m68k_cannot_force_const_mem): ...this new function.
3073 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3075 (mips_const_insns, mips_legitimize_const_move): Update calls.
3076 (mips_secondary_reload_class): Likewise.
3077 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3078 (pa_cannot_force_const_mem): ...this new function.
3079 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3080 (rs6000_cannot_force_const_mem): ...this new function.
3081 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3083 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3084 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3086 (xtensa_cannot_force_const_mem): ...this new function.
3088 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3090 * config/mips/mips.c (mips16_build_function_stub): Call
3091 build_function_type_list instead of build_function_type.
3092 (mips16_build_call_stub): Likewise.
3094 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3096 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3097 instead of build_function_type.
3099 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3101 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3102 instead of build_function_type.
3104 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3107 * config/i386/i386.md (insv): Change operand 0 constraint to
3108 "register_operand". Change operand 1 and 2 constraint to
3109 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3110 * config/i386/sse.md (sse4_1_pinsrb): Export.
3111 (sse2_pinsrw): Ditto.
3112 (sse4_1_pinsrd): Ditto.
3113 (sse4_1_pinsrq): Ditto.
3114 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3115 * config/i386/i386.c (ix86_expand_pinsr): New.
3117 2011-04-20 Easwaran Raman <eraman@google.com>
3119 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3120 containing union type only with -fstrict-aliasing.
3122 2011-04-20 Jim Meyering <meyering@redhat.com>
3124 Remove useless if-before-free tests.
3125 * calls.c (expand_call, save_area): Likewise.
3126 * cfgcleanup.c (try_forward_edges): Likewise.
3127 * collect2.c (collect_execute): Likewise.
3128 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3129 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3130 * coverage.c (coverage_checksum_string): Likewise.
3131 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3132 * cselib.c (cselib_init): Likewise.
3133 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3134 (df_set_clean_cfg): Likewise.
3135 * function.c (free_after_compilation): Likewise.
3136 * gcc.c (do_spec_1, main): Likewise.
3137 * gcov.c (create_file_names): Likewise.
3138 * gensupport.c (identify_predicable_attribute): Likewise.
3139 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3140 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3141 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3142 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3143 * ipa-pure-const.c (local_pure_const): Likewise.
3144 * ipa-reference.c (propagate): Likewise.
3145 * ira-costs.c (free_ira_costs): Likewise.
3146 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3147 * matrix-reorg.c (mat_free): Likewise.
3148 * prefix.c (get_key_value): Likewise.
3149 * profile.c (compute_value_histograms): Likewise.
3150 * reload1.c (free_reg_equiv): Likewise.
3151 * sched-deps.c (free_deps): Likewise.
3152 * sel-sched-ir.c (fence_clear): Likewise.
3153 * sese.c (set_rename, if_region_set_false_region): Likewise.
3154 * tree-data-ref.c (free_rdg): Likewise.
3155 * tree-eh.c (lower_try_finally): Likewise.
3156 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3157 * tree-ssa-live.c (delete_var_map): Likewise.
3158 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3159 * tree-ssa-pre.c (phi_trans_add): Likewise.
3161 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3163 PR tree-optimization/48611
3164 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3165 beyond ERT_MUST_NOT_THROW region.
3167 2011-04-20 Catherine Moore <clm@codesourcery.com>
3169 * config/mips/mips.opt (mfix-24k): New.
3170 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3171 * config/mips/mips.md (length): Increase by 4 for stores if
3173 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3174 all noreorder if fixing 24K errata.
3175 * doc/invoke.texi: Document mfix-24k.
3177 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3179 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3180 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3182 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3184 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3185 (const_ok_for_op): ... to here.
3187 2011-04-20 Kai Tietz <ktietz@redhat.com>
3189 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3190 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3192 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3194 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3196 2011-04-20 Richard Guenther <rguenther@suse.de>
3198 PR tree-optimization/47892
3199 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3202 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3204 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3206 2011-04-20 Tristan Gingold <gingold@adacore.com>
3208 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3210 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3214 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3215 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3216 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3217 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3218 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3220 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3223 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3224 (avr_asm_named_section, avr_asm_output_aligned_common,
3225 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3226 New functions to update...
3227 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3228 (avr_asm_init_sections): Overwrite section callbacks for
3229 data_section, bss_section.
3230 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3232 (avr_file_end): ...here.
3234 2011-04-20 Richard Guenther <rguenther@suse.de>
3237 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3238 objects and types here. Adjust for their offset before comparing.
3240 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3242 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3245 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3247 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3248 (GIMPLE_H): Include $(INTERNAL_FN_H).
3249 (OBJS-common): Add internal-fn.o.
3250 (internal-fn.o): New rule.
3251 * internal-fn.def: New file.
3252 * internal-fn.h: Likewise.
3253 * internal-fn.c: Likewise.
3254 * gimple.h: Include internal-fn.h.
3255 (GF_CALL_INTERNAL): New gf_mask.
3256 (gimple_statement_call): Put fntype into a union with a new
3258 (gimple_build_call_internal): Declare.
3259 (gimple_build_call_internal_vec): Likewise.
3260 (gimple_call_same_target_p): Likewise.
3261 (gimple_call_internal_p): New function.
3262 (gimple_call_internal_fn): Likewise.
3263 (gimple_call_fntype): Return null for internal calls.
3264 (gimple_call_set_fntype): Assert that the function is not internal.
3265 (gimple_call_set_fn): Likewise.
3266 (gimple_call_set_fndecl): Likewise.
3267 (gimple_call_set_internal_fn): New function.
3268 (gimple_call_addr_fndecl): Handle null functions.
3269 (gimple_call_return_type): Likewise null types.
3270 * gimple.c (gimple_build_call_internal_1): New function.
3271 (gimple_build_call_internal): Likewise.
3272 (gimple_build_call_internal_vec): Likewise.
3273 (gimple_call_same_target_p): Likewise.
3274 (gimple_call_flags): Handle calls to internal functions.
3275 (gimple_call_fnspec): New function.
3276 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3277 (gimple_has_side_effects): Handle null functions.
3278 (gimple_rhs_has_side_effects): Likewise.
3279 (gimple_call_copy_skip_args): Handle calls to internal functions.
3280 * cfgexpand.c (expand_call_stmt): Likewise.
3281 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3282 * gimple-fold.c (gimple_fold_call): Handle null functions.
3283 (gimple_fold_stmt_to_constant_1): Don't fold
3284 calls to internal functions.
3285 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3287 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3288 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3289 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3290 (do_warn_unused_result): Likewise.
3291 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3292 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3293 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3294 the target of a call.
3295 (initialize_hash_element): Update accordingly.
3296 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3297 (iterative_hash_hashable_expr): Handle calls to internal functions.
3298 (print_expr_hash_elt): Likewise.
3299 * tree-ssa-pre.c (can_value_number_call): Likewise.
3300 (eliminate): Handle null functions.
3301 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3302 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3303 (find_func_aliases): Likewise.
3304 * value-prof.c (gimple_ic_transform): Likewise.
3305 (gimple_indirect_call_to_profile): Likewise.
3306 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3307 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3309 2011-04-19 Jan Hubicka <jh@suse.cz>
3311 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3312 * ipa-inline.c (inline_small_functions): Compute summaries first,
3313 populate heap later.
3315 2011-04-19 Jan Hubicka <jh@suse.cz>
3317 * cgraph.h (save_inline_function_body): Remove.
3318 * ipa-inline-transform.c: New file, broke out of...
3319 * ipa-inline.c: ... this one; Update toplevel comment.
3320 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3322 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3323 (cgraph_mark_inline_edge): Rename to inline_call; move to
3324 ipa-inline-transform.c.
3325 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3326 move to ipa-inline-transform.c
3327 (recursive_inlining, inline_small_functions, flatten_function,
3328 ipa_inline, inline_always_inline_functions,
3329 early_inline_small_functions): Update.
3330 (inline_transform): Move to ipa-inline-transform.c.
3331 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3333 * Makefile.in (ipa-inline-transform.o): New file.
3334 * cgraphunit.c (save_inline_function_body): Move to
3335 ipa-inline-transform.c
3337 2011-04-19 DJ Delorie <dj@redhat.com>
3339 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3340 registers if we already know there aren't any.
3341 (m32c_emit_epilogue): Don't emit a barrier here.
3342 (m32c_emit_eh_epilogue): Likewise.
3343 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3344 operands at expand time.
3345 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3347 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3348 duplicates. Provide aliases instead.
3349 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3350 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3353 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3355 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3356 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3357 (general_or_i64_p, sparc_register_move_cost): New function.
3359 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3361 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3362 Add lynx, mipssde. Sort table.
3364 2011-04-19 Xinliang David Li <davidxl@google.com>
3366 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3369 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3372 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3373 is a SUBREG with non-MODE_INT mode inside of it.
3375 2011-04-19 Martin Jambor <mjambor@suse.cz>
3377 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3378 also according to actual contants.
3379 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3380 (gimple_fold_call): Use it.
3381 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3383 2011-04-19 Martin Jambor <mjambor@suse.cz>
3385 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3386 non-pointer assignments.
3388 2011-04-19 Martin Jambor <mjambor@suse.cz>
3390 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3391 account anc_offset and otr_type from the indirect edge info.
3392 * ipa-prop.c (get_ancestor_addr_info): New function.
3393 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3394 get_ancestor_addr_info, call it.
3395 (ipa_note_param_call): Do not initialize information about polymorphic
3396 calls, return the indirect call graph edge. Remove the last
3397 parameter, adjust all callers.
3398 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3399 parameters. Initialize polymorphic information in the indirect edge.
3401 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3404 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3405 the types if they have different enumeration identifiers.
3407 2011-04-19 Jan Hubicka <jh@suse.cz>
3409 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3410 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3411 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3412 (optimize_function_for_size_p) ... here.
3414 2011-04-19 Richard Guenther <rguenther@suse.de>
3417 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3420 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3422 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3423 if DECL_NO_INLINE_WARNING_P is set on the function.
3425 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3428 * reload1.c (inc_for_reload): Return void. All callers changed.
3429 (emit_input_reload_insns): Don't try to delete previous output
3430 reloads to a register, or record spill_reg_store for autoincs.
3432 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3434 * gengtype.h: Updated copyright year.
3435 (struct input_file_st): Add inpisplugin field.
3436 (type_fileloc): New function.
3438 (write_typed_struct_alloc_def): Add gcc_assert.
3439 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3440 (write_typed_alloc_defns): Don't output for plugin files.
3441 (input_file_by_name): Clear inpisplugin field.
3442 (main): Set inpisplugin field for plugin files.
3444 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3446 * gengtype-state.c (string_eq): New.
3447 (read_state): Use string_eq instead of strcmp when creating the
3450 2011-04-19 Wei Guozhi <carrot@google.com>
3453 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3454 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3456 * config/arm/constraints.md (Uu): New constraint.
3457 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3459 2011-04-19 Tristan Gingold <gingold@adacore.com>
3461 * config.gcc (-*-*-*vms): Added.
3462 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3464 * config/vms/vms-ld.c: New file.
3465 * config/vms/vms-ar.c: New file.
3466 * config/vms/t-vmsnative: New file.
3468 2011-04-18 Xinliang David Li <davidxl@google.com>
3470 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3472 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3475 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3476 if TREE_TYPE (v) is non-NULL.
3478 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3479 gimple_get_virt_mehtod_for_binfo.
3480 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3481 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3483 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3485 2011-04-18 Michael Matz <matz@suse.de>
3486 Steve Ellcey <sje@cup.hp.com>
3488 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3489 use its mode as source mode if it isn't VOIDmode.
3491 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3493 * doc/passes.texi: Fill crossref nodes.
3495 2011-04-18 Jim Meyering <meyering@redhat.com>
3497 Fix doubled-word typos in comments and strings
3498 * config/alpha/vms-unwind.h: s/for for/for/
3499 * config/arm/unwind-arm.h: Likewise.
3500 * config/microblaze/microblaze.c: Likewise.
3501 * config/sh/constraints.md: s/in in/in/
3502 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3504 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3506 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3507 (AVX_FLOAT_MODE_P): Ditto.
3508 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3509 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3510 (AVX_VEC_FLOAT_MODE_P): Ditto.
3511 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3512 (UNSPEC_MASKSTORE): Ditto.
3513 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3514 Merge from <sse>_movmsk<ssemodesuffix> and
3515 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3516 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3518 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3519 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3520 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3522 2011-04-18 Jan Hubicka <jh@suse.cz>
3524 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3526 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3527 (want_inline_function_called_once_p): Break out the logic from
3529 (edge_badness): Ensure that profile is not misupdated.
3530 (lookup_recursive_calls): Prioritize by call frequencies.
3531 (inline_small_functions): Move program size estimates here;
3532 actually process whole queue even when unit growth has been
3533 met. (to properly compute inline_failed reasons and for the
3534 case unit size decrease.) Revisit comments on recursive inlining.
3535 (ipa_inline): Remove unit summary code; first inline hot calls
3536 of functions called once, cold calls next.
3537 (order, nnodes): Remove unused variables.
3538 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3539 (GTFILES): Remove ipa-inline.c
3540 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3542 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3544 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3546 2011-04-18 Jie Zhang <jie@codesourcery.com>
3547 Richard Earnshaw <rearnsha@arm.com>
3549 * arm.c (neon_builtin_type_bits): Remove.
3550 (typedef enum neon_builtin_mode): New.
3551 (T_MAX): Don't define.
3552 (typedef enum neon_builtin_datum): Remove bits, codes[],
3553 num_vars and base_fcode. Add mode, code and fcode.
3554 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3555 VAR10): Change accordingly.
3556 (neon_builtin_data[]): Change accordingly
3557 (arm_init_neon_builtins): Change accordingly.
3558 (neon_builtin_compare): Remove.
3559 (locate_neon_builtin_icode): Remove.
3560 (arm_expand_neon_builtin): Change accordingly.
3562 * arm.h (enum arm_builtins): Move to ...
3563 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3565 * arm.c (arm_builtin_decl): Declare.
3566 (TARGET_BUILTIN_DECL): Define.
3567 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3568 (arm_builtin_decls[]): New.
3569 (arm_init_neon_builtins): Store builtin declarations in
3570 arm_builtin_decls[].
3571 (arm_init_tls_builtins): Likewise.
3572 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3573 (arm_builtin_decl): New.
3575 2011-04-18 Richard Guenther <rguenther@suse.de>
3577 * tree.c (upper_bound_in_type): Build properly canonicalized
3579 (lower_bound_in_type): Likewise.
3581 2011-04-18 Richard Guenther <rguenther@suse.de>
3583 * gimple.h (gimple_call_addr_fndecl): New function.
3584 (gimple_call_fndecl): Use it.
3585 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3587 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3588 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3590 2011-04-18 Richard Guenther <rguenther@suse.de>
3593 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3595 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3598 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3599 DECL_IN_CONSTANT_POOL without RTL.
3601 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3602 Ira Rosen <ira.rosen@linaro.org>
3605 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3606 to match neon_vzip/vuzp/vtrn_internal.
3607 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3608 outputs explicitly dependent on both inputs.
3609 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3611 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3613 PR tree-optimization/48616
3614 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3615 whether the shift is by scalar or vector based on whether all SLP
3616 scalar stmts have the same rhs.
3618 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3620 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3623 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3625 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3628 2011-04-17 Jan Hubicka <jh@suse.cz>
3630 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3631 * cgrpahunit.c (cgraph_finalize_function): Do not set
3632 finalized_by_frontend.
3633 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3634 finalized_by_frontend.
3636 2011-04-17 Jan Hubicka <jh@suse.cz>
3638 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3639 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3640 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3641 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3643 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3645 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3647 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3650 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3651 is non-null before accessing it.
3652 (input_cgraph): Remove trailing spaces.
3654 2011-04-17 Revital Eres <revital.eres@linaro.org>
3656 * params.def (sms-min-sc): New param flag.
3657 * modulo-sched.c (sms_schedule): Use it.
3658 * doc/invoke.texi (sms-min-sc): Document it.
3660 2011-04-17 Jan Hubicka <jh@suse.cz>
3662 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3663 present, also set gimple_call_set_cannot_inline.
3664 * ipa-inline.c: Update toplevel comment.
3666 (cgraph_clone_inlined_nodes): Fix linebreaks.
3667 (cgraph_check_inline_limits): Restructure to ...
3668 (caller_growth_limits): ... this one; be more tolerant
3669 on growth in nested inline chains; add explanatory comment;
3670 fix stack accounting thinko introduced by previous patch.
3671 (cgraph_default_inline_p): Remove.
3672 (report_inline_failed_reason): New function.
3673 (can_inline_edge_p): New function.
3674 (can_early_inline_edge_p): New function.
3675 (leaf_node_p): Move upwards in file.
3676 (want_early_inline_function_p): New function.
3677 (want_inline_small_function_p): New function.
3678 (want_inline_self_recursive_call_p): New function.
3679 (cgraph_edge_badness): Rename to ...
3680 (edge_badness) ... this one; fix linebreaks.
3681 (update_edge_key): Update call of edge_baddness; add
3682 detailed dump about queue updates.
3683 (update_caller_keys): Use can_inline_edge_p and
3684 want_inline_small_function_p.
3685 (cgraph_decide_recursive_inlining): Rename to...
3686 (recursive_inlining): Use can_inline_edge_p and
3687 want_inline_self_recursive_call_p; simplify and remove no longer
3689 (cgraph_set_inline_failed): Remove.
3690 (add_new_edges_to_heap): Use can_inline_edge_p and
3691 want_inline_small_function_p.
3692 (cgraph_decide_inlining_of_small_functions): Rename to ...
3693 (inline_small_functions): ... this one; cleanup; use
3694 can/want predicates; cleanup debug ouput; work edges till fibheap
3695 is exhausted and do not stop once unit growth is reached; remove
3696 later loop processing remaining edges.
3697 (cgraph_flatten): Rename to ...
3698 (flatten_function): ... this one; use can_inline_edge_p
3699 and can_early_inline_edge_p predicates.
3700 (cgraph_decide_inlining): Rename to ...
3701 (ipa_inline): ... this one; remove unreachable nodes before
3702 inlining functions called once; simplify the pass.
3703 (cgraph_perform_always_inlining): Rename to ...
3704 (inline_always_inline_functions): ... this one; use
3705 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3706 (cgraph_decide_inlining_incrementally): Rename to ...
3707 (early_inline_small_functions): ... this one; simplify
3708 using new predicates; cleanup; make dumps prettier.
3709 (cgraph_early_inlining): Rename to ...
3710 (early_inliner): newer inline regular functions into always-inlines;
3711 fix updating of call stmt summaries.
3712 (pass_early_inline): Update for new names.
3713 (inline_transform): Fix formating.
3714 (gate_cgraph_decide_inlining): Rename to ...
3715 (pass_ipa_inline): ... this one.
3716 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3717 * ipa-inline-analysis.c (dump_inline_summary): Update.
3718 (compute_inline_parameters): Do not compute disregard_inline_limits;
3719 look for mismatching arguments.
3720 (estimate_growth): Fix handlig of non-trivial self recursion.
3721 (inline_read_summary): Do not read info->disregard_inline_limits.
3722 (inline_write_summary): Do not write info->disregard_inline_limits.
3723 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3724 and move all checks into can_inline_edge_p predicate; re-enable code
3725 comparing optimization levels.
3726 (expand_call_inline): Do not test inline_forbidden_into_p.
3727 * Makefile.in (ipa-inline.o): Update arguments.
3729 2011-04-17 Revital Eres <revital.eres@linaro.org>
3731 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3733 2011-04-17 Revital Eres <revital.eres@linaro.org>
3735 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3737 2011-04-17 Michael Matz <matz@suse.de>
3739 PR tree-optimization/48622
3741 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3742 in same order as they're written.
3744 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3746 * config/pa/predicates.md: Reorganize and simplify predicates.
3747 Eliminate duplicate code checks.
3748 (arith_operand): Rename to arith14_operand
3749 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3750 * config/pa/pa.md: Use renamed operands.
3751 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3752 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3753 arith11_operand, adddi3_operand, indexed_memory_operand,
3754 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3755 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3756 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3757 move_dest_operand, move_src_operand, prefetch_cc_operand,
3758 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3759 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3760 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3761 div_operand, int5_operand, movb_comparison_operator,
3762 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3763 arith_double_operand, ireg_operand, lhs_lshift_operand,
3764 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3765 integer_store_memory_operand): Likewise.
3766 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3767 (integer_store_memory_operand, read_only_operand,
3768 function_label_operand, borx_reg_operand,
3769 non_hard_reg_operand): Likewise.
3770 (eq_neq_comparison_operator): Delete unused operator.
3771 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3772 function_label_operand.
3773 (emit_move_sequence): Likewise.
3775 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3777 * config/i386/sse.md (sseunpackmode): New mode attribute.
3778 (ssepackmode): Ditto.
3779 (vec_pack_trunc_<mode>): Macroize expander from
3780 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3781 (vec_unpacks_lo_<mode>): Macroize expander from
3782 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3783 (vec_unpacks_hi_<mode>): Macroize expander from
3784 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3785 (vec_unpacku_lo_<mode>): Macroize expander from
3786 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3787 (vec_unpacku_hi_<mode>): Macroize expander from
3788 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3789 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3790 ix86_expand_sse4_unpack.
3791 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3793 2011-04-16 Jan Hubicka <jh@suse.cz>
3795 * cgraphbuild.c: Include ipa-inline.h.
3796 (reset_inline_failed): Use initialize_inline_failed.
3797 * cgraph.c: Include ipa-inline.h.
3798 (cgraph_create_node_1): Do not initialize estimated_growth.
3799 (initialize_inline_failed): More to ipa-inline-analysis.c
3800 (dump_cgraph_node): Do not dump inline flags.
3801 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3802 and disregard_inline_limits flags.
3803 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3804 time, size, estimated_growth.
3805 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3807 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3808 DECL_DISREGARD_INLINE_LIMITS.
3809 (cgraph_analyze_function): Do not initialize
3810 node->local.disregard_inline_limits.
3811 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3812 inlinable, versionable and disregard_inline_limits.
3813 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3814 cgraph_check_inline_limits, cgraph_default_inline_p,
3815 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3816 add_new_edges_to_heap): Update.
3817 (cgraph_decide_inlining_of_small_function): Update; set
3818 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3819 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3820 cgraph_decide_inlining_incrementally): Update.
3821 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3822 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3823 time, size and estimated_growth parameters.
3824 (estimate_edge_growth): Update.
3825 (initialize_inline_failed): Declare.
3826 * ipa-split.c: Include ipa-inline.h
3827 (execute_split_functions): Update.
3828 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3829 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3830 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3831 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3832 estimated_growth to INT_MIN.
3833 (inline_node_duplication_hook): Likewise.
3834 (dump_inline_summary): Dump new fields.
3835 (compute_inline_parameters): Update.
3836 (estimate_edge_time, estimate_time_after_inlining,
3837 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3838 inline_write_summary):
3839 (initialize_inline_failed): Move here from cgraph.c.
3840 * tree-sra.c: Include ipa-inline.h.
3841 (ipa_sra_preliminary_function_checks): Update.
3842 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3845 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3847 * config/i386/sse.md (V16): New mode iterator.
3849 (AVXMODEQI, AVXMODEDI): Remove.
3850 (sse2, sse3): New mode attribute.
3851 (mov<mode>): Use V16 mode iterator.
3852 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3853 (push<mode>1): Use V16 mode iterator.
3854 (movmisalign<mode>): Ditto.
3855 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3856 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3857 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3858 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3859 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3860 avx_movdqu<avxmodesuffix>.
3861 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3862 *avx_movdqu<avxmodesuffix>.
3863 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3864 avx_lddqu<avxmodesuffix>.
3865 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3866 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3867 avx_movnt<AVXMODEDI:mode>.
3868 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3869 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3871 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3874 * haifa-sched.c (prune_ready_list, schedule_block): Use
3875 sched_pressure_p rather than flag_sched_pressure.
3877 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3879 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3880 cgraph_get_node instead of cgraph_get_create_node.
3882 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3884 * cfgexpand.c (expand_debug_expr): Use
3885 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3887 2011-04-15 Michael Matz <matz@suse.de>
3889 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3890 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3891 * function.c (gimplify_parameters): Ditto.
3892 * gimplify.c (gimplify_vla_decl): Ditto.
3894 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3895 (gimple_call_set_alloca_for_var): New inline function.
3896 (gimple_call_alloca_for_var_p): Ditto.
3897 * gimple.c (gimple_build_call_from_tree): Remember
3898 CALL_ALLOCA_FOR_VAR_P state.
3899 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3901 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3902 calls if they were for VLA objects.
3904 2011-04-15 Martin Jambor <mjambor@suse.cz>
3906 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3909 2011-04-15 Martin Jambor <mjambor@suse.cz>
3912 * tree-emutls.c (lower_emutls_function_body): Call
3913 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3916 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3918 * c-decl.c (detect_field_duplicates): Call
3919 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3921 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3923 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3924 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3925 * ipa-pure-const.c (check_stmt): Call it.
3926 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3928 2011-04-15 Richard Guenther <rguenther@suse.de>
3930 PR tree-optimization/48290
3931 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3932 Properly decide inhibiting propagation based on the valueized
3933 operand. Do loop-closed SSA form preserving here ...
3934 (init_copy_prop): ... not here.
3936 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3939 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3940 (*ieee_smax<mode>3): Likewise.
3942 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3944 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3945 Replace match_operand with match_dup for the third operand in
3948 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3950 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3951 to track processing of conditionals. Update all callers.
3952 (try_combine, simplify_if_then_else): Update.
3954 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3956 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3959 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3961 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3962 instead of match_operand for operand 3.
3964 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3966 * recog.h (insn_operand_data): Add an "allows_mem" field.
3967 * genoutput.c (output_operand_data): Initialize it.
3968 * optabs.c (maybe_legitimize_operand_same_code): New function.
3969 (maybe_legitimize_operand): Use it when matching the original
3972 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3974 * gimplify.c: Fix issues in comments throughout.
3975 (voidify_wrapper_expr): Fix long line.
3976 (build_stack_save_restore): Likewise.
3977 (gimplify_loop_expr): Likewise.
3978 (gimplify_compound_lval): Likewise.
3979 (gimplify_init_ctor_eval): Likewise.
3980 (gimplify_modify_expr_rhs): Likewise.
3981 (omp_notice_threadprivate_variable): Likewise.
3983 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3985 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3986 original one if this is not a builtin function.
3988 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3991 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3992 offset it as needed based on top 2 bits in operands[3], change
3993 MEM mode to SFmode and mask those 2 bits away from operands[3].
3995 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3997 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3998 change from objc_declare_protocols() to objc_declare_protocol().
4000 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4002 * config/i386/sse.md (sse4_1): New mode attribute.
4003 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4004 avx_blend<ssemodesuffix><avxmodesuffix> and
4005 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4006 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4007 avx_blendv<ssemodesuffix><avxmodesuffix> and
4008 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4009 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4010 avx_dp<ssemodesuffix><avxmodesuffix> and
4011 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4012 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4013 (sse4_1_packusdw): Merge with *avx_packusdw.
4014 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4015 (sse4_1_pblendw): Merge with *avx_pblendw.
4016 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4017 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4018 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4020 (sse4_1_round<ssescalarmodesuffix>): Merge with
4021 *avx_round<ssescalarmodesuffix>.
4022 (aesenc): Merge with *avx_aesenc.
4023 (aesenclast): Merge with *avx_aesenclast.
4024 (aesdec): Merge with *avx_aesdec.
4025 (aesdeclast): Merge with *avx_aesdeclast.
4026 (pclmulqdq): Merge with *pclmulqdq.
4027 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4029 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4031 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4034 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4035 (align_local_variable): This. Update DECL_ALIGN.
4036 (add_stack_var): Updated.
4037 (expand_one_stack_var): Likewise.
4039 2011-04-14 Richard Guenther <rguenther@suse.de>
4041 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4043 (dse_initialize_block_local_data, dse_leave_block,
4044 record_voperand_set, get_stmt_uid): Likewise.
4045 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4046 (dse_optimize_stmt): Remove voperand set handling code.
4047 Simplify and improve to handle any kind of killing stmt.
4048 (dse_record_phi): Remove.
4049 (dse_enter_block): Simplify.
4050 (tree_ssa_dse): Likewise.
4051 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4053 2011-04-14 Jan Hubicka <jh@suse.cz>
4055 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4056 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4057 (cgraph_local_info): Remove inline_summary.
4058 * ipa-cp.c: Include ipa-inline.h.
4059 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4060 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4062 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4063 (input_overwrite_node): Do not set inline summary.
4064 (input_node): Do not stream inline summary.
4065 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4066 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4067 growth; we do not have inline parameters computed for that anyway.
4068 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4069 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4070 (inline_summary_t): New type and VECtor.
4071 (debug_inline_summary, dump_inline_summaries): Declare.
4072 (inline_summary): Use VOCtor.
4073 (estimate_edge_growth): Kill hack computing call stmt size directly.
4074 * lto-section-in.c (lto_section_name): Add inline section.
4075 * ipa-inline-analysis.c: Include lto-streamer.h
4076 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4077 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4078 (inline_summary_vec): Define.
4079 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4080 dump_inline_summaries): New functions.
4081 (estimate_function_body_sizes): Properly compute size/time of outgoing
4083 (compute_inline_parameters): Alloc inline_summary; do not compute
4084 size/time of incomming calls.
4085 (estimate_edge_time): Avoid missing time summary hack.
4086 (inline_read_summary): Read inline summary info.
4087 (inline_write_summary): Write inline summary info.
4088 (inline_free_summary): Free all hooks and inline summary vector.
4089 * lto-streamer.h: Add LTO_section_inline_summary section.
4090 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4091 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4093 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4095 * tree-vectorizer.h (vect_strided_store_supported): Add a
4096 HOST_WIDE_INT argument.
4097 (vect_strided_load_supported): Likewise.
4098 (vect_permute_store_chain): Return void.
4099 (vect_transform_strided_load): Likewise.
4100 (vect_permute_load_chain): Delete.
4101 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4102 count argument. Check that the count is a power of two.
4103 (vect_strided_load_supported): Likewise.
4104 (vect_permute_store_chain): Return void. Update after above changes.
4105 Assert that the access is supported.
4106 (vect_permute_load_chain): Likewise.
4107 (vect_transform_strided_load): Return void.
4108 * tree-vect-stmts.c (vectorizable_store): Update calls after
4109 above interface changes.
4110 (vectorizable_load): Likewise.
4111 (vect_analyze_stmt): Don't check for strided powers of two here.
4113 2011-04-14 Richard Guenther <rguenther@suse.de>
4115 PR tree-optimization/48590
4116 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4117 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4118 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4119 BUILT_IN_STACK_SAVE.
4120 * tree-ssa-dce.c (propagate_necessity): Handle
4121 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4123 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4125 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4128 2011-04-14 Richard Guenther <rguenther@suse.de>
4130 * tree.h (get_object_alignment_1): Declare.
4131 * builtins.c (get_object_alignment_1): Split out worker from ...
4132 (get_object_alignment): ... here.
4133 * fold-const.c (get_pointer_modulus_and_residue): Use
4134 get_object_alignment_1.
4136 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4138 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4141 parameter. Generalise code to handle arrays as well as vectors.
4142 (vect_setup_realignment): Update accordingly.
4143 * tree-vect-stmts.c (vectorizable_store): Likewise.
4144 (vectorizable_load): Likewise.
4146 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4148 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4149 within the per-copy loop.
4151 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4153 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4156 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4158 * doc/options.texi (Negative): Explicitly mention that the
4159 Negative chain must be circular.
4161 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4163 * function.h (block_chainon): Declare.
4164 * function.c (block_chainon): Define.
4166 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4167 Eric Weddington <eric.weddington@atmel.com>
4168 Georg-Johann Lay <avr@gjlay.de>
4170 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4172 (avr_init_builtins, avr_expand_builtin,
4173 avr_expand_delay_cycles, avr_expand_unop_builtin,
4174 avr_expand_binop_builtin ): New functions.
4175 (avr_builtin_id): New enum
4176 (struct avr_builtin_description): New struct
4177 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4178 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4180 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4181 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4182 UNSPECV_DELAY_CYCLES): new enumeration values
4183 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4184 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4185 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4186 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4187 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4188 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4189 "fmulsu"): New insns
4191 * config/avr/avr-c.c: fix line endings
4192 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4193 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4194 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4195 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4196 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4198 * doc/extend.texi (AVR Built-in Functions): New node
4199 (Target Builtins): Add documentation of AVR
4202 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4205 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4206 alone. Error if non-const data has attribute progmem.
4208 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4210 * tree.h (struct tree_constructor): Include tree_typed instead of
4212 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4213 TS_TYPED instead of TS_COMMON.
4215 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4217 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4218 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4219 (sse2_psadbw): Merge with *avx_psadbw.
4220 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4221 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4222 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4223 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4224 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4225 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4226 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4227 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4228 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4229 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4230 (ssse3_palignrti): Merge with *avx_palignrti.
4232 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4234 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4235 * tree-ssanames.c (fini_ssanames): VEC_free it.
4236 (make_ssa_name_fn): Update for VECness of free_ssanames.
4237 (release_ssa_name, release_dead_ssa_names): Likewise.
4238 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4240 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4241 TS_TYPED instead of TS_COMMON.
4243 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4245 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4246 statistics_counter_event.
4247 * tree-ssa-copyrename.c (stats): Define.
4248 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4249 statistics_counter_event.
4250 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4251 (bswap_stats, widen_mul_stats): Define.
4252 (insert_reciprocals): Increment rdivs_inserted.
4253 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4254 rfuncs_inserted. Add calls to statistics_counter_event.
4255 (execute_cse_sincos_1): Increment inserted.
4256 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4257 statistics_counter_event.
4258 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4259 of bswap_stats. Add calls to statistics_counter_event.
4260 (convert_mult_to_widen): Increment widen_mults_inserted.
4261 (convert_plusminus_to_widen): Increment maccs_inserted.
4262 (convert_mult_to_fma): Increment fmas_inserted.
4263 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4264 calls to statistics_counter_event.
4266 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4268 PR rtl-optimization/48455
4269 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4270 `temp_costs->mem_cost'.
4272 2011-04-13 Jan Hubicka <jh@suse.cz>
4274 * ipa-inline.h: New file.
4275 * ipa-inline-analysis.c: New file. Broken out of ...
4276 * ipa-inline.c: ... this file; update toplevel comment;
4277 include ipa-inline.h
4278 (inline_summary): Move to ipa-inline.h
4279 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4280 ipa-inline-analysis.c.
4281 (cgraph_estimate_time_after_inlining): Rename to
4282 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4283 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4284 to estimate_edge_growth.
4285 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4286 rename to estimate_size_after_inlining.
4287 (cgraph_mark_inline_edge): Update for new naming convention.
4288 (cgraph_check_inline_limits): Likewise.
4289 (cgraph_edge_badness): Likewise.
4290 (cgraph_decide_recursive_inlining): Likewise.
4291 (cgraph_decide_inlining_of_small_functions): Likewise.
4292 (cgraph_decide_inlining_incrementally): Likewise.
4293 (cgraph_estimate_growth): Rename to estimate_growth; move to
4294 ipa-inline-analysis.c.
4295 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4296 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4297 (compute_inline_parameters): Likewise.
4298 (compute_inline_parameters_for_current): Likewise.
4299 (pass_inline_parameters): Likewise.
4300 (inline_indirect_intraprocedural_analysis): Likewise.
4301 (analyze_function): Rename to inline_analyze_function; likewise.
4302 (add_new_function): Move to ipa-inline-analysis.c.
4303 (inline_generate_summary): Likewise.
4304 (inline_read_summary): Likewise.
4305 (inline_write_summary): Likewise.
4306 * Makefile.in (ipa-inline-analysis.c): New file.
4308 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4310 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4311 * configure: Regenerate.
4313 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4315 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4316 instead of tree_common.
4317 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4319 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4320 TS_TYPED rather than TS_COMMON.
4321 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4323 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4326 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4327 r20 around calls of __tablejump_elpm__
4329 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4332 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4334 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4336 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4338 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4339 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4340 (cfi_vec): New typedef.
4341 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4342 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4343 (cie_cfi_vec): New static variable.
4344 (cie_cfi_head): Delete.
4345 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4346 declaration changed. Use vector rather than list operations.
4347 (new_cfi): Don't initialize the dw_cfi_next field.
4348 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4349 rather than list operations.
4350 (lookup_cfa): Use vector rather than list operations.
4351 (output_cfis): New argument upto. Accept a cfi_vec rather than
4352 a dw_cfi_ref list head as argument. All callers changed.
4353 Iterate over the vector using upto as a maximum index.
4354 (output_all_cfis): New static function.
4355 (output_fde): Use vector rather than list operations. Use the
4356 new upto argument for output_cfis rather than manipulating a
4358 (dwarf2out_begin_prologue): Change initializations to match
4360 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4361 from the vector length rather than searching for the end of a list.
4362 Use output_all_cfis.
4363 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4365 2011-04-13 Nick Clifton <nickc@redhat.com>
4367 * config/rx/rx.md (movmemsi): Do not use this pattern when
4368 volatile pointers are involved.
4370 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4372 * config/i386/sse.md (pinsrbits): Remove.
4373 (sse2_packsswb): Merge with *avx_packsswb.
4374 (sse2_packssdw): Merge with *avx_packssdw.
4375 (sse2_packuswb): Merge with *avx_packuswb.
4376 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4377 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4378 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4379 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4380 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4381 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4382 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4383 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4384 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4385 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4386 (sse2_loadld): Merge with *avx_loadld.
4387 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4388 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4389 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4390 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4391 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4393 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4395 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4397 * print-tree.c (print_node): Likewise.
4398 * tree-inline.c (copy_tree_r): Likewise.
4399 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4400 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4401 instead of TS_COMMON.
4402 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4403 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4404 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4405 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4406 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4408 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4410 (TREE_CHAIN): Check for a TS_COMMON structure.
4411 (TREE_TYPE): Check for a TS_TYPED structure.
4413 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4415 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4416 cgraph_get_create_node instead of cgraph_node.
4418 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4420 * c-parser.c (c_parser_initelt): Updated call to
4421 objc_build_message_expr.
4422 (c_parser_postfix_expression): Likewise.
4424 2011-04-12 Kai Tietz <ktietz@redhat.com>
4426 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4427 MASK_MS_BITFIELD_LAYOUT bit.
4429 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4431 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4432 assert it is always true.
4433 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4436 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4438 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4439 compiling Objective-C to be more efficient.
4441 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4443 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4446 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4448 * recog.h, genoutput.c, optabs.c: Revert last patch.
4450 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4453 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4455 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4457 * recog.h (insn_operand_data): Add an "allows_mem" field.
4458 * genoutput.c (output_operand_data): Initialize it.
4459 * optabs.c (maybe_legitimize_operand_same_code): New function.
4460 (maybe_legitimize_operand): Use it when matching the original
4463 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4465 * genpreds.c (process_define_predicate): Move most processing
4466 to gensupport.c. Continue to validate the expression.
4467 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4468 (process_define_predicate): Move processing to gensupport.c.
4469 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4470 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4471 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4473 (valid_predicate_name_p): New function, split out from old
4474 genpreds.c:process_define_predicate.
4475 (process_define_predicate): New function, combining code from
4476 old genpreds.c and genrecog.c functions.
4477 (process_rtx): Call it for DEFINE_PREDICATE and
4478 DEFINE_SPECIAL_PREDICATE.
4480 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4482 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4483 size of a '%A' memory reference.
4484 (T_DREG, T_QREG): New neon_builtin_type_bits.
4485 (arm_init_neon_builtins): Assert that the load and store operands
4486 are neon_struct_operands.
4487 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4488 (NEON_ARG_MEMORY): New builtin_arg.
4489 (neon_dereference_pointer): New function.
4490 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4491 Handle NEON_ARG_MEMORY.
4492 (arm_expand_neon_builtin): Update after above interface changes.
4493 Use NEON_ARG_MEMORY for loads and stores.
4494 * config/arm/predicates.md (neon_struct_operand): New predicate.
4495 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4496 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4497 (V_four_elem): Tweak formatting.
4498 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4499 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4500 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4501 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4502 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4503 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4504 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4505 Use %A in the output template.
4506 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4507 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4508 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4509 the width of the memory access. Remove post-increment.
4510 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4512 2011-04-12 Nick Clifton <nickc@redhat.com>
4514 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4515 instruction for interrupt handlers if the target is the basic V850
4517 (expand_epilogue): Likewise.
4519 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4521 PR rtl-optimization/48549
4522 * combine.c (propagate_for_debug): Also stop after BB_END of
4523 this_basic_block. Process LAST and just stop processing after it.
4524 (combine_instructions): If last_combined_insn has been deleted,
4525 set last_combined_insn to its PREV_INSN.
4527 2011-04-12 Richard Guenther <rguenther@suse.de>
4529 PR tree-optimization/46076
4530 * gimple.h (struct gimple_statement_call): Add fntype field.
4531 (gimple_call_fntype): Adjust.
4532 (gimple_call_set_fntype): New function.
4533 * gimple.c (gimple_build_call_1): Set the call function type.
4534 * gimplify.c (gimplify_call_expr): Preserve the function
4535 type the frontend used for the call.
4536 (gimplify_modify_expr): Likewise.
4537 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4539 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4541 * tree-ssa.c (useless_type_conversion_p): Function pointer
4542 conversions are useless.
4544 2011-04-12 Martin Jambor <mjambor@suse.cz>
4546 * cgraph.h (cgraph_node): Remove function declaration.
4547 (cgraph_create_node): Declare.
4548 (cgraph_get_create_node): Likewise.
4549 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4550 Updated all callers.
4551 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4552 the decl does not already exist. Call cgraph_get_create_node instead
4554 (cgraph_get_create_node): New function.
4555 (cgraph_same_body_alias): Update comment.
4556 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4557 assert it does not return NULL.
4558 (cgraph_update_edges_for_call_stmt): Likewise.
4559 (cgraph_clone_edge): Likewise.
4560 (cgraph_create_virtual_clone): Likewise.
4561 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4562 instead of cgraph_node.
4563 (cgraph_add_new_function): Call cgraph_create_node or
4564 cgraph_get_create_node instead of cgraph_node.
4565 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4566 instead of cgraph_node.
4567 (record_eh_tables): Likewise.
4568 (mark_address): Likewise.
4569 (mark_load): Likewise.
4570 (build_cgraph_edges): Call cgraph_get_create_node instead
4572 (rebuild_cgraph_edges): Likewise.
4573 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4574 instead of cgraph_node.
4575 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4577 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4578 cgraph_create_node instead of cgraph_node.
4579 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4581 * lto-cgraph.c (input_node): Likewise.
4582 * lto-streamer-in.c (input_function): Likewise.
4583 * varasm.c (mark_decl_referenced): Likewise.
4584 (assemble_alias): Likewise.
4586 2011-04-12 Martin Jambor <mjambor@suse.cz>
4588 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4589 instead of cgraph_node and assert it does not return NULL.
4590 * lto-streamer-in.c (lto_read_body): Likewise.
4591 * omp-low.c (new_omp_context): Likewise.
4592 (create_task_copyfn): Likewise.
4593 * tree-emutls.c (lower_emutls_function_body): Likewise.
4594 * matrix-reorg.c (transform_allocation_sites): Likewise.
4596 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4599 * c-typeck.c (build_asm_expr): Error out on attempts to use
4600 void type outputs or inputs for constraints that allow reg or
4603 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4604 Richard Earnshaw <rearnsha@arm.com>
4607 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4608 to use sign-magnitude offsets. Reject unsupported unaligned
4609 cases. Add detailed description in comments.
4610 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4611 condition from TARGET_32BIT to TARGET_ARM.
4613 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4615 * tree.h (struct typed_tree): New.
4616 (struct tree_common): Include it instead of tree_base.
4617 (TREE_TYPE): Update for new location of type field.
4618 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4619 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4620 (union tree_node): Add typed field.
4621 * treestruct.def (TS_TYPED): New.
4622 * lto-streamer.c (check_handled_ts_structures): Handle it.
4623 * tree.c (MARK_TS_TYPED): New macro.
4624 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4626 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4628 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4629 (force_nonfallthru): Do not alter the loop nest if no basic block
4632 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4634 * config/i386/sse.md (VI): New mode iterator.
4636 (AVX256MODEI): Ditto.
4637 (AVXMODEF4P): Ditto.
4638 (avxvecpsmode): Ditto.
4639 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4640 (sse2_andnot<mode>3): New expander.
4641 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4642 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4643 (<any_logic:code><mode>3): Use VI mode iterator.
4644 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4645 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4646 (*andnottf3): Handle AVX three-operand constraints.
4647 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4649 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4650 Robert Millan <rmh@gnu.org>
4652 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4653 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4654 GNU_USER_DYNAMIC_LINKER64): Define.
4655 (REG_NAME): Don't undefine.
4656 (MD_UNWIND_SUPPORT): Undefine.
4657 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4658 (REG_NAME): Don't undefine.
4659 (MD_UNWIND_SUPPORT): Undefine.
4660 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4662 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4664 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4665 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4667 2011-04-11 Xinliang David Li <davidxl@google.com>
4669 * value-profile.c (check_ic_target): New function.
4670 (gimple_ic_transform): Sanity check indirect call target.
4671 * gimple-low.c (gimple_check_call_args): Interface change.
4672 (gimple_check_call_matching_types): New function.
4673 * tree-inline.c (tree_can_inline_p): Call new function.
4675 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4677 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4678 tree-pretty-print.h & realmpfr.h.
4680 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4683 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4684 (setup_allocno_and_important_classes): Ditto.
4686 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4688 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4689 GNU_USER_DYNAMIC_LINKER.
4690 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4691 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4692 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4693 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4694 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4695 GNU_USER_TARGET_OS_CPP_BUILTINS.
4696 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4698 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4699 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4700 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4701 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4702 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4703 GNU_USER_TARGET_OS_CPP_BUILTINS.
4704 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4705 GNU_USER_DYNAMIC_LINKER.
4706 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4707 GNU_USER_TARGET_OS_CPP_BUILTINS.
4708 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4709 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4710 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4711 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4712 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4713 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4714 GNU_USER_DYNAMIC_LINKER64): Remove.
4715 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4716 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4717 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4718 GNU_USER_DYNAMIC_LINKER.
4719 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4720 GNU_USER_TARGET_OS_CPP_BUILTINS.
4721 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4722 GNU_USER_TARGET_OS_CPP_BUILTINS.
4723 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4724 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4725 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4726 GNU_USER_TARGET_OS_CPP_BUILTINS.
4727 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4728 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4729 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4730 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4732 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4733 GNU_USER_DYNAMIC_LINKER.
4734 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4735 GNU_USER_TARGET_OS_CPP_BUILTINS.
4736 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4737 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4738 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4739 GNU_USER_DYNAMIC_LINKER.
4740 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4742 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4744 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4745 GNU_USER_DYNAMIC_LINKER.
4746 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4747 GNU_USER_DYNAMIC_LINKERN32.
4748 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4749 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4750 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4751 GNU_USER_DYNAMIC_LINKER32.
4752 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4753 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4754 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4755 GNU_USER_DYNAMIC_LINKER.
4756 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4757 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4758 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4761 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4762 GNU_USER_DYNAMIC_LINKER32.
4763 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4764 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4765 GNU_USER_DYNAMIC_LINKER.
4766 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4767 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4768 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4769 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4770 GNU_USER_DYNAMIC_LINKER64.
4771 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4773 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4774 GNU_USER_DYNAMIC_LINKER.
4775 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4776 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4777 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4778 GNU_USER_DYNAMIC_LINKER.
4779 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4781 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4782 GNU_USER_DYNAMIC_LINKER32.
4783 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4784 GNU_USER_DYNAMIC_LINKER64.
4785 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4786 GNU_USER_DYNAMIC_LINKER64.
4787 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4788 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4789 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4790 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4791 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4793 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4795 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4796 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4797 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4798 GNU_USER_DYNAMIC_LINKER.
4799 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4800 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4801 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4802 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4803 GNU_USER_DYNAMIC_LINKER64.
4804 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4805 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4806 GNU_USER_LINK_EMULATION.
4807 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4808 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4809 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4810 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4811 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4812 CPP_SPEC, CC1_SPEC): Remove.
4813 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4814 (GNU_USER_DYNAMIC_LINKER): Define.
4815 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4816 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4817 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4818 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4819 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4820 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4821 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4822 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4823 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4824 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4825 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4826 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4827 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4828 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4829 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4830 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4831 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4832 GNU_USER_DYNAMIC_LINKER.
4833 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4834 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4835 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4836 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4837 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4838 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4839 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4840 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4841 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4842 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4844 2011-04-11 Kai Tietz <ktietz@redhat.com>
4848 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4849 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4851 (ix86_is_msabi_thiscall): Removed.
4852 (ix86_is_type_thiscall): Likewise.
4853 (ix86_get_callcvt): New function.
4854 (ix86_comp_type_attributes): Simplify check.
4855 (ix86_function_regparm): Use ix86_get_callcvt for calling
4856 convention attribute checks.
4857 (ix86_return_pops_args): Likewise.
4858 (ix86_static_chain): Likewise.
4859 (x86_this_parameter): Likewise.
4860 (x86_output_mi_thunk): Likewise.
4861 (ix86_function_type_abi): Optimize check for types without attributes.
4862 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4863 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4864 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4866 (IX86_BASE_CALLCVT): Helper macro.
4867 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4868 Use ix86_get_callcvt for calling convention attribute checks and avoid
4869 symbol-decoration for stdcall in TARGET_RTD case.
4870 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4872 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4875 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4877 * config/i386/sse.md (VI_128): New mode iterator.
4878 (VI12_128): Rename from SSEMODE12.
4879 (VI14_128): Rename from SSEMODE14.
4880 (VI124_128): New mode iterator.
4881 (VI24_128): Rename from SSEMODE248.
4882 (VI248_128): Rename from SSEMODE248.
4883 (SSEMODE124C8): Remove.
4884 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4885 (*sse2_<plusminus_insn><mode>3): Merge with
4886 *avx_<plusminus_insn><mode>3.
4887 (*mulv8hi3): Merge with *avx_mulv8hi3.
4888 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4889 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4890 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4891 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4892 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4893 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4894 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4895 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4896 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4897 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4898 (*<smaxmin:code>v8hi3): Ditto.
4899 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4900 (*<smaxmin:code>v16qi3): Ditto.
4901 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4902 (*sse2_eq<mode>3): Ditto.
4903 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4904 (*sse2_gt<mode>3): Ditto.
4905 (vcondv2di): Split out of vcond<mode>.
4906 (vconduv2di): Split out of vcondu<mode>.
4908 2011-04-11 Richard Guenther <rguenther@suse.de>
4910 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4911 before calling tree_low_cst.
4913 2011-04-11 Richard Guenther <rguenther@suse.de>
4915 * stor-layout.c (layout_type): Compute all array index size operations
4916 in the original type.
4917 (initialize_sizetypes): Add comment.
4918 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4920 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4922 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4924 2011-04-11 Martin Jambor <mjambor@suse.cz>
4926 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4927 of cgraph_node, handle NULL return value.
4928 (cgraph_global_info): Likewise.
4929 (cgraph_rtl_info): Likewise.
4930 * tree-inline.c (estimate_num_insns): Likewise.
4931 * gimplify.c (unshare_body): Likewise.
4932 (unvisit_body): Likewise.
4933 (gimplify_body): Likewise.
4934 * predict.c (optimize_function_for_size_p): Likewise.
4935 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4936 (call_may_clobber_ref_p_1): Likewise.
4937 * varasm.c (function_section_1): Likewise.
4938 (assemble_start_function): Likewise.
4940 2011-04-11 Martin Jambor <mjambor@suse.cz>
4942 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4944 * final.c (rest_of_clean_state): Likewise.
4945 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4946 * passes.c (pass_init_dump_file): Likewise.
4947 (execute_all_ipa_transforms): Likewise.
4948 (function_called_by_processed_nodes_p): Likewise.
4949 * predict.c (maybe_hot_frequency_p): Likewise.
4950 (probably_never_executed_bb_p): Likewise.
4951 (compute_function_frequency): Likewise.
4952 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4953 (unnest_nesting_tree_1): Likewise.
4954 (lower_nested_functions): Likewise.
4955 * tree-optimize.c (execute_fixup_cfg): Likewise.
4956 (tree_rest_of_compilation): Likewise.
4957 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4958 * tree-sra.c (ipa_early_sra): Likewise.
4959 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4960 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4961 * ipa.c (record_cdtor_fn): Likewise.
4962 * ipa-inline.c (cgraph_early_inlining): Likewise.
4963 (compute_inline_parameters_for_current): Likewise.
4964 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4965 * ipa-pure-const.c (local_pure_const): Likewise.
4966 * ipa-split.c (split_function): Likewise.
4967 (execute_split_functions): Likewise.
4968 * cgraphbuild.c (build_cgraph_edges): Likewise.
4969 (rebuild_cgraph_edges): Likewise.
4970 (cgraph_rebuild_references): Likewise.
4971 (remove_cgraph_callee_edges): Likewise.
4972 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4973 (verify_cgraph_node): Likewise.
4974 (cgraph_analyze_functions): Likewise.
4975 (cgraph_preserve_function_body_p): Likewise.
4976 (save_inline_function_body): Likewise.
4977 (save_inline_function_body): Likewise.
4978 * tree-inline.c (copy_bb): Likewise.
4979 (optimize_inline_calls): Likewise.
4981 2011-04-11 Martin Jambor <mjambor@suse.cz>
4983 PR tree-optimization/48195
4984 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4985 ipa_check_create_edge_args.
4986 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4987 ipa_check_create_edge_args.
4988 * ipa-inline.c (inline_generate_summary): Do not call
4989 ipa_check_create_node_params and ipa_check_create_edge_args.
4990 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4991 ipa_check_create_edge_args.
4993 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4995 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4997 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4998 * function.c (record_hard_reg_sets): Likewise.
4999 * ira.c (compute_regs_asm_clobbered): Likewise.
5000 * sched-deps.c (sched_analyze_1): Likewise.
5001 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5003 2011-04-09 Xinliang David Li <davidxl@google.com>
5005 PR tree-optimization/PR48484
5006 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5007 has_valid_pred lazily
5009 2011-04-09 Duncan Sands <baldrick@free.fr>
5011 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5013 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5015 * combine.c (combine_validate_cost): Adjust comments. Set registered
5016 cost of I0 to zero at the end, if any.
5018 2011-04-08 Xinliang David Li <davidxl@google.com>
5020 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5021 to insane profile data.
5023 2011-04-08 Xinliang David Li <davidxl@google.com>
5025 * ipa-cp.c (ipcp_update_profiling): Correct
5026 negative scale factor due to insane profile data.
5028 2011-04-08 Xinliang David Li <davidxl@google.com>
5030 * final.c (dump_basic_block_info): New function.
5031 (final): Dump basic block.
5032 (final_scan_insn): Remove old dump.
5034 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5037 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5040 2011-04-08 Michael Matz <matz@suse.de>
5043 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5045 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5046 * rtl.h (rebuild_jump_labels_chain): Declare.
5047 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5048 insns inserted on edges.
5050 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5052 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5053 * config/arm/arm-arches.def: New.
5054 * config/arm/arm-opts.h: New.
5055 * config/arm/genopt.sh: New.
5056 * config/arm/arm-tables.opt: New (generated).
5057 * config/arm/arm.c (arm_handle_option, arm_target_help,
5058 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5059 (all_architectures): Get most table contents from arm-arches.def.
5060 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5061 arm_selected_tune here.
5062 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5063 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5064 (march=, mcpu=, mtune=): Use Enum and Var.
5065 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5066 (arm.o): Update dependencies.
5068 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5070 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5072 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5073 (write_typed_alloc_defns): Likewise.
5074 (main): Calls write_typed_alloc_defns with output_header.
5076 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5079 * ira-color.c (setup_profitable_hard_regs): Add comments.
5080 Don't take prohibited hard regs into account.
5081 (setup_conflict_profitable_regs): Rename to
5082 get_conflict_profitable_regs.
5083 (check_hard_reg_p): Check prohibited hard regs.
5085 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5087 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5088 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5089 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5091 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5094 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5095 move from floating point to shift amount register.
5096 (emit_move_sequence): Remove secondary reload support for floating
5097 point to shift amount amount register copies.
5098 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5099 amount register copies.
5100 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5101 register, return false if mode isn't a scalar integer mode.
5102 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5104 2011-04-08 Richard Guenther <rguenther@suse.de>
5106 * gimple.c (gimple_call_flags): Remove kludge.
5108 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5110 * sel-sched.c (sel_region_init): Move call to
5111 sel_setup_region_sched_flags after setup_current_loop_nest.
5113 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5115 PR rtl-optimization/48272
5116 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5117 init_insn_reg_pressure_info. Adjust a caller.
5118 * sched-int.h (init_insn_reg_pressure_info): Declare.
5119 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5120 when sched-pressure is enabled.
5122 2011-04-08 Richard Guenther <rguenther@suse.de>
5124 * gimple.c (gimple_set_modified): Do not queue calls to
5125 MODIFIED_NORETURN_CALLS here ...
5126 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5128 2011-04-08 Richard Guenther <rguenther@suse.de>
5131 * toplev.c (lang_dependent_init): Do not open asm_out_file
5132 in WPA mode, nor perform debug machinery initialization.
5133 (finalize): Do not unlink asm_out_file in WPA mode.
5135 2011-04-08 Richard Guenther <rguenther@suse.de>
5137 * gimple.h (gimple_call_fntype): New function.
5138 (gimple_call_return_type): Use it.
5139 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5140 * gimple-low.c (gimple_check_call_args): Likewise.
5141 * gimple.c (gimple_call_flags): Likewise.
5142 (gimple_call_arg_flags): Likewise.
5143 (gimple_call_return_flags): Likewise.
5144 * tree-cfg.c (verify_gimple_call): Likewise.
5145 (do_warn_unused_result): Likewise.
5146 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5147 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5149 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5151 PR rtl-optimization/48235
5152 * sel-sched.c (code_motion_process_successors): Recompute the last
5153 insn in basic block if control flow changed.
5154 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5155 Update condition for ilist_remove.
5157 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5159 PR rtl-optimization/48302
5160 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5161 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5162 it to record added preheader blocks.
5163 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5164 on to sel_add_loop_preheaders.
5165 (sel_region_init): Move call to setup_current_loop_nest after
5168 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5171 * cfgloop.h (loop_has_exit_edges): New helper.
5172 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5174 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5175 that have no exit edges.
5177 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5179 PR rtl-optimization/48442
5180 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5181 all callers. Adjust assert.
5183 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5185 PR tree-optimization/48377
5186 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5187 is_packed to true even for types with smaller TYPE_ALIGN than
5190 2011-04-08 Richard Guenther <rguenther@suse.de>
5193 * doc/tm.texi: Re-generate.
5195 2011-04-08 Wei Guozhi <carrot@google.com>
5198 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5199 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5200 * config/arm/arm.md (*push_multi): Change the length computation to
5203 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5205 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5206 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5207 * doc/tm.texi: Regenerate.
5208 * system.h (ASM_OUTPUT_BSS): Poison.
5209 * varasm.c (asm_output_bss): Remove function.
5210 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5212 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5213 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5214 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5215 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5217 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5219 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5221 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5223 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5225 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5228 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5230 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5231 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5232 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5234 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5235 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5236 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5237 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5238 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5239 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5240 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5241 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5242 options. Don't map other m68k options manually. Don't handle
5243 old-style options as canonical.
5244 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5245 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5247 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5249 * basic-block.h (force_nonfallthru): Move to...
5250 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5251 (force_nonfallthru): ...here.
5252 * cfghooks.c (force_nonfallthru): New function.
5253 * cfgrtl.c (force_nonfallthru): Rename into...
5254 (rtl_force_nonfallthru): ...this.
5255 (commit_one_edge_insertion): Do not set AUX field.
5256 (commit_edge_insertions): Do not discover new basic blocks.
5257 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5258 (cfg_layout_rtl_cfg_hooks): Likewise.
5259 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5260 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5261 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5263 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5265 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5268 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5270 * config/i386/sse.md: Update copyright year.
5271 (avxcvtvecmode): Remove.
5272 (sse_movhlps): Merge with *avx_movhlps.
5273 (sse_movlhps): Merge with *avx_movlhps.
5274 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5275 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5276 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5277 (sse_loadhps): Merge with *avx_loadhps.
5278 (sse_storelps): Merge with *avx_storelps.
5279 (sse_loadlps): Merge with *avx_loadlps.
5280 (sse_movss): Merge with *avx_movss.
5281 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5282 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5283 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5284 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5285 (vec_set<mode>_0): Ditto.
5286 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5287 (sse4_1_insertps): Merge with *avx_insertps.
5288 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5289 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5290 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5291 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5292 (sse2_storehpd): Merge with *avx_storehpd.
5293 (sse2_loadhpd): Merge with *avx_loadhpd.
5294 (sse2_loadlpd): Merge with *avx_loadlpd.
5295 (sse2_movsd): Merge with *avx_movsd.
5296 (*vec_concatv2df): Merge with *vec_concatv2df.
5298 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5301 * combine.c (combine_instructions): Add last_combined_insn,
5302 update it if insn is after it, pass it to all try_combine calls.
5303 (try_combine): Add last_combined_insn parameter, pass it instead of
5304 i3 to propagate_for_debug.
5306 2011-04-07 Nick Clifton <nickc@redhat.com>
5308 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5309 to handle MDR <-> data register transfers.
5310 (movhi_internal): Likewise.
5312 2011-04-07 Alan Modra <amodra@gmail.com>
5314 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5315 previous stack info.
5317 2011-04-07 Tom de Vries <tom@codesourcery.com>
5320 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5321 flow_find_cross_jump. Swap variables to implement backward replacement.
5322 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5324 2011-04-07 Tom de Vries <tom@codesourcery.com>
5327 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5328 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5330 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5331 src1 or src2. Redirect edges to the last basic block. Update
5332 frequency and count on multiple basic blocks in case of fallthru.
5334 2011-04-07 Tom de Vries <tom@codesourcery.com>
5337 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5339 (old_insns_match_p): Change return type. Replace return false/true
5340 with return dir_none/dir_both. Use can_replace_by.
5341 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5342 direction from dir_p. Register replacement direction in dir, last_dir
5343 and afterlast_dir. Handle new return type of old_insns_match_p using
5344 merge_dir. Return replacement direction in dir_p.
5345 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5346 return type of old_insns_match_p.
5347 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5348 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5349 flow_find_cross_jump.
5350 * basic-block.h (enum replace_direction): New type.
5351 (flow_find_cross_jump): Add parameter to declaration.
5353 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5355 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5356 (AVXMODEDCVTPS2DQ): Ditto.
5357 (VEC_FLOAT_MODE): Ditto.
5358 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5359 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5360 (<any_logic:code><mode>3): Use VF mode iterator.
5361 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5362 Use VF mode iterator.
5363 (copysign<mode>3): Use VF mode iterator.
5364 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5365 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5366 (*<any_logic:code><MODEF:mode>3): Merge with
5367 *avx_<any_logic:code><MODEF:mode>3.
5368 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5369 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5370 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5371 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5372 (sse2_cvtdq2ps): Use %v modifier.
5373 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5374 (avx_cvtps2dq<avxmodesuffix>): Remove.
5375 (sse2_cvtps2dq): Use %v modifier.
5376 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5377 (avx_cvttps2dq<avxmodesuffix>): Remove.
5378 (sse2_cvttps2dq): Use %v modifier.
5379 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5380 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5381 (sse2_cvtsd2siq): Fix insn template.
5382 (sse2_cvtsd2siq_2): Ditto.
5383 (sse2_cvttsd2siq): Ditto.
5384 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5385 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5387 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5389 * gcov-io.c: Use GCC Runtime Library Exception.
5391 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5394 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5395 as base_reg whatever register reg has been eliminated to, instead
5396 of hardcoding STACK_POINTER_REGNUM.
5398 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5400 * doc/tm.texi.in: Document C target hooks as separate from general
5402 * doc/tm.texi: Regenerate.
5403 * genhooks.c (struct hook_desc): Add docname field.
5404 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5406 (hook_array): Include c-target.def.
5407 (emit_documentation): Use docname field in output.
5408 (emit_init_macros): Take docname argument. Only emit definitions
5409 for hooks matching docname.
5410 (main): Expect additional arguments in all cases. Pass argument
5411 to emit_init_macros.
5412 * target.def: Move initial macro definitions and comments to
5413 target-hooks-macros.h.
5414 (gcc_targetcm): Move to c-family/c-target.def.
5415 * target.h (targetcm): Move declaration to c-family/c-target.h.
5416 * targhooks.c (default_handle_c_option): Move to
5418 * targhooks.h (default_handle_c_option): Move declaration to
5419 c-family/c-common.h.
5420 * target-hooks-macros.h: New file.
5421 * config.gcc (target_has_targetcm): Define and use to add to
5422 c_target_objs and cxx_target_objs.
5423 * config/default-c.c: New file.
5424 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5425 of target.h and target-def.h.
5426 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5427 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5428 darwin_check_cfstring_format_arg): Make static.
5429 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5430 TARGET_STRING_OBJECT_REF_TYPE_P,
5431 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5432 * config/darwin-protos.h (darwin_objc_construct_string,
5433 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5435 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5436 TARGET_STRING_OBJECT_REF_TYPE_P,
5437 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5438 * config/t-darwin (darwin-c.o): Update dependencies.
5439 * system.h (TARGET_HAS_TARGETCM): Poison.
5440 * Makefile.in (TARGET_H): Update.
5441 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5442 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5443 (default-c.o): New target.
5444 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5445 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5446 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5448 (build/genhooks.o): Update dependencies.
5450 2011-04-06 Richard Guenther <rguenther@suse.de>
5452 * ipa-inline.c (enum inlining_mode): Remove.
5453 (cgraph_flatten): Use some other token.
5454 (cgraph_edge_early_inlinable_p): New function, split out from ...
5455 (cgraph_perform_always_inlining): New function, split out from ...
5456 (cgraph_decide_inlining_incrementally): ... here.
5457 (cgraph_mark_inline_edge): Adjust.
5458 (cgraph_early_inlining): Re-structure.
5459 (pass_early_inline): Require SSA form.
5461 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5462 Julian Brown <julian@codesourcery.com>
5463 Mark Shinwell <shinwell@codesourcery.com>
5465 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5466 LO_REGS only for Thumb-1.
5467 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5468 be used in short instructions when optimising for size on Thumb-2.
5470 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5472 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5473 associated with user returns to be preserved.
5475 2011-04-06 Tristan Gingold <gingold@adacore.com>
5477 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5478 symbol_queue_size, DBXOUT_DECR_NESTING,
5479 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5480 if XCOFF_DEBUGGING_INFO.
5482 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5484 * config/i386/i386.md (attribute isa): New.
5485 (attribute enabled): New.
5486 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5487 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5488 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5489 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5490 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5491 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5492 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5493 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5495 * config/i386/sse.md (VF): New mode iterator.
5499 (SSEMODEF4): Remove.
5500 (attribute sse): Handle V8SF and V4DF modes.
5501 (<absneg:code><mode>2): Use VF mode iterator.
5502 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5504 (<plusminus_insn><mode>3): Use VF mode iterator.
5505 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5506 Use VF mode iterator.
5507 (<sse>_vm<plusminus_insn><mode>3): Merge with
5508 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5509 (mul<mode>3): Use VF mode iterator.
5510 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5511 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5513 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5514 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5515 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5516 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5518 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5519 Use VF1 mode iterator.
5520 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5521 (sqrt<VF2:mode>2): New expander.
5522 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5523 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5524 and sqrtv2df2. Use VF mode iterator.
5525 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5527 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5528 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5529 Use VF1 mode iterator.
5530 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5531 (<smaxmin:code><mode>3): Use VF mode iterator.
5532 (*<smaxmin:code><mode>3_finite): Merge with
5533 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5534 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5535 (<sse>_vm<smaxmin:code><mode>2): Merge with
5536 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5537 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5539 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5541 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5542 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5543 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5544 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5545 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5547 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5548 Use VF_128 mode iterator.
5549 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5551 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5552 VF_128 mode iterator.
5553 (vcond<mode>): Use VF mode iterator.
5554 * config/i386/predicates.md (sse_comparison_operator): Merge with
5555 avx_comparison_float_operator. Do not declare as special_predicate.
5556 * config/i386/i386.c (struct builtin_description): Update for renamed
5558 (ix86_expand_args_builtin): Ditto.
5559 (ix86_expand_sse_compare_mask): Ditto.
5561 2011-04-06 Richard Guenther <rguenther@suse.de>
5563 * tree-inline.c (estimate_num_insns): For calls simply account
5564 for all passed arguments and a used return value.
5566 2011-04-06 Richard Guenther <rguenther@suse.de>
5568 PR tree-optimization/47663
5569 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5570 call_stmt_time fields.
5571 (cgraph_edge_inlinable_p): Declare.
5572 (cgraph_edge_recursive_p): New inline function.
5573 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5574 (cgraph_clone_edge): Copy it.
5575 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5576 Account for call stmt time.
5577 (cgraph_estimate_time_after_inlining): Take edge argument.
5578 (cgraph_estimate_edge_growth): Account call stmt size.
5579 (cgraph_estimate_size_after_inlining): Take edge argument.
5580 (cgraph_mark_inline_edge): Adjust.
5581 (cgraph_check_inline_limits): Likewise.
5582 (cgraph_recursive_inlining_p): Remove.
5583 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5584 (cgraph_decide_recursive_inlining): Take edge argument and
5586 (cgraph_decide_inlining_of_small_functions): Do not avoid
5587 diags for recursive inlining here.
5588 (cgraph_flatten): Adjust.
5589 (cgraph_decide_inlining_incrementally): Likewise.
5590 (estimate_function_body_sizes): Remove call cost handling.
5591 (compute_inline_parameters): Initialize caller edge call costs.
5592 (cgraph_estimate_edge_growth): New function.
5593 (cgraph_estimate_growth): Use it.
5594 (cgraph_edge_badness): Likewise.
5595 (cgraph_check_inline_limits): Take an edge argument.
5596 (cgraph_decide_inlining_of_small_functions): Adjust.
5597 (cgraph_decide_inlining): Likewise.
5598 * tree-inline.c (estimate_num_insns): Only account for call
5599 return value if it is used.
5600 (expand_call_inline): Avoid diagnostics on recursive inline
5602 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5603 (input_edge): Input edge call costs.
5605 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5607 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5609 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5611 * doc/invoke.texi (Spec Files): Fix typo.
5613 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5615 * profile.c (branch_prob): Move declaration of local variable. Remove
5616 obsolete ??? comment. Expand the location explicitly instead of using
5617 the LOCATION_FILE and LOCATION_LINE macros.
5619 2011-04-06 Wei Guozhi <carrot@google.com>
5622 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5623 (arm_cond_branch): Likewise.
5624 (arm_cond_branch_reversed): Likewise.
5625 (arm_jump): Likewise.
5626 (push_multi): Likewise.
5627 * config/arm/constraints.md (Py): New constraint.
5629 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5632 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5634 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5635 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5636 #ifdef DBX_DEBUGGING_INFO.
5638 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5641 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5642 if old and new states differ.
5644 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5646 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5647 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5648 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5649 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5650 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5652 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5653 ColdFire options to -mcpu= options.
5655 2011-04-05 Jeff Law <law@redhat.com>
5657 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5658 check if BB is a successor of LOOP->header and return
5659 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5661 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5663 * cprop.c (struct reg_use): Remove.
5664 (reg_use_table): Make an array of RTX.
5665 (find_used_regs, constprop_register, local_cprop_pass,
5666 bypass_block): Simplify users of reg_use_table.
5667 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5668 on one of the uses found by find_used_regs.
5670 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5673 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5676 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5678 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5680 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5682 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5685 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5687 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5689 * combine.c: Include obstack.h.
5690 (struct insn_link): Define.
5691 (uid_log_links): Adjust type.
5692 (FOR_EACH_LOG_LINK): New macro.
5693 (insn_link_obstack): Declare.
5694 (alloc_insn_link): Define.
5695 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5696 type of link variables.
5697 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5698 (try_combine, record_promoted_values, distribute_notes): Likewise.
5699 (distribute_links): Likewise. Tweak prototype.
5700 (clear_log_links): Delete.
5701 (adjust_for_new_dest): Call alloc_insn_link.
5702 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5704 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5706 * gcse.c (modify_mem_list): Convert to an array of VECs.
5707 (canon_modify_mem_list, compute_transp): Tweak formatting.
5708 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5709 (load_killed_in_block_p): Likewise.
5710 (record_last_mem_set_info): Likewise.
5711 (clear_modify_mem_tables): Likewise.
5713 2011-04-05 Tom de Vries <tom@codesourcery.com>
5716 * function.c (emit_use_return_register_into_block): Only define if
5719 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5721 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5723 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5725 * config/rx/rx-opts.h: New.
5726 * config/rx/rx.c (rx_cpu_type): Remove.
5727 (rx_handle_option): Don't assert that global structures are in
5728 use. Access variables via opts pointer. Defer most handling of
5729 OPT_mint_register_. Use error_at.
5730 (rx_option_override): Handle deferred OPT_mint_register_ here.
5731 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5732 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5733 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5734 (rx_cpu_types): New Enum and EnumValue entries.
5735 (mint-register=): Use Defer and use Var accordingly.
5737 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5739 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5740 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5741 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5743 (debug_free_queue, debug_nesting, symbol_queue_index):
5745 * dbxout.c: ...to here. Make static.
5747 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5749 * gcse.c (modify_pair): Define. Define a VEC of it.
5750 (canon_modify_mem_list): Convert to an array of VECs.
5751 (free_insn_expr_list_list): Delete.
5752 (clear_modify_mem_tables): Call VEC_free instead.
5753 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5754 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5755 (canon_list_insert, compute_transp): Likewise.
5757 2011-04-05 Tom de Vries <tom@codesourcery.com>
5760 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5763 2011-04-05 Tom de Vries <tom@codesourcery.com>
5766 * function.c (emit_use_return_register_into_block): New function.
5767 (thread_prologue_and_epilogue_insns): Use
5768 emit_use_return_register_into_block.
5770 2011-04-05 Tom de Vries <tom@codesourcery.com>
5773 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5776 2011-04-05 Tom de Vries <tom@codesourcery.com>
5778 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5780 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5782 * config/arm/arm.md (define_constants for unspec): Replace with
5784 (define_constants for unspecv): Replace with define_c_enum.
5785 * config/arm/neon.md (define_constants for unspec): Replace with
5788 2011-04-04 Richard Henderson <rth@redhat.com>
5791 * dwarf2out.c (output_line_info): Always emit line info from
5792 at least one section.
5793 (dwarf2out_init): Create text_section_line_info here ...
5794 (set_cur_line_info_table): ... not here.
5796 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5799 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5802 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5804 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5806 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5807 (expr_equiv_p): Remove.
5808 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5809 (hash_scan_set): Update call to insert_set_in_table.
5810 (dump_hash_table): Dump <dest, src> pair.
5811 (lookup_set): Simplify. Lookup <dest, src> pair.
5812 (compute_transp): Remove, fold heavily simplified code into...
5813 (compute_local_properties): ...here. Expect COMP and TRANSP
5815 (find_avail_set): Take set directly from struct expr.
5816 (find_bypass-set): Likewise.
5817 (bypass_block): Likewise.
5818 (cprop_insn): Likewise. Remove redundant INSN_P test.
5820 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5821 checks on form of COND from find_implicit_sets to here.
5822 (find_implicit_sets): Cleanup control flow. Split critical edges
5823 if it exposes implicit sets. Allocate/resize implicit_sets as
5825 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5826 changed something. Run df_analyze after find_implicit_sets if any
5827 edges were split. Do not allocate implicit_sets here.
5829 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5830 (gcse_obstack): Renamed to cprop_obstack.
5831 (GNEW, GNEWVEC, GNEWVAR): Remove.
5833 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5834 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5835 (gcse_alloc): Likewise, and rename to cprop_alloc.
5836 (alloc_gcse_men, free_gcse_mem): Remove.
5837 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5838 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5839 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5841 * cprop.c (oprs_not_set_p): Remove.
5842 (mark_set, mark_clobber): Remove.
5843 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5844 (reg_not_set_p): New function.
5845 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5846 (cprop_insn): Likewise.
5847 (cprop_jump): Use FOR_EACH_EDGE.
5849 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5852 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5853 (rank_for_schedule): Use scheduled_insns vector instead of
5854 last_scheduled_insn.
5855 (ok_for_early_queue_removal): Likewise.
5856 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5858 (choose_ready): Likewise.
5859 (commit_schedule): Use VEC_iterate.
5860 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5861 a dbg_cnt, use it and ensure the first insn is in the ready list.
5862 (haifa_sched_init): Allocate scheduled_insns.
5863 (sched_extend_ready_list): Don't allocate it; reserve space.
5864 (haifa_sched_finish): Free it.
5866 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5868 * optc-gen.awk: Always remove type from Variable entry before
5869 recording in var_seen.
5871 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5873 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5874 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5875 call to tidy_fallthru_edges.
5877 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5879 * doc/options.texi (ToLower): Document.
5880 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5881 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5882 * opts.h (cl_option): Add cl_tolower field.
5883 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5884 arguments with lowercase strings.
5885 * config/rx/rx.opt (mcpu=): Add ToLower.
5886 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5889 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5891 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5893 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5895 * config/vax/vax.c: Include reload.h.
5897 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5899 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5900 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5901 (sparc_preferred_reload_class): New function.
5903 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5906 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5907 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5909 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5911 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5912 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5914 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5916 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5917 (ASM_OUTPUT_ALIGNED_BSS): Define.
5919 2011-04-03 Michael Matz <matz@suse.de>
5921 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5922 and next_slot members.
5923 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5924 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5925 (lto_streamer_cache_append): Declare.
5926 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5927 unsigned index, remove offset parameter, ensure that we append
5928 or update existing entries.
5929 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5930 parameter, update next_slot for append.
5931 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5933 (lto_streamer_cache_insert_at): Likewise.
5934 (lto_streamer_cache_append): New function.
5935 (lto_streamer_cache_lookup): Use unsigned index.
5936 (lto_streamer_cache_get): Likewise.
5937 (lto_record_common_node): Don't test tree_node_can_be_shared.
5938 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5939 (lto_streamer_cache_delete): Don't free offsets member.
5940 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5941 (lto_output_string_with_length): Use lto_output_data_stream.
5942 (lto_output_tree_header): Remove ix parameter, don't write it.
5943 (lto_output_builtin_tree): Likewise.
5944 (lto_write_tree): Adjust callers to above, don't track and write
5945 offset, write unsigned index.
5946 (output_unreferenced_globals): Don't emit all global vars.
5947 (write_global_references): Use unsigned indices.
5948 (lto_output_decl_state_refs): Likewise.
5949 (write_symbol): Likewise.
5950 * lto-streamer-in.c (lto_input_chain): Move earlier.
5951 (input_function): Use unsigned index.
5952 (input_alias_pairs): Don't read and then ignore all global vars.
5953 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5954 don't pass it back, use lto_streamer_cache_append.
5955 (lto_register_var_decl_in_symtab): Use unsigned index.
5956 (lto_register_function_decl_in_symtab): Likewise.
5957 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5959 (lto_get_builtin_tree): Don't read index, use
5960 lto_streamer_cache_append.
5961 (lto_read_tree): Adjust call to lto_materialize_tree.
5963 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5964 don't use function calls in arguments to MIN.
5966 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5969 * gimple.c (gimple_type_leader_entry): Mark deletable.
5971 2011-04-03 Alan Modra <amodra@gmail.com>
5973 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5975 2011-04-03 Michael Matz <matz@suse.de>
5977 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5979 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5981 2011-04-03 Michael Matz <matz@suse.de>
5983 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5984 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5985 without function context.
5986 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5987 current_function_decl and cfun.
5989 2011-04-03 Michael Matz <matz@suse.de>
5991 * tree.c (decl_init_priority_insert): Don't create entry for
5993 (decl_fini_priority_insert): Ditto.
5994 (fields_compatible_p, find_compatible_field): Remove.
5995 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5996 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5998 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6000 * combine.c (try_combine): Remove useless local variable.
6002 2011-04-03 Richard Guenther <rguenther@suse.de>
6003 Ira Rosen <ira.rosen@linaro.org>
6005 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6006 non-variable offsets and compare the remaining bases of the two
6007 accesses instead of looking for exact same data-ref.
6009 2011-04-02 Kai Tietz <ktietz@redhat.com>
6012 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6014 * i386.c (ix86_is_msabi_thiscall): New helper function.
6015 (ix86_is_type_thiscall): New helper function.
6016 (ix86_comp_type_attributes): Handle thiscall for method-functions
6018 (init_cumulative_args): Likewise.
6019 (find_drap_reg): Likewise.
6020 (ix86_static_chain): Likewise.
6021 (x86_this_parameter): Likewise.
6022 (x86_output_mi_thunk): Likewise.
6024 2011-04-01 Olivier Hainque <hainque@adacore.com>
6025 Nicolas Setton <setton@adacore.com>
6026 Eric Botcazou <ebotcazou@adacore.com>
6028 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6029 (add_gnat_descriptive_type_attribute): New function.
6030 (gen_array_type_die): Call it.
6031 (gen_enumeration_type_die): Likewise.
6032 (gen_struct_or_union_type_die): Likewise.
6033 (modified_type_die): Likewise.
6034 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6035 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6036 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6038 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6041 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6042 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6045 2011-03-17 Richard Guenther <rguenther@suse.de>
6048 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6049 origin for decls in other ltrans units.
6050 (input_varpool_node): Likewise.
6052 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6055 * expr.c (expand_assignment): Handle all possibilities
6056 if TO_RTX is CONCAT.
6057 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6058 (store_split_bit_field): If SUBREG_REG (op0) or
6059 op0 itself has smaller mode than word, return it
6060 for offset 0 and const0_rtx for out-of-bounds stores.
6061 If word is const0_rtx, skip it.
6063 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6065 * config/h8300/h8300.c (print_operand_address): Rename to...
6066 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6067 Call h8300_print_operand and h8300_print_operand_address instead of
6068 print_operand and print_operand_address. Declare.
6069 (print_operand): Renake to...
6070 (h8300_print_operand): ...this. Make static. Adjust comments.
6071 Call h8300_print_operand instead of print_operand. Declare.
6072 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6073 (h8300_register_move_cost): Likewise.
6074 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6075 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6076 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6077 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6078 * config/h8300/h8300-protos.h (print_operand): Delete.
6079 (print_operand_address): Delete.
6081 2011-04-01 Richard Henderson <rth@redhat.com>
6084 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6085 in strict mode before dwarf4. Re-order tests to early out
6086 before switching sections.
6088 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6090 * config/h8300/constraints.md: New file.
6091 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6092 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6093 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6094 * config/h8300/predicates.md (bit_operand): Likewise.
6095 (incdec_operand): Use satisfies_constraint_M and
6096 satisfies_constraint_O. Don't use C code block.
6097 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6098 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6099 (compute_mov_length): Use satisfies_constraint_G.
6100 (fix_bit_operand): Use satisfies_constraint_U.
6101 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6102 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6103 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6104 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6105 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6106 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6107 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6108 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6109 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6110 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6111 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6112 (EXTRA_MEMORY_CONSTRAINT): Delete.
6114 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6115 Michael Meissner <meissner@linux.vnet.ibm.com>
6118 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6119 operands, as per the specifications.
6121 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6122 (vec_extract_evenv4sf): Ditto.
6123 (vec_extract_evenv8hi): Ditto.
6124 (vec_extract_evenv16qi): Ditto.
6125 (vec_extract_oddv4si): Ditto.
6127 2011-03-31 Mark Wielaard <mjw@redhat.com>
6129 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6130 high_pc attribute if the CU has no associated code. Only output
6131 DW_AT_entry_pc for CU if not generating strict dwarf and
6134 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6136 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6137 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6139 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6140 * final.c (final_start_function): Call the new function rather
6141 than using a NULL argument for dwarf2out_frame_debug.
6143 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6144 that contains the prologue.
6146 * haifa-sched.c (queue_insn): New arg REASON. All callers
6147 changed. Print it in debugging output.
6149 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6151 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6152 Split most of the code into...
6153 (begin_move_insn): ... here. New function.
6154 (ebb_sched_info): Add a pointer to it.
6155 * haifa-sched.c (scheduled_insns): New static variable.
6156 (sched_extend_ready_list): Allocate it.
6157 (schedule_block): Use it to record the order of scheduled insns.
6158 Perform RTL changes to move insns only after all scheduling
6159 decisions have been made.
6160 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6161 begin_move_insn field.
6162 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6163 * sched-int.h (struct haifa_sched_info): Remove second argument
6164 from begin_schedule_ready hook. Add new member begin_move_insn.
6165 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6166 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6168 * haifa-sched.c (prune_ready_list): New function, broken out of
6170 (schedule_block): Use it.
6172 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6174 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6176 2011-04-01 Kai Tietz <ktietz@redhat.com>
6178 * config.gcc (*-*-mingw*): Allow as option the
6179 posix threading model.
6180 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6181 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6183 (CPP_SPEC): Add pthread/no-pthread handling.
6184 (LIB_SPEC): Likewise.
6185 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6186 (LIB_SPEC): Likewise.
6187 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6188 flag to pass -pthread option for shared libgcc build.
6189 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6190 for shared libgcc build.
6191 * config/i386/t-mingw-pthread: New file.
6192 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6193 New define to enable use of library pthread by default.
6194 * config/i386/mingw.opt (pthread): New driver option.
6195 (no-pthread): New driver option.
6196 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6197 * config/i386/mingw-w64.opt: Likewise.
6199 2011-04-01 Gary Funck <gary@intrepid.com>
6201 * c-decl.c (grokdeclarator): Fix formatting.
6203 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6205 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6206 instead of n_operands.
6207 (set_storage_via_setmem): Likewise.
6208 * optabs.c (maybe_gen_insn): Likewise.
6209 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6210 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6211 (mips_expand_builtin_direct): Likewise.
6212 * config/spu/spu.c (expand_builtin_args): Likewise.
6214 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6216 * recog.h (insn_data_d): Add n_generator_args.
6217 * genoutput.c (data): Likewise.
6218 (output_insn_data): Print it.
6219 (max_opno, num_dups): Delete.
6220 (scan_operands): Just fill in "d->operand[...]".
6221 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6223 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6225 * gensupport.h (pattern_stats): New structure.
6226 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6227 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6228 (max_operand_1, max_operand_vec): Delete.
6229 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6231 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6233 * emit-rtl.c (emit_pattern_after_setloc): New function.
6234 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6235 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6236 (emit_pattern_after): New function.
6237 (emit_insn_after, emit_jump_insn_after): Call it.
6238 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6239 (emit_pattern_before_setloc): New function.
6240 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6241 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6243 (emit_pattern_before): New function.
6244 (emit_insn_before, emit_jump_insn_before): Call it.
6245 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6247 2011-03-31 Richard Henderson <rth@redhat.com>
6249 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6250 (dw_separate_line_info_entry): Remove.
6251 (enum dw_line_info_opcode): New.
6252 (dw_line_info_entry): Use it.
6253 (dw_line_info_table, dw_line_info_table_p): New.
6254 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6255 (line_info_table, line_info_label_num): Remove.
6256 (line_info_table_in_use): Remove.
6257 (separate_line_info_table): Remove.
6258 (separate_line_info_table_allocated): Remove.
6259 (separate_line_info_table_in_use): Remove.
6260 (LINE_INFO_TABLE_INCREMENT): Remove.
6261 (line_info_label_num): New.
6262 (cur_line_info_table): New.
6263 (text_section_line_info, cold_text_section_line_info): New.
6264 (separate_line_info): New.
6265 (SEPARATE_LINE_CODE_LABEL): Remove.
6266 (print_dwarf_line_table): Remove.
6267 (debug_dwarf): Don't dump it.
6268 (output_one_line_info_table): New.
6269 (output_line_info): Use it.
6270 (new_line_info_table): New.
6271 (set_cur_line_info_table): New.
6272 (dwarf2out_switch_text_section): Use it.
6273 (dwarf2out_begin_function): Likewise.
6274 (push_dw_line_info_entry): New.
6275 (dwarf2out_source_line): Rewrite for new line info tables.
6276 (dwarf2out_init): Remove dead initailizations.
6278 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6280 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6282 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6283 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6284 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6285 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6286 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6287 * opt-functions.awk (flag_init, switch_bit_fields): New.
6288 (switch_flags): Don't handle flags moved to bit-fields. Don't
6289 generate CL_MISSING_OK or CL_SAVE.
6290 * optc-gen.awk: Update to generate bit-field output as well as
6292 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6293 bit-field instead of CL_REJECT_DRIVER flag.
6294 * opts-common.c (generate_canonical_option,
6295 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6296 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6297 instead of CL_REJECT_NEGATIVE flag.
6298 * toplev.c (print_switch_values): Use cl_report bit-field instead
6301 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6303 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6304 a zero minimum index only if it is redundant.
6306 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6308 PR rtl-optimization/48381
6309 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6310 instead of ira_class_hard_reg_index for calculating conflicting
6313 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6315 * cprop.c: Clean up hash table building.
6316 (reg_avail_info): Remove.
6317 (oprs_available_p): Remove.
6318 (record_last_reg_set_info): Remove.
6319 (record_last_set_info): Remove.
6320 (reg_available_p): New function.
6321 (gcse_constant_p): Do not treat unfolded conditions as constants.
6322 (make_set_regs_unavailable): New function.
6323 (hash_scan_set): Simplify with new reg_available_p.
6324 (compute_hash_table_work): Traverse insns stream only once.
6325 Do not compute reg_avail_info. Traverse insns in reverse order.
6326 Record implicit sets after recording explicit sets from the block.
6328 2011-03-31 Michael Matz <matz@suse.de>
6330 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6332 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6334 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6335 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6336 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6337 (h8300_mode_dependent_address_p): New function.
6338 (h8300_get_index): Make static.
6340 2011-03-31 Jeff Law <law@redhat.com>
6342 * reload1.c (elimination_effects): Fix typo in recent change.
6344 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6345 typo potentially leading to null pointer dereference.
6347 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6348 (setup_save_areas): Corresponding changes to avoid useless
6351 * jump.c (reversed_comparison_code_parts): Avoid successive return
6352 statements when REVERSE_CONDITION is defined.
6354 * expr.c (expand_assignment): Avoid useless assignments.
6355 (expand_expr_real_1): Likewise.
6356 (expand_expr_real_2): Avoid useless statements.
6358 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6360 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6362 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6365 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6367 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6370 * doc/tm.texi.in (TARGET_VERSION): Remove.
6371 * doc/tm.texi: Regenerate.
6372 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6373 * collect2.c (main): Don't use TARGET_VERSION.
6374 * mips-tdump.c (main): Don't use TARGET_VERSION.
6375 * mips-tfile.c (main): Don't use TARGET_VERSION.
6376 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6377 * config/rs6000/vxworksae.h: Remove.
6378 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6379 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6380 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6381 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6382 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6383 * config/arm/arm.h (TARGET_VERSION): Remove.
6384 * config/arm/coff.h (TARGET_VERSION): Remove.
6385 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6386 * config/arm/elf.h (TARGET_VERSION): Remove.
6387 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6388 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6389 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6390 * config/arm/pe.h (TARGET_VERSION): Remove.
6391 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6392 * config/arm/semi.h (TARGET_VERSION): Remove.
6393 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6394 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6395 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6396 * config/avr/avr.h (TARGET_VERSION): Remove.
6397 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6398 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6399 * config/frv/frv.h (TARGET_VERSION): Remove.
6400 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6401 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6402 * config/i386/darwin.h (TARGET_VERSION): Remove.
6403 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6404 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6405 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6406 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6407 * config/i386/gnu.h (TARGET_VERSION): Remove.
6408 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6409 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6410 * config/i386/linux.h (TARGET_VERSION): Remove.
6411 * config/i386/linux64.h (TARGET_VERSION): Remove.
6412 * config/i386/lynx.h (TARGET_VERSION): Remove.
6413 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6414 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6415 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6416 * config/i386/netware.h (TARGET_VERSION): Remove.
6417 * config/i386/nto.h (TARGET_VERSION): Remove.
6418 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6419 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6420 * config/ia64/elf.h (TARGET_VERSION): Remove.
6421 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6422 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6423 * config/ia64/linux.h (TARGET_VERSION): Remove.
6424 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6425 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6426 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6427 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6428 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6429 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6430 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6431 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6432 * config/m68k/linux.h (TARGET_VERSION): Remove.
6433 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6434 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6435 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6436 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6437 * config/mep/mep.h (TARGET_VERSION): Remove.
6438 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6439 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6440 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6441 * config/mips/linux.h (TARGET_VERSION): Remove.
6442 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6443 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6444 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6445 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6446 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6447 * config/pa/pa.h (TARGET_VERSION): Remove.
6448 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6449 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6450 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6451 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6452 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6453 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6454 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6455 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6456 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6457 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6458 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6459 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6460 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6461 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6462 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6463 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6464 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6465 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6466 * config/s390/linux.h (TARGET_VERSION): Remove.
6467 * config/s390/s390.h (TARGET_VERSION): Remove.
6468 * config/s390/tpf.h (TARGET_VERSION): Remove.
6469 * config/score/score.h (TARGET_VERSION): Remove.
6470 * config/sh/linux.h (TARGET_VERSION): Remove.
6471 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6472 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6473 * config/sh/sh.h (TARGET_VERSION): Remove.
6474 * config/sh/sh64.h (TARGET_VERSION): Remove.
6475 * config/sh/superh.h (TARGET_VERSION): Remove.
6476 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6477 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6478 * config/sparc/linux.h (TARGET_VERSION): Remove.
6479 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6480 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6481 TARGET_NAME32, TARGET_NAME): Remove.
6482 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6483 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6484 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6485 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6486 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6487 * config/spu/spu.h (TARGET_VERSION): Remove.
6488 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6489 * config/v850/v850.h (TARGET_VERSION): Remove.
6490 * config/vax/linux.h (TARGET_VERSION): Remove.
6491 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6492 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6493 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6495 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6498 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6499 frame-related from frame-unrelated adjustments to the stack pointer.
6501 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6503 * common.opt (fdebug-types-section): Move earlier.
6504 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6506 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6508 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6511 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6513 * tree.h (CASE_CHAIN): Define.
6514 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6515 (gimple_redirect_edge_and_branch): Likewise.
6517 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6520 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6523 2011-03-30 Jeff Law <law@redhat.com>
6525 * PR bootstrap/48371
6526 * reload1.c (reload): Fix botch in last change.
6528 * reload.h (struct reload): Fix typo introduced in last change.
6530 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6532 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6533 Undocumented. Remove help text.
6534 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6537 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6539 * doc/options.texi (NegativeAlias): Document.
6540 (Alias): Mention NegativeAlias.
6541 * opt-functions.awk: Handle NegativeAlias.
6542 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6543 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6544 * opts.h (CL_NEGATIVE_ALIAS): Define.
6545 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6546 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6548 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6550 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6551 mno-spe and mno-isel instead of mspe=no and -misel=no.
6553 2011-03-29 Mark Wielaard <mjw@redhat.com>
6555 * common.opt (fdebug-types-section): New flag.
6556 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6557 * dwarf2out.c (use_debug_types): New define.
6558 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6559 (print_die): Guard output of type unit signatures using
6561 (build_abbrev_table): Replace assert of dwarf_version >= 4
6562 with assert on use_debug_types.
6563 (size_of_die): Likewise.
6564 (unmark_dies): Likewise.
6565 (value_format): Decide AT_ref_external form on use_debug_types.
6566 (output_die): Replace dwarf_version version check guard with
6567 use_debug_types where appropriate.
6568 (modified_type_die): Likewise.
6569 (gen_reference_type_die): Likewise.
6570 (dwarf2out_start_source_file): Likewise.
6571 (dwarf2out_end_source_file): Likewise.
6572 (prune_unused_types_walk_attribs): Likewise.
6573 (dwarf2out_finish): Likewise.
6575 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6577 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6579 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6581 PR rtl-optimization/48332
6582 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6583 mode of input operand N and modeN to its actual mode.
6585 2011-03-30 Jeff Law <law@redhat.com>
6587 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6588 define accessor macro.
6589 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6590 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6591 (reg_equiv_init): Likewise.
6592 (reg_equivs_size): New variable.
6593 (reg_equiv_init_size): Remove.
6594 (allocate_initial_values): Move prototype to here from....
6595 * integrate.h (allocate_initial_values): Remove prototype.
6596 * integrate.c: Include reload.h.
6597 (allocate_initial_values): Corresponding changes.
6598 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6599 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6600 (update_equiv_regs): Corresponding changes.
6601 (ira): Corresponding changes.
6602 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6603 (push_secondary_reload): Corresponding changes.
6604 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6605 (make_memloc, find_reloads_address): Corresponding changes.
6606 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6607 (find_reloads_address_1): Corresponding changes.
6608 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6609 (refers_to_regno_for_reload_p): Corresponding changes.
6610 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6611 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6612 * reload1.c: Include ggc.h.
6613 (grow_reg_equivs): New function.
6614 (replace_pseudos_in, reload): Corresponding changes.
6615 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6616 (eliminate_regs_1, elimination_effects): Corresponding changes.
6617 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6618 (delete_output_reload): Likewise.
6619 * caller-save.c (mark_referenced_regs): Corresponding changes.
6620 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6621 * frv/predicates.md (frv_load_operand): Corresponding changes.
6622 * microblaze/microblaze.c (double_memory_operand): Corresponding
6624 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6625 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6626 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6627 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6628 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6630 * pa/pa.c (emit_move_sequence): Corresponding changes.
6631 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6633 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6636 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6637 structure modes. Don't check neon_vector_mem_operand for
6638 vector or structure modes.
6640 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6641 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6644 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6645 operand 1 and reshuffle the operands to match.
6646 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6648 2011-03-30 Christian Schüler <cschueler@gmx.de>
6651 * config/c.opt (F): Added 'Driver' to -F option.
6654 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6656 * config/darwin.opt: Added '-arch' option.
6658 2011-03-30 Nick Clifton <nickc@redhat.com>
6660 * config/rx/rx.md: Add peepholes and patterns to combine
6661 extending loads and simple arithmetic instructions.
6662 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6663 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6664 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6665 modes to use pre-decrement and post-increment addressing.
6666 (rx_is_restricted_memory_address): Add range checking of REG+INT
6668 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6669 (rx_memory_move_cost): Adjust cost of stores.
6670 (rx_adjust_insn_length): New function.
6672 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6675 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6676 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6677 matching arg00/arg01 types.
6679 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6681 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6682 last_location to UNKNOWN_LOCATION.
6684 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6687 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6690 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6691 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6694 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6696 (sparc_cpu): Likewise.
6697 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6700 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6704 PR rtl-optimization/48345
6705 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6706 hard regs for given mode from profitable regs when doing secondary
6709 2011-03-29 Jeff Law <law@redhat.com>
6712 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6713 do_not_duplicate field.
6714 (lookup_redirection_data): Corresponding changes.
6715 (create_duplicates): Always create a template block.
6716 (redirect_edges): Remove code which reused the original block
6717 when it was going to become unreachable code.
6718 (thread_block): Don't set do_not_duplicate field.
6720 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6722 * lto-opts.c (register_user_option_p, lto_register_user_option):
6723 Make type argument unsigned.
6724 * lto-streamer.h (lto_register_user_option): Make type argument
6726 * opth-gen.awk: Make CL_* macros unsigned.
6727 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6728 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6729 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6730 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6731 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6732 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6733 (find_opt): Make lang_mask argument unsigned.
6735 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6737 PR rtl-optimization/48331
6738 PR rtl-optimization/48334
6739 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6740 for any used algorithm.
6742 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6744 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6747 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6749 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6750 (alpha_option_override): Don't set alpha_sr_alias_set.
6751 (emit_frame_store_1): Use gen_frame_mem rather than calling
6753 (alpha_expand_epilogue): Ditto.
6755 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6757 PR tree-optimization/48290
6758 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6759 vectorization, check that relevant phis in the basic block after
6760 the inner loop are really inner loop's exit phis.
6762 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6765 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6766 (cached_dw_loc_list_def): New structure.
6767 (cached_dw_loc_list): New typedef.
6768 (cached_dw_loc_list_table): New variable.
6769 (cached_dw_loc_list_table_hash): New function.
6770 (cached_dw_loc_list_table_eq): Likewise.
6771 (add_location_or_const_value_attribute): Take a bool cache_p.
6772 Cache the list when the parameter is true.
6773 (gen_formal_parameter_die): Update caller.
6774 (gen_variable_die): Likewise.
6775 (dwarf2out_finish): Likewise.
6776 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6777 while generating debug info for the decl.
6778 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6779 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6780 (resolve_addr): Cache the result of resolving a chain of
6783 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6785 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6786 conflict object hard regset nodes have intersecting hard reg sets.
6788 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6789 after regstat_init_n_sets_and_refs.
6791 * ira.c: Add more comments at the top.
6792 (setup_stack_reg_pressure_class, setup_pressure_classes):
6793 Add comments how we compute the register pressure classes.
6794 (setup_allocno_and_important_classes): Add more comments.
6795 (setup_class_translate_array, reorder_important_classes)
6796 (setup_reg_class_relations): Add comments.
6798 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6801 * ira-color.c: Add 2011 to the Copyright line.
6802 (assign_hard_reg): Add more comments.
6803 (improve_allocation): Ditto.
6805 * ira-costs.c: Add 2011 to the Copyright line.
6806 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6808 (setup_regno_cost_classes_by_mode): Ditto.
6810 Initial patches from ira-improv branch:
6812 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6814 * ira-build.c (ira_create_object): Remove initialization of
6815 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6816 (ira_create_allocno): Remove initialization of
6817 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6818 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6819 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6820 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6821 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6822 Initialize ALLOCNO_ADD_DATA.
6823 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6824 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6826 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6827 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6829 * ira.c (ira_reallocate): Remove.
6830 (setup_pressure_classes): Call
6831 ira_init_register_move_cost_if_necessary. Use
6832 ira_register_move_cost instead of ira_get_register_move_cost.
6833 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6834 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6836 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6837 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6838 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6839 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6840 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6841 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6843 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6844 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6845 (struct allocno_color_data): New.
6846 (allocno_color_data_t): New typedef.
6847 (allocno_color_data): New definition.
6848 (ALLOCNO_COLOR_DATA): New macro.
6849 (struct object_color_data): New.
6850 (object_color_data_t): New typedef.
6851 (object_color_data): New definition.
6852 (OBJECT_COLOR_DATA): New macro.
6853 (update_copy_costs, calculate_allocno_spill_cost): Call
6854 ira_init_register_move_cost_if_necessary. Use
6855 ira_register_move_cost instead of ira_get_register_move_cost.
6856 (move_spill_restore, update_curr_costs): Ditto.
6857 (allocno_spill_priority): Make it inline.
6858 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6859 (struct coalesce_data, coalesce_data_t): New.
6860 (allocno_coalesce_data): New definition.
6861 (ALLOCNO_COALESCE_DATA): New macro.
6862 (merge_allocnos, coalesced_allocno_conflict_p): Use
6863 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6864 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6865 (coalesce_allocnos): Ditto.
6866 (setup_coalesced_allocno_costs_and_nums): Ditto.
6867 (collect_spilled_coalesced_allocnos): Ditto.
6868 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6869 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6870 (coalesce_spill_slots): Ditto.
6871 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6872 free allocno_coalesce_data.
6874 * ira-conflicts.c: Fix formatting.
6875 (process_regs_for_copy): Call
6876 ira_init_register_move_cost_if_necessary. Use
6877 ira_register_move_cost instead of ira_get_register_move_cost.
6878 (build_object_conflicts): Optimize.
6880 * ira-costs.c (record_reg_classes): Optimize. Call
6881 ira_init_register_move_cost_if_necessary. Use
6882 ira_register_move_cost, ira_may_move_in_cost, and
6883 ira_may_move_out_cost instead of ira_get_register_move_cost and
6884 ira_get_may_move_cost.
6885 (record_address_regs): Ditto.
6886 (scan_one_insn): Optimize.
6887 (find_costs_and_classes): Optimize.
6888 (process_bb_node_for_hard_reg_moves): Call
6889 ira_init_register_move_cost_if_necessary. Use
6890 ira_register_move_cost instead of ira_get_register_move_cost.
6892 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6893 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6894 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6895 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6897 (ira_initiate_emit_data, ira_finish_emit_data)
6898 (create_new_allocno): New functions.
6899 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6900 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6901 Use ira_register_move_cost instead of ira_get_register_move_cost.
6903 * ira-int.h: Fix some comments.
6904 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6905 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6906 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6907 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6909 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6910 bitfield after mode. Make hard_regno a short int. Make
6911 hard_regno short. Remove first_coalesced_allocno and
6912 next_coalesced_allocno. Move mem_optimized_dest_p,
6913 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6914 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6915 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6916 temp, colorable_p. Add new member add_data.
6917 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6918 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6919 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6920 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6921 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6922 (ALLOCNO_ADD_DATA): New macro.
6923 (ira_emit_data_t): New typedef.
6924 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6925 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6926 from struct ira_allocno.
6927 (ALLOCNO_EMIT_DATA): New macro.
6928 (ira_allocno_emit_data, allocno_emit_reg): New.
6929 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6930 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6931 (OBJECT_ADD_DATA): New macro.
6932 (ira_reallocate): Remove.
6933 (ira_initiate_emit_data, ira_finish_emit_data): New.
6934 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6935 (ira_init_register_move_cost_if_necessary): New.
6936 (ira_object_conflict_iter_next): Merge into
6937 ira_object_conflict_iter_cond.
6938 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6940 * ira-live.c (process_single_reg_class_operands): Call
6941 ira_init_register_move_cost_if_necessary. Use
6942 ira_register_move_cost instead of ira_get_register_move_cost.
6944 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6946 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6948 * ira-costs.c: Fix formatting.
6949 (cost_classes, cost_classes_num): Remove.
6950 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6951 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6952 (cost_classes_del, cost_classes_htab): New.
6953 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6954 (initiate_regno_cost_classes, setup_cost_classes): New.
6955 (setup_regno_cost_classes_by_aclass): New.
6956 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6957 (record_reg_classes): Use regno_cost_classes instead of
6958 cost_classes. Move checking opposite operand up.
6959 (record_address_regs): Use regno_cost_classes
6960 instead of cost_classes.
6961 (scan_one_insn): Ditto. Use always general register.
6962 (print_allocno_costs): Use regno_cost_classes instead of
6964 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6965 (find_costs_and_classes): Set up cost classes for each registers.
6966 Use also their mode for this. Use regno_cost_classes instead of
6968 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6970 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6971 (ira_costs, ira_set_pseudo_classes): Call
6972 initiate_regno_cost_classes and finish_regno_cost_classes.
6974 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6976 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6978 * target.def (ira_cover_classes): Remove.
6980 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6982 * doc/tm.texi.in: Ditto.
6984 * ira-conflicts.c: Remove mentioning cover classes from the file.
6985 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6986 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6988 * targhooks.c (default_ira_cover_classes): Remove.
6990 * targhooks.h (default_ira_cover_classes): Ditto.
6992 * haifa-sched.c: Remove mentioning cover classes from the file.
6993 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6994 ira_pressure_classes and ira_pressure_classes_num instead of
6995 ira_reg_class_cover_size and ira_reg_class_cover. Use
6996 sched_regno_pressure_class instead of sched_regno_cover_class.
6997 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6998 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7000 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7001 classes from the file.
7002 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7003 (struct object_hard_regs, struct object_hard_regs_node): New.
7004 (struct ira_object): New members profitable_hard_regs,
7005 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7006 (struct ira_allocno): Rename cover_class to aclass. Rename
7007 cover_class_cost and updated_cover_class_cost to class_cost and
7008 updated_class_cost. Remove splay_removed_p and
7009 left_conflict_size. Add new members colorable_p.
7010 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7011 (ALLOCNO_COLORABLE_P): New macro.
7012 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7013 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7014 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7015 (OBJECT_...): Rename parameter C to O.
7016 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7017 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7018 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7019 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7020 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7021 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7022 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7023 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7024 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7025 x_ira_reg_class_subunion.
7026 (ira_max_memory_move_cost, ira_max_register_move_cost)
7027 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7028 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7029 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7030 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7031 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7032 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7033 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7034 (ira_tune_allocno_costs_and_cover_classes): Rename to
7035 ira_tune_allocno_costs.
7036 (ira_debug_hard_regs_forest): New.
7037 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7038 (ira_object_conflict_iter_next): Fix comments.
7039 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7040 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7041 cover_class to aclass.
7042 (ira_allocate_and_accumulate_costs): Ditto.
7043 (ira_allocate_and_set_or_copy_costs): Ditto.
7045 * opts.c (decode_options): Remove ira_cover_class check.
7047 * ira-color.c: Remove mentioning cover classes from the file. Use
7048 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7049 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7050 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7051 (splay-tree.h): Remove include.
7052 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7053 before copy_freq_compare_func.
7054 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7055 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7057 (hard_regs_roots, hard_regs_node_vec): Ditto.
7058 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7059 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7060 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7061 (create_new_object_hard_regs_node): Ditto.
7062 (add_new_object_hard_regs_node_to_forest): Ditto.
7063 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7064 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7066 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7067 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7068 (remove_unused_object_hard_regs_nodes): Ditto.
7069 (enumerate_object_hard_regs_nodes): Ditto.
7070 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7071 (object_hard_regs_subnode_t): Ditto.
7072 (struct object_hard_regs_subnode): Ditto.
7073 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7074 (setup_object_hard_regs_subnode_index): Ditto.
7075 (get_object_hard_regs_subnodes_num): Ditto.
7076 (form_object_hard_regs_nodes_forest): Ditto.
7077 (finish_object_hard_regs_nodes_tree): Ditto.
7078 (finish_object_hard_regs_nodes_forest): Ditto.
7079 (allocnos_have_intersected_live_ranges_p): Rename to
7080 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7081 (pseudos_have_intersected_live_ranges_p): Rename to
7082 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7083 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7084 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7085 (update_copy_costs): Remove assert. Skip cost update if the hard
7086 reg does not belong the class.
7087 (assign_hard_reg): Process only profitable hard regs.
7088 (uncolorable_allocnos_num): Make it scalar.
7089 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7090 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7091 and ira_reg_class_max_nregs.
7092 (bucket_allocno_compare_func): Check frequency first.
7093 (sort_bucket): Add compare function as a parameter.
7094 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7095 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7096 (push_allocno_to_stack): Rewrite for checking new allocno
7098 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7099 (push_only_colorable): Pass new parameter to sort_bucket.
7100 (push_allocno_to_spill): Remove.
7101 (allocno_spill_priority_compare): Make it inline and rewrite.
7102 (splay_tree_allocate, splay_tree_free): Remove.
7103 (allocno_spill_sort_compare): New function.
7104 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7105 build and use splay tree. Choose first allocno in uncolorable
7106 allocno bucket to spill. Remove setting spill cost.
7107 (all_conflicting_hard_regs): Remove.
7108 (setup_allocno_available_regs_num): Check only profitable hard
7109 regs. Print info about hard regs nodes.
7110 (setup_allocno_left_conflicts_size): Remove.
7111 (put_allocno_into_bucket): Don't call
7112 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7113 (improve_allocation): New.
7114 (color_allocnos): Call setup_profitable_hard_regs,
7115 form_object_hard_regs_nodes_forest, improve_allocation,
7116 finish_object_hard_regs_nodes_forest. Setup spill cost.
7117 (print_loop_title): Use pressure classes.
7118 (color_allocnso): Ditto.
7119 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7120 and allocnos_for_spilling.
7121 (ira_sort_regnos_for_alter_reg): Don't setup members
7122 {first,next}_coalesced_allocno.
7123 (color): Remove allocating and freeing removed_splay_allocno_vec.
7124 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7125 prohibited_class_mode_regs.
7127 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7129 (update_allocno_pressure_excess_length): Use pressure classes.
7130 (inc_register_pressure, dec_register_pressure): Check for pressure
7132 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7133 pressure class. Use ira_reg_class_nregs instead of
7134 ira_reg_class_max_nregs.
7135 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7136 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7137 (single_reg_class): Use ira_reg_class_nregs instead of
7138 ira_reg_class_max_nregs.
7139 (process_bb_node_lives): Use pressure classes.
7141 * ira-emit.c: Remove mentioning cover classes from the file. Use
7142 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7143 (change_loop): Use pressure classes.
7144 (modify_move_list): Call ira_set_allocno_class instead of
7145 ira_set_allocno_cover_class.
7147 * ira-build.c: Remove mentioning cover classes from the file. Use
7148 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7149 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7150 ALLOCNO_UPDATED_CLASS_COST instead of
7151 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7152 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7153 (ira_create_allocno): Remove initialization of
7154 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7155 ALLOCNO_COLORABLE_P.
7156 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7157 Update conflict regs for the objects.
7158 (create_cap_allocno): Remove assert. Don't propagate
7159 ALLOCNO_AVAILABLE_REGS_NUM.
7160 (ira_free_allocno_costs): New function.
7161 (finish_allocno): Change a part of code into call of
7162 ira_free_allocno_costs.
7163 (low_pressure_loop_node_p): Use pressure classes.
7164 (object_range_compare_func): Don't compare classes.
7165 (setup_min_max_conflict_allocno_ids): Ditto.
7167 * loop-invariant.c: Remove mentioning cover classes from the file.
7168 Use ira_pressure_classes and ira_pressure_classes_num instead of
7169 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7170 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7171 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7172 Use reg_allocno_class instead of reg_cover_class.
7173 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7174 STACK_REG_COVER_CLASS.
7175 (get_regno_cover_class): Rename to get_regno_pressure_class.
7176 (move_loop_invariants): Initialize and finalize regstat.
7178 * ira.c: Remove mentioning cover classes from the file. Add
7179 comments about coloring without cover classes. Use ALLOCNO_CLASS
7180 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7181 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7182 setup_class_subset_and_memory_move_costs.
7183 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7184 (setup_cover_and_important_classes): Rename to
7185 setup_allocno_and_important_classes.
7186 (setup_class_translate_array): New.
7187 (setup_class_translate): Call it for allocno and pressure classes.
7188 (cover_class_order): Rename to allocno_class_order.
7189 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7190 of ira_class_translate.
7191 (reorder_important_classes): Set up ira_important_class_nums.
7192 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7193 (print_class_cover): Rename to print_classes. Add parameter.
7194 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7195 Print pressure classes too.
7196 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7197 setup_reg_subclasses.
7198 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7199 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7200 (setup_prohibited_class_mode_regs): Use
7201 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7202 (clarify_prohibited_class_mode_regs): New function.
7203 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7204 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7205 (ira_init_once): Initialize them.
7206 (free_register_move_costs): Process them.
7207 (ira_init): Move calls of find_reg_classes and
7208 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7209 Call clarify_prohibited_class_mode_regs.
7210 (ira_no_alloc_reg): Remove.
7211 (too_high_register_pressure_p): Use pressure classes.
7213 * sched-deps.c: Remove mentioning cover classes from the file.
7214 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7215 ira_pressure_classes and ira_pressure_classes_num instead of
7216 ira_reg_class_cover_size and ira_reg_class_cover.
7217 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7218 sched_regno_pressure_class instead of sched_regno_cover_class.
7219 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7220 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7222 * ira.h: Add 2010 to Copyright.
7223 (ira_no_alloc_reg): Remove external.
7224 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7225 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7226 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7227 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7228 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7229 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7230 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7231 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7232 x_ira_no_alloc_regs.
7233 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7234 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7235 ira_allocno_classes_num and ira_allocno_classes.
7236 (ira_class_translate): Rename to ira_allocno_class_translate.
7237 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7238 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7239 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7240 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7241 (ira_no_alloc_regs): New.
7243 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7244 classes from the file. Use ALLOCNO_CLASS instead of
7245 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7246 ALLOCNO_COVER_CLASS_COST.
7247 (regno_cover_class): Rename to regno_aclass.
7248 (record_reg_classes): Use ira_reg_class_subunion instead of
7249 ira_reg_class_union.
7250 (record_address_regs): Check overflow.
7251 (scan_one_insn): Ditto.
7252 (print_allocno_costs): Print total mem cost fore regional allocation.
7253 (print_pseudo_costs): Use REG_N_REFS.
7254 (find_costs_and_classes): Use classes intersected with them on the
7255 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7256 ira_reg_class_union. Use ira_allocno_class_translate and
7257 regno_aclass instead of ira_class_translate and regno_cover_class.
7258 Modify code for finding regno_aclass. Setup preferred classes for
7260 (setup_allocno_cover_class_and_costs): Rename to
7261 setup_allocno_class_and_costs. Use regno_aclass instead of
7262 regno_cover_class. Use ira_set_allocno_class instead of
7263 ira_set_allocno_cover_class.
7264 (init_costs, finish_costs): Use regno_aclass instead of
7266 (ira_costs): Use setup_allocno_class_and_costs instead of
7267 setup_allocno_cover_class_and_costs.
7268 (ira_tune_allocno_costs_and_cover_classes): Rename to
7269 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7270 by processing objects. Use ira_reg_class_max_nregs instead of
7271 ira_reg_class_nregs.
7273 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7275 * sched-int.h: Remove mentioning cover classes from the file.
7276 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7278 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7279 classes from the file.
7280 (struct reg_pref): Rename coverclass into allocnoclass.
7281 (reg_cover_class): Rename to reg_allocno_class.
7283 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7285 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7287 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7289 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7291 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7293 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7295 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7297 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7299 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7301 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7303 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7304 (i386_ira_cover_classes): Ditto.
7306 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7308 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7310 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7312 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7314 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7316 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7318 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7319 (mips_ira_cover_classes): Ditto.
7321 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7323 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7325 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7327 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7329 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7331 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7332 (IRA_COVER_CLASSES_VSX): Ditto.
7334 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7335 (rs6000_ira_cover_classes): Ditto.
7337 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7339 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7341 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7343 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7345 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7347 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7349 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7351 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7353 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7355 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7357 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7360 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7361 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7362 dw_fde_unlikely_section_end_label, cold_in_std_section,
7363 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7364 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7366 (output_fde): Use dw_fde_second_{begin,end} if second is
7367 true, otherwise dw_fde_{begin,end}.
7368 (output_call_frame_info): Test dw_fde_second_begin != NULL
7369 instead of dw_fde_switched_sections.
7370 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7371 fields, initialize new fields. Initialize in_std_section
7372 unconditionally from the first partition.
7373 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7374 dw_fde_second_begin is non-NULL.
7375 (dwarf2out_switch_text_section): Stop initializing removed
7376 dw_fde_struct fields, initialize new fields, initialize
7377 also dw_fde_end here. Set dw_fde_switch_cfi even when
7378 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7379 (struct var_loc_list_def): Add last_before_switch field.
7380 (arange_table, arange_table_allocated, arange_table_in_use,
7381 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7382 (size_of_aranges): Count !in_std_section and !second_in_std_section
7383 hunks in fdes, instead of looking at arange_table_in_use.
7384 (output_aranges): Add aranges_length argument, don't call
7385 size_of_aranges here. Instead of using aranges_table*
7386 emit ranges for fdes when !in_std_section resp.
7387 !second_in_std_section.
7388 (dw_loc_list): Break ranges crossing section switch.
7389 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7390 use dw_fde_second_end instead of dw_fde_end as end of last range.
7391 (gen_subprogram_die): Don't call add_arange. Use
7392 dw_fde_{begin,end} for first partition and if switched
7393 section dw_fde_second_{begin,end} for the second.
7394 (var_location_switch_text_section_1,
7395 var_location_switch_text_section): New functions.
7396 (dwarf2out_begin_function): Initialize cold_text_section even
7397 when function_section () isn't text_section.
7398 (prune_unused_types): Don't walk arange_table.
7399 (dwarf2out_finish): Don't needlessly test
7400 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7401 If info_section_emitted, call size_of_aranges and if it indicates
7402 non-empty .debug_aranges, call output_aranges with the computed
7403 size. Stop using removed dw_fde_struct fields, use
7404 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7408 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7409 create ENTRY_VALUE if incoming or address of incoming's MEM
7411 * dwarf2out.c (mem_loc_descriptor): Don't emit
7412 DW_OP_GNU_entry_value of DW_OP_fbreg.
7413 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7414 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7415 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7416 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7418 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7419 is a REG_P or MEM_P with REG_P address, compute hash directly
7420 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7421 (preserve_only_constants): Don't clear VALUES forwaring
7422 ENTRY_VALUE to some other VALUE.
7424 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7426 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7429 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7431 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7432 block before expanding the statement.
7433 (expand_gimple_stmt_1): Likewise. Set them here...
7434 (expand_gimple_stmt): ...and not here. Tidy.
7435 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7438 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7440 * Makefile.in: New rule for cprop.o.
7441 * gcse.c: Move constant/copy propagation to cprop.c.
7442 (compute_local_properties): Only handle expression tables.
7443 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7444 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7445 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7446 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7447 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7448 compute_cprop_data, find_used_regs, try_replace_reg,
7449 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7450 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7451 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7452 find_bypass_set, reg_killed_on_edge, bypass_block,
7453 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7454 execute_rtl_cprop, pass_rtl_cprop): Move to...
7455 * cprop.c: ...here. New file, constant/copy propagation for RTL
7456 moved from gcse.c to here with minor cleanups in duplicated code.
7458 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7460 * config/i386/i386.c (flag_opts): Fix a typo in
7461 -mavx256-split-unaligned-store.
7463 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7465 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7466 LIBCALL_VALUE): Remove macros.
7467 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7468 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7469 (h8300_function_value, h8300_libcall_value,
7470 h8300_function_value_regno_p): New functions.
7472 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7474 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7476 2011-03-28 Jeff Law <law@redhat.com>
7478 * tree-ssa-threadupdate.c (redirect_edges): Call
7479 create_edge_and_update_destination_phis as needed.
7480 (create_edge_and_update_destination_phis): Accept new BB argument.
7481 All callers updated.
7482 (thread_block): Do not update the profile when threading around
7483 intermediate blocks.
7484 (thread_single_edge): Likewise.
7485 (determine_bb_domination_status): If BB is not a successor of the
7486 loop header, return NONDOMINATING.
7487 (register_jump_thread): Note when we register a jump thread around
7488 an intermediate block.
7489 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7490 (thread_across_edge): Use it.
7492 2011-03-28 Tristan Gingold <gingold@adacore.com>
7494 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7495 when for_return is 2.
7497 2011-03-28 Jeff Law <law@redhat.com>
7499 * var-tracking.c (canonicalize_values_mark): Delete unused
7501 (canonicalize_values_star, set_variable_part): Likewise.
7502 (clobber_variable_part, delete_variable_part): Likewise.
7504 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7506 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7508 2011-03-28 Martin Jambor <mjambor@suse.cz>
7510 * tree-inline.c (expand_call_inline): Do not check that destination
7512 (optimize_inline_calls): Assert that destination node is analyzed.
7513 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7514 not call tree_lowering_passes.
7515 * cgraph.h (cgraph_analyze_function): Declare.
7516 * cgraphunit.c (cgraph_analyze_function): Make public.
7518 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7520 * config/sparc/sparc-opts.h: New.
7521 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7522 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7523 (sparc_option_override): Store processor_type enumeration rather
7524 than string in cpu_default. Remove name and enumeration from
7525 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7526 without using sparc_select. Use target_flags_explicit instead of
7528 * config/sparc/sparc.h (enum processor_type): Move to
7530 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7531 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7532 HeaderInclude entry.
7533 (mcpu=, mtune=): Use Var and Enum.
7534 (sparc_processor_type): New Enum and EnumValue entries.
7536 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7537 Iain Sandoe <iains@gcc.gnu.org>
7540 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7542 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7544 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7545 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7546 Insert new statements at it in lieu of STMT.
7547 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7548 * tree-vect-stmts.c (vectorizable_store): Likewise.
7549 (vectorizable_load): Likewise.
7551 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7553 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7558 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7560 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7561 unaligned 256bit load/store.
7562 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7563 (*avx_movdqu<avxmodesuffix>): Likewise.
7565 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7568 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7569 * config/pa/pa.md (iordi3): Use new predicate in expander.
7572 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7574 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7575 FUNCTION_VALUE_REGNO_P): Remove macros.
7576 * config/mips/mips-protos.h (mips_function_value): Remove.
7577 * config/mips/mips.c (mips_function_value): Rename to...
7578 (mips_function_value_1): ... this. Make static. Handle receiving
7579 the function type in 'fn_decl_or_type' argument.
7580 (mips_function_value, mips_libcall_value,
7581 mips_function_value_regno_p): New function.
7582 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7583 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7585 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7587 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7588 and -mavx256-split-unaligned-store.
7589 (ix86_option_override_internal): Split 32-byte AVX unaligned
7590 load/store by default.
7591 (ix86_avx256_split_vector_move_misalign): New.
7592 (ix86_expand_vector_move_misalign): Use it.
7594 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7595 -mavx256-split-unaligned-store.
7597 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7598 256bit load/store. Generate unaligned store on misaligned memory
7600 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7602 (*avx_movdqu<avxmodesuffix>): Likewise.
7604 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7605 -mavx256-split-unaligned-store.
7607 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7610 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7613 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7615 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7616 opno arguments with an expand_operand. Use create_input_operand.
7617 (mips_prepare_builtin_target): Delete.
7618 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7620 (mips_expand_builtin_direct): Use create_output_operand and
7621 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7622 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7623 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7625 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7627 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7629 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7631 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7633 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7634 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7635 basic blocks and call commit_edge_insertions directly.
7636 (fixup_abnormal_edges): Move from here to...
7637 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7638 on the edges and return whether some have actually been inserted.
7639 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7642 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7644 PR rtl-optimization/48144
7645 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7646 (merge_expr_data): ... here.
7647 (av_set_intersect): Rename to av_set_code_motion_filter.
7648 Update all callers. Call merge_history_vect when an expression
7649 is found in both sets.
7650 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7652 2011-03-26 Alan Modra <amodra@gmail.com>
7654 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7655 cmodel medium addresses.
7656 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7657 64-bit gpr loads and stores.
7658 (rs6000_secondary_reload_ppc64): New function.
7659 * config/rs6000/rs6000-protos.h: Declare it.
7660 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7662 2011-03-26 Alan Modra <amodra@gmail.com>
7665 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7666 GNU Go in traceback table.
7668 2011-03-25 Richard Henderson <rth@redhat.com>
7670 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7671 if there are exactly 6 operands.
7672 (set_storage_via_setmem): Similarly.
7674 2011-03-25 Kai Tietz <ktietz@redhat.com>
7676 * collect2.c (write_c_file_stat): Handle backslash
7677 as right-hand directory separator.
7678 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7679 checking just for slash.
7680 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7681 instead of checking for trailing slash.
7682 * gcc.c (record_temp_file): Use filename_cmp instead
7684 (do_spec_1): Likewise.
7685 (replace_outfile_spec_function): Likewise.
7686 (is_directory): Use filename_ncmp instead of strncmp.
7687 (print_multilib_info): Likewise.
7688 * gcov.c (find_source): Use filename_cmp instead
7690 (make_gcov_file_name): Fix order of slash/backslash
7692 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7693 (add_standard_paths): Likewise.
7694 * mips-tfile.c (saber_stop): Handle backslash.
7695 * prefix.c (update_path): Use filename_ncmp instead of
7697 * profile.c (output_location): Use filename_cmp instead
7699 * read-md.c (handle_toplevel_file): Handle backslash.
7700 * tlink.c (frob_extension): Likewise.
7701 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7703 * tree-dump.c (dequeue_and_dump): Handle backslash.
7704 * tree.c (get_file_function_name): Likewise.
7705 * gengtype.c (read_input_list): Likewise.
7706 (get_file_realbasename): Likewise.
7707 (get_output_file_with_visibility): Use filename_cmp
7710 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7712 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7715 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7717 * fold-const.c (expr_location_or): New function.
7718 (fold_truth_not_expr): Call it.
7720 2011-03-25 Jeff Law <law@redhat.com>
7722 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7724 * c-family/c-common.c (def_fn_type): Likewise.
7725 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7726 * emit-rtl.c (gen_rtvec): Likewise.
7727 * lto/lto-lang.c (def_fn_type): Likewise.
7729 2011-03-25 Richard Guenther <rguenther@suse.de>
7731 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7732 also generate copies.
7733 (fini_copy_prop): Handle constant values properly.
7735 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7737 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7738 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7739 (hash_loc_operands, compare_loc_operands): Handle
7740 DW_OP_GNU_entry_value.
7742 2011-03-25 Kai Tietz <ktietz@redhat.com>
7744 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7745 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7746 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7747 comment and use macro TARGET_64BIT_MS_ABI instead.
7748 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7749 and change default behavior for 32-bit MS_ABI.
7750 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7751 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7753 (ix86_cfun_abi): Likewise.
7754 (ix86_maybe_switch_abi): Adjust comment.
7755 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7756 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7757 instead of checking for SYSV_ABI.
7758 (ix86_nsaved_sseregs): Likewise.
7759 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7761 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7762 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7763 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7764 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7765 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7767 2011-03-25 Richard Guenther <rguenther@suse.de>
7769 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7770 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7771 (verify_gimple): Remove.
7772 * tree-cfg.c (verify_gimple_call): Merge verification
7774 (verify_gimple_phi): Merge verification from verify_stmts.
7775 (verify_gimple_label): New function.
7776 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7777 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7778 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7779 (verify_stmts): Rename to verify_gimple_in_cfg.
7780 (verify_gimple_in_cfg): New function.
7781 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7782 * tree-ssa.c (verify_ssa): Likewise.
7783 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7785 2011-03-25 Richard Guenther <rguenther@suse.de>
7787 * passes.c (init_optimization_passes): Add FRE pass after
7790 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7791 Andrew Stubbs <ams@codesourcery.com>
7793 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7795 (arm_movdi_vfp_cortexa8): New pattern.
7796 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7797 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7798 instructions when tuning for Cortex-A8. Set attribute "arch".
7799 * config/arm/arm.md: Move include arm-tune.md up a bit.
7800 (define_attr "arch"): Add "onlya8" and "nota8" values.
7801 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7803 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7807 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7809 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7810 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7811 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7812 * passes.c (init_optimization_passes): Move
7813 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7815 2011-03-25 Kai Tietz <ktietz@redhat.com>
7817 * c-typeck.c (comptypes_internal): Replace target
7818 hook call of comp_type_attributes by version in tree.c file.
7819 * gimple.c (gimple_types_compatible_p_1): Likewise.
7820 * tree-ssa.c (useless_type_conversion_p): Likewise.
7821 * tree.c (build_type_attribute_qual_variant): Likewise.
7822 (attribute_value_equal): New static helper function.
7823 (comp_type_attributes): New function.
7824 (merge_attributes): Use attribute_value_equal for comparison.
7825 (attribute_list_contained): Likewise.
7826 * tree.h (comp_type_attributes): New prototype.
7828 2011-03-25 Richard Guenther <rguenther@suse.de>
7830 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7831 of complex types at -O0.
7832 (verify_gimple_assign_binary): Likewise.
7833 (verify_gimple_assign_ternary): Likewise.
7835 2011-03-24 Mark Wielaard <mjw@redhat.com>
7837 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7838 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7840 2011-03-24 Mark Wielaard <mjw@redhat.com>
7843 * dwarf2out.c (output_abbrev_section): Only write table when
7844 abbrev_die_table_in_use > 1.
7846 2011-02-24 Richard Henderson <rth@redhat.com>
7848 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7849 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7850 (alpha_expand_unaligned_load_words): Use extql.
7851 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7852 (emit_insxl): Handle all modes for consistency.
7854 2011-02-24 Richard Henderson <rth@redhat.com>
7856 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7857 (alpha_expand_unaligned_load): Likewise.
7858 (alpha_expand_unaligned_store): Likewise.
7859 (alpha_expand_unaligned_load_words): Likewise.
7860 (alpha_expand_unaligned_store_words): Likewise.
7861 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7862 (alpha_split_lock_test_and_set_12): Likewise.
7863 (print_operand, alpha_fold_builtin_extxx): Likewise.
7864 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7865 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7866 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7867 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7868 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7869 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7870 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7871 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7872 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7873 (extwl, extll, extql): Similarly.
7874 (inswh, inslh, insqh): Similarly.
7875 (mskbl, mskwl, mskll, mskql): Similarly.
7876 (mskwh, msklh, mskqh): Similarly.
7878 2011-02-24 Richard Henderson <rth@redhat.com>
7880 * config/alpha/alpha.md (attribute isa): Add er, ner.
7881 (attribute enabled): Handle them.
7882 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7884 2011-02-24 Richard Henderson <rth@redhat.com>
7886 * config/alpha/alpha.md (attribute isa): Add vms.
7887 (attribute enabled): Handle it.
7888 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7889 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7890 (*movtf): Rename from *movtf_internal for consistency.
7891 (*movsi): Merge with *movsi_nt_vms.
7892 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7893 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7894 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7895 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7897 2011-02-24 Richard Henderson <rth@redhat.com>
7899 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7900 (extendqisi2, extendhisi2): Likewise.
7901 (extendqidi2): Simplify BWX/non-BWX expansions.
7902 (extendhidi2): Similarly.
7904 2011-02-24 Richard Henderson <rth@redhat.com>
7906 * config/alpha/alpha.md (attribute isa): New.
7907 (attribute enabled): New.
7908 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7909 (zero_extendqisi2, zero_extendqidi2): Similarly.
7910 (zero_extendhisi2, zero_extendhidi2): Similarly.
7911 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7913 2011-02-24 Richard Henderson <rth@redhat.com>
7915 * config/alpha/predicates.md (input_operand): Revert last change;
7916 update comment to mention 32-bit VMS rather than Windows.
7918 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7920 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7921 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7922 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7923 * passes.c (init_optimization_passes): Move
7924 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7926 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7928 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7930 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7932 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7935 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7938 * simplify-rtx.c (simplify_const_unary_operation): Call
7939 real_convert when changing mode class with FLOAT_EXTEND.
7941 2011-03-24 Nick Clifton <nickc@redhat.com>
7943 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7944 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7945 * config/rx/rx.c (rx_option_override): Set align_jumps,
7946 align_loops and align_labels if not set by the user.
7947 (rx_align_for_label): New function.
7948 (rx_max_skip_for_label): New function.
7949 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7950 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7951 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7952 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7953 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7955 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7957 PR rtl-optimization/48263
7958 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7959 and original commutative_p handling. Use maybe_gen_insn.
7961 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7963 * reload.c (find_reloads_subreg_address): Add address_reloaded
7964 parameter and return true there if the full address has been
7966 (find_reloads_toplev): Pass address_reloaded flag.
7967 (find_reloads_address_1): Don't use address_reloaded parameter.
7969 2011-03-24 Jeff Law <law@redhat.com>
7971 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7972 unused variable "ann".
7973 (remove_unused_locals): Likewise.
7975 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7978 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7981 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7983 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7984 for invalid symbolic addresses.
7985 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7988 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7990 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7991 the argument in calls to fold_truth_not_expr.
7993 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7995 * tree.c (record_node_allocation_statistics): New function.
7996 (make_node_stat, copy_node_stat, build_string): Call it.
7997 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7998 (build1_stat, build_omp_clause): Likewise.
8000 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8002 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8005 2011-03-24 Richard Guenther <rguenther@suse.de>
8007 PR tree-optimization/48271
8008 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8009 blocks that still exist.
8011 2011-03-24 Richard Guenther <rguenther@suse.de>
8013 PR tree-optimization/48270
8014 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8015 not free datarefs before ddrs.
8017 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8019 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8020 from the address built for a reference with variable offset.
8022 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8025 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8026 alternatives that can be handled with movq or movabsq insn.
8027 (*movdf_internal): Disable for !TARGET_64BIT.
8028 (*movdf_internal_nointeger): Ditto.
8029 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8031 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8033 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8034 (FUNCTION_ARG_ADVANCE): Likewise.
8035 * tm.texi.in: Change references to them to hook references.
8036 * tm.texi: Regenerate.
8037 * targhooks.c (default_function_arg): Eliminate check for target macro.
8038 (default_function_incoming_arg): Likewise.
8039 (default_function_arg_advance): Likewise.
8040 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8041 (function_arg_advance): Likewise.
8042 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8044 2011-03-24 Richard Guenther <rguenther@suse.de>
8047 * tree-object-size.c (addr_object_size): Do not double-account
8048 for MEM_REF offsets.
8050 2011-03-24 Diego Novillo <dnovillo@google.com>
8052 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8053 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8054 (lto_input_data_block): Move from lto-opts.c. Make extern.
8056 (lto_input_string): Rename from input_string. Make extern.
8058 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8059 output_string_with_length.
8060 Output 0 to indicate a non-NULL string. Update all callers to
8062 (lto_output_string): Rename from output_string. Make extern.
8064 (lto_output_decl_state_streams): Make extern.
8065 (lto_output_decl_state_refs): Make extern.
8066 * lto-streamer.h (lto_input_string): Declare.
8067 (lto_input_data_block): Declare.
8068 (lto_output_string): Declare.
8069 (lto_output_string_with_length): Declare.
8070 (lto_output_decl_state_streams): Declare.
8071 (lto_output_decl_state_refs): Declare.
8073 2011-03-24 Richard Guenther <rguenther@suse.de>
8075 PR tree-optimization/46562
8076 * tree.c (build_invariant_address): New function.
8077 * tree.h (build_invariant_address): Declare.
8078 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8079 a renamed function moved ...
8080 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8081 Take valueization callback parameter.
8082 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8083 * gimple-fold.h: New file.
8084 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8085 (ccp_fold, fold_const_aggregate_ref,
8086 fold_ctor_reference, fold_nonarray_ctor_reference,
8087 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8088 get_base_constructor): Move ...
8089 * gimple-fold.c: ... here.
8090 (gimple_fold_stmt_to_constant_1): New function
8091 split out from ccp_fold. Take a valueization callback parameter.
8092 Valueize all operands.
8093 (gimple_fold_stmt_to_constant): New wrapper function.
8094 (fold_const_aggregate_ref_1): New function split out from
8095 fold_const_aggregate_ref. Take a valueization callback parameter.
8096 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8097 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8098 invariant POINTER_PLUS_EXPRs to invariant form.
8099 (vn_valueize): New function.
8100 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8101 * tree-vrp.c (vrp_valueize): New function.
8102 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8103 to fold statements to constants.
8104 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8105 function declarations.
8106 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8107 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8109 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8111 * config/h8300/predicates.md (jump_address_operand): Fix register
8114 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8116 * doc/invoke.texi (max-stores-to-sink): Document.
8117 * params.h (MAX_STORES_TO_SINK): Define.
8118 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8119 if either vectorization or if-conversion is disabled.
8120 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8121 tree-vect-data-refs.c vect_equal_offsets.
8122 (dr_equal_offsets_p): New function.
8123 (find_data_references_in_bb): Remove static.
8124 * tree-data-ref.h (find_data_references_in_bb): Declare.
8125 (dr_equal_offsets_p): Likewise.
8126 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8127 (vect_drs_dependent_in_basic_block): Update calls to
8129 (vect_check_interleaving): Likewise.
8130 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8131 (cond_if_else_store_replacement): Rename to...
8132 (cond_if_else_store_replacement_1): ... this. Change arguments and
8134 (cond_if_else_store_replacement): New function.
8135 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8136 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8138 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8141 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8142 to subtract lower bound instead of GEN_INT().
8144 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8149 * doc/extend.texi (Alignment): Move section to match order in TOC.
8150 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8151 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8153 2011-03-23 Jeff Law <law@redhat.com>
8155 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8156 before removing the edge.
8158 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8159 it may have been freed by redirect_branch_edge or
8160 redirect_edge_succ_nodup.
8162 2011-03-23 Richard Guenther <rguenther@suse.de>
8164 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8165 (check_va_list_escapes): Likewise.
8166 (check_all_va_list_escapes): Likewise.
8168 2011-03-23 Richard Guenther <rguenther@suse.de>
8170 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8171 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8172 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8173 (alias.o): Likewise.
8174 (ipa-type-escape.o): Remove.
8175 (ipa-struct-reorg.o): Likewise.
8176 (GTFILES): Remove ipa-struct-reorg.c.
8177 * alias.c: Do not include ipa-type-escape.h.
8178 * tree-ssa-alias.c: Likewise.
8179 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8180 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8181 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8182 and ipa-type-escape passes.
8183 * tree-pass.h (pass_ipa_type_escape): Remove.
8184 (pass_ipa_struct_reorg): Likewise.
8185 * ipa-struct-reorg.h: Remove.
8186 * ipa-struct-reorg.c: Likewise.
8187 * ipa-type-escape.h: Likewise.
8188 * ipa-type-escape.c: Likewise.
8189 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8190 (--param struct-reorg-cold-struct-ratio): Likewise.
8191 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8192 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8193 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8195 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8197 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8198 cpu attribute value.
8199 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8200 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8201 * config/s390/s390.c (processor_flags_table): New constant array.
8202 (s390_handle_arch_option): Remove.
8203 (s390_handle_option): Remove s390_handle_arch_option invocations
8204 and OPT_mwarn_framesize_ handling.
8205 (s390_option_override): Remove s390_handle_arch_option invocation.
8206 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8208 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8209 * config/s390/s390.opt (s390_tune, s390_arch)
8210 (march=): Replace s390_arch_option enum and values with
8211 processor_type. Set variable name to s390_arch. Set
8212 initialization value.
8213 (mtune=): Replace s390_arch_option with processor_type. Set
8214 variable name to s390_tune. Set initialization value.
8216 2011-03-23 Julian Brown <julian@codesourcery.com>
8218 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8219 accesses which are not naturally aligned.
8221 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8224 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8226 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8228 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8229 parameter from "int" to "enum insn_code".
8230 (expand_operand_type): New enum.
8231 (expand_operand): New structure.
8232 (create_expand_operand): New function.
8233 (create_fixed_operand, create_output_operand): Likewise
8234 (create_input_operand, create_convert_operand_to): Likewise.
8235 (create_convert_operand_from, create_address_operand): Likewise.
8236 (create_integer_operand): Likewise.
8237 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8238 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8239 (expand_insn, expand_jump_insn): Likewise.
8240 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8241 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8242 (expand_movstr, expand_builtin___clear_cache): Likewise.
8243 (expand_builtin_lock_release): Likewise.
8244 * explow.c (allocate_dynamic_stack_space): Likewise.
8245 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8246 and use the default handling in that case.
8247 * expmed.c (check_predicate_volatile_ok): Delete.
8248 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8249 (emit_cstore): Likewise.
8250 * expr.c (emit_block_move_via_movmem): Likewise.
8251 (set_storage_via_setmem, expand_assignment): Likewise.
8252 (emit_storent_insn, try_casesi): Likewise.
8253 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8254 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8255 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8256 (expand_twoval_unop, expand_twoval_binop): Likewise.
8257 (expand_unop_direct, emit_indirect_jump): Likewise.
8258 (emit_conditional_move, vector_compare_rtx): Likewise.
8259 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8260 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8261 (expand_sync_lock_test_and_set): Likewise.
8262 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8263 (emit_unop_insn): Likewise.
8264 (expand_copysign_absneg): Change icode to an insn_code.
8265 (create_convert_operand_from_type): New function.
8266 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8267 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8268 (expand_insn, expand_jump_insn): Likewise.
8269 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8270 than const_int_operand for operand 2.
8272 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8274 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8277 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8279 * emit-rtl.c (emit_pattern_before_noloc): New function.
8280 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8281 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8282 (emit_pattern_after_noloc): New function.
8283 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8284 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8286 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8288 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8289 (__ffsDI2): Likewise.
8291 2011-03-22 Richard Henderson <rth@redhat.com>
8293 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8294 of !TARGET_ABI_OPEN_VMS.
8295 (alpha_trampoline_init, alpha_start_function): Likewise.
8296 (alpha_expand_epilogue, alpha_file_start): Likewise.
8297 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8298 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8299 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8300 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8301 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8303 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8305 * config/s390/s390-opts.h: New.
8306 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8307 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8308 s390_stack_guard): Remove.
8309 (s390_handle_arch_option): Return void. Take enum
8310 s390_arch_option value instead of string and searching array.
8311 (s390_handle_option): Don't assert that global structures are in
8312 use. Access variables via opts pointer. Use error_at. Don't use
8313 sscanf for -mstack-guard= or -mstack-size=. Update call to
8314 s390_handle_arch_option.
8315 (s390_option_override): Update call to s390_handle_arch_option.
8316 (s390_emit_prologue): Use %d format for s390_stack_size in
8317 diagnostic. Use %wd for HOST_WIDE_INT.
8318 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8319 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8320 * config/s390/s390.opt (config/s390/s390-opts.h): New
8321 HeaderInclude entry.
8322 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8323 s390_arch_flags, s390_warn_framesize): New Variable entries.
8324 (s390_arch_option): New Enum and EnumValue entries.
8325 (march=): Use Enum instead of Var.
8326 (mstack-guard=, mstack-size=): Use UInteger and Var.
8329 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8331 * config/score/score.c (score_handle_option): Don't assert that
8332 global structures are in use. Access target_flags via opts
8333 pointer. Use value of -march= option to determine target_flags
8335 * config/score/score.opt (march=): Use Enum.
8336 (score_arch): New Enum and EnumValue entries.
8338 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8340 * config/mep/mep.c (option_mtiny_specified): Remove.
8341 (mep_option_override): Move register handling for -mivc2 from
8342 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8343 instead of option_mtiny_specified.
8344 (mep_handle_option): Access target_flags via opts pointer. Don't
8345 assert that global structures are in use. Defer part of -mivc2
8346 handling and move it to mep_option_override.
8347 * config/mep/mep.opt (IVC2): New Mask entry.
8348 (mivc2): Use Var and Defer instead of Mask.
8350 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8352 * config/v850/v850-opts.h: New.
8353 * config/v850/v850.c (small_memory): Replace with
8354 small_memory_physical_max array. Make that array static const.
8355 (v850_handle_memory_option): Take integer value of argument. Take
8356 gcc_options pointer, option text and location. Return void.
8357 Update for changes to small memory structures.
8358 (v850_handle_option): Access target_flags via opts pointer. Don't
8359 assert that global structures are in use. Update calls to
8360 v850_handle_memory_option.
8361 (v850_encode_data_area): Update references to small memory settings.
8362 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8363 (enum small_memory_type): Move to v850-opts.h.
8364 * config/v850/v850.opt (config/v850/v850-opts.h): New
8365 HeaderInclude entry.
8366 (small_memory_max): New Variable entry.
8367 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8368 (mtda, mzda): Likewise.
8370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8372 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8373 pointer. Don't assert that global structures are in use.
8375 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8377 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8378 via opts pointer. Don't assert that global structures are in use.
8380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8382 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8383 (munix=93): Use Var.
8384 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8385 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8386 * config/pa/pa-opts.h: New.
8387 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8388 (pa_handle_option): Don't assert that global structures are in
8389 use. Access target_flags via opts pointer. Don't handle
8390 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8392 (pa_option_override): Handle deferred OPT_mfixed_range_.
8394 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8396 * config/mn10300/mn10300-opts.h: New.
8397 * config/mn10300/mn10300.c (mn10300_processor,
8398 mn10300_tune_string): Remove.
8399 (mn10300_handle_option): Don't assert that global structures are
8400 in use. Access mn10300_processor via opts pointer. Don't handle
8402 * config/mn10300/mn10300.h (enum processor_type): Move to
8404 (mn10300_processor): Remove.
8405 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8406 HeaderInclude entry.
8407 (mn10300_processor): New Variable entry.
8410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8412 * config/microblaze/microblaze.c: Don't include opts.h.
8413 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8414 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8415 (mno-clearbss): Use Var and Warn.
8417 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8419 * config/m32r/m32r-opts.h: New.
8420 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8421 (m32r_handle_option): Don't assert that global structures are in
8422 use. Access target_flags and m32r_cache_flush_func via opts
8423 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8424 OPT_mno_flush_trap here.
8425 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8426 include of m32r-opts.h.
8427 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8428 HeaderInclude entry.
8429 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8430 (mmodel=): Use Enum and Var.
8431 (m32r_model): New Enum and EnumValue entries.
8432 (mno-flush-trap): Use Var.
8433 (msdata=): Use Enum and Var.
8434 (m32r_sdata): New Enum and EnumValue entries.
8436 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8438 * config/m32c/m32c.c: Don't include opts.h.
8439 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8440 m32c_handle_option): Remove.
8441 (m32c_option_override): Check global_options_set.x_target_memregs
8442 instead of target_memregs_set.
8443 * config/m32c/m32c.h (target_memregs): Remove.
8444 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8447 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8449 * config/iq2000/iq2000-opts.h: New.
8450 * config/iq2000/iq2000.c: Don't include opts.h.
8451 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8452 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8453 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8454 HeaderInclude entry.
8455 (iq2000_tune): New Variable entry.
8456 (march=): Add comment. Use Enum.
8457 (iq2000_arch): New Enum and EnumValue entries.
8458 (mcpu=): Use Enum and Var.
8459 (iq2000_tune): New Enum and EnumValue entries.
8461 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8463 * config/ia64/ia64-opts.h: New.
8464 * config/ia64/ia64.c (ia64_tune): Remove.
8465 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8467 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8468 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8469 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8470 HeaderInclude entry.
8471 (ia64_tune): New Variable entry.
8472 (mfixed-range=): Use Defer and Var.
8473 (mtune=): Use Enum and Var.
8474 (ia64_tune): New Enum and EnumValue entries.
8476 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8478 * config/frv/frv-opts.h: New.
8479 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8481 (frv_cpu_type): Remove.
8482 * config/frv/frv.c: Don't include opts.h.
8483 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8484 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8485 (frv_cpu_type): New Variable entry.
8486 (frv_cpu): New Enum and EnumValue entries.
8488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8490 * config/cris/cris.c (cris_handle_option): Access target_flags via
8491 opts pointer. Don't assert that global structures are in use.
8492 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8493 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8495 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8497 * config/bfin/bfin-opts.h: New.
8498 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8499 bfin_si_revision, bfin_workarounds): Remove.
8500 (bfin_cpus): Make static const.
8501 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8502 not bfin_lib_id_given.
8503 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8504 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8505 pointer. Use error_at. Don't assert that global structures are in use.
8506 * config/bfin/bfin.h: Include bfin-opts.h.
8507 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8508 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8509 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8510 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8513 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8515 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8516 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8517 or -msoft-float here.
8518 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8519 -msoft-float and -mhard-float.
8520 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8521 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8523 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8525 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8526 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8528 (LIBGCC_SPEC): Don't handle -msoft-float.
8529 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8531 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8533 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8534 -mfloat-abi=*, not -msoft-float and -mhard-float.
8535 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8537 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8538 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8539 mhard-float and msoft-float.
8540 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8541 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8542 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8543 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8545 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8546 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8548 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8550 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8553 2011-03-22 Richard Henderson <rth@redhat.com>
8555 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8556 TARGET_ABI_WINDOWS_NT.
8557 (alpha_output_function_end_prologue): Likewise.
8558 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8559 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8560 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8561 (trap, *movsi_nt_vms): Likewise.
8562 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8563 (*tablejump_osf_nt_internal): Remove.
8564 * config/alpha/predicates.md (input_operand): Only test Pmode.
8566 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8568 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8569 via opts pointer. Use error_at. Don't assert that global
8570 structures are in use.
8572 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8574 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8575 (ix86_handle_option): Access ix86_isa_flags and
8576 ix86_isa_flags_explicit via opts pointer. Don't assert that
8577 global structures are in use.
8578 (ix86_function_specific_save, ix86_function_specific_restore):
8579 Update ix86_isa_flags_explicit field name.
8580 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8581 (ix86_isa_flags_explicit): Rename TargetSave entry to
8582 x_ix86_isa_flags_explicit.
8584 2011-03-22 Richard Henderson <rth@redhat.com>
8586 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8587 (alpha_option_override, direct_return): Likewise.
8588 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8589 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8590 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8591 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8592 (alpha_expand_epilogue, alpha_end_function): Likewise.
8593 (alpha_init_libfuncs): Likewise.
8594 (struct machine_function): Remove unicosmk members.
8595 (print_operand) ['t']: Remove.
8596 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8597 unicosmk_output_module_name, unicosmk_output_common,
8598 current_section_align, unicosmk_output_text_section_asm_op,
8599 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8600 unicosmk_section_type_flags, unicosmk_unique_section,
8601 unicosmk_asm_named_section, unicosmk_insert_attributes,
8602 unicosmk_output_align, unicosmk_defer_case_vector,
8603 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8604 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8605 unicosmk_output_ssib, unicosmk_add_call_info_word,
8606 unicosmk_extern_head, unicosmk_output_default_externs,
8607 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8608 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8609 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8610 * config/alpha/alpha-protos.h: Update.
8611 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8612 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8613 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8614 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8615 (*mulsi_se, mulvsi3): Likewise.
8616 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8617 (*divmodsi_internal, call, call_value, realign): Likewise.
8618 (moddi3, umoddi3): Likewise; remove duplicate expander.
8619 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8620 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8621 (*movdi_nofix): Remove r/U alternative.
8622 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8623 * config/alpha/constraints.md ("U"): Remove.
8624 * config/alpha/predicates.md (call_operand"): Don't test
8625 TARGET_ABI_UNICOSMK.
8627 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8629 * target.def (handle_option): Take gcc_options and
8630 cl_decoded_option pointers and location_t.
8631 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8632 * doc/tm.texi: Regenerate.
8633 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8634 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8635 * lto-opts.c (lto_reissue_options): Generate option structure for
8636 targetm.handle_option call.
8637 * opts.c (target_handle_option): Update call to
8638 targetm.handle_option. Remove assertions about values now passed
8640 * targhooks.c (default_target_handle_option): New.
8641 * targhooks.h (default_target_handle_option): Declare.
8642 * config/alpha/alpha.c: Include opts.h.
8643 (alpha_handle_option): Update to new hook interface.
8644 * config/arm/arm.c: Include opts.h.
8645 (arm_handle_option): Update to new hook interface.
8646 * config/arm/t-arm (arm.o): Update dependencies.
8647 * config/bfin/bfin.c: Include opts.h.
8648 (bfin_handle_option): Update to new hook interface.
8649 * config/cris/cris.c: Include opts.h.
8650 (cris_handle_option): Update to new hook interface.
8651 * config/frv/frv.c: Include opts.h.
8652 (frv_handle_option): Update to new hook interface.
8653 * config/i386/i386.c: Include opts.h.
8654 (ix86_handle_option): Update to new hook interface.
8655 (ix86_valid_target_attribute_inner_p): Generate option structure
8656 for call to ix86_handle_option.
8657 * config/i386/t-i386 (i386.o): Update dependencies.
8658 * config/ia64/ia64.c: Include opts.h.
8659 (ia64_handle_option): Update to new hook interface.
8660 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8661 * config/iq2000/iq2000.c: Include opts.h.
8662 (iq2000_handle_option): Update to new hook interface.
8663 * config/m32c/m32c.c: Include opts.h.
8664 (m32c_handle_option): Update to new hook interface.
8665 * config/m32r/m32r.c: Include opts.h.
8666 (m32r_handle_option): Update to new hook interface.
8667 * config/m68k/m68k.c: Include opts.h.
8668 (m68k_handle_option): Update to new hook interface.
8669 * config/mep/mep.c: Include opts.h.
8670 (mep_handle_option): Update to new hook interface.
8671 * config/microblaze/microblaze.c: Include opts.h.
8672 (microblaze_handle_option): Update to new hook interface.
8673 * config/mips/mips.c: Include opts.h.
8674 (mips_handle_option): Update to new hook interface.
8675 * config/mn10300/mn10300.c: Include opts.h.
8676 (mn10300_handle_option): Update to new hook interface.
8677 * config/pa/pa.c: Include opts.h.
8678 (pa_handle_option): Update to new hook interface.
8679 * config/pdp11/pdp11.c: Include opts.h.
8680 (pdp11_handle_option): Update to new hook interface.
8681 * config/rs6000/rs6000.c: Include opts.h.
8682 (rs6000_handle_option): Update to new hook interface.
8683 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8684 * config/rx/rx.c: Include opts.h.
8685 (rx_handle_option): Update to new hook interface.
8686 * config/s390/s390.c: Include opts.h.
8687 (s390_handle_option): Update to new hook interface.
8688 * config/score/score.c: Include opts.h.
8689 (score_handle_option): Update to new hook interface.
8690 * config/sh/sh.c: Include opts.h.
8691 (sh_handle_option): Update to new hook interface.
8692 * config/sparc/sparc.c: Include opts.h.
8693 (sparc_handle_option): Update to new hook interface.
8694 * config/v850/v850.c: Include opts.h.
8695 (v850_handle_option): Update to new hook interface.
8697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8699 * gcc.c (driver_unknown_option_callback): Only permit and save
8700 unknown -Wno- options.
8701 (driver_wrong_lang_callback): Save options directly instead of via
8702 driver_unknown_option_callback.
8704 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8706 * combine.c (simplify_set): Try harder to find the best CC mode when
8707 simplifying a nested COMPARE on the RHS.
8709 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8711 * config/alpha/gnu.h: Remove.
8712 * config/arc: Remove directory.
8713 * config/arm/netbsd.h: Remove.
8714 * config/arm/t-pe: Remove.
8715 * config/crx: Remove directory.
8716 * config/i386/netbsd.h: Remove.
8717 * config/m68hc11: Remove directory.
8718 * config/m68k/uclinux-oldabi.h: Remove.
8719 * config/mcore/mcore-pe.h: Remove.
8720 * config/mcore/t-mcore-pe: Remove.
8721 * config/netbsd-aout.h: Remove.
8722 * config/rs6000/gnu.h: Remove.
8723 * config/sh/sh-symbian.h: Remove.
8724 * config/sh/symbian-base.c: Remove.
8725 * config/sh/symbian-c.c: Remove.
8726 * config/sh/symbian-cxx.c: Remove.
8727 * config/sh/symbian-post.h: Remove.
8728 * config/sh/symbian-pre.h: Remove.
8729 * config/sh/t-symbian: Remove.
8730 * config/svr3.h: Remove.
8731 * config/vax/netbsd.h: Remove.
8732 * config.build: Don't handle i[34567]86-*-pe.
8733 * config.gcc: Remove handling of deprecations for most deprecated
8735 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8736 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8737 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8738 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8739 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8740 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8742 * config.host: Don't handle i[34567]86-*-pe.
8743 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8744 (ASM_SPEC32): Don't handle -mcall-gnu.
8745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8747 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8748 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8749 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8750 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8751 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8752 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8753 conditional on SYMBIAN.
8754 * configure.ac: Don't handle powerpc*-*-gnu*.
8755 * configure: Regenerate.
8756 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8757 * doc/install-old.texi (m6811, m6812): Don't mention.
8758 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8759 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8760 (m68k-uclinuxoldabi): Don't mention.
8761 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8763 (-mcall-gnu): Remove.
8764 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8765 families): Remove constraint documentation.
8767 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8769 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8770 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8771 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8773 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8776 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8777 vector when peeking at the next token for vector, don't expand the
8780 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8782 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8783 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8784 * config/avr/avr.c (init_cumulative_args)
8785 (avr_function_arg_advance): Use it.
8786 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8788 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8789 (avr_function_ok_for_sibcall): ...this new function.
8790 (avr_lookup_function_attribute1): New static Function.
8791 (avr_naked_function_p, interrupt_function_p)
8792 (signal_function_p, avr_OS_task_function_p)
8793 (avr_OS_main_function_p): Use it.
8794 * config/avr/avr.md ("sibcall", "sibcall_value")
8795 ("sibcall_epilogue"): New expander.
8796 ("*call_insn", "*call_value_insn"): New insn.
8797 ("call_insn", "call_value_insn"): Remove
8798 ("call", "call_value", "epilogue"): Change expander to handle
8801 2011-03-21 Nick Clifton <nickc@redhat.com>
8803 * doc/invoke.texi (Overall Options): Move closing brace to end of
8805 (Optimization Options): Add missing @gol.
8806 (Directory Options): Likewise.
8807 (i386 and x86-64 Options): Likewise.
8808 (RS6000 and PowerPC Options): Likewise.
8809 (i386 and x86-64 Windows Options): Likewise.
8810 (V850 Options): Add text missing from descriptions.
8812 2011-03-22 Richard Henderson <rth@redhat.com>
8814 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8815 (avr_incoming_return_addr_rtx): New.
8816 (emit_push_byte): New.
8817 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8818 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8819 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8820 (emit_pop_byte): New.
8821 (expand_epilogue): Use it. Pop frame pointer by bytes.
8822 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8823 (INCOMING_RETURN_ADDR_RTX): New.
8824 (INCOMING_FRAME_SP_OFFSET): New.
8825 (ARG_POINTER_CFA_OFFSET): New.
8826 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8827 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8830 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8832 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8834 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8835 (FUNCTION_ARG_ADVANCE): Likewise.
8836 * tm.texi.in: Change references to them to hook references.
8837 * tm.texi: Regenerate.
8838 * targhooks.c (default_function_arg): Eliminate check for target
8840 (default_function_incoming_arg): Likewise.
8841 (default_function_arg_advance): Likewise.
8842 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8843 (function_arg_advance): Likewise.
8844 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8846 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8848 * tree.c (build_call_1): New function.
8849 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8851 2011-03-22 Richard Guenther <rguenther@suse.de>
8853 PR tree-optimization/48228
8854 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8855 for single-arg PHIs.
8857 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8859 PR rtl-optimization/48143
8860 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8861 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8862 sse2_cvtps2pd): Likewise.
8864 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8866 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8868 2011-03-22 Richard Guenther <rguenther@suse.de>
8870 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8871 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8872 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8873 and REALIGN_LOAD_EXPR.
8874 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8875 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8876 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8877 DOT_PROD_EXPR case ...
8878 (expand_expr_real_2): ... here.
8879 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8880 and REALIGN_LOAD_EXPR.
8881 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8882 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8883 (vect_create_epilog_for_reduction): Likewise.
8884 (vectorizable_reduction): Likewise.
8885 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8886 * tree-vect-stmts.c (vectorizable_load): Likewise.
8888 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8890 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8892 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8894 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8895 handling for PLTOFF/GOTOFF.
8897 2011-03-22 Nick Clifton <nickc@redhat.com>
8899 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8900 trailing backslash from the end of the macro definition.
8902 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8904 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8907 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8909 * expr.h (prepare_operand): Move to...
8910 * optabs.h (prepare_operand): ...here and change the insn code
8911 parameter from "int" to "enum insn_code".
8912 (insn_operand_matches): Declare.
8913 * expr.c (init_expr_target): Use insn_operand_matches.
8914 (compress_float_constant): Likewise.
8915 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8916 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8917 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8918 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8920 (gen_cond_trap): Likewise.
8921 (prepare_operand): Likewise. Change icode to an insn_code.
8922 (insn_operand_matches): New function.
8923 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8924 * reload1.c (gen_reload): Likewise.
8925 * targhooks.c (default_secondary_reload): Likewise.
8927 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8929 * config/alpha/alpha.md (unspec): New define_c_enum.
8932 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8935 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8936 between a call and its CALL_ARG_LOCATION note.
8938 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8940 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8942 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8946 * c-common.c (shorten_compare): If primopN is first sign-extended
8947 to opN and then zero-extended to result type, set primopN to opN.
8949 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8951 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8952 for barrier handlers.
8954 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8956 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8957 UNSPEC constants to be in the unspec enumeration, and redefine
8958 all UNSPECV constants to be in the unspecv enumeration, so that
8959 dumps print which unspec/unspec_volatile this is.
8960 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8961 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8962 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8963 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8964 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8966 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8967 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8968 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8969 * config/rs6000/sync.md (isync, lwsync): Ditto.
8971 2011-03-21 Richard Guenther <rguenther@suse.de>
8973 * params.def (lto-min-partition): Fix typo.
8975 2011-03-21 Richard Guenther <rguenther@suse.de>
8978 * c-decl.c (grokdeclarator): Drop to the main variant only
8979 for array types. Drop flag_gen_aux_info check.
8981 2011-03-21 Richard Guenther <rguenther@suse.de>
8983 PR translation/47911
8984 * params.def (lto-partitions): Fix typo.
8985 (lto-min-partition): Fix wording.
8987 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8989 * config/rs6000/t-freebsd: Remove duplication from file.
8991 2011-03-21 Richard Guenther <rguenther@suse.de>
8994 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8996 2011-03-21 Richard Guenther <rguenther@suse.de>
8999 * params.def (lto-partitions): Require at least 1 partition.
9001 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9003 * gthr-solaris.h: Remove.
9004 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9005 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9006 (LIB_SPEC): Likewise.
9007 * config/sol2.opt (threads): Remove.
9008 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9009 (sparc*-*-solaris2*): Likewise.
9010 * configure.ac (enable_threads): Enable solaris support.
9011 * configure: Regenerate.
9012 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9013 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9016 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9018 * config.gcc: Obsolete *-*-solaris2.8*.
9019 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9021 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9024 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9025 reference. Solaris 8 perl works.
9027 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9030 * doc/install.texi (Prerequisites): Move jar etc. up.
9031 Explain support library version requirements.
9033 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9036 * doc/install.texi (Prerequisites): Move Perl to build
9037 requirements. Always necessary on Solaris 2 with Sun ld.
9039 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9041 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9043 (Specific, i?86-*-solaris2.[89]): Likewise.
9044 (Specific, i?86-*-solaris2.10): Likewise.
9045 (Specific, mips-sgi-irix6): Likewise.
9046 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9047 Update for binutils 2.21.
9049 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9051 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9052 Allow -fuse-linker-plugin for non-default plugin linker.
9053 * configure: Regenerate.
9055 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9058 * gengtype.c (files_rules): Added rule for cp/parser.h.
9060 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9063 * config/s390/s390.c (s390_delegitimize_address): Don't call
9064 lowpart_subreg if orig_x has BLKmode.
9066 2011-03-21 Kai Tietz <ktietz@redhat.com>
9069 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9070 * tree.h (attribute_spec): Add new member affects_type_identity.
9071 * attribs.c (empty_attribute_table): Adjust attribute_spec
9073 * config/alpha/alpha.c: Likewise.
9074 * config/arc/arc.c: Likewise.
9075 * config/arm/arm.c: Likewise.
9076 * config/avr/avr.c: Likewise.
9077 * config/bfin/bfin.c: Likewise.
9078 * config/crx/crx.c: Likewise.
9079 * config/darwin.h: Likewise.
9080 * config/h8300/h8300.c: Likewise.
9081 * config/i386/cygming.h: Likewise.
9082 * config/i386/i386.c: Likewise.
9083 * config/ia64/ia64.c: Likewise.
9084 * config/m32c/m32c.c: Likewise.
9085 * config/m32r/m32r.c: Likewise.
9086 * config/m68hc11/m68hc11.c: Likewise.
9087 * config/m68k/m68k.c: Likewise.
9088 * config/mcore/mcore.c: Likewise.
9089 * config/mep/mep.c: Likewise.
9090 * config/microblaze/microblaze.c: Likewise.
9091 * config/mips/mips.c: Likewise.
9092 * config/rs6000/rs6000.c: Likewise.
9093 * config/rx/rx.c: Likewise.
9094 * config/sh/sh.c: Likewise.
9095 * config/sol2.h: Likewise.
9096 * config/sparc/sparc.c: Likewise.
9097 * config/spu/spu.c: Likewise.
9098 * config/stormy16/stormy16.c: Likewise.
9099 * config/v850/v850.c: Likewise.
9101 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9103 * simplify-rtx.c (simplify_binary_operation_1): Handle
9104 (xor (and A B) C) case when B and C are both constants.
9106 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9108 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9110 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9113 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9115 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9117 PR rtl-optimization/48156
9118 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9119 assume df and df_lr are not NULL.
9121 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9124 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9125 between a call and its CALL_ARG_LOCATION note.
9127 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9130 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9131 between a call and its corresponding CALL_ARG_LOCATION note.
9133 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9135 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9136 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9137 * haifa-sched.c (setup_ref_regs): Ditto.
9138 * caller-save.c (add_used_regs_1): Ditto.
9139 * dse.c (look_for_hardregs): Ditto.
9140 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9141 * sched-rgn.c (check_live_1): Ditto.
9143 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9145 * c-decl.c (diagnose_mismatched_decls): Give an error for
9146 redefining a typedef with variably modified type.
9148 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9150 * c-decl.c (grokfield): Don't allow typedefs for structures or
9151 unions with no tag by default.
9152 * doc/extend.texi (Unnamed Fields): Update.
9154 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9156 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9157 Rewrite using indirect functions.
9158 (lwp_slwpcb): Ditto.
9159 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9160 (avx_vinsertf128<mode>): Ditto.
9162 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9164 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9167 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9169 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9170 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9172 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9174 PR rtl-optimization/48170
9175 * gcse.c (hoist_code): Remove bogus asserts.
9177 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9179 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9180 computation for prologue/epilogue.
9182 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9184 * Makefile.in (check-consistency): Remove.
9186 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9189 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9190 arange_table_in_use is 0, but either text_section_used or
9191 cold_text_section_used is true. Don't call it if
9192 !info_section_emitted.
9194 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9196 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9197 FUNCTION_VALUE_REGNO_P): Remove.
9198 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9200 * config/avr/avr.c (avr_ret_register): Make static inline.
9201 (avr_function_value_regno_p): New function.
9202 (avr_libcall_value): Make static. Add 'func' argument.
9203 (avr_function_value): Make static. Rename 'func' argument to
9204 'fn_decl_or_type', forward it to avr_libcall_value. Call
9205 avr_ret_register function instead of RET_REGISTER macro.
9206 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9208 2011-03-18 Jason Merrill <jason@redhat.com>
9211 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9213 2011-03-18 Richard Guenther <rguenther@suse.de>
9215 * doc/install.texi (--enable-gold): Remove.
9216 (--with-plugin-ld): Document.
9217 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9219 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9222 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9223 again after expansion changes.
9225 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9227 * combine.c (try_combine): Do simplification only call of
9228 subst() on i2 even when i1 is present. Update comments.
9230 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9232 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9233 and UNSPEC_PCREL_SYMOFF.
9235 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9237 * config/s390/s390.md: Use define_c_enum for the unspec constant
9240 2011-03-18 Richard Henderson <rth@redhat.com>
9241 Jakub Jelinek <jakub@redhat.com>
9244 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9245 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9247 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9250 * combine.c (cant_combine_insn_p): Don't check zero/sign
9251 extended hard registers.
9253 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9256 * combine.c (cant_combine_insn_p): Check zero/sign extended
9259 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9261 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9262 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9263 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9264 Change return type to bool.
9265 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9267 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9270 * var-tracking.c (prepare_call_arguments): If CALL target
9271 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9272 pc instead of looking it up using cselib_lookup and use
9273 Pmode for it if x has VOIDmode.
9274 * dwarf2out.c (gen_subprogram_die): If also both first and
9275 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9278 * function.c (assign_parms): For data.passed_pointer parms
9279 use MEM of data.entry_parm instead of data.entry_parm itself
9280 as DECL_INCOMING_RTL.
9281 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9282 also when passed and declared mode is the same, DECL_RTL
9283 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9286 2011-03-16 Jeff Law <law@redhat.com>
9288 PR rtl-optimization/37273
9289 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9290 handle them like argument loads from stack slots. Do not double
9291 count memory for memory constants and argument loads from stack slots.
9293 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9296 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9298 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9301 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9303 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9306 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9308 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9309 Clear call_arg_locations and call_arg_loc_last always.
9312 * var-tracking.c (prepare_call_arguments): If argument needs to be
9313 passed by reference, adjust argtype and mode.
9315 2011-03-17 Richard Guenther <rguenther@suse.de>
9318 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9319 a value make sure to fold the statement.
9321 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9324 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9325 return condition with !cfun->calls_alloca.
9327 2011-03-17 Richard Guenther <rguenther@suse.de>
9330 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9331 origin for decls in other ltrans units.
9332 (input_varpool_node): Likewise.
9334 2011-03-17 Richard Guenther <rguenther@suse.de>
9337 * tree-object-size.c (compute_object_offset): Properly return
9338 the offset operand of MEM_REFs as sizetype.
9340 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9342 PR rtl-optimization/48141
9343 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9344 * dse.c: Include params.h.
9345 (active_local_stores_len): New variable.
9346 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9348 (record_store, check_mem_read_rtx): Decrease it when removing
9350 (scan_insn): Likewise. Increase it when adding to chain, if it
9351 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9352 set active_local_stores to NULL before the addition.
9353 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9355 PR rtl-optimization/48141
9356 * dse.c (record_store): If no positions are needed in an insn
9357 that cannot be deleted, at least unchain it from active_local_stores.
9359 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9362 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9363 (lookup_type_die_strip_naming_typedef): ... here.
9364 (get_context_die): Use it.
9365 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9366 the anonymous struct named by the naming typedef.
9368 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9371 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9372 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9374 2011-03-16 Jeff Law <law@redhat.com>
9376 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9377 check for operands of conditional. Allow type to be a pointer.
9379 2011-03-16 Richard Guenther <rguenther@suse.de>
9381 PR tree-optimization/48149
9382 * fold-const.c (fold_binary_loc): Fold
9383 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9385 2011-03-16 Richard Guenther <rguenther@suse.de>
9387 PR tree-optimization/26134
9388 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9389 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9390 (non_rewritable_mem_ref_base): Handle complex type component
9391 accesses, constrain offsets for vector and complex extracts
9394 2011-03-16 Richard Guenther <rguenther@suse.de>
9396 PR tree-optimization/48146
9397 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9398 operands avoiding the need for renaming.
9400 2011-03-16 Richard Guenther <rguenther@suse.de>
9402 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9403 constant folding. Move MEM_REF canonicalization first.
9404 Rely on fold_const_aggregate_ref for initializer folding.
9405 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9407 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9410 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9411 arg0/arg1 or their arguments are always fold converted to matching
9414 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9417 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9420 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9421 Handle in-tree gold.
9422 (ld_vers): Extract binutils version for gold.
9423 (gcc_cv_ld_hidden): Handle gold here.
9424 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9425 * configure: Regenerate.
9426 * config.in: Regenerate.
9427 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9428 -fuse-linker-plugin otherwise.
9429 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9430 (LINK_COMMAND_SPEC): Use it.
9431 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9433 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9435 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9436 * calls.c: Remove debug.h include.
9437 (emit_call_1): Don't call virtual_call_token debug hook.
9438 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9439 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9440 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9441 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9442 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9443 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9444 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9445 dwarf2out_virtual_call): Remove.
9446 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9447 copy_call_info and virtual_call hooks.
9448 (dwarf2out_init): Don't initialize vcall_insn_table,
9449 debug_dcall_section and debug_vcall_section.
9450 (prune_unused_types): Don't mark nodes from dcall_table.
9451 (dwarf2out_finish): Don't output dcall or vcall tables.
9452 * final.c (final_scan_insn): Don't call direct_call or
9453 virtual_call debug hooks.
9454 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9455 virtual_call_token, copy_call_info and virtual_call hooks.
9456 (debug_nothing_uid): Remove prototype.
9457 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9458 copy_call_info and virtual_call hooks.
9459 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9460 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9461 * debug.c (do_nothing_debug_hooks): Likewise.
9462 (debug_nothing_uid): Remove.
9463 * doc/invoke.texi (-fenable-icf-debug): Remove.
9464 * common.opt (-fenable-icf-debug): Likewise.
9466 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9467 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9468 call's MEM. Handle functions returning aggregate through a hidden
9469 first pointer. For virtual calls add clobbered pc to call arguments
9471 * dwarf2out.c (gen_subprogram_die): Emit
9472 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9476 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9477 * rtl.h (ENTRY_VALUE_EXP): Define.
9478 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9479 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9480 * print-rtl.c (print_rtx): Likewise.
9481 * gengtype.c (adjust_field_rtx_def): Likewise.
9482 * var-tracking.c (vt_add_function_parameter): Adjust
9483 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9484 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9485 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9486 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9487 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9489 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9490 Call var_location debug hook even on CALL_INSNs.
9491 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9492 * rtl.def (ENTRY_VALUE): New.
9493 * dwarf2out.c: Include cfglayout.h.
9494 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9495 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9496 (struct call_arg_loc_node): New type.
9497 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9498 tail_call_site_count): New variables.
9499 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9500 DW_TAG_GNU_call_site_parameter.
9501 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9502 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9503 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9504 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9505 and DW_AT_GNU_all_source_call_sites.
9506 (mem_loc_descriptor): Handle ENTRY_VALUE.
9507 (add_src_coords_attributes): Don't add enything if
9508 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9509 (dwarf2out_abstract_function): Save and clear call_arg_location,
9510 call_site_count and tail_call_site_count around dwarf2out_decl call.
9511 (gen_call_site_die): New function.
9512 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9513 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9514 (dwarf2out_function_decl): Clear call_arg_locations,
9515 call_arg_loc_last, set call_site_count and tail_call_site_count
9516 to -1 and free block_map.
9517 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9518 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9519 followed by any real instructions.
9520 (dwarf2out_begin_function): Set call_site_count and
9521 tail_call_site_count to 0.
9522 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9523 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9524 attempt to force a DIE for it and worst case remove the attribute.
9525 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9526 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9528 * var-tracking.c: Include tm_p.h.
9529 (vt_stack_adjustments): For calls call note_register_arguments.
9530 (argument_reg_set): New variable.
9531 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9532 ensure the VALUE is resolved.
9533 (call_arguments): New variable.
9534 (prepare_call_arguments): New function.
9535 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9536 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9537 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9538 always use the best expression.
9539 (vt_expand_loc): Add ignore_cur_loc argument.
9540 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9541 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9542 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9544 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9545 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9546 argument. Don't call cselib_preserve_only_values and
9548 (note_register_arguments): New function.
9549 (vt_initialize): Compute argument_reg_set. Call
9550 vt_add_function_parameters before processing basic blocks instead of
9551 afterwards. For calls call prepare_call_arguments before calling
9552 cselib_process_insn.
9553 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9554 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9555 (var-tracking.o): Depend on $(TM_P_H).
9556 * cfglayout.h (insn_scope): New prototype.
9557 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9558 * cfglayout.c (insn_scope): No longer static.
9559 * insn-notes.def (CALL_ARG_LOCATION): New.
9560 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9561 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9562 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9563 nothing for DECL_EXTERNAL BLOCK_VARS.
9565 2011-03-16 Alan Modra <amodra@gmail.com>
9568 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9569 create invalid offset address for vsx splat insn.
9570 * config/rs6000/predicates.md (splat_input_operand): New.
9571 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9573 2011-03-15 Xinliang David Li <davidxl@google.com>
9576 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9577 (normalize_preds): New function.
9578 (is_use_properly_guarded): Normalize def predicates.
9580 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9583 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9584 in the output template.
9586 2011-03-15 Richard Guenther <rguenther@suse.de>
9589 * tree-pretty-print.c (dump_function_declaration): Properly
9590 dump unprototyped and varargs function types.
9592 2011-03-15 Richard Guenther <rguenther@suse.de>
9594 PR tree-optimization/13954
9595 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9598 2011-03-15 Richard Guenther <rguenther@suse.de>
9600 PR tree-optimization/48037
9601 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9602 selects into BIT_FIELD_REFs.
9603 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9606 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9608 PR tree-optimization/48129
9609 * builtins.c (fold_builtin_snprintf): Convert to type of
9610 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9611 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9613 2011-03-15 Richard Guenther <rguenther@suse.de>
9615 PR tree-optimization/41490
9616 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9617 value but with VUSE.
9618 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9620 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9621 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9622 * tree-tailcall.c (find_tail_calls): Ignore returns.
9624 2011-03-15 Richard Guenther <rguenther@suse.de>
9627 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9628 or variable-indexed array accesses when in gimple form.
9630 2011-03-15 Richard Guenther <rguenther@suse.de>
9632 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9634 2011-03-15 Alan Modra <amodra@gmail.com>
9637 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9638 presume symbol_refs without a symbol_ref_decl are suitably
9639 aligned, nor other trees we may see here. Handle anchor symbols.
9640 (legitimate_constant_pool_address_p): Comment. Add mode param.
9641 Check cmodel=medium addresses. Adjust all calls.
9642 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9643 creating cmodel=medium optimized access to locals.
9644 * config/rs6000/constraints.md (R): Pass QImode to
9645 legitimate_constant_pool_address_p.
9646 * config/rs6000/predicates.md (input_operand): Pass mode to
9647 legitimate_constant_pool_address_p.
9648 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9651 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9654 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9655 64-bit constants being loaded into registers other than GPRs such
9656 as loading 0 into a VSX register.
9658 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9660 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9662 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9665 * builtins.c (fold_builtin_snprintf): New function.
9666 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9667 (fold_builtin_4): Likewise.
9670 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9671 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9672 and C - X == X also strip nops from +/-/p+ operand.
9673 When optimizing -X == C, fold C to arg0's type.
9676 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9677 emit it as add_AT_int instead of add_AT_unsigned.
9679 2011-03-14 Tom Tromey <tromey@redhat.com>
9681 * unwind-dw2.c: Include sys/sdt.h if it exists.
9682 (_Unwind_DebugHook): Use STAP_PROBE2.
9683 * config.in, configure: Rebuild.
9684 * configure.ac: Check for sys/sdt.h.
9686 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9688 * config/i386/i386.md (ROUND_FLOOR): New constant.
9689 (ROUND_CEIL): Ditto.
9690 (ROUND_TRUNC): Ditto.
9691 (ROUND_MXCSR): Ditto.
9692 (ROUND_NO_EXC): Ditto.
9693 (rint<mode>2): Use new defines instead of numerical constants.
9694 (floor<mode>2): Ditto.
9695 (ceil<mode>2): Ditto.
9696 (btrunc<mode>2): Ditto.
9697 * config/i386/i386-builtin-types.def: Define ROUND function type
9699 * config/i386/i386.c (enum ix86_builtins): Add
9700 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9701 (struct builtin_description): Add
9702 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9703 (ix86_expand_sse_round): New static function.
9704 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9706 (ix86_builtin_vectorized_function): Handle
9707 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9709 2011-03-14 Tom Tromey <tromey@redhat.com>
9711 * c-parser.c (c_parser_asm_string_literal): Clear
9712 warn_overlength_strings.
9714 2011-03-14 Tom Tromey <tromey@redhat.com>
9716 * c-parser.c (disable_extension_diagnostics): Save
9717 warn_overlength_strings.
9718 (restore_extension_diagnostics): Restore warn_overlength_strings.
9720 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9722 * BASE-VER: Change to 4.7.0.
9724 2011-03-14 Richard Guenther <rguenther@suse.de>
9727 * tree.c (build_vector_from_val): Adjust assert to requirements
9730 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9733 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9735 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9737 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9738 terms of target_flags_explicit. Adjust copyright year.
9740 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9741 * config/rs6000/t-freebsd: New file. Add override for
9744 2011-03-13 Chris Demetriou <cgd@google.com>
9746 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9747 (-fno-diagnostics-show-option): this, to reflect current default.
9748 (-Werror=): Update text about -fno-diagnostics-show-option.
9750 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9753 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9754 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9755 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9756 mode is not V2DImode or V2DFmode.
9757 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9758 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9759 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9761 (movdi_internal64): Likewise.
9763 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9765 PR tree-optimization/47127
9766 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9768 (set_cloog_options): Same.
9769 (scop_to_clast): Same.
9770 (print_clast_stmt): Do not call cloog_state_malloc and
9772 (print_generated_program): Same.
9774 * graphite-clast-to-gimple.h (cloog_state): Declared.
9775 (scop_to_clast): Adjust declaration.
9776 * graphite.c (cloog_state): Defined here.
9777 (graphite_initialize): Call cloog_state_malloc.
9778 (graphite_finalize): Call cloog_state_free.
9780 2011-03-11 Jason Merrill <jason@redhat.com>
9782 * attribs.c (lookup_attribute_spec): Take const_tree.
9785 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9787 * config/sparc/sparc.c (sparc_option_override): Use
9788 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9790 2011-03-11 Richard Guenther <rguenther@suse.de>
9792 PR tree-optimization/48067
9793 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9794 multiplication result will be only used once on the target
9797 2011-03-11 Richard Guenther <rguenther@suse.de>
9799 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9801 2011-03-11 Richard Guenther <rguenther@suse.de>
9804 * tree.c (find_decls_types_r): Do not walk types only reachable
9805 from IDENTIFIER_NODEs.
9807 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9810 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9811 all vnode->force_output nodes as needed.
9813 2011-03-11 Jason Merrill <jason@redhat.com>
9816 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9817 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9819 2011-03-11 Martin Jambor <mjambor@suse.cz>
9821 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9824 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9826 PR tree-optimization/48063
9827 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9828 inline functions called once if !tree_can_inline_p (node->callers).
9830 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9832 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9834 * config/score/score3.c: Delete.
9835 * config/score/score3.h: Delete.
9836 * config/score/mul-div.S: Delete.
9837 * config/score/sfp-machine.h: Add new file.
9838 * config/score/constraints.md: Add new file.
9839 * config/score/t-score-softfp: Add new file.
9840 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9841 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9842 (score7_extra_constraint): Delete.
9843 (score7_option_override): Remove unused code.
9844 * config/score/score.c: Remove score3 and score5 define and code.
9845 * config/score/score.h: Remove score3 and score5 define and code.
9846 * config/score/score.md: Remove score3 template and unusual insn.
9847 * config/score/score.opt: Remove score3 and score5 options.
9849 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9851 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9852 when _HPUX_SOURCE is defined.
9853 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9855 2011-03-10 Jason Merrill <jason@redhat.com>
9858 * stor-layout.c (layout_type): Don't set structural equality
9859 on arrays of incomplete type.
9860 * tree.c (type_hash_eq): Handle comparing them properly.
9862 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9865 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9866 result mode matches original rtl mode.
9868 2011-03-10 Nick Clifton <nickc@redhat.com>
9870 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9871 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9873 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9875 PR rtl-optimization/47866
9876 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9877 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9878 if target wasn't scalar.
9879 * function.c (assign_stack_temp_for_type): Assert that neither
9880 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9881 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9883 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9885 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9887 * config/s390/s390-protos.h (s390_label_align): New prototype.
9888 * config/s390/s390.c (s390_label_align): New function.
9889 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9891 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9894 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9895 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9896 (output_vec_const_move): Ditto.
9898 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9900 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9901 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9902 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9903 Change 'rclass' argument and result type to reg_class_t.
9904 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9906 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9908 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9909 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9910 (TARGET_MEMORY_MOVE_COST): Define.
9911 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9913 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9916 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9919 PR tree-optimization/48022
9920 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9923 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9926 * var-tracking.c (find_use_val): Return NULL for
9927 cui->sets && cui->store_p BLKmode MEMs.
9929 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9931 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9933 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9934 xstormy16_print_operand_address): Remove.
9935 * config/stormy16/stormy16.c (xstormy16_print_operand,
9936 xstormy16_print_operand_address): Make static.
9937 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9939 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9942 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9943 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9946 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9949 * cfgloopmanip.c (fix_bb_placements): Return immediately
9950 if FROM is BASE_LOOP's header.
9952 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9954 * gimplify.c (gimplify_function_tree): Fix building calls
9955 to __builtin_return_address.
9957 2011-03-07 Alan Modra <amodra@gmail.com>
9959 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9960 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9961 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9962 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9964 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9965 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9966 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9967 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9968 * config/rs6000/rs6000.c
9969 (rs6000_elf_end_indicate_exec_stack): Rename to..
9970 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9971 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9972 (rs6000_file_start): ..here.
9973 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9974 file scope variables.
9975 (call_ABI_of_interest): New function.
9976 (init_cumulative_args): Set above vars when function return value
9977 is a float, vector, or small struct.
9978 (rs6000_function_arg_advance_1): Likewise for function args.
9979 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9980 references float args.
9982 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9984 * doc/cfg.texi: Remove "See" before @ref.
9985 * doc/invoke.texi: Likewise.
9987 2011-03-05 Jason Merrill <jason@redhat.com>
9989 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9991 2011-03-05 Anthony Green <green@moxielogic.com>
9993 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9995 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9997 PR rtl-optimization/47899
9998 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9999 to flow_loop_nested_p when moving the loop upward.
10001 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10004 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10006 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10008 PR tree-optimization/47967
10009 * ipa-cp.c (build_const_val): Return NULL instead of creating
10010 VIEW_CONVERT_EXPR for mismatching sizes.
10011 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10012 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10013 give up on versioning.
10015 2011-03-05 Alan Modra <amodra@gmail.com>
10018 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10019 full cmodel medium/large lo_sum + high addresses.
10021 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10023 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10024 pool references in UNSPEC_LTREL_OFFSET.
10026 2011-03-04 Jan Hubicka <jh@suse.cz>
10029 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10030 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10031 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10033 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10034 cgraph_add_thunk): Add node pointers.
10035 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10036 associated to right node.
10037 (input_node): Update use of cgraph_same_body_alias
10038 and cgraph_add_thunk.
10040 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10042 * config/i386/i386.opt (mprefer-avx128): New flag.
10043 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10044 modes when the flag -mprefer-avx128 is on.
10046 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10048 * dwarf2out.c (compare_loc_operands): Fix address handling.
10050 2011-03-04 Alan Modra <amodra@gmail.com>
10052 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10054 2011-03-04 Richard Guenther <rguenther@suse.de>
10056 PR middle-end/47968
10057 * expmed.c (extract_bit_field_1): Prefer vector modes that
10058 vec_extract patterns can handle.
10060 2011-03-04 Richard Guenther <rguenther@suse.de>
10062 PR middle-end/47975
10063 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10065 2011-03-04 Richard Henderson <rth@redhat.com>
10067 * explow.c (emit_stack_save): Remove 'after' parameter.
10068 (emit_stack_restore): Likewise.
10069 * expr.h: Update to match.
10070 * builtins.c, calls.c, stmt.c: Likewise.
10071 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10072 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10073 * function.c (expand_function_end): Insert the emit_stack_save
10074 sequence before parm_birth_insn instead of after.
10076 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10078 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10079 (ssse3_pmaddubsw128): Ditto.
10080 (ssse3_pmaddubsw): Ditto.
10082 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10084 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10086 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10089 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10090 on TYPE_SIZE_UNIT if it is a DECL.
10093 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10094 first operand is not is_gimple_mem_ref_addr, try to fold it.
10095 If the operand still isn't is_gimple_mem_ref_addr, clear
10098 2011-03-03 Richard Guenther <rguenther@suse.de>
10100 PR middle-end/47283
10101 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10103 (refs_may_alias_p_1): For release branches return true if
10104 we are confused by our input.
10106 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10108 * config/s390/s390.c (s390_function_value): Rename to ...
10109 (s390_function_and_libcall_value): ... this.
10110 (s390_function_value): New function.
10111 (s390_libcall_value): New function.
10112 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10113 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10114 target macro definitions.
10115 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10117 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10119 * config/i386/freebsd64.h (CC1_SPEC): Define.
10120 * config/i386/linux64.h (CC1_SPEC): Define.
10121 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10123 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10125 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10127 * config/stormy16/stormy16.c: Include reload.h.
10128 (xstormy16_memory_move_cost): New function.
10129 (TARGET_MEMORY_MOVE_COST): Define.
10131 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10133 PR rtl-optimization/47925
10134 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10135 with side effects. Remove the more-specific check for volatile asms.
10137 2011-03-02 Alan Modra <amodra@gmail.com>
10140 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10141 toc relative addresses for valid offsets.
10143 2011-03-01 Richard Guenther <rguenther@suse.de>
10145 PR tree-optimization/47890
10146 * tree-vect-loop.c (get_initial_def_for_induction): Set
10147 related stmt properly.
10149 2011-03-01 Richard Guenther <rguenther@suse.de>
10152 * lto-streamer.c (lto_record_common_node): Also register
10153 the canonical type.
10155 2011-03-01 Richard Guenther <rguenther@suse.de>
10158 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10159 Do not stream DECL_ABSTRACT_ORIGIN.
10160 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10161 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10162 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10163 Do not stream DECL_ABSTRACT_ORIGIN.
10164 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10165 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10167 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10169 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10170 FUNCTION_VALUE_REGNO_P): Remove.
10171 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10172 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10173 Add 'outgoing' argument.
10174 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10176 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10177 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10179 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10182 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10183 (lookup_filename): Likewise.
10184 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10186 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10187 Jakub Jelinek <jakub@redhat.com>
10189 PR middle-end/47893
10190 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10191 (assign_stack_local_1): Change last argument type to int.
10192 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10193 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10194 don't record padding space into frame_space_list nor use those areas.
10195 (assign_stack_local): Adjust caller.
10196 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10197 of assign_stack_local, pass 0 as last argument.
10198 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10201 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10204 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10205 Use target address_mode and pointer_mode hooks instead of hardcoded
10206 Pmode and ptr_mode. Handle some simple cases of extending if
10207 POINTERS_EXTEND_UNSIGNED < 0.
10208 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10209 Call convert_debug_memory_address.
10210 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10211 convert_debug_memory_address.
10213 PR middle-end/46790
10214 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10215 * configure: Regenerated.
10216 * config.in: Regenerated.
10217 * varasm.c (default_function_section): Return NULL
10218 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10220 2011-02-28 Martin Jambor <mjambor@suse.cz>
10222 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10223 the description to match the printed values.
10225 2011-02-28 Richard Guenther <rguenther@suse.de>
10227 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10228 of the copied scope tree.
10230 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10232 * doc/extend.texi (Function Attributes): Avoid deeply (and
10233 wrongly) nested tables.
10235 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10237 PR middle-end/47903
10238 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10239 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10240 r isn't op0 nor op1.
10242 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10244 * config/avr/avr.md: Remove magic comment for emacs.
10246 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10249 * config/avr/avr.c (avr_option_override): Use error on bad options.
10250 (avr_help): New function.
10251 (TARGET_HELP): Define.
10253 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10256 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10257 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10259 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10261 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10262 (ARM Options): Ditto.
10263 (i386 and x86-64 Options): Ditto.
10264 (RX Options): Ditto.
10265 (SPARC Options): Ditto.
10267 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10269 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10270 FreeBSD 6 and later. Generally use cpu generic.
10272 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10274 * doc/cpp.texi: Update copyright years.
10276 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10279 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10281 2011-02-25 Jon Beniston <jon@beniston.com>
10284 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10285 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10286 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10287 (lm32_block_move_inline): Add type cast to remove warning.
10288 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10289 (gen_int_relational): Move declarations to start of function.
10291 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10293 PR tree-optimization/45470
10294 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10295 can throw internally only.
10296 * tree-vect-stmts.c (vectorizable_call): Likewise.
10298 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10300 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10301 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10302 * config/stormy16/stormy16-protos.h
10303 (xstormy16_preferred_reload_class): Remove.
10304 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10305 static. Change 'rclass' argument and return type to reg_class_t.
10306 (TARGET_PREFERRED_RELOAD_CLASS,
10307 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10309 2011-02-24 Richard Guenther <rguenther@suse.de>
10311 * lto-streamer-in.c (input_bb): Do not find referenced vars
10312 in debug statements.
10314 2011-02-23 Jason Merrill <jason@redhat.com>
10316 * common.opt (fabi-version): Document v5 and v6.
10318 2011-02-23 Richard Guenther <rguenther@suse.de>
10320 PR tree-optimization/47849
10321 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10323 2011-02-23 Jie Zhang <jie@codesourcery.com>
10325 * opts-common.c (decode_cmdline_option): Print empty string
10326 argument as "" in decoded->orig_option_with_args_text.
10327 * gcc.c (execute): Print empty string argument as ""
10328 in the verbose output.
10329 (do_spec_1): Keep empty string argument.
10331 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10333 * config.gcc: Declare score-* and crx-* obsolete.
10335 2011-02-23 Jie Zhang <jie@codesourcery.com>
10337 PR rtl-optimization/47763
10338 * web.c (web_main): Ignore naked clobber when replacing register.
10340 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10342 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10345 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10348 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10350 2011-02-22 Mike Stump <mikestump@comcast.net>
10352 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10354 * configure: Regenerate.
10356 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10358 PR rtl-optimization/46002
10359 * ira-color.c (update_copy_costs): Change class intersection
10360 test to reg_class_contents[] test of 'hard_regno'.
10362 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10364 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10365 than Driver option.
10366 * config/hpux11.opt (mt): Likewise.
10367 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10368 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10369 * config/vax/elf.opt (mno-asm-pic): Likewise.
10370 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10372 2011-02-21 Mike Stump <mikestump@comcast.net>
10375 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10376 tree so we can get save the type.
10377 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10378 for CFString instead of trying to use past the end of the builtins.
10379 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10380 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10381 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10382 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10383 Rename to darwin_builtin_cfstring.
10384 (darwin_init_cfstring_builtins): Return the built type.
10386 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10389 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10390 (_mm256_insert_epi64): Use _mm_insert_epi64.
10392 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10394 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10395 * config/stormy16/stormy16-protos.h
10396 (xstormy16_mode_dependent_address_p): Remove.
10397 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10398 Make static. Change return type to bool. Change argument type to
10399 const_rtx. Remove dead code.
10400 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10402 2011-02-21 Richard Guenther <rguenther@suse.de>
10405 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10406 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10407 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10409 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10410 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10412 2011-02-20 Richard Guenther <rguenther@suse.de>
10415 * tree.c (free_lang_data_in_decl): Clean builtins from
10416 the TU decl BLOCK_VARS.
10418 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10422 * haifa-sched.c (fix_tick_ready): Skip tick computation
10425 2011-02-19 Richard Guenther <rguenther@suse.de>
10428 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10429 Remove lazy BLOCK_VARS streaming.
10430 (lto_input_ts_block_tree_pointers): Likewise.
10431 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10433 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10435 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10437 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10439 * config/i386/biarch32.h, config/i386/mach.h,
10440 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10442 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10445 * config/i386/i386.md (peephole2 for shift and plus): Use
10446 operands[1] original mode in the first insn.
10448 2011-02-18 Mike Stump <mikestump@comcast.net>
10450 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10452 2011-02-18 Jan Hubicka <jh@suse.cz>
10454 PR middle-end/47788
10455 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10456 to zero when the function is not inlinable at all.
10458 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10460 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10461 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10462 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10463 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10464 * config/pa/t-pa64: Likewise.
10465 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10467 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10470 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10472 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10475 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10477 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10479 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10480 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10481 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10482 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10483 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10484 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10485 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10486 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10487 m32r_legitimate_address_p): New functions.
10488 * config/m32r/constraints.md (constraint "S"): Don't use
10489 STORE_PREINC_PREDEC_P.
10490 (constraint "U"): Don't use LOAD_POSTINC_P.
10492 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10494 PR rtl-optimization/46178
10495 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10496 compute ira_hard_regno_cover_class[].
10498 2011-02-18 Richard Guenther <rguenther@suse.de>
10501 * lto-streamer.h (lto_global_var_decls): Declare.
10502 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10503 statics for global var processing.
10505 2011-02-18 Richard Guenther <rguenther@suse.de>
10507 PR tree-optimization/47737
10508 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10509 edge dominance check.
10511 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10514 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10515 avoid invalid rtx sharing.
10517 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10519 * doc/cpp.texi (Obsolete Features): Add background on the
10520 origin of assertions.
10522 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10524 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10526 * config/darwin.c (output_objc_section_asm_op): Added support for
10528 (is_objc_metadata): New.
10529 (darwin_objc2_section): New.
10530 (darwin_objc1_section): New.
10531 (machopic_select_section): Added support for ABI v1 and v2.
10532 (darwin_emit_objc_zeroed): New.
10533 (darwin_output_aligned_bss): Detect objc metadata and treat it
10535 (darwin_asm_output_aligned_decl_common): Same.
10536 (darwin_asm_output_aligned_decl_local): Same.
10537 * config/darwin-sections.def: Updated for ABI v1 and v2.
10538 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10539 compiling Objective-C code for the NeXT runtime, default to using
10540 ABI version 0 for 32-bit, and version 2 for 64-bit.
10542 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10544 * common.opt (optimize_fast): New Variable.
10545 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10546 instead of local variable ofast.
10548 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10550 * doc/invoke.texi (fobjc-abi-version): Documented.
10551 (fobjc-nilcheck): Documented.
10552 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10555 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10558 * common.opt (export-dynamic): New Driver option.
10559 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10561 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10563 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10565 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10566 Jan Hubicka <jh@suse.cz>
10570 * cfgexpand.c (account_used_vars_for_block): Remove.
10571 (estimated_stack_frame_size): Use referenced vars.
10572 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10573 that were referenced in the original function. Test src_fn
10574 rather than cfun. Drop redundant get_var_ann.
10575 (setup_one_parameter): Drop redundant get_var_ann.
10576 (declare_return_variable): Likewise.
10577 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10578 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10579 * ipa-inline.c (compute_inline_parameters): Do not compute
10580 disregard_inline_limits here.
10581 (compute_inlinable_for_current, pass_inlinable): New.
10582 (pass_inline_parameters): Require PROP_referenced_vars.
10583 * cgraphunit.c (cgraph_process_new_functions): Don't run
10584 compute_inline_parameters explicitly unless function is in SSA form.
10585 (cgraph_analyze_function): Set .disregard_inline_limits.
10586 * tree-sra.c (convert_callers): Compute inliner parameters
10587 only for functions already in SSA form.
10589 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10591 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10592 -mlittle-endian-data.
10594 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10596 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10597 -mno-fpu, not -fpu and -no-fpu.
10598 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10599 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10601 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10604 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10605 input reload with PLUS RTX.
10607 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10609 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10610 of InverseVar(MDMX).
10612 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10614 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10617 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10619 * config/mn10300/mn10300.opt (mno-crt0): New.
10621 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10623 * config/m68k/uclinux.opt (static-libc): New Driver option.
10625 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10627 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10629 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10631 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10632 %{muser-extend-enabled}.
10634 2011-02-16 Richard Guenther <rguenther@suse.de>
10636 PR tree-optimization/47738
10637 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10638 the TODO from tree_predictive_commoning.
10640 2011-02-15 Jeff Law <law@redhat.com>
10643 2011-01-25 Jeff Law <law@redhat.com>
10645 PR rtl-optimization/37273
10646 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10647 handle them like argument loads from stack slots. Do not double
10648 count memory for memory constants and argument loads from stack slots.
10650 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10652 PR middle-end/47725
10653 * combine.c (cant_combine_insn_p): Revert the last change.
10655 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10658 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10659 mode for vector constants. Remove code that checks for TImode.
10661 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10665 * cgraph.h (compute_inline_parameters): Return void.
10666 * ipa-inline.c (compute_inline_parameters): Adjust.
10668 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10672 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10674 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10675 * ipa-inline.c (compute_inline_parameters): Adjust.
10677 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10681 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10682 Adjust all users. Pass FN to...
10683 * tree-flow-inline.h (first_referenced_var): ... this. Add
10685 * ipa-struct-reorg.c: Adjust.
10686 * tree-dfa.c: Adjust.
10687 * tree-into-ssa.c: Adjust.
10688 * tree-sra.c: Adjust.
10689 * tree-ssa-alias.c: Adjust.
10690 * tree-ssa-live.c: Adjust.
10691 * tree-ssa.c: Adjust.
10692 * tree-ssanames.c: Adjust.
10693 * tree-tailcall.c: Adjust.
10695 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10699 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10700 Adjust all callers.
10701 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10702 * tree-flow-inline.h: Adjust.
10703 * gimple-pretty-print.c: Adjust.
10704 * tree-into-ssa.c: Adjust.
10705 * tree-ssa.c: Adjust.
10706 * cfgexpand.c: Adjust.
10708 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10710 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10711 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10712 (EXTRA_CONSTRAINT): Delete.
10713 * config/iq2000/constraints.md: New file.
10714 * config/iq2000/iq2000.md: Include it.
10715 (define_insn ""): Delete.
10716 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10717 unsupported constraint letters from patterns.
10718 (call_value, call_value_internal1): Likewise.
10719 (call_value_multiple_internal1): Likewise.
10721 2011-02-15 Nick Clifton <nickc@redhat.com>
10723 * config/mn10300/mn10300.c: Include tm-constrs.h.
10724 (struct liw_data): New data structure describing an LIW candidate
10726 (extract_bundle): Use struct liw_data. Allow small integer
10727 operands for some instructions.
10728 (check_liw_constraints): Use struct liw_data. Remove swapped
10729 parameter. Add comments describing the checks. Fix bug when
10730 assigning the source of liw1 to the source of liw2.
10731 (liw_candidate): Delete. Code moved into extract_bundle.
10732 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10734 * config/mn10300/predicates.md (liw_operand): New predicate.
10735 Allows registers and small integer constants.
10736 * config/mn10300/constraints.md (O): New constraint. Accetps
10737 integers in the range -8 to +7 inclusive.
10738 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10739 for moving a small integer into a register. Give this alternative
10741 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10742 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10743 using the J,K,L and M constraints,
10744 (liw): Remove SI mode on second operands to allow for HI and QI
10746 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10749 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10751 PR middle-end/47725
10752 * combine.c (cant_combine_insn_p): Check zero/sign extended
10755 2011-02-15 Richard Guenther <rguenther@suse.de>
10757 PR tree-optimization/47743
10758 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10759 for a non-type-compatible VN lookup bail out.
10761 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10763 * config/fr30/constraints.md: New file.
10764 * config/fr30/fr30.md: Include it.
10765 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10766 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10767 (EXTRA_CONSTRAINT): Delete.
10769 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10771 * config/frv/constraints.md: New file.
10772 * config/frv/predicates.md: Include it.
10773 * config/frv/frv.c (reg_class_from_letter): Delete.
10774 (frv_option_override): Don't initialize it.
10775 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10776 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10777 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10778 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10779 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10780 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10781 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10782 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10783 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10784 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10785 (REG_CLASS_FROM_CONSTRAINT): Delete.
10787 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10789 PR middle-end/47581
10790 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10791 if frame size is 0 in a leaf function.
10793 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10796 * config/alpha/host-osf.c: New file.
10797 * config/alpha/x-osf: New file.
10798 * config.host (alpha*-dec-osf*): Use it.
10800 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10802 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10803 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10804 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10805 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10807 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10809 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10811 * config/stormy16/constraints.md: New file.
10812 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10813 Use satisfies_constraint_Q and satisfies_constraint_R.
10814 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10816 (xstormy16_legitiamte_address_p): Declare.
10817 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10818 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10819 (EXTRA_CONSTRAINT): Delete.
10820 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10822 (xstormy16_extra_constraint_p): Delete.
10824 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10826 PR tree-optimization/46494
10827 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10828 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10829 (pass_rtl_loop_done): Add TODO_verify_flow.
10830 * fwprop.c (pass_rtl_fwprop): Likewise.
10831 * modulo-sched.c (pass_sms): Likewise.
10832 * tree-ssa-dom.c (pass_dominator): Likewise.
10833 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10834 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10835 (pass_tree_loop_done): Likewise.
10836 * tree-ssa-pre.c (execute_pre): Likewise.
10837 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10838 * tree-ssa-sink.c (pass_sink_code): Likewise.
10839 * tree-vrp.c (pass_vrp): Likewise.
10841 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10843 * config/v850/constraints.md: New file.
10844 * config/v850/v850.md: Include it.
10845 * config/v850/predicates.md (reg_or_0_operand): Use
10846 satisfies_constraint_G.
10847 (special_symbolref_operand): Use satisfies_constraint_K.
10848 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10849 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10850 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10851 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10852 (EXTRA_CONSTRAINT): Delete.
10853 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10854 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10855 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10857 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10860 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10863 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10865 * config/mcore/constraints.md: New file.
10866 * config/mcore/mcore.md: Include it.
10867 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10868 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10869 (REG_CLASS_FROM_LETTER): Delete.
10870 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10871 insn_const_int_ok_for_constraint.
10872 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10873 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10874 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10875 (EXTRA_CONSTRAINT): Delete.
10877 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10880 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10881 (IS_SIGHANDLER): Define.
10882 (sparc64_is_sighandler): New function, split off from
10883 sparc64_fallback_frame_state.
10884 (sparc_is_sighandler): New function, split off from
10885 sparc_fallback_frame_state.
10886 (sparc64_fallback_frame_state): Merge with ...
10887 (sparc_fallback_frame_state): ... this into ...
10888 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10889 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10890 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10891 stack instead of hardcoded offsets.
10893 2011-02-14 Andriy Gapon <avg@freebsd.org>
10896 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10898 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10900 * configure: Regenerate.
10902 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10905 * gcc.c (asm_options): Correct spec matching --target-help.
10907 2011-02-12 Martin Jambor <mjambor@suse.cz>
10909 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10910 to gimple call error.
10912 2011-02-12 Mike Stump <mikestump@comcast.net>
10914 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10915 comments in backslash regions.
10917 2011-02-12 Mike Stump <mikestump@comcast.net>
10918 Jakub Jelinek <jakub@redhat.com>
10919 Iain Sandoe <iains@gcc.gnu.org>
10922 * dwarf2out.c (output_cfa_loc): When required, apply the
10923 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10924 (output_loc_sequence): Likewise.
10925 (output_loc_operands_raw): Likewise.
10926 (output_loc_sequence_raw): Likewise.
10927 (output_cfa_loc): Likewise.
10928 (output_loc_list): Suppress register number adjustment when
10929 calling output_loc_sequence()
10930 (output_die): Likewise.
10932 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10934 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10936 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10937 xtensa_memory_move_cost): New functions.
10938 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10940 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10943 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10944 in the current directory.
10945 * configure: Rebuilt.
10947 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10949 * config/darwin.c (darwin_override_options): Add a hunk missed
10950 from the commit of r168571. Trim comment line lengths and
10951 correct indents of the preceding block.
10953 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10955 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10958 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10960 * common.opt (nostartfiles): New Driver option.
10962 2011-02-11 Xinliang David Li <davidxl@google.com>
10964 PR tree-optimization/47707
10965 * tree-chrec.c (convert_affine_scev): Keep type precision.
10967 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10969 PR tree-optimization/47420
10970 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10972 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10974 PR rtl-optimization/47614
10975 * rtl.h (check_for_inc_dec): Declare.
10976 * dse.c (check_for_inc_dec): Externalize...
10977 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10978 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10980 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10983 * gcc.c (main): Do not compile inputs if there were errors in
10985 * opts-common.c (read_cmdline_option): Check for wrong language
10986 after other error checks.
10988 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10990 * cgraph.c: Fix comment typos.
10991 * cgraph.h: Likewise.
10992 * cgraphunit.c: Likewise.
10993 * ipa-cp.c: Likewise.
10994 * ipa-inline.c: Likewise.
10995 * ipa-prop.c: Likewise.
10996 * ipa-pure-const.c: Likewise.
10997 * ipa-ref.c: Likewise.
10998 * ipa-reference.c: Likewise.
11000 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11003 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11005 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11008 * doc/sourcebuild.texi (Require Support): Document
11009 dg-require-ascii-locale.
11011 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11013 * doc/lto.texi (Write summary): Fix missing parentheses.
11015 2011-02-10 DJ Delorie <dj@redhat.com>
11017 * config/m32c/m32c.c (m32c_option_override): Disable
11018 -fcombine-stack-adjustments until flag value tracking and compare
11019 optimization can be rewritten.
11021 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11023 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11025 (PROCESSOR_DEFAULT64): Likewise.
11027 2011-02-10 Richard Henderson <rth@redhat.com>
11029 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11030 change from 2011-02-03.
11031 * config/rx/rx.c (flags_from_code): Likewise.
11032 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11033 is valid, n/pz otherwise.
11034 (rx_select_cc_mode): Return CCmode if Y is not zero.
11036 2011-02-10 Richard Guenther <rguenther@suse.de>
11038 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11040 2011-02-10 Richard Guenther <rguenther@suse.de>
11042 PR tree-optimization/47677
11043 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11045 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11048 * combine.c (make_compound_operation): Only change shifts into
11049 multiplication for SCALAR_INT_MODE_P.
11051 2011-02-10 Jie Zhang <jie@codesourcery.com>
11055 2011-02-05 Jie Zhang <jie@codesourcery.com>
11057 * web.c (entry_register): Don't clobber the number of the
11058 first uninitialized reference in used[].
11060 2011-02-09 Richard Guenther <rguenther@suse.de>
11062 PR tree-optimization/47664
11063 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11066 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11070 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11072 (PROCESSOR_DEFAULT64): Same.
11073 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11075 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11077 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11079 2011-02-09 Martin Jambor <mjambor@suse.cz>
11081 PR middle-end/45505
11082 * tree-sra.c (struct access): New flags grp_scalar_read and
11083 grp_scalar_write. Changed description of assignment read and write
11085 (dump_access): Dump new flags, reorder all of them.
11086 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11087 to detect multiple scalar reads.
11088 (analyze_access_subtree): Use the new scalar read write flags instead
11089 of the old flags. Adjusted comments.
11091 2011-02-08 DJ Delorie <dj@redhat.com>
11094 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11097 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11099 * config/m68k/uclinux.opt: New.
11100 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11102 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11104 * config/cris/elf.opt (sim): New Driver option.
11106 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11108 * config/xtensa/elf.opt: New.
11109 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11111 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11113 * config/vax/elf.opt: New.
11114 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11116 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11118 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11120 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11122 * config/gnu-user.opt: New.
11123 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11124 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11125 *-*-uclinux*): Use gnu-user.opt.
11127 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11129 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11130 * config/i386/gnu.h (CPP_SPEC): Likewise.
11132 2011-02-08 Ian Lance Taylor <iant@google.com>
11134 * common.opt (fcx-limited-range): Add SetByCombined flag.
11135 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11136 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11137 (fassociative-math, freciprocal-math): Likewise.
11138 (funsafe-math-optimizations): Likewise.
11139 * opth-gen.awk: Handle SetByCombined.
11140 * optc-gen.awk: Likewise.
11141 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11142 (set_unsafe_math_optimizations_flags): Likewise.
11143 * doc/options.texi (Option properties): Document SetByCombined.
11145 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11147 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11148 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11149 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11150 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11151 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11153 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11155 PR tree-optimization/46834
11156 PR tree-optimization/46994
11157 PR tree-optimization/46995
11158 * graphite-sese-to-poly.c (used_outside_reduction): New.
11159 (detect_commutative_reduction): Call used_outside_reduction.
11160 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11161 translate_scalar_reduction_to_array only when at least one
11162 loop-phi/close-phi tuple has been detected.
11164 2011-02-08 Richard Guenther <rguenther@suse.de>
11166 PR middle-end/47639
11167 * tree-vect-generic.c (expand_vector_operations_1): Update
11169 (expand_vector_operations): ... not here. Cleanup EH info
11170 and the CFG if required.
11172 2011-02-08 Richard Guenther <rguenther@suse.de>
11174 PR tree-optimization/47641
11175 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11176 require type compatibility.
11178 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11180 * gimple-low.c (lower_function_body): Don't remove the location of
11181 the return statement here.
11182 (lower_gimple_return): Do it here instead but only if the return
11183 statement is actually used twice.
11185 2011-02-08 Richard Guenther <rguenther@suse.de>
11187 PR tree-optimization/47632
11188 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11189 unused up_to_stmt parameter, return whether cfg-cleanup is
11190 necessary, remove EH info properly.
11191 (forward_propagate_into_gimple_cond): Adjust caller.
11192 (forward_propagate_into_cond): Likewise.
11193 (forward_propagate_comparison): Likewise.
11194 (tree_ssa_forward_propagate_single_use_vars): Make
11195 forward_propagate_comparison case similar to the two others.
11197 2011-02-08 Nick Clifton <nickc@redhat.com>
11199 * config/mn10300/mn10300.opt (mliw): New command line option.
11200 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11201 (liw_bundling): New automaton.
11202 (liw): New attribute.
11203 (liw_op): New attribute.
11204 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11205 (movsi_internal): Add LIW attributes.
11206 (andsi3): Likewise.
11207 (iorsi3): Likewise.
11208 (xorsi3): Likewise.
11209 (addsi3): Separate register and immediate alternatives.
11210 Add LIW attributes.
11211 (subsi3): Likewise.
11213 (aslsi3): Likewise.
11214 (lshrsi3): Likewise.
11215 (ashrsi3): Likewise.
11216 (liw): New pattern.
11217 * config/mn10300/mn10300.c (liw_op_names): New
11218 (mn10300_print_operand): Handle 'W' operand descriptor.
11219 (extract_bundle): New function.
11220 (check_liw_constraints): New function.
11221 (liw_candidate): New function.
11222 (mn10300_bundle_liw): New function.
11223 (mn10300_reorg): New function.
11224 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11225 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11226 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11227 __LIW__ or __NO_LIW__.
11228 * doc/invoke.texi: Describe the -mliw command line option.
11230 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11232 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11233 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11234 pthread_mutex_unlock): Remove.
11235 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11236 * config/pa/t-pa64: Likewise.
11237 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11238 shared libc if not linking against libpthread.
11239 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11241 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11244 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11245 on 10.6 and later to ensure that we always use the unwinder from
11246 the system. Only add -no_compact_unwind when tarteting darwin
11249 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11252 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11253 (vec_interleave_lowv2sf): Ditto.
11254 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11255 (vec_extract_oddv2sf): Ditto.
11257 2011-02-07 Mike Stump <mikestump@comcast.net>
11260 Add __ieee_divdc3 entry point.
11261 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11263 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11264 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11265 * config/darwin.c (darwin_rename_builtins): Add.
11266 * config/darwin-protos.h (darwin_rename_builtins): Add.
11268 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11271 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11274 2011-02-07 Mike Stump <mikestump@comcast.net>
11276 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11278 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11281 * config/avr/libgcc.S (exit): Move .endfunc
11283 2011-02-07 Richard Guenther <rguenther@suse.de>
11285 PR tree-optimization/47615
11286 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11287 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11288 (run_scc_vn): Initialize it.
11289 (visit_reference_op_load): Use it.
11290 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11292 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11294 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11295 DImode trapping arithmetic libfuncs.
11297 2011-02-07 Richard Guenther <rguenther@suse.de>
11299 PR tree-optimization/47621
11300 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11302 (execute_update_addresses_taken): ... here. Make it more
11303 conservative in what we accept.
11305 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11307 * config/sparc/freebsd.h (ASM_SPEC): Define.
11308 * config/sparc/vxworks.h (ASM_SPEC): Define.
11310 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11312 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11314 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11316 * doc/invoke.texi: Remove reference to compiler internals from
11317 user documentation.
11319 * reg-notes.def: Remove REG_VALUE_PROFILE.
11320 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11322 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11324 PR middle-end/47610
11325 * varasm.c (default_section_type_flags): If decl is NULL,
11326 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11328 2011-02-05 Jie Zhang <jie@codesourcery.com>
11331 * web.c (entry_register): Don't clobber the number of the
11332 first uninitialized reference in used[].
11334 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11336 PR tree-optimization/46194
11337 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11338 (build_classic_dist_vector_1): Do not represent classic distance
11339 vectors when the access functions are variating in different loops.
11341 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11343 * config/mips/iris6.opt: New.
11344 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11346 2011-02-04 Richard Henderson <rth@redhat.com>
11347 Steve Ellcey <sje@cup.hp.com>
11350 * config/ia64/predicates.md (mux1_brcst_element): New.
11351 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11352 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11353 (ia64_unpack_sign): New.
11354 (ia64_expand_unpack): Rewrite using new routines.
11355 (ia64_expand_widen_sum): Ditto.
11356 (ia64_expand_dot_prod_v8qi): Ditto.
11357 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11358 routines, add endian check.
11359 (pmpy2_even): Rename from pmpy2_r, add endian check.
11360 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11361 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11362 (vec_widen_smult_hi_v4hi): Ditto.
11363 (vec_widen_umult_lo_v4hi): Ditto.
11364 (vec_widen_umult_hi_v4hi): Ditto.
11365 (mulv2si3): Change endian checks.
11366 (sdot_prodv4hi): Rewrite with new calls.
11367 (udot_prodv4hi): New.
11368 (vec_pack_ssat_v4hi): Add endian check.
11369 (vec_pack_usat_v4hi): Ditto.
11370 (vec_pack_ssat_v2si): Ditto.
11371 (max1_even): Rename from max1_r, add endian check.
11372 (max1_odd): Rename from max1_l, add endian check.
11373 (*mux1_rev): Format change.
11374 (*mux1_mix): Ditto.
11375 (*mux1_shuf): Ditto.
11376 (*mux1_alt): Ditto.
11377 (*mux1_brcst_v8qi): Use new predicate.
11378 (vec_extract_evenv8qi): Remove endian check.
11379 (vec_extract_oddv8qi): Ditto.
11380 (vec_interleave_lowv4hi): Format change.
11381 (vec_interleave_highv4hi): Ditto.
11382 (mix2_even): Rename from mix2_r, add endian check.
11383 (mix2_odd): Rename from mux2_l, add endian check.
11384 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11385 (vec_extract_evenodd_helper): Format change.
11386 (vec_extract_evenv4hi): Remove endian check.
11387 (vec_extract_oddv4hi): Remove endian check.
11388 (vec_interleave_lowv2si): Format change.
11389 (vec_interleave_highv2si): Format change.
11390 (vec_initv2si): Remove endian check.
11391 (vecinit_v2si): Add endian check.
11392 (reduc_splus_v2sf): Add endian check.
11393 (reduc_smax_v2sf): Ditto.
11394 (reduc_smin_v2sf): Ditto.
11395 (vec_initv2sf): Remove endian check.
11396 (fpack): Add endian check.
11397 (fswap): Add endian check.
11398 (vec_interleave_highv2sf): Add endian check.
11399 (vec_interleave_lowv2sf): Add endian check.
11400 (fmix_lr): Add endian check.
11401 (vec_setv2sf): Format change.
11402 (*vec_extractv2sf_0_be): Use shift to extract operand.
11403 (*vec_extractv2sf_1_be): New.
11404 (vec_pack_trunc_v4hi): Add endian check.
11405 (vec_pack_trunc_v2si): Format change.
11407 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11409 PR inline-asm/23200
11410 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11411 do bb, locus and block comparison and disallow loads if it is not set.
11412 (stmt_is_replaceable_p): New function.
11413 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11415 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11416 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11418 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11420 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11422 * config/rs6000/xilinx.opt: New.
11423 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11425 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11427 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11429 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11431 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11432 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11433 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11434 secondary_reload_info, xtensa_secondary_reload): Remove.
11435 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11436 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11437 (xtensa_preferred_reload_class): Make static. Change return and
11438 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11439 Use CONST_DOUBLE_P predicate.
11440 (xtensa_preferred_output_reload_class): New function.
11441 (xtensa_secondary_reload): Make static.
11443 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11445 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11446 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11447 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11449 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11451 PR middle-end/31490
11452 * output.h (SECTION_RELRO): Define.
11453 (SECTION_MACH_DEP): Adjust.
11454 (get_variable_section): New prototype.
11455 * varpool.c (varpool_finalize_named_section_flags): New function.
11456 (varpool_assemble_pending_decls): Call it.
11457 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11458 * cgraphunit.c (cgraph_output_in_order): Call
11459 varpool_finalize_named_section_flags.
11460 * varasm.c (get_section): Allow section flags conflicts between
11461 relro and read-only sections if the section hasn't been declared yet.
11462 Set SECTION_OVERRIDE after diagnosing section type conflict.
11463 (get_variable_section): No longer static.
11464 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11465 readonly sections that need relocations.
11466 (decl_readonly_section_1): New function.
11467 (decl_readonly_section): Use it.
11470 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11471 Steve Ellcey <sje@cup.hp.com>
11473 PR middle-end/31490
11474 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11475 if section attribute used.
11477 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11479 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11480 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11481 (darwin_init_sections): Remove assertion.
11483 2011-02-03 Nick Clifton <nickc@redhat.com>
11485 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11487 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11488 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11489 instead of "n" and "pz".
11490 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11493 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11496 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11497 fma, expand FMA_EXPR as fma{,f,l} call.
11500 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11501 copy them into a unsigned char variable and pass address of it to
11502 lto_output_data_stream.
11505 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11506 around backend_init_target and lang_dependent_init_target calls.
11507 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11508 (verify_cgraph_node): Don't call set_cfun here. Use
11509 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11510 Set error_found for incorrectly represented calls to thunks.
11512 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11515 PR rtl-optimization/43494
11516 * rtl.h (for_each_inc_dec_fn): New type.
11517 (for_each_inc_dec): Declare.
11518 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11519 (for_each_inc_dec_find_inc_dec): New fn.
11520 (for_each_inc_dec_find_mem): New fn.
11521 (for_each_inc_dec): New fn.
11522 * dse.c (struct insn_size): Remove.
11523 (replace_inc_dec, replace_inc_dec_mem): Remove.
11524 (emit_inc_dec_insn_before): New fn.
11525 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11526 (canon_address): Pass mem modes to cselib_lookup.
11527 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11528 (cselib_lookup_from_insn): Likewise.
11529 (cselib_subst_to_values): Likewise.
11530 * cselib.c (find_slot_memmode): New var.
11531 (cselib_find_slot): New fn. Use it instead of
11532 htab_find_slot_with_hash everywhere.
11533 (entry_and_rtx_equal_p): Use find_slot_memmode.
11534 (autoinc_split): New fn.
11535 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11536 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11537 Deal with autoinc. Special-case recursion into MEMs.
11538 (cselib_hash_rtx): Likewise.
11539 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11540 address and MEM modes.
11541 (cselib_subst_to_values): Add memmode, pass it on.
11543 (cselib_lookup): Add memmode argument, pass it on.
11544 (cselib_lookup_from_insn): Add memmode.
11545 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11546 (struct cselib_record_autoinc_data): New.
11547 (cselib_record_autoinc_cb): New fn.
11548 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11549 mode to cselib_lookup. Reset autoinced REGs here instead of...
11550 (cselib_process_insn): ... here.
11551 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11553 (add_uses): Likewise, also to cselib_subst_to_values.
11554 (add_stores): Likewise.
11555 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11556 cselib_subst_to_values.
11557 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11558 * gcse.c (do_local_cprop): Adjusted.
11559 * postreload.c (reload_cse_simplify_set): Adjusted.
11560 (reload_cse_simplify_operands): Adjusted.
11561 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11563 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11565 PR tree-optimization/45122
11566 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11567 unsafe assumptions when there's more than one loop exit.
11569 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11572 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11573 Document using vector double with the load/store builtins, and
11574 that the load/store builtins always use Altivec instructions.
11576 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11577 to use altivec memory instructions, even on VSX.
11578 (vector_altivec_store_<mode>): Ditto.
11580 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11583 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11584 V2DF, V2DI support to load/store overloaded builtins.
11586 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11587 altivec load/store builtins for V2DF/V2DI types.
11589 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11590 set avoid indexed addresses on power6 if -maltivec.
11591 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11592 vector_altivec_load/vector_altivec_store builtins.
11593 (altivec_expand_st_builtin): Ditto.
11594 (altivec_expand_builtin): Add VSX memory builtins.
11595 (rs6000_init_builtins): Add V2DI types to internal types.
11596 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11597 load/store builtins.
11598 (rs6000_address_for_altivec): Insure memory address is appropriate
11601 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11602 vec_vsx_ld and vec_vsx_st.
11603 (vsx_store_<mode>): Ditto.
11605 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11606 variables to hold long long types for VSX vector memory builtins.
11607 (RS6000_BTI_unsigned_long_long): Ditto.
11608 (long_long_integer_type_internal_node): Ditti.
11609 (long_long_unsigned_type_internal_node): Ditti.
11611 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11612 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11613 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11615 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11617 (vec_vsx_st): Ditto.
11619 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11621 * config/pa/pa-hpux10.opt: New.
11622 * config/hpux11.opt (pthread): New Driver option.
11623 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11624 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11626 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11628 * config/ia64/vms.opt: New.
11629 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11631 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11634 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11635 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11636 generator functions.
11637 (vsx_floatuns<VSi><mode>2): Ditto.
11638 (vsx_fix_trunc<mode><VSi>2): Ditto.
11639 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11641 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11643 * config/i386/djgpp.opt (posix): New Driver option.
11645 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11647 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11648 Move to the unsupported targets list.
11650 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11652 PR rtl-optimization/47525
11653 * df-scan.c: Update copyright years.
11654 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11655 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11657 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11659 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11660 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11661 (ASM_OUTPUT_ASCII): Remove.
11662 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11664 2011-02-02 Jeff Law <law@redhat.com>
11666 PR middle-end/47543
11667 * reload.c (find_reloads_address): Handle reg+d address where both
11668 components are invalid by reloading the entire address.
11670 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11671 Richard Guenther <rguenther@suse.de>
11673 PR tree-optimization/40979
11675 * passes.c (init_optimization_passes): After LIM call copy_prop
11676 and DCE to clean up.
11677 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11679 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11681 PR tree-optimization/47576
11682 PR tree-optimization/47555
11683 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11684 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11685 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11686 * tree-scalar-evolution.c (follow_ssa_edge): Use
11687 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11689 2011-02-02 Richard Guenther <rguenther@suse.de>
11691 PR tree-optimization/47566
11692 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11694 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11698 * tree-inline.c (declare_return_variable): Remove unused caller
11703 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11704 * cfgexpand.c (account_used_vars_for_block): Use them.
11705 * tree-nrv.c (tree_nrv): Likewise.
11706 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11707 (dump_scope_block): Likewise.
11708 (remove_unused_locals): Likewise.
11712 * tree-inline.c (declare_return_variable): Add result decl to
11713 local decls only once.
11714 * gimple-low.c (record_vars_into): Mark newly-created variables
11717 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11723 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11725 (no_real_insns_p, schedule_block, set_priorities): Drop special
11726 treatment of boundary debug insns.
11727 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11728 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11729 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11730 (BOUNDARY_DEBUG_INSN_P): Likewise.
11731 (SCHEDULE_DEBUG_INSN_P): Likewise.
11732 * sched-rgn.c (init_ready_list): Drop special treatment of
11733 boundary debug insns.
11734 * final.c (rest_of_clean_state): Clear notes' BB.
11736 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11738 * config/openbsd.opt (assert=): New Driver option.
11740 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11742 * config/i386/nto.opt: New.
11743 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11745 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11747 * config/i386/netware.opt: New.
11748 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11750 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11752 * config/interix.opt (posix): New Driver option.
11754 2011-02-01 DJ Delorie <dj@redhat.com>
11756 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11758 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11761 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11763 PR tree-optimization/47561
11764 * toplev.c (process_options): Print the Graphite flags. Add
11765 flag_loop_flatten to the list of options requiring Graphite.
11767 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11769 * config/i386/cygming.opt (posix): New Driver option.
11771 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11773 * config/arm/vxworks.opt: New.
11774 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11776 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11778 * config/alpha/elf.opt: New.
11779 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11780 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11782 2011-02-01 Richard Guenther <rguenther@suse.de>
11784 PR tree-optimization/47559
11785 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11786 store-motion on references that can throw.
11788 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11790 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11791 * tree-pass.h (TDF_CSELIB): New macro.
11792 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11793 cselib_lookup): Check for it rather than for TDF_DETAILS.
11795 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11798 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11799 is HOST_BIT_BUCKET.
11801 * opts.c (finish_options): Don't add x_aux_base_name if it is
11804 2011-02-01 Richard Guenther <rguenther@suse.de>
11806 PR tree-optimization/47555
11808 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11810 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11812 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11815 * config/lm32/t-lm32: Add multilib for all CPU options.
11817 2011-02-01 Richard Guenther <rguenther@suse.de>
11819 PR tree-optimization/47541
11820 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11821 sure to have a field at offset zero.
11823 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11825 * config/arc/arc.opt (EB, EL): New Driver options.
11827 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11829 * config/alpha/osf5.opt: New.
11830 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11832 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11834 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11836 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11838 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11839 -floop-interchange.
11840 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11841 is an alias of -floop-interchange and that it requires the
11842 Graphite infrastructure.
11843 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11844 flag_loop_interchange based on the value of flag_tree_loop_linear.
11846 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11847 Richard Guenther <rguenther@suse.de>
11849 PR tree-optimization/47538
11850 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11851 type instead of r1type, except for comparisons. For right
11852 shifts and comparisons punt if there are mismatches in
11853 sizetype vs. non-sizetype types.
11855 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11857 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11860 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11862 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11864 * configure: Regenerate.
11866 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11868 * configure.ac (gcc_cv_ld_static_option): Define.
11869 (gcc_cv_ld_dynamic_option): Define.
11870 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11872 (HAVE_LD_STATIC_DYNAMIC): Update message.
11873 (LD_STATIC_OPTION): Define.
11874 (LD_DYNAMIC_OPTION): Define.
11875 * configure: Regenerate.
11876 * config.in: Regenerate.
11877 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11878 HAVE_LD_STATIC_DYNAMIC]: Use them.
11880 2011-01-31 Nick Clifton <nickc@redhat.com>
11882 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11883 registers inside interrupt handlers if the handler is not a leaf
11886 2011-01-31 Nick Clifton <nickc@redhat.com>
11888 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11889 reg_renumber returning an INVALID_REGNUM.
11891 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11894 * doc/install.texi: Document host options discarded when cross
11895 configuring target libraries.
11897 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11900 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11903 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11905 (no_real_insns_p, schedule_block, set_priorities): Drop special
11906 treatment of boundary debug insns.
11907 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11908 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11909 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11910 (BOUNDARY_DEBUG_INSN_P): Likewise.
11911 (SCHEDULE_DEBUG_INSN_P): Likewise.
11912 * sched-rgn.c (init_ready_list): Drop special treatment of
11913 boundary debug insns.
11914 * final.c (rest_of_clean-state): Clear notes' BB.
11916 2011-01-31 Alan Modra <amodra@gmail.com>
11918 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11919 toc relative expressions as we do in print_operand_address.
11921 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11923 * doc/extend.texi: Follow spelling conventions.
11924 * doc/invoke.texi: Fix a typo.
11926 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11928 * config/hpux11.opt: New.
11929 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11930 ia64*-*-hpux*): Use hpux11.opt.
11932 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11934 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11937 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11939 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11942 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11944 * doc/install.texi (Binaries): Remove outdated reference for
11945 Motorola 68HC11/68HC12 downloads.
11947 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11949 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11952 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11955 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11958 2011-01-28 Ahmad Sharif <asharif@google.com>
11960 * value-prof.c (check_counter): Corrected error message.
11962 2011-01-29 Jie Zhang <jie@codesourcery.com>
11964 * config/arm/arm.c (arm_legitimize_reload_address): New.
11965 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11966 arm_legitimize_reload_address.
11967 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11969 2011-01-28 Ian Lance Taylor <iant@google.com>
11971 * godump.c (go_define): Ignore macros whose definitions include
11972 two adjacent operands.
11974 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11977 * varasm.c (force_const_mem): Store copy of x in desc->constant
11978 instead of x itself.
11979 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11980 itself into REG_EQUAL note.
11982 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11984 * config/freebsd.opt (posix, rdynamic): New Driver options.
11986 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11988 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11989 -Bstatic/-Bdynamic.
11990 * configure: Regenerate.
11992 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11994 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11995 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11997 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11999 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12000 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12001 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12002 (s390_preferred_reload_class): Make static. Change return and
12003 'rclass' argument type to reg_class_t.
12005 2011-01-27 Jan Hubicka <jh@suse.cz>
12007 PR middle-end/46949
12008 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12009 (process_function_and_variable_attributes): Check defined weakrefs.
12011 2011-01-27 Martin Jambor <mjambor@suse.cz>
12013 PR tree-optimization/47228
12014 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12015 build_ref_for_offset.
12017 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12019 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12021 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12023 PR rtl-optimization/46856
12024 * postreload.c (reload_combine_recognize_const_pattern): Do not
12025 separate cc0 setter and user on cc0 targets.
12027 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12030 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12031 passed a VOID_TYPE expression, immediately emit an error and
12032 return error_mark_node.
12034 2011-01-26 Jeff Law <law@redhat.com>
12036 PR rtl-optimization/47464
12037 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12038 rather than may_trap_p as needed.
12040 2011-01-26 DJ Delorie <dj@redhat.com>
12042 PR rtl-optimization/46878
12043 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12044 setter/user dependency as well.
12046 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12048 PR rtl-optimization/44469
12049 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12050 after removing trivially dead basic blocks.
12052 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12054 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12055 * config/frv/frv.h (LINK_SPEC): Likewise.
12056 * config/i386/netware.h (LINK_SPEC): Likewise.
12057 * config/m68k/linux.h (ASM_SPEC): Likewise.
12058 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12059 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12060 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12061 * config/sparc/linux.h (ASM_SPEC): Likewise.
12062 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12063 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12065 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12067 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12068 * config/frv/frv.h (ASM_SPEC): Likewise.
12069 * config/m68k/linux.h (ASM_SPEC): Likewise.
12070 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12071 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12072 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12073 * config/sparc/linux.h (ASM_SPEC): Likewise.
12074 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12075 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12077 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12079 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12080 * config/frv/frv.h (LINK_SPEC): Likewise.
12081 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12083 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12085 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12086 * config/frv/frv.h (ASM_SPEC): Likewise.
12087 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12088 * config/m68k/linux.h (ASM_SPEC): Likewise.
12089 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12090 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12091 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12092 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12093 * config/sparc/linux.h (ASM_SPEC): Likewise.
12094 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12095 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12096 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12098 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12101 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12103 (vec_extract_evenodd_help): Ditto.
12104 (vec_extract_evenv4hi): Ditto.
12105 (vec_extract_oddv4hi): Ditto.
12106 (vec_interleave_lowv2si): Ditto.
12107 (vec_interleave_highv2si): Ditto.
12108 (vec_extract_evenv2si): Ditto.
12109 (vec_extract_oddv2si: Ditto.
12110 (vec_pack_trunc_v2si): Ditto.
12112 2011-01-22 Jan Hubicka <jh@suse.cz>
12115 * cgraph.h (cgraph_local_info): New field can_change_signature.
12116 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12117 signature can change.
12118 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12120 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12121 (cgraph_function_versioning): We can not change signature of functions
12122 that don't allow that.
12123 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12124 (lto_input_node): Likewise.
12125 * ipa-inline.c (compute_inline_parameters): Compute
12126 local.can_change_signature.
12127 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12128 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12129 functions that can not change signature.
12130 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12131 init_cumulative_args): Do not use local calling conventions
12132 for functions that can not change signature.
12134 2011-01-22 Jan Hubicka <jh@suse.cz>
12136 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12138 2011-01-26 Richard Guenther <rguenther@suse.de>
12140 PR tree-optimization/47190
12141 * cgraphunit.c (process_common_attributes): New function.
12142 (process_function_and_variable_attributes): Use it.
12144 2011-01-26 Richard Guenther <rguenther@suse.de>
12147 * cgraphbuild.c (record_eh_tables): Record reference to personality
12150 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12153 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12154 non-debug insns from moving up.
12156 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12159 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12160 t-dlldir{,-x} fragment for build and add it to tmake_file.
12161 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12162 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12163 * config/i386/t-dlldir: New file.
12164 (SHLIB_DLLDIR): Define.
12165 * config/i386/t-dlldir-x: New file.
12166 (SHLIB_DLLDIR): Define.
12167 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12168 (SHLIB_INSTALL): Use it.
12170 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12173 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12174 lower bound of the allowed Thumb-2 coprocessor load/store
12175 index range to -256. Add explaining comment.
12177 2011-01-25 Ian Lance Taylor <iant@google.com>
12179 * godump.c (go_define): Improve lexing of macro expansion to only
12180 accept expressions which match Go spec.
12182 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12185 * tree.c (handle_dll_attribute): Handle it.
12186 * doc/extend.texi (@item dllexport): Mention it.
12187 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12189 2011-01-25 Ian Lance Taylor <iant@google.com>
12191 PR tree-optimization/26854
12192 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12193 (decl_jump_unsafe): Move higher in file, with no other change.
12194 (bind): Set has_jump_unsafe_decl if appropriate.
12195 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12196 (check_earlier_gotos): Likewise.
12197 (c_check_switch_jump_warnings): Likewise.
12199 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12201 * doc/invoke.texi (Warning Options): Add missing hyphen.
12202 (-fprofile-dir): Minor grammatical fixes.
12203 (-fbranch-probabilities): Likewise.
12205 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12209 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12211 (no_real_insns_p, schedule_block, set_priorities): Drop special
12212 treatment of boundary debug insns.
12213 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12214 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12215 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12216 (BOUNDARY_DEBUG_INSN_P): Likewise.
12217 (SCHEDULE_DEBUG_INSN_P): Likewise.
12218 * sched-rgn.c (init_ready_list): Drop special treatment of
12219 boundary debug insns.
12220 * final.c (rest_of_clean-state): Clear notes' BB.
12222 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12224 * Makefile.in (LAMBDA_H): Removed.
12225 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12226 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12227 lambda-trans.o, and tree-loop-linear.o.
12228 (lto-symtab.o): Remove dependence on LAMBDA_H.
12229 (tree-loop-linear.o): Remove rule.
12230 (lambda-mat.o): Same.
12231 (lambda-trans.o): Same.
12232 (lambda-code.o): Same.
12233 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12234 (tree-vect-slp.o): Same.
12235 * hwint.h (gcd): Moved here.
12236 (least_common_multiple): Same.
12237 * lambda-code.c: Removed.
12238 * lambda-mat.c: Removed.
12239 * lambda-trans.c: Removed.
12240 * lambda.h: Removed.
12241 * tree-loop-linear.c: Removed.
12242 * lto-symtab.c: Do not include lambda.h.
12243 * omega.c (gcd): Removed.
12244 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12245 * tree-data-ref.c (print_lambda_vector): Moved here.
12246 (lambda_vector_copy): Same.
12247 (lambda_matrix_copy): Same.
12248 (lambda_matrix_id): Same.
12249 (lambda_vector_first_nz): Same.
12250 (lambda_matrix_row_add): Same.
12251 (lambda_matrix_row_exchange): Same.
12252 (lambda_vector_mult_const): Same.
12253 (lambda_vector_negate): Same.
12254 (lambda_matrix_row_negate): Same.
12255 (lambda_vector_equal): Same.
12256 (lambda_matrix_right_hermite): Same.
12257 * tree-data-ref.h: Do not include lambda.h.
12258 (lambda_vector): Moved here.
12259 (lambda_matrix): Same.
12260 (dependence_level): Same.
12261 (lambda_transform_legal_p): Removed declaration.
12262 (lambda_collect_parameters): Same.
12263 (lambda_compute_access_matrices): Same.
12264 (lambda_vector_gcd): Same.
12265 (lambda_vector_new): Same.
12266 (lambda_vector_clear): Same.
12267 (lambda_vector_lexico_pos): Same.
12268 (lambda_vector_zerop): Same.
12269 (lambda_matrix_new): Same.
12270 * tree-flow.h (least_common_multiple): Removed declaration.
12271 * tree-parloops.c (lambda_trans_matrix): Moved here.
12272 (LTM_MATRIX): Same.
12273 (LTM_ROWSIZE): Same.
12274 (LTM_COLSIZE): Same.
12275 (LTM_DENOMINATOR): Same.
12276 (lambda_trans_matrix_new): Same.
12277 (lambda_matrix_vector_mult): Same.
12278 (lambda_transform_legal_p): Same.
12279 * tree-pass.h (pass_linear_transform): Removed declaration.
12280 * tree-ssa-loop.c (tree_linear_transform): Removed.
12281 (gate_tree_linear_transform): Removed.
12282 (pass_linear_transform): Removed.
12283 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12284 flag_loop_interchange.
12286 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12288 PR tree-optimization/47265
12289 PR tree-optimization/47443
12290 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12291 if name still has some uses.
12293 2011-01-25 Martin Jambor <mjambor@suse.cz>
12295 PR tree-optimization/47382
12296 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12297 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12299 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12301 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12302 sjlj_except_unwind_info.
12304 2011-01-25 Richard Guenther <rguenther@suse.de>
12306 PR tree-optimization/47426
12307 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12308 visible functions results escape.
12310 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12313 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12314 (arm_get_frame_offsets): Use it.
12316 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12317 Jakub Jelinek <jakub@redhat.com>
12319 PR tree-optimization/47271
12320 * tree-if-conv.c (bb_postdominates_preds): New.
12321 (if_convertible_bb_p): Call bb_postdominates_preds.
12322 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12323 (predicate_scalar_phi): Call bb_postdominates_preds.
12325 2011-01-25 Nick Clifton <nickc@redhat.com>
12327 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12328 * config/rx/rx.c (rx_function_value): Likewise.
12329 (rx_promote_function_mode): Likewise.
12330 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12331 in order to make it legitimate.
12332 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12333 make sure that the first operand is the same as the result register.
12334 (addsi3_unspec): Delete.
12335 (subdi3): Do not accept immediate operands.
12336 (subdi3_internal): Likewise.
12338 2011-01-25 Jeff Law <law@redhat.com>
12340 PR rtl-optimization/37273
12341 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12342 handle them like argument loads from stack slots. Do not double
12343 count memory for memory constants and argument loads from stack slots.
12345 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12347 PR tree-optimization/47427
12348 PR tree-optimization/47428
12349 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12350 coalesce if the new root var would be TREE_READONLY.
12352 2011-01-25 Richard Guenther <rguenther@suse.de>
12354 PR middle-end/47414
12355 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12356 correct type for TBAA.
12358 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12360 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12361 (close_phi_written_to_memory): Call for_each_index with
12362 dr_indices_valid_in_loop.
12364 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12366 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12367 when it is initialized.
12369 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12371 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12372 call to graphite_find_data_references_in_stmt.
12373 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12374 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12375 call to graphite_find_data_references_in_stmt.
12376 (analyze_drs_in_stmts): Same.
12377 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12378 in which the scalar analysis of indices is performed.
12379 (create_data_ref): Same. Update call to dr_analyze_indices.
12380 (find_data_references_in_stmt): Update call to create_data_ref.
12381 (graphite_find_data_references_in_stmt): Same.
12382 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12384 (create_data_ref): Same.
12385 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12386 call to create_data_ref.
12388 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12390 * graphite-sese-to-poly.c (build_poly_scop): Move
12391 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12395 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12396 VAR_DECL, PARM_DECL, and RESULT_DECL.
12398 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12400 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12401 in a reduction PBB.
12402 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12403 that have already been marked as PBB_IS_REDUCTION.
12405 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12407 * graphite-scop-detection.c (same_close_phi_node): New.
12408 (remove_duplicate_close_phi): New.
12409 (make_close_phi_nodes_unique): New.
12410 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12412 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12414 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12415 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12416 of both data references to be the same.
12418 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12420 * graphite-dependences.c (build_lexicographical_constraint): Remove
12421 the gdim parameter.
12422 (build_lexicographical_constraint): Adjust call to
12423 ppl_powerset_is_empty.
12424 (dependence_polyhedron): Same.
12425 (graphite_legal_transform_dr): Same.
12426 (graphite_carried_dependence_level_k): Same.
12427 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12429 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12433 * graphite-sese-to-poly.c
12434 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12435 (close_phi_written_to_memory): New.
12436 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12439 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12441 * doc/install.texi: Update the expected version number of PPL to 0.11.
12442 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12443 #if PPL_VERSION_MINOR < 11.
12445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12447 * graphite-dependences.c: Include graphite-cloog-util.h.
12448 (new_poly_ddr): Inlined into dependence_polyhedron.
12449 (free_poly_ddr): Moved close by new_poly_ddr.
12450 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12451 Early return NULL when ppl_powerset_is_empty returns true.
12452 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12453 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12454 (graphite_legal_transform_dr): Call new_poly_ddr.
12455 (graphite_carried_dependence_level_k): Same.
12456 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12457 (dot_transformed_deps_stmt_1): Removed.
12458 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12459 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12460 (dot_deps_1): Call dot_deps_2.
12461 * Makefile.in (graphite-dependences.o): Add missing dependence on
12462 graphite-cloog-util.h.
12464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12466 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12467 (build_lexicographical_constraint): Same.
12468 (dependence_polyhedron_1): Same.
12469 (graphite_legal_transform_dr): Same.
12470 (graphite_carried_dependence_level_k): Same.
12471 * graphite-ppl.c (ppl_powerset_is_empty): New.
12472 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12473 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12475 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12477 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12478 the "a followed by b" relation and document it.
12480 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12482 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12483 iteration when the bag of constraints is empty.
12485 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12487 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12489 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12491 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12492 nest and two loop depths as parameters.
12493 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12494 lst_perfect_nestify.
12496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12498 * graphite-dependences.c (print_pddr): Call
12499 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12501 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12503 * graphite-ppl.c (debug_gmp_value): New.
12504 * graphite-ppl.h (debug_gmp_value): Declared.
12506 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12508 * doc/install.texi: Document availability of cloog-0.16.
12510 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12512 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12513 invalid postdominance info.
12515 2011-01-24 Jan Hubicka <jh@suse.cz>
12518 * doc/extend.texi (weak pragma): Drop claim that it must
12519 appear before definition.
12520 * varasm.c (merge_weak, declare_weak): Only sanity check
12521 that DECL is not output at a time it is declared weak.
12523 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12525 * machmode.def: Fixed comments.
12527 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12529 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12531 2011-01-24 Paul Koning <ni1d@arrl.net>
12533 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12536 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12539 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12540 (block_info): Add scanned and prev.
12541 (move_or_delete_vzeroupper_2): Return if the basic block
12542 has been scanned and the upper 128bit state is unchanged
12543 from the last scan.
12544 (move_or_delete_vzeroupper_1): Return true if the exit
12546 (move_or_delete_vzeroupper): Visit basic blocks using the
12547 work-list based algorithm based on vt_find_locations in
12550 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12552 2011-01-24 Nick Clifton <nickc@redhat.com>
12554 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12555 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12556 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12557 then define __v850e1__.
12558 * doc/invoke.texi: Document -mv850es.
12560 2011-01-24 Richard Henderson <rth@redhat.com>
12562 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12563 compound unordered comparisons.
12564 * config/rx/rx.c (rx_split_fp_compare): Remove.
12565 * config/rx/rx-protos.h: Update.
12566 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12567 (cbranchsf4): Don't call rx_split_fp_compare.
12568 (*cbranchsf4): Use rx_split_cbranch.
12569 (*cmpsf): Don't accept "i" constraint.
12570 (*conditional_branch): Only valid after reload.
12571 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12573 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12576 * config/rs6000/altivec.md (vector constant splitters): Add
12577 support for creating vector single precision constants if -mvsx is
12578 used and we would create the constant using Altivec primitives.
12580 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12581 Richard Sandiford <rdsandiford@googlemail.com>
12583 PR rtl-optimization/47166
12584 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12585 mechanism for PRE_MODIFY and POST_MODIFY.
12586 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12589 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12591 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12593 2011-01-22 Jan Hubicka <jh@suse.cz>
12596 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12598 2011-01-22 Jan Hubicka <jh@suse.cz>
12600 PR tree-optimization/43884
12602 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12603 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12605 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12607 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12608 * config/s390/s390.c (s390_register_move_cost,
12609 s390_memory_move_cost): New.
12610 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12612 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12614 PR middle-end/47401
12615 * except.c (sjlj_assign_call_site_values): Move setting the
12616 crtl->uses_eh_lsda flag to ...
12617 (sjlj_mark_call_sites): ... here.
12618 (sjlj_emit_function_enter): Support NULL dispatch label.
12619 (sjlj_build_landing_pads): In a function with no landing pads
12620 that still has must-not-throw regions, generate code to register
12621 a personality function with empty LSDA.
12623 2011-01-21 Richard Henderson <rth@redhat.com>
12625 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12627 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12629 * compare-elim.c: New file.
12630 * Makefile.in (OBJS-common): Add it.
12631 (compare-elim.o): New.
12632 * common.opt (fcompare-elim): New.
12633 * opts.c (default_options_table): Add OPT_fcompare_elim.
12634 * tree-pass.h (pass_compare_elim_after_reload): New.
12635 * passes.c (init_optimization_passes): Add it.
12636 * recog.h: Protect against re-inclusion.
12637 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12638 * doc/invoke.texi (-fcompare-elim): Document it.
12639 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12640 * doc/tm.texi: Rebuild.
12642 2011-01-22 Nick Clifton <nickc@redhat.com>
12644 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12645 rx_split_fp_compare.
12647 2011-01-22 Nick Clifton <nickc@redhat.com>
12649 * config/rx/rx.md (UNSPEC_CONST): New.
12650 (deallocate_and_return): Wrap the amount popped off the stack in
12651 an UNSPEC_CONST in order to stop it being rejected by
12652 -mmax-constant-size.
12653 (pop_and_return): Add a "(return)" rtx.
12654 (call): Drop the immediate operand.
12655 (call_internal): Likewise.
12656 (call_value): Likewise.
12657 (call_value_internal): Likewise.
12658 (sibcall_internal): Likewise.
12659 (sibcall_value_internal): Likewise.
12660 (sibcall): Likewise. Generate an explicit call using
12662 (sibcall_value): Likewise.
12663 (mov<>): FAIL if a constant operand is not legitimate.
12664 (addsi3_unpsec): New pattern.
12666 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12667 (ok_for_max_constant): New function.
12668 (gen_safe_add): New function.
12669 (rx_expand_prologue): Use gen_safe_add.
12670 (rx_expand_epilogue): Likewise.
12671 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12674 2011-01-21 Jeff Law <law@redhat.com>
12676 PR tree-optimization/47053
12677 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12678 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12679 statements are deleted.
12680 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12681 is nonempty, then purge dead edges and cleanup the CFG.
12683 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12686 Temporarily revert:
12687 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12689 * tree-dfa.c (create_var_ann): Mark variable as used.
12691 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12693 PR middle-end/45566
12694 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12695 notes from other section in hot/cold partitioning even if
12696 last_action is -3. Increment call_site_base.
12698 PR rtl-optimization/47366
12699 * fwprop.c (forward_propagate_into): Return bool. If
12700 any changes are made, -fnon-call-exceptions is used and
12701 REG_EH_REGION note is present, call purge_dead_edges
12702 and return true if it purged anything.
12703 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12704 any EH edges were purged.
12706 2011-01-21 Jeff Law <law@redhat.com>
12708 PR rtl-optimization/41619
12709 * caller-save.c (setup_save_areas): Break out code to determine
12710 which hard regs are live across calls by examining the reload chains
12711 so that it is always used.
12712 Eliminate code which checked REG_N_CALLS_CROSSED.
12714 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12716 PR tree-optimization/47355
12717 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12718 NOP has non-debug uses beyond PHIs in new_bb.
12720 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12723 * cfgexpand.c (account_used_vars_for_block): Only account vars
12724 that are annotated as used.
12725 (estimated_stack_frame_size): Don't set TREE_USED.
12726 * tree-dfa.c (create_var_ann): Mark variable as used.
12728 2011-01-21 Richard Guenther <rguenther@suse.de>
12730 PR middle-end/47395
12731 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12733 2011-01-21 Richard Guenther <rguenther@suse.de>
12735 PR tree-optimization/47365
12736 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12737 (vn_reference_lookup_pieces): Adjust.
12738 (vn_reference_lookup): Likewise.
12739 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12740 (vn_reference_lookup_3): Only look through kills if in
12741 VN_WALKREWRITE mode.
12742 (vn_reference_lookup_pieces): Adjust.
12743 (vn_reference_lookup): Likewise.
12744 (visit_reference_op_load): Likewise.
12745 (visit_reference_op_store): Likewise.
12746 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12747 (compute_avail): Likewise.
12748 (eliminate): Likewise.
12750 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12752 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12753 DECL_IGNORED_P non-reg vars if they are used.
12755 PR tree-optimization/47391
12756 * varpool.c (const_value_known_p): Return false if
12759 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12762 * config/i386/i386.c (ix86_local_alignment): Handle
12763 case for va_list_type_node is nil.
12764 (ix86_canonical_va_list_type): Likewise.
12766 2011-01-21 Alan Modra <amodra@gmail.com>
12768 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12769 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12771 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12773 * config/arm/arm.md (define_attr type): Rename f_load
12774 and f_store to f_fpa_load and f_fpa_store. Update.
12775 (write_conflict): Deal with rename fallout.
12776 (*push_fp_multi): Likewise.
12777 * config/arm/fpa.md (f_load): Use f_fpa_load.
12778 (f_store): Use f_fpa_store.
12779 (*movsf_fpa): Likewise.
12780 (*movdf_fpa): Likewise.
12781 (*movxf_fpa): Likewise.
12782 (*thumb2_movsf_fpa): Likewise.
12783 (*thumb2_movdf_fpa): Likewise.
12784 (*thumb2_movxf_fpa): Likewise.
12785 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12786 f_loadd and f_stored.
12787 (*thumb2_movdi_vfp): Likewise.
12788 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12789 (*thumb2_movsi_vfp): Likewise.
12790 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12791 Use f_loads instead of f_load.
12792 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12794 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12796 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12797 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12798 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12799 (xtensa_mode_dependent_address_p): New function.
12800 (constantpool_address_p): Make static. Change return type to bool.
12801 Change argument type to const_rtx. Use CONST_INT_P predicate.
12803 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12806 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12808 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12811 * cfgexpand.c (expand_debug_expr): Instead of generating
12812 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12815 2011-01-20 Richard Guenther <rguenther@suse.de>
12817 PR middle-end/47370
12818 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12819 the pointer operand of MEM_REFs.
12821 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12823 PR tree-optimization/46130
12824 * ipa-split.c (consider_split): If return_bb contains non-virtual
12825 PHIs other than for retval or if split_function would not adjust it,
12828 2011-01-20 Richard Guenther <rguenther@suse.de>
12830 PR tree-optimization/47167
12831 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12832 Revert previous change, only avoid enumeral type changes.
12834 2011-01-19 Mike Stump <mikestump@comcast.net>
12836 * doc/tm.texi.in (BRANCH_COST): Englishify.
12837 * doc/tm.texi (BRANCH_COST): Likewise.
12839 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12842 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12843 (gen_scheduled_generic_parms_dies): New functions.
12844 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12845 generation for the end of CU compilation.
12846 (dwarf2out_finish): Generate template parameters DIEs here.
12848 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12851 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12852 debug bind stmt on merge edges.
12854 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12858 * function.c (instantiate_expr): Instantiate incoming rtl of
12859 implicit arguments, and recurse on VALUE_EXPRs.
12860 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12861 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12863 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12865 * c-parser.c (c_parser_for_statement): Initialize
12866 collection_expression.
12868 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12870 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12872 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12874 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12875 (LINK_SHLIB_SPEC): Don't use %(link_path).
12876 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12878 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12880 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12881 (NO_SHARED_LIB_SUPPORT): Remove.
12882 (LINK_SHLIB_SPEC): Remove one conditional definition.
12884 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12886 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12888 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12889 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12890 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12891 %{call_shared} and conditionals on these options not being passed.
12892 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12895 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12897 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12900 * ipa-split.c: Spelling fixes.
12902 2011-01-19 Richard Henderson <rth@redhat.com>
12904 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12905 (*mulsi3): Likewise.
12907 * longlong.h [__mn10300__] (count_leading_zeros): New.
12908 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12909 [__mn10300__] (add_ssaaaa, subddmmss): New.
12910 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12911 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12913 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12915 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12917 2011-01-19 Richard Henderson <rth@redhat.com>
12919 * config/mn10300/mn10300.md (addsi3_flags): New.
12920 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12921 (subsi3_flags, subc_internal, subdi3): New.
12922 (subdi3_internal, *subdi3_degenerate): New.
12923 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12925 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12926 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12927 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12928 * config/mn10300/mn10300-protos.h: Update.
12929 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12930 (return_ret): Likewise. Rename from return_internal_regs.
12931 (return_internal): Remove.
12933 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12934 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12935 (mn10300_legitimate_constant_p): Likewise.
12936 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12937 (mn10300_frame_size): New.
12938 (mn10300_expand_prologue): Use it.
12939 (mn10300_expand_epilogue): Likewise.
12940 (mn10300_initial_offset): Likewise.
12941 * config/mn10300/mn10300-protos.h: Update.
12942 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12943 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12944 (prologue, epilogue, return_internal): Tidy output code.
12945 (mn10300_store_multiple_operation, return): Likewise.
12946 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12947 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12948 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12949 (load_pic, am33_load_pic): New.
12950 (mn10300_load_pic0, mn10300_load_pic1): New.
12952 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12953 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12954 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12955 (cc_flags_for_mode, cc_flags_for_code): New.
12956 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12957 overflow flag is not valid. Validate that the flags we need
12958 for the comparison are valid.
12959 (mn10300_output_cmp): Remove.
12960 (mn10300_output_add): New.
12961 (mn10300_select_cc_mode): Use cc_flags_for_code.
12962 (mn10300_split_cbranch): New.
12963 (mn10300_match_ccmode): New.
12964 (mn10300_split_and_operand_count): New.
12965 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12967 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12968 (addsi3): ... here. Use mn10300_output_add.
12969 (*addsi3_flags): New.
12970 (*am33_subsi3, *mn10300_subsi3): Merge...
12971 (subsi3): ... here. Use attribute isa.
12972 (*subsi3_flags): New.
12973 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12975 (*am33_andsi3, *mn10300_andsi3): Merge...
12976 (andsi3): ... here.
12977 (*andsi3_flags): New.
12978 (andsi3 splitters): New.
12979 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12980 (iorsi3): ... here.
12981 (*iorsi3_flags): New.
12982 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12983 (xorsi3): ... here.
12984 (*xorsi3_flags): New.
12985 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12986 (one_cmplsi2): ... here.
12987 (*one_cmplsi2_flags): New.
12988 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12989 instead of "dax" in constraints. Use mn10300_split_cbranch.
12990 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12991 use matching constraints to eliminate a self-comparison.
12992 (*integer_conditional_branch): Rename from integer_conditional_branch.
12993 Use int_mode_flags to match CC_REG.
12994 (*cbranchsi4_btst, *btstsi): New.
12995 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12996 mn10300_split_cbranch.
12997 (*am33_cmpsf): Rename from am33_cmpsf.
12998 (*float_conditional_branch): Rename from float_conditional_branch.
12999 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13000 (zero_extendqisi2): ... here.
13001 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13002 (zero_extendhisi2): ... here.
13003 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13004 (extendqisi2): ... here.
13005 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13006 (extendhisi2): ... here.
13007 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13008 (ashlsi3): ... here.
13009 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13010 (lshrsi3): ... here.
13011 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13012 (ashrsi3): ... here.
13013 (consecutive add peephole): Remove.
13014 * config/mn10300/predicates.md (label_ref_operand): New.
13015 (int_mode_flags): New.
13016 (CCZN_comparison_operator): New.
13018 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13019 (throughput_42_latency_43): New reservation.
13020 (mulsidi3, umulsidi3): New expanders.
13021 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13022 the MDR register to allocation; separately allocate the low and
13023 high parts of the DImode result.
13024 (umulsidi3_internal): Similarly.
13025 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13026 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13027 (udivsi3, umodsi3): Remove.
13028 (udivmodsi4, divmodsi4): New expanders.
13029 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13030 (*divmodsi4): Simiarly.
13031 (ext_internal): New.
13033 * config/mn10300/constraints.md ("z"): New constraint.
13034 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13035 (FIXED_REGISTERS): Don't fix MDR.
13036 (CALL_USED_REGSITERS): Reformat nicely.
13037 (REG_ALLOC_ORDER): Add MDR.
13038 (enum regclass): Add MDR_REGS.
13039 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13040 (IRA_COVER_CLASSES): Add MDR_REGS.
13041 (REGNO_REG_CLASS): Handle MDR_REG.
13042 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13043 (mn10300_register_move_cost): Likewise.
13044 * config/mn10300/mn10300.md (MDR_REG): New.
13045 (*movsi_internal): Handle moves to/from MDR_REGS.
13047 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13049 (mn10300_secondary_reload): Tidy combination reload classes.
13050 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13051 addresses for AM33. Allow symbolic offsets for reg+imm.
13052 (mn10300_regno_in_class_p): New.
13053 (mn10300_legitimize_reload_address): New.
13054 * config/mn10300/mn10300.h (enum reg_class): Remove
13055 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13056 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13057 SP_OR_GENERAL_REGS.
13058 (REG_CLASS_NAMES): Update to match.
13059 (REG_CLASS_CONTENTS): Likewise.
13060 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13061 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13062 (REGNO_IN_RANGE_P): Remove.
13063 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13064 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13065 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13066 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13067 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13068 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13069 (REGNO_GENERAL_P): New.
13070 (HAVE_POST_MODIFY_DISP): New.
13071 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13072 (LEGITIMIZE_RELOAD_ADDRESS): New.
13073 * config/mn10300/mn10300-protos.h: Update.
13075 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13076 DATA_REGS for AM33 stack-pointer destination.
13077 (mn10300_preferred_output_reload_class): Likewise.
13078 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13079 into a form appropriate for ...
13080 (TARGET_SECONDARY_RELOAD): New.
13081 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13082 * config/mn10300/mn10300-protos.h: Update.
13083 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13084 reload_insi; use the "A" constraint for the scratch; handle AM33
13085 moves of sp to non-address registers.
13087 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13088 (*movqi_internal): ... here.
13089 (*am33_movhi, *mn10300_movhi): Merge into...
13090 (*movhi_internal): ... here.
13091 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13092 as the source/destination of moves from/to SP.
13093 (movsf): Only allow for AM33-2.
13094 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13095 any integer constant constraint. Only allow for AM33-2. Tidy
13096 all of the alternative outputs.
13097 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13098 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13100 (udivsi3, umodsi3): New patterns for MN103 only.
13102 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13104 * doc/tm.texi.in: Spell out that a lack of register class unions
13106 * doc/tm.texi: Regenerate.
13108 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13110 PR rtl-optimization/47337
13111 * dce.c (check_argument_store): New function.
13112 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13114 PR tree-optimization/47290
13115 * tree-eh.c (infinite_empty_loop_p): New function.
13116 (cleanup_empty_eh): Use it.
13118 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13121 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13122 (a64_expand_widen_sum): Ditto.
13123 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13124 (vec_extract_evenodd_help): Ditto.
13125 (vec_extract_evenv4hi): Ditto.
13126 (vec_extract_oddv4hi): Ditto.
13127 (vec_extract_evenv2si): Ditto.
13128 (vec_extract_oddv2si): Ditto.
13129 (vec_extract_evenv2sf): Ditto.
13130 (vec_extract_oddv2sf): Ditto.
13131 (vec_pack_trunc_v4hi: Ditto.
13132 (vec_pack_trunc_v2si): Ditto.
13133 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13134 (vec_interleave_highv8qi): Ditto.
13136 (vec_extract_oddv8qi): Ditto.
13137 (vec_interleave_lowv4hi): Ditto.
13138 (vec_interleave_highv4hi): Ditto.
13139 (vec_interleave_lowv2si): Ditto.
13140 (vec_interleave_highv2si): Ditto.
13142 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13144 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13145 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13146 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13147 (pa_c_mode_for_suffix): New.
13148 (TARGET_EXPAND_BUILTIN): Define.
13149 (TARGET_C_MODE_FOR_SUFFIX): Define.
13150 (pa_builtins): Define.
13151 (pa_init_builtins): Register __float128 type and init new support
13153 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13154 * config/pa/quadlib.c (_U_Qfcopysign): New.
13156 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13158 PR middle-end/46894
13159 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13160 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13163 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13165 PR tree-optimization/47179
13166 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13167 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13169 2011-01-18 Richard Guenther <rguenther@suse.de>
13171 PR rtl-optimization/47216
13172 * emit-rtl.c: Include tree-flow.h.
13173 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13174 of replicating it with different semantics.
13175 * Makefile.in (emit-rtl.o): Adjust.
13177 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13179 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13180 (cortex_a9_dp): Handle neon types correctly.
13182 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13184 PR rtl-optimization/47299
13185 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13186 subtarget. Use normal multiplication if both operands are constants.
13187 * expmed.c (expand_widening_mult): Don't try to optimize constant
13188 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13191 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13193 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13194 spacing after 'e.g.', typos, comma, hyphenation.
13196 2011-01-17 Richard Henderson <rth@redhat.com>
13198 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13199 (rx_restricted_mem_operand): New.
13200 (rx_shift_operand): Use register_operand.
13201 (rx_source_operand, rx_compare_operand): Likewise.
13202 * config/rx/rx.md (addsi3_flags): New expander.
13203 (adddi3): Rewrite as expander.
13204 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13205 (subsi3_flags): New expander.
13206 (subdi3): Rewrite as expander.
13207 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13209 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13210 (rx_init_builtins): Remove sat builtin.
13211 (rx_expand_builtin): Likewise.
13212 * config/rx/rx.md (ssaddsi3): New.
13213 (*sat): Rename from sat. Represent the CC_REG input.
13215 * config/rx/predicates.md (rshift_operator): New.
13216 * config/rx/rx.c (rx_expand_insv): Remove.
13217 * config/rx/rx-protos.h: Update.
13218 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13219 operand to the canonical position.
13220 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13221 (*bitclr, *bitclr_in_memory): Similarly.
13222 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13223 (insv): Retain the zero_extract in the expansion.
13225 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13226 (bswaphi2, bitinvert, revw): Likewise.
13228 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13229 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13230 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13231 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13232 (bitset, bitset_in_memory): Likewise.
13233 (bitinvert, bitinvert_in_memory): Likewise.
13234 (bitclr, bitclr_in_memory): Likewise.
13235 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13236 (rx_strend, rx_cmpstrn): Likewise.
13237 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13238 (bitop peep2 patterns): Remove.
13240 * config/rx/rx.c (rx_match_ccmode): New.
13241 * config/rx/rx-protos.h: Update.
13242 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13243 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13244 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13245 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13246 (fix_truncsfsi2, floatsisf2): Likewise.
13247 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13248 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13249 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13250 (*subsi3_flags, *xorsi3_flags): New.
13252 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13254 * config/rx/rx.c (rx_print_operand): Remove workaround for
13255 unsplit comparison operations.
13257 * config/rx/rx.md (movsicc): Split after reload.
13258 (*movsicc): Merge *movsieq and *movsine via match_operator.
13259 (*stcc): New pattern.
13261 * config/rx/rx.c (rx_float_compare_mode): Remove.
13262 * config/rx/rx.h (rx_float_compare_mode): Remove.
13263 * config/rx/rx.md (cstoresi4): Split after reload.
13264 (*sccc): New pattern.
13266 * config/rx/predicates.md (label_ref_operand): New.
13267 (rx_z_comparison_operator): New.
13268 (rx_zs_comparison_operator): New.
13269 (rx_fp_comparison_operator): New.
13270 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13271 Validate that the flags are set properly for the comparison.
13272 (rx_gen_cond_branch_template): Remove.
13273 (rx_cc_modes_compatible): Remove.
13274 (mode_from_flags): New.
13275 (flags_from_code): Rename from flags_needed_for_conditional.
13276 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13277 (rx_select_cc_mode): Likewise.
13278 (rx_split_fp_compare): New.
13279 (rx_split_cbranch): New.
13280 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13281 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13282 (*cbranchsf4): Similarly.
13283 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13284 match_operator and rx_split_cbranch.
13285 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13286 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13287 (*cmpsi): Rename from cmpsi.
13288 (*tstsi): Rename from tstsi.
13289 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13290 (*conditional_branch): Rename from conditional_branch.
13291 (*reveresed_conditional_branch): Remove.
13292 (b<code>): Remove expander.
13293 * config/rx/rx-protos.h: Update.
13295 * config/rx/rx.c (rx_compare_redundant): Remove.
13296 * config/rx/rx.md (cmpsi): Don't use it.
13297 * config/rx/rx-protos.h: Update.
13299 * config/rx/rx-modes.def (CC_F): New mode.
13300 * config/rx/rx.c (rx_select_cc_mode): New.
13301 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13302 * config/rx/rx-protos.h: Update.
13304 2011-01-17 Richard Henderson <rth@redhat.com>
13306 * except.c (dump_eh_tree): Fix stray ; after for statement.
13308 2011-01-17 Richard Guenther <rguenther@suse.de>
13310 PR tree-optimization/47313
13311 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13312 handling before copying the body. Properly deal with
13313 by-reference result in SSA form.
13315 2011-01-17 Ian Lance Taylor <iant@google.com>
13318 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13319 (struct_value_alias_set): Don't define.
13320 (sparc_option_override): Don't set sparc_sr_alias_set and
13321 struct_value_alias_set.
13322 (save_or_restore_regs): Use gen_frame_mem rather than calling
13324 (sparc_struct_value_rtx): Likewise.
13326 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13329 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13330 (_mm_maskstore_pd): Likewise.
13331 (_mm_maskload_ps): Likewise.
13332 (_mm_maskstore_ps): Likewise.
13333 (_mm256_maskload_pd): Change mask to __m256i.
13334 (_mm256_maskstore_pd): Likewise.
13335 (_mm256_maskload_ps): Likewise.
13336 (_mm256_maskstore_ps): Likewise.
13338 * config/i386/i386-builtin-types.def: Updated.
13339 (ix86_expand_special_args_builtin): Likewise.
13341 * config/i386/i386.c (bdesc_special_args): Update
13342 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13343 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13344 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13345 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13347 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13348 Use <avxpermvecmode> on mask register.
13349 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13351 2011-01-17 Olivier Hainque <hainque@adacore.com>
13352 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13353 Eric Botcazou <ebotcazou@adacore.com>
13356 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13357 if <= USHRT_MAX in 32-bit mode.
13359 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13361 * doc/install.texi (Configuration, Specific): Wrap long
13362 lines in examples. Allow line wrapping in long options
13363 and URLs where beneficial for PDF output.
13365 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13367 * config/mips/mips.c (mips_classify_symbol): Don't return
13368 SYMBOL_PC_RELATIVE for nonlocal labels.
13370 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13372 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13374 2011-01-15 Jan Hubicka <jh@suse.cz>
13376 PR tree-optimization/47276
13377 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13378 declarations as needed.
13380 2011-01-15 Martin Jambor <mjambor@suse.cz>
13382 * common.opt (fdevirtualize): New flag.
13383 * doc/invoke.texi (Option Summary): Document it.
13384 * opts.c (default_options_table): Add devirtualize flag.
13385 * ipa-prop.c (detect_type_change): Return immediately if
13386 devirtualize flag is not set.
13387 (detect_type_change_ssa): Likewise.
13388 (compute_known_type_jump_func): Likewise.
13389 (ipa_analyze_virtual_call_uses): Likewise.
13391 2011-01-14 Martin Jambor <mjambor@suse.cz>
13393 PR tree-optimization/45934
13394 PR tree-optimization/46302
13395 * ipa-prop.c (type_change_info): New type.
13396 (stmt_may_be_vtbl_ptr_store): New function.
13397 (check_stmt_for_type_change): Likewise.
13398 (detect_type_change): Likewise.
13399 (detect_type_change_ssa): Likewise.
13400 (compute_complex_assign_jump_func): Check for dynamic type change.
13401 (compute_complex_ancestor_jump_func): Likewise.
13402 (compute_known_type_jump_func): Likewise.
13403 (compute_scalar_jump_functions): Likewise.
13404 (ipa_analyze_virtual_call_uses): Likewise.
13405 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13407 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13409 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13410 * config/i386/i386.opt (msse5): New Alias.
13412 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13414 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13415 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13416 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13417 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13419 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13421 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13423 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13424 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13425 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13426 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13428 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13430 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13432 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13434 2011-01-14 Mike Stump <mikestump@comcast.net>
13436 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13437 * config/fr30/fr30.md: Likweise
13438 (movsi_push): Likewise.
13439 (movsi_pop): Likewise.
13440 (enter_func): Likewise.
13441 * config/moxie/moxie.md (movsi_push): Likewise.
13442 (movsi_pop): Likewise.
13444 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13446 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13447 %{no_archive} %{exact_version}.
13448 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13449 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13450 %{no_archive} %{exact_version}.
13451 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13452 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13453 * config/mips/vxworks.h: Likewise.
13455 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13457 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13459 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13461 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13462 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13464 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13466 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13469 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13471 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13473 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13474 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13476 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13477 Don't handle -shlib.
13479 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13481 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13482 (CC1_SPEC): Don't handle -profile.
13484 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13486 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13487 * config/mips/mips.h (CC1_SPEC): Likewise.
13489 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13491 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13492 * config/mips/mips.h (CC1_SPEC): Likewise.
13494 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13496 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13497 * config/m32r/linux.h (LINK_SPEC): Likewise.
13498 * config/mips/linux.h (LINK_SPEC): Likewise.
13499 * config/mips/linux64.h (LINK_SPEC): Likewise.
13500 * config/sparc/linux.h (LINK_SPEC): Likewise.
13501 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13502 LINK_SPEC): Likewise.
13503 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13505 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13507 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13509 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13511 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13513 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13514 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13516 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13518 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13520 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13522 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13523 supports -Bstatic/-Bdynamic.
13524 * configure: Regenerate.
13526 2011-01-14 Jan Hubicka <jh@suse.cz>
13527 Jack Howarth <howarth@bromo.med.uc.edu>
13530 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13531 when checking debug_info_level. Test write_symbols instead of
13532 debug_hooks->var_location when setting flag_var_tracking_uninit.
13534 2011-01-14 Richard Guenther <rguenther@suse.de>
13536 PR tree-optimization/47179
13537 * target.def (ref_may_alias_errno): New target hook.
13538 * targhooks.h (default_ref_may_alias_errno): Declare.
13539 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13540 (default_ref_may_alias_errno): New function.
13541 * target.h (struct ao_ref_s): Declare.
13542 * tree-ssa-alias.c: Include target.h.
13543 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13544 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13545 (targhooks.o): Likewise.
13546 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13547 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13549 2011-01-14 Richard Guenther <rguenther@suse.de>
13551 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13553 2011-01-14 Richard Guenther <rguenther@suse.de>
13555 PR tree-optimization/47280
13556 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13557 return CFG changes.
13558 (tree_ssa_forward_propagate_single_use_vars): Deal with
13559 CFG changes from associate_plusminus.
13561 2011-01-14 Richard Guenther <rguenther@suse.de>
13563 PR middle-end/47281
13565 2011-01-11 Richard Guenther <rguenther@suse.de>
13567 PR tree-optimization/46076
13568 * tree-ssa.c (useless_type_conversion_p): Conversions from
13569 unprototyped to empty argument list function types are useless.
13571 2011-01-14 Richard Guenther <rguenther@suse.de>
13573 PR tree-optimization/47286
13574 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13576 2011-01-14 Martin Jambor <mjambor@suse.cz>
13578 PR middle-end/46823
13579 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13581 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13583 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13584 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13585 * config/xtensa/xtensa.c (xtensa_libcall_value,
13586 xtensa_function_value_regno_p): New functions.
13587 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13589 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13592 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13594 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13595 New function prototype.
13596 * config/i386/winnt.c (i386_pe_assemble_visibility):
13597 Warn only if attribute was specified by user.
13599 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13602 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13604 (floatunsdidf2_fcfidu): Ditto.
13606 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13608 * config/s390/s390.c (print_operand_address): Replace 'error' with
13609 'output_operand_lossage'.
13610 (print_operand): Likewise.
13612 2011-01-13 Jeff Law <law@redhat.com>
13614 PR rtl-optimization/39077
13615 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13616 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13617 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13618 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13619 * gcse.c (prune_insertions_deletions): New function.
13620 (compute_pre_data): Use it.
13622 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13625 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13627 (prune_unused_types_mark): Use it.
13629 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13631 PR rtl-optimization/45352
13632 * sel-sched.c: Update copyright years.
13633 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13634 in the advancing loop when we have issued issue_rate insns.
13636 2011-01-12 Richard Henderson <rth@redhat.com>
13638 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13639 (TARGET_MD_ASM_CLOBBERS): New.
13641 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13642 (TARGET_DELEGITIMIZE_ADDRESS): New.
13644 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13645 (clzsi2, *bsch): New patterns.
13647 * config/mn10300/mn10300.md (INT): New mode iterator.
13648 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13650 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13651 flag_split_wide_types.
13653 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13654 (mn10300_trampoline_init): Rewrite without a template, an immediate
13655 load and a direct branch.
13656 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13658 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13660 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13661 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13662 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13663 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13665 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13668 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13671 2011-01-12 Jan Hubicka <jh@suse.cz>
13674 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13675 (PLUGIN_COND_CLOSE): New macro.
13676 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13678 2011-01-12 Richard Guenther <rguenther@suse.de>
13681 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13682 register variables in a MEM_REF.
13684 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13686 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13687 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13688 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13689 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13690 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13691 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13692 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13693 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13694 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13695 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13696 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13697 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13698 * config/gnu-user.h: New. Copied from linux.h.
13699 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13700 GNU_USER_TARGET_STARTFILE_SPEC.
13701 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13702 GNU_USER_TARGET_ENDFILE_SPEC.
13703 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13704 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13705 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13706 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13707 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13708 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13709 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13710 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13711 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13712 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13713 * config/arm/linux-eabi.h (CC1_SPEC): Use
13714 GNU_USER_TARGET_CC1_SPEC.
13715 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13716 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13717 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13718 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13719 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13720 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13721 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13722 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13724 2011-01-12 Richard Guenther <rguenther@suse.de>
13727 * doc/invoke.texi (ffast-math): Document it is turned on
13730 2011-01-12 Jan Hubicka <jh@suse.cz>
13732 PR tree-optimization/47233
13733 * opts.c (common_handle_option): Disable ipa-reference with profile
13736 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13738 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13741 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13743 * c-parser.c (c_lex_one_token): Updated and reindented some
13744 comments. No changes in code.
13746 2011-01-11 Ian Lance Taylor <iant@google.com>
13748 * godump.c (go_output_var): Don't output the variable if there is
13749 already a type with the same name.
13751 2011-01-11 Ian Lance Taylor <iant@google.com>
13753 * godump.c (go_format_type): Don't generate float80.
13755 2011-01-11 Richard Henderson <rth@redhat.com>
13757 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13758 declaration. Rewrite for both speed and size.
13759 (mn10300_address_cost_1): Remove.
13760 (mn10300_register_move_cost): New.
13761 (mn10300_memory_move_cost): New.
13762 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13763 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13764 extensions, shifts, BSWAP, CLZ.
13765 (mn10300_wide_const_load_uses_clr): Remove.
13766 (TARGET_REGISTER_MOVE_COST): New.
13767 (TARGET_MEMORY_MOVE_COST): New.
13768 * config/mn10300/mn10300-protos.h: Update.
13769 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13771 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13772 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13773 * config/mn10300/mn10300-protos.h: Update.
13774 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13775 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13776 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13777 (*test_int_bitfield, *test_byte_bitfield): Remove.
13778 (*bit_test, *subreg_bit_test): Remove.
13779 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13781 * config/mn10300/constraints.md ("c"): Rename from "A".
13782 ("A", "D"): New constraint letters.
13783 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13784 (fmssf4, fnmasf4, fnmssf4): Likewise.
13786 * config/mn10300/mn10300.md (isa): New attribute.
13787 (enabled): New attribute.
13789 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13790 (abssf2, negsf2): Define only for hardware fp.
13791 (sqrtsf2): Reformat.
13792 (addsf3, subsf3, mulsf3): Merge expander and insn.
13794 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13795 (DEBUGGER_AUTO_OFFSET): Remove.
13796 (DEBUGGER_ARG_OFFSET): Remove.
13798 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13799 Emit register stores with the same offsets as the hardware.
13800 (mn10300_store_multiple_operation): Don't check that the register
13801 save offsets are monotonic.
13802 * config/mn10300/mn10300-protos.h: Update.
13804 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13806 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13807 in terms of the value on the stack, not the MDR register.
13809 2011-01-11 Jan Hubicka <jh@suse.cz>
13813 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13814 (symbol_alias_set_destroy, symbol_alias_set_contains,
13815 propagate_aliases_backward): Declare.
13816 * lto-streamer-out.c (struct sets): New sturcture.
13817 (trivally_defined_alias): New function.
13818 (output_alias_pair_p): Rewrite.
13819 (output_unreferenced_globals): Fix output of alias pairs.
13820 (produce_symtab): Likewise.
13821 * ipa.c (function_and_variable_visibility): Set weak alias destination
13823 * varasm.c (symbol_alias_set_t): Remove.
13824 (symbol_alias_set_destroy): Export.
13825 (propagate_aliases_forward, propagate_aliases_backward): New functions
13827 (compute_visible_aliases): ... this one; remove.
13828 (trivially_visible_alias): New
13829 (trivially_defined_alias): New.
13830 (remove_unreachable_alias_pairs): Rewrite.
13831 (finish_aliases_1): Reorganize code checking if alias is defined.
13832 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13835 2011-01-11 Richard Guenther <rguenther@suse.de>
13837 PR tree-optimization/46076
13838 * tree-ssa.c (useless_type_conversion_p): Conversions from
13839 unprototyped to empty argument list function types are useless.
13841 2011-01-11 Richard Guenther <rguenther@suse.de>
13843 PR middle-end/45235
13844 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13845 volatile MEMs as MEM_READONLY_P.
13847 2011-01-11 Richard Guenther <rguenther@suse.de>
13849 PR tree-optimization/47239
13850 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13852 2011-01-11 Jeff Law <law@redhat.com>
13854 PR tree-optimization/47086
13855 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13856 IVs from statements that might throw.
13858 2011-01-10 Jan Hubicka <jh@suse.cz>
13861 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13863 2011-01-10 Jan Hubicka <jh@suse.cz>
13866 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13867 when correcting profile.
13869 2011-01-10 Jan Hubicka <jh@suse.cz>
13872 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13873 DECL_FINI_PRIORITY.
13874 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13875 Restore DECL_FINI_PRIORITY.
13877 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13879 * doc/gimple.texi: Fix quoting of multi-word return values in
13880 @deftypefn statements. Ensure presence of return value. Wrap
13881 overlong @deftypefn lines.
13882 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13883 descriptions of removed functions.
13884 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13885 of multi-word return value in @deftypefn statement.
13887 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13889 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13890 (Conditional Expressions, Logical Operators)
13891 (Statement and operand traversals): Do not indent smallexample
13892 code. Fix duplicate function argument in example.
13894 2011-01-10 Jeff Law <law@redhat.com>
13896 PR tree-optimization/47141
13897 * ipa-split.c (split_function): Handle case where we are
13898 returning a value and the return block has a virtual operand phi.
13900 2011-01-10 Jan Hubicka <jh@suse.cz>
13902 PR tree-optimization/47234
13903 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13904 (pass_feedback_split_functions): Declare.
13905 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13907 * ipa-split.c (gate_split_functions): Update comments; disable
13908 split-functions for profile_arc_flag and branch_probabilities.
13909 (gate_feedback_split_functions): New function.
13910 (execute_feedback_split_functions): New function.
13911 (pass_feedback_split_functions): New global var.
13913 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13916 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13917 calling gimple_call_set_cannot_inline.
13919 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13921 * config/darwin-sections.def: Remove unused section.
13923 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13926 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13928 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13931 * c-parser.c (c_parser_declaration_or_fndef): Improved
13934 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13936 * config/i386/winnt.c (i386_pe_start_function): Make sure
13937 to switch back to function's section.
13939 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13943 * plugin.c: Move include of dlfcn.h from here...
13944 * system.h: ... to here.
13946 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13948 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13950 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13951 two extra empty pages in PDF output.
13953 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13956 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13957 for error recovery purposes behave as if it was not specified so
13958 that the default type is usd.
13960 2011-01-07 Jan Hubicka <jh@suse.cz>
13962 PR tree-optmization/46469
13963 * ipa.c (function_and_variable_visibility): Clear needed flags on
13964 nodes with external decls; handle weakrefs merging correctly.
13966 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13968 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13971 2011-01-07 Jan Hubicka <jh@suse.cz>
13973 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13974 and no longer claim that gold is required for linker plugin.
13975 * configure: Regenerate.
13976 * gcc.c (PLUGIN_COND): New macro.
13977 (LINK_COMMAND_SPEC): Use it.
13978 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13979 * config.in (HAVE_LTO_PLUGIN): New.
13980 * configure.ac (--with-lto-plugin): New parameter; autodetect
13983 2011-01-07 Jan Hubicka <jh@suse.cz>
13985 PR tree-optimization/46367
13986 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13987 when we can update original.
13988 (cgraph_mark_inline_edge): Sanity check.
13989 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13991 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13993 * config/spu/spu.h (ASM_COMMENT_START): Define.
13995 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13998 * gcc.c (%>S): New.
13999 (SWITCH_KEEP_FOR_GCC): Likewise.
14000 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14001 (do_spec_1): Handle "%>".
14003 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14005 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14008 * config/i386/i386.c (ix86_delegitimize_address): If
14009 simplify_gen_subreg fails, return orig_x.
14012 * value-prof.c (gimple_stringop_fixed_value): Handle
14013 lhs of the call properly.
14015 2011-01-07 Jan Hubicka <jh@suse.cz>
14018 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14020 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14022 * target.def (function_switched_text_sections): New hook.
14023 * doc/tm.texi: Regenerated.
14024 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14025 * final.c (default_function_switched_text_sections): New.
14026 (final_scan_insn): Call function_switched_text_sections when a
14027 mid-function section change occurs.
14028 * output.h (default_function_switched_text_sections): Declare.
14029 * config/darwin-protos.h (darwin_function_switched_text_sections):
14031 * config/darwin.c (darwin_function_switched_text_sections): New.
14032 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14034 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14036 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14037 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14038 the secondary code fragment when outputting for DWARF == 2.
14040 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14042 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14043 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14045 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14046 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14048 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14051 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14052 when it is not empty.
14054 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14057 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14058 (case ${target}): Add btver1.
14059 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14060 -march=native recognize btver1 processors.
14061 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14062 btver1 def_and_undef
14063 * config/i386/i386.c (struct processor_costs btver1_cost): New
14065 (m_BTVER1): New definition.
14066 (m_AMD_MULTIPLE): Includes m_BTVER1.
14067 (initial_ix86_tune_features): Add btver1 tune.
14068 (processor_target_table): Add btver1 entry.
14069 (static const char *const cpu_names): Add btver1 entry.
14070 (software_prefetching_beneficial_p): Add btver1.
14071 (ix86_option_override_internal): Add btver1 instruction sets.
14072 (ix86_issue_rate): Add btver1.
14073 (ix86_adjust_cost): Add btver1.
14074 * config/i386/i386.h (TARGET_BTVER1): New definition.
14075 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14076 (enum processor_type): Add PROCESSOR_BTVER1.
14077 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14079 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14082 * config/i386/i386.c (legitimize_tls_address)
14083 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14084 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14085 (tls_initial_exec_64_sun): New pattern.
14087 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14089 * doc/invoke.texi (Overall Options): Improve wording and markup
14090 of the description of -wrapper.
14092 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14094 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14095 rdynamic, threads): New Driver options.
14097 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14100 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14101 if coming from .tdata.
14102 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14104 2011-01-06 Jan Hubicka <jh@suse.cz>
14107 * collect2.c (main): Do not enable LTOmode when plugin is active.
14109 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14112 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14113 --version output if supported.
14114 * configure: Regenerate.
14116 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14118 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14121 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14124 * c-convert.c (convert): When converting a complex expression
14125 other than COMPLEX_EXPR to a different complex type, ensure
14126 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14127 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14128 when converting COMPLEX_TYPE.
14130 2011-01-06 Ira Rosen <irar@il.ibm.com>
14132 PR tree-optimization/47139
14133 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14134 only the last reduction value is used outside the loop. Update
14137 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14139 * config/rtems.opt: New.
14140 * config.gcc (*-*-rtems*): Use rtems.opt.
14142 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14144 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14145 processors do not support 3DNow instructions.
14147 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14149 * config/spu/spu.c (spu_option_override): Set parameter
14150 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14152 2011-01-05 Jan Hubicka <jh@suse.cz>
14154 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14155 at the command line.
14157 2011-01-05 Martin Jambor <mjambor@suse.cz>
14160 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14161 deltas on streamed outgoing edges.
14162 (output_node_opt_summary): Output info for outgoing edges only when
14163 the node is in new parameter set.
14164 (output_cgraph_opt_summary): New parameter set, passed to the two
14165 aforementioned functions. Update its forward declaration and its
14168 2011-01-05 Tom Tromey <tromey@redhat.com>
14170 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14171 operator to c_finish_omp_atomic.
14172 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14173 (build_unary_op): Update.
14174 (build_modify_expr): Update.
14175 (build_asm_expr): Update.
14177 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14179 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14180 newly inserted insns.
14181 (pad_bb): Likewise.
14182 (spu_emit_branch_hint): Likewise.
14183 (insert_hbrp_for_ilb_runout): Likewise.
14184 (spu_machine_dependent_reorg): Call df_finish_pass after
14185 schedule_insns returns.
14187 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14189 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14191 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14193 PR tree-optimization/47005
14194 * tree-sra.c (struct access): Add 'non_addressable' bit.
14195 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14196 (decide_one_param_reduction): Return 0 if the parameter is passed by
14197 reference and one of the accesses in the group is non_addressable.
14199 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14201 PR tree-optimization/47056
14202 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14203 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14204 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14206 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14208 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14209 initializer. Skip view conversions from aggregate types.
14211 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14214 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14216 2011-01-04 Philipp Thomas <pth@suse.de>
14218 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14221 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14223 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14224 on empty epilogue sequences.
14226 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14228 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14229 non-static): New Driver options.
14231 2011-01-04 Jie Zhang <jie@codesourcery.com>
14234 * gcc.c (default_compilers[]): Set combinable field to 0
14235 for all assembly languages.
14237 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14239 * config/mips/loongson3a.md: New file.
14240 * config/mips/mips.md: Include loongson3a.md.
14241 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14244 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14246 PR middle-end/47017
14247 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14248 instead of convert_memory_address_addr_space on the base expression.
14250 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14252 * config/spu/spu.c (spu_option_override): Update error text
14253 for bad -march= / -mtune= values.
14255 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14257 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14258 if branch-hint optimization will be performed.
14260 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14262 PR tree-optimization/47148
14263 * ipa-split.c (split_function): Convert arguments to
14264 DECL_ARG_TYPE if possible.
14266 PR tree-optimization/47155
14267 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14268 when computing uns.
14270 PR rtl-optimization/47157
14271 * combine.c (try_combine): If undobuf.other_insn becomes
14272 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14273 and set *new_direct_jump_p too.
14275 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14277 PR tree-optimization/47021
14278 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14280 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14282 * gcc.c (process_command): Update copyright notice dates.
14283 * gcov.c (print_version): Likewise.
14284 * gcov-dump.c (print_version): Likewise.
14285 * mips-tfile.c (main): Likewise.
14286 * mips-tdump.c (main): Likewise.
14288 2011-01-03 Martin Jambor <mjambor@suse.cz>
14290 PR tree-optimization/46801
14291 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14292 aggregate fields start at byte boundary instead of the bit-field flag.
14294 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14297 * gcc.c (main): Revert revision 168407.
14299 2011-01-03 Martin Jambor <mjambor@suse.cz>
14301 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14303 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14305 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14306 vector optab to expand vector/scalar shift, update gimple to vector.
14308 2011-01-03 Martin Jambor <mjambor@suse.cz>
14310 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14313 2011-01-03 Martin Jambor <mjambor@suse.cz>
14315 PR tree-optimization/46984
14316 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14318 (cgraph_create_indirect_edge): Fixed line length.
14319 (cgraph_indirect_call_info): Declare.
14320 (cgraph_make_edge_direct) Update declaration.
14321 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14322 (cgraph_create_indirect_edge): Use it.
14323 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14325 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14326 the new thunk_delta representation.
14327 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14329 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14330 (ipa_read_indirect_edge_info): Likewise.
14331 * lto-cgraph.c (output_edge_opt_summary): New function.
14332 (output_node_opt_summary): Call it on all outgoing edges.
14333 (input_edge_opt_summary): New function.
14334 (input_node_opt_summary): Call it on all outgoing edges.
14336 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14339 * gcc.c (main): Don't check have_o when settting combine_inputs.
14341 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14343 * regrename.c: Add general comment describing the pass.
14344 (struct du_head): Remove 'length' field.
14345 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14346 (regrename_optimize): Do not sort chains. Rework comments, add others.
14347 Force renaming to the preferred class (if any) in the first pass and do
14348 not consider registers that belong to it in the second pass.
14349 (create_new_chain): Do not set 'length' field.
14350 (scan_rtx_reg): Likewise.
14352 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14354 PR tree-optimization/47140
14355 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14356 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14357 to bit_value_binop.
14359 PR rtl-optimization/47028
14360 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14361 parm_birth_insn instead of at the beginning of first bb.
14363 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14365 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14366 Remove the word "see" before "@pxref".
14367 * doc/rtl.texi: Remove the word "see" before "@pxref".
14369 2011-01-01 Jan Hubicka <jh@suse.cz>
14371 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14374 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14377 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14380 Copyright (C) 2011 Free Software Foundation, Inc.
14382 Copying and distribution of this file, with or without modification,
14383 are permitted in any medium without royalty provided the copyright
14384 notice and this notice are preserved.