1 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3 * config/i386/i386-opts.h: New.
4 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6 ix86_section_threshold): Remove.
7 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
10 (ix86_option_override_internal): Don't decode strings for options
11 other than -march=, -mtune= and -mfpmath=. Don't allow for
12 __attribute__ uses in remaining diagnostics for options with
13 string arguments. Don't check for integer arguments being
15 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16 enum tls_dialect, enum cmodel, enum asm_dialect): Move to
18 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
19 ix86_branch_cost, ix86_section_threshold): Remove.
20 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
22 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
24 (masm=): Use Enum and Init.
25 (asm_dialect): New Enum and EnumValue entries.
26 (mbranch-cost=): Use UInteger.
27 (mlarge-data-threshold=): Use UInteger and Init.
28 (mcmodel=): Use Enum and Init.
29 (cmodel): New Enum and EnumValue entries.
30 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
31 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
32 mregparm=): Use UInteger.
33 (mstringop-strategy=): Use Enum and Init.
34 (stringop_alg): New Enum and EnumValue entries.
35 (mtls-dialect=): Use Enum and Init.
36 (tls_dialect): New Enum and EnumValue entries.
37 (mabi=): Use Enum and Init.
38 (calling_abi): New Enum and EnumValue entries.
39 (mveclibabi=): Use Enum and Init.
40 (ix86_veclibabi): New Enum and EnumValue entries.
42 2011-05-13 Nick Clifton <nickc@redhat.com>
44 * config/rx/rx.md (mov expander): Fix use of
45 rx_legitimate_constant_p.
46 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename
49 2011-05-13 Kai Tietz <ktietz@redhat.com>
52 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
53 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
54 (gimple_boolify): Check for cast for boolean_type_node instead for
57 2011-05-13 Richard Guenther <rguenther@suse.de>
59 PR tree-optimization/48172
60 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
61 multiplying by number of iterations for equal step.
62 (vect_create_cond_for_alias_checks): Likewise.
64 2011-05-13 Andreas Schwab <schwab@redhat.com>
66 * configure.ac: Use AS_HELP_STRING throughout.
67 * configure: Regenerate.
69 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
71 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return
73 (ix86_emit_restore_regs_using_mov): Likewise.
74 (ix86_emit_restore_sse_regs_using_mov): Likewise.
76 2011-05-12 Anatoly Sokolov <aesok@post.ru>
78 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
79 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
80 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
81 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
82 RTX_OK_FOR_OLO10_P): ...here.
83 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
86 2011-05-12 Kai Tietz <ktietz@redhat.com>
88 * gimplify.c (gimple_boolify): Re-boolify expression
89 arguments even if expression type is of kind BOOLEAN_TYPE.
90 (gimplify_boolean_expr): Removed.
91 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
92 and XOR. Additional take care that we keep expression's type.
93 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
94 of TRUTH_AND|OR|XOR_EXPR.
96 2011-05-12 Jakub Jelinek <jakub@redhat.com>
98 PR tree-optimization/48975
99 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
100 on all bbs here and free and clear ifc_bbs at the end.
102 2011-05-12 Richard Guenther <rguenther@suse.de>
104 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
105 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
106 until after simple checks.
107 (gimple_types_compatible_p): Likewise.
108 (iterative_hash_gimple_type): Always hash pointer targets
109 and function return and argument types.
110 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
111 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
112 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
113 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
114 completely in the simple compare section.
115 (gimple_register_canonical_type): Query the cache again after
118 2011-05-12 Richard Guenther <rguenther@suse.de>
120 PR tree-optimization/48172
121 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
122 the number of iterations from the segment size calculation.
123 (vect_create_cond_for_alias_checks): Adjust.
125 2011-05-12 Jakub Jelinek <jakub@redhat.com>
128 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
129 if validate_subreg fails.
131 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
133 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
134 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
137 2011-05-12 DJ Delorie <dj@redhat.com>
139 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
140 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
141 created builtin into rx_builtins array.
142 (rx_builtin_decl): New function.
143 (TARGET_BUITLIN_DECL): Define.
146 2011-05-12 DJ Delorie <dj@redhat.com>
147 Nick Clifton <nickc@redhat.com>
149 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
150 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
151 (rx_is_legitimate_address): Add pre-decrement and post-increment
152 addressing in HImode and QImode. Fix test for out of range
154 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
155 (rx_align_for_label): Test label before extracting its usage
157 (rx_adjust_insn_lengths): Fix selection of insn codes.
158 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
160 2011-05-11 Jason Merrill <jason@redhat.com>
162 * tree.c (type_hash_canon): Use struct tree_type_non_common.
164 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
166 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
167 reindent the subsequent block.
169 2011-05-11 Satoru Takabayashi <satorux@google.com>
170 Paul Pluzhnikov <ppluzhnikov@google.com>
172 * doc/install.texi (Configuration): Document
173 --with-linker-hash-style.
174 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
175 * config.in: Add LINKER_HASH_STYLE.
176 * configure.ac: Add --with-linker-hash-style.
177 * configure: Regenerate.
179 2011-05-11 Richard Guenther <rguenther@suse.de>
182 * gimple.c (iterative_hash_canonical_type): Fix typo.
184 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
186 * config/i386/i386.c (legitimize_tls_address)
187 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
188 expanders directly for TARGET_GNU2_TLS. Determine pic and
189 __tls_get_addr symbol reference here. Update call to
190 gen_tls_global_dynamic_{32,64} for added arguments.
191 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
192 expanders directly for TARGET_GNU2_TLS. Determine
193 __tls_get_addr symbol reference here. Update call to
194 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
195 unique UNSPEC REG_EQUIV to libcall block.
196 (ix86_tls_get_addr): Declare static.
197 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
198 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
199 Do not determine pic and __tls_get_addr symbol reference here. Do not
200 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
201 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
202 (tls_global_dynamic_64): Add operand 2. Do not determine
203 __tls_get_addr symbol reference here. Do not call
204 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
205 (tls_local_dynamic_base64): Ditto for operand 1.
207 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
209 * function.c (expand_function_start): Initialize stack_check_probe_note
210 only if the generic stack checking mechanism is used.
212 2011-05-11 Richard Guenther <rguenther@suse.de>
214 PR tree-optimization/15256
215 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
216 (A & B) | C, combine (A op CST1) op CST2.
217 (tree_ssa_forward_propagate_single_use_vars): Only bother to
218 visit assigns that have uses.
220 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
222 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
223 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
224 (unpack_ts_type_common_value_fields): ...this. Update comment.
225 (unpack_value_fields): Adjust for renaming.
226 (lto_input_ts_type_tree_pointers): Split into...
227 (lto_input_ts_type_common_tree_pointer): ...this and...
228 (lto_input_ts_type_non_common_tree_pointers): ...this.
229 (lto_input_tree_pointers): Adjust for above split.
230 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
231 (pack_ts_type_common_value_fields): ...this. Update comment.
232 (lto_output_ts_type_tree_pointers): Split into...
233 (lto_output_ts_type_common_tree_pointers): ...this and...
234 (lto_output_ts_type_non_common_tree_pointers): ...this.
235 (lto_output_tree_pointers): Adjust for above split.
236 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
237 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
238 * stor-layout.c (vector_type_mode): Adjust location of mode field.
239 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
241 (struct tree_type): Split into...
242 (struct tree_type_common: ...this and...
243 (struct tree_type_with_lang_specific): ...this and...
244 (struct tree_type_non_common): ...this. Adjust accessor macros
246 (TYPE_VALUES_RAW): Define.
247 (union tree_node): Update for above changes.
248 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
250 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
251 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
252 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
253 * treestructu.def (TS_TYPE): Remove.
254 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
257 2011-05-11 Jakub Jelinek <jakub@redhat.com>
260 * tree-ssa.c (reset_debug_uses): New function.
261 * tree-flow.h (reset_debug_uses): New prototype.
262 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
263 * tree-loop-distribution.c (generate_loops_for_partition): Call
264 reset_debug_uses on the stmts that will be removed. Keep around
265 all debug stmts, don't count them as bits in partition bitmap.
266 (generate_builtin): Don't count debug stmts or labels as bits in
269 2011-05-11 Richard Guenther <rguenther@suse.de>
271 * gimple.c (gimple_type_hash_1): Merge with ...
272 (gimple_type_hash): ... this.
273 (gtc_visit): Remove mode parameter and simplify accordingly.
274 (gimple_types_compatible_p_1): Likewise.
275 (gimple_types_compatible_p): Likewise.
276 (iterative_hash_gimple_type): Likewise.
278 (gimple_type_eq): Adjust.
280 2011-05-11 Revital Eres <revital.eres@linaro.org>
282 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
283 enters the branch create an anti edge in the opposite direction
284 to prevent the creation of reg-moves.
285 * modulo-sched.c: Adjust comment to reflect the fact we are
286 scheduling closing branch.
287 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
288 (stage_count): New field in struct partial_schedule.
289 (calculate_stage_count): New function.
290 (normalize_sched_times): Rename to reset_sched_times and handle
291 incrementing the sched time of the nodes by a constant value
293 (duplicate_insns_of_cycles): Skip closing branch.
294 (sms_schedule_by_order): Schedule closing branch.
295 (ps_insn_find_column): Handle closing branch.
296 (sms_schedule): Call reset_sched_times and adjust the code to
297 support scheduling of the closing branch.
298 (ps_insert_empty_row): Update calls to normalize_sched_times
299 and rotate_partial_schedule functions.
301 2011-05-11 Richard Guenther <rguenther@suse.de>
304 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
306 2011-05-11 Joseph Myers <joseph@codesourcery.com>
308 * opts.c (finish_options): Move warning settings from process_options.
309 * toplev.c (process_options): Move warning settings to finish_options.
311 2011-05-11 Richard Guenther <rguenther@suse.de>
313 PR tree-optimization/18041
314 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
315 (simplify_bitwise_binary): ... this. Handle operand conversions
316 by applying them to the result instead.
317 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
319 2011-05-11 Richard Guenther <rguenther@suse.de>
321 * gimple.c (gimple_canonical_types_compatible_p): Split out
322 from gimple_types_compatible_p and friends. Do not recurse
324 (gimple_canonical_type_eq): Use it.
325 (iterative_hash_canonical_type): Split out from
326 iterative_hash_gimple_type and friends. Do not recurse
328 (gimple_canonical_type_hash): Use it, allocate the hash here.
330 2011-05-11 Revital Eres <revital.eres@linaro.org>
332 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
335 2011-05-11 Revital Eres <revital.eres@linaro.org>
337 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
338 instead of PREV_INSN.
340 2011-05-11 Revital Eres <revital.eres@linaro.org>
342 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
343 * loop-doloop.c (doloop_condition_get): Likewise.
344 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
346 * config/arm/arm.md (*addsi3_compare0): Remove "*".
348 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
350 * tree.def (CASE_LABEL_EXPR): Add an operand.
351 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
353 2011-05-10 Joseph Myers <joseph@codesourcery.com>
355 * c-decl.c (c_override_global_bindings_to_false): Remove.
356 (global_bindings_p): Don't check
357 c_override_global_bindings_to_false.
358 * c-tree.h (c_override_global_bindings_to_false): Remove.
359 * c-typeck.c (composite_type): Don't set
360 c_override_global_bindings_to_false.
362 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
364 PR target/48857, 48495
365 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
367 (VSX_MOVE_MODE): Ditto.
368 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
369 VSX vector types. Add V2DImode.
370 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
371 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
372 (MODES_TIEABLE_P): Ditto.
374 * config/rs6000/rs6000.c (rs6000_emit_move): Use
375 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
377 (init_cumulative_args): Ditto.
378 (rs6000_function_arg_boundary): Ditto.
379 (rs6000_function_arg_advance_1): Ditto.
380 (rs6000_function_arg): Ditto.
381 (rs6000_function_ok_for_sibcall): Ditto.
382 (emit_frame_save): Ditto.
383 (rs6000_function_value): Ditto.
384 (rs6000_libcall_value): Ditto.
386 2011-05-10 Joseph Myers <joseph@codesourcery.com>
388 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
389 i386/darwin-lib.h to $libgcc_tm_file.
390 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
392 2011-05-10 Joseph Myers <joseph@codesourcery.com>
394 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
396 2011-05-10 Joseph Myers <joseph@codesourcery.com>
398 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
399 * config/rs6000/rs6000-tables.opt: New file (generated).
400 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
401 rs6000/rs6000-tables.opt to extra_options.
402 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
403 * config/rs6000/rs6000.c (rs6000_select): Remove.
404 (processor_target_table): Move contents to rs6000-cpus.def.
405 (darwin_rs6000_override_options): Check
406 global_options_set.x_rs6000_cpu_index instead of
407 rs6000_select[1].string.
408 (rs6000_option_override_internal): Likewise.
409 (rs6000_handle_option): Don't assert that global structures are in
410 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
411 (rs6000_default_cpu): New variable.
412 (rs6000_file_start): Set it instead of local default_cpu. Check
413 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
414 global_options_set.x_rs6000_tune_index instead of rs6000_select.
415 (rs6000_darwin_file_start): Check rs6000_default_cpu and
416 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
417 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
418 rs6000_select): Remove.
419 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
421 (mcpu=, mtune=): Use Var, Init, Enum and Save.
422 * config/rs6000/t-rs6000
423 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
424 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
425 global_options_set.x_rs6000_cpu_index instead of
426 rs6000_select[1].string.
427 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
428 global_options_set.x_rs6000_cpu_index instead of
429 rs6000_select[1].string.
431 2011-05-10 Joseph Myers <joseph@codesourcery.com>
433 * config.gcc (libgcc_tm_file): Define instead of including files
434 from ../../libgcc/config/ in tm_file.
435 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
436 * configure: Regenerate.
437 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
438 libgcc_tm.h, cs-libgcc_tm.h): New.
439 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
440 (clean): Remove libgcc_tm.h.
441 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
442 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
443 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
445 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
448 * config/avr/avr.c (avr_ret_register): Return unsigned int
450 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
451 it to avr_libcall_value.
452 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
454 (avr_expand_binop_builtin): Ditto.
455 (avr_expand_unop_builtin): Ditto.
457 2011-05-10 DJ Delorie <dj@redhat.com>
459 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
460 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
461 * config/rx/rx.c (rx_align_for_label): Add label and
462 uses_threshold parameters. Do not align when the label is not
464 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
466 2011-05-10 Richard Guenther <rguenther@suse.de>
468 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
469 a series of conversions and apply foldings similar to what
471 (tree_ssa_forward_propagate_single_use_vars): Call it.
473 2011-05-10 Jakub Jelinek <jakub@redhat.com>
475 PR tree-optimization/48611
476 PR tree-optimization/48794
477 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
478 referenced from RESX or EH_DISPATCH arguments.
481 * dfp.c (decimal_to_decnumber): Handle conversion from
484 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
486 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
487 for !flag_prefer_avx128.
488 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
490 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
492 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
493 (fold_ternary_loc): Use expr_location_or.
495 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
498 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
499 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
500 Pmode and mem_mode is not VOIDmode.
502 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
504 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
505 TYPE_QUAL_RESTRICT): Convert to enum.
507 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
509 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
510 (const_pow2_1_to_8_operand): Ditto.
511 (const_pow2_1_to_128_operand): Ditto.
512 (const_pow2_1_to_32768_operand): Ditto.
513 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
514 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
515 in insn constraint to check integer value of operand 3.
516 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
518 (PINSR_MODE): New mode iterator.
519 (sse2p4_1): New mode attribute.
520 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
521 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
522 iterator. Use const_int_operand instead of
523 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
524 exact_log2 in insn constraint to check integer value of operand 3.
526 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
528 * config/i386/sse.md (blendbits): Remove mode attribute.
529 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
530 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
531 Check integer value of operand 3 in insn constraint.
533 2011-05-09 Richard Guenther <rguenther@suse.de>
535 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
537 (lto_symtab_merge): Likewise. Do not register types here.
538 (lto_symtab_merge_decls_2): Likewise.
539 (lto_symtab_merge_decls_1): Likewise.
540 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
541 * gimple.c (enum gtc_mode): Declare.
542 (gimple_types_compatible_p): Make static.
544 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
546 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
547 temporary register to match Pmode.
549 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
551 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
552 and *vec_concatv4si_1_avx.
554 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
556 PR rtl-optimization/48927
557 * ira-conflicts.c (commutative_constraint_p): Use
558 recog_data.alternative_enabled_p to disable alternatives where
559 "enabled" attribute is false.
560 (get_dup_num): Ditto.
561 * ira-lives.c (single_reg_class): Ditto.
562 (ira_implicitly_set_insn_hard_regs): Ditto.
564 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
566 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
567 (dataflow_set_preserve_mem_locs): Likewise.
569 2011-05-09 Philipp Thomas <pth@suse.de>
571 * config/mep/mep.c (mep_validate_vliw): Syntax description
572 should not be translated.
574 2011-05-09 Joseph Myers <joseph@codesourcery.com>
576 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
577 * config/mips/mips-tables.opt: New file (generated).
578 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
579 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
580 MIPS_ARCH_OPTION_NATIVE): Define.
581 * config/mips/mips.c (mips_cpu_info_table): Move contents to
583 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
584 mips_parse_cpu): Remove.
585 (mips_cpu_info_from_opt, mips_default_arch): New.
586 (mips_handle_option): Don't assert that global structures are in
587 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
588 (mips_option_override): Use new variables and functions to set
589 state of these options. Use strcmp to check for individual CPU names.
590 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
592 * config/mips/mips.opt (march=): Use ToLower and Enum.
593 (mips): Use ToLower, Enum and Var.
594 (mtune=): Use ToLower and Enum.
595 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
597 2011-05-08 Jan Hubicka <jh@suse.cz>
599 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
600 Arrange type pairs to be UID ordered.
601 (gimple_lookup_type_leader): Make inline.
603 2011-05-09 Nick Clifton <nickc@redhat.com>
606 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
610 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
613 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
615 * combine.c (simplify_comparison): Abstract out parts into...
616 (simplify_compare_const): ... new function.
617 (try_combine): Generalize parallel arithmetic/compare combining
618 to call simplify_compare_const() and CANONICALIZE_COMPARE().
620 2011-05-08 Jan Hubicka <jh@suse.cz>
622 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
623 (cgraph_create_virtual_clone): Call hooks once virtual clone
625 * cgraph.h (cgraph_clone_node): Update prototype.
626 * ipa-cp.c (ipcp_estimate_growth): Use
627 estimate_ipcp_clone_size_and_time.
628 * ipa-inline-transform.c (clone_inlined_nodes): Update.
629 * lto-cgraph.c (input_node): Update.
630 * ipa-inline.c (recursive_inlining): Update.
631 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
632 (evaluate_conditions_for_known_args): Break out from ...
633 (evaluate_conditions_for_edge): ... here.
634 (evaluate_conditions_for_ipcp_clone): New function.
635 (inline_node_duplication_hook): Update clone summary based
637 (estimate_callee_size_and_time): Rename to ...
638 (estimate_node_size_and_time): take NODE instead of EDGE;
639 take POSSIBLE_TRUTHS as argument.
640 (estimate_callee_size_and_time): Update.
641 (estimate_ipcp_clone_size_and_time): New function.
642 (do_estimate_edge_time): Update.
644 2011-05-08 Richard Guenther <rguenther@suse.de>
648 * expmed.c (expand_shift_1): Compute adjusted constant shift
651 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
653 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
655 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
657 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
659 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
661 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
663 2011-05-07 Jan Hubicka <jh@suse.cz>
665 * ipa-inline-transform.c (inline_call): Account when program size
667 * ipa-inline.c (relative_time_benefit): New function.
668 (edge_badness): Reorganize to be power 2 based; fix thinko when
669 computing badness for negative growth; update comments to match
670 reality; better dumps.
672 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
674 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
675 type to bool and adjust comment.
676 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
677 (fold_mathfn_compare): Remove calls to global_bindings_p.
678 (fold_inf_compare): Likewise.
679 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
680 * c-tree.h (global_bindings_p): Adjust prototype.
681 * c-decl.c (global_bindings_p): Return bool and simplify.
683 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
685 PR tree-optimization/48837
686 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
687 when accumulator transformation is performed.
689 2011-05-06 Jan Hubicka <jh@suse.cz>
691 * i386.h (ix86_tune_indices): Add
692 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
693 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
694 * i386.c (initial_ix86_tune_features): Add
695 X86_SOFTARE_PREFETCHING_BENEFICIAL.
696 (software_prefetching_beneficial_p): Remove predicate.
697 (ix86_option_override_internal): Use new macro.
699 2011-05-06 Jan Hubicka <jh@suse.cz>
701 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
703 2011-05-06 Jan Hubicka <jh@suse.cz>
705 * cgraph.c (cgraph_add_thunk): Create real function node instead
706 of alias node; finalize it and mark needed/reachale; arrange visibility
707 to be right and add it into the corresponding same comdat group list.
708 (dump_cgraph_node): Dump thunks.
709 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
710 cgraph_function_with_gimple_body_p,
711 cgraph_first_function_with_gimple_body,
712 cgraph_next_function_with_gimple_body): New functions.
713 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
715 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
716 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
717 * cgraphunit.c (cgraph_finalize_function): Only look into possible
718 devirtualization when optimizing.
719 (verify_cgraph_node): Verify thunks.
720 (cgraph_analyze_function): Analyze thunks.
721 (cgraph_mark_functions_to_output): Output thunks only in combination
722 with function they are assigned to.
723 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
724 alias into normal node.
725 (assemble_thunks): New functoin.
726 (cgraph_expand_function): Use it.
727 * lto-cgraph.c (lto_output_node): Stream thunks.
728 (input_overwrite_node): Stream in thunks.
729 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
730 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
731 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
732 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
733 (inline_analyze_function): Do not care about thunk jump functions.
734 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
735 * ipa-prop.c (ipa_prop_write_jump_functions): Use
736 cgraph_function_with_gimple_body_p.
737 * passes.c (do_per_function_toporder): Use
738 cgraph_function_with_gimple_body_p.
739 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
740 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
741 (function_called_by_processed_nodes_p): Likewise.
743 2011-05-06 Joseph Myers <joseph@codesourcery.com>
745 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
746 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
748 (mabi=): Replace with separate entries for mabi=altivec,
749 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
750 mabi=ieeelongdouble and mabi=ibmlongdouble.
751 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
752 check for -mabi=spe without SPE ABI support here.
753 (rs6000_handle_option): Replace OPT_mabi_ handling with
754 OPT_mabi_altivec and OPT_mabi_spe handling.
756 2011-05-06 Cary Coutant <ccoutant@google.com>
758 * dwarf2out.c (contains_subprogram_definition): New function.
759 (should_move_die_to_comdat): Call it.
761 2011-05-06 Jeff Law <law@redhat.com>
763 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
764 remove_ctrl_stmt_and_useless_edges.
765 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
766 (fixup_template_block, thread_single_edge): Likewise.
767 (mark_threaded_blocks): Use THREAD_TARGET.
769 2011-05-06 Alan Modra <amodra@gmail.com>
772 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
773 const0_rtx as the arg to the dummy __tls_get_addr libcall.
775 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
777 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
778 constraint modifier to "r".
780 2011-05-06 Joseph Myers <joseph@codesourcery.com>
782 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
783 fall through for OPT_mcmodel_.
785 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
787 * config/s390/s390.c (s390_asm_trampoline_template): Comment
789 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
791 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
794 * config/arm/arm.opt (marm): Document it.
795 (mthumb): Reject negative variant.
797 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
800 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
801 Fix typo in "ccvt" variable name.
803 2011-05-06 Tristan Gingold <gingold@adacore.com>
806 * config/vms/vms-ar.c (main): Remove cwd variable.
808 2011-05-06 Jakub Jelinek <jakub@redhat.com>
811 * var-tracking.c (prepare_call_arguments): Move else before #endif.
813 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
815 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
816 * gimplify.c (gimplify_switch_expr): Likewise.
817 * omp-low.c (expand_omp_sections): Likewise.
818 * tree-eh.c (lower_try_finally_switch): Likewise.
819 (lower_eh_dispatch): Likewise.
820 * tree.h (build_case_label): Declare.
821 * tree.c (build_case_label): Define.
823 2011-05-05 Jason Merrill <jason@redhat.com>
826 * tree-inline.c (copy_tree_r): Use copy_statement_list.
827 (copy_statement_list): Don't recurse.
828 * stor-layout.c (copy_self_referential_tree_r): Don't allow
831 2011-05-05 Joseph Myers <joseph@codesourcery.com>
833 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
834 through from -mfpu= handling.
835 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
837 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
839 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
842 2011-05-05 Steve Ellcey <sje@cup.hp.com>
844 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
846 (hppa[12]*-*-hpux11*): Ditto.
847 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
848 * config/ia64/hpux-unix2003.h: New.
849 * config/pa/pa-hpux1131.opt: New.
850 * config/pa/pa-hpux1131.h: New.
851 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
852 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
853 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
855 2011-05-05 Jakub Jelinek <jakub@redhat.com>
858 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
859 instead of mode as 3rd argument to recursive call.
860 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
861 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
863 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
864 don't give up if mode is Pmode and mem_mode is not VOIDmode.
865 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
866 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
868 2011-05-05 Julian Brown <julian@codesourcery.com>
870 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
871 parenthesis in D-register case.
873 2011-05-05 Joseph Myers <joseph@codesourcery.com>
875 * opt-functions.awk (var_type_struct): Handle Enum options.
876 * optc-gen.awk: Don't check range of variables of character type.
877 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
878 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
879 rs6000_sdata_name, rs6000_explicit_options): Remove.
880 (rs6000_option_override_internal): Check for -malign-power here.
881 Use global_options_set instead of rs6000_explicit_options.
882 (rs6000_parse_fpu_option): Remove.
883 (rs6000_handle_option): Access variables via opts and opts_set
884 pointers. Use error_at and warning_at. Add fall-through
885 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
886 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
887 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
888 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
889 here. Don't use rs6000_parse_fpu_option.
890 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
891 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
892 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
894 (mspe): Use Var and Save.
895 (mtraceback=): Use Enum and Var.
896 (rs6000_traceback_type): New Enum and EnumValue entries.
897 (mfloat-gprs=): Use Enum, Var and Save.
898 (rs6000_float_gprs): New Enum and EnumValue entries.
899 (mlong-double-): use Var and Save.
900 (msched-costly-dep=, minsert-sched-nops=): Use Var.
901 (malign-): Use Enum and Var.
902 (rs6000_alignment_flags): New Enum and EnumValue entries.
904 (fpu_type_t): New Enum and EnumValue entries.
905 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
906 global_options_set instead of rs6000_explicit_options.
907 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
908 global_options_set instead of rs6000_explicit_options.
909 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
910 global_options_set instead of rs6000_explicit_options.
911 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
912 global_options_set instead of rs6000_explicit_options.
913 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
914 global_options_set instead of rs6000_explicit_options.
915 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
916 global_options_set instead of rs6000_explicit_options.
917 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
919 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
920 global_options_set instead of rs6000_explicit_options.
921 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
922 (rs6000_cmodel): New Enum and EnumValue entries.
923 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
924 global_options_set instead of rs6000_explicit_options.
925 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
926 (mtls-size=): Use Enum and Var.
927 (rs6000_tls_size): New Enum and EnumValue entries.
929 2011-05-05 Michael Matz <matz@suse.de>
931 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
932 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
933 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
934 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
935 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
936 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
937 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
938 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
939 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
940 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
941 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
942 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
943 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
944 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
945 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
946 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
948 2011-05-05 Richard Guenther <rguenther@suse.de>
950 * expmed.c (expand_variable_shift): Rename to ...
951 (expand_shift_1): ... this. Take an expanded shift amount.
952 For rotates recurse directly not building trees for the shift amount.
953 (expand_variable_shift): Wrap around expand_shift_1.
954 (expand_shift): Adjust.
956 2011-05-05 Jakub Jelinek <jakub@redhat.com>
958 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
960 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
962 * tree.h (get_pending_sizes): Remove prototype.
963 (put_pending_size): Likewise.
964 (put_pending_sizes): Likewise.
965 * stor-layout.c (pending_sizes): Delete.
966 (get_pending_sizes): Likewise.
967 (put_pending_size): Likewise.
968 (put_pending_sizes): Likewise.
969 (variable_size): Do not call put_pending_size and tidy up.
970 * function.h (struct function): Remove dont_save_pending_sizes_p.
971 * lto-streamer-in.c (input_function): Do not stream it.
972 * lto-streamer-out.c (output_function): Likewise.
973 * tree-inline.c (initialize_cfun): Do not copy it.
974 * c-decl.c (store_parm_decls): Do not set it.
975 * omp-low.c (create_task_copyfn): Likewise.
976 * tree-optimize.c (tree_rest_of_compilation): Likewise.
978 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
980 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
982 (*movdf_internal): Ditto.
983 (*movdf_internal_nointeger): Ditto.
984 (*movsf_internal): Ditto.
986 2011-05-05 Joseph Myers <joseph@codesourcery.com>
988 * c-decl.c (finish_decl): Don't call get_pending_sizes.
989 (grokparm): Add parameter expr. Pass it to grokdeclarator.
990 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
991 (c_variable_size): Remove.
992 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
993 call put_pending_sizes.
994 (get_parm_info): Add parameter expr. Use it to set
995 arg_info->pending_sizes.
996 (store_parm_decls): Use arg_info->pending_sizes instead or calling
998 * c-parser.c (c_parser_parms_declarator): Update call to
999 c_parser_parms_list_declarator.
1000 (c_parser_parms_list_declarator): Take parameter expr. Update
1001 call to push_parm_decl. Update recursive call. Don't call
1002 get_pending_sizes. Update calls to get_parm_info.
1003 (c_parser_objc_method_definition): Update calls to
1004 c_parser_objc_method_decl and objc_start_method_definition.
1005 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1006 (c_parser_objc_method_decl): Add parameter expr. Update call to
1008 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1009 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1010 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1012 2011-05-05 Michael Hope <michael.hope@linaro.org>
1015 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1018 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1020 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1021 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1022 (spu_output_mi_thunk): New function.
1024 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1026 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1027 targetm.asm_out.print_operand.
1028 * config/sol2.c: Include target.h.
1030 2011-05-04 Jan Hubicka <jh@suse.cz>
1032 * ipa-inline.c (reset_edge_caches): New function.
1033 (update_caller_keys): Add check_inlinablity_for; do not
1034 reset edge caches; remove now unnecesary loop.
1035 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1036 (update_all_callee_keys): Likewise.
1037 (inline_small_functions): Sanity check cache; update code
1040 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1042 PR rtl-optimization/47612
1043 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1044 as the last insn of the sequence to be moved.
1046 2011-05-04 Tobias Burnus <burnus@net-b.de>
1049 * doc/invoke.texi (Ofast): Document that it
1050 enables Fortran's -fno-protect-parens.
1052 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1054 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1056 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1058 * stor-layout.c (variable_size): Do not issue errors.
1060 2011-05-04 Richard Guenther <rguenther@suse.de>
1062 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1063 for array-ref indices.
1064 (tree_coverage_counter_addr): Likewise.
1065 (build_fn_info_type): Use size_int for index types.
1066 (build_gcov_info): Likewise.
1068 2011-05-04 Richard Guenther <rguenther@suse.de>
1070 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1072 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1073 for constructor indices.
1074 (push_init_level): Likewise.
1076 2011-05-04 Richard Guenther <rguenther@suse.de>
1078 * explow.c (promote_mode): Move variable declarations before code.
1080 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1082 * tree.h (build_function_type_array): Declare.
1083 (build_varargs_function_type_array): Declare.
1084 (build_function_type_vec, build_varargs_function_type_vec): Define.
1085 * tree.c (build_function_type_array_1): New function.
1086 (build_function_type_array): New function.
1087 (build_varargs_function_type_array): New function.
1089 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1091 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1092 before setting STMT_VINFO_TYPE.
1094 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1096 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1097 instead of spu_pass_by_reference.
1099 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1101 * calls.c (emit_library_call_value_1): Invoke
1102 promote_function_mode hook on libcall arguments.
1103 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1104 argument being NULL.
1105 * targhooks.c (default_promote_function_mode): Lisewise.
1106 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1107 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1109 * doc/tm.texi: Document that TYPE argument might be NULL.
1111 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1113 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1115 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1118 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1120 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1122 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1123 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1125 * mips-tfile.c: ... here.
1126 Don't include coretypes.h, tm.h, filenames.h.
1127 (saber_stop): Remove definition and all calls.
1128 [__SABER__]: Remove.
1129 (__LINE__): Remove default.
1130 (Size_t, Ptrdiff_t): Remove definitions.
1131 Replace by size_t, ptrdiff_t.
1132 [!MIPS_DEBUGGING_INFO]: Remove.
1133 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1134 (progname): Add const.
1136 Replace all uses by static.
1137 (ALIGN_SYMTABLE_OFFSET): Remove default.
1138 * mips-tdump.c: Don't include coretypes.h, tm.h.
1139 Remove !MIPS_IS_STAB guard.
1140 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1141 $(TM_H), filenames.h dependencies.
1142 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1144 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1147 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1148 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1150 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1153 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1154 account and save/restore RETS.
1155 (PROFILE_BEFORE_PROLOGUE): Define.
1156 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1157 the push insn to use predecrement.
1159 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1162 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1164 2011-05-04 Nick Clifton <nickc@redhat.com>
1166 * config/mn10300/mn10300.c: Include cfgloop.h.
1168 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1169 Lcc or a FLcc insn into the instruction stream.
1170 (mn10300_block_contains_call): New function. Returns true if the
1171 given basic block contains a CALL insn.
1172 (mn10300_loop_contains_call_insn): New function. Returns true if
1173 the given loop contains a CALL insn.
1174 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1175 to use the SETLB and Lcc or FLcc insns.
1176 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1177 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1178 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1179 disable the SETLB optimization.
1180 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1181 __SETLB__ or __NO_SETLB__.
1182 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1183 (movsf_internal): Handle MDR register.
1184 (cmpsi): Make visible.
1185 (setlb): New pattern.
1187 (FLcc): New pattern.
1189 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1192 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1193 for reg<->xmm moves.
1194 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1195 (vec_concatv2di_rex64_sse): Ditto.
1196 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1197 (*vec_extractv2di_1_rex64): Ditto.
1200 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1202 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1204 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1206 2011-05-04 Richard Guenther <rguenther@suse.de>
1208 * tree.h (int_const_binop): Remove notrunc argument.
1209 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1210 create integer constants that are properly truncated.
1211 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1212 (const_binop): Remove zero notrunc argument to int_const_binop.
1213 (size_binop_loc): Likewise.
1214 (fold_div_compare): Likewise.
1215 (maybe_canonicalize_comparison_1): Likewise.
1216 (fold_comparison): Likewise.
1217 (fold_binary_loc): Likewise.
1218 (multiple_of_p): Likewise.
1219 * expr.c (store_constructor): Likewise.
1220 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1221 (maybe_fold_stmt_addition): Likewise.
1222 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1223 * stor-layout.c (layout_type): Likewise.
1224 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1225 * tree-sra.c (build_ref_for_offset): Likewise.
1226 (build_user_friendly_ref_for_offset): Likewise.
1227 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1228 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1229 * tree-ssa-loop-niter.c (inverse): Likewise.
1230 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1231 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1232 * tree-switch-conversion.c (check_range): Likewise.
1233 (build_constructors): Likewise.
1234 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1235 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1236 (extract_range_from_assert): Likewise.
1237 (vrp_int_const_binop): Likewise.
1238 (extract_range_from_binary_expr): Likewise.
1239 (extract_range_from_unary_expr): Likewise.
1240 (check_array_ref): Likewise.
1241 (find_case_label_range): Likewise.
1242 (simplify_div_or_mod_using_ranges): Likewise.
1243 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1244 comparing case labels for merging.
1246 2011-05-03 Mark Wielaard <mjw@redhat.com>
1248 * dwarf2out.c (debug_str_hash_forced): Removed.
1249 (gen_label_for_indirect_string): Removed.
1250 (get_debug_string_label): Removed.
1251 (AT_string_form): Generate label directly.
1252 (output_indirect_string): Test indirect_string_node for
1253 DW_FORM_strp instead of checking label and refcount.
1254 (prune_indirect_string): Removed.
1255 (prune_unused_types): Don't check debug_str_hash_forced or
1256 call prune_indirect_string.
1258 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1261 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1263 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1267 * combine.c (try_combine): Skip debug insns at m_split tests.
1269 2011-04-26 Mark Wielaard <mjw@redhat.com>
1272 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1273 when info_section_emitted.
1275 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1277 * config/mips/mips-opts.h: New.
1278 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1280 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1281 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1282 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1284 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1286 (mips_abi, mips_code_readable): Don't declare.
1287 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1288 (mabi=): Use Enum and Var.
1289 (mips_abi): New Enum and EnumValue entries.
1290 (mcode-readable=): Use Enum and Var.
1291 (mips_code_readable_setting): New Enum and EnumValue entries.
1292 (mr10k-cache-barrier=): Use Enum and Var.
1293 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1295 2011-05-03 Jan Hubicka <jh@suse.cz>
1297 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1298 replace hash by pointer map.
1299 (cgraph_node_set_element_def, cgraph_node_set_element,
1300 const_cgraph_node_set_element, varpool_node_set_element_def,
1301 varpool_node_set_element, const_varpool_node_set_element): Remove.
1302 (free_cgraph_node_set, free_varpool_node_set): New function.
1303 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1304 * tree-emutls.c: Free varpool node set.
1305 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1306 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1307 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1308 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1309 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1310 Move here from ipa.c; implement using pointer_map
1311 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1312 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1313 debug_cgraph_node_set, varpool_node_set_new,
1314 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1315 dump_varpool_node_set, debug_varpool_node_set):
1316 Move to ipa-uitls.c.
1317 * passes.c (ipa_write_summaries): Update.
1319 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1321 From Mike Frysinger:
1322 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1323 bf542/bf544/bf547/bf548/bf549.
1325 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1327 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1329 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1332 * config/bfin/bfin.md (MOVCC): New mode_macro.
1333 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1334 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1335 comments from generated assembly.
1337 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1340 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1341 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1342 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1343 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1344 * config/bfin/lib1funcs.asm (___muldi3): New function.
1346 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1348 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1349 build_function_type_list instead of build_function_type.
1350 Rearrange initialization of `args' to do so.
1352 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1354 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1355 instead of build_function_type.
1357 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1359 * config/rs6000/rs6000.c (spe_init_builtins): Call
1360 build_function_type_list instead of build_function_type.
1361 (paired_init_builtins, altivec_init_builtins): Likewise.
1362 (builtin_function_type): Likewise.
1364 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1366 * config/sh/sh.c (sh_media_init_builtins): Call
1367 build_function_type_list instead of build_function_type.
1369 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1371 * config/sparc/sparc.c (sparc_file_end): Call
1372 build_function_type_list instead of build_function_type.
1374 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1376 * config/alpha/alpha.c (alpha_init_builtins): Call
1377 build_function_type_list instead of build_function_type.
1379 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1381 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1382 build_function_type_list instead of build_function_type.
1384 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1386 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1387 build_function_type_list instead of build_function_type.
1388 Delete `endlink' variable.
1390 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1392 * config/avr/avr.c (avr_init_builtins): Call
1393 build_function_type_list instead of build_function_type.
1395 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1397 * config/picochip/picochip.c (picochip_init_builtins): Call
1398 build_function_type_list instead of build_function_type.
1399 Delete `endlink' variable.
1401 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1403 * config/bfin/bfin.c (bfin_init_builtins): Call
1404 build_function_type_list instead of build_function_type.
1406 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1409 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1410 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1412 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1415 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1416 libbffastfp overrides libgcc when -mfast-fp.
1418 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1420 Originally from Bernd Schmidt
1421 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1422 * config/bfin/bfin.c (override_options): Test it and error if
1425 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1427 Originally From Bernd Schmidt
1428 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1431 2011-05-03 Jeff Law <law@redhat.com>
1433 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1434 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1435 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1436 than accessing AUX field directly. Free the AUX field before
1438 (thread_block, thread_through_loop_header): Likewise.
1439 (thread_single_edge, mark_threaded_blocks): Likewise.
1440 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1441 (register_jump_thread): Do not attempt to thread to a NULL edge.
1443 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1445 * function.c (init_function_start): Call decide_function_section.
1446 * varasm.c (decide_function_section): New function.
1447 (assemble_start_function): When not using
1448 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1449 or first_function_block_is_cold.
1450 * rtl.h (decide_function_section): Declare.
1452 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1453 Jakub Jelinek <jakub@redhat.com>
1456 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1457 only succeed if req_mode is the same as set_mode.
1459 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1461 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1462 * genemit.c (gen_exp): Handle RETURN.
1463 * emit-rtl.c (verify_rtx_sharing): Likewise.
1464 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1465 * rtl.c (copy_rtx): RETURN is shared.
1466 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1468 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1469 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1470 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1471 * config/cris/cris.c (cris_expand_return): Likewise.
1472 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1473 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1474 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1475 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1476 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1478 * config/v850/v850.c (expand_epilogue): Likewise.
1479 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1480 * config/arm/arm.md (epilogue): Likewise.
1481 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1482 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1483 variable to ret_reg.
1485 2011-05-03 Richard Guenther <rguenther@suse.de>
1488 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1489 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1490 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1492 2011-05-03 Richard Guenther <rguenther@suse.de>
1494 * c-decl.c (grokdeclarator): Instead of looking at
1495 TREE_OVERFLOW check if the constant fits in the index type.
1497 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1499 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1500 (vec_store_lanes<mode><mode>): Likewise.
1502 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1504 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1505 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1506 convert_optab_index values.
1507 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1508 * genopinit.c (optabs): Initialize the new optabs.
1509 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1510 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1511 (expand_STORE_LANES): New functions.
1512 * tree.h (build_array_type_nelts): Declare.
1513 * tree.c (build_array_type_nelts): New function.
1514 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1515 (vect_model_load_cost): Likewise.
1516 (vect_store_lanes_supported, vect_load_lanes_supported)
1517 (vect_record_strided_load_vectors): Declare.
1518 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1519 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1520 (vect_transform_strided_load): Split out statement recording into...
1521 (vect_record_strided_load_vectors): ...this new function.
1522 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1523 (write_vector_array, create_array_ref): New functions.
1524 (vect_model_store_cost): Add store_lanes_p argument.
1525 (vect_model_load_cost): Add load_lanes_p argument.
1526 (vectorizable_store): Try to use store-lanes functions for
1528 (vectorizable_load): Likewise load-lanes and loads.
1529 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1530 to vect_model_store_cost.
1531 (vect_build_slp_tree): Likewise vect_model_load_cost.
1533 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1535 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1536 * hooks.c (hook_bool_mode_uhwi_false): New function.
1537 * target.def (array_mode_supported_p): New hook.
1538 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1539 * doc/tm.texi: Regenerate.
1540 * stor-layout.c (mode_for_array): New function.
1541 (layout_type): Use it.
1542 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1543 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1545 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1548 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1549 for -fstack-check if the size to allocate is negative.
1551 2011-05-02 Lawrence Crowl <crowl@google.com>
1553 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1554 (timevar_cond_start): New for starting a timer only when it is not
1556 (timevar_cond_stop): New for stopping a timer when it was not already
1559 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1560 (timevar_cond_start): New as above.
1561 (timevar_cond_stop): New as above.
1563 * timevar.def: Add start/stop timers for compiler phases,
1564 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1565 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1566 and TV_PHASE_FINALIZE.
1567 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1568 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1569 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1570 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1571 Make unused TV_OVERLOAD into a start/stop timer.
1573 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1574 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1575 to indicate that they are start/stop timers.
1577 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1578 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1579 Move initialization to do_compile.
1580 (do_compile): Add initialization from above.
1581 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1583 * c-decl.c (c_write_global_declarations): Add start/stop of
1584 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1586 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1587 or TV_PARSE_INLINE, as appropriate.
1588 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1589 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1591 2011-05-02 Jason Merrill <jason@redhat.com>
1594 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1596 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1599 * c-decl.c (finish_decl): Only create a composite if the types are
1602 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1604 * config/fr30/fr30-protos.h (Mmode): Don't define.
1605 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1606 definition where used.
1607 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1608 define. Expand definitions where used.
1609 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1610 Expand definitions where used.
1611 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1612 rx_function_arg, rx_function_arg_advance,
1613 rx_function_arg_boundary): Expand definitions of those macros.
1614 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1615 definition where used.
1617 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1619 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1621 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1622 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1623 with *movv2sf_internal_rex64_avx.
1624 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1625 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1626 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1627 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1628 "vex" in "prefix" attribute calculation.
1629 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1631 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1634 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1635 inputs match the output.
1637 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1640 * config/m68k/m68k.c (m68k_expand_prologue): Set
1641 current_function_static_stack_size.
1643 2011-05-02 Jan Hubicka <jh@suse.cz>
1645 * lto-streamer.c (lto_streamer_cache_insert_1,
1646 lto_streamer_cache_lookup, lto_streamer_cache_create,
1647 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1648 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1650 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1652 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1653 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1654 config/m68k/t-opts: New files.
1655 * config/m68k/m68k-tables.opt: New file (generated).
1656 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1657 extra_options and m68k/t-opts to tmake_file.
1658 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1659 (all_isas): Initialize using m68k-isas.def.
1660 (all_microarchs): Initialize using m68k-microarchs.def.
1661 (m68k_find_selection): Remove.
1662 (m68k_handle_option): Don't assert that global structures are in
1663 use. Use error_at. Access variables via opts pointer. Don't
1664 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1665 directly for -m68020-40 and -m68020-60.
1666 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1667 m68k_tune_entry here.
1668 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1670 (m68k_library_id_string): Remove declaration.
1671 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1672 (m68k_library_id_string): New Variable.
1673 (march=, mcpu=, mtune=): Use Enum and Var.
1675 2011-05-02 Richard Guenther <rguenther@suse.de>
1677 * varasm.c (output_constructor_regular_field): Compute zero-based
1678 index with double-ints. Make sure to ICE instead of producing
1680 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1681 in asserts. Properly use a signed type.
1683 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1685 * config/i386/sse.md (V): New mode iterator.
1686 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1688 (V_256): Rename from AVX256MODE.
1689 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1690 condition to all users.
1692 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1693 condition to all users.
1694 (VF_128): Make V4SF mode unconditional.
1695 (VF_256): Rename from AVX256MODEF2P.
1696 (VI4F_128): Rename from SSEMODE4S.
1697 (VI8F_128): Rename from SSEMODE2D.
1698 (VI4F_256): Rename from AVX256MODE8P.
1699 (VI8F_256): Rename from AVX256MODE4P.
1700 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1701 (ssescalarmodesuffix): Remove SF and DF modes.
1702 (SSEMODE124): Remove.
1703 (SSEMODE1248): Ditto.
1704 (SSEMODEF2P): Ditto.
1705 (AVXMODEF2P): Ditto.
1706 (AVXMODEFDP): Ditto.
1707 (AVXMODEFSP): Ditto.
1708 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1710 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1712 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1713 xop_pcmov_<mode>256. Use V mode iterator.
1715 Adjust RTX patterns globally for renamed mode attributes.
1717 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1719 * haifa-sched.c (sched_emit_insn): Emit insn before first
1720 non-scheduled insn. Inform back-end about new insn. Add
1721 new insn to scheduled_insns list.
1723 2011-05-02 Richard Guenther <rguenther@suse.de>
1725 PR tree-optimization/48822
1726 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1727 (process_scc): Indicate which iteration we start.
1729 2011-05-02 Jan Hubicka <jh@suse.cz>
1731 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1732 (lto_section_overrun): New.
1733 * lto-section-out.c (append_block): Rename to ...
1734 (lto_append_block): ... this one; export.
1735 (lto_output_1_stream): Move lto lto-streamer.h
1736 (lto_output_data_stream): Update.
1737 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1738 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1741 2011-05-02 Richard Guenther <rguenther@suse.de>
1743 * tree.c (tree_code_counts): New global array.
1744 (record_node_allocation_statistics): Count individual tree codes.
1745 (dump_tree_statistics): Dump individual code stats.
1747 2011-05-01 Jan Hubicka <jh@suse.cz>
1749 * ipa-inline.c (caller_growth_limits): Fix thinko when
1750 looking for largest stack frame.
1751 * ipa-inline.h (dump_inline_summary): Declare.
1752 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1754 (dump_inline_summary): Export.
1755 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1757 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1759 * reginfo.c (memory_move_cost): Change rclass argument type form
1760 'enum reg_class' to reg_class_t.
1761 * reload.h (memory_move_cost): Update prototype.
1762 * postreload.c reload_cse_simplify_set): Change type dclass var to
1764 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1766 (ira_allocate_and_set_costs): Change aclass argument type form
1767 'enum reg_class' to reg_class_t.
1768 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1769 Change aclass argument type to reg_class_t.
1770 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1772 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1773 memory_move_cost call.
1775 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1776 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1777 Change type tmp var to reg_class_t.
1779 2011-04-30 Jan Hubicka <jh@suse.cz>
1781 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1782 inlining into function with flatten attribute.
1783 (want_inline_small_function_p): Be more realistic about inlining
1784 cold calls where callee size grows.
1786 2011-04-30 Jan Hubicka <jh@suse.cz>
1788 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1791 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1793 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1794 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1795 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1796 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1797 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1798 (print_operand): Rename to...
1799 (sparc_print_operand): ...this. Make static. Adjust
1800 sparc_print_operand function call.
1801 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1804 2011-04-30 Jan Hubicka <jh@suse.cz>
1807 * ipa-inline.c (early_inliner): Disable when doing late
1808 addition of function.
1810 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1812 * dwarf2out.c (get_address_mode): New inline.
1813 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1814 if not dwarf_strict emit
1815 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1816 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1817 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1818 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1819 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1820 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1821 mem_loc_descriptor callers.
1822 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1823 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1824 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1825 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1826 (base_types): New variable.
1827 (get_base_type_offset, calc_base_type_die_sizes,
1828 base_type_for_mode, mark_base_types, base_type_cmp,
1829 move_marked_base_types): New functions.
1830 (calc_die_sizes): Assert that die_offset is 0 or equal to
1832 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1833 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1834 callers. If not dwarf_strict, call mem_loc_descriptor even for
1835 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1836 (gen_subprogram_die): Don't give up on call site parameters
1837 with non-integral or large integral modes. Adjust
1838 mem_loc_descriptor callers.
1839 (prune_unused_types): Call prune_unused_types_mark on base_types
1841 (resolve_addr): Call mark_base_types.
1842 (dwarf2out_finish): Call move_marked_base_types.
1844 PR tree-optimization/48809
1845 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1847 (gen_inbound_check): Don't compute index_expr - range_min in utype
1848 again, instead reuse SSA_NAME initialized in build_arrays.
1849 Remove two useless gsi_for_stmt calls.
1851 2011-04-29 Jeff Law <law@redhat.com>
1853 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1855 2011-04-29 Martin Jambor <mjambor@suse.cz>
1857 * cgraph.h (cgraph_postorder): Remove declaration.
1858 * ipa-utils.h (ipa_free_postorder_info): Declare.
1859 (ipa_reverse_postorder): Likewise.
1860 * cgraphunit.c: Include ipa-utils.h.
1861 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1862 * ipa-inline.c: Include ipa-utils.h.
1863 (ipa_inline): Update call to ipa_reverse_postorder.
1864 * ipa-pure-const.c (propagate_pure_const): Update call to
1865 ipa_reduced_postorder and ipa_print_order. Call
1866 ipa_free_postorder_info to clean up.
1867 (propagate_nothrow): Likewise.
1868 * ipa-reference.c (propagate): Removed a useless call to
1869 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1870 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1871 * ipa.c: Include ipa-utils.h.
1872 (ipa_profile): Update call to ipa_reverse_postorder.
1873 (cgraph_postorder): Moved to...
1874 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1875 (ipa_utils_print_order): Renamed to ipa_print_order.
1876 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1878 (ipa_free_postorder_info): New function.
1879 * passes.c: Include ipa-utils.h.
1880 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1881 (ipa_write_summaries): Likewise.
1882 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1883 (cgraphunit.o): Likewise.
1885 (ipa-inline.o): Likewise.
1887 2011-04-29 Jan Hubicka <jh@suse.cz>
1889 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1890 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1891 * ipa-inline.h (clause_t): Turn into unsigned int.
1892 * ipa-inline-analysis.c (add_clause): Do more simplification.
1893 (and_predicates): Shortcut more cases.
1894 (predicates_equal_p): Move forward; check that clauses are properly
1896 (or_predicates): Shortcut more cases.
1897 (edge_execution_predicate): Rewrite as...
1898 (set_cond_stmt_execution_predicate): ... this function; handle
1899 __builtin_constant_p.
1900 (set_switch_stmt_execution_predicate): New .
1901 (compute_bb_predicates): New.
1902 (will_be_nonconstant_predicate): Update TODO.
1903 (estimate_function_body_sizes): Use compute_bb_predicates
1904 and free them later, always try to estimate if stmt is constant.
1905 (estimate_time_after_inlining, estimate_size_after_inlining):
1906 Gracefully handle optimized out edges.
1907 (read_predicate): Fix off by one error.
1909 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1911 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1913 2011-04-27 Xinliang David Li <davidxl@google.com>
1915 * tree-profile.c (init_ic_make_global_vars): Set
1916 tls attribute on ic vars.
1917 * coverage.c (coverage_end_function): Initialize
1918 function_list with zero.
1920 2011-04-29 Richard Guenther <rguenther@suse.de>
1922 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1923 for the type of the result.
1924 (fold_builtin_isascii): Likewise.
1925 (fold_builtin_toascii): Use integer_type_node where appropriate.
1926 (fold_builtin_logb): Likewise.
1927 (fold_builtin_frexp): Likewise.
1928 (fold_builtin_strstr): Likewise.
1929 (fold_builtin_strpbrk): Likewise.
1930 (fold_builtin_fputs): Likewise.
1931 (fold_builtin_sprintf): Likewise.
1932 (fold_builtin_snprintf): Likewise.
1933 (fold_builtin_printf): Likewise.
1934 (do_mpfr_remquo): Use a proper type for the assigned constant.
1935 (do_mpfr_lgamma_r): Likewise.
1936 * dwarf2out.c (resolve_one_addr): Use size_int.
1937 * except.c (init_eh): Likewise.
1938 (assign_filter_values): Use integer_type_node for filter values.
1939 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1941 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1942 for EH region numbers.
1943 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1944 for the shift amount.
1946 2011-04-29 Richard Guenther <rguenther@suse.de>
1948 * expr.h (expand_shift): Rename to ...
1949 (expand_variable_shift): ... this.
1950 (expand_shift): Take a constant shift amount.
1951 * expmed.c (expand_shift): Rename to ...
1952 (expand_variable_shift): ... this.
1953 (expand_shift): New wrapper around expand_variable_shift.
1954 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1955 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1956 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1957 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1958 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1959 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1960 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1961 emit_store_flag_1, emit_store_flag): Likewise.
1962 * builtins.c (expand_builtin_signbit): Likewise.
1963 * calls.c (load_register_parameters): Likewise.
1964 * function.c (assign_parm_setup_block): Likewise.
1965 * lower-subreg.c (resolve_shift_zext): Likewise.
1966 * optabs.c (widen_bswap, expand_abs_nojump,
1967 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1968 * spu/spu.c (spu_expand_extv): Likewise.
1969 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1971 2011-04-29 Richard Guenther <rguenther@suse.de>
1973 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1974 for the remapped region number.
1975 * predict.c (build_predict_expr): Use integer_type_node for the
1977 * fold-const.c (fold_binary_loc): Use integer_type_node for
1978 the shift amount. Use a proper type for the PLUS_EXPR operand.
1980 2011-04-29 Michael Matz <matz@suse.de>
1982 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1983 other trees that just builtins.
1984 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1986 2011-04-29 Richard Guenther <rguenther@suse.de>
1988 * tree-nested.c (get_trampoline_type): Use size_int.
1989 (get_nl_goto_field): Likewise.
1990 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1992 (lower_eh_constructs_2): Likewise.
1993 (lower_resx): Likewise.
1994 (lower_eh_dispatch): Likewise.
1995 * tree-mudflap.c (mf_build_string): Use size_int.
1996 (mudflap_register_call): Use integer_type_node for the flag.
1997 (mudflap_enqueue_constant): Use size_int.
1998 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1999 instead of rebuilding it.
2001 2011-04-29 Richard Guenther <rguenther@suse.de>
2003 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2004 Handle OBJ_TYPE_REF.
2005 (find_func_aliases_for_call): Use it more consistently.
2007 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2009 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2010 (rank_for_schedule): Use it.
2011 (schedule_block): Set it.
2013 2011-04-28 David Li <davidxl@google.com>
2015 * tree.c (crc32_string): Use crc32_byte.
2016 (crc32_byte): New function.
2017 * tree.h (crc32_byte): New function.
2018 * gcov.c (read_graph_file): Handle new cfg_cksum.
2019 (read_count_file): Ditto.
2020 * profile.c (instrument_values): Ditto.
2021 (get_exec_counts): Ditto.
2022 (read_profile_edge_counts): Ditto.
2023 (compute_branch_probabilities): Ditto.
2024 (compute_value_histograms): Ditto.
2025 (branch_prob): Ditto.
2026 (end_branch_prob): Ditto.
2027 * coverage.c (read_counts_file): Ditto.
2028 (get_coverage_counts): Ditto.
2029 (tree_coverage_counter_addr): Ditto.
2030 (coverage_checksum_string): Ditto.
2031 (coverage_begin_output): Ditto.
2032 (coverage_end_function): Ditto.
2033 (build_fn_info_type): Ditto.
2034 (build_fn_info_value): Ditto.
2035 * libgcov.c (gcov_exit): Ditto.
2036 * gcov-dump.c (tag_function): Ditto.
2037 (compute_checksum): Remove.
2039 2011-04-29 Alan Modra <amodra@gmail.com>
2041 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2042 unspec plus offset. Tidy macho code.
2044 2011-04-29 Martin Jambor <mjambor@suse.cz>
2046 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2047 node instead of a decl. Update all callers.
2048 * cgraph.h: Update declaration.
2050 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2052 PR tree-optimization/48765
2053 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2054 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2055 to indicate if loop aware SLP is being used. Scan the statements
2056 and update the vectorization factor according to the type of
2057 vectorization before statement analysis.
2058 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2059 pass it to vect_analyze_loop_operations.
2060 (vectorizable_reduction): Set number of copies to 1 in case of pure
2062 * tree-vect-stmts.c (vectorizable_conversion,
2063 vectorizable_assignment, vectorizable_shift,
2064 vectorizable_operation, vectorizable_type_demotion,
2065 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2067 (vectorizable_condition): Move the check that it is not SLP
2068 vectorization before the number of copies check.
2069 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2070 to vectorize the loop using SLP.
2072 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2075 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2078 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2080 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2081 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2082 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2083 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2084 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2086 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2087 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2088 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2089 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2090 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2091 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2093 * config/i386/linux.h (REG_NAME): Don't define.
2094 * config/i386/linux64.h (REG_NAME): Don't define.
2095 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2096 Undefine before defining.
2098 2011-04-28 Jan Hubicka <jh@suse.cz>
2100 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2101 nonconstant_names array.
2102 (estimate_function_body_sizes): Build nonconstant_names array; handle
2103 BUILT_IN_CONSTANT_P.
2105 2011-04-28 Richard Guenther <rguenther@suse.de>
2109 2011-04-28 Richard Guenther <rguenther@suse.de>
2111 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2112 as late as possible.
2114 2011-04-28 Richard Guenther <rguenther@suse.de>
2116 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2117 (debug_constraint): Do it here.
2118 (dump_constraints): And here.
2119 (rewrite_constraints): And here.
2120 (dump_constraint_edge): Remove.
2121 (dump_constraint_graph): Rewrite to produce DOT output.
2122 (solve_constraints): Build succ graph as late as possible.
2123 Dump constraint graphs before and after solving.
2125 2011-04-28 Richard Guenther <rguenther@suse.de>
2127 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2128 New function split out from ...
2129 (find_func_aliases): ... here. Call it.
2130 (find_func_aliases_for_call): Likewise.
2132 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2134 * internal-fn.h (internal_fn_name_array): Declare.
2135 (internal_fn_flags_array): Likewise.
2137 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2139 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2140 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2142 (ssemodefsuffix): Remove.
2143 (ssevecmodesuffix): New mode attribute.
2144 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2145 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2146 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2147 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2148 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2149 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2150 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2151 ssemodesuffix mode attribute.
2152 (float splitters): Use ssevecmodesuffix mode attribute.
2153 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2154 (sseinsmode): Rename from avxvecmode.
2155 (avxsizesuffix): Rename from avxmodesuffix.
2156 (sseintvecmode): Rename from avxpermvecmode.
2157 (ssedoublevecmode): Rename from ssedoublesizemode.
2158 (ssehalfvecmode): Rename from avxhalfvecmode.
2159 (ssescalarmode): Rename from avxscalarmode.
2160 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2161 templates for ssemodesuffix mode attribute.
2162 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2165 Adjust RTX patterns globally for renamed mode attributes.
2167 2011-04-27 Jan Hubcika <jh@suse.cz>
2169 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2170 * ipa-inline-analysis.c: Include alloc-pool.h.
2171 (edge_predicate_pool): New.
2172 (trye_predicate_p): New function
2173 (false_predicate_p): New function.
2174 (add_clause): Sanity check that false clauses are "optimized";
2175 never add clauses to predicate that is already known to be false.
2176 (and_predicate): Use flase_predicate_p.
2177 (evaulate_predicate): Rename to ...
2178 (evaluate_predicate): ... this one; update all callers; assert
2179 that false is not listed among possible truths.
2180 (dump_predicate): Use true_predicate_p.
2181 (account_size_time): Use false_predicate_p.
2182 (evaulate_conditions_for_edge): Rename to ...
2183 (evaluate_conditions_for_edge) ... this one.
2184 (edge_set_predicate): New function.
2185 (inline_edge_duplication_hook): Duplicate edge predicates.
2186 (inline_edge_removal_hook): Free edge predicates.
2187 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2188 (dump_inline_summary): Update.
2189 (estimate_function_body_sizes): Set edge predicates.
2190 (estimate_calls_size_and_time): Handle predicates.
2191 (estimate_callee_size_and_time): Update.
2192 (remap_predicate): Add toplev_predicate; update comment.
2193 (remap_edge_predicates): New function.
2194 (inline_merge_summary): Compute toplev predicate; update.
2195 (read_predicate): New function.
2196 (read_inline_edge_summary): Use it.
2197 (inline_read_section): Likewise.
2198 (write_predicate): New function.
2199 (write_inline_edge_summary): Use it.
2200 (inline_write_summary): Likewise.
2201 (inline_free_summary): Free alloc pool and edge summary vec.
2203 2011-04-27 Richard Guenther <rguenther@suse.de>
2205 * tree-ssa-structalias.c (changed_count): Remove.
2206 (changed): Use a bitmap.
2207 (unify_nodes): Adjust.
2208 (do_sd_constraint): Likewise.
2209 (do_ds_constraint): Likewise.
2210 (do_complex_constraint): Likewise.
2211 (solve_graph): Likewise.
2213 2011-04-27 Jan Hubicka <jh@suse.cz>
2215 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2217 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2219 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2220 (avx_vperm2f128_*_operand): Ditto.
2221 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2222 Use avx_vpermilp_parallel in insn condition.
2223 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2224 Use avx_vperm2f128_parallel in insn condition.
2226 2011-04-27 Richard Guenther <rguenther@suse.de>
2228 * Makefile.in (tree-ssa-structalias.o): Remove
2229 gt-tree-ssa-structalias.h dependency.
2230 (GTFILES): Remove tree-ssa-structalias.c.
2231 * tree.c (allocate_decl_uid): New function.
2232 (make_node_stat): Use it.
2233 (copy_node_stat): Likewise.
2234 * tree.h (allocate_decl_uid): Declare.
2235 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2236 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2237 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2238 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2239 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2240 (struct heapvar_map): Likewise.
2241 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2242 heapvar_insert): Likewise.
2243 (make_heapvar_for): Rename to ...
2244 (make_heapvar): ... this. Simplify.
2245 (fake_var_decl_obstack): New global var.
2246 (build_fake_var_decl): New function.
2247 (make_constraint_from_heapvar): Adjust.
2248 (handle_lhs_call): Likewise.
2249 (create_function_info_for): Likewise.
2250 (intra_create_variable_infos): Likewise.
2251 (init_alias_vars): Allocate fake_var_decl_obstack.
2252 (init_alias_heapvars, delete_alias_heapvars): Remove.
2253 (compute_points_to_sets): Do not call init_alias_heapvars.
2254 (ipa_pta_execute): Likewise.
2255 (delete_points_to_sets): Free fake_var_decl_obstack.
2257 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2259 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2260 (si_from_UTItype, si_to_UTItype): New functions.
2261 (__udivmodti4): Use them to implement type-punning.
2262 * config/spu/multi3.c (union qword_TItype): New data type.
2263 (si_from_TItype, si_to_TItype): New functions.
2264 (__multi3): Use them to implement type-punning.
2266 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2268 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2270 2011-04-27 Jan Hubicka <jh@suse.cz>
2272 * ipa-prop.c (function_insertion_hook_holder): New holder.
2273 (ipa_add_new_function): New function.
2274 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2275 Register/deregister holder.
2277 2011-04-27 Richard Guenther <rguenther@suse.de>
2279 PR tree-optimization/48772
2280 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2282 2011-04-27 Richard Guenther <rguenther@suse.de>
2284 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2285 TARGET_MEM_REF handling.
2287 2011-04-27 Nick Clifton <nickc@redhat.com>
2289 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2290 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2291 (REG_CLASS_NAMES): Likewise.
2292 (REG_CLASS_CONTENTS): Likewise.
2293 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2294 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2295 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2296 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2297 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2298 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2299 duplicate register classes.
2300 (frv_class_likely_spilled_p): Likewise.
2301 (frv_register_move_cost): Likewise.
2303 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2304 end of the regno_reg_class array.
2306 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2309 * c-typeck.c (build_binary_op): Don't wrap arguments if
2310 int_operands is true.
2312 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2315 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2316 targetm.calls.must_pass_in_stack for void type.
2318 2011-04-26 Jan Hubicka <jh@suse.cz>
2320 * cgraphbuild.c (build_cgraph_edges): Update call
2321 of cgraph_create_edge and cgraph_create_indirect_edge.
2322 * cgraph.c (cgraph_create_edge_including_clones,
2323 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2324 cgraph_update_edges_for_call_stmt_node): Do not take nest
2325 argument; do not initialize call_stmt_size/time.
2326 (dump_cgraph_node): Do not dump nest.
2327 (cgraph_clone_edge): Do not take loop_nest argument;
2328 do not propagate it; do not clone call_stmt_size/time.
2329 (cgraph_clone_node): Likewise.
2330 (cgraph_create_virtual_clone): Update.
2331 * cgraph.h (struct cgraph_edge): Remove
2332 call_stmt_size/call_stmt_time/loop_nest.
2333 (cgraph_create_edge, cgraph_create_indirect_edge,
2334 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2336 * tree-emutls.c (gen_emutls_addr): Update.
2337 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2338 loop_nest; handle indirect calls, too.
2339 (clone_inlined_nodes): Do not care about updating inline summaries.
2340 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2341 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2342 stream call_stmt_size/call_stmt_time/loop_nest.
2343 * ipa-inline.c (edge_badness): Update.
2344 (ipa_inline): dump summaries after inlining.
2345 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2347 (inline_edge_summary): New function.
2348 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2349 (inline_edge_removal_hook): Handle edge summaries.
2350 (inline_edge_duplication_hook): New hook.
2351 (inline_summary_alloc): Alloc hooks.
2352 (initialize_growth_caches): Do not register removal hooks.
2353 (free_growth_caches); Do not free removal hook.
2354 (dump_inline_edge_summary): New function.
2355 (dump_inline_summary): Use it.
2356 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2357 (inline_update_callee_summaries): New function.
2358 (inline_merge_summary): Use it.
2359 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2360 (read_inline_edge_summary): New function.
2361 (inline_read_section): Use it.
2362 (write_inline_edge_summary): New function.
2363 (inline_write_summary): Use it.
2364 (inline_free_summary): Free edge new holders.
2365 * tree-inline.c (copy_bb): Update.
2367 2011-04-26 Jason Merrill <jason@redhat.com>
2369 * tree-eh.c (lower_try_finally_switch): Create the label along with
2370 the CASE_LABEL_EXPR.
2372 2011-04-26 David S. Miller <davem@davemloft.net>
2373 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2375 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2376 * configure: Regenerate.
2378 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2381 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2383 (VEC_reduc): New code iterator and splitters for vector reduction.
2384 (VEC_reduc_name): Ditto.
2385 (VEC_reduc_rtx): Ditto.
2386 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2387 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2389 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2390 support for extracting SF on VSX.
2392 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2393 generating xscvspdp.
2394 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2395 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2396 double add, minimum, maximum vector reduction.
2397 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2398 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2399 optimize double vector reduction.
2400 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2402 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2404 * config/fr30/fr30.h (inhibit_libc): Don't define.
2405 * config/m32r/m32r-protos.h: Correct comment.
2406 * config/v850/v850.h (GHS_default_section_names,
2407 GHS_current_section_names): Use tree, not union tree_node *.
2409 2011-04-26 Xinliang David Li <davidxl@google.com>
2411 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2412 * c-family/c-opts.c (c_common_handle_option): Set
2413 warn_maybe_uninitialized.
2414 * opts.c (common_handle_option): Ditto.
2415 * common.opt: New option.
2416 * tree-ssa.c (warn_uninit): Add one more parameter.
2417 (warn_uninitialized_var): Pass warning code.
2418 * tree-flow.h: Interface change.
2421 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2423 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2424 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2425 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2427 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2430 * config/mips/mips.opt (mmips-tfile): Remove.
2432 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2433 mips-tdump reference to ...
2434 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2435 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2436 reference by Tru64 UNIX.
2438 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2441 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2442 is error_mark_node, set value to NULL.
2444 PR tree-optimization/48734
2445 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2446 if return value from maybe_fold_*_comparsions isn't something
2447 the code is prepared to handle.
2449 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2451 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2453 (ext_QIreg_nomode_operands): Remove.
2454 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2458 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2460 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2462 2011-04-26 Richard Guenther <rguenther@suse.de>
2464 * c-typeck.c (build_unary_op): Do not expand array-refs via
2465 pointer arithmetic. Only adjust qualifiers for function types.
2467 2011-04-26 Richard Guenther <rguenther@suse.de>
2470 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2471 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2472 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2473 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2475 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2477 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2478 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2479 * doc/extend.texi: Document __underlying_type.
2481 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2483 * config/rs6000/titan.md (automata_option "progress"): Remove.
2485 2011-04-25 Jeff Law <law@redhat.com>
2487 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2489 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 * system.h (ENUM_BITFIELD): Remove.
2493 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2494 Eric Botcazou <ebotcazou@adacore.com>
2496 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2497 for STORE_FLAG_VALUE==-1 case.
2499 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2502 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2503 LEGITIMATE_PIC_OPERAND_P.
2505 2011-04-24 Jan Hubicka <jh@suse.cz>
2507 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2509 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2510 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2511 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2512 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2513 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2514 Sanity check predicate length.
2515 (remap_predicate): Likewise; sanity check jump functions.
2516 (inline_read_section, inline_write_summary): Sanity check
2519 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2522 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2523 __is_literal_type, and __is_trivial; update throughout about
2524 possibly cv-qualified void types.
2526 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2528 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2529 testsuite and make it version agnostic.
2531 2011-04-22 Jan Hubicka <jh@suse.cz>
2533 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2535 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2538 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2539 to VOID_TYPE even around MODIFY_EXPR.
2541 2011-04-22 Mike Stump <mikestump@comcast.net>
2543 * gensupport.c (read_md_rtx): Fix typo in comment.
2544 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2547 2011-04-22 Jan Hubicka <jh@suse.cz>
2549 * gengtype.c (open_base_files): Add ipa-inline.h include.
2550 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2551 ipa-prop.c; update all uses.
2552 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2553 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2554 merge summary of inlined function into former caller.
2555 * ipa-inline.c (max_benefit): Remove.
2556 (edge_badness): Compensate for removal of benefits.
2557 (update_caller_keys): Use
2558 reset_node_growth_cache/reset_edge_growth_cache.
2559 (update_callee_keys): Likewise.
2560 (update_all_callee_keys): Likewise.
2561 (inline_small_functions): Do not collect max_benefit; do not reset
2562 estimated_growth; call free_growth_caches and initialize_growth_caches.
2563 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2564 struct size_time_entry): New structures.
2565 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2566 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2567 and estimated_growth.
2568 (edge_growth_cache_entry): New structure.
2569 (node_growth_cache, edge_growth_cache): New global vars.
2570 (estimate_growth): Turn into inline.
2571 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2572 initialize_growth_caches, free_growth_caches): Declare.
2573 (estimate_edge_growth): Rewrite.
2574 (estimate_edge_time): Implement as inline cache lookup.
2575 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2577 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2578 (NUM_CONDITIONS): New constant.
2579 (predicate_conditions): New enum.
2580 (IS_NOT_CONSTANT): New constant.
2581 (edge_removal_hook_holder): New var.
2582 (node_growth_cache, edge_growth_cache): New global vars.
2583 (true_predicate, single_cond_predicate, false_predicate,
2584 not_inlined_predicate, add_condition, add_clause, and_predicates,
2585 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2586 dump_clause, dump_predicate, account_size_time,
2587 evaulate_conditions_for_edge): New functions.
2588 (inline_summary_alloc): Move to heap.
2589 (inline_node_removal_hook): Clear condition and entry vectors.
2590 (inline_edge_removal_hook): New function.
2591 (initialize_growth_caches, free_growth_caches): New function.
2592 (dump_inline_summary): Update.
2593 (edge_execution_predicate): New function.
2594 (will_be_nonconstant_predicate): New function.
2595 (estimate_function_body_sizes): Compute BB and constantness predicates.
2596 (compute_inline_parameters): Do not clear estimated_growth.
2597 (estimate_edge_size_and_time): New function.
2598 (estimate_calls_size_and_time): New function.
2599 (estimate_callee_size_and_time): New function.
2600 (remap_predicate): New function.
2601 (inline_merge_summary): New function.
2602 (do_estimate_edge_time): New function based on...
2603 (estimate_edge_time): ... this one.
2604 (do_estimate_edge_growth): New function.
2605 (do_estimate_growth): New function based on....
2606 (estimate_growth): ... this one.
2607 (inline_analyze_function): Analyze after deciding on jump functions.
2608 (inline_read_section): New function.
2609 (inline_read_summary): Use it.
2610 (inline_write_summary): Write all the new data.
2611 * ipa-prop.c (ipa_get_param_decl_index): Export.
2612 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2613 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2615 (ipa_get_lattice): Move here from ipa-cp.c
2616 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2617 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2618 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2619 cgraph_edge_inlinable_p): Remove.
2620 * cgraphunit.c: Include ipainline.h
2621 (cgraph_process_new_functions): Update call of
2622 compute_inline_parameters.
2624 2011-04-22 Richard Guenther <rguenther@suse.de>
2626 * tree.c (build_int_cst): Properly create canonicalized integer
2628 (build_int_cst_type): Remove scary comments.
2630 2011-04-22 Xinliang David Li <davidxl@google.com>
2632 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2633 by default when -Wno-error is not specified.
2634 * opts-global.c (decode_options): Remove call to
2635 control_warning_options.
2637 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2639 PR tree-optimization/48717
2640 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2641 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2643 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2645 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2646 definition where used.
2648 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2651 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2652 TREE_STATIC variables declared inside of some OpenMP construct.
2654 2011-04-22 Martin Jambor <mjambor@suse.cz>
2657 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2659 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2662 * c-typeck.c (pop_init_level): Do not warn about initializing
2665 2011-04-22 Alan Modra <amodra@gmail.com>
2667 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2668 when returning call_cookie.
2669 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2670 pointers, to functions with no more vector args than the current
2671 function, and some non-local calls for ABI_V4.
2672 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2673 sibcall_nonlocal_aix64): Combine to ..
2674 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2675 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2676 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2677 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2678 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2680 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2681 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2682 sibcall_value_symbolic_64): Delete.
2684 2011-04-21 Xinliang David Li <davidxl@google.com>
2686 * cgraph.h: Remove pid.
2687 * cgraph.c: Remove pid.
2688 * value-prof.c (init_node_map): New function.
2689 (del_node_map): New function.
2690 (find_func_by_funcdef_no): New function.
2691 (gimple_ic_transform): Call new function.
2692 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2693 * function.c (get_last_funcdef_no): New function.
2694 * function.h (get_last_funcdef_no): New function.
2695 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2696 to libgcov function.
2697 (tree-profiling): Call node map init and delete function.
2699 2011-04-21 Ian Lance Taylor <iant@google.com>
2701 * godump.c (go_format_type): Use exported Go name for anonymous
2704 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2706 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2707 Call builtin_function_type_list instead of builtin_function_type.
2708 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2710 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2712 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2713 build_function_type_list instead of build_function_type.
2714 Delete variable `endlink'.
2716 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2718 * config/s390/s390.c (s390_init_builtins): Call
2719 build_function_type_list instead of build_function_type.
2721 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2723 * config/ia64/ia64.c (ia64_init_builtins): Call
2724 build_function_type_list instead of builtin_function_type.
2726 2011-04-21 Easwaran Raman <eraman@google.com>
2728 * cfgexpand.c (stack_var): Remove OFFSET...
2729 (add_stack_var): ...and its reference here...
2730 (expand_stack_vars): ...and here.
2731 (stack_var_cmp): Sort by descending order of size.
2732 (partition_stack_vars): Change heuristic.
2733 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2734 (dump_stack_var_partition): Add newline after each partition.
2736 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2737 Jeff Law <law@redhat.com>
2739 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2740 * gengtype.c (matching_file_name_substitute): Likewise.
2742 2011-04-21 Richard Guenther <rguenther@suse.de>
2745 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2747 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2749 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2751 2011-04-21 Richard Guenther <rguenther@suse.de>
2753 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2756 2011-04-21 Richard Guenther <rguenther@suse.de>
2758 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2759 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2760 Use DECL_P, not SSA_VAR_P.
2761 (ptr_derefs_may_alias_p): Likewise.
2762 (ptr_deref_may_alias_ref_p_1): Likewise.
2763 (decl_refs_may_alias_p): Likewise.
2764 (refs_may_alias_p_1): Likewise.
2765 (ref_maybe_used_by_call_p_1): Likewise.
2766 (call_may_clobber_ref_p_1): Likewise.
2767 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2768 are either MEM_REF or TARGET_MEM_REF.
2769 (indirect_refs_may_alias_p): Likewise.
2770 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2771 for MEM_EXPR of indirect calls.
2773 2011-04-21 Tristan Gingold <gingold@adacore.com>
2775 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2776 (dst_file_info_struct): Remove flen field.
2777 (lookup_filename): Remove code that set flen field.
2779 2011-04-21 Tristan Gingold <gingold@adacore.com>
2781 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2783 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2786 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2787 vec_extract and vec_concat for non-SSE4_1 targets.
2789 2011-04-21 Richard Guenther <rguenther@suse.de>
2791 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2794 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2796 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2798 (FILE): Don't undefine.
2800 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2802 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2804 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2806 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2807 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2808 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2810 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2811 definitions where used.
2812 * config/microblaze/microblaze.h (struct microblaze_args): Use
2813 rtx, not struct rtx_def *.
2814 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2816 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2817 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2818 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2819 not struct rtx_def *.
2820 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2822 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2824 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2826 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2828 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2829 operand_equal_p to compare DR_BASE_ADDRESSes.
2830 (vect_check_interleaving): Likewise.
2832 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2835 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2836 for all Neon struct constants.
2838 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2840 * target.def (legitimate_constant_p): New hook.
2841 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2842 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2843 * doc/tm.texi: Regenerate.
2844 * hooks.h (hook_bool_mode_rtx_true): Declare.
2845 * hooks.c (hook_bool_mode_rtx_true): Define.
2846 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2847 * calls.c (precompute_register_parameters): Replace uses of
2848 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2849 (emit_library_call_value_1): Likewise.
2850 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2851 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2852 * ira-costs.c (scan_one_insn): Likewise.
2853 * recog.c (general_operand, immediate_operand): Likewise.
2854 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2855 * reload1.c (init_eliminable_invariants): Likewise.
2857 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2859 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2860 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2862 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2863 * config/alpha/predicates.md (input_operand): Update call to
2864 alpha_legitimate_constant_p.
2866 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2867 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2868 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2869 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2870 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2871 (arm_legitimate_constant_p): New functions.
2872 (arm_cannot_force_const_mem): Make static.
2874 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2876 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2877 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2878 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2879 instead of bfin_legitimate_constant_p.
2880 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2881 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2883 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2885 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2887 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2888 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2889 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2890 (frv_legitimate_constant_p): Make static. Add a mode argument.
2892 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2893 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2896 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2897 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2898 * config/i386/i386.c (legitimate_constant_p): Rename to...
2899 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2901 (ix86_cannot_force_const_mem): Update accordingly.
2902 (ix86_legitimate_address_p): Likewise.
2903 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2904 * config/i386/i386.md: Update commentary.
2906 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2907 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2908 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2909 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2911 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2913 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2914 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2915 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2916 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2918 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2919 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2920 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2922 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2923 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2924 (m32r_legitimate_constant_p): New function.
2926 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2927 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2928 LEGITIMATE_CONSTANT_P.
2929 (LEGITIMATE_CONSTANT_P): Delete.
2930 * config/m68k/m68k.c (m68k_expand_prologue): Call
2931 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2932 (m68k_legitimate_constant_p): New function.
2933 * config/m68k/m68k.md: Update comments.
2935 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2936 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2937 (mcore_legitimate_constant_p): New function.
2939 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2940 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2941 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2942 Add a mode argument.
2943 (mep_legitimate_address): Update accordingly.
2944 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2946 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2948 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2949 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2950 static. Check OP's mode for VOIDmode.
2951 (microblaze_legitimate_constant_p): New function.
2952 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2954 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2955 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2956 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2957 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2958 * config/mips/predicates.md: Update comments.
2960 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2961 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2962 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2963 (mmix_legitimate_constant_p): Make static, return a bool, and take
2965 (mmix_print_operand_address): Update accordingly.
2967 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2969 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2970 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2971 static. Add a mode argument.
2972 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2974 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2976 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2977 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2978 (pa_legitimate_constant_p): New function.
2980 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2982 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2983 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2984 (pdp11_legitimate_constant_p): New function.
2986 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2987 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2988 (rs6000_legitimate_constant_p): New function.
2990 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2991 (rx_legitimate_constant_p): ...this.
2992 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2993 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2994 (rx_legitimate_constant_p): ...this.
2995 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2996 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2998 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2999 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3000 * config/s390/s390.c (legitimate_constant_p): Rename to...
3001 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3002 and add a mode argument.
3003 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3005 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3007 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3008 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3009 (sh_legitimate_constant_p): New function.
3011 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3012 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3013 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3014 (legitimate_constant_p): Rename to...
3015 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3017 (constant_address_p): Update accordingly.
3019 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3020 argument and return a bool.
3021 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3022 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3023 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3024 (spu_rtx_costs): Update accordingly.
3025 * config/spu/predicates.md (vec_imm_operand): Likewise.
3027 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3029 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3030 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3031 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3033 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3034 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3035 * config/vax/vax.c (legitimate_constant_p): Likewise.
3037 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3038 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3039 (xtensa_legitimate_constant_p): New function.
3041 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3043 * target.def (cannot_force_const_mem): Add a mode argument.
3044 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3045 * doc/tm.texi: Regenerate.
3046 * hooks.h (hook_bool_mode_rtx_false): Declare.
3047 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3048 (hook_bool_mode_const_rtx_true): Likewise.
3049 (hook_bool_mode_rtx_false): New function.
3050 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3051 to be non-VOID. Update call to cannot_force_const_mem.
3052 (find_reloads): Update accordingly.
3053 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3054 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3056 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3057 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3058 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3059 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3060 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3061 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3062 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3063 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3064 (m68k_cannot_force_const_mem): ...this new function.
3065 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3067 (mips_const_insns, mips_legitimize_const_move): Update calls.
3068 (mips_secondary_reload_class): Likewise.
3069 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3070 (pa_cannot_force_const_mem): ...this new function.
3071 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3072 (rs6000_cannot_force_const_mem): ...this new function.
3073 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3075 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3076 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3078 (xtensa_cannot_force_const_mem): ...this new function.
3080 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3082 * config/mips/mips.c (mips16_build_function_stub): Call
3083 build_function_type_list instead of build_function_type.
3084 (mips16_build_call_stub): Likewise.
3086 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3088 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3089 instead of build_function_type.
3091 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3093 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3094 instead of build_function_type.
3096 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3099 * config/i386/i386.md (insv): Change operand 0 constraint to
3100 "register_operand". Change operand 1 and 2 constraint to
3101 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3102 * config/i386/sse.md (sse4_1_pinsrb): Export.
3103 (sse2_pinsrw): Ditto.
3104 (sse4_1_pinsrd): Ditto.
3105 (sse4_1_pinsrq): Ditto.
3106 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3107 * config/i386/i386.c (ix86_expand_pinsr): New.
3109 2011-04-20 Easwaran Raman <eraman@google.com>
3111 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3112 containing union type only with -fstrict-aliasing.
3114 2011-04-20 Jim Meyering <meyering@redhat.com>
3116 Remove useless if-before-free tests.
3117 * calls.c (expand_call, save_area): Likewise.
3118 * cfgcleanup.c (try_forward_edges): Likewise.
3119 * collect2.c (collect_execute): Likewise.
3120 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3121 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3122 * coverage.c (coverage_checksum_string): Likewise.
3123 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3124 * cselib.c (cselib_init): Likewise.
3125 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3126 (df_set_clean_cfg): Likewise.
3127 * function.c (free_after_compilation): Likewise.
3128 * gcc.c (do_spec_1, main): Likewise.
3129 * gcov.c (create_file_names): Likewise.
3130 * gensupport.c (identify_predicable_attribute): Likewise.
3131 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3132 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3133 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3134 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3135 * ipa-pure-const.c (local_pure_const): Likewise.
3136 * ipa-reference.c (propagate): Likewise.
3137 * ira-costs.c (free_ira_costs): Likewise.
3138 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3139 * matrix-reorg.c (mat_free): Likewise.
3140 * prefix.c (get_key_value): Likewise.
3141 * profile.c (compute_value_histograms): Likewise.
3142 * reload1.c (free_reg_equiv): Likewise.
3143 * sched-deps.c (free_deps): Likewise.
3144 * sel-sched-ir.c (fence_clear): Likewise.
3145 * sese.c (set_rename, if_region_set_false_region): Likewise.
3146 * tree-data-ref.c (free_rdg): Likewise.
3147 * tree-eh.c (lower_try_finally): Likewise.
3148 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3149 * tree-ssa-live.c (delete_var_map): Likewise.
3150 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3151 * tree-ssa-pre.c (phi_trans_add): Likewise.
3153 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3155 PR tree-optimization/48611
3156 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3157 beyond ERT_MUST_NOT_THROW region.
3159 2011-04-20 Catherine Moore <clm@codesourcery.com>
3161 * config/mips/mips.opt (mfix-24k): New.
3162 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3163 * config/mips/mips.md (length): Increase by 4 for stores if
3165 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3166 all noreorder if fixing 24K errata.
3167 * doc/invoke.texi: Document mfix-24k.
3169 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3171 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3172 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3174 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3176 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3177 (const_ok_for_op): ... to here.
3179 2011-04-20 Kai Tietz <ktietz@redhat.com>
3181 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3182 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3184 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3186 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3188 2011-04-20 Richard Guenther <rguenther@suse.de>
3190 PR tree-optimization/47892
3191 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3194 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3196 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3198 2011-04-20 Tristan Gingold <gingold@adacore.com>
3200 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3202 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3206 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3207 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3208 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3209 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3210 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3212 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3215 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3216 (avr_asm_named_section, avr_asm_output_aligned_common,
3217 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3218 New functions to update...
3219 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3220 (avr_asm_init_sections): Overwrite section callbacks for
3221 data_section, bss_section.
3222 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3224 (avr_file_end): ...here.
3226 2011-04-20 Richard Guenther <rguenther@suse.de>
3229 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3230 objects and types here. Adjust for their offset before comparing.
3232 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3234 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3237 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3239 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3240 (GIMPLE_H): Include $(INTERNAL_FN_H).
3241 (OBJS-common): Add internal-fn.o.
3242 (internal-fn.o): New rule.
3243 * internal-fn.def: New file.
3244 * internal-fn.h: Likewise.
3245 * internal-fn.c: Likewise.
3246 * gimple.h: Include internal-fn.h.
3247 (GF_CALL_INTERNAL): New gf_mask.
3248 (gimple_statement_call): Put fntype into a union with a new
3250 (gimple_build_call_internal): Declare.
3251 (gimple_build_call_internal_vec): Likewise.
3252 (gimple_call_same_target_p): Likewise.
3253 (gimple_call_internal_p): New function.
3254 (gimple_call_internal_fn): Likewise.
3255 (gimple_call_fntype): Return null for internal calls.
3256 (gimple_call_set_fntype): Assert that the function is not internal.
3257 (gimple_call_set_fn): Likewise.
3258 (gimple_call_set_fndecl): Likewise.
3259 (gimple_call_set_internal_fn): New function.
3260 (gimple_call_addr_fndecl): Handle null functions.
3261 (gimple_call_return_type): Likewise null types.
3262 * gimple.c (gimple_build_call_internal_1): New function.
3263 (gimple_build_call_internal): Likewise.
3264 (gimple_build_call_internal_vec): Likewise.
3265 (gimple_call_same_target_p): Likewise.
3266 (gimple_call_flags): Handle calls to internal functions.
3267 (gimple_call_fnspec): New function.
3268 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3269 (gimple_has_side_effects): Handle null functions.
3270 (gimple_rhs_has_side_effects): Likewise.
3271 (gimple_call_copy_skip_args): Handle calls to internal functions.
3272 * cfgexpand.c (expand_call_stmt): Likewise.
3273 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3274 * gimple-fold.c (gimple_fold_call): Handle null functions.
3275 (gimple_fold_stmt_to_constant_1): Don't fold
3276 calls to internal functions.
3277 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3279 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3280 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3281 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3282 (do_warn_unused_result): Likewise.
3283 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3284 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3285 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3286 the target of a call.
3287 (initialize_hash_element): Update accordingly.
3288 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3289 (iterative_hash_hashable_expr): Handle calls to internal functions.
3290 (print_expr_hash_elt): Likewise.
3291 * tree-ssa-pre.c (can_value_number_call): Likewise.
3292 (eliminate): Handle null functions.
3293 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3294 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3295 (find_func_aliases): Likewise.
3296 * value-prof.c (gimple_ic_transform): Likewise.
3297 (gimple_indirect_call_to_profile): Likewise.
3298 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3299 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3301 2011-04-19 Jan Hubicka <jh@suse.cz>
3303 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3304 * ipa-inline.c (inline_small_functions): Compute summaries first,
3305 populate heap later.
3307 2011-04-19 Jan Hubicka <jh@suse.cz>
3309 * cgraph.h (save_inline_function_body): Remove.
3310 * ipa-inline-transform.c: New file, broke out of...
3311 * ipa-inline.c: ... this one; Update toplevel comment.
3312 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3314 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3315 (cgraph_mark_inline_edge): Rename to inline_call; move to
3316 ipa-inline-transform.c.
3317 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3318 move to ipa-inline-transform.c
3319 (recursive_inlining, inline_small_functions, flatten_function,
3320 ipa_inline, inline_always_inline_functions,
3321 early_inline_small_functions): Update.
3322 (inline_transform): Move to ipa-inline-transform.c.
3323 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3325 * Makefile.in (ipa-inline-transform.o): New file.
3326 * cgraphunit.c (save_inline_function_body): Move to
3327 ipa-inline-transform.c
3329 2011-04-19 DJ Delorie <dj@redhat.com>
3331 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3332 registers if we already know there aren't any.
3333 (m32c_emit_epilogue): Don't emit a barrier here.
3334 (m32c_emit_eh_epilogue): Likewise.
3335 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3336 operands at expand time.
3337 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3339 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3340 duplicates. Provide aliases instead.
3341 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3342 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3345 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3347 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3348 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3349 (general_or_i64_p, sparc_register_move_cost): New function.
3351 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3353 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3354 Add lynx, mipssde. Sort table.
3356 2011-04-19 Xinliang David Li <davidxl@google.com>
3358 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3361 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3364 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3365 is a SUBREG with non-MODE_INT mode inside of it.
3367 2011-04-19 Martin Jambor <mjambor@suse.cz>
3369 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3370 also according to actual contants.
3371 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3372 (gimple_fold_call): Use it.
3373 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3375 2011-04-19 Martin Jambor <mjambor@suse.cz>
3377 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3378 non-pointer assignments.
3380 2011-04-19 Martin Jambor <mjambor@suse.cz>
3382 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3383 account anc_offset and otr_type from the indirect edge info.
3384 * ipa-prop.c (get_ancestor_addr_info): New function.
3385 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3386 get_ancestor_addr_info, call it.
3387 (ipa_note_param_call): Do not initialize information about polymorphic
3388 calls, return the indirect call graph edge. Remove the last
3389 parameter, adjust all callers.
3390 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3391 parameters. Initialize polymorphic information in the indirect edge.
3393 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3396 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3397 the types if they have different enumeration identifiers.
3399 2011-04-19 Jan Hubicka <jh@suse.cz>
3401 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3402 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3403 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3404 (optimize_function_for_size_p) ... here.
3406 2011-04-19 Richard Guenther <rguenther@suse.de>
3409 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3412 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3414 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3415 if DECL_NO_INLINE_WARNING_P is set on the function.
3417 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3420 * reload1.c (inc_for_reload): Return void. All callers changed.
3421 (emit_input_reload_insns): Don't try to delete previous output
3422 reloads to a register, or record spill_reg_store for autoincs.
3424 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3426 * gengtype.h: Updated copyright year.
3427 (struct input_file_st): Add inpisplugin field.
3428 (type_fileloc): New function.
3430 (write_typed_struct_alloc_def): Add gcc_assert.
3431 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3432 (write_typed_alloc_defns): Don't output for plugin files.
3433 (input_file_by_name): Clear inpisplugin field.
3434 (main): Set inpisplugin field for plugin files.
3436 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3438 * gengtype-state.c (string_eq): New.
3439 (read_state): Use string_eq instead of strcmp when creating the
3442 2011-04-19 Wei Guozhi <carrot@google.com>
3445 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3446 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3448 * config/arm/constraints.md (Uu): New constraint.
3449 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3451 2011-04-19 Tristan Gingold <gingold@adacore.com>
3453 * config.gcc (-*-*-*vms): Added.
3454 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3456 * config/vms/vms-ld.c: New file.
3457 * config/vms/vms-ar.c: New file.
3458 * config/vms/t-vmsnative: New file.
3460 2011-04-18 Xinliang David Li <davidxl@google.com>
3462 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3464 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3467 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3468 if TREE_TYPE (v) is non-NULL.
3470 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3471 gimple_get_virt_mehtod_for_binfo.
3472 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3473 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3475 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3477 2011-04-18 Michael Matz <matz@suse.de>
3478 Steve Ellcey <sje@cup.hp.com>
3480 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3481 use its mode as source mode if it isn't VOIDmode.
3483 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3485 * doc/passes.texi: Fill crossref nodes.
3487 2011-04-18 Jim Meyering <meyering@redhat.com>
3489 Fix doubled-word typos in comments and strings
3490 * config/alpha/vms-unwind.h: s/for for/for/
3491 * config/arm/unwind-arm.h: Likewise.
3492 * config/microblaze/microblaze.c: Likewise.
3493 * config/sh/constraints.md: s/in in/in/
3494 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3496 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3498 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3499 (AVX_FLOAT_MODE_P): Ditto.
3500 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3501 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3502 (AVX_VEC_FLOAT_MODE_P): Ditto.
3503 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3504 (UNSPEC_MASKSTORE): Ditto.
3505 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3506 Merge from <sse>_movmsk<ssemodesuffix> and
3507 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3508 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3510 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3511 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3512 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3514 2011-04-18 Jan Hubicka <jh@suse.cz>
3516 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3518 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3519 (want_inline_function_called_once_p): Break out the logic from
3521 (edge_badness): Ensure that profile is not misupdated.
3522 (lookup_recursive_calls): Prioritize by call frequencies.
3523 (inline_small_functions): Move program size estimates here;
3524 actually process whole queue even when unit growth has been
3525 met. (to properly compute inline_failed reasons and for the
3526 case unit size decrease.) Revisit comments on recursive inlining.
3527 (ipa_inline): Remove unit summary code; first inline hot calls
3528 of functions called once, cold calls next.
3529 (order, nnodes): Remove unused variables.
3530 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3531 (GTFILES): Remove ipa-inline.c
3532 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3534 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3536 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3538 2011-04-18 Jie Zhang <jie@codesourcery.com>
3539 Richard Earnshaw <rearnsha@arm.com>
3541 * arm.c (neon_builtin_type_bits): Remove.
3542 (typedef enum neon_builtin_mode): New.
3543 (T_MAX): Don't define.
3544 (typedef enum neon_builtin_datum): Remove bits, codes[],
3545 num_vars and base_fcode. Add mode, code and fcode.
3546 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3547 VAR10): Change accordingly.
3548 (neon_builtin_data[]): Change accordingly
3549 (arm_init_neon_builtins): Change accordingly.
3550 (neon_builtin_compare): Remove.
3551 (locate_neon_builtin_icode): Remove.
3552 (arm_expand_neon_builtin): Change accordingly.
3554 * arm.h (enum arm_builtins): Move to ...
3555 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3557 * arm.c (arm_builtin_decl): Declare.
3558 (TARGET_BUILTIN_DECL): Define.
3559 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3560 (arm_builtin_decls[]): New.
3561 (arm_init_neon_builtins): Store builtin declarations in
3562 arm_builtin_decls[].
3563 (arm_init_tls_builtins): Likewise.
3564 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3565 (arm_builtin_decl): New.
3567 2011-04-18 Richard Guenther <rguenther@suse.de>
3569 * tree.c (upper_bound_in_type): Build properly canonicalized
3571 (lower_bound_in_type): Likewise.
3573 2011-04-18 Richard Guenther <rguenther@suse.de>
3575 * gimple.h (gimple_call_addr_fndecl): New function.
3576 (gimple_call_fndecl): Use it.
3577 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3579 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3580 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3582 2011-04-18 Richard Guenther <rguenther@suse.de>
3585 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3587 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3590 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3591 DECL_IN_CONSTANT_POOL without RTL.
3593 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3594 Ira Rosen <ira.rosen@linaro.org>
3597 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3598 to match neon_vzip/vuzp/vtrn_internal.
3599 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3600 outputs explicitly dependent on both inputs.
3601 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3603 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3605 PR tree-optimization/48616
3606 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3607 whether the shift is by scalar or vector based on whether all SLP
3608 scalar stmts have the same rhs.
3610 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3612 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3615 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3617 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3620 2011-04-17 Jan Hubicka <jh@suse.cz>
3622 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3623 * cgrpahunit.c (cgraph_finalize_function): Do not set
3624 finalized_by_frontend.
3625 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3626 finalized_by_frontend.
3628 2011-04-17 Jan Hubicka <jh@suse.cz>
3630 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3631 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3632 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3633 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3635 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3637 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3639 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3642 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3643 is non-null before accessing it.
3644 (input_cgraph): Remove trailing spaces.
3646 2011-04-17 Revital Eres <revital.eres@linaro.org>
3648 * params.def (sms-min-sc): New param flag.
3649 * modulo-sched.c (sms_schedule): Use it.
3650 * doc/invoke.texi (sms-min-sc): Document it.
3652 2011-04-17 Jan Hubicka <jh@suse.cz>
3654 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3655 present, also set gimple_call_set_cannot_inline.
3656 * ipa-inline.c: Update toplevel comment.
3658 (cgraph_clone_inlined_nodes): Fix linebreaks.
3659 (cgraph_check_inline_limits): Restructure to ...
3660 (caller_growth_limits): ... this one; be more tolerant
3661 on growth in nested inline chains; add explanatory comment;
3662 fix stack accounting thinko introduced by previous patch.
3663 (cgraph_default_inline_p): Remove.
3664 (report_inline_failed_reason): New function.
3665 (can_inline_edge_p): New function.
3666 (can_early_inline_edge_p): New function.
3667 (leaf_node_p): Move upwards in file.
3668 (want_early_inline_function_p): New function.
3669 (want_inline_small_function_p): New function.
3670 (want_inline_self_recursive_call_p): New function.
3671 (cgraph_edge_badness): Rename to ...
3672 (edge_badness) ... this one; fix linebreaks.
3673 (update_edge_key): Update call of edge_baddness; add
3674 detailed dump about queue updates.
3675 (update_caller_keys): Use can_inline_edge_p and
3676 want_inline_small_function_p.
3677 (cgraph_decide_recursive_inlining): Rename to...
3678 (recursive_inlining): Use can_inline_edge_p and
3679 want_inline_self_recursive_call_p; simplify and remove no longer
3681 (cgraph_set_inline_failed): Remove.
3682 (add_new_edges_to_heap): Use can_inline_edge_p and
3683 want_inline_small_function_p.
3684 (cgraph_decide_inlining_of_small_functions): Rename to ...
3685 (inline_small_functions): ... this one; cleanup; use
3686 can/want predicates; cleanup debug ouput; work edges till fibheap
3687 is exhausted and do not stop once unit growth is reached; remove
3688 later loop processing remaining edges.
3689 (cgraph_flatten): Rename to ...
3690 (flatten_function): ... this one; use can_inline_edge_p
3691 and can_early_inline_edge_p predicates.
3692 (cgraph_decide_inlining): Rename to ...
3693 (ipa_inline): ... this one; remove unreachable nodes before
3694 inlining functions called once; simplify the pass.
3695 (cgraph_perform_always_inlining): Rename to ...
3696 (inline_always_inline_functions): ... this one; use
3697 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3698 (cgraph_decide_inlining_incrementally): Rename to ...
3699 (early_inline_small_functions): ... this one; simplify
3700 using new predicates; cleanup; make dumps prettier.
3701 (cgraph_early_inlining): Rename to ...
3702 (early_inliner): newer inline regular functions into always-inlines;
3703 fix updating of call stmt summaries.
3704 (pass_early_inline): Update for new names.
3705 (inline_transform): Fix formating.
3706 (gate_cgraph_decide_inlining): Rename to ...
3707 (pass_ipa_inline): ... this one.
3708 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3709 * ipa-inline-analysis.c (dump_inline_summary): Update.
3710 (compute_inline_parameters): Do not compute disregard_inline_limits;
3711 look for mismatching arguments.
3712 (estimate_growth): Fix handlig of non-trivial self recursion.
3713 (inline_read_summary): Do not read info->disregard_inline_limits.
3714 (inline_write_summary): Do not write info->disregard_inline_limits.
3715 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3716 and move all checks into can_inline_edge_p predicate; re-enable code
3717 comparing optimization levels.
3718 (expand_call_inline): Do not test inline_forbidden_into_p.
3719 * Makefile.in (ipa-inline.o): Update arguments.
3721 2011-04-17 Revital Eres <revital.eres@linaro.org>
3723 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3725 2011-04-17 Revital Eres <revital.eres@linaro.org>
3727 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3729 2011-04-17 Michael Matz <matz@suse.de>
3731 PR tree-optimization/48622
3733 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3734 in same order as they're written.
3736 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3738 * config/pa/predicates.md: Reorganize and simplify predicates.
3739 Eliminate duplicate code checks.
3740 (arith_operand): Rename to arith14_operand
3741 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3742 * config/pa/pa.md: Use renamed operands.
3743 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3744 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3745 arith11_operand, adddi3_operand, indexed_memory_operand,
3746 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3747 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3748 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3749 move_dest_operand, move_src_operand, prefetch_cc_operand,
3750 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3751 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3752 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3753 div_operand, int5_operand, movb_comparison_operator,
3754 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3755 arith_double_operand, ireg_operand, lhs_lshift_operand,
3756 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3757 integer_store_memory_operand): Likewise.
3758 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3759 (integer_store_memory_operand, read_only_operand,
3760 function_label_operand, borx_reg_operand,
3761 non_hard_reg_operand): Likewise.
3762 (eq_neq_comparison_operator): Delete unused operator.
3763 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3764 function_label_operand.
3765 (emit_move_sequence): Likewise.
3767 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3769 * config/i386/sse.md (sseunpackmode): New mode attribute.
3770 (ssepackmode): Ditto.
3771 (vec_pack_trunc_<mode>): Macroize expander from
3772 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3773 (vec_unpacks_lo_<mode>): Macroize expander from
3774 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3775 (vec_unpacks_hi_<mode>): Macroize expander from
3776 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3777 (vec_unpacku_lo_<mode>): Macroize expander from
3778 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3779 (vec_unpacku_hi_<mode>): Macroize expander from
3780 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3781 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3782 ix86_expand_sse4_unpack.
3783 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3785 2011-04-16 Jan Hubicka <jh@suse.cz>
3787 * cgraphbuild.c: Include ipa-inline.h.
3788 (reset_inline_failed): Use initialize_inline_failed.
3789 * cgraph.c: Include ipa-inline.h.
3790 (cgraph_create_node_1): Do not initialize estimated_growth.
3791 (initialize_inline_failed): More to ipa-inline-analysis.c
3792 (dump_cgraph_node): Do not dump inline flags.
3793 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3794 and disregard_inline_limits flags.
3795 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3796 time, size, estimated_growth.
3797 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3799 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3800 DECL_DISREGARD_INLINE_LIMITS.
3801 (cgraph_analyze_function): Do not initialize
3802 node->local.disregard_inline_limits.
3803 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3804 inlinable, versionable and disregard_inline_limits.
3805 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3806 cgraph_check_inline_limits, cgraph_default_inline_p,
3807 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3808 add_new_edges_to_heap): Update.
3809 (cgraph_decide_inlining_of_small_function): Update; set
3810 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3811 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3812 cgraph_decide_inlining_incrementally): Update.
3813 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3814 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3815 time, size and estimated_growth parameters.
3816 (estimate_edge_growth): Update.
3817 (initialize_inline_failed): Declare.
3818 * ipa-split.c: Include ipa-inline.h
3819 (execute_split_functions): Update.
3820 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3821 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3822 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3823 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3824 estimated_growth to INT_MIN.
3825 (inline_node_duplication_hook): Likewise.
3826 (dump_inline_summary): Dump new fields.
3827 (compute_inline_parameters): Update.
3828 (estimate_edge_time, estimate_time_after_inlining,
3829 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3830 inline_write_summary):
3831 (initialize_inline_failed): Move here from cgraph.c.
3832 * tree-sra.c: Include ipa-inline.h.
3833 (ipa_sra_preliminary_function_checks): Update.
3834 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3837 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3839 * config/i386/sse.md (V16): New mode iterator.
3841 (AVXMODEQI, AVXMODEDI): Remove.
3842 (sse2, sse3): New mode attribute.
3843 (mov<mode>): Use V16 mode iterator.
3844 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3845 (push<mode>1): Use V16 mode iterator.
3846 (movmisalign<mode>): Ditto.
3847 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3848 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3849 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3850 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3851 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3852 avx_movdqu<avxmodesuffix>.
3853 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3854 *avx_movdqu<avxmodesuffix>.
3855 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3856 avx_lddqu<avxmodesuffix>.
3857 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3858 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3859 avx_movnt<AVXMODEDI:mode>.
3860 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3861 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3863 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3866 * haifa-sched.c (prune_ready_list, schedule_block): Use
3867 sched_pressure_p rather than flag_sched_pressure.
3869 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3871 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3872 cgraph_get_node instead of cgraph_get_create_node.
3874 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3876 * cfgexpand.c (expand_debug_expr): Use
3877 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3879 2011-04-15 Michael Matz <matz@suse.de>
3881 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3882 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3883 * function.c (gimplify_parameters): Ditto.
3884 * gimplify.c (gimplify_vla_decl): Ditto.
3886 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3887 (gimple_call_set_alloca_for_var): New inline function.
3888 (gimple_call_alloca_for_var_p): Ditto.
3889 * gimple.c (gimple_build_call_from_tree): Remember
3890 CALL_ALLOCA_FOR_VAR_P state.
3891 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3893 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3894 calls if they were for VLA objects.
3896 2011-04-15 Martin Jambor <mjambor@suse.cz>
3898 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3901 2011-04-15 Martin Jambor <mjambor@suse.cz>
3904 * tree-emutls.c (lower_emutls_function_body): Call
3905 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3908 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3910 * c-decl.c (detect_field_duplicates): Call
3911 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3913 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3915 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3916 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3917 * ipa-pure-const.c (check_stmt): Call it.
3918 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3920 2011-04-15 Richard Guenther <rguenther@suse.de>
3922 PR tree-optimization/48290
3923 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3924 Properly decide inhibiting propagation based on the valueized
3925 operand. Do loop-closed SSA form preserving here ...
3926 (init_copy_prop): ... not here.
3928 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3931 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3932 (*ieee_smax<mode>3): Likewise.
3934 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3936 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3937 Replace match_operand with match_dup for the third operand in
3940 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3942 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3943 to track processing of conditionals. Update all callers.
3944 (try_combine, simplify_if_then_else): Update.
3946 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3948 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3951 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3953 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3954 instead of match_operand for operand 3.
3956 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3958 * recog.h (insn_operand_data): Add an "allows_mem" field.
3959 * genoutput.c (output_operand_data): Initialize it.
3960 * optabs.c (maybe_legitimize_operand_same_code): New function.
3961 (maybe_legitimize_operand): Use it when matching the original
3964 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3966 * gimplify.c: Fix issues in comments throughout.
3967 (voidify_wrapper_expr): Fix long line.
3968 (build_stack_save_restore): Likewise.
3969 (gimplify_loop_expr): Likewise.
3970 (gimplify_compound_lval): Likewise.
3971 (gimplify_init_ctor_eval): Likewise.
3972 (gimplify_modify_expr_rhs): Likewise.
3973 (omp_notice_threadprivate_variable): Likewise.
3975 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3977 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3978 original one if this is not a builtin function.
3980 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3983 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3984 offset it as needed based on top 2 bits in operands[3], change
3985 MEM mode to SFmode and mask those 2 bits away from operands[3].
3987 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3989 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3990 change from objc_declare_protocols() to objc_declare_protocol().
3992 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3994 * config/i386/sse.md (sse4_1): New mode attribute.
3995 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3996 avx_blend<ssemodesuffix><avxmodesuffix> and
3997 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3998 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3999 avx_blendv<ssemodesuffix><avxmodesuffix> and
4000 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4001 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4002 avx_dp<ssemodesuffix><avxmodesuffix> and
4003 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4004 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4005 (sse4_1_packusdw): Merge with *avx_packusdw.
4006 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4007 (sse4_1_pblendw): Merge with *avx_pblendw.
4008 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4009 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4010 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4012 (sse4_1_round<ssescalarmodesuffix>): Merge with
4013 *avx_round<ssescalarmodesuffix>.
4014 (aesenc): Merge with *avx_aesenc.
4015 (aesenclast): Merge with *avx_aesenclast.
4016 (aesdec): Merge with *avx_aesdec.
4017 (aesdeclast): Merge with *avx_aesdeclast.
4018 (pclmulqdq): Merge with *pclmulqdq.
4019 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4021 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4023 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4026 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4027 (align_local_variable): This. Update DECL_ALIGN.
4028 (add_stack_var): Updated.
4029 (expand_one_stack_var): Likewise.
4031 2011-04-14 Richard Guenther <rguenther@suse.de>
4033 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4035 (dse_initialize_block_local_data, dse_leave_block,
4036 record_voperand_set, get_stmt_uid): Likewise.
4037 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4038 (dse_optimize_stmt): Remove voperand set handling code.
4039 Simplify and improve to handle any kind of killing stmt.
4040 (dse_record_phi): Remove.
4041 (dse_enter_block): Simplify.
4042 (tree_ssa_dse): Likewise.
4043 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4045 2011-04-14 Jan Hubicka <jh@suse.cz>
4047 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4048 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4049 (cgraph_local_info): Remove inline_summary.
4050 * ipa-cp.c: Include ipa-inline.h.
4051 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4052 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4054 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4055 (input_overwrite_node): Do not set inline summary.
4056 (input_node): Do not stream inline summary.
4057 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4058 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4059 growth; we do not have inline parameters computed for that anyway.
4060 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4061 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4062 (inline_summary_t): New type and VECtor.
4063 (debug_inline_summary, dump_inline_summaries): Declare.
4064 (inline_summary): Use VOCtor.
4065 (estimate_edge_growth): Kill hack computing call stmt size directly.
4066 * lto-section-in.c (lto_section_name): Add inline section.
4067 * ipa-inline-analysis.c: Include lto-streamer.h
4068 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4069 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4070 (inline_summary_vec): Define.
4071 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4072 dump_inline_summaries): New functions.
4073 (estimate_function_body_sizes): Properly compute size/time of outgoing
4075 (compute_inline_parameters): Alloc inline_summary; do not compute
4076 size/time of incomming calls.
4077 (estimate_edge_time): Avoid missing time summary hack.
4078 (inline_read_summary): Read inline summary info.
4079 (inline_write_summary): Write inline summary info.
4080 (inline_free_summary): Free all hooks and inline summary vector.
4081 * lto-streamer.h: Add LTO_section_inline_summary section.
4082 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4083 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4085 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4087 * tree-vectorizer.h (vect_strided_store_supported): Add a
4088 HOST_WIDE_INT argument.
4089 (vect_strided_load_supported): Likewise.
4090 (vect_permute_store_chain): Return void.
4091 (vect_transform_strided_load): Likewise.
4092 (vect_permute_load_chain): Delete.
4093 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4094 count argument. Check that the count is a power of two.
4095 (vect_strided_load_supported): Likewise.
4096 (vect_permute_store_chain): Return void. Update after above changes.
4097 Assert that the access is supported.
4098 (vect_permute_load_chain): Likewise.
4099 (vect_transform_strided_load): Return void.
4100 * tree-vect-stmts.c (vectorizable_store): Update calls after
4101 above interface changes.
4102 (vectorizable_load): Likewise.
4103 (vect_analyze_stmt): Don't check for strided powers of two here.
4105 2011-04-14 Richard Guenther <rguenther@suse.de>
4107 PR tree-optimization/48590
4108 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4109 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4110 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4111 BUILT_IN_STACK_SAVE.
4112 * tree-ssa-dce.c (propagate_necessity): Handle
4113 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4115 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4117 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4120 2011-04-14 Richard Guenther <rguenther@suse.de>
4122 * tree.h (get_object_alignment_1): Declare.
4123 * builtins.c (get_object_alignment_1): Split out worker from ...
4124 (get_object_alignment): ... here.
4125 * fold-const.c (get_pointer_modulus_and_residue): Use
4126 get_object_alignment_1.
4128 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4130 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4132 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4133 parameter. Generalise code to handle arrays as well as vectors.
4134 (vect_setup_realignment): Update accordingly.
4135 * tree-vect-stmts.c (vectorizable_store): Likewise.
4136 (vectorizable_load): Likewise.
4138 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4140 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4141 within the per-copy loop.
4143 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4145 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4148 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4150 * doc/options.texi (Negative): Explicitly mention that the
4151 Negative chain must be circular.
4153 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4155 * function.h (block_chainon): Declare.
4156 * function.c (block_chainon): Define.
4158 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4159 Eric Weddington <eric.weddington@atmel.com>
4160 Georg-Johann Lay <avr@gjlay.de>
4162 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4164 (avr_init_builtins, avr_expand_builtin,
4165 avr_expand_delay_cycles, avr_expand_unop_builtin,
4166 avr_expand_binop_builtin ): New functions.
4167 (avr_builtin_id): New enum
4168 (struct avr_builtin_description): New struct
4169 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4170 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4172 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4173 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4174 UNSPECV_DELAY_CYCLES): new enumeration values
4175 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4176 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4177 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4178 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4179 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4180 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4181 "fmulsu"): New insns
4183 * config/avr/avr-c.c: fix line endings
4184 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4185 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4186 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4187 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4188 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4190 * doc/extend.texi (AVR Built-in Functions): New node
4191 (Target Builtins): Add documentation of AVR
4194 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4197 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4198 alone. Error if non-const data has attribute progmem.
4200 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4202 * tree.h (struct tree_constructor): Include tree_typed instead of
4204 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4205 TS_TYPED instead of TS_COMMON.
4207 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4209 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4210 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4211 (sse2_psadbw): Merge with *avx_psadbw.
4212 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4213 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4214 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4215 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4216 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4217 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4218 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4219 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4220 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4221 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4222 (ssse3_palignrti): Merge with *avx_palignrti.
4224 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4226 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4227 * tree-ssanames.c (fini_ssanames): VEC_free it.
4228 (make_ssa_name_fn): Update for VECness of free_ssanames.
4229 (release_ssa_name, release_dead_ssa_names): Likewise.
4230 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4232 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4233 TS_TYPED instead of TS_COMMON.
4235 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4237 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4238 statistics_counter_event.
4239 * tree-ssa-copyrename.c (stats): Define.
4240 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4241 statistics_counter_event.
4242 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4243 (bswap_stats, widen_mul_stats): Define.
4244 (insert_reciprocals): Increment rdivs_inserted.
4245 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4246 rfuncs_inserted. Add calls to statistics_counter_event.
4247 (execute_cse_sincos_1): Increment inserted.
4248 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4249 statistics_counter_event.
4250 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4251 of bswap_stats. Add calls to statistics_counter_event.
4252 (convert_mult_to_widen): Increment widen_mults_inserted.
4253 (convert_plusminus_to_widen): Increment maccs_inserted.
4254 (convert_mult_to_fma): Increment fmas_inserted.
4255 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4256 calls to statistics_counter_event.
4258 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4260 PR rtl-optimization/48455
4261 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4262 `temp_costs->mem_cost'.
4264 2011-04-13 Jan Hubicka <jh@suse.cz>
4266 * ipa-inline.h: New file.
4267 * ipa-inline-analysis.c: New file. Broken out of ...
4268 * ipa-inline.c: ... this file; update toplevel comment;
4269 include ipa-inline.h
4270 (inline_summary): Move to ipa-inline.h
4271 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4272 ipa-inline-analysis.c.
4273 (cgraph_estimate_time_after_inlining): Rename to
4274 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4275 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4276 to estimate_edge_growth.
4277 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4278 rename to estimate_size_after_inlining.
4279 (cgraph_mark_inline_edge): Update for new naming convention.
4280 (cgraph_check_inline_limits): Likewise.
4281 (cgraph_edge_badness): Likewise.
4282 (cgraph_decide_recursive_inlining): Likewise.
4283 (cgraph_decide_inlining_of_small_functions): Likewise.
4284 (cgraph_decide_inlining_incrementally): Likewise.
4285 (cgraph_estimate_growth): Rename to estimate_growth; move to
4286 ipa-inline-analysis.c.
4287 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4288 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4289 (compute_inline_parameters): Likewise.
4290 (compute_inline_parameters_for_current): Likewise.
4291 (pass_inline_parameters): Likewise.
4292 (inline_indirect_intraprocedural_analysis): Likewise.
4293 (analyze_function): Rename to inline_analyze_function; likewise.
4294 (add_new_function): Move to ipa-inline-analysis.c.
4295 (inline_generate_summary): Likewise.
4296 (inline_read_summary): Likewise.
4297 (inline_write_summary): Likewise.
4298 * Makefile.in (ipa-inline-analysis.c): New file.
4300 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4302 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4303 * configure: Regenerate.
4305 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4307 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4308 instead of tree_common.
4309 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4311 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4312 TS_TYPED rather than TS_COMMON.
4313 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4315 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4318 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4319 r20 around calls of __tablejump_elpm__
4321 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4324 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4326 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4328 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4330 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4331 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4332 (cfi_vec): New typedef.
4333 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4334 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4335 (cie_cfi_vec): New static variable.
4336 (cie_cfi_head): Delete.
4337 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4338 declaration changed. Use vector rather than list operations.
4339 (new_cfi): Don't initialize the dw_cfi_next field.
4340 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4341 rather than list operations.
4342 (lookup_cfa): Use vector rather than list operations.
4343 (output_cfis): New argument upto. Accept a cfi_vec rather than
4344 a dw_cfi_ref list head as argument. All callers changed.
4345 Iterate over the vector using upto as a maximum index.
4346 (output_all_cfis): New static function.
4347 (output_fde): Use vector rather than list operations. Use the
4348 new upto argument for output_cfis rather than manipulating a
4350 (dwarf2out_begin_prologue): Change initializations to match
4352 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4353 from the vector length rather than searching for the end of a list.
4354 Use output_all_cfis.
4355 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4357 2011-04-13 Nick Clifton <nickc@redhat.com>
4359 * config/rx/rx.md (movmemsi): Do not use this pattern when
4360 volatile pointers are involved.
4362 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4364 * config/i386/sse.md (pinsrbits): Remove.
4365 (sse2_packsswb): Merge with *avx_packsswb.
4366 (sse2_packssdw): Merge with *avx_packssdw.
4367 (sse2_packuswb): Merge with *avx_packuswb.
4368 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4369 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4370 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4371 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4372 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4373 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4374 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4375 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4376 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4377 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4378 (sse2_loadld): Merge with *avx_loadld.
4379 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4380 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4381 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4382 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4383 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4385 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4387 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4389 * print-tree.c (print_node): Likewise.
4390 * tree-inline.c (copy_tree_r): Likewise.
4391 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4392 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4393 instead of TS_COMMON.
4394 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4395 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4396 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4397 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4398 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4400 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4402 (TREE_CHAIN): Check for a TS_COMMON structure.
4403 (TREE_TYPE): Check for a TS_TYPED structure.
4405 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4407 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4408 cgraph_get_create_node instead of cgraph_node.
4410 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4412 * c-parser.c (c_parser_initelt): Updated call to
4413 objc_build_message_expr.
4414 (c_parser_postfix_expression): Likewise.
4416 2011-04-12 Kai Tietz <ktietz@redhat.com>
4418 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4419 MASK_MS_BITFIELD_LAYOUT bit.
4421 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4423 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4424 assert it is always true.
4425 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4428 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4430 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4431 compiling Objective-C to be more efficient.
4433 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4435 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4438 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4440 * recog.h, genoutput.c, optabs.c: Revert last patch.
4442 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4445 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4447 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4449 * recog.h (insn_operand_data): Add an "allows_mem" field.
4450 * genoutput.c (output_operand_data): Initialize it.
4451 * optabs.c (maybe_legitimize_operand_same_code): New function.
4452 (maybe_legitimize_operand): Use it when matching the original
4455 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4457 * genpreds.c (process_define_predicate): Move most processing
4458 to gensupport.c. Continue to validate the expression.
4459 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4460 (process_define_predicate): Move processing to gensupport.c.
4461 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4462 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4463 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4465 (valid_predicate_name_p): New function, split out from old
4466 genpreds.c:process_define_predicate.
4467 (process_define_predicate): New function, combining code from
4468 old genpreds.c and genrecog.c functions.
4469 (process_rtx): Call it for DEFINE_PREDICATE and
4470 DEFINE_SPECIAL_PREDICATE.
4472 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4474 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4475 size of a '%A' memory reference.
4476 (T_DREG, T_QREG): New neon_builtin_type_bits.
4477 (arm_init_neon_builtins): Assert that the load and store operands
4478 are neon_struct_operands.
4479 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4480 (NEON_ARG_MEMORY): New builtin_arg.
4481 (neon_dereference_pointer): New function.
4482 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4483 Handle NEON_ARG_MEMORY.
4484 (arm_expand_neon_builtin): Update after above interface changes.
4485 Use NEON_ARG_MEMORY for loads and stores.
4486 * config/arm/predicates.md (neon_struct_operand): New predicate.
4487 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4488 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4489 (V_four_elem): Tweak formatting.
4490 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4491 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4492 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4493 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4494 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4495 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4496 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4497 Use %A in the output template.
4498 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4499 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4500 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4501 the width of the memory access. Remove post-increment.
4502 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4504 2011-04-12 Nick Clifton <nickc@redhat.com>
4506 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4507 instruction for interrupt handlers if the target is the basic V850
4509 (expand_epilogue): Likewise.
4511 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4513 PR rtl-optimization/48549
4514 * combine.c (propagate_for_debug): Also stop after BB_END of
4515 this_basic_block. Process LAST and just stop processing after it.
4516 (combine_instructions): If last_combined_insn has been deleted,
4517 set last_combined_insn to its PREV_INSN.
4519 2011-04-12 Richard Guenther <rguenther@suse.de>
4521 PR tree-optimization/46076
4522 * gimple.h (struct gimple_statement_call): Add fntype field.
4523 (gimple_call_fntype): Adjust.
4524 (gimple_call_set_fntype): New function.
4525 * gimple.c (gimple_build_call_1): Set the call function type.
4526 * gimplify.c (gimplify_call_expr): Preserve the function
4527 type the frontend used for the call.
4528 (gimplify_modify_expr): Likewise.
4529 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4531 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4533 * tree-ssa.c (useless_type_conversion_p): Function pointer
4534 conversions are useless.
4536 2011-04-12 Martin Jambor <mjambor@suse.cz>
4538 * cgraph.h (cgraph_node): Remove function declaration.
4539 (cgraph_create_node): Declare.
4540 (cgraph_get_create_node): Likewise.
4541 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4542 Updated all callers.
4543 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4544 the decl does not already exist. Call cgraph_get_create_node instead
4546 (cgraph_get_create_node): New function.
4547 (cgraph_same_body_alias): Update comment.
4548 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4549 assert it does not return NULL.
4550 (cgraph_update_edges_for_call_stmt): Likewise.
4551 (cgraph_clone_edge): Likewise.
4552 (cgraph_create_virtual_clone): Likewise.
4553 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4554 instead of cgraph_node.
4555 (cgraph_add_new_function): Call cgraph_create_node or
4556 cgraph_get_create_node instead of cgraph_node.
4557 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4558 instead of cgraph_node.
4559 (record_eh_tables): Likewise.
4560 (mark_address): Likewise.
4561 (mark_load): Likewise.
4562 (build_cgraph_edges): Call cgraph_get_create_node instead
4564 (rebuild_cgraph_edges): Likewise.
4565 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4566 instead of cgraph_node.
4567 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4569 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4570 cgraph_create_node instead of cgraph_node.
4571 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4573 * lto-cgraph.c (input_node): Likewise.
4574 * lto-streamer-in.c (input_function): Likewise.
4575 * varasm.c (mark_decl_referenced): Likewise.
4576 (assemble_alias): Likewise.
4578 2011-04-12 Martin Jambor <mjambor@suse.cz>
4580 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4581 instead of cgraph_node and assert it does not return NULL.
4582 * lto-streamer-in.c (lto_read_body): Likewise.
4583 * omp-low.c (new_omp_context): Likewise.
4584 (create_task_copyfn): Likewise.
4585 * tree-emutls.c (lower_emutls_function_body): Likewise.
4586 * matrix-reorg.c (transform_allocation_sites): Likewise.
4588 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4591 * c-typeck.c (build_asm_expr): Error out on attempts to use
4592 void type outputs or inputs for constraints that allow reg or
4595 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4596 Richard Earnshaw <rearnsha@arm.com>
4599 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4600 to use sign-magnitude offsets. Reject unsupported unaligned
4601 cases. Add detailed description in comments.
4602 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4603 condition from TARGET_32BIT to TARGET_ARM.
4605 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4607 * tree.h (struct typed_tree): New.
4608 (struct tree_common): Include it instead of tree_base.
4609 (TREE_TYPE): Update for new location of type field.
4610 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4611 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4612 (union tree_node): Add typed field.
4613 * treestruct.def (TS_TYPED): New.
4614 * lto-streamer.c (check_handled_ts_structures): Handle it.
4615 * tree.c (MARK_TS_TYPED): New macro.
4616 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4618 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4620 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4621 (force_nonfallthru): Do not alter the loop nest if no basic block
4624 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4626 * config/i386/sse.md (VI): New mode iterator.
4628 (AVX256MODEI): Ditto.
4629 (AVXMODEF4P): Ditto.
4630 (avxvecpsmode): Ditto.
4631 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4632 (sse2_andnot<mode>3): New expander.
4633 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4634 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4635 (<any_logic:code><mode>3): Use VI mode iterator.
4636 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4637 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4638 (*andnottf3): Handle AVX three-operand constraints.
4639 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4641 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4642 Robert Millan <rmh@gnu.org>
4644 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4645 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4646 GNU_USER_DYNAMIC_LINKER64): Define.
4647 (REG_NAME): Don't undefine.
4648 (MD_UNWIND_SUPPORT): Undefine.
4649 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4650 (REG_NAME): Don't undefine.
4651 (MD_UNWIND_SUPPORT): Undefine.
4652 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4654 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4656 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4657 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4659 2011-04-11 Xinliang David Li <davidxl@google.com>
4661 * value-profile.c (check_ic_target): New function.
4662 (gimple_ic_transform): Sanity check indirect call target.
4663 * gimple-low.c (gimple_check_call_args): Interface change.
4664 (gimple_check_call_matching_types): New function.
4665 * tree-inline.c (tree_can_inline_p): Call new function.
4667 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4669 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4670 tree-pretty-print.h & realmpfr.h.
4672 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4675 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4676 (setup_allocno_and_important_classes): Ditto.
4678 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4680 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4681 GNU_USER_DYNAMIC_LINKER.
4682 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4683 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4684 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4685 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4686 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4687 GNU_USER_TARGET_OS_CPP_BUILTINS.
4688 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4689 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4690 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4691 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4692 * config/cris/linux.h (CRIS_LINK_SUBTARGET_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/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4697 GNU_USER_DYNAMIC_LINKER.
4698 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4699 GNU_USER_TARGET_OS_CPP_BUILTINS.
4700 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4702 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4703 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4704 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4705 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4706 GNU_USER_DYNAMIC_LINKER64): Remove.
4707 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4708 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4709 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4710 GNU_USER_DYNAMIC_LINKER.
4711 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4712 GNU_USER_TARGET_OS_CPP_BUILTINS.
4713 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4714 GNU_USER_TARGET_OS_CPP_BUILTINS.
4715 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4716 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4717 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4718 GNU_USER_TARGET_OS_CPP_BUILTINS.
4719 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4720 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4721 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4722 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4724 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4725 GNU_USER_DYNAMIC_LINKER.
4726 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4727 GNU_USER_TARGET_OS_CPP_BUILTINS.
4728 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4730 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4731 GNU_USER_DYNAMIC_LINKER.
4732 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4733 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4734 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4736 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4737 GNU_USER_DYNAMIC_LINKER.
4738 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4739 GNU_USER_DYNAMIC_LINKERN32.
4740 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4741 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4742 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4743 GNU_USER_DYNAMIC_LINKER32.
4744 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4746 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4747 GNU_USER_DYNAMIC_LINKER.
4748 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4750 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4751 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4752 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4753 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4754 GNU_USER_DYNAMIC_LINKER32.
4755 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4756 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4757 GNU_USER_DYNAMIC_LINKER.
4758 * config/s390/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_LINKER32 to
4761 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4762 GNU_USER_DYNAMIC_LINKER64.
4763 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4765 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4766 GNU_USER_DYNAMIC_LINKER.
4767 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4768 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4769 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4770 GNU_USER_DYNAMIC_LINKER.
4771 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4773 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4774 GNU_USER_DYNAMIC_LINKER32.
4775 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4776 GNU_USER_DYNAMIC_LINKER64.
4777 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4778 GNU_USER_DYNAMIC_LINKER64.
4779 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4781 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4782 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4783 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4785 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4787 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4788 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4789 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4790 GNU_USER_DYNAMIC_LINKER.
4791 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4792 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4793 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4794 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4795 GNU_USER_DYNAMIC_LINKER64.
4796 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4797 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4798 GNU_USER_LINK_EMULATION.
4799 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4800 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4801 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4802 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4803 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4804 CPP_SPEC, CC1_SPEC): Remove.
4805 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4806 (GNU_USER_DYNAMIC_LINKER): Define.
4807 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4808 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4809 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4810 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4811 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4812 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4813 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4814 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4815 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4816 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4817 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4818 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4819 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4820 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4821 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4822 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4823 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4824 GNU_USER_DYNAMIC_LINKER.
4825 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4826 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4827 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4828 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4829 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4830 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4831 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4832 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4833 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4834 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4836 2011-04-11 Kai Tietz <ktietz@redhat.com>
4840 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4841 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4843 (ix86_is_msabi_thiscall): Removed.
4844 (ix86_is_type_thiscall): Likewise.
4845 (ix86_get_callcvt): New function.
4846 (ix86_comp_type_attributes): Simplify check.
4847 (ix86_function_regparm): Use ix86_get_callcvt for calling
4848 convention attribute checks.
4849 (ix86_return_pops_args): Likewise.
4850 (ix86_static_chain): Likewise.
4851 (x86_this_parameter): Likewise.
4852 (x86_output_mi_thunk): Likewise.
4853 (ix86_function_type_abi): Optimize check for types without attributes.
4854 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4855 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4856 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4858 (IX86_BASE_CALLCVT): Helper macro.
4859 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4860 Use ix86_get_callcvt for calling convention attribute checks and avoid
4861 symbol-decoration for stdcall in TARGET_RTD case.
4862 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4864 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4867 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4869 * config/i386/sse.md (VI_128): New mode iterator.
4870 (VI12_128): Rename from SSEMODE12.
4871 (VI14_128): Rename from SSEMODE14.
4872 (VI124_128): New mode iterator.
4873 (VI24_128): Rename from SSEMODE248.
4874 (VI248_128): Rename from SSEMODE248.
4875 (SSEMODE124C8): Remove.
4876 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4877 (*sse2_<plusminus_insn><mode>3): Merge with
4878 *avx_<plusminus_insn><mode>3.
4879 (*mulv8hi3): Merge with *avx_mulv8hi3.
4880 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4881 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4882 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4883 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4884 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4885 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4886 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4887 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4888 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4889 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4890 (*<smaxmin:code>v8hi3): Ditto.
4891 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4892 (*<smaxmin:code>v16qi3): Ditto.
4893 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4894 (*sse2_eq<mode>3): Ditto.
4895 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4896 (*sse2_gt<mode>3): Ditto.
4897 (vcondv2di): Split out of vcond<mode>.
4898 (vconduv2di): Split out of vcondu<mode>.
4900 2011-04-11 Richard Guenther <rguenther@suse.de>
4902 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4903 before calling tree_low_cst.
4905 2011-04-11 Richard Guenther <rguenther@suse.de>
4907 * stor-layout.c (layout_type): Compute all array index size operations
4908 in the original type.
4909 (initialize_sizetypes): Add comment.
4910 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4912 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4914 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4916 2011-04-11 Martin Jambor <mjambor@suse.cz>
4918 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4919 of cgraph_node, handle NULL return value.
4920 (cgraph_global_info): Likewise.
4921 (cgraph_rtl_info): Likewise.
4922 * tree-inline.c (estimate_num_insns): Likewise.
4923 * gimplify.c (unshare_body): Likewise.
4924 (unvisit_body): Likewise.
4925 (gimplify_body): Likewise.
4926 * predict.c (optimize_function_for_size_p): Likewise.
4927 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4928 (call_may_clobber_ref_p_1): Likewise.
4929 * varasm.c (function_section_1): Likewise.
4930 (assemble_start_function): Likewise.
4932 2011-04-11 Martin Jambor <mjambor@suse.cz>
4934 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4936 * final.c (rest_of_clean_state): Likewise.
4937 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4938 * passes.c (pass_init_dump_file): Likewise.
4939 (execute_all_ipa_transforms): Likewise.
4940 (function_called_by_processed_nodes_p): Likewise.
4941 * predict.c (maybe_hot_frequency_p): Likewise.
4942 (probably_never_executed_bb_p): Likewise.
4943 (compute_function_frequency): Likewise.
4944 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4945 (unnest_nesting_tree_1): Likewise.
4946 (lower_nested_functions): Likewise.
4947 * tree-optimize.c (execute_fixup_cfg): Likewise.
4948 (tree_rest_of_compilation): Likewise.
4949 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4950 * tree-sra.c (ipa_early_sra): Likewise.
4951 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4952 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4953 * ipa.c (record_cdtor_fn): Likewise.
4954 * ipa-inline.c (cgraph_early_inlining): Likewise.
4955 (compute_inline_parameters_for_current): Likewise.
4956 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4957 * ipa-pure-const.c (local_pure_const): Likewise.
4958 * ipa-split.c (split_function): Likewise.
4959 (execute_split_functions): Likewise.
4960 * cgraphbuild.c (build_cgraph_edges): Likewise.
4961 (rebuild_cgraph_edges): Likewise.
4962 (cgraph_rebuild_references): Likewise.
4963 (remove_cgraph_callee_edges): Likewise.
4964 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4965 (verify_cgraph_node): Likewise.
4966 (cgraph_analyze_functions): Likewise.
4967 (cgraph_preserve_function_body_p): Likewise.
4968 (save_inline_function_body): Likewise.
4969 (save_inline_function_body): Likewise.
4970 * tree-inline.c (copy_bb): Likewise.
4971 (optimize_inline_calls): Likewise.
4973 2011-04-11 Martin Jambor <mjambor@suse.cz>
4975 PR tree-optimization/48195
4976 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4977 ipa_check_create_edge_args.
4978 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4979 ipa_check_create_edge_args.
4980 * ipa-inline.c (inline_generate_summary): Do not call
4981 ipa_check_create_node_params and ipa_check_create_edge_args.
4982 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4983 ipa_check_create_edge_args.
4985 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4987 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4989 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4990 * function.c (record_hard_reg_sets): Likewise.
4991 * ira.c (compute_regs_asm_clobbered): Likewise.
4992 * sched-deps.c (sched_analyze_1): Likewise.
4993 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4995 2011-04-09 Xinliang David Li <davidxl@google.com>
4997 PR tree-optimization/PR48484
4998 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4999 has_valid_pred lazily
5001 2011-04-09 Duncan Sands <baldrick@free.fr>
5003 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5005 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5007 * combine.c (combine_validate_cost): Adjust comments. Set registered
5008 cost of I0 to zero at the end, if any.
5010 2011-04-08 Xinliang David Li <davidxl@google.com>
5012 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5013 to insane profile data.
5015 2011-04-08 Xinliang David Li <davidxl@google.com>
5017 * ipa-cp.c (ipcp_update_profiling): Correct
5018 negative scale factor due to insane profile data.
5020 2011-04-08 Xinliang David Li <davidxl@google.com>
5022 * final.c (dump_basic_block_info): New function.
5023 (final): Dump basic block.
5024 (final_scan_insn): Remove old dump.
5026 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5029 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5032 2011-04-08 Michael Matz <matz@suse.de>
5035 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5037 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5038 * rtl.h (rebuild_jump_labels_chain): Declare.
5039 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5040 insns inserted on edges.
5042 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5044 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5045 * config/arm/arm-arches.def: New.
5046 * config/arm/arm-opts.h: New.
5047 * config/arm/genopt.sh: New.
5048 * config/arm/arm-tables.opt: New (generated).
5049 * config/arm/arm.c (arm_handle_option, arm_target_help,
5050 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5051 (all_architectures): Get most table contents from arm-arches.def.
5052 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5053 arm_selected_tune here.
5054 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5055 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5056 (march=, mcpu=, mtune=): Use Enum and Var.
5057 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5058 (arm.o): Update dependencies.
5060 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5062 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5064 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5065 (write_typed_alloc_defns): Likewise.
5066 (main): Calls write_typed_alloc_defns with output_header.
5068 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5071 * ira-color.c (setup_profitable_hard_regs): Add comments.
5072 Don't take prohibited hard regs into account.
5073 (setup_conflict_profitable_regs): Rename to
5074 get_conflict_profitable_regs.
5075 (check_hard_reg_p): Check prohibited hard regs.
5077 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5079 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5080 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5081 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5083 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5086 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5087 move from floating point to shift amount register.
5088 (emit_move_sequence): Remove secondary reload support for floating
5089 point to shift amount amount register copies.
5090 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5091 amount register copies.
5092 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5093 register, return false if mode isn't a scalar integer mode.
5094 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5096 2011-04-08 Richard Guenther <rguenther@suse.de>
5098 * gimple.c (gimple_call_flags): Remove kludge.
5100 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5102 * sel-sched.c (sel_region_init): Move call to
5103 sel_setup_region_sched_flags after setup_current_loop_nest.
5105 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5107 PR rtl-optimization/48272
5108 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5109 init_insn_reg_pressure_info. Adjust a caller.
5110 * sched-int.h (init_insn_reg_pressure_info): Declare.
5111 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5112 when sched-pressure is enabled.
5114 2011-04-08 Richard Guenther <rguenther@suse.de>
5116 * gimple.c (gimple_set_modified): Do not queue calls to
5117 MODIFIED_NORETURN_CALLS here ...
5118 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5120 2011-04-08 Richard Guenther <rguenther@suse.de>
5123 * toplev.c (lang_dependent_init): Do not open asm_out_file
5124 in WPA mode, nor perform debug machinery initialization.
5125 (finalize): Do not unlink asm_out_file in WPA mode.
5127 2011-04-08 Richard Guenther <rguenther@suse.de>
5129 * gimple.h (gimple_call_fntype): New function.
5130 (gimple_call_return_type): Use it.
5131 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5132 * gimple-low.c (gimple_check_call_args): Likewise.
5133 * gimple.c (gimple_call_flags): Likewise.
5134 (gimple_call_arg_flags): Likewise.
5135 (gimple_call_return_flags): Likewise.
5136 * tree-cfg.c (verify_gimple_call): Likewise.
5137 (do_warn_unused_result): Likewise.
5138 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5139 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5141 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5143 PR rtl-optimization/48235
5144 * sel-sched.c (code_motion_process_successors): Recompute the last
5145 insn in basic block if control flow changed.
5146 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5147 Update condition for ilist_remove.
5149 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5151 PR rtl-optimization/48302
5152 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5153 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5154 it to record added preheader blocks.
5155 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5156 on to sel_add_loop_preheaders.
5157 (sel_region_init): Move call to setup_current_loop_nest after
5160 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5163 * cfgloop.h (loop_has_exit_edges): New helper.
5164 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5166 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5167 that have no exit edges.
5169 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5171 PR rtl-optimization/48442
5172 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5173 all callers. Adjust assert.
5175 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5177 PR tree-optimization/48377
5178 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5179 is_packed to true even for types with smaller TYPE_ALIGN than
5182 2011-04-08 Richard Guenther <rguenther@suse.de>
5185 * doc/tm.texi: Re-generate.
5187 2011-04-08 Wei Guozhi <carrot@google.com>
5190 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5191 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5192 * config/arm/arm.md (*push_multi): Change the length computation to
5195 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5197 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5198 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5199 * doc/tm.texi: Regenerate.
5200 * system.h (ASM_OUTPUT_BSS): Poison.
5201 * varasm.c (asm_output_bss): Remove function.
5202 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5204 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5205 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5206 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5207 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5209 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5211 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5213 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5215 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5217 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5220 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5222 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5223 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5224 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5226 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5227 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5228 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5229 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5230 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5231 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5232 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5233 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5234 options. Don't map other m68k options manually. Don't handle
5235 old-style options as canonical.
5236 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5237 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5239 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5241 * basic-block.h (force_nonfallthru): Move to...
5242 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5243 (force_nonfallthru): ...here.
5244 * cfghooks.c (force_nonfallthru): New function.
5245 * cfgrtl.c (force_nonfallthru): Rename into...
5246 (rtl_force_nonfallthru): ...this.
5247 (commit_one_edge_insertion): Do not set AUX field.
5248 (commit_edge_insertions): Do not discover new basic blocks.
5249 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5250 (cfg_layout_rtl_cfg_hooks): Likewise.
5251 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5252 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5253 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5255 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5257 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5260 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5262 * config/i386/sse.md: Update copyright year.
5263 (avxcvtvecmode): Remove.
5264 (sse_movhlps): Merge with *avx_movhlps.
5265 (sse_movlhps): Merge with *avx_movlhps.
5266 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5267 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5268 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5269 (sse_loadhps): Merge with *avx_loadhps.
5270 (sse_storelps): Merge with *avx_storelps.
5271 (sse_loadlps): Merge with *avx_loadlps.
5272 (sse_movss): Merge with *avx_movss.
5273 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5274 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5275 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5276 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5277 (vec_set<mode>_0): Ditto.
5278 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5279 (sse4_1_insertps): Merge with *avx_insertps.
5280 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5281 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5282 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5283 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5284 (sse2_storehpd): Merge with *avx_storehpd.
5285 (sse2_loadhpd): Merge with *avx_loadhpd.
5286 (sse2_loadlpd): Merge with *avx_loadlpd.
5287 (sse2_movsd): Merge with *avx_movsd.
5288 (*vec_concatv2df): Merge with *vec_concatv2df.
5290 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5293 * combine.c (combine_instructions): Add last_combined_insn,
5294 update it if insn is after it, pass it to all try_combine calls.
5295 (try_combine): Add last_combined_insn parameter, pass it instead of
5296 i3 to propagate_for_debug.
5298 2011-04-07 Nick Clifton <nickc@redhat.com>
5300 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5301 to handle MDR <-> data register transfers.
5302 (movhi_internal): Likewise.
5304 2011-04-07 Alan Modra <amodra@gmail.com>
5306 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5307 previous stack info.
5309 2011-04-07 Tom de Vries <tom@codesourcery.com>
5312 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5313 flow_find_cross_jump. Swap variables to implement backward replacement.
5314 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5316 2011-04-07 Tom de Vries <tom@codesourcery.com>
5319 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5320 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5322 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5323 src1 or src2. Redirect edges to the last basic block. Update
5324 frequency and count on multiple basic blocks in case of fallthru.
5326 2011-04-07 Tom de Vries <tom@codesourcery.com>
5329 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5331 (old_insns_match_p): Change return type. Replace return false/true
5332 with return dir_none/dir_both. Use can_replace_by.
5333 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5334 direction from dir_p. Register replacement direction in dir, last_dir
5335 and afterlast_dir. Handle new return type of old_insns_match_p using
5336 merge_dir. Return replacement direction in dir_p.
5337 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5338 return type of old_insns_match_p.
5339 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5340 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5341 flow_find_cross_jump.
5342 * basic-block.h (enum replace_direction): New type.
5343 (flow_find_cross_jump): Add parameter to declaration.
5345 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5347 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5348 (AVXMODEDCVTPS2DQ): Ditto.
5349 (VEC_FLOAT_MODE): Ditto.
5350 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5351 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5352 (<any_logic:code><mode>3): Use VF mode iterator.
5353 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5354 Use VF mode iterator.
5355 (copysign<mode>3): Use VF mode iterator.
5356 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5357 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5358 (*<any_logic:code><MODEF:mode>3): Merge with
5359 *avx_<any_logic:code><MODEF:mode>3.
5360 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5361 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5362 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5363 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5364 (sse2_cvtdq2ps): Use %v modifier.
5365 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5366 (avx_cvtps2dq<avxmodesuffix>): Remove.
5367 (sse2_cvtps2dq): Use %v modifier.
5368 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5369 (avx_cvttps2dq<avxmodesuffix>): Remove.
5370 (sse2_cvttps2dq): Use %v modifier.
5371 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5372 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5373 (sse2_cvtsd2siq): Fix insn template.
5374 (sse2_cvtsd2siq_2): Ditto.
5375 (sse2_cvttsd2siq): Ditto.
5376 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5377 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5379 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5381 * gcov-io.c: Use GCC Runtime Library Exception.
5383 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5386 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5387 as base_reg whatever register reg has been eliminated to, instead
5388 of hardcoding STACK_POINTER_REGNUM.
5390 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5392 * doc/tm.texi.in: Document C target hooks as separate from general
5394 * doc/tm.texi: Regenerate.
5395 * genhooks.c (struct hook_desc): Add docname field.
5396 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5398 (hook_array): Include c-target.def.
5399 (emit_documentation): Use docname field in output.
5400 (emit_init_macros): Take docname argument. Only emit definitions
5401 for hooks matching docname.
5402 (main): Expect additional arguments in all cases. Pass argument
5403 to emit_init_macros.
5404 * target.def: Move initial macro definitions and comments to
5405 target-hooks-macros.h.
5406 (gcc_targetcm): Move to c-family/c-target.def.
5407 * target.h (targetcm): Move declaration to c-family/c-target.h.
5408 * targhooks.c (default_handle_c_option): Move to
5410 * targhooks.h (default_handle_c_option): Move declaration to
5411 c-family/c-common.h.
5412 * target-hooks-macros.h: New file.
5413 * config.gcc (target_has_targetcm): Define and use to add to
5414 c_target_objs and cxx_target_objs.
5415 * config/default-c.c: New file.
5416 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5417 of target.h and target-def.h.
5418 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5419 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5420 darwin_check_cfstring_format_arg): Make static.
5421 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5422 TARGET_STRING_OBJECT_REF_TYPE_P,
5423 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5424 * config/darwin-protos.h (darwin_objc_construct_string,
5425 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5427 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5428 TARGET_STRING_OBJECT_REF_TYPE_P,
5429 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5430 * config/t-darwin (darwin-c.o): Update dependencies.
5431 * system.h (TARGET_HAS_TARGETCM): Poison.
5432 * Makefile.in (TARGET_H): Update.
5433 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5434 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5435 (default-c.o): New target.
5436 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5437 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5438 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5440 (build/genhooks.o): Update dependencies.
5442 2011-04-06 Richard Guenther <rguenther@suse.de>
5444 * ipa-inline.c (enum inlining_mode): Remove.
5445 (cgraph_flatten): Use some other token.
5446 (cgraph_edge_early_inlinable_p): New function, split out from ...
5447 (cgraph_perform_always_inlining): New function, split out from ...
5448 (cgraph_decide_inlining_incrementally): ... here.
5449 (cgraph_mark_inline_edge): Adjust.
5450 (cgraph_early_inlining): Re-structure.
5451 (pass_early_inline): Require SSA form.
5453 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5454 Julian Brown <julian@codesourcery.com>
5455 Mark Shinwell <shinwell@codesourcery.com>
5457 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5458 LO_REGS only for Thumb-1.
5459 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5460 be used in short instructions when optimising for size on Thumb-2.
5462 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5464 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5465 associated with user returns to be preserved.
5467 2011-04-06 Tristan Gingold <gingold@adacore.com>
5469 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5470 symbol_queue_size, DBXOUT_DECR_NESTING,
5471 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5472 if XCOFF_DEBUGGING_INFO.
5474 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5476 * config/i386/i386.md (attribute isa): New.
5477 (attribute enabled): New.
5478 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5479 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5480 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5481 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5482 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5483 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5484 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5485 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5487 * config/i386/sse.md (VF): New mode iterator.
5491 (SSEMODEF4): Remove.
5492 (attribute sse): Handle V8SF and V4DF modes.
5493 (<absneg:code><mode>2): Use VF mode iterator.
5494 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5496 (<plusminus_insn><mode>3): Use VF mode iterator.
5497 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5498 Use VF mode iterator.
5499 (<sse>_vm<plusminus_insn><mode>3): Merge with
5500 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5501 (mul<mode>3): Use VF mode iterator.
5502 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5503 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5505 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5506 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5507 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5508 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5510 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5511 Use VF1 mode iterator.
5512 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5513 (sqrt<VF2:mode>2): New expander.
5514 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5515 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5516 and sqrtv2df2. Use VF mode iterator.
5517 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5519 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5520 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5521 Use VF1 mode iterator.
5522 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5523 (<smaxmin:code><mode>3): Use VF mode iterator.
5524 (*<smaxmin:code><mode>3_finite): Merge with
5525 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5526 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5527 (<sse>_vm<smaxmin:code><mode>2): Merge with
5528 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5529 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5531 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5533 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5534 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5535 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5536 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5537 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5539 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5540 Use VF_128 mode iterator.
5541 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5543 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5544 VF_128 mode iterator.
5545 (vcond<mode>): Use VF mode iterator.
5546 * config/i386/predicates.md (sse_comparison_operator): Merge with
5547 avx_comparison_float_operator. Do not declare as special_predicate.
5548 * config/i386/i386.c (struct builtin_description): Update for renamed
5550 (ix86_expand_args_builtin): Ditto.
5551 (ix86_expand_sse_compare_mask): Ditto.
5553 2011-04-06 Richard Guenther <rguenther@suse.de>
5555 * tree-inline.c (estimate_num_insns): For calls simply account
5556 for all passed arguments and a used return value.
5558 2011-04-06 Richard Guenther <rguenther@suse.de>
5560 PR tree-optimization/47663
5561 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5562 call_stmt_time fields.
5563 (cgraph_edge_inlinable_p): Declare.
5564 (cgraph_edge_recursive_p): New inline function.
5565 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5566 (cgraph_clone_edge): Copy it.
5567 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5568 Account for call stmt time.
5569 (cgraph_estimate_time_after_inlining): Take edge argument.
5570 (cgraph_estimate_edge_growth): Account call stmt size.
5571 (cgraph_estimate_size_after_inlining): Take edge argument.
5572 (cgraph_mark_inline_edge): Adjust.
5573 (cgraph_check_inline_limits): Likewise.
5574 (cgraph_recursive_inlining_p): Remove.
5575 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5576 (cgraph_decide_recursive_inlining): Take edge argument and
5578 (cgraph_decide_inlining_of_small_functions): Do not avoid
5579 diags for recursive inlining here.
5580 (cgraph_flatten): Adjust.
5581 (cgraph_decide_inlining_incrementally): Likewise.
5582 (estimate_function_body_sizes): Remove call cost handling.
5583 (compute_inline_parameters): Initialize caller edge call costs.
5584 (cgraph_estimate_edge_growth): New function.
5585 (cgraph_estimate_growth): Use it.
5586 (cgraph_edge_badness): Likewise.
5587 (cgraph_check_inline_limits): Take an edge argument.
5588 (cgraph_decide_inlining_of_small_functions): Adjust.
5589 (cgraph_decide_inlining): Likewise.
5590 * tree-inline.c (estimate_num_insns): Only account for call
5591 return value if it is used.
5592 (expand_call_inline): Avoid diagnostics on recursive inline
5594 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5595 (input_edge): Input edge call costs.
5597 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5599 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5601 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5603 * doc/invoke.texi (Spec Files): Fix typo.
5605 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5607 * profile.c (branch_prob): Move declaration of local variable. Remove
5608 obsolete ??? comment. Expand the location explicitly instead of using
5609 the LOCATION_FILE and LOCATION_LINE macros.
5611 2011-04-06 Wei Guozhi <carrot@google.com>
5614 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5615 (arm_cond_branch): Likewise.
5616 (arm_cond_branch_reversed): Likewise.
5617 (arm_jump): Likewise.
5618 (push_multi): Likewise.
5619 * config/arm/constraints.md (Py): New constraint.
5621 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5624 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5626 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5627 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5628 #ifdef DBX_DEBUGGING_INFO.
5630 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5633 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5634 if old and new states differ.
5636 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5638 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5639 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5640 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5641 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5642 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5644 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5645 ColdFire options to -mcpu= options.
5647 2011-04-05 Jeff Law <law@redhat.com>
5649 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5650 check if BB is a successor of LOOP->header and return
5651 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5653 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5655 * cprop.c (struct reg_use): Remove.
5656 (reg_use_table): Make an array of RTX.
5657 (find_used_regs, constprop_register, local_cprop_pass,
5658 bypass_block): Simplify users of reg_use_table.
5659 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5660 on one of the uses found by find_used_regs.
5662 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5665 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5668 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5670 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5672 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5674 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5677 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5679 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5681 * combine.c: Include obstack.h.
5682 (struct insn_link): Define.
5683 (uid_log_links): Adjust type.
5684 (FOR_EACH_LOG_LINK): New macro.
5685 (insn_link_obstack): Declare.
5686 (alloc_insn_link): Define.
5687 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5688 type of link variables.
5689 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5690 (try_combine, record_promoted_values, distribute_notes): Likewise.
5691 (distribute_links): Likewise. Tweak prototype.
5692 (clear_log_links): Delete.
5693 (adjust_for_new_dest): Call alloc_insn_link.
5694 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5696 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5698 * gcse.c (modify_mem_list): Convert to an array of VECs.
5699 (canon_modify_mem_list, compute_transp): Tweak formatting.
5700 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5701 (load_killed_in_block_p): Likewise.
5702 (record_last_mem_set_info): Likewise.
5703 (clear_modify_mem_tables): Likewise.
5705 2011-04-05 Tom de Vries <tom@codesourcery.com>
5708 * function.c (emit_use_return_register_into_block): Only define if
5711 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5713 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5715 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5717 * config/rx/rx-opts.h: New.
5718 * config/rx/rx.c (rx_cpu_type): Remove.
5719 (rx_handle_option): Don't assert that global structures are in
5720 use. Access variables via opts pointer. Defer most handling of
5721 OPT_mint_register_. Use error_at.
5722 (rx_option_override): Handle deferred OPT_mint_register_ here.
5723 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5724 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5725 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5726 (rx_cpu_types): New Enum and EnumValue entries.
5727 (mint-register=): Use Defer and use Var accordingly.
5729 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5731 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5732 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5733 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5735 (debug_free_queue, debug_nesting, symbol_queue_index):
5737 * dbxout.c: ...to here. Make static.
5739 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5741 * gcse.c (modify_pair): Define. Define a VEC of it.
5742 (canon_modify_mem_list): Convert to an array of VECs.
5743 (free_insn_expr_list_list): Delete.
5744 (clear_modify_mem_tables): Call VEC_free instead.
5745 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5746 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5747 (canon_list_insert, compute_transp): Likewise.
5749 2011-04-05 Tom de Vries <tom@codesourcery.com>
5752 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5755 2011-04-05 Tom de Vries <tom@codesourcery.com>
5758 * function.c (emit_use_return_register_into_block): New function.
5759 (thread_prologue_and_epilogue_insns): Use
5760 emit_use_return_register_into_block.
5762 2011-04-05 Tom de Vries <tom@codesourcery.com>
5765 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5768 2011-04-05 Tom de Vries <tom@codesourcery.com>
5770 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5772 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5774 * config/arm/arm.md (define_constants for unspec): Replace with
5776 (define_constants for unspecv): Replace with define_c_enum.
5777 * config/arm/neon.md (define_constants for unspec): Replace with
5780 2011-04-04 Richard Henderson <rth@redhat.com>
5783 * dwarf2out.c (output_line_info): Always emit line info from
5784 at least one section.
5785 (dwarf2out_init): Create text_section_line_info here ...
5786 (set_cur_line_info_table): ... not here.
5788 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5791 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5794 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5796 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5798 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5799 (expr_equiv_p): Remove.
5800 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5801 (hash_scan_set): Update call to insert_set_in_table.
5802 (dump_hash_table): Dump <dest, src> pair.
5803 (lookup_set): Simplify. Lookup <dest, src> pair.
5804 (compute_transp): Remove, fold heavily simplified code into...
5805 (compute_local_properties): ...here. Expect COMP and TRANSP
5807 (find_avail_set): Take set directly from struct expr.
5808 (find_bypass-set): Likewise.
5809 (bypass_block): Likewise.
5810 (cprop_insn): Likewise. Remove redundant INSN_P test.
5812 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5813 checks on form of COND from find_implicit_sets to here.
5814 (find_implicit_sets): Cleanup control flow. Split critical edges
5815 if it exposes implicit sets. Allocate/resize implicit_sets as
5817 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5818 changed something. Run df_analyze after find_implicit_sets if any
5819 edges were split. Do not allocate implicit_sets here.
5821 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5822 (gcse_obstack): Renamed to cprop_obstack.
5823 (GNEW, GNEWVEC, GNEWVAR): Remove.
5825 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5826 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5827 (gcse_alloc): Likewise, and rename to cprop_alloc.
5828 (alloc_gcse_men, free_gcse_mem): Remove.
5829 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5830 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5831 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5833 * cprop.c (oprs_not_set_p): Remove.
5834 (mark_set, mark_clobber): Remove.
5835 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5836 (reg_not_set_p): New function.
5837 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5838 (cprop_insn): Likewise.
5839 (cprop_jump): Use FOR_EACH_EDGE.
5841 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5844 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5845 (rank_for_schedule): Use scheduled_insns vector instead of
5846 last_scheduled_insn.
5847 (ok_for_early_queue_removal): Likewise.
5848 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5850 (choose_ready): Likewise.
5851 (commit_schedule): Use VEC_iterate.
5852 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5853 a dbg_cnt, use it and ensure the first insn is in the ready list.
5854 (haifa_sched_init): Allocate scheduled_insns.
5855 (sched_extend_ready_list): Don't allocate it; reserve space.
5856 (haifa_sched_finish): Free it.
5858 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5860 * optc-gen.awk: Always remove type from Variable entry before
5861 recording in var_seen.
5863 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5865 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5866 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5867 call to tidy_fallthru_edges.
5869 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5871 * doc/options.texi (ToLower): Document.
5872 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5873 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5874 * opts.h (cl_option): Add cl_tolower field.
5875 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5876 arguments with lowercase strings.
5877 * config/rx/rx.opt (mcpu=): Add ToLower.
5878 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5881 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5883 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5885 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5887 * config/vax/vax.c: Include reload.h.
5889 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5891 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5892 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5893 (sparc_preferred_reload_class): New function.
5895 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5898 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5899 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5901 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5903 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5904 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5906 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5908 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5909 (ASM_OUTPUT_ALIGNED_BSS): Define.
5911 2011-04-03 Michael Matz <matz@suse.de>
5913 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5914 and next_slot members.
5915 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5916 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5917 (lto_streamer_cache_append): Declare.
5918 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5919 unsigned index, remove offset parameter, ensure that we append
5920 or update existing entries.
5921 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5922 parameter, update next_slot for append.
5923 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5925 (lto_streamer_cache_insert_at): Likewise.
5926 (lto_streamer_cache_append): New function.
5927 (lto_streamer_cache_lookup): Use unsigned index.
5928 (lto_streamer_cache_get): Likewise.
5929 (lto_record_common_node): Don't test tree_node_can_be_shared.
5930 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5931 (lto_streamer_cache_delete): Don't free offsets member.
5932 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5933 (lto_output_string_with_length): Use lto_output_data_stream.
5934 (lto_output_tree_header): Remove ix parameter, don't write it.
5935 (lto_output_builtin_tree): Likewise.
5936 (lto_write_tree): Adjust callers to above, don't track and write
5937 offset, write unsigned index.
5938 (output_unreferenced_globals): Don't emit all global vars.
5939 (write_global_references): Use unsigned indices.
5940 (lto_output_decl_state_refs): Likewise.
5941 (write_symbol): Likewise.
5942 * lto-streamer-in.c (lto_input_chain): Move earlier.
5943 (input_function): Use unsigned index.
5944 (input_alias_pairs): Don't read and then ignore all global vars.
5945 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5946 don't pass it back, use lto_streamer_cache_append.
5947 (lto_register_var_decl_in_symtab): Use unsigned index.
5948 (lto_register_function_decl_in_symtab): Likewise.
5949 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5951 (lto_get_builtin_tree): Don't read index, use
5952 lto_streamer_cache_append.
5953 (lto_read_tree): Adjust call to lto_materialize_tree.
5955 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5956 don't use function calls in arguments to MIN.
5958 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5961 * gimple.c (gimple_type_leader_entry): Mark deletable.
5963 2011-04-03 Alan Modra <amodra@gmail.com>
5965 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5967 2011-04-03 Michael Matz <matz@suse.de>
5969 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5971 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5973 2011-04-03 Michael Matz <matz@suse.de>
5975 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5976 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5977 without function context.
5978 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5979 current_function_decl and cfun.
5981 2011-04-03 Michael Matz <matz@suse.de>
5983 * tree.c (decl_init_priority_insert): Don't create entry for
5985 (decl_fini_priority_insert): Ditto.
5986 (fields_compatible_p, find_compatible_field): Remove.
5987 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5988 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5990 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5992 * combine.c (try_combine): Remove useless local variable.
5994 2011-04-03 Richard Guenther <rguenther@suse.de>
5995 Ira Rosen <ira.rosen@linaro.org>
5997 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5998 non-variable offsets and compare the remaining bases of the two
5999 accesses instead of looking for exact same data-ref.
6001 2011-04-02 Kai Tietz <ktietz@redhat.com>
6004 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6006 * i386.c (ix86_is_msabi_thiscall): New helper function.
6007 (ix86_is_type_thiscall): New helper function.
6008 (ix86_comp_type_attributes): Handle thiscall for method-functions
6010 (init_cumulative_args): Likewise.
6011 (find_drap_reg): Likewise.
6012 (ix86_static_chain): Likewise.
6013 (x86_this_parameter): Likewise.
6014 (x86_output_mi_thunk): Likewise.
6016 2011-04-01 Olivier Hainque <hainque@adacore.com>
6017 Nicolas Setton <setton@adacore.com>
6018 Eric Botcazou <ebotcazou@adacore.com>
6020 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6021 (add_gnat_descriptive_type_attribute): New function.
6022 (gen_array_type_die): Call it.
6023 (gen_enumeration_type_die): Likewise.
6024 (gen_struct_or_union_type_die): Likewise.
6025 (modified_type_die): Likewise.
6026 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6027 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6028 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6030 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6033 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6034 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6037 2011-03-17 Richard Guenther <rguenther@suse.de>
6040 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6041 origin for decls in other ltrans units.
6042 (input_varpool_node): Likewise.
6044 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6047 * expr.c (expand_assignment): Handle all possibilities
6048 if TO_RTX is CONCAT.
6049 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6050 (store_split_bit_field): If SUBREG_REG (op0) or
6051 op0 itself has smaller mode than word, return it
6052 for offset 0 and const0_rtx for out-of-bounds stores.
6053 If word is const0_rtx, skip it.
6055 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6057 * config/h8300/h8300.c (print_operand_address): Rename to...
6058 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6059 Call h8300_print_operand and h8300_print_operand_address instead of
6060 print_operand and print_operand_address. Declare.
6061 (print_operand): Renake to...
6062 (h8300_print_operand): ...this. Make static. Adjust comments.
6063 Call h8300_print_operand instead of print_operand. Declare.
6064 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6065 (h8300_register_move_cost): Likewise.
6066 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6067 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6068 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6069 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6070 * config/h8300/h8300-protos.h (print_operand): Delete.
6071 (print_operand_address): Delete.
6073 2011-04-01 Richard Henderson <rth@redhat.com>
6076 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6077 in strict mode before dwarf4. Re-order tests to early out
6078 before switching sections.
6080 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6082 * config/h8300/constraints.md: New file.
6083 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6084 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6085 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6086 * config/h8300/predicates.md (bit_operand): Likewise.
6087 (incdec_operand): Use satisfies_constraint_M and
6088 satisfies_constraint_O. Don't use C code block.
6089 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6090 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6091 (compute_mov_length): Use satisfies_constraint_G.
6092 (fix_bit_operand): Use satisfies_constraint_U.
6093 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6094 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6095 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6096 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6097 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6098 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6099 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6100 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6101 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6102 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6103 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6104 (EXTRA_MEMORY_CONSTRAINT): Delete.
6106 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6107 Michael Meissner <meissner@linux.vnet.ibm.com>
6110 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6111 operands, as per the specifications.
6113 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6114 (vec_extract_evenv4sf): Ditto.
6115 (vec_extract_evenv8hi): Ditto.
6116 (vec_extract_evenv16qi): Ditto.
6117 (vec_extract_oddv4si): Ditto.
6119 2011-03-31 Mark Wielaard <mjw@redhat.com>
6121 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6122 high_pc attribute if the CU has no associated code. Only output
6123 DW_AT_entry_pc for CU if not generating strict dwarf and
6126 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6128 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6129 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6131 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6132 * final.c (final_start_function): Call the new function rather
6133 than using a NULL argument for dwarf2out_frame_debug.
6135 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6136 that contains the prologue.
6138 * haifa-sched.c (queue_insn): New arg REASON. All callers
6139 changed. Print it in debugging output.
6141 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6143 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6144 Split most of the code into...
6145 (begin_move_insn): ... here. New function.
6146 (ebb_sched_info): Add a pointer to it.
6147 * haifa-sched.c (scheduled_insns): New static variable.
6148 (sched_extend_ready_list): Allocate it.
6149 (schedule_block): Use it to record the order of scheduled insns.
6150 Perform RTL changes to move insns only after all scheduling
6151 decisions have been made.
6152 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6153 begin_move_insn field.
6154 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6155 * sched-int.h (struct haifa_sched_info): Remove second argument
6156 from begin_schedule_ready hook. Add new member begin_move_insn.
6157 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6158 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6160 * haifa-sched.c (prune_ready_list): New function, broken out of
6162 (schedule_block): Use it.
6164 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6166 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6168 2011-04-01 Kai Tietz <ktietz@redhat.com>
6170 * config.gcc (*-*-mingw*): Allow as option the
6171 posix threading model.
6172 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6173 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6175 (CPP_SPEC): Add pthread/no-pthread handling.
6176 (LIB_SPEC): Likewise.
6177 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6178 (LIB_SPEC): Likewise.
6179 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6180 flag to pass -pthread option for shared libgcc build.
6181 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6182 for shared libgcc build.
6183 * config/i386/t-mingw-pthread: New file.
6184 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6185 New define to enable use of library pthread by default.
6186 * config/i386/mingw.opt (pthread): New driver option.
6187 (no-pthread): New driver option.
6188 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6189 * config/i386/mingw-w64.opt: Likewise.
6191 2011-04-01 Gary Funck <gary@intrepid.com>
6193 * c-decl.c (grokdeclarator): Fix formatting.
6195 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6197 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6198 instead of n_operands.
6199 (set_storage_via_setmem): Likewise.
6200 * optabs.c (maybe_gen_insn): Likewise.
6201 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6202 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6203 (mips_expand_builtin_direct): Likewise.
6204 * config/spu/spu.c (expand_builtin_args): Likewise.
6206 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6208 * recog.h (insn_data_d): Add n_generator_args.
6209 * genoutput.c (data): Likewise.
6210 (output_insn_data): Print it.
6211 (max_opno, num_dups): Delete.
6212 (scan_operands): Just fill in "d->operand[...]".
6213 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6215 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6217 * gensupport.h (pattern_stats): New structure.
6218 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6219 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6220 (max_operand_1, max_operand_vec): Delete.
6221 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6223 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6225 * emit-rtl.c (emit_pattern_after_setloc): New function.
6226 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6227 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6228 (emit_pattern_after): New function.
6229 (emit_insn_after, emit_jump_insn_after): Call it.
6230 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6231 (emit_pattern_before_setloc): New function.
6232 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6233 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6235 (emit_pattern_before): New function.
6236 (emit_insn_before, emit_jump_insn_before): Call it.
6237 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6239 2011-03-31 Richard Henderson <rth@redhat.com>
6241 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6242 (dw_separate_line_info_entry): Remove.
6243 (enum dw_line_info_opcode): New.
6244 (dw_line_info_entry): Use it.
6245 (dw_line_info_table, dw_line_info_table_p): New.
6246 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6247 (line_info_table, line_info_label_num): Remove.
6248 (line_info_table_in_use): Remove.
6249 (separate_line_info_table): Remove.
6250 (separate_line_info_table_allocated): Remove.
6251 (separate_line_info_table_in_use): Remove.
6252 (LINE_INFO_TABLE_INCREMENT): Remove.
6253 (line_info_label_num): New.
6254 (cur_line_info_table): New.
6255 (text_section_line_info, cold_text_section_line_info): New.
6256 (separate_line_info): New.
6257 (SEPARATE_LINE_CODE_LABEL): Remove.
6258 (print_dwarf_line_table): Remove.
6259 (debug_dwarf): Don't dump it.
6260 (output_one_line_info_table): New.
6261 (output_line_info): Use it.
6262 (new_line_info_table): New.
6263 (set_cur_line_info_table): New.
6264 (dwarf2out_switch_text_section): Use it.
6265 (dwarf2out_begin_function): Likewise.
6266 (push_dw_line_info_entry): New.
6267 (dwarf2out_source_line): Rewrite for new line info tables.
6268 (dwarf2out_init): Remove dead initailizations.
6270 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6272 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6274 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6275 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6276 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6277 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6278 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6279 * opt-functions.awk (flag_init, switch_bit_fields): New.
6280 (switch_flags): Don't handle flags moved to bit-fields. Don't
6281 generate CL_MISSING_OK or CL_SAVE.
6282 * optc-gen.awk: Update to generate bit-field output as well as
6284 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6285 bit-field instead of CL_REJECT_DRIVER flag.
6286 * opts-common.c (generate_canonical_option,
6287 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6288 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6289 instead of CL_REJECT_NEGATIVE flag.
6290 * toplev.c (print_switch_values): Use cl_report bit-field instead
6293 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6295 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6296 a zero minimum index only if it is redundant.
6298 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6300 PR rtl-optimization/48381
6301 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6302 instead of ira_class_hard_reg_index for calculating conflicting
6305 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6307 * cprop.c: Clean up hash table building.
6308 (reg_avail_info): Remove.
6309 (oprs_available_p): Remove.
6310 (record_last_reg_set_info): Remove.
6311 (record_last_set_info): Remove.
6312 (reg_available_p): New function.
6313 (gcse_constant_p): Do not treat unfolded conditions as constants.
6314 (make_set_regs_unavailable): New function.
6315 (hash_scan_set): Simplify with new reg_available_p.
6316 (compute_hash_table_work): Traverse insns stream only once.
6317 Do not compute reg_avail_info. Traverse insns in reverse order.
6318 Record implicit sets after recording explicit sets from the block.
6320 2011-03-31 Michael Matz <matz@suse.de>
6322 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6324 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6326 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6327 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6328 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6329 (h8300_mode_dependent_address_p): New function.
6330 (h8300_get_index): Make static.
6332 2011-03-31 Jeff Law <law@redhat.com>
6334 * reload1.c (elimination_effects): Fix typo in recent change.
6336 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6337 typo potentially leading to null pointer dereference.
6339 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6340 (setup_save_areas): Corresponding changes to avoid useless
6343 * jump.c (reversed_comparison_code_parts): Avoid successive return
6344 statements when REVERSE_CONDITION is defined.
6346 * expr.c (expand_assignment): Avoid useless assignments.
6347 (expand_expr_real_1): Likewise.
6348 (expand_expr_real_2): Avoid useless statements.
6350 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6352 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6354 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6357 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6359 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6362 * doc/tm.texi.in (TARGET_VERSION): Remove.
6363 * doc/tm.texi: Regenerate.
6364 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6365 * collect2.c (main): Don't use TARGET_VERSION.
6366 * mips-tdump.c (main): Don't use TARGET_VERSION.
6367 * mips-tfile.c (main): Don't use TARGET_VERSION.
6368 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6369 * config/rs6000/vxworksae.h: Remove.
6370 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6371 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6372 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6373 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6374 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6375 * config/arm/arm.h (TARGET_VERSION): Remove.
6376 * config/arm/coff.h (TARGET_VERSION): Remove.
6377 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6378 * config/arm/elf.h (TARGET_VERSION): Remove.
6379 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6380 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6381 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6382 * config/arm/pe.h (TARGET_VERSION): Remove.
6383 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6384 * config/arm/semi.h (TARGET_VERSION): Remove.
6385 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6386 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6387 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6388 * config/avr/avr.h (TARGET_VERSION): Remove.
6389 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6390 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6391 * config/frv/frv.h (TARGET_VERSION): Remove.
6392 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6393 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6394 * config/i386/darwin.h (TARGET_VERSION): Remove.
6395 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6396 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6397 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6398 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6399 * config/i386/gnu.h (TARGET_VERSION): Remove.
6400 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6401 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6402 * config/i386/linux.h (TARGET_VERSION): Remove.
6403 * config/i386/linux64.h (TARGET_VERSION): Remove.
6404 * config/i386/lynx.h (TARGET_VERSION): Remove.
6405 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6406 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6407 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6408 * config/i386/netware.h (TARGET_VERSION): Remove.
6409 * config/i386/nto.h (TARGET_VERSION): Remove.
6410 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6411 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6412 * config/ia64/elf.h (TARGET_VERSION): Remove.
6413 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6414 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6415 * config/ia64/linux.h (TARGET_VERSION): Remove.
6416 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6417 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6418 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6419 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6420 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6421 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6422 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6423 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6424 * config/m68k/linux.h (TARGET_VERSION): Remove.
6425 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6426 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6427 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6428 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6429 * config/mep/mep.h (TARGET_VERSION): Remove.
6430 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6431 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6432 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6433 * config/mips/linux.h (TARGET_VERSION): Remove.
6434 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6435 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6436 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6437 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6438 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6439 * config/pa/pa.h (TARGET_VERSION): Remove.
6440 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6441 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6442 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6443 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6444 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6445 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6446 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6447 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6448 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6449 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6450 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6451 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6452 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6453 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6454 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6455 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6456 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6457 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6458 * config/s390/linux.h (TARGET_VERSION): Remove.
6459 * config/s390/s390.h (TARGET_VERSION): Remove.
6460 * config/s390/tpf.h (TARGET_VERSION): Remove.
6461 * config/score/score.h (TARGET_VERSION): Remove.
6462 * config/sh/linux.h (TARGET_VERSION): Remove.
6463 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6464 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6465 * config/sh/sh.h (TARGET_VERSION): Remove.
6466 * config/sh/sh64.h (TARGET_VERSION): Remove.
6467 * config/sh/superh.h (TARGET_VERSION): Remove.
6468 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6469 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6470 * config/sparc/linux.h (TARGET_VERSION): Remove.
6471 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6472 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6473 TARGET_NAME32, TARGET_NAME): Remove.
6474 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6475 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6476 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6477 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6478 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6479 * config/spu/spu.h (TARGET_VERSION): Remove.
6480 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6481 * config/v850/v850.h (TARGET_VERSION): Remove.
6482 * config/vax/linux.h (TARGET_VERSION): Remove.
6483 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6484 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6485 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6487 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6490 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6491 frame-related from frame-unrelated adjustments to the stack pointer.
6493 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6495 * common.opt (fdebug-types-section): Move earlier.
6496 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6498 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6500 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6503 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6505 * tree.h (CASE_CHAIN): Define.
6506 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6507 (gimple_redirect_edge_and_branch): Likewise.
6509 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6512 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6515 2011-03-30 Jeff Law <law@redhat.com>
6517 * PR bootstrap/48371
6518 * reload1.c (reload): Fix botch in last change.
6520 * reload.h (struct reload): Fix typo introduced in last change.
6522 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6524 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6525 Undocumented. Remove help text.
6526 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6529 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6531 * doc/options.texi (NegativeAlias): Document.
6532 (Alias): Mention NegativeAlias.
6533 * opt-functions.awk: Handle NegativeAlias.
6534 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6535 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6536 * opts.h (CL_NEGATIVE_ALIAS): Define.
6537 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6538 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6540 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6542 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6543 mno-spe and mno-isel instead of mspe=no and -misel=no.
6545 2011-03-29 Mark Wielaard <mjw@redhat.com>
6547 * common.opt (fdebug-types-section): New flag.
6548 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6549 * dwarf2out.c (use_debug_types): New define.
6550 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6551 (print_die): Guard output of type unit signatures using
6553 (build_abbrev_table): Replace assert of dwarf_version >= 4
6554 with assert on use_debug_types.
6555 (size_of_die): Likewise.
6556 (unmark_dies): Likewise.
6557 (value_format): Decide AT_ref_external form on use_debug_types.
6558 (output_die): Replace dwarf_version version check guard with
6559 use_debug_types where appropriate.
6560 (modified_type_die): Likewise.
6561 (gen_reference_type_die): Likewise.
6562 (dwarf2out_start_source_file): Likewise.
6563 (dwarf2out_end_source_file): Likewise.
6564 (prune_unused_types_walk_attribs): Likewise.
6565 (dwarf2out_finish): Likewise.
6567 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6569 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6571 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6573 PR rtl-optimization/48332
6574 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6575 mode of input operand N and modeN to its actual mode.
6577 2011-03-30 Jeff Law <law@redhat.com>
6579 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6580 define accessor macro.
6581 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6582 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6583 (reg_equiv_init): Likewise.
6584 (reg_equivs_size): New variable.
6585 (reg_equiv_init_size): Remove.
6586 (allocate_initial_values): Move prototype to here from....
6587 * integrate.h (allocate_initial_values): Remove prototype.
6588 * integrate.c: Include reload.h.
6589 (allocate_initial_values): Corresponding changes.
6590 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6591 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6592 (update_equiv_regs): Corresponding changes.
6593 (ira): Corresponding changes.
6594 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6595 (push_secondary_reload): Corresponding changes.
6596 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6597 (make_memloc, find_reloads_address): Corresponding changes.
6598 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6599 (find_reloads_address_1): Corresponding changes.
6600 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6601 (refers_to_regno_for_reload_p): Corresponding changes.
6602 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6603 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6604 * reload1.c: Include ggc.h.
6605 (grow_reg_equivs): New function.
6606 (replace_pseudos_in, reload): Corresponding changes.
6607 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6608 (eliminate_regs_1, elimination_effects): Corresponding changes.
6609 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6610 (delete_output_reload): Likewise.
6611 * caller-save.c (mark_referenced_regs): Corresponding changes.
6612 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6613 * frv/predicates.md (frv_load_operand): Corresponding changes.
6614 * microblaze/microblaze.c (double_memory_operand): Corresponding
6616 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6617 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6618 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6619 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6620 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6622 * pa/pa.c (emit_move_sequence): Corresponding changes.
6623 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6625 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6628 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6629 structure modes. Don't check neon_vector_mem_operand for
6630 vector or structure modes.
6632 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6633 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6636 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6637 operand 1 and reshuffle the operands to match.
6638 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6640 2011-03-30 Christian Schüler <cschueler@gmx.de>
6643 * config/c.opt (F): Added 'Driver' to -F option.
6646 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6648 * config/darwin.opt: Added '-arch' option.
6650 2011-03-30 Nick Clifton <nickc@redhat.com>
6652 * config/rx/rx.md: Add peepholes and patterns to combine
6653 extending loads and simple arithmetic instructions.
6654 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6655 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6656 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6657 modes to use pre-decrement and post-increment addressing.
6658 (rx_is_restricted_memory_address): Add range checking of REG+INT
6660 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6661 (rx_memory_move_cost): Adjust cost of stores.
6662 (rx_adjust_insn_length): New function.
6664 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6667 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6668 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6669 matching arg00/arg01 types.
6671 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6673 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6674 last_location to UNKNOWN_LOCATION.
6676 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6679 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6682 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6683 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6686 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6688 (sparc_cpu): Likewise.
6689 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6692 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6696 PR rtl-optimization/48345
6697 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6698 hard regs for given mode from profitable regs when doing secondary
6701 2011-03-29 Jeff Law <law@redhat.com>
6704 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6705 do_not_duplicate field.
6706 (lookup_redirection_data): Corresponding changes.
6707 (create_duplicates): Always create a template block.
6708 (redirect_edges): Remove code which reused the original block
6709 when it was going to become unreachable code.
6710 (thread_block): Don't set do_not_duplicate field.
6712 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6714 * lto-opts.c (register_user_option_p, lto_register_user_option):
6715 Make type argument unsigned.
6716 * lto-streamer.h (lto_register_user_option): Make type argument
6718 * opth-gen.awk: Make CL_* macros unsigned.
6719 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6720 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6721 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6722 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6723 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6724 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6725 (find_opt): Make lang_mask argument unsigned.
6727 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6729 PR rtl-optimization/48331
6730 PR rtl-optimization/48334
6731 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6732 for any used algorithm.
6734 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6736 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6739 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6741 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6742 (alpha_option_override): Don't set alpha_sr_alias_set.
6743 (emit_frame_store_1): Use gen_frame_mem rather than calling
6745 (alpha_expand_epilogue): Ditto.
6747 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6749 PR tree-optimization/48290
6750 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6751 vectorization, check that relevant phis in the basic block after
6752 the inner loop are really inner loop's exit phis.
6754 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6757 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6758 (cached_dw_loc_list_def): New structure.
6759 (cached_dw_loc_list): New typedef.
6760 (cached_dw_loc_list_table): New variable.
6761 (cached_dw_loc_list_table_hash): New function.
6762 (cached_dw_loc_list_table_eq): Likewise.
6763 (add_location_or_const_value_attribute): Take a bool cache_p.
6764 Cache the list when the parameter is true.
6765 (gen_formal_parameter_die): Update caller.
6766 (gen_variable_die): Likewise.
6767 (dwarf2out_finish): Likewise.
6768 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6769 while generating debug info for the decl.
6770 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6771 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6772 (resolve_addr): Cache the result of resolving a chain of
6775 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6777 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6778 conflict object hard regset nodes have intersecting hard reg sets.
6780 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6781 after regstat_init_n_sets_and_refs.
6783 * ira.c: Add more comments at the top.
6784 (setup_stack_reg_pressure_class, setup_pressure_classes):
6785 Add comments how we compute the register pressure classes.
6786 (setup_allocno_and_important_classes): Add more comments.
6787 (setup_class_translate_array, reorder_important_classes)
6788 (setup_reg_class_relations): Add comments.
6790 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6793 * ira-color.c: Add 2011 to the Copyright line.
6794 (assign_hard_reg): Add more comments.
6795 (improve_allocation): Ditto.
6797 * ira-costs.c: Add 2011 to the Copyright line.
6798 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6800 (setup_regno_cost_classes_by_mode): Ditto.
6802 Initial patches from ira-improv branch:
6804 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6806 * ira-build.c (ira_create_object): Remove initialization of
6807 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6808 (ira_create_allocno): Remove initialization of
6809 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6810 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6811 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6812 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6813 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6814 Initialize ALLOCNO_ADD_DATA.
6815 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6816 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6818 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6819 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6821 * ira.c (ira_reallocate): Remove.
6822 (setup_pressure_classes): Call
6823 ira_init_register_move_cost_if_necessary. Use
6824 ira_register_move_cost instead of ira_get_register_move_cost.
6825 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6826 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6828 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6829 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6830 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6831 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6832 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6833 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6835 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6836 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6837 (struct allocno_color_data): New.
6838 (allocno_color_data_t): New typedef.
6839 (allocno_color_data): New definition.
6840 (ALLOCNO_COLOR_DATA): New macro.
6841 (struct object_color_data): New.
6842 (object_color_data_t): New typedef.
6843 (object_color_data): New definition.
6844 (OBJECT_COLOR_DATA): New macro.
6845 (update_copy_costs, calculate_allocno_spill_cost): Call
6846 ira_init_register_move_cost_if_necessary. Use
6847 ira_register_move_cost instead of ira_get_register_move_cost.
6848 (move_spill_restore, update_curr_costs): Ditto.
6849 (allocno_spill_priority): Make it inline.
6850 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6851 (struct coalesce_data, coalesce_data_t): New.
6852 (allocno_coalesce_data): New definition.
6853 (ALLOCNO_COALESCE_DATA): New macro.
6854 (merge_allocnos, coalesced_allocno_conflict_p): Use
6855 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6856 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6857 (coalesce_allocnos): Ditto.
6858 (setup_coalesced_allocno_costs_and_nums): Ditto.
6859 (collect_spilled_coalesced_allocnos): Ditto.
6860 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6861 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6862 (coalesce_spill_slots): Ditto.
6863 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6864 free allocno_coalesce_data.
6866 * ira-conflicts.c: Fix formatting.
6867 (process_regs_for_copy): Call
6868 ira_init_register_move_cost_if_necessary. Use
6869 ira_register_move_cost instead of ira_get_register_move_cost.
6870 (build_object_conflicts): Optimize.
6872 * ira-costs.c (record_reg_classes): Optimize. Call
6873 ira_init_register_move_cost_if_necessary. Use
6874 ira_register_move_cost, ira_may_move_in_cost, and
6875 ira_may_move_out_cost instead of ira_get_register_move_cost and
6876 ira_get_may_move_cost.
6877 (record_address_regs): Ditto.
6878 (scan_one_insn): Optimize.
6879 (find_costs_and_classes): Optimize.
6880 (process_bb_node_for_hard_reg_moves): Call
6881 ira_init_register_move_cost_if_necessary. Use
6882 ira_register_move_cost instead of ira_get_register_move_cost.
6884 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6885 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6886 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6887 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6889 (ira_initiate_emit_data, ira_finish_emit_data)
6890 (create_new_allocno): New functions.
6891 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6892 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6893 Use ira_register_move_cost instead of ira_get_register_move_cost.
6895 * ira-int.h: Fix some comments.
6896 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6897 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6898 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6899 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6901 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6902 bitfield after mode. Make hard_regno a short int. Make
6903 hard_regno short. Remove first_coalesced_allocno and
6904 next_coalesced_allocno. Move mem_optimized_dest_p,
6905 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6906 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6907 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6908 temp, colorable_p. Add new member add_data.
6909 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6910 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6911 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6912 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6913 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6914 (ALLOCNO_ADD_DATA): New macro.
6915 (ira_emit_data_t): New typedef.
6916 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6917 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6918 from struct ira_allocno.
6919 (ALLOCNO_EMIT_DATA): New macro.
6920 (ira_allocno_emit_data, allocno_emit_reg): New.
6921 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6922 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6923 (OBJECT_ADD_DATA): New macro.
6924 (ira_reallocate): Remove.
6925 (ira_initiate_emit_data, ira_finish_emit_data): New.
6926 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6927 (ira_init_register_move_cost_if_necessary): New.
6928 (ira_object_conflict_iter_next): Merge into
6929 ira_object_conflict_iter_cond.
6930 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6932 * ira-live.c (process_single_reg_class_operands): Call
6933 ira_init_register_move_cost_if_necessary. Use
6934 ira_register_move_cost instead of ira_get_register_move_cost.
6936 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6938 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6940 * ira-costs.c: Fix formatting.
6941 (cost_classes, cost_classes_num): Remove.
6942 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6943 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6944 (cost_classes_del, cost_classes_htab): New.
6945 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6946 (initiate_regno_cost_classes, setup_cost_classes): New.
6947 (setup_regno_cost_classes_by_aclass): New.
6948 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6949 (record_reg_classes): Use regno_cost_classes instead of
6950 cost_classes. Move checking opposite operand up.
6951 (record_address_regs): Use regno_cost_classes
6952 instead of cost_classes.
6953 (scan_one_insn): Ditto. Use always general register.
6954 (print_allocno_costs): Use regno_cost_classes instead of
6956 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6957 (find_costs_and_classes): Set up cost classes for each registers.
6958 Use also their mode for this. Use regno_cost_classes instead of
6960 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6962 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6963 (ira_costs, ira_set_pseudo_classes): Call
6964 initiate_regno_cost_classes and finish_regno_cost_classes.
6966 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6968 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6970 * target.def (ira_cover_classes): Remove.
6972 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6974 * doc/tm.texi.in: Ditto.
6976 * ira-conflicts.c: Remove mentioning cover classes from the file.
6977 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6978 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6980 * targhooks.c (default_ira_cover_classes): Remove.
6982 * targhooks.h (default_ira_cover_classes): Ditto.
6984 * haifa-sched.c: Remove mentioning cover classes from the file.
6985 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6986 ira_pressure_classes and ira_pressure_classes_num instead of
6987 ira_reg_class_cover_size and ira_reg_class_cover. Use
6988 sched_regno_pressure_class instead of sched_regno_cover_class.
6989 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6990 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6992 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6993 classes from the file.
6994 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6995 (struct object_hard_regs, struct object_hard_regs_node): New.
6996 (struct ira_object): New members profitable_hard_regs,
6997 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6998 (struct ira_allocno): Rename cover_class to aclass. Rename
6999 cover_class_cost and updated_cover_class_cost to class_cost and
7000 updated_class_cost. Remove splay_removed_p and
7001 left_conflict_size. Add new members colorable_p.
7002 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7003 (ALLOCNO_COLORABLE_P): New macro.
7004 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7005 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7006 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7007 (OBJECT_...): Rename parameter C to O.
7008 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7009 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7010 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7011 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7012 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7013 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7014 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7015 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7016 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7017 x_ira_reg_class_subunion.
7018 (ira_max_memory_move_cost, ira_max_register_move_cost)
7019 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7020 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7021 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7022 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7023 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7024 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7025 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7026 (ira_tune_allocno_costs_and_cover_classes): Rename to
7027 ira_tune_allocno_costs.
7028 (ira_debug_hard_regs_forest): New.
7029 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7030 (ira_object_conflict_iter_next): Fix comments.
7031 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7032 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7033 cover_class to aclass.
7034 (ira_allocate_and_accumulate_costs): Ditto.
7035 (ira_allocate_and_set_or_copy_costs): Ditto.
7037 * opts.c (decode_options): Remove ira_cover_class check.
7039 * ira-color.c: Remove mentioning cover classes from the file. Use
7040 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7041 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7042 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7043 (splay-tree.h): Remove include.
7044 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7045 before copy_freq_compare_func.
7046 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7047 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7049 (hard_regs_roots, hard_regs_node_vec): Ditto.
7050 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7051 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7052 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7053 (create_new_object_hard_regs_node): Ditto.
7054 (add_new_object_hard_regs_node_to_forest): Ditto.
7055 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7056 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7058 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7059 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7060 (remove_unused_object_hard_regs_nodes): Ditto.
7061 (enumerate_object_hard_regs_nodes): Ditto.
7062 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7063 (object_hard_regs_subnode_t): Ditto.
7064 (struct object_hard_regs_subnode): Ditto.
7065 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7066 (setup_object_hard_regs_subnode_index): Ditto.
7067 (get_object_hard_regs_subnodes_num): Ditto.
7068 (form_object_hard_regs_nodes_forest): Ditto.
7069 (finish_object_hard_regs_nodes_tree): Ditto.
7070 (finish_object_hard_regs_nodes_forest): Ditto.
7071 (allocnos_have_intersected_live_ranges_p): Rename to
7072 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7073 (pseudos_have_intersected_live_ranges_p): Rename to
7074 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7075 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7076 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7077 (update_copy_costs): Remove assert. Skip cost update if the hard
7078 reg does not belong the class.
7079 (assign_hard_reg): Process only profitable hard regs.
7080 (uncolorable_allocnos_num): Make it scalar.
7081 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7082 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7083 and ira_reg_class_max_nregs.
7084 (bucket_allocno_compare_func): Check frequency first.
7085 (sort_bucket): Add compare function as a parameter.
7086 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7087 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7088 (push_allocno_to_stack): Rewrite for checking new allocno
7090 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7091 (push_only_colorable): Pass new parameter to sort_bucket.
7092 (push_allocno_to_spill): Remove.
7093 (allocno_spill_priority_compare): Make it inline and rewrite.
7094 (splay_tree_allocate, splay_tree_free): Remove.
7095 (allocno_spill_sort_compare): New function.
7096 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7097 build and use splay tree. Choose first allocno in uncolorable
7098 allocno bucket to spill. Remove setting spill cost.
7099 (all_conflicting_hard_regs): Remove.
7100 (setup_allocno_available_regs_num): Check only profitable hard
7101 regs. Print info about hard regs nodes.
7102 (setup_allocno_left_conflicts_size): Remove.
7103 (put_allocno_into_bucket): Don't call
7104 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7105 (improve_allocation): New.
7106 (color_allocnos): Call setup_profitable_hard_regs,
7107 form_object_hard_regs_nodes_forest, improve_allocation,
7108 finish_object_hard_regs_nodes_forest. Setup spill cost.
7109 (print_loop_title): Use pressure classes.
7110 (color_allocnso): Ditto.
7111 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7112 and allocnos_for_spilling.
7113 (ira_sort_regnos_for_alter_reg): Don't setup members
7114 {first,next}_coalesced_allocno.
7115 (color): Remove allocating and freeing removed_splay_allocno_vec.
7116 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7117 prohibited_class_mode_regs.
7119 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7121 (update_allocno_pressure_excess_length): Use pressure classes.
7122 (inc_register_pressure, dec_register_pressure): Check for pressure
7124 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7125 pressure class. Use ira_reg_class_nregs instead of
7126 ira_reg_class_max_nregs.
7127 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7128 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7129 (single_reg_class): Use ira_reg_class_nregs instead of
7130 ira_reg_class_max_nregs.
7131 (process_bb_node_lives): Use pressure classes.
7133 * ira-emit.c: Remove mentioning cover classes from the file. Use
7134 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7135 (change_loop): Use pressure classes.
7136 (modify_move_list): Call ira_set_allocno_class instead of
7137 ira_set_allocno_cover_class.
7139 * ira-build.c: Remove mentioning cover classes from the file. Use
7140 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7141 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7142 ALLOCNO_UPDATED_CLASS_COST instead of
7143 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7144 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7145 (ira_create_allocno): Remove initialization of
7146 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7147 ALLOCNO_COLORABLE_P.
7148 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7149 Update conflict regs for the objects.
7150 (create_cap_allocno): Remove assert. Don't propagate
7151 ALLOCNO_AVAILABLE_REGS_NUM.
7152 (ira_free_allocno_costs): New function.
7153 (finish_allocno): Change a part of code into call of
7154 ira_free_allocno_costs.
7155 (low_pressure_loop_node_p): Use pressure classes.
7156 (object_range_compare_func): Don't compare classes.
7157 (setup_min_max_conflict_allocno_ids): Ditto.
7159 * loop-invariant.c: Remove mentioning cover classes from the file.
7160 Use ira_pressure_classes and ira_pressure_classes_num instead of
7161 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7162 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7163 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7164 Use reg_allocno_class instead of reg_cover_class.
7165 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7166 STACK_REG_COVER_CLASS.
7167 (get_regno_cover_class): Rename to get_regno_pressure_class.
7168 (move_loop_invariants): Initialize and finalize regstat.
7170 * ira.c: Remove mentioning cover classes from the file. Add
7171 comments about coloring without cover classes. Use ALLOCNO_CLASS
7172 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7173 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7174 setup_class_subset_and_memory_move_costs.
7175 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7176 (setup_cover_and_important_classes): Rename to
7177 setup_allocno_and_important_classes.
7178 (setup_class_translate_array): New.
7179 (setup_class_translate): Call it for allocno and pressure classes.
7180 (cover_class_order): Rename to allocno_class_order.
7181 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7182 of ira_class_translate.
7183 (reorder_important_classes): Set up ira_important_class_nums.
7184 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7185 (print_class_cover): Rename to print_classes. Add parameter.
7186 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7187 Print pressure classes too.
7188 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7189 setup_reg_subclasses.
7190 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7191 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7192 (setup_prohibited_class_mode_regs): Use
7193 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7194 (clarify_prohibited_class_mode_regs): New function.
7195 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7196 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7197 (ira_init_once): Initialize them.
7198 (free_register_move_costs): Process them.
7199 (ira_init): Move calls of find_reg_classes and
7200 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7201 Call clarify_prohibited_class_mode_regs.
7202 (ira_no_alloc_reg): Remove.
7203 (too_high_register_pressure_p): Use pressure classes.
7205 * sched-deps.c: Remove mentioning cover classes from the file.
7206 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7207 ira_pressure_classes and ira_pressure_classes_num instead of
7208 ira_reg_class_cover_size and ira_reg_class_cover.
7209 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7210 sched_regno_pressure_class instead of sched_regno_cover_class.
7211 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7212 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7214 * ira.h: Add 2010 to Copyright.
7215 (ira_no_alloc_reg): Remove external.
7216 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7217 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7218 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7219 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7220 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7221 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7222 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7223 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7224 x_ira_no_alloc_regs.
7225 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7226 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7227 ira_allocno_classes_num and ira_allocno_classes.
7228 (ira_class_translate): Rename to ira_allocno_class_translate.
7229 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7230 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7231 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7232 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7233 (ira_no_alloc_regs): New.
7235 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7236 classes from the file. Use ALLOCNO_CLASS instead of
7237 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7238 ALLOCNO_COVER_CLASS_COST.
7239 (regno_cover_class): Rename to regno_aclass.
7240 (record_reg_classes): Use ira_reg_class_subunion instead of
7241 ira_reg_class_union.
7242 (record_address_regs): Check overflow.
7243 (scan_one_insn): Ditto.
7244 (print_allocno_costs): Print total mem cost fore regional allocation.
7245 (print_pseudo_costs): Use REG_N_REFS.
7246 (find_costs_and_classes): Use classes intersected with them on the
7247 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7248 ira_reg_class_union. Use ira_allocno_class_translate and
7249 regno_aclass instead of ira_class_translate and regno_cover_class.
7250 Modify code for finding regno_aclass. Setup preferred classes for
7252 (setup_allocno_cover_class_and_costs): Rename to
7253 setup_allocno_class_and_costs. Use regno_aclass instead of
7254 regno_cover_class. Use ira_set_allocno_class instead of
7255 ira_set_allocno_cover_class.
7256 (init_costs, finish_costs): Use regno_aclass instead of
7258 (ira_costs): Use setup_allocno_class_and_costs instead of
7259 setup_allocno_cover_class_and_costs.
7260 (ira_tune_allocno_costs_and_cover_classes): Rename to
7261 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7262 by processing objects. Use ira_reg_class_max_nregs instead of
7263 ira_reg_class_nregs.
7265 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7267 * sched-int.h: Remove mentioning cover classes from the file.
7268 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7270 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7271 classes from the file.
7272 (struct reg_pref): Rename coverclass into allocnoclass.
7273 (reg_cover_class): Rename to reg_allocno_class.
7275 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7277 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7279 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7281 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7283 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7285 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7287 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7289 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7291 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7293 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7295 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7296 (i386_ira_cover_classes): Ditto.
7298 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7300 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7302 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7304 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7306 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7308 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7310 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7311 (mips_ira_cover_classes): Ditto.
7313 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7315 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7317 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7319 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7321 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7323 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7324 (IRA_COVER_CLASSES_VSX): Ditto.
7326 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7327 (rs6000_ira_cover_classes): Ditto.
7329 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7331 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7333 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7335 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7337 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7339 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7341 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7343 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7345 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7347 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7349 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7352 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7353 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7354 dw_fde_unlikely_section_end_label, cold_in_std_section,
7355 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7356 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7358 (output_fde): Use dw_fde_second_{begin,end} if second is
7359 true, otherwise dw_fde_{begin,end}.
7360 (output_call_frame_info): Test dw_fde_second_begin != NULL
7361 instead of dw_fde_switched_sections.
7362 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7363 fields, initialize new fields. Initialize in_std_section
7364 unconditionally from the first partition.
7365 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7366 dw_fde_second_begin is non-NULL.
7367 (dwarf2out_switch_text_section): Stop initializing removed
7368 dw_fde_struct fields, initialize new fields, initialize
7369 also dw_fde_end here. Set dw_fde_switch_cfi even when
7370 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7371 (struct var_loc_list_def): Add last_before_switch field.
7372 (arange_table, arange_table_allocated, arange_table_in_use,
7373 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7374 (size_of_aranges): Count !in_std_section and !second_in_std_section
7375 hunks in fdes, instead of looking at arange_table_in_use.
7376 (output_aranges): Add aranges_length argument, don't call
7377 size_of_aranges here. Instead of using aranges_table*
7378 emit ranges for fdes when !in_std_section resp.
7379 !second_in_std_section.
7380 (dw_loc_list): Break ranges crossing section switch.
7381 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7382 use dw_fde_second_end instead of dw_fde_end as end of last range.
7383 (gen_subprogram_die): Don't call add_arange. Use
7384 dw_fde_{begin,end} for first partition and if switched
7385 section dw_fde_second_{begin,end} for the second.
7386 (var_location_switch_text_section_1,
7387 var_location_switch_text_section): New functions.
7388 (dwarf2out_begin_function): Initialize cold_text_section even
7389 when function_section () isn't text_section.
7390 (prune_unused_types): Don't walk arange_table.
7391 (dwarf2out_finish): Don't needlessly test
7392 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7393 If info_section_emitted, call size_of_aranges and if it indicates
7394 non-empty .debug_aranges, call output_aranges with the computed
7395 size. Stop using removed dw_fde_struct fields, use
7396 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7400 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7401 create ENTRY_VALUE if incoming or address of incoming's MEM
7403 * dwarf2out.c (mem_loc_descriptor): Don't emit
7404 DW_OP_GNU_entry_value of DW_OP_fbreg.
7405 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7406 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7407 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7408 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7410 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7411 is a REG_P or MEM_P with REG_P address, compute hash directly
7412 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7413 (preserve_only_constants): Don't clear VALUES forwaring
7414 ENTRY_VALUE to some other VALUE.
7416 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7418 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7421 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7423 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7424 block before expanding the statement.
7425 (expand_gimple_stmt_1): Likewise. Set them here...
7426 (expand_gimple_stmt): ...and not here. Tidy.
7427 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7430 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7432 * Makefile.in: New rule for cprop.o.
7433 * gcse.c: Move constant/copy propagation to cprop.c.
7434 (compute_local_properties): Only handle expression tables.
7435 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7436 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7437 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7438 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7439 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7440 compute_cprop_data, find_used_regs, try_replace_reg,
7441 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7442 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7443 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7444 find_bypass_set, reg_killed_on_edge, bypass_block,
7445 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7446 execute_rtl_cprop, pass_rtl_cprop): Move to...
7447 * cprop.c: ...here. New file, constant/copy propagation for RTL
7448 moved from gcse.c to here with minor cleanups in duplicated code.
7450 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7452 * config/i386/i386.c (flag_opts): Fix a typo in
7453 -mavx256-split-unaligned-store.
7455 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7457 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7458 LIBCALL_VALUE): Remove macros.
7459 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7460 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7461 (h8300_function_value, h8300_libcall_value,
7462 h8300_function_value_regno_p): New functions.
7464 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7466 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7468 2011-03-28 Jeff Law <law@redhat.com>
7470 * tree-ssa-threadupdate.c (redirect_edges): Call
7471 create_edge_and_update_destination_phis as needed.
7472 (create_edge_and_update_destination_phis): Accept new BB argument.
7473 All callers updated.
7474 (thread_block): Do not update the profile when threading around
7475 intermediate blocks.
7476 (thread_single_edge): Likewise.
7477 (determine_bb_domination_status): If BB is not a successor of the
7478 loop header, return NONDOMINATING.
7479 (register_jump_thread): Note when we register a jump thread around
7480 an intermediate block.
7481 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7482 (thread_across_edge): Use it.
7484 2011-03-28 Tristan Gingold <gingold@adacore.com>
7486 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7487 when for_return is 2.
7489 2011-03-28 Jeff Law <law@redhat.com>
7491 * var-tracking.c (canonicalize_values_mark): Delete unused
7493 (canonicalize_values_star, set_variable_part): Likewise.
7494 (clobber_variable_part, delete_variable_part): Likewise.
7496 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7498 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7500 2011-03-28 Martin Jambor <mjambor@suse.cz>
7502 * tree-inline.c (expand_call_inline): Do not check that destination
7504 (optimize_inline_calls): Assert that destination node is analyzed.
7505 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7506 not call tree_lowering_passes.
7507 * cgraph.h (cgraph_analyze_function): Declare.
7508 * cgraphunit.c (cgraph_analyze_function): Make public.
7510 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7512 * config/sparc/sparc-opts.h: New.
7513 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7514 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7515 (sparc_option_override): Store processor_type enumeration rather
7516 than string in cpu_default. Remove name and enumeration from
7517 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7518 without using sparc_select. Use target_flags_explicit instead of
7520 * config/sparc/sparc.h (enum processor_type): Move to
7522 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7523 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7524 HeaderInclude entry.
7525 (mcpu=, mtune=): Use Var and Enum.
7526 (sparc_processor_type): New Enum and EnumValue entries.
7528 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7529 Iain Sandoe <iains@gcc.gnu.org>
7532 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7534 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7536 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7537 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7538 Insert new statements at it in lieu of STMT.
7539 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7540 * tree-vect-stmts.c (vectorizable_store): Likewise.
7541 (vectorizable_load): Likewise.
7543 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7545 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7550 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7552 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7553 unaligned 256bit load/store.
7554 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7555 (*avx_movdqu<avxmodesuffix>): Likewise.
7557 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7560 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7561 * config/pa/pa.md (iordi3): Use new predicate in expander.
7564 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7566 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7567 FUNCTION_VALUE_REGNO_P): Remove macros.
7568 * config/mips/mips-protos.h (mips_function_value): Remove.
7569 * config/mips/mips.c (mips_function_value): Rename to...
7570 (mips_function_value_1): ... this. Make static. Handle receiving
7571 the function type in 'fn_decl_or_type' argument.
7572 (mips_function_value, mips_libcall_value,
7573 mips_function_value_regno_p): New function.
7574 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7575 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7577 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7579 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7580 and -mavx256-split-unaligned-store.
7581 (ix86_option_override_internal): Split 32-byte AVX unaligned
7582 load/store by default.
7583 (ix86_avx256_split_vector_move_misalign): New.
7584 (ix86_expand_vector_move_misalign): Use it.
7586 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7587 -mavx256-split-unaligned-store.
7589 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7590 256bit load/store. Generate unaligned store on misaligned memory
7592 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7594 (*avx_movdqu<avxmodesuffix>): Likewise.
7596 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7597 -mavx256-split-unaligned-store.
7599 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7602 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7605 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7607 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7608 opno arguments with an expand_operand. Use create_input_operand.
7609 (mips_prepare_builtin_target): Delete.
7610 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7612 (mips_expand_builtin_direct): Use create_output_operand and
7613 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7614 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7615 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7617 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7619 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7621 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7623 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7625 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7626 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7627 basic blocks and call commit_edge_insertions directly.
7628 (fixup_abnormal_edges): Move from here to...
7629 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7630 on the edges and return whether some have actually been inserted.
7631 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7634 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7636 PR rtl-optimization/48144
7637 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7638 (merge_expr_data): ... here.
7639 (av_set_intersect): Rename to av_set_code_motion_filter.
7640 Update all callers. Call merge_history_vect when an expression
7641 is found in both sets.
7642 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7644 2011-03-26 Alan Modra <amodra@gmail.com>
7646 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7647 cmodel medium addresses.
7648 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7649 64-bit gpr loads and stores.
7650 (rs6000_secondary_reload_ppc64): New function.
7651 * config/rs6000/rs6000-protos.h: Declare it.
7652 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7654 2011-03-26 Alan Modra <amodra@gmail.com>
7657 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7658 GNU Go in traceback table.
7660 2011-03-25 Richard Henderson <rth@redhat.com>
7662 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7663 if there are exactly 6 operands.
7664 (set_storage_via_setmem): Similarly.
7666 2011-03-25 Kai Tietz <ktietz@redhat.com>
7668 * collect2.c (write_c_file_stat): Handle backslash
7669 as right-hand directory separator.
7670 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7671 checking just for slash.
7672 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7673 instead of checking for trailing slash.
7674 * gcc.c (record_temp_file): Use filename_cmp instead
7676 (do_spec_1): Likewise.
7677 (replace_outfile_spec_function): Likewise.
7678 (is_directory): Use filename_ncmp instead of strncmp.
7679 (print_multilib_info): Likewise.
7680 * gcov.c (find_source): Use filename_cmp instead
7682 (make_gcov_file_name): Fix order of slash/backslash
7684 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7685 (add_standard_paths): Likewise.
7686 * mips-tfile.c (saber_stop): Handle backslash.
7687 * prefix.c (update_path): Use filename_ncmp instead of
7689 * profile.c (output_location): Use filename_cmp instead
7691 * read-md.c (handle_toplevel_file): Handle backslash.
7692 * tlink.c (frob_extension): Likewise.
7693 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7695 * tree-dump.c (dequeue_and_dump): Handle backslash.
7696 * tree.c (get_file_function_name): Likewise.
7697 * gengtype.c (read_input_list): Likewise.
7698 (get_file_realbasename): Likewise.
7699 (get_output_file_with_visibility): Use filename_cmp
7702 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7704 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7707 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7709 * fold-const.c (expr_location_or): New function.
7710 (fold_truth_not_expr): Call it.
7712 2011-03-25 Jeff Law <law@redhat.com>
7714 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7716 * c-family/c-common.c (def_fn_type): Likewise.
7717 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7718 * emit-rtl.c (gen_rtvec): Likewise.
7719 * lto/lto-lang.c (def_fn_type): Likewise.
7721 2011-03-25 Richard Guenther <rguenther@suse.de>
7723 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7724 also generate copies.
7725 (fini_copy_prop): Handle constant values properly.
7727 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7729 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7730 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7731 (hash_loc_operands, compare_loc_operands): Handle
7732 DW_OP_GNU_entry_value.
7734 2011-03-25 Kai Tietz <ktietz@redhat.com>
7736 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7737 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7738 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7739 comment and use macro TARGET_64BIT_MS_ABI instead.
7740 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7741 and change default behavior for 32-bit MS_ABI.
7742 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7743 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7745 (ix86_cfun_abi): Likewise.
7746 (ix86_maybe_switch_abi): Adjust comment.
7747 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7748 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7749 instead of checking for SYSV_ABI.
7750 (ix86_nsaved_sseregs): Likewise.
7751 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7753 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7754 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7755 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7756 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7757 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7759 2011-03-25 Richard Guenther <rguenther@suse.de>
7761 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7762 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7763 (verify_gimple): Remove.
7764 * tree-cfg.c (verify_gimple_call): Merge verification
7766 (verify_gimple_phi): Merge verification from verify_stmts.
7767 (verify_gimple_label): New function.
7768 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7769 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7770 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7771 (verify_stmts): Rename to verify_gimple_in_cfg.
7772 (verify_gimple_in_cfg): New function.
7773 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7774 * tree-ssa.c (verify_ssa): Likewise.
7775 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7777 2011-03-25 Richard Guenther <rguenther@suse.de>
7779 * passes.c (init_optimization_passes): Add FRE pass after
7782 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7783 Andrew Stubbs <ams@codesourcery.com>
7785 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7787 (arm_movdi_vfp_cortexa8): New pattern.
7788 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7789 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7790 instructions when tuning for Cortex-A8. Set attribute "arch".
7791 * config/arm/arm.md: Move include arm-tune.md up a bit.
7792 (define_attr "arch"): Add "onlya8" and "nota8" values.
7793 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7795 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7799 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7801 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7802 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7803 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7804 * passes.c (init_optimization_passes): Move
7805 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7807 2011-03-25 Kai Tietz <ktietz@redhat.com>
7809 * c-typeck.c (comptypes_internal): Replace target
7810 hook call of comp_type_attributes by version in tree.c file.
7811 * gimple.c (gimple_types_compatible_p_1): Likewise.
7812 * tree-ssa.c (useless_type_conversion_p): Likewise.
7813 * tree.c (build_type_attribute_qual_variant): Likewise.
7814 (attribute_value_equal): New static helper function.
7815 (comp_type_attributes): New function.
7816 (merge_attributes): Use attribute_value_equal for comparison.
7817 (attribute_list_contained): Likewise.
7818 * tree.h (comp_type_attributes): New prototype.
7820 2011-03-25 Richard Guenther <rguenther@suse.de>
7822 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7823 of complex types at -O0.
7824 (verify_gimple_assign_binary): Likewise.
7825 (verify_gimple_assign_ternary): Likewise.
7827 2011-03-24 Mark Wielaard <mjw@redhat.com>
7829 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7830 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7832 2011-03-24 Mark Wielaard <mjw@redhat.com>
7835 * dwarf2out.c (output_abbrev_section): Only write table when
7836 abbrev_die_table_in_use > 1.
7838 2011-02-24 Richard Henderson <rth@redhat.com>
7840 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7841 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7842 (alpha_expand_unaligned_load_words): Use extql.
7843 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7844 (emit_insxl): Handle all modes for consistency.
7846 2011-02-24 Richard Henderson <rth@redhat.com>
7848 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7849 (alpha_expand_unaligned_load): Likewise.
7850 (alpha_expand_unaligned_store): Likewise.
7851 (alpha_expand_unaligned_load_words): Likewise.
7852 (alpha_expand_unaligned_store_words): Likewise.
7853 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7854 (alpha_split_lock_test_and_set_12): Likewise.
7855 (print_operand, alpha_fold_builtin_extxx): Likewise.
7856 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7857 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7858 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7859 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7860 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7861 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7862 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7863 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7864 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7865 (extwl, extll, extql): Similarly.
7866 (inswh, inslh, insqh): Similarly.
7867 (mskbl, mskwl, mskll, mskql): Similarly.
7868 (mskwh, msklh, mskqh): Similarly.
7870 2011-02-24 Richard Henderson <rth@redhat.com>
7872 * config/alpha/alpha.md (attribute isa): Add er, ner.
7873 (attribute enabled): Handle them.
7874 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7876 2011-02-24 Richard Henderson <rth@redhat.com>
7878 * config/alpha/alpha.md (attribute isa): Add vms.
7879 (attribute enabled): Handle it.
7880 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7881 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7882 (*movtf): Rename from *movtf_internal for consistency.
7883 (*movsi): Merge with *movsi_nt_vms.
7884 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7885 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7886 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7887 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7889 2011-02-24 Richard Henderson <rth@redhat.com>
7891 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7892 (extendqisi2, extendhisi2): Likewise.
7893 (extendqidi2): Simplify BWX/non-BWX expansions.
7894 (extendhidi2): Similarly.
7896 2011-02-24 Richard Henderson <rth@redhat.com>
7898 * config/alpha/alpha.md (attribute isa): New.
7899 (attribute enabled): New.
7900 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7901 (zero_extendqisi2, zero_extendqidi2): Similarly.
7902 (zero_extendhisi2, zero_extendhidi2): Similarly.
7903 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7905 2011-02-24 Richard Henderson <rth@redhat.com>
7907 * config/alpha/predicates.md (input_operand): Revert last change;
7908 update comment to mention 32-bit VMS rather than Windows.
7910 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7912 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7913 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7914 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7915 * passes.c (init_optimization_passes): Move
7916 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7918 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7920 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7922 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7924 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7927 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7930 * simplify-rtx.c (simplify_const_unary_operation): Call
7931 real_convert when changing mode class with FLOAT_EXTEND.
7933 2011-03-24 Nick Clifton <nickc@redhat.com>
7935 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7936 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7937 * config/rx/rx.c (rx_option_override): Set align_jumps,
7938 align_loops and align_labels if not set by the user.
7939 (rx_align_for_label): New function.
7940 (rx_max_skip_for_label): New function.
7941 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7942 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7943 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7944 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7945 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7947 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7949 PR rtl-optimization/48263
7950 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7951 and original commutative_p handling. Use maybe_gen_insn.
7953 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7955 * reload.c (find_reloads_subreg_address): Add address_reloaded
7956 parameter and return true there if the full address has been
7958 (find_reloads_toplev): Pass address_reloaded flag.
7959 (find_reloads_address_1): Don't use address_reloaded parameter.
7961 2011-03-24 Jeff Law <law@redhat.com>
7963 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7964 unused variable "ann".
7965 (remove_unused_locals): Likewise.
7967 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7970 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7973 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7975 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7976 for invalid symbolic addresses.
7977 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7980 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7982 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7983 the argument in calls to fold_truth_not_expr.
7985 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7987 * tree.c (record_node_allocation_statistics): New function.
7988 (make_node_stat, copy_node_stat, build_string): Call it.
7989 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7990 (build1_stat, build_omp_clause): Likewise.
7992 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7994 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7997 2011-03-24 Richard Guenther <rguenther@suse.de>
7999 PR tree-optimization/48271
8000 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8001 blocks that still exist.
8003 2011-03-24 Richard Guenther <rguenther@suse.de>
8005 PR tree-optimization/48270
8006 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8007 not free datarefs before ddrs.
8009 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8011 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8012 from the address built for a reference with variable offset.
8014 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8017 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8018 alternatives that can be handled with movq or movabsq insn.
8019 (*movdf_internal): Disable for !TARGET_64BIT.
8020 (*movdf_internal_nointeger): Ditto.
8021 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8023 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8025 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8026 (FUNCTION_ARG_ADVANCE): Likewise.
8027 * tm.texi.in: Change references to them to hook references.
8028 * tm.texi: Regenerate.
8029 * targhooks.c (default_function_arg): Eliminate check for target macro.
8030 (default_function_incoming_arg): Likewise.
8031 (default_function_arg_advance): Likewise.
8032 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8033 (function_arg_advance): Likewise.
8034 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8036 2011-03-24 Richard Guenther <rguenther@suse.de>
8039 * tree-object-size.c (addr_object_size): Do not double-account
8040 for MEM_REF offsets.
8042 2011-03-24 Diego Novillo <dnovillo@google.com>
8044 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8045 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8046 (lto_input_data_block): Move from lto-opts.c. Make extern.
8048 (lto_input_string): Rename from input_string. Make extern.
8050 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8051 output_string_with_length.
8052 Output 0 to indicate a non-NULL string. Update all callers to
8054 (lto_output_string): Rename from output_string. Make extern.
8056 (lto_output_decl_state_streams): Make extern.
8057 (lto_output_decl_state_refs): Make extern.
8058 * lto-streamer.h (lto_input_string): Declare.
8059 (lto_input_data_block): Declare.
8060 (lto_output_string): Declare.
8061 (lto_output_string_with_length): Declare.
8062 (lto_output_decl_state_streams): Declare.
8063 (lto_output_decl_state_refs): Declare.
8065 2011-03-24 Richard Guenther <rguenther@suse.de>
8067 PR tree-optimization/46562
8068 * tree.c (build_invariant_address): New function.
8069 * tree.h (build_invariant_address): Declare.
8070 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8071 a renamed function moved ...
8072 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8073 Take valueization callback parameter.
8074 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8075 * gimple-fold.h: New file.
8076 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8077 (ccp_fold, fold_const_aggregate_ref,
8078 fold_ctor_reference, fold_nonarray_ctor_reference,
8079 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8080 get_base_constructor): Move ...
8081 * gimple-fold.c: ... here.
8082 (gimple_fold_stmt_to_constant_1): New function
8083 split out from ccp_fold. Take a valueization callback parameter.
8084 Valueize all operands.
8085 (gimple_fold_stmt_to_constant): New wrapper function.
8086 (fold_const_aggregate_ref_1): New function split out from
8087 fold_const_aggregate_ref. Take a valueization callback parameter.
8088 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8089 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8090 invariant POINTER_PLUS_EXPRs to invariant form.
8091 (vn_valueize): New function.
8092 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8093 * tree-vrp.c (vrp_valueize): New function.
8094 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8095 to fold statements to constants.
8096 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8097 function declarations.
8098 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8099 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8101 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8103 * config/h8300/predicates.md (jump_address_operand): Fix register
8106 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8108 * doc/invoke.texi (max-stores-to-sink): Document.
8109 * params.h (MAX_STORES_TO_SINK): Define.
8110 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8111 if either vectorization or if-conversion is disabled.
8112 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8113 tree-vect-data-refs.c vect_equal_offsets.
8114 (dr_equal_offsets_p): New function.
8115 (find_data_references_in_bb): Remove static.
8116 * tree-data-ref.h (find_data_references_in_bb): Declare.
8117 (dr_equal_offsets_p): Likewise.
8118 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8119 (vect_drs_dependent_in_basic_block): Update calls to
8121 (vect_check_interleaving): Likewise.
8122 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8123 (cond_if_else_store_replacement): Rename to...
8124 (cond_if_else_store_replacement_1): ... this. Change arguments and
8126 (cond_if_else_store_replacement): New function.
8127 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8128 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8130 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8133 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8134 to subtract lower bound instead of GEN_INT().
8136 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8141 * doc/extend.texi (Alignment): Move section to match order in TOC.
8142 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8143 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8145 2011-03-23 Jeff Law <law@redhat.com>
8147 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8148 before removing the edge.
8150 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8151 it may have been freed by redirect_branch_edge or
8152 redirect_edge_succ_nodup.
8154 2011-03-23 Richard Guenther <rguenther@suse.de>
8156 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8157 (check_va_list_escapes): Likewise.
8158 (check_all_va_list_escapes): Likewise.
8160 2011-03-23 Richard Guenther <rguenther@suse.de>
8162 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8163 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8164 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8165 (alias.o): Likewise.
8166 (ipa-type-escape.o): Remove.
8167 (ipa-struct-reorg.o): Likewise.
8168 (GTFILES): Remove ipa-struct-reorg.c.
8169 * alias.c: Do not include ipa-type-escape.h.
8170 * tree-ssa-alias.c: Likewise.
8171 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8172 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8173 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8174 and ipa-type-escape passes.
8175 * tree-pass.h (pass_ipa_type_escape): Remove.
8176 (pass_ipa_struct_reorg): Likewise.
8177 * ipa-struct-reorg.h: Remove.
8178 * ipa-struct-reorg.c: Likewise.
8179 * ipa-type-escape.h: Likewise.
8180 * ipa-type-escape.c: Likewise.
8181 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8182 (--param struct-reorg-cold-struct-ratio): Likewise.
8183 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8184 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8185 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8187 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8189 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8190 cpu attribute value.
8191 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8192 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8193 * config/s390/s390.c (processor_flags_table): New constant array.
8194 (s390_handle_arch_option): Remove.
8195 (s390_handle_option): Remove s390_handle_arch_option invocations
8196 and OPT_mwarn_framesize_ handling.
8197 (s390_option_override): Remove s390_handle_arch_option invocation.
8198 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8200 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8201 * config/s390/s390.opt (s390_tune, s390_arch)
8202 (march=): Replace s390_arch_option enum and values with
8203 processor_type. Set variable name to s390_arch. Set
8204 initialization value.
8205 (mtune=): Replace s390_arch_option with processor_type. Set
8206 variable name to s390_tune. Set initialization value.
8208 2011-03-23 Julian Brown <julian@codesourcery.com>
8210 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8211 accesses which are not naturally aligned.
8213 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8216 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8218 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8220 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8221 parameter from "int" to "enum insn_code".
8222 (expand_operand_type): New enum.
8223 (expand_operand): New structure.
8224 (create_expand_operand): New function.
8225 (create_fixed_operand, create_output_operand): Likewise
8226 (create_input_operand, create_convert_operand_to): Likewise.
8227 (create_convert_operand_from, create_address_operand): Likewise.
8228 (create_integer_operand): Likewise.
8229 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8230 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8231 (expand_insn, expand_jump_insn): Likewise.
8232 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8233 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8234 (expand_movstr, expand_builtin___clear_cache): Likewise.
8235 (expand_builtin_lock_release): Likewise.
8236 * explow.c (allocate_dynamic_stack_space): Likewise.
8237 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8238 and use the default handling in that case.
8239 * expmed.c (check_predicate_volatile_ok): Delete.
8240 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8241 (emit_cstore): Likewise.
8242 * expr.c (emit_block_move_via_movmem): Likewise.
8243 (set_storage_via_setmem, expand_assignment): Likewise.
8244 (emit_storent_insn, try_casesi): Likewise.
8245 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8246 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8247 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8248 (expand_twoval_unop, expand_twoval_binop): Likewise.
8249 (expand_unop_direct, emit_indirect_jump): Likewise.
8250 (emit_conditional_move, vector_compare_rtx): Likewise.
8251 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8252 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8253 (expand_sync_lock_test_and_set): Likewise.
8254 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8255 (emit_unop_insn): Likewise.
8256 (expand_copysign_absneg): Change icode to an insn_code.
8257 (create_convert_operand_from_type): New function.
8258 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8259 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8260 (expand_insn, expand_jump_insn): Likewise.
8261 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8262 than const_int_operand for operand 2.
8264 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8266 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8269 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8271 * emit-rtl.c (emit_pattern_before_noloc): New function.
8272 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8273 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8274 (emit_pattern_after_noloc): New function.
8275 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8276 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8278 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8280 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8281 (__ffsDI2): Likewise.
8283 2011-03-22 Richard Henderson <rth@redhat.com>
8285 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8286 of !TARGET_ABI_OPEN_VMS.
8287 (alpha_trampoline_init, alpha_start_function): Likewise.
8288 (alpha_expand_epilogue, alpha_file_start): Likewise.
8289 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8290 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8291 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8292 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8293 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8297 * config/s390/s390-opts.h: New.
8298 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8299 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8300 s390_stack_guard): Remove.
8301 (s390_handle_arch_option): Return void. Take enum
8302 s390_arch_option value instead of string and searching array.
8303 (s390_handle_option): Don't assert that global structures are in
8304 use. Access variables via opts pointer. Use error_at. Don't use
8305 sscanf for -mstack-guard= or -mstack-size=. Update call to
8306 s390_handle_arch_option.
8307 (s390_option_override): Update call to s390_handle_arch_option.
8308 (s390_emit_prologue): Use %d format for s390_stack_size in
8309 diagnostic. Use %wd for HOST_WIDE_INT.
8310 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8311 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8312 * config/s390/s390.opt (config/s390/s390-opts.h): New
8313 HeaderInclude entry.
8314 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8315 s390_arch_flags, s390_warn_framesize): New Variable entries.
8316 (s390_arch_option): New Enum and EnumValue entries.
8317 (march=): Use Enum instead of Var.
8318 (mstack-guard=, mstack-size=): Use UInteger and Var.
8321 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8323 * config/score/score.c (score_handle_option): Don't assert that
8324 global structures are in use. Access target_flags via opts
8325 pointer. Use value of -march= option to determine target_flags
8327 * config/score/score.opt (march=): Use Enum.
8328 (score_arch): New Enum and EnumValue entries.
8330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8332 * config/mep/mep.c (option_mtiny_specified): Remove.
8333 (mep_option_override): Move register handling for -mivc2 from
8334 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8335 instead of option_mtiny_specified.
8336 (mep_handle_option): Access target_flags via opts pointer. Don't
8337 assert that global structures are in use. Defer part of -mivc2
8338 handling and move it to mep_option_override.
8339 * config/mep/mep.opt (IVC2): New Mask entry.
8340 (mivc2): Use Var and Defer instead of Mask.
8342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8344 * config/v850/v850-opts.h: New.
8345 * config/v850/v850.c (small_memory): Replace with
8346 small_memory_physical_max array. Make that array static const.
8347 (v850_handle_memory_option): Take integer value of argument. Take
8348 gcc_options pointer, option text and location. Return void.
8349 Update for changes to small memory structures.
8350 (v850_handle_option): Access target_flags via opts pointer. Don't
8351 assert that global structures are in use. Update calls to
8352 v850_handle_memory_option.
8353 (v850_encode_data_area): Update references to small memory settings.
8354 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8355 (enum small_memory_type): Move to v850-opts.h.
8356 * config/v850/v850.opt (config/v850/v850-opts.h): New
8357 HeaderInclude entry.
8358 (small_memory_max): New Variable entry.
8359 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8360 (mtda, mzda): Likewise.
8362 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8364 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8365 pointer. Don't assert that global structures are in use.
8367 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8369 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8370 via opts pointer. Don't assert that global structures are in use.
8372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8374 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8375 (munix=93): Use Var.
8376 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8377 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8378 * config/pa/pa-opts.h: New.
8379 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8380 (pa_handle_option): Don't assert that global structures are in
8381 use. Access target_flags via opts pointer. Don't handle
8382 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8384 (pa_option_override): Handle deferred OPT_mfixed_range_.
8386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8388 * config/mn10300/mn10300-opts.h: New.
8389 * config/mn10300/mn10300.c (mn10300_processor,
8390 mn10300_tune_string): Remove.
8391 (mn10300_handle_option): Don't assert that global structures are
8392 in use. Access mn10300_processor via opts pointer. Don't handle
8394 * config/mn10300/mn10300.h (enum processor_type): Move to
8396 (mn10300_processor): Remove.
8397 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8398 HeaderInclude entry.
8399 (mn10300_processor): New Variable entry.
8402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8404 * config/microblaze/microblaze.c: Don't include opts.h.
8405 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8406 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8407 (mno-clearbss): Use Var and Warn.
8409 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8411 * config/m32r/m32r-opts.h: New.
8412 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8413 (m32r_handle_option): Don't assert that global structures are in
8414 use. Access target_flags and m32r_cache_flush_func via opts
8415 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8416 OPT_mno_flush_trap here.
8417 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8418 include of m32r-opts.h.
8419 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8420 HeaderInclude entry.
8421 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8422 (mmodel=): Use Enum and Var.
8423 (m32r_model): New Enum and EnumValue entries.
8424 (mno-flush-trap): Use Var.
8425 (msdata=): Use Enum and Var.
8426 (m32r_sdata): New Enum and EnumValue entries.
8428 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8430 * config/m32c/m32c.c: Don't include opts.h.
8431 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8432 m32c_handle_option): Remove.
8433 (m32c_option_override): Check global_options_set.x_target_memregs
8434 instead of target_memregs_set.
8435 * config/m32c/m32c.h (target_memregs): Remove.
8436 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8439 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8441 * config/iq2000/iq2000-opts.h: New.
8442 * config/iq2000/iq2000.c: Don't include opts.h.
8443 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8444 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8445 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8446 HeaderInclude entry.
8447 (iq2000_tune): New Variable entry.
8448 (march=): Add comment. Use Enum.
8449 (iq2000_arch): New Enum and EnumValue entries.
8450 (mcpu=): Use Enum and Var.
8451 (iq2000_tune): New Enum and EnumValue entries.
8453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8455 * config/ia64/ia64-opts.h: New.
8456 * config/ia64/ia64.c (ia64_tune): Remove.
8457 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8459 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8460 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8461 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8462 HeaderInclude entry.
8463 (ia64_tune): New Variable entry.
8464 (mfixed-range=): Use Defer and Var.
8465 (mtune=): Use Enum and Var.
8466 (ia64_tune): New Enum and EnumValue entries.
8468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8470 * config/frv/frv-opts.h: New.
8471 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8473 (frv_cpu_type): Remove.
8474 * config/frv/frv.c: Don't include opts.h.
8475 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8476 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8477 (frv_cpu_type): New Variable entry.
8478 (frv_cpu): New Enum and EnumValue entries.
8480 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8482 * config/cris/cris.c (cris_handle_option): Access target_flags via
8483 opts pointer. Don't assert that global structures are in use.
8484 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8485 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8489 * config/bfin/bfin-opts.h: New.
8490 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8491 bfin_si_revision, bfin_workarounds): Remove.
8492 (bfin_cpus): Make static const.
8493 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8494 not bfin_lib_id_given.
8495 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8496 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8497 pointer. Use error_at. Don't assert that global structures are in use.
8498 * config/bfin/bfin.h: Include bfin-opts.h.
8499 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8500 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8501 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8502 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8505 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8507 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8508 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8509 or -msoft-float here.
8510 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8511 -msoft-float and -mhard-float.
8512 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8513 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8515 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8517 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8518 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8520 (LIBGCC_SPEC): Don't handle -msoft-float.
8521 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8523 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8525 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8526 -mfloat-abi=*, not -msoft-float and -mhard-float.
8527 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8529 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8530 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8531 mhard-float and msoft-float.
8532 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8533 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8534 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8535 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8537 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8538 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8540 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8542 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8545 2011-03-22 Richard Henderson <rth@redhat.com>
8547 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8548 TARGET_ABI_WINDOWS_NT.
8549 (alpha_output_function_end_prologue): Likewise.
8550 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8551 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8552 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8553 (trap, *movsi_nt_vms): Likewise.
8554 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8555 (*tablejump_osf_nt_internal): Remove.
8556 * config/alpha/predicates.md (input_operand): Only test Pmode.
8558 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8560 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8561 via opts pointer. Use error_at. Don't assert that global
8562 structures are in use.
8564 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8566 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8567 (ix86_handle_option): Access ix86_isa_flags and
8568 ix86_isa_flags_explicit via opts pointer. Don't assert that
8569 global structures are in use.
8570 (ix86_function_specific_save, ix86_function_specific_restore):
8571 Update ix86_isa_flags_explicit field name.
8572 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8573 (ix86_isa_flags_explicit): Rename TargetSave entry to
8574 x_ix86_isa_flags_explicit.
8576 2011-03-22 Richard Henderson <rth@redhat.com>
8578 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8579 (alpha_option_override, direct_return): Likewise.
8580 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8581 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8582 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8583 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8584 (alpha_expand_epilogue, alpha_end_function): Likewise.
8585 (alpha_init_libfuncs): Likewise.
8586 (struct machine_function): Remove unicosmk members.
8587 (print_operand) ['t']: Remove.
8588 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8589 unicosmk_output_module_name, unicosmk_output_common,
8590 current_section_align, unicosmk_output_text_section_asm_op,
8591 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8592 unicosmk_section_type_flags, unicosmk_unique_section,
8593 unicosmk_asm_named_section, unicosmk_insert_attributes,
8594 unicosmk_output_align, unicosmk_defer_case_vector,
8595 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8596 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8597 unicosmk_output_ssib, unicosmk_add_call_info_word,
8598 unicosmk_extern_head, unicosmk_output_default_externs,
8599 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8600 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8601 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8602 * config/alpha/alpha-protos.h: Update.
8603 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8604 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8605 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8606 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8607 (*mulsi_se, mulvsi3): Likewise.
8608 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8609 (*divmodsi_internal, call, call_value, realign): Likewise.
8610 (moddi3, umoddi3): Likewise; remove duplicate expander.
8611 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8612 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8613 (*movdi_nofix): Remove r/U alternative.
8614 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8615 * config/alpha/constraints.md ("U"): Remove.
8616 * config/alpha/predicates.md (call_operand"): Don't test
8617 TARGET_ABI_UNICOSMK.
8619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8621 * target.def (handle_option): Take gcc_options and
8622 cl_decoded_option pointers and location_t.
8623 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8624 * doc/tm.texi: Regenerate.
8625 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8626 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8627 * lto-opts.c (lto_reissue_options): Generate option structure for
8628 targetm.handle_option call.
8629 * opts.c (target_handle_option): Update call to
8630 targetm.handle_option. Remove assertions about values now passed
8632 * targhooks.c (default_target_handle_option): New.
8633 * targhooks.h (default_target_handle_option): Declare.
8634 * config/alpha/alpha.c: Include opts.h.
8635 (alpha_handle_option): Update to new hook interface.
8636 * config/arm/arm.c: Include opts.h.
8637 (arm_handle_option): Update to new hook interface.
8638 * config/arm/t-arm (arm.o): Update dependencies.
8639 * config/bfin/bfin.c: Include opts.h.
8640 (bfin_handle_option): Update to new hook interface.
8641 * config/cris/cris.c: Include opts.h.
8642 (cris_handle_option): Update to new hook interface.
8643 * config/frv/frv.c: Include opts.h.
8644 (frv_handle_option): Update to new hook interface.
8645 * config/i386/i386.c: Include opts.h.
8646 (ix86_handle_option): Update to new hook interface.
8647 (ix86_valid_target_attribute_inner_p): Generate option structure
8648 for call to ix86_handle_option.
8649 * config/i386/t-i386 (i386.o): Update dependencies.
8650 * config/ia64/ia64.c: Include opts.h.
8651 (ia64_handle_option): Update to new hook interface.
8652 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8653 * config/iq2000/iq2000.c: Include opts.h.
8654 (iq2000_handle_option): Update to new hook interface.
8655 * config/m32c/m32c.c: Include opts.h.
8656 (m32c_handle_option): Update to new hook interface.
8657 * config/m32r/m32r.c: Include opts.h.
8658 (m32r_handle_option): Update to new hook interface.
8659 * config/m68k/m68k.c: Include opts.h.
8660 (m68k_handle_option): Update to new hook interface.
8661 * config/mep/mep.c: Include opts.h.
8662 (mep_handle_option): Update to new hook interface.
8663 * config/microblaze/microblaze.c: Include opts.h.
8664 (microblaze_handle_option): Update to new hook interface.
8665 * config/mips/mips.c: Include opts.h.
8666 (mips_handle_option): Update to new hook interface.
8667 * config/mn10300/mn10300.c: Include opts.h.
8668 (mn10300_handle_option): Update to new hook interface.
8669 * config/pa/pa.c: Include opts.h.
8670 (pa_handle_option): Update to new hook interface.
8671 * config/pdp11/pdp11.c: Include opts.h.
8672 (pdp11_handle_option): Update to new hook interface.
8673 * config/rs6000/rs6000.c: Include opts.h.
8674 (rs6000_handle_option): Update to new hook interface.
8675 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8676 * config/rx/rx.c: Include opts.h.
8677 (rx_handle_option): Update to new hook interface.
8678 * config/s390/s390.c: Include opts.h.
8679 (s390_handle_option): Update to new hook interface.
8680 * config/score/score.c: Include opts.h.
8681 (score_handle_option): Update to new hook interface.
8682 * config/sh/sh.c: Include opts.h.
8683 (sh_handle_option): Update to new hook interface.
8684 * config/sparc/sparc.c: Include opts.h.
8685 (sparc_handle_option): Update to new hook interface.
8686 * config/v850/v850.c: Include opts.h.
8687 (v850_handle_option): Update to new hook interface.
8689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8691 * gcc.c (driver_unknown_option_callback): Only permit and save
8692 unknown -Wno- options.
8693 (driver_wrong_lang_callback): Save options directly instead of via
8694 driver_unknown_option_callback.
8696 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8698 * combine.c (simplify_set): Try harder to find the best CC mode when
8699 simplifying a nested COMPARE on the RHS.
8701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8703 * config/alpha/gnu.h: Remove.
8704 * config/arc: Remove directory.
8705 * config/arm/netbsd.h: Remove.
8706 * config/arm/t-pe: Remove.
8707 * config/crx: Remove directory.
8708 * config/i386/netbsd.h: Remove.
8709 * config/m68hc11: Remove directory.
8710 * config/m68k/uclinux-oldabi.h: Remove.
8711 * config/mcore/mcore-pe.h: Remove.
8712 * config/mcore/t-mcore-pe: Remove.
8713 * config/netbsd-aout.h: Remove.
8714 * config/rs6000/gnu.h: Remove.
8715 * config/sh/sh-symbian.h: Remove.
8716 * config/sh/symbian-base.c: Remove.
8717 * config/sh/symbian-c.c: Remove.
8718 * config/sh/symbian-cxx.c: Remove.
8719 * config/sh/symbian-post.h: Remove.
8720 * config/sh/symbian-pre.h: Remove.
8721 * config/sh/t-symbian: Remove.
8722 * config/svr3.h: Remove.
8723 * config/vax/netbsd.h: Remove.
8724 * config.build: Don't handle i[34567]86-*-pe.
8725 * config.gcc: Remove handling of deprecations for most deprecated
8727 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8728 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8729 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8730 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8731 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8732 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8734 * config.host: Don't handle i[34567]86-*-pe.
8735 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8736 (ASM_SPEC32): Don't handle -mcall-gnu.
8737 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8739 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8740 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8741 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8742 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8743 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8744 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8745 conditional on SYMBIAN.
8746 * configure.ac: Don't handle powerpc*-*-gnu*.
8747 * configure: Regenerate.
8748 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8749 * doc/install-old.texi (m6811, m6812): Don't mention.
8750 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8751 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8752 (m68k-uclinuxoldabi): Don't mention.
8753 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8755 (-mcall-gnu): Remove.
8756 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8757 families): Remove constraint documentation.
8759 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8761 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8762 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8763 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8765 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8768 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8769 vector when peeking at the next token for vector, don't expand the
8772 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8774 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8775 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8776 * config/avr/avr.c (init_cumulative_args)
8777 (avr_function_arg_advance): Use it.
8778 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8780 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8781 (avr_function_ok_for_sibcall): ...this new function.
8782 (avr_lookup_function_attribute1): New static Function.
8783 (avr_naked_function_p, interrupt_function_p)
8784 (signal_function_p, avr_OS_task_function_p)
8785 (avr_OS_main_function_p): Use it.
8786 * config/avr/avr.md ("sibcall", "sibcall_value")
8787 ("sibcall_epilogue"): New expander.
8788 ("*call_insn", "*call_value_insn"): New insn.
8789 ("call_insn", "call_value_insn"): Remove
8790 ("call", "call_value", "epilogue"): Change expander to handle
8793 2011-03-21 Nick Clifton <nickc@redhat.com>
8795 * doc/invoke.texi (Overall Options): Move closing brace to end of
8797 (Optimization Options): Add missing @gol.
8798 (Directory Options): Likewise.
8799 (i386 and x86-64 Options): Likewise.
8800 (RS6000 and PowerPC Options): Likewise.
8801 (i386 and x86-64 Windows Options): Likewise.
8802 (V850 Options): Add text missing from descriptions.
8804 2011-03-22 Richard Henderson <rth@redhat.com>
8806 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8807 (avr_incoming_return_addr_rtx): New.
8808 (emit_push_byte): New.
8809 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8810 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8811 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8812 (emit_pop_byte): New.
8813 (expand_epilogue): Use it. Pop frame pointer by bytes.
8814 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8815 (INCOMING_RETURN_ADDR_RTX): New.
8816 (INCOMING_FRAME_SP_OFFSET): New.
8817 (ARG_POINTER_CFA_OFFSET): New.
8818 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8819 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8822 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8824 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8826 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8827 (FUNCTION_ARG_ADVANCE): Likewise.
8828 * tm.texi.in: Change references to them to hook references.
8829 * tm.texi: Regenerate.
8830 * targhooks.c (default_function_arg): Eliminate check for target
8832 (default_function_incoming_arg): Likewise.
8833 (default_function_arg_advance): Likewise.
8834 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8835 (function_arg_advance): Likewise.
8836 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8838 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8840 * tree.c (build_call_1): New function.
8841 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8843 2011-03-22 Richard Guenther <rguenther@suse.de>
8845 PR tree-optimization/48228
8846 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8847 for single-arg PHIs.
8849 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8851 PR rtl-optimization/48143
8852 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8853 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8854 sse2_cvtps2pd): Likewise.
8856 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8858 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8860 2011-03-22 Richard Guenther <rguenther@suse.de>
8862 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8863 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8864 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8865 and REALIGN_LOAD_EXPR.
8866 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8867 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8868 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8869 DOT_PROD_EXPR case ...
8870 (expand_expr_real_2): ... here.
8871 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8872 and REALIGN_LOAD_EXPR.
8873 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8874 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8875 (vect_create_epilog_for_reduction): Likewise.
8876 (vectorizable_reduction): Likewise.
8877 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8878 * tree-vect-stmts.c (vectorizable_load): Likewise.
8880 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8882 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8884 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8886 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8887 handling for PLTOFF/GOTOFF.
8889 2011-03-22 Nick Clifton <nickc@redhat.com>
8891 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8892 trailing backslash from the end of the macro definition.
8894 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8896 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8899 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8901 * expr.h (prepare_operand): Move to...
8902 * optabs.h (prepare_operand): ...here and change the insn code
8903 parameter from "int" to "enum insn_code".
8904 (insn_operand_matches): Declare.
8905 * expr.c (init_expr_target): Use insn_operand_matches.
8906 (compress_float_constant): Likewise.
8907 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8908 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8909 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8910 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8912 (gen_cond_trap): Likewise.
8913 (prepare_operand): Likewise. Change icode to an insn_code.
8914 (insn_operand_matches): New function.
8915 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8916 * reload1.c (gen_reload): Likewise.
8917 * targhooks.c (default_secondary_reload): Likewise.
8919 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8921 * config/alpha/alpha.md (unspec): New define_c_enum.
8924 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8927 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8928 between a call and its CALL_ARG_LOCATION note.
8930 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8932 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8934 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8938 * c-common.c (shorten_compare): If primopN is first sign-extended
8939 to opN and then zero-extended to result type, set primopN to opN.
8941 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8943 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8944 for barrier handlers.
8946 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8948 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8949 UNSPEC constants to be in the unspec enumeration, and redefine
8950 all UNSPECV constants to be in the unspecv enumeration, so that
8951 dumps print which unspec/unspec_volatile this is.
8952 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8953 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8954 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8955 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8956 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8958 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8959 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8960 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8961 * config/rs6000/sync.md (isync, lwsync): Ditto.
8963 2011-03-21 Richard Guenther <rguenther@suse.de>
8965 * params.def (lto-min-partition): Fix typo.
8967 2011-03-21 Richard Guenther <rguenther@suse.de>
8970 * c-decl.c (grokdeclarator): Drop to the main variant only
8971 for array types. Drop flag_gen_aux_info check.
8973 2011-03-21 Richard Guenther <rguenther@suse.de>
8975 PR translation/47911
8976 * params.def (lto-partitions): Fix typo.
8977 (lto-min-partition): Fix wording.
8979 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8981 * config/rs6000/t-freebsd: Remove duplication from file.
8983 2011-03-21 Richard Guenther <rguenther@suse.de>
8986 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8988 2011-03-21 Richard Guenther <rguenther@suse.de>
8991 * params.def (lto-partitions): Require at least 1 partition.
8993 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8995 * gthr-solaris.h: Remove.
8996 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8997 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8998 (LIB_SPEC): Likewise.
8999 * config/sol2.opt (threads): Remove.
9000 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9001 (sparc*-*-solaris2*): Likewise.
9002 * configure.ac (enable_threads): Enable solaris support.
9003 * configure: Regenerate.
9004 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9005 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9010 * config.gcc: Obsolete *-*-solaris2.8*.
9011 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9013 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9016 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9017 reference. Solaris 8 perl works.
9019 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9022 * doc/install.texi (Prerequisites): Move jar etc. up.
9023 Explain support library version requirements.
9025 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9028 * doc/install.texi (Prerequisites): Move Perl to build
9029 requirements. Always necessary on Solaris 2 with Sun ld.
9031 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9033 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9035 (Specific, i?86-*-solaris2.[89]): Likewise.
9036 (Specific, i?86-*-solaris2.10): Likewise.
9037 (Specific, mips-sgi-irix6): Likewise.
9038 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9039 Update for binutils 2.21.
9041 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9043 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9044 Allow -fuse-linker-plugin for non-default plugin linker.
9045 * configure: Regenerate.
9047 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9050 * gengtype.c (files_rules): Added rule for cp/parser.h.
9052 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9055 * config/s390/s390.c (s390_delegitimize_address): Don't call
9056 lowpart_subreg if orig_x has BLKmode.
9058 2011-03-21 Kai Tietz <ktietz@redhat.com>
9061 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9062 * tree.h (attribute_spec): Add new member affects_type_identity.
9063 * attribs.c (empty_attribute_table): Adjust attribute_spec
9065 * config/alpha/alpha.c: Likewise.
9066 * config/arc/arc.c: Likewise.
9067 * config/arm/arm.c: Likewise.
9068 * config/avr/avr.c: Likewise.
9069 * config/bfin/bfin.c: Likewise.
9070 * config/crx/crx.c: Likewise.
9071 * config/darwin.h: Likewise.
9072 * config/h8300/h8300.c: Likewise.
9073 * config/i386/cygming.h: Likewise.
9074 * config/i386/i386.c: Likewise.
9075 * config/ia64/ia64.c: Likewise.
9076 * config/m32c/m32c.c: Likewise.
9077 * config/m32r/m32r.c: Likewise.
9078 * config/m68hc11/m68hc11.c: Likewise.
9079 * config/m68k/m68k.c: Likewise.
9080 * config/mcore/mcore.c: Likewise.
9081 * config/mep/mep.c: Likewise.
9082 * config/microblaze/microblaze.c: Likewise.
9083 * config/mips/mips.c: Likewise.
9084 * config/rs6000/rs6000.c: Likewise.
9085 * config/rx/rx.c: Likewise.
9086 * config/sh/sh.c: Likewise.
9087 * config/sol2.h: Likewise.
9088 * config/sparc/sparc.c: Likewise.
9089 * config/spu/spu.c: Likewise.
9090 * config/stormy16/stormy16.c: Likewise.
9091 * config/v850/v850.c: Likewise.
9093 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9095 * simplify-rtx.c (simplify_binary_operation_1): Handle
9096 (xor (and A B) C) case when B and C are both constants.
9098 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9100 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9102 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9105 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9107 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9109 PR rtl-optimization/48156
9110 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9111 assume df and df_lr are not NULL.
9113 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9116 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9117 between a call and its CALL_ARG_LOCATION note.
9119 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9122 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9123 between a call and its corresponding CALL_ARG_LOCATION note.
9125 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9127 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9128 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9129 * haifa-sched.c (setup_ref_regs): Ditto.
9130 * caller-save.c (add_used_regs_1): Ditto.
9131 * dse.c (look_for_hardregs): Ditto.
9132 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9133 * sched-rgn.c (check_live_1): Ditto.
9135 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9137 * c-decl.c (diagnose_mismatched_decls): Give an error for
9138 redefining a typedef with variably modified type.
9140 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9142 * c-decl.c (grokfield): Don't allow typedefs for structures or
9143 unions with no tag by default.
9144 * doc/extend.texi (Unnamed Fields): Update.
9146 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9148 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9149 Rewrite using indirect functions.
9150 (lwp_slwpcb): Ditto.
9151 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9152 (avx_vinsertf128<mode>): Ditto.
9154 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9156 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9159 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9161 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9162 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9164 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9166 PR rtl-optimization/48170
9167 * gcse.c (hoist_code): Remove bogus asserts.
9169 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9171 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9172 computation for prologue/epilogue.
9174 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9176 * Makefile.in (check-consistency): Remove.
9178 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9181 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9182 arange_table_in_use is 0, but either text_section_used or
9183 cold_text_section_used is true. Don't call it if
9184 !info_section_emitted.
9186 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9188 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9189 FUNCTION_VALUE_REGNO_P): Remove.
9190 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9192 * config/avr/avr.c (avr_ret_register): Make static inline.
9193 (avr_function_value_regno_p): New function.
9194 (avr_libcall_value): Make static. Add 'func' argument.
9195 (avr_function_value): Make static. Rename 'func' argument to
9196 'fn_decl_or_type', forward it to avr_libcall_value. Call
9197 avr_ret_register function instead of RET_REGISTER macro.
9198 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9200 2011-03-18 Jason Merrill <jason@redhat.com>
9203 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9205 2011-03-18 Richard Guenther <rguenther@suse.de>
9207 * doc/install.texi (--enable-gold): Remove.
9208 (--with-plugin-ld): Document.
9209 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9211 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9214 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9215 again after expansion changes.
9217 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9219 * combine.c (try_combine): Do simplification only call of
9220 subst() on i2 even when i1 is present. Update comments.
9222 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9224 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9225 and UNSPEC_PCREL_SYMOFF.
9227 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9229 * config/s390/s390.md: Use define_c_enum for the unspec constant
9232 2011-03-18 Richard Henderson <rth@redhat.com>
9233 Jakub Jelinek <jakub@redhat.com>
9236 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9237 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9239 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9242 * combine.c (cant_combine_insn_p): Don't check zero/sign
9243 extended hard registers.
9245 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9248 * combine.c (cant_combine_insn_p): Check zero/sign extended
9251 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9253 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9254 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9255 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9256 Change return type to bool.
9257 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9259 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9262 * var-tracking.c (prepare_call_arguments): If CALL target
9263 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9264 pc instead of looking it up using cselib_lookup and use
9265 Pmode for it if x has VOIDmode.
9266 * dwarf2out.c (gen_subprogram_die): If also both first and
9267 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9270 * function.c (assign_parms): For data.passed_pointer parms
9271 use MEM of data.entry_parm instead of data.entry_parm itself
9272 as DECL_INCOMING_RTL.
9273 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9274 also when passed and declared mode is the same, DECL_RTL
9275 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9278 2011-03-16 Jeff Law <law@redhat.com>
9280 PR rtl-optimization/37273
9281 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9282 handle them like argument loads from stack slots. Do not double
9283 count memory for memory constants and argument loads from stack slots.
9285 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9288 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9290 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9293 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9295 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9298 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9300 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9301 Clear call_arg_locations and call_arg_loc_last always.
9304 * var-tracking.c (prepare_call_arguments): If argument needs to be
9305 passed by reference, adjust argtype and mode.
9307 2011-03-17 Richard Guenther <rguenther@suse.de>
9310 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9311 a value make sure to fold the statement.
9313 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9316 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9317 return condition with !cfun->calls_alloca.
9319 2011-03-17 Richard Guenther <rguenther@suse.de>
9322 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9323 origin for decls in other ltrans units.
9324 (input_varpool_node): Likewise.
9326 2011-03-17 Richard Guenther <rguenther@suse.de>
9329 * tree-object-size.c (compute_object_offset): Properly return
9330 the offset operand of MEM_REFs as sizetype.
9332 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9334 PR rtl-optimization/48141
9335 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9336 * dse.c: Include params.h.
9337 (active_local_stores_len): New variable.
9338 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9340 (record_store, check_mem_read_rtx): Decrease it when removing
9342 (scan_insn): Likewise. Increase it when adding to chain, if it
9343 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9344 set active_local_stores to NULL before the addition.
9345 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9347 PR rtl-optimization/48141
9348 * dse.c (record_store): If no positions are needed in an insn
9349 that cannot be deleted, at least unchain it from active_local_stores.
9351 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9354 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9355 (lookup_type_die_strip_naming_typedef): ... here.
9356 (get_context_die): Use it.
9357 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9358 the anonymous struct named by the naming typedef.
9360 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9363 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9364 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9366 2011-03-16 Jeff Law <law@redhat.com>
9368 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9369 check for operands of conditional. Allow type to be a pointer.
9371 2011-03-16 Richard Guenther <rguenther@suse.de>
9373 PR tree-optimization/48149
9374 * fold-const.c (fold_binary_loc): Fold
9375 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9377 2011-03-16 Richard Guenther <rguenther@suse.de>
9379 PR tree-optimization/26134
9380 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9381 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9382 (non_rewritable_mem_ref_base): Handle complex type component
9383 accesses, constrain offsets for vector and complex extracts
9386 2011-03-16 Richard Guenther <rguenther@suse.de>
9388 PR tree-optimization/48146
9389 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9390 operands avoiding the need for renaming.
9392 2011-03-16 Richard Guenther <rguenther@suse.de>
9394 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9395 constant folding. Move MEM_REF canonicalization first.
9396 Rely on fold_const_aggregate_ref for initializer folding.
9397 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9399 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9402 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9403 arg0/arg1 or their arguments are always fold converted to matching
9406 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9409 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9412 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9413 Handle in-tree gold.
9414 (ld_vers): Extract binutils version for gold.
9415 (gcc_cv_ld_hidden): Handle gold here.
9416 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9417 * configure: Regenerate.
9418 * config.in: Regenerate.
9419 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9420 -fuse-linker-plugin otherwise.
9421 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9422 (LINK_COMMAND_SPEC): Use it.
9423 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9425 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9427 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9428 * calls.c: Remove debug.h include.
9429 (emit_call_1): Don't call virtual_call_token debug hook.
9430 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9431 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9432 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9433 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9434 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9435 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9436 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9437 dwarf2out_virtual_call): Remove.
9438 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9439 copy_call_info and virtual_call hooks.
9440 (dwarf2out_init): Don't initialize vcall_insn_table,
9441 debug_dcall_section and debug_vcall_section.
9442 (prune_unused_types): Don't mark nodes from dcall_table.
9443 (dwarf2out_finish): Don't output dcall or vcall tables.
9444 * final.c (final_scan_insn): Don't call direct_call or
9445 virtual_call debug hooks.
9446 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9447 virtual_call_token, copy_call_info and virtual_call hooks.
9448 (debug_nothing_uid): Remove prototype.
9449 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9450 copy_call_info and virtual_call hooks.
9451 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9452 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9453 * debug.c (do_nothing_debug_hooks): Likewise.
9454 (debug_nothing_uid): Remove.
9455 * doc/invoke.texi (-fenable-icf-debug): Remove.
9456 * common.opt (-fenable-icf-debug): Likewise.
9458 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9459 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9460 call's MEM. Handle functions returning aggregate through a hidden
9461 first pointer. For virtual calls add clobbered pc to call arguments
9463 * dwarf2out.c (gen_subprogram_die): Emit
9464 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9468 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9469 * rtl.h (ENTRY_VALUE_EXP): Define.
9470 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9471 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9472 * print-rtl.c (print_rtx): Likewise.
9473 * gengtype.c (adjust_field_rtx_def): Likewise.
9474 * var-tracking.c (vt_add_function_parameter): Adjust
9475 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9476 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9477 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9478 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9479 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9481 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9482 Call var_location debug hook even on CALL_INSNs.
9483 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9484 * rtl.def (ENTRY_VALUE): New.
9485 * dwarf2out.c: Include cfglayout.h.
9486 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9487 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9488 (struct call_arg_loc_node): New type.
9489 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9490 tail_call_site_count): New variables.
9491 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9492 DW_TAG_GNU_call_site_parameter.
9493 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9494 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9495 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9496 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9497 and DW_AT_GNU_all_source_call_sites.
9498 (mem_loc_descriptor): Handle ENTRY_VALUE.
9499 (add_src_coords_attributes): Don't add enything if
9500 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9501 (dwarf2out_abstract_function): Save and clear call_arg_location,
9502 call_site_count and tail_call_site_count around dwarf2out_decl call.
9503 (gen_call_site_die): New function.
9504 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9505 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9506 (dwarf2out_function_decl): Clear call_arg_locations,
9507 call_arg_loc_last, set call_site_count and tail_call_site_count
9508 to -1 and free block_map.
9509 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9510 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9511 followed by any real instructions.
9512 (dwarf2out_begin_function): Set call_site_count and
9513 tail_call_site_count to 0.
9514 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9515 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9516 attempt to force a DIE for it and worst case remove the attribute.
9517 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9518 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9520 * var-tracking.c: Include tm_p.h.
9521 (vt_stack_adjustments): For calls call note_register_arguments.
9522 (argument_reg_set): New variable.
9523 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9524 ensure the VALUE is resolved.
9525 (call_arguments): New variable.
9526 (prepare_call_arguments): New function.
9527 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9528 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9529 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9530 always use the best expression.
9531 (vt_expand_loc): Add ignore_cur_loc argument.
9532 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9533 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9534 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9536 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9537 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9538 argument. Don't call cselib_preserve_only_values and
9540 (note_register_arguments): New function.
9541 (vt_initialize): Compute argument_reg_set. Call
9542 vt_add_function_parameters before processing basic blocks instead of
9543 afterwards. For calls call prepare_call_arguments before calling
9544 cselib_process_insn.
9545 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9546 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9547 (var-tracking.o): Depend on $(TM_P_H).
9548 * cfglayout.h (insn_scope): New prototype.
9549 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9550 * cfglayout.c (insn_scope): No longer static.
9551 * insn-notes.def (CALL_ARG_LOCATION): New.
9552 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9553 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9554 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9555 nothing for DECL_EXTERNAL BLOCK_VARS.
9557 2011-03-16 Alan Modra <amodra@gmail.com>
9560 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9561 create invalid offset address for vsx splat insn.
9562 * config/rs6000/predicates.md (splat_input_operand): New.
9563 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9565 2011-03-15 Xinliang David Li <davidxl@google.com>
9568 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9569 (normalize_preds): New function.
9570 (is_use_properly_guarded): Normalize def predicates.
9572 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9575 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9576 in the output template.
9578 2011-03-15 Richard Guenther <rguenther@suse.de>
9581 * tree-pretty-print.c (dump_function_declaration): Properly
9582 dump unprototyped and varargs function types.
9584 2011-03-15 Richard Guenther <rguenther@suse.de>
9586 PR tree-optimization/13954
9587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9590 2011-03-15 Richard Guenther <rguenther@suse.de>
9592 PR tree-optimization/48037
9593 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9594 selects into BIT_FIELD_REFs.
9595 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9598 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9600 PR tree-optimization/48129
9601 * builtins.c (fold_builtin_snprintf): Convert to type of
9602 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9603 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9605 2011-03-15 Richard Guenther <rguenther@suse.de>
9607 PR tree-optimization/41490
9608 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9609 value but with VUSE.
9610 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9612 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9613 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9614 * tree-tailcall.c (find_tail_calls): Ignore returns.
9616 2011-03-15 Richard Guenther <rguenther@suse.de>
9619 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9620 or variable-indexed array accesses when in gimple form.
9622 2011-03-15 Richard Guenther <rguenther@suse.de>
9624 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9626 2011-03-15 Alan Modra <amodra@gmail.com>
9629 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9630 presume symbol_refs without a symbol_ref_decl are suitably
9631 aligned, nor other trees we may see here. Handle anchor symbols.
9632 (legitimate_constant_pool_address_p): Comment. Add mode param.
9633 Check cmodel=medium addresses. Adjust all calls.
9634 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9635 creating cmodel=medium optimized access to locals.
9636 * config/rs6000/constraints.md (R): Pass QImode to
9637 legitimate_constant_pool_address_p.
9638 * config/rs6000/predicates.md (input_operand): Pass mode to
9639 legitimate_constant_pool_address_p.
9640 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9643 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9646 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9647 64-bit constants being loaded into registers other than GPRs such
9648 as loading 0 into a VSX register.
9650 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9652 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9654 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9657 * builtins.c (fold_builtin_snprintf): New function.
9658 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9659 (fold_builtin_4): Likewise.
9662 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9663 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9664 and C - X == X also strip nops from +/-/p+ operand.
9665 When optimizing -X == C, fold C to arg0's type.
9668 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9669 emit it as add_AT_int instead of add_AT_unsigned.
9671 2011-03-14 Tom Tromey <tromey@redhat.com>
9673 * unwind-dw2.c: Include sys/sdt.h if it exists.
9674 (_Unwind_DebugHook): Use STAP_PROBE2.
9675 * config.in, configure: Rebuild.
9676 * configure.ac: Check for sys/sdt.h.
9678 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9680 * config/i386/i386.md (ROUND_FLOOR): New constant.
9681 (ROUND_CEIL): Ditto.
9682 (ROUND_TRUNC): Ditto.
9683 (ROUND_MXCSR): Ditto.
9684 (ROUND_NO_EXC): Ditto.
9685 (rint<mode>2): Use new defines instead of numerical constants.
9686 (floor<mode>2): Ditto.
9687 (ceil<mode>2): Ditto.
9688 (btrunc<mode>2): Ditto.
9689 * config/i386/i386-builtin-types.def: Define ROUND function type
9691 * config/i386/i386.c (enum ix86_builtins): Add
9692 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9693 (struct builtin_description): Add
9694 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9695 (ix86_expand_sse_round): New static function.
9696 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9698 (ix86_builtin_vectorized_function): Handle
9699 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9701 2011-03-14 Tom Tromey <tromey@redhat.com>
9703 * c-parser.c (c_parser_asm_string_literal): Clear
9704 warn_overlength_strings.
9706 2011-03-14 Tom Tromey <tromey@redhat.com>
9708 * c-parser.c (disable_extension_diagnostics): Save
9709 warn_overlength_strings.
9710 (restore_extension_diagnostics): Restore warn_overlength_strings.
9712 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9714 * BASE-VER: Change to 4.7.0.
9716 2011-03-14 Richard Guenther <rguenther@suse.de>
9719 * tree.c (build_vector_from_val): Adjust assert to requirements
9722 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9725 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9727 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9729 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9730 terms of target_flags_explicit. Adjust copyright year.
9732 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9733 * config/rs6000/t-freebsd: New file. Add override for
9736 2011-03-13 Chris Demetriou <cgd@google.com>
9738 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9739 (-fno-diagnostics-show-option): this, to reflect current default.
9740 (-Werror=): Update text about -fno-diagnostics-show-option.
9742 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9745 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9746 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9747 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9748 mode is not V2DImode or V2DFmode.
9749 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9750 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9751 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9753 (movdi_internal64): Likewise.
9755 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9757 PR tree-optimization/47127
9758 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9760 (set_cloog_options): Same.
9761 (scop_to_clast): Same.
9762 (print_clast_stmt): Do not call cloog_state_malloc and
9764 (print_generated_program): Same.
9766 * graphite-clast-to-gimple.h (cloog_state): Declared.
9767 (scop_to_clast): Adjust declaration.
9768 * graphite.c (cloog_state): Defined here.
9769 (graphite_initialize): Call cloog_state_malloc.
9770 (graphite_finalize): Call cloog_state_free.
9772 2011-03-11 Jason Merrill <jason@redhat.com>
9774 * attribs.c (lookup_attribute_spec): Take const_tree.
9777 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9779 * config/sparc/sparc.c (sparc_option_override): Use
9780 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9782 2011-03-11 Richard Guenther <rguenther@suse.de>
9784 PR tree-optimization/48067
9785 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9786 multiplication result will be only used once on the target
9789 2011-03-11 Richard Guenther <rguenther@suse.de>
9791 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9793 2011-03-11 Richard Guenther <rguenther@suse.de>
9796 * tree.c (find_decls_types_r): Do not walk types only reachable
9797 from IDENTIFIER_NODEs.
9799 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9802 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9803 all vnode->force_output nodes as needed.
9805 2011-03-11 Jason Merrill <jason@redhat.com>
9808 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9809 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9811 2011-03-11 Martin Jambor <mjambor@suse.cz>
9813 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9816 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9818 PR tree-optimization/48063
9819 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9820 inline functions called once if !tree_can_inline_p (node->callers).
9822 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9824 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9826 * config/score/score3.c: Delete.
9827 * config/score/score3.h: Delete.
9828 * config/score/mul-div.S: Delete.
9829 * config/score/sfp-machine.h: Add new file.
9830 * config/score/constraints.md: Add new file.
9831 * config/score/t-score-softfp: Add new file.
9832 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9833 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9834 (score7_extra_constraint): Delete.
9835 (score7_option_override): Remove unused code.
9836 * config/score/score.c: Remove score3 and score5 define and code.
9837 * config/score/score.h: Remove score3 and score5 define and code.
9838 * config/score/score.md: Remove score3 template and unusual insn.
9839 * config/score/score.opt: Remove score3 and score5 options.
9841 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9843 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9844 when _HPUX_SOURCE is defined.
9845 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9847 2011-03-10 Jason Merrill <jason@redhat.com>
9850 * stor-layout.c (layout_type): Don't set structural equality
9851 on arrays of incomplete type.
9852 * tree.c (type_hash_eq): Handle comparing them properly.
9854 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9857 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9858 result mode matches original rtl mode.
9860 2011-03-10 Nick Clifton <nickc@redhat.com>
9862 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9863 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9865 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9867 PR rtl-optimization/47866
9868 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9869 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9870 if target wasn't scalar.
9871 * function.c (assign_stack_temp_for_type): Assert that neither
9872 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9873 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9875 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9877 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9879 * config/s390/s390-protos.h (s390_label_align): New prototype.
9880 * config/s390/s390.c (s390_label_align): New function.
9881 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9883 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9886 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9887 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9888 (output_vec_const_move): Ditto.
9890 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9892 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9893 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9894 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9895 Change 'rclass' argument and result type to reg_class_t.
9896 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9898 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9900 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9901 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9902 (TARGET_MEMORY_MOVE_COST): Define.
9903 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9905 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9908 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9911 PR tree-optimization/48022
9912 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9915 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9918 * var-tracking.c (find_use_val): Return NULL for
9919 cui->sets && cui->store_p BLKmode MEMs.
9921 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9923 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9925 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9926 xstormy16_print_operand_address): Remove.
9927 * config/stormy16/stormy16.c (xstormy16_print_operand,
9928 xstormy16_print_operand_address): Make static.
9929 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9931 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9934 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9935 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9938 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9941 * cfgloopmanip.c (fix_bb_placements): Return immediately
9942 if FROM is BASE_LOOP's header.
9944 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9946 * gimplify.c (gimplify_function_tree): Fix building calls
9947 to __builtin_return_address.
9949 2011-03-07 Alan Modra <amodra@gmail.com>
9951 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9952 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9953 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9954 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9956 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9957 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9958 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9959 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9960 * config/rs6000/rs6000.c
9961 (rs6000_elf_end_indicate_exec_stack): Rename to..
9962 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9963 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9964 (rs6000_file_start): ..here.
9965 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9966 file scope variables.
9967 (call_ABI_of_interest): New function.
9968 (init_cumulative_args): Set above vars when function return value
9969 is a float, vector, or small struct.
9970 (rs6000_function_arg_advance_1): Likewise for function args.
9971 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9972 references float args.
9974 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9976 * doc/cfg.texi: Remove "See" before @ref.
9977 * doc/invoke.texi: Likewise.
9979 2011-03-05 Jason Merrill <jason@redhat.com>
9981 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9983 2011-03-05 Anthony Green <green@moxielogic.com>
9985 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9987 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9989 PR rtl-optimization/47899
9990 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9991 to flow_loop_nested_p when moving the loop upward.
9993 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9996 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9998 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10000 PR tree-optimization/47967
10001 * ipa-cp.c (build_const_val): Return NULL instead of creating
10002 VIEW_CONVERT_EXPR for mismatching sizes.
10003 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10004 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10005 give up on versioning.
10007 2011-03-05 Alan Modra <amodra@gmail.com>
10010 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10011 full cmodel medium/large lo_sum + high addresses.
10013 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10015 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10016 pool references in UNSPEC_LTREL_OFFSET.
10018 2011-03-04 Jan Hubicka <jh@suse.cz>
10021 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10022 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10023 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10025 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10026 cgraph_add_thunk): Add node pointers.
10027 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10028 associated to right node.
10029 (input_node): Update use of cgraph_same_body_alias
10030 and cgraph_add_thunk.
10032 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10034 * config/i386/i386.opt (mprefer-avx128): New flag.
10035 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10036 modes when the flag -mprefer-avx128 is on.
10038 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10040 * dwarf2out.c (compare_loc_operands): Fix address handling.
10042 2011-03-04 Alan Modra <amodra@gmail.com>
10044 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10046 2011-03-04 Richard Guenther <rguenther@suse.de>
10048 PR middle-end/47968
10049 * expmed.c (extract_bit_field_1): Prefer vector modes that
10050 vec_extract patterns can handle.
10052 2011-03-04 Richard Guenther <rguenther@suse.de>
10054 PR middle-end/47975
10055 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10057 2011-03-04 Richard Henderson <rth@redhat.com>
10059 * explow.c (emit_stack_save): Remove 'after' parameter.
10060 (emit_stack_restore): Likewise.
10061 * expr.h: Update to match.
10062 * builtins.c, calls.c, stmt.c: Likewise.
10063 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10064 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10065 * function.c (expand_function_end): Insert the emit_stack_save
10066 sequence before parm_birth_insn instead of after.
10068 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10070 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10071 (ssse3_pmaddubsw128): Ditto.
10072 (ssse3_pmaddubsw): Ditto.
10074 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10076 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10078 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10081 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10082 on TYPE_SIZE_UNIT if it is a DECL.
10085 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10086 first operand is not is_gimple_mem_ref_addr, try to fold it.
10087 If the operand still isn't is_gimple_mem_ref_addr, clear
10090 2011-03-03 Richard Guenther <rguenther@suse.de>
10092 PR middle-end/47283
10093 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10095 (refs_may_alias_p_1): For release branches return true if
10096 we are confused by our input.
10098 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10100 * config/s390/s390.c (s390_function_value): Rename to ...
10101 (s390_function_and_libcall_value): ... this.
10102 (s390_function_value): New function.
10103 (s390_libcall_value): New function.
10104 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10105 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10106 target macro definitions.
10107 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10109 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10111 * config/i386/freebsd64.h (CC1_SPEC): Define.
10112 * config/i386/linux64.h (CC1_SPEC): Define.
10113 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10115 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10117 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10119 * config/stormy16/stormy16.c: Include reload.h.
10120 (xstormy16_memory_move_cost): New function.
10121 (TARGET_MEMORY_MOVE_COST): Define.
10123 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10125 PR rtl-optimization/47925
10126 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10127 with side effects. Remove the more-specific check for volatile asms.
10129 2011-03-02 Alan Modra <amodra@gmail.com>
10132 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10133 toc relative addresses for valid offsets.
10135 2011-03-01 Richard Guenther <rguenther@suse.de>
10137 PR tree-optimization/47890
10138 * tree-vect-loop.c (get_initial_def_for_induction): Set
10139 related stmt properly.
10141 2011-03-01 Richard Guenther <rguenther@suse.de>
10144 * lto-streamer.c (lto_record_common_node): Also register
10145 the canonical type.
10147 2011-03-01 Richard Guenther <rguenther@suse.de>
10150 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10151 Do not stream DECL_ABSTRACT_ORIGIN.
10152 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10153 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10154 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10155 Do not stream DECL_ABSTRACT_ORIGIN.
10156 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10157 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10159 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10161 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10162 FUNCTION_VALUE_REGNO_P): Remove.
10163 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10164 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10165 Add 'outgoing' argument.
10166 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10168 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10169 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10171 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10174 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10175 (lookup_filename): Likewise.
10176 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10178 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10179 Jakub Jelinek <jakub@redhat.com>
10181 PR middle-end/47893
10182 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10183 (assign_stack_local_1): Change last argument type to int.
10184 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10185 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10186 don't record padding space into frame_space_list nor use those areas.
10187 (assign_stack_local): Adjust caller.
10188 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10189 of assign_stack_local, pass 0 as last argument.
10190 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10193 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10196 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10197 Use target address_mode and pointer_mode hooks instead of hardcoded
10198 Pmode and ptr_mode. Handle some simple cases of extending if
10199 POINTERS_EXTEND_UNSIGNED < 0.
10200 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10201 Call convert_debug_memory_address.
10202 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10203 convert_debug_memory_address.
10205 PR middle-end/46790
10206 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10207 * configure: Regenerated.
10208 * config.in: Regenerated.
10209 * varasm.c (default_function_section): Return NULL
10210 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10212 2011-02-28 Martin Jambor <mjambor@suse.cz>
10214 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10215 the description to match the printed values.
10217 2011-02-28 Richard Guenther <rguenther@suse.de>
10219 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10220 of the copied scope tree.
10222 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10224 * doc/extend.texi (Function Attributes): Avoid deeply (and
10225 wrongly) nested tables.
10227 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10229 PR middle-end/47903
10230 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10231 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10232 r isn't op0 nor op1.
10234 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10236 * config/avr/avr.md: Remove magic comment for emacs.
10238 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10241 * config/avr/avr.c (avr_option_override): Use error on bad options.
10242 (avr_help): New function.
10243 (TARGET_HELP): Define.
10245 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10248 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10249 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10251 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10253 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10254 (ARM Options): Ditto.
10255 (i386 and x86-64 Options): Ditto.
10256 (RX Options): Ditto.
10257 (SPARC Options): Ditto.
10259 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10261 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10262 FreeBSD 6 and later. Generally use cpu generic.
10264 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10266 * doc/cpp.texi: Update copyright years.
10268 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10271 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10273 2011-02-25 Jon Beniston <jon@beniston.com>
10276 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10277 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10278 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10279 (lm32_block_move_inline): Add type cast to remove warning.
10280 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10281 (gen_int_relational): Move declarations to start of function.
10283 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10285 PR tree-optimization/45470
10286 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10287 can throw internally only.
10288 * tree-vect-stmts.c (vectorizable_call): Likewise.
10290 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10292 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10293 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10294 * config/stormy16/stormy16-protos.h
10295 (xstormy16_preferred_reload_class): Remove.
10296 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10297 static. Change 'rclass' argument and return type to reg_class_t.
10298 (TARGET_PREFERRED_RELOAD_CLASS,
10299 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10301 2011-02-24 Richard Guenther <rguenther@suse.de>
10303 * lto-streamer-in.c (input_bb): Do not find referenced vars
10304 in debug statements.
10306 2011-02-23 Jason Merrill <jason@redhat.com>
10308 * common.opt (fabi-version): Document v5 and v6.
10310 2011-02-23 Richard Guenther <rguenther@suse.de>
10312 PR tree-optimization/47849
10313 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10315 2011-02-23 Jie Zhang <jie@codesourcery.com>
10317 * opts-common.c (decode_cmdline_option): Print empty string
10318 argument as "" in decoded->orig_option_with_args_text.
10319 * gcc.c (execute): Print empty string argument as ""
10320 in the verbose output.
10321 (do_spec_1): Keep empty string argument.
10323 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10325 * config.gcc: Declare score-* and crx-* obsolete.
10327 2011-02-23 Jie Zhang <jie@codesourcery.com>
10329 PR rtl-optimization/47763
10330 * web.c (web_main): Ignore naked clobber when replacing register.
10332 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10334 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10337 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10340 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10342 2011-02-22 Mike Stump <mikestump@comcast.net>
10344 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10346 * configure: Regenerate.
10348 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10350 PR rtl-optimization/46002
10351 * ira-color.c (update_copy_costs): Change class intersection
10352 test to reg_class_contents[] test of 'hard_regno'.
10354 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10356 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10357 than Driver option.
10358 * config/hpux11.opt (mt): Likewise.
10359 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10360 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10361 * config/vax/elf.opt (mno-asm-pic): Likewise.
10362 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10364 2011-02-21 Mike Stump <mikestump@comcast.net>
10367 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10368 tree so we can get save the type.
10369 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10370 for CFString instead of trying to use past the end of the builtins.
10371 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10372 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10373 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10374 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10375 Rename to darwin_builtin_cfstring.
10376 (darwin_init_cfstring_builtins): Return the built type.
10378 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10381 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10382 (_mm256_insert_epi64): Use _mm_insert_epi64.
10384 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10386 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10387 * config/stormy16/stormy16-protos.h
10388 (xstormy16_mode_dependent_address_p): Remove.
10389 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10390 Make static. Change return type to bool. Change argument type to
10391 const_rtx. Remove dead code.
10392 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10394 2011-02-21 Richard Guenther <rguenther@suse.de>
10397 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10398 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10399 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10401 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10402 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10404 2011-02-20 Richard Guenther <rguenther@suse.de>
10407 * tree.c (free_lang_data_in_decl): Clean builtins from
10408 the TU decl BLOCK_VARS.
10410 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10414 * haifa-sched.c (fix_tick_ready): Skip tick computation
10417 2011-02-19 Richard Guenther <rguenther@suse.de>
10420 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10421 Remove lazy BLOCK_VARS streaming.
10422 (lto_input_ts_block_tree_pointers): Likewise.
10423 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10425 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10427 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10429 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10431 * config/i386/biarch32.h, config/i386/mach.h,
10432 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10434 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10437 * config/i386/i386.md (peephole2 for shift and plus): Use
10438 operands[1] original mode in the first insn.
10440 2011-02-18 Mike Stump <mikestump@comcast.net>
10442 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10444 2011-02-18 Jan Hubicka <jh@suse.cz>
10446 PR middle-end/47788
10447 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10448 to zero when the function is not inlinable at all.
10450 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10452 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10453 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10454 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10455 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10456 * config/pa/t-pa64: Likewise.
10457 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10459 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10462 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10464 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10467 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10469 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10471 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10472 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10473 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10474 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10475 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10476 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10477 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10478 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10479 m32r_legitimate_address_p): New functions.
10480 * config/m32r/constraints.md (constraint "S"): Don't use
10481 STORE_PREINC_PREDEC_P.
10482 (constraint "U"): Don't use LOAD_POSTINC_P.
10484 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10486 PR rtl-optimization/46178
10487 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10488 compute ira_hard_regno_cover_class[].
10490 2011-02-18 Richard Guenther <rguenther@suse.de>
10493 * lto-streamer.h (lto_global_var_decls): Declare.
10494 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10495 statics for global var processing.
10497 2011-02-18 Richard Guenther <rguenther@suse.de>
10499 PR tree-optimization/47737
10500 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10501 edge dominance check.
10503 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10506 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10507 avoid invalid rtx sharing.
10509 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10511 * doc/cpp.texi (Obsolete Features): Add background on the
10512 origin of assertions.
10514 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10516 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10518 * config/darwin.c (output_objc_section_asm_op): Added support for
10520 (is_objc_metadata): New.
10521 (darwin_objc2_section): New.
10522 (darwin_objc1_section): New.
10523 (machopic_select_section): Added support for ABI v1 and v2.
10524 (darwin_emit_objc_zeroed): New.
10525 (darwin_output_aligned_bss): Detect objc metadata and treat it
10527 (darwin_asm_output_aligned_decl_common): Same.
10528 (darwin_asm_output_aligned_decl_local): Same.
10529 * config/darwin-sections.def: Updated for ABI v1 and v2.
10530 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10531 compiling Objective-C code for the NeXT runtime, default to using
10532 ABI version 0 for 32-bit, and version 2 for 64-bit.
10534 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10536 * common.opt (optimize_fast): New Variable.
10537 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10538 instead of local variable ofast.
10540 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10542 * doc/invoke.texi (fobjc-abi-version): Documented.
10543 (fobjc-nilcheck): Documented.
10544 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10547 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10550 * common.opt (export-dynamic): New Driver option.
10551 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10553 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10555 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10557 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10558 Jan Hubicka <jh@suse.cz>
10562 * cfgexpand.c (account_used_vars_for_block): Remove.
10563 (estimated_stack_frame_size): Use referenced vars.
10564 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10565 that were referenced in the original function. Test src_fn
10566 rather than cfun. Drop redundant get_var_ann.
10567 (setup_one_parameter): Drop redundant get_var_ann.
10568 (declare_return_variable): Likewise.
10569 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10570 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10571 * ipa-inline.c (compute_inline_parameters): Do not compute
10572 disregard_inline_limits here.
10573 (compute_inlinable_for_current, pass_inlinable): New.
10574 (pass_inline_parameters): Require PROP_referenced_vars.
10575 * cgraphunit.c (cgraph_process_new_functions): Don't run
10576 compute_inline_parameters explicitly unless function is in SSA form.
10577 (cgraph_analyze_function): Set .disregard_inline_limits.
10578 * tree-sra.c (convert_callers): Compute inliner parameters
10579 only for functions already in SSA form.
10581 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10583 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10584 -mlittle-endian-data.
10586 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10588 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10589 -mno-fpu, not -fpu and -no-fpu.
10590 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10591 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10593 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10596 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10597 input reload with PLUS RTX.
10599 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10601 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10602 of InverseVar(MDMX).
10604 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10606 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10609 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10611 * config/mn10300/mn10300.opt (mno-crt0): New.
10613 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10615 * config/m68k/uclinux.opt (static-libc): New Driver option.
10617 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10619 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10621 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10623 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10624 %{muser-extend-enabled}.
10626 2011-02-16 Richard Guenther <rguenther@suse.de>
10628 PR tree-optimization/47738
10629 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10630 the TODO from tree_predictive_commoning.
10632 2011-02-15 Jeff Law <law@redhat.com>
10635 2011-01-25 Jeff Law <law@redhat.com>
10637 PR rtl-optimization/37273
10638 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10639 handle them like argument loads from stack slots. Do not double
10640 count memory for memory constants and argument loads from stack slots.
10642 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10644 PR middle-end/47725
10645 * combine.c (cant_combine_insn_p): Revert the last change.
10647 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10650 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10651 mode for vector constants. Remove code that checks for TImode.
10653 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10657 * cgraph.h (compute_inline_parameters): Return void.
10658 * ipa-inline.c (compute_inline_parameters): Adjust.
10660 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10664 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10666 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10667 * ipa-inline.c (compute_inline_parameters): Adjust.
10669 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10673 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10674 Adjust all users. Pass FN to...
10675 * tree-flow-inline.h (first_referenced_var): ... this. Add
10677 * ipa-struct-reorg.c: Adjust.
10678 * tree-dfa.c: Adjust.
10679 * tree-into-ssa.c: Adjust.
10680 * tree-sra.c: Adjust.
10681 * tree-ssa-alias.c: Adjust.
10682 * tree-ssa-live.c: Adjust.
10683 * tree-ssa.c: Adjust.
10684 * tree-ssanames.c: Adjust.
10685 * tree-tailcall.c: Adjust.
10687 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10691 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10692 Adjust all callers.
10693 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10694 * tree-flow-inline.h: Adjust.
10695 * gimple-pretty-print.c: Adjust.
10696 * tree-into-ssa.c: Adjust.
10697 * tree-ssa.c: Adjust.
10698 * cfgexpand.c: Adjust.
10700 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10702 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10703 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10704 (EXTRA_CONSTRAINT): Delete.
10705 * config/iq2000/constraints.md: New file.
10706 * config/iq2000/iq2000.md: Include it.
10707 (define_insn ""): Delete.
10708 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10709 unsupported constraint letters from patterns.
10710 (call_value, call_value_internal1): Likewise.
10711 (call_value_multiple_internal1): Likewise.
10713 2011-02-15 Nick Clifton <nickc@redhat.com>
10715 * config/mn10300/mn10300.c: Include tm-constrs.h.
10716 (struct liw_data): New data structure describing an LIW candidate
10718 (extract_bundle): Use struct liw_data. Allow small integer
10719 operands for some instructions.
10720 (check_liw_constraints): Use struct liw_data. Remove swapped
10721 parameter. Add comments describing the checks. Fix bug when
10722 assigning the source of liw1 to the source of liw2.
10723 (liw_candidate): Delete. Code moved into extract_bundle.
10724 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10726 * config/mn10300/predicates.md (liw_operand): New predicate.
10727 Allows registers and small integer constants.
10728 * config/mn10300/constraints.md (O): New constraint. Accetps
10729 integers in the range -8 to +7 inclusive.
10730 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10731 for moving a small integer into a register. Give this alternative
10733 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10734 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10735 using the J,K,L and M constraints,
10736 (liw): Remove SI mode on second operands to allow for HI and QI
10738 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10741 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10743 PR middle-end/47725
10744 * combine.c (cant_combine_insn_p): Check zero/sign extended
10747 2011-02-15 Richard Guenther <rguenther@suse.de>
10749 PR tree-optimization/47743
10750 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10751 for a non-type-compatible VN lookup bail out.
10753 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10755 * config/fr30/constraints.md: New file.
10756 * config/fr30/fr30.md: Include it.
10757 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10758 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10759 (EXTRA_CONSTRAINT): Delete.
10761 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10763 * config/frv/constraints.md: New file.
10764 * config/frv/predicates.md: Include it.
10765 * config/frv/frv.c (reg_class_from_letter): Delete.
10766 (frv_option_override): Don't initialize it.
10767 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10768 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10769 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10770 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10771 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10772 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10773 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10774 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10775 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10776 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10777 (REG_CLASS_FROM_CONSTRAINT): Delete.
10779 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10781 PR middle-end/47581
10782 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10783 if frame size is 0 in a leaf function.
10785 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10788 * config/alpha/host-osf.c: New file.
10789 * config/alpha/x-osf: New file.
10790 * config.host (alpha*-dec-osf*): Use it.
10792 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10794 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10795 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10796 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10797 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10799 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10801 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10803 * config/stormy16/constraints.md: New file.
10804 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10805 Use satisfies_constraint_Q and satisfies_constraint_R.
10806 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10808 (xstormy16_legitiamte_address_p): Declare.
10809 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10810 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10811 (EXTRA_CONSTRAINT): Delete.
10812 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10814 (xstormy16_extra_constraint_p): Delete.
10816 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10818 PR tree-optimization/46494
10819 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10820 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10821 (pass_rtl_loop_done): Add TODO_verify_flow.
10822 * fwprop.c (pass_rtl_fwprop): Likewise.
10823 * modulo-sched.c (pass_sms): Likewise.
10824 * tree-ssa-dom.c (pass_dominator): Likewise.
10825 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10826 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10827 (pass_tree_loop_done): Likewise.
10828 * tree-ssa-pre.c (execute_pre): Likewise.
10829 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10830 * tree-ssa-sink.c (pass_sink_code): Likewise.
10831 * tree-vrp.c (pass_vrp): Likewise.
10833 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10835 * config/v850/constraints.md: New file.
10836 * config/v850/v850.md: Include it.
10837 * config/v850/predicates.md (reg_or_0_operand): Use
10838 satisfies_constraint_G.
10839 (special_symbolref_operand): Use satisfies_constraint_K.
10840 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10841 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10842 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10843 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10844 (EXTRA_CONSTRAINT): Delete.
10845 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10846 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10847 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10849 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10852 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10855 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10857 * config/mcore/constraints.md: New file.
10858 * config/mcore/mcore.md: Include it.
10859 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10860 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10861 (REG_CLASS_FROM_LETTER): Delete.
10862 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10863 insn_const_int_ok_for_constraint.
10864 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10865 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10866 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10867 (EXTRA_CONSTRAINT): Delete.
10869 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10872 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10873 (IS_SIGHANDLER): Define.
10874 (sparc64_is_sighandler): New function, split off from
10875 sparc64_fallback_frame_state.
10876 (sparc_is_sighandler): New function, split off from
10877 sparc_fallback_frame_state.
10878 (sparc64_fallback_frame_state): Merge with ...
10879 (sparc_fallback_frame_state): ... this into ...
10880 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10881 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10882 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10883 stack instead of hardcoded offsets.
10885 2011-02-14 Andriy Gapon <avg@freebsd.org>
10888 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10890 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10892 * configure: Regenerate.
10894 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10897 * gcc.c (asm_options): Correct spec matching --target-help.
10899 2011-02-12 Martin Jambor <mjambor@suse.cz>
10901 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10902 to gimple call error.
10904 2011-02-12 Mike Stump <mikestump@comcast.net>
10906 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10907 comments in backslash regions.
10909 2011-02-12 Mike Stump <mikestump@comcast.net>
10910 Jakub Jelinek <jakub@redhat.com>
10911 Iain Sandoe <iains@gcc.gnu.org>
10914 * dwarf2out.c (output_cfa_loc): When required, apply the
10915 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10916 (output_loc_sequence): Likewise.
10917 (output_loc_operands_raw): Likewise.
10918 (output_loc_sequence_raw): Likewise.
10919 (output_cfa_loc): Likewise.
10920 (output_loc_list): Suppress register number adjustment when
10921 calling output_loc_sequence()
10922 (output_die): Likewise.
10924 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10926 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10928 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10929 xtensa_memory_move_cost): New functions.
10930 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10932 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10935 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10936 in the current directory.
10937 * configure: Rebuilt.
10939 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10941 * config/darwin.c (darwin_override_options): Add a hunk missed
10942 from the commit of r168571. Trim comment line lengths and
10943 correct indents of the preceding block.
10945 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10947 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10950 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10952 * common.opt (nostartfiles): New Driver option.
10954 2011-02-11 Xinliang David Li <davidxl@google.com>
10956 PR tree-optimization/47707
10957 * tree-chrec.c (convert_affine_scev): Keep type precision.
10959 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10961 PR tree-optimization/47420
10962 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10964 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10966 PR rtl-optimization/47614
10967 * rtl.h (check_for_inc_dec): Declare.
10968 * dse.c (check_for_inc_dec): Externalize...
10969 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10970 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10972 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10975 * gcc.c (main): Do not compile inputs if there were errors in
10977 * opts-common.c (read_cmdline_option): Check for wrong language
10978 after other error checks.
10980 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10982 * cgraph.c: Fix comment typos.
10983 * cgraph.h: Likewise.
10984 * cgraphunit.c: Likewise.
10985 * ipa-cp.c: Likewise.
10986 * ipa-inline.c: Likewise.
10987 * ipa-prop.c: Likewise.
10988 * ipa-pure-const.c: Likewise.
10989 * ipa-ref.c: Likewise.
10990 * ipa-reference.c: Likewise.
10992 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10995 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10997 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11000 * doc/sourcebuild.texi (Require Support): Document
11001 dg-require-ascii-locale.
11003 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11005 * doc/lto.texi (Write summary): Fix missing parentheses.
11007 2011-02-10 DJ Delorie <dj@redhat.com>
11009 * config/m32c/m32c.c (m32c_option_override): Disable
11010 -fcombine-stack-adjustments until flag value tracking and compare
11011 optimization can be rewritten.
11013 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11015 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11017 (PROCESSOR_DEFAULT64): Likewise.
11019 2011-02-10 Richard Henderson <rth@redhat.com>
11021 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11022 change from 2011-02-03.
11023 * config/rx/rx.c (flags_from_code): Likewise.
11024 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11025 is valid, n/pz otherwise.
11026 (rx_select_cc_mode): Return CCmode if Y is not zero.
11028 2011-02-10 Richard Guenther <rguenther@suse.de>
11030 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11032 2011-02-10 Richard Guenther <rguenther@suse.de>
11034 PR tree-optimization/47677
11035 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11037 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11040 * combine.c (make_compound_operation): Only change shifts into
11041 multiplication for SCALAR_INT_MODE_P.
11043 2011-02-10 Jie Zhang <jie@codesourcery.com>
11047 2011-02-05 Jie Zhang <jie@codesourcery.com>
11049 * web.c (entry_register): Don't clobber the number of the
11050 first uninitialized reference in used[].
11052 2011-02-09 Richard Guenther <rguenther@suse.de>
11054 PR tree-optimization/47664
11055 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11058 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11062 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11064 (PROCESSOR_DEFAULT64): Same.
11065 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11067 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11069 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11071 2011-02-09 Martin Jambor <mjambor@suse.cz>
11073 PR middle-end/45505
11074 * tree-sra.c (struct access): New flags grp_scalar_read and
11075 grp_scalar_write. Changed description of assignment read and write
11077 (dump_access): Dump new flags, reorder all of them.
11078 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11079 to detect multiple scalar reads.
11080 (analyze_access_subtree): Use the new scalar read write flags instead
11081 of the old flags. Adjusted comments.
11083 2011-02-08 DJ Delorie <dj@redhat.com>
11086 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11089 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11091 * config/m68k/uclinux.opt: New.
11092 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11094 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11096 * config/cris/elf.opt (sim): New Driver option.
11098 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11100 * config/xtensa/elf.opt: New.
11101 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11103 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11105 * config/vax/elf.opt: New.
11106 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11108 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11110 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11112 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11114 * config/gnu-user.opt: New.
11115 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11116 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11117 *-*-uclinux*): Use gnu-user.opt.
11119 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11121 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11122 * config/i386/gnu.h (CPP_SPEC): Likewise.
11124 2011-02-08 Ian Lance Taylor <iant@google.com>
11126 * common.opt (fcx-limited-range): Add SetByCombined flag.
11127 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11128 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11129 (fassociative-math, freciprocal-math): Likewise.
11130 (funsafe-math-optimizations): Likewise.
11131 * opth-gen.awk: Handle SetByCombined.
11132 * optc-gen.awk: Likewise.
11133 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11134 (set_unsafe_math_optimizations_flags): Likewise.
11135 * doc/options.texi (Option properties): Document SetByCombined.
11137 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11139 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11140 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11141 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11142 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11143 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11145 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11147 PR tree-optimization/46834
11148 PR tree-optimization/46994
11149 PR tree-optimization/46995
11150 * graphite-sese-to-poly.c (used_outside_reduction): New.
11151 (detect_commutative_reduction): Call used_outside_reduction.
11152 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11153 translate_scalar_reduction_to_array only when at least one
11154 loop-phi/close-phi tuple has been detected.
11156 2011-02-08 Richard Guenther <rguenther@suse.de>
11158 PR middle-end/47639
11159 * tree-vect-generic.c (expand_vector_operations_1): Update
11161 (expand_vector_operations): ... not here. Cleanup EH info
11162 and the CFG if required.
11164 2011-02-08 Richard Guenther <rguenther@suse.de>
11166 PR tree-optimization/47641
11167 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11168 require type compatibility.
11170 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11172 * gimple-low.c (lower_function_body): Don't remove the location of
11173 the return statement here.
11174 (lower_gimple_return): Do it here instead but only if the return
11175 statement is actually used twice.
11177 2011-02-08 Richard Guenther <rguenther@suse.de>
11179 PR tree-optimization/47632
11180 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11181 unused up_to_stmt parameter, return whether cfg-cleanup is
11182 necessary, remove EH info properly.
11183 (forward_propagate_into_gimple_cond): Adjust caller.
11184 (forward_propagate_into_cond): Likewise.
11185 (forward_propagate_comparison): Likewise.
11186 (tree_ssa_forward_propagate_single_use_vars): Make
11187 forward_propagate_comparison case similar to the two others.
11189 2011-02-08 Nick Clifton <nickc@redhat.com>
11191 * config/mn10300/mn10300.opt (mliw): New command line option.
11192 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11193 (liw_bundling): New automaton.
11194 (liw): New attribute.
11195 (liw_op): New attribute.
11196 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11197 (movsi_internal): Add LIW attributes.
11198 (andsi3): Likewise.
11199 (iorsi3): Likewise.
11200 (xorsi3): Likewise.
11201 (addsi3): Separate register and immediate alternatives.
11202 Add LIW attributes.
11203 (subsi3): Likewise.
11205 (aslsi3): Likewise.
11206 (lshrsi3): Likewise.
11207 (ashrsi3): Likewise.
11208 (liw): New pattern.
11209 * config/mn10300/mn10300.c (liw_op_names): New
11210 (mn10300_print_operand): Handle 'W' operand descriptor.
11211 (extract_bundle): New function.
11212 (check_liw_constraints): New function.
11213 (liw_candidate): New function.
11214 (mn10300_bundle_liw): New function.
11215 (mn10300_reorg): New function.
11216 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11217 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11218 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11219 __LIW__ or __NO_LIW__.
11220 * doc/invoke.texi: Describe the -mliw command line option.
11222 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11224 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11225 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11226 pthread_mutex_unlock): Remove.
11227 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11228 * config/pa/t-pa64: Likewise.
11229 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11230 shared libc if not linking against libpthread.
11231 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11233 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11236 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11237 on 10.6 and later to ensure that we always use the unwinder from
11238 the system. Only add -no_compact_unwind when tarteting darwin
11241 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11244 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11245 (vec_interleave_lowv2sf): Ditto.
11246 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11247 (vec_extract_oddv2sf): Ditto.
11249 2011-02-07 Mike Stump <mikestump@comcast.net>
11252 Add __ieee_divdc3 entry point.
11253 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11255 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11256 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11257 * config/darwin.c (darwin_rename_builtins): Add.
11258 * config/darwin-protos.h (darwin_rename_builtins): Add.
11260 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11263 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11266 2011-02-07 Mike Stump <mikestump@comcast.net>
11268 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11270 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11273 * config/avr/libgcc.S (exit): Move .endfunc
11275 2011-02-07 Richard Guenther <rguenther@suse.de>
11277 PR tree-optimization/47615
11278 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11279 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11280 (run_scc_vn): Initialize it.
11281 (visit_reference_op_load): Use it.
11282 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11284 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11286 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11287 DImode trapping arithmetic libfuncs.
11289 2011-02-07 Richard Guenther <rguenther@suse.de>
11291 PR tree-optimization/47621
11292 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11294 (execute_update_addresses_taken): ... here. Make it more
11295 conservative in what we accept.
11297 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11299 * config/sparc/freebsd.h (ASM_SPEC): Define.
11300 * config/sparc/vxworks.h (ASM_SPEC): Define.
11302 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11304 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11306 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11308 * doc/invoke.texi: Remove reference to compiler internals from
11309 user documentation.
11311 * reg-notes.def: Remove REG_VALUE_PROFILE.
11312 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11314 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11316 PR middle-end/47610
11317 * varasm.c (default_section_type_flags): If decl is NULL,
11318 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11320 2011-02-05 Jie Zhang <jie@codesourcery.com>
11323 * web.c (entry_register): Don't clobber the number of the
11324 first uninitialized reference in used[].
11326 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11328 PR tree-optimization/46194
11329 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11330 (build_classic_dist_vector_1): Do not represent classic distance
11331 vectors when the access functions are variating in different loops.
11333 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11335 * config/mips/iris6.opt: New.
11336 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11338 2011-02-04 Richard Henderson <rth@redhat.com>
11339 Steve Ellcey <sje@cup.hp.com>
11342 * config/ia64/predicates.md (mux1_brcst_element): New.
11343 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11344 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11345 (ia64_unpack_sign): New.
11346 (ia64_expand_unpack): Rewrite using new routines.
11347 (ia64_expand_widen_sum): Ditto.
11348 (ia64_expand_dot_prod_v8qi): Ditto.
11349 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11350 routines, add endian check.
11351 (pmpy2_even): Rename from pmpy2_r, add endian check.
11352 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11353 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11354 (vec_widen_smult_hi_v4hi): Ditto.
11355 (vec_widen_umult_lo_v4hi): Ditto.
11356 (vec_widen_umult_hi_v4hi): Ditto.
11357 (mulv2si3): Change endian checks.
11358 (sdot_prodv4hi): Rewrite with new calls.
11359 (udot_prodv4hi): New.
11360 (vec_pack_ssat_v4hi): Add endian check.
11361 (vec_pack_usat_v4hi): Ditto.
11362 (vec_pack_ssat_v2si): Ditto.
11363 (max1_even): Rename from max1_r, add endian check.
11364 (max1_odd): Rename from max1_l, add endian check.
11365 (*mux1_rev): Format change.
11366 (*mux1_mix): Ditto.
11367 (*mux1_shuf): Ditto.
11368 (*mux1_alt): Ditto.
11369 (*mux1_brcst_v8qi): Use new predicate.
11370 (vec_extract_evenv8qi): Remove endian check.
11371 (vec_extract_oddv8qi): Ditto.
11372 (vec_interleave_lowv4hi): Format change.
11373 (vec_interleave_highv4hi): Ditto.
11374 (mix2_even): Rename from mix2_r, add endian check.
11375 (mix2_odd): Rename from mux2_l, add endian check.
11376 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11377 (vec_extract_evenodd_helper): Format change.
11378 (vec_extract_evenv4hi): Remove endian check.
11379 (vec_extract_oddv4hi): Remove endian check.
11380 (vec_interleave_lowv2si): Format change.
11381 (vec_interleave_highv2si): Format change.
11382 (vec_initv2si): Remove endian check.
11383 (vecinit_v2si): Add endian check.
11384 (reduc_splus_v2sf): Add endian check.
11385 (reduc_smax_v2sf): Ditto.
11386 (reduc_smin_v2sf): Ditto.
11387 (vec_initv2sf): Remove endian check.
11388 (fpack): Add endian check.
11389 (fswap): Add endian check.
11390 (vec_interleave_highv2sf): Add endian check.
11391 (vec_interleave_lowv2sf): Add endian check.
11392 (fmix_lr): Add endian check.
11393 (vec_setv2sf): Format change.
11394 (*vec_extractv2sf_0_be): Use shift to extract operand.
11395 (*vec_extractv2sf_1_be): New.
11396 (vec_pack_trunc_v4hi): Add endian check.
11397 (vec_pack_trunc_v2si): Format change.
11399 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11401 PR inline-asm/23200
11402 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11403 do bb, locus and block comparison and disallow loads if it is not set.
11404 (stmt_is_replaceable_p): New function.
11405 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11407 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11408 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11410 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11412 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11414 * config/rs6000/xilinx.opt: New.
11415 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11417 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11419 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11421 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11423 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11424 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11425 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11426 secondary_reload_info, xtensa_secondary_reload): Remove.
11427 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11428 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11429 (xtensa_preferred_reload_class): Make static. Change return and
11430 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11431 Use CONST_DOUBLE_P predicate.
11432 (xtensa_preferred_output_reload_class): New function.
11433 (xtensa_secondary_reload): Make static.
11435 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11437 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11438 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11439 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11441 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11443 PR middle-end/31490
11444 * output.h (SECTION_RELRO): Define.
11445 (SECTION_MACH_DEP): Adjust.
11446 (get_variable_section): New prototype.
11447 * varpool.c (varpool_finalize_named_section_flags): New function.
11448 (varpool_assemble_pending_decls): Call it.
11449 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11450 * cgraphunit.c (cgraph_output_in_order): Call
11451 varpool_finalize_named_section_flags.
11452 * varasm.c (get_section): Allow section flags conflicts between
11453 relro and read-only sections if the section hasn't been declared yet.
11454 Set SECTION_OVERRIDE after diagnosing section type conflict.
11455 (get_variable_section): No longer static.
11456 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11457 readonly sections that need relocations.
11458 (decl_readonly_section_1): New function.
11459 (decl_readonly_section): Use it.
11462 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11463 Steve Ellcey <sje@cup.hp.com>
11465 PR middle-end/31490
11466 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11467 if section attribute used.
11469 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11471 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11472 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11473 (darwin_init_sections): Remove assertion.
11475 2011-02-03 Nick Clifton <nickc@redhat.com>
11477 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11479 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11480 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11481 instead of "n" and "pz".
11482 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11485 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11488 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11489 fma, expand FMA_EXPR as fma{,f,l} call.
11492 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11493 copy them into a unsigned char variable and pass address of it to
11494 lto_output_data_stream.
11497 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11498 around backend_init_target and lang_dependent_init_target calls.
11499 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11500 (verify_cgraph_node): Don't call set_cfun here. Use
11501 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11502 Set error_found for incorrectly represented calls to thunks.
11504 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11507 PR rtl-optimization/43494
11508 * rtl.h (for_each_inc_dec_fn): New type.
11509 (for_each_inc_dec): Declare.
11510 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11511 (for_each_inc_dec_find_inc_dec): New fn.
11512 (for_each_inc_dec_find_mem): New fn.
11513 (for_each_inc_dec): New fn.
11514 * dse.c (struct insn_size): Remove.
11515 (replace_inc_dec, replace_inc_dec_mem): Remove.
11516 (emit_inc_dec_insn_before): New fn.
11517 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11518 (canon_address): Pass mem modes to cselib_lookup.
11519 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11520 (cselib_lookup_from_insn): Likewise.
11521 (cselib_subst_to_values): Likewise.
11522 * cselib.c (find_slot_memmode): New var.
11523 (cselib_find_slot): New fn. Use it instead of
11524 htab_find_slot_with_hash everywhere.
11525 (entry_and_rtx_equal_p): Use find_slot_memmode.
11526 (autoinc_split): New fn.
11527 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11528 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11529 Deal with autoinc. Special-case recursion into MEMs.
11530 (cselib_hash_rtx): Likewise.
11531 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11532 address and MEM modes.
11533 (cselib_subst_to_values): Add memmode, pass it on.
11535 (cselib_lookup): Add memmode argument, pass it on.
11536 (cselib_lookup_from_insn): Add memmode.
11537 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11538 (struct cselib_record_autoinc_data): New.
11539 (cselib_record_autoinc_cb): New fn.
11540 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11541 mode to cselib_lookup. Reset autoinced REGs here instead of...
11542 (cselib_process_insn): ... here.
11543 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11545 (add_uses): Likewise, also to cselib_subst_to_values.
11546 (add_stores): Likewise.
11547 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11548 cselib_subst_to_values.
11549 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11550 * gcse.c (do_local_cprop): Adjusted.
11551 * postreload.c (reload_cse_simplify_set): Adjusted.
11552 (reload_cse_simplify_operands): Adjusted.
11553 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11555 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11557 PR tree-optimization/45122
11558 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11559 unsafe assumptions when there's more than one loop exit.
11561 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11564 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11565 Document using vector double with the load/store builtins, and
11566 that the load/store builtins always use Altivec instructions.
11568 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11569 to use altivec memory instructions, even on VSX.
11570 (vector_altivec_store_<mode>): Ditto.
11572 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11575 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11576 V2DF, V2DI support to load/store overloaded builtins.
11578 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11579 altivec load/store builtins for V2DF/V2DI types.
11581 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11582 set avoid indexed addresses on power6 if -maltivec.
11583 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11584 vector_altivec_load/vector_altivec_store builtins.
11585 (altivec_expand_st_builtin): Ditto.
11586 (altivec_expand_builtin): Add VSX memory builtins.
11587 (rs6000_init_builtins): Add V2DI types to internal types.
11588 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11589 load/store builtins.
11590 (rs6000_address_for_altivec): Insure memory address is appropriate
11593 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11594 vec_vsx_ld and vec_vsx_st.
11595 (vsx_store_<mode>): Ditto.
11597 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11598 variables to hold long long types for VSX vector memory builtins.
11599 (RS6000_BTI_unsigned_long_long): Ditto.
11600 (long_long_integer_type_internal_node): Ditti.
11601 (long_long_unsigned_type_internal_node): Ditti.
11603 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11604 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11605 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11607 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11609 (vec_vsx_st): Ditto.
11611 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11613 * config/pa/pa-hpux10.opt: New.
11614 * config/hpux11.opt (pthread): New Driver option.
11615 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11616 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11618 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11620 * config/ia64/vms.opt: New.
11621 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11623 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11626 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11627 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11628 generator functions.
11629 (vsx_floatuns<VSi><mode>2): Ditto.
11630 (vsx_fix_trunc<mode><VSi>2): Ditto.
11631 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11633 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11635 * config/i386/djgpp.opt (posix): New Driver option.
11637 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11639 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11640 Move to the unsupported targets list.
11642 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11644 PR rtl-optimization/47525
11645 * df-scan.c: Update copyright years.
11646 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11647 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11649 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11651 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11652 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11653 (ASM_OUTPUT_ASCII): Remove.
11654 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11656 2011-02-02 Jeff Law <law@redhat.com>
11658 PR middle-end/47543
11659 * reload.c (find_reloads_address): Handle reg+d address where both
11660 components are invalid by reloading the entire address.
11662 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11663 Richard Guenther <rguenther@suse.de>
11665 PR tree-optimization/40979
11667 * passes.c (init_optimization_passes): After LIM call copy_prop
11668 and DCE to clean up.
11669 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11671 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11673 PR tree-optimization/47576
11674 PR tree-optimization/47555
11675 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11676 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11677 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11678 * tree-scalar-evolution.c (follow_ssa_edge): Use
11679 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11681 2011-02-02 Richard Guenther <rguenther@suse.de>
11683 PR tree-optimization/47566
11684 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11686 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11690 * tree-inline.c (declare_return_variable): Remove unused caller
11695 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11696 * cfgexpand.c (account_used_vars_for_block): Use them.
11697 * tree-nrv.c (tree_nrv): Likewise.
11698 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11699 (dump_scope_block): Likewise.
11700 (remove_unused_locals): Likewise.
11704 * tree-inline.c (declare_return_variable): Add result decl to
11705 local decls only once.
11706 * gimple-low.c (record_vars_into): Mark newly-created variables
11709 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11715 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11717 (no_real_insns_p, schedule_block, set_priorities): Drop special
11718 treatment of boundary debug insns.
11719 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11720 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11721 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11722 (BOUNDARY_DEBUG_INSN_P): Likewise.
11723 (SCHEDULE_DEBUG_INSN_P): Likewise.
11724 * sched-rgn.c (init_ready_list): Drop special treatment of
11725 boundary debug insns.
11726 * final.c (rest_of_clean_state): Clear notes' BB.
11728 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11730 * config/openbsd.opt (assert=): New Driver option.
11732 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11734 * config/i386/nto.opt: New.
11735 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11737 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11739 * config/i386/netware.opt: New.
11740 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11742 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11744 * config/interix.opt (posix): New Driver option.
11746 2011-02-01 DJ Delorie <dj@redhat.com>
11748 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11750 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11753 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11755 PR tree-optimization/47561
11756 * toplev.c (process_options): Print the Graphite flags. Add
11757 flag_loop_flatten to the list of options requiring Graphite.
11759 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11761 * config/i386/cygming.opt (posix): New Driver option.
11763 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11765 * config/arm/vxworks.opt: New.
11766 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11768 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11770 * config/alpha/elf.opt: New.
11771 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11772 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11774 2011-02-01 Richard Guenther <rguenther@suse.de>
11776 PR tree-optimization/47559
11777 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11778 store-motion on references that can throw.
11780 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11782 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11783 * tree-pass.h (TDF_CSELIB): New macro.
11784 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11785 cselib_lookup): Check for it rather than for TDF_DETAILS.
11787 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11790 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11791 is HOST_BIT_BUCKET.
11793 * opts.c (finish_options): Don't add x_aux_base_name if it is
11796 2011-02-01 Richard Guenther <rguenther@suse.de>
11798 PR tree-optimization/47555
11800 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11802 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11804 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11807 * config/lm32/t-lm32: Add multilib for all CPU options.
11809 2011-02-01 Richard Guenther <rguenther@suse.de>
11811 PR tree-optimization/47541
11812 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11813 sure to have a field at offset zero.
11815 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11817 * config/arc/arc.opt (EB, EL): New Driver options.
11819 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11821 * config/alpha/osf5.opt: New.
11822 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11824 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11826 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11828 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11830 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11831 -floop-interchange.
11832 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11833 is an alias of -floop-interchange and that it requires the
11834 Graphite infrastructure.
11835 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11836 flag_loop_interchange based on the value of flag_tree_loop_linear.
11838 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11839 Richard Guenther <rguenther@suse.de>
11841 PR tree-optimization/47538
11842 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11843 type instead of r1type, except for comparisons. For right
11844 shifts and comparisons punt if there are mismatches in
11845 sizetype vs. non-sizetype types.
11847 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11849 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11852 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11854 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11856 * configure: Regenerate.
11858 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11860 * configure.ac (gcc_cv_ld_static_option): Define.
11861 (gcc_cv_ld_dynamic_option): Define.
11862 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11864 (HAVE_LD_STATIC_DYNAMIC): Update message.
11865 (LD_STATIC_OPTION): Define.
11866 (LD_DYNAMIC_OPTION): Define.
11867 * configure: Regenerate.
11868 * config.in: Regenerate.
11869 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11870 HAVE_LD_STATIC_DYNAMIC]: Use them.
11872 2011-01-31 Nick Clifton <nickc@redhat.com>
11874 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11875 registers inside interrupt handlers if the handler is not a leaf
11878 2011-01-31 Nick Clifton <nickc@redhat.com>
11880 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11881 reg_renumber returning an INVALID_REGNUM.
11883 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11886 * doc/install.texi: Document host options discarded when cross
11887 configuring target libraries.
11889 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11892 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11895 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11897 (no_real_insns_p, schedule_block, set_priorities): Drop special
11898 treatment of boundary debug insns.
11899 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11900 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11901 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11902 (BOUNDARY_DEBUG_INSN_P): Likewise.
11903 (SCHEDULE_DEBUG_INSN_P): Likewise.
11904 * sched-rgn.c (init_ready_list): Drop special treatment of
11905 boundary debug insns.
11906 * final.c (rest_of_clean-state): Clear notes' BB.
11908 2011-01-31 Alan Modra <amodra@gmail.com>
11910 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11911 toc relative expressions as we do in print_operand_address.
11913 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11915 * doc/extend.texi: Follow spelling conventions.
11916 * doc/invoke.texi: Fix a typo.
11918 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11920 * config/hpux11.opt: New.
11921 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11922 ia64*-*-hpux*): Use hpux11.opt.
11924 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11926 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11929 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11931 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11934 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11936 * doc/install.texi (Binaries): Remove outdated reference for
11937 Motorola 68HC11/68HC12 downloads.
11939 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11941 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11944 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11947 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11950 2011-01-28 Ahmad Sharif <asharif@google.com>
11952 * value-prof.c (check_counter): Corrected error message.
11954 2011-01-29 Jie Zhang <jie@codesourcery.com>
11956 * config/arm/arm.c (arm_legitimize_reload_address): New.
11957 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11958 arm_legitimize_reload_address.
11959 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11961 2011-01-28 Ian Lance Taylor <iant@google.com>
11963 * godump.c (go_define): Ignore macros whose definitions include
11964 two adjacent operands.
11966 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11969 * varasm.c (force_const_mem): Store copy of x in desc->constant
11970 instead of x itself.
11971 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11972 itself into REG_EQUAL note.
11974 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11976 * config/freebsd.opt (posix, rdynamic): New Driver options.
11978 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11980 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11981 -Bstatic/-Bdynamic.
11982 * configure: Regenerate.
11984 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11986 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11987 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11989 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11991 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11992 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11993 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11994 (s390_preferred_reload_class): Make static. Change return and
11995 'rclass' argument type to reg_class_t.
11997 2011-01-27 Jan Hubicka <jh@suse.cz>
11999 PR middle-end/46949
12000 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12001 (process_function_and_variable_attributes): Check defined weakrefs.
12003 2011-01-27 Martin Jambor <mjambor@suse.cz>
12005 PR tree-optimization/47228
12006 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12007 build_ref_for_offset.
12009 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12011 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12013 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12015 PR rtl-optimization/46856
12016 * postreload.c (reload_combine_recognize_const_pattern): Do not
12017 separate cc0 setter and user on cc0 targets.
12019 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12022 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12023 passed a VOID_TYPE expression, immediately emit an error and
12024 return error_mark_node.
12026 2011-01-26 Jeff Law <law@redhat.com>
12028 PR rtl-optimization/47464
12029 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12030 rather than may_trap_p as needed.
12032 2011-01-26 DJ Delorie <dj@redhat.com>
12034 PR rtl-optimization/46878
12035 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12036 setter/user dependency as well.
12038 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12040 PR rtl-optimization/44469
12041 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12042 after removing trivially dead basic blocks.
12044 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12046 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12047 * config/frv/frv.h (LINK_SPEC): Likewise.
12048 * config/i386/netware.h (LINK_SPEC): Likewise.
12049 * config/m68k/linux.h (ASM_SPEC): Likewise.
12050 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12051 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12052 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12053 * config/sparc/linux.h (ASM_SPEC): Likewise.
12054 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12055 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12057 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12059 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12060 * config/frv/frv.h (ASM_SPEC): Likewise.
12061 * config/m68k/linux.h (ASM_SPEC): Likewise.
12062 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12063 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12064 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12065 * config/sparc/linux.h (ASM_SPEC): Likewise.
12066 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12067 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12069 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12071 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12072 * config/frv/frv.h (LINK_SPEC): Likewise.
12073 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12075 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12077 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12078 * config/frv/frv.h (ASM_SPEC): Likewise.
12079 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12080 * config/m68k/linux.h (ASM_SPEC): Likewise.
12081 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12082 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12083 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12084 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12085 * config/sparc/linux.h (ASM_SPEC): Likewise.
12086 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12087 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12088 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12090 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12093 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12095 (vec_extract_evenodd_help): Ditto.
12096 (vec_extract_evenv4hi): Ditto.
12097 (vec_extract_oddv4hi): Ditto.
12098 (vec_interleave_lowv2si): Ditto.
12099 (vec_interleave_highv2si): Ditto.
12100 (vec_extract_evenv2si): Ditto.
12101 (vec_extract_oddv2si: Ditto.
12102 (vec_pack_trunc_v2si): Ditto.
12104 2011-01-22 Jan Hubicka <jh@suse.cz>
12107 * cgraph.h (cgraph_local_info): New field can_change_signature.
12108 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12109 signature can change.
12110 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12112 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12113 (cgraph_function_versioning): We can not change signature of functions
12114 that don't allow that.
12115 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12116 (lto_input_node): Likewise.
12117 * ipa-inline.c (compute_inline_parameters): Compute
12118 local.can_change_signature.
12119 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12120 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12121 functions that can not change signature.
12122 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12123 init_cumulative_args): Do not use local calling conventions
12124 for functions that can not change signature.
12126 2011-01-22 Jan Hubicka <jh@suse.cz>
12128 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12130 2011-01-26 Richard Guenther <rguenther@suse.de>
12132 PR tree-optimization/47190
12133 * cgraphunit.c (process_common_attributes): New function.
12134 (process_function_and_variable_attributes): Use it.
12136 2011-01-26 Richard Guenther <rguenther@suse.de>
12139 * cgraphbuild.c (record_eh_tables): Record reference to personality
12142 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12145 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12146 non-debug insns from moving up.
12148 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12151 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12152 t-dlldir{,-x} fragment for build and add it to tmake_file.
12153 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12154 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12155 * config/i386/t-dlldir: New file.
12156 (SHLIB_DLLDIR): Define.
12157 * config/i386/t-dlldir-x: New file.
12158 (SHLIB_DLLDIR): Define.
12159 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12160 (SHLIB_INSTALL): Use it.
12162 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12165 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12166 lower bound of the allowed Thumb-2 coprocessor load/store
12167 index range to -256. Add explaining comment.
12169 2011-01-25 Ian Lance Taylor <iant@google.com>
12171 * godump.c (go_define): Improve lexing of macro expansion to only
12172 accept expressions which match Go spec.
12174 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12177 * tree.c (handle_dll_attribute): Handle it.
12178 * doc/extend.texi (@item dllexport): Mention it.
12179 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12181 2011-01-25 Ian Lance Taylor <iant@google.com>
12183 PR tree-optimization/26854
12184 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12185 (decl_jump_unsafe): Move higher in file, with no other change.
12186 (bind): Set has_jump_unsafe_decl if appropriate.
12187 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12188 (check_earlier_gotos): Likewise.
12189 (c_check_switch_jump_warnings): Likewise.
12191 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12193 * doc/invoke.texi (Warning Options): Add missing hyphen.
12194 (-fprofile-dir): Minor grammatical fixes.
12195 (-fbranch-probabilities): Likewise.
12197 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12201 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12203 (no_real_insns_p, schedule_block, set_priorities): Drop special
12204 treatment of boundary debug insns.
12205 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12206 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12207 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12208 (BOUNDARY_DEBUG_INSN_P): Likewise.
12209 (SCHEDULE_DEBUG_INSN_P): Likewise.
12210 * sched-rgn.c (init_ready_list): Drop special treatment of
12211 boundary debug insns.
12212 * final.c (rest_of_clean-state): Clear notes' BB.
12214 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12216 * Makefile.in (LAMBDA_H): Removed.
12217 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12218 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12219 lambda-trans.o, and tree-loop-linear.o.
12220 (lto-symtab.o): Remove dependence on LAMBDA_H.
12221 (tree-loop-linear.o): Remove rule.
12222 (lambda-mat.o): Same.
12223 (lambda-trans.o): Same.
12224 (lambda-code.o): Same.
12225 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12226 (tree-vect-slp.o): Same.
12227 * hwint.h (gcd): Moved here.
12228 (least_common_multiple): Same.
12229 * lambda-code.c: Removed.
12230 * lambda-mat.c: Removed.
12231 * lambda-trans.c: Removed.
12232 * lambda.h: Removed.
12233 * tree-loop-linear.c: Removed.
12234 * lto-symtab.c: Do not include lambda.h.
12235 * omega.c (gcd): Removed.
12236 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12237 * tree-data-ref.c (print_lambda_vector): Moved here.
12238 (lambda_vector_copy): Same.
12239 (lambda_matrix_copy): Same.
12240 (lambda_matrix_id): Same.
12241 (lambda_vector_first_nz): Same.
12242 (lambda_matrix_row_add): Same.
12243 (lambda_matrix_row_exchange): Same.
12244 (lambda_vector_mult_const): Same.
12245 (lambda_vector_negate): Same.
12246 (lambda_matrix_row_negate): Same.
12247 (lambda_vector_equal): Same.
12248 (lambda_matrix_right_hermite): Same.
12249 * tree-data-ref.h: Do not include lambda.h.
12250 (lambda_vector): Moved here.
12251 (lambda_matrix): Same.
12252 (dependence_level): Same.
12253 (lambda_transform_legal_p): Removed declaration.
12254 (lambda_collect_parameters): Same.
12255 (lambda_compute_access_matrices): Same.
12256 (lambda_vector_gcd): Same.
12257 (lambda_vector_new): Same.
12258 (lambda_vector_clear): Same.
12259 (lambda_vector_lexico_pos): Same.
12260 (lambda_vector_zerop): Same.
12261 (lambda_matrix_new): Same.
12262 * tree-flow.h (least_common_multiple): Removed declaration.
12263 * tree-parloops.c (lambda_trans_matrix): Moved here.
12264 (LTM_MATRIX): Same.
12265 (LTM_ROWSIZE): Same.
12266 (LTM_COLSIZE): Same.
12267 (LTM_DENOMINATOR): Same.
12268 (lambda_trans_matrix_new): Same.
12269 (lambda_matrix_vector_mult): Same.
12270 (lambda_transform_legal_p): Same.
12271 * tree-pass.h (pass_linear_transform): Removed declaration.
12272 * tree-ssa-loop.c (tree_linear_transform): Removed.
12273 (gate_tree_linear_transform): Removed.
12274 (pass_linear_transform): Removed.
12275 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12276 flag_loop_interchange.
12278 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12280 PR tree-optimization/47265
12281 PR tree-optimization/47443
12282 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12283 if name still has some uses.
12285 2011-01-25 Martin Jambor <mjambor@suse.cz>
12287 PR tree-optimization/47382
12288 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12289 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12291 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12293 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12294 sjlj_except_unwind_info.
12296 2011-01-25 Richard Guenther <rguenther@suse.de>
12298 PR tree-optimization/47426
12299 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12300 visible functions results escape.
12302 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12305 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12306 (arm_get_frame_offsets): Use it.
12308 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12309 Jakub Jelinek <jakub@redhat.com>
12311 PR tree-optimization/47271
12312 * tree-if-conv.c (bb_postdominates_preds): New.
12313 (if_convertible_bb_p): Call bb_postdominates_preds.
12314 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12315 (predicate_scalar_phi): Call bb_postdominates_preds.
12317 2011-01-25 Nick Clifton <nickc@redhat.com>
12319 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12320 * config/rx/rx.c (rx_function_value): Likewise.
12321 (rx_promote_function_mode): Likewise.
12322 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12323 in order to make it legitimate.
12324 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12325 make sure that the first operand is the same as the result register.
12326 (addsi3_unspec): Delete.
12327 (subdi3): Do not accept immediate operands.
12328 (subdi3_internal): Likewise.
12330 2011-01-25 Jeff Law <law@redhat.com>
12332 PR rtl-optimization/37273
12333 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12334 handle them like argument loads from stack slots. Do not double
12335 count memory for memory constants and argument loads from stack slots.
12337 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12339 PR tree-optimization/47427
12340 PR tree-optimization/47428
12341 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12342 coalesce if the new root var would be TREE_READONLY.
12344 2011-01-25 Richard Guenther <rguenther@suse.de>
12346 PR middle-end/47414
12347 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12348 correct type for TBAA.
12350 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12352 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12353 (close_phi_written_to_memory): Call for_each_index with
12354 dr_indices_valid_in_loop.
12356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12358 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12359 when it is initialized.
12361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12363 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12364 call to graphite_find_data_references_in_stmt.
12365 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12366 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12367 call to graphite_find_data_references_in_stmt.
12368 (analyze_drs_in_stmts): Same.
12369 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12370 in which the scalar analysis of indices is performed.
12371 (create_data_ref): Same. Update call to dr_analyze_indices.
12372 (find_data_references_in_stmt): Update call to create_data_ref.
12373 (graphite_find_data_references_in_stmt): Same.
12374 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12376 (create_data_ref): Same.
12377 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12378 call to create_data_ref.
12380 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12382 * graphite-sese-to-poly.c (build_poly_scop): Move
12383 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12385 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12387 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12388 VAR_DECL, PARM_DECL, and RESULT_DECL.
12390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12392 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12393 in a reduction PBB.
12394 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12395 that have already been marked as PBB_IS_REDUCTION.
12397 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12399 * graphite-scop-detection.c (same_close_phi_node): New.
12400 (remove_duplicate_close_phi): New.
12401 (make_close_phi_nodes_unique): New.
12402 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12404 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12406 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12407 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12408 of both data references to be the same.
12410 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12412 * graphite-dependences.c (build_lexicographical_constraint): Remove
12413 the gdim parameter.
12414 (build_lexicographical_constraint): Adjust call to
12415 ppl_powerset_is_empty.
12416 (dependence_polyhedron): Same.
12417 (graphite_legal_transform_dr): Same.
12418 (graphite_carried_dependence_level_k): Same.
12419 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12421 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12425 * graphite-sese-to-poly.c
12426 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12427 (close_phi_written_to_memory): New.
12428 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12433 * doc/install.texi: Update the expected version number of PPL to 0.11.
12434 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12435 #if PPL_VERSION_MINOR < 11.
12437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12439 * graphite-dependences.c: Include graphite-cloog-util.h.
12440 (new_poly_ddr): Inlined into dependence_polyhedron.
12441 (free_poly_ddr): Moved close by new_poly_ddr.
12442 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12443 Early return NULL when ppl_powerset_is_empty returns true.
12444 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12445 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12446 (graphite_legal_transform_dr): Call new_poly_ddr.
12447 (graphite_carried_dependence_level_k): Same.
12448 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12449 (dot_transformed_deps_stmt_1): Removed.
12450 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12451 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12452 (dot_deps_1): Call dot_deps_2.
12453 * Makefile.in (graphite-dependences.o): Add missing dependence on
12454 graphite-cloog-util.h.
12456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12458 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12459 (build_lexicographical_constraint): Same.
12460 (dependence_polyhedron_1): Same.
12461 (graphite_legal_transform_dr): Same.
12462 (graphite_carried_dependence_level_k): Same.
12463 * graphite-ppl.c (ppl_powerset_is_empty): New.
12464 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12465 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12469 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12470 the "a followed by b" relation and document it.
12472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12474 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12475 iteration when the bag of constraints is empty.
12477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12479 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12481 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12483 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12484 nest and two loop depths as parameters.
12485 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12486 lst_perfect_nestify.
12488 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12490 * graphite-dependences.c (print_pddr): Call
12491 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12493 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12495 * graphite-ppl.c (debug_gmp_value): New.
12496 * graphite-ppl.h (debug_gmp_value): Declared.
12498 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12500 * doc/install.texi: Document availability of cloog-0.16.
12502 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12504 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12505 invalid postdominance info.
12507 2011-01-24 Jan Hubicka <jh@suse.cz>
12510 * doc/extend.texi (weak pragma): Drop claim that it must
12511 appear before definition.
12512 * varasm.c (merge_weak, declare_weak): Only sanity check
12513 that DECL is not output at a time it is declared weak.
12515 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12517 * machmode.def: Fixed comments.
12519 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12521 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12523 2011-01-24 Paul Koning <ni1d@arrl.net>
12525 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12528 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12531 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12532 (block_info): Add scanned and prev.
12533 (move_or_delete_vzeroupper_2): Return if the basic block
12534 has been scanned and the upper 128bit state is unchanged
12535 from the last scan.
12536 (move_or_delete_vzeroupper_1): Return true if the exit
12538 (move_or_delete_vzeroupper): Visit basic blocks using the
12539 work-list based algorithm based on vt_find_locations in
12542 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12544 2011-01-24 Nick Clifton <nickc@redhat.com>
12546 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12547 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12548 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12549 then define __v850e1__.
12550 * doc/invoke.texi: Document -mv850es.
12552 2011-01-24 Richard Henderson <rth@redhat.com>
12554 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12555 compound unordered comparisons.
12556 * config/rx/rx.c (rx_split_fp_compare): Remove.
12557 * config/rx/rx-protos.h: Update.
12558 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12559 (cbranchsf4): Don't call rx_split_fp_compare.
12560 (*cbranchsf4): Use rx_split_cbranch.
12561 (*cmpsf): Don't accept "i" constraint.
12562 (*conditional_branch): Only valid after reload.
12563 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12565 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12568 * config/rs6000/altivec.md (vector constant splitters): Add
12569 support for creating vector single precision constants if -mvsx is
12570 used and we would create the constant using Altivec primitives.
12572 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12573 Richard Sandiford <rdsandiford@googlemail.com>
12575 PR rtl-optimization/47166
12576 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12577 mechanism for PRE_MODIFY and POST_MODIFY.
12578 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12581 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12583 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12585 2011-01-22 Jan Hubicka <jh@suse.cz>
12588 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12590 2011-01-22 Jan Hubicka <jh@suse.cz>
12592 PR tree-optimization/43884
12594 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12595 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12597 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12599 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12600 * config/s390/s390.c (s390_register_move_cost,
12601 s390_memory_move_cost): New.
12602 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12604 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12606 PR middle-end/47401
12607 * except.c (sjlj_assign_call_site_values): Move setting the
12608 crtl->uses_eh_lsda flag to ...
12609 (sjlj_mark_call_sites): ... here.
12610 (sjlj_emit_function_enter): Support NULL dispatch label.
12611 (sjlj_build_landing_pads): In a function with no landing pads
12612 that still has must-not-throw regions, generate code to register
12613 a personality function with empty LSDA.
12615 2011-01-21 Richard Henderson <rth@redhat.com>
12617 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12619 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12621 * compare-elim.c: New file.
12622 * Makefile.in (OBJS-common): Add it.
12623 (compare-elim.o): New.
12624 * common.opt (fcompare-elim): New.
12625 * opts.c (default_options_table): Add OPT_fcompare_elim.
12626 * tree-pass.h (pass_compare_elim_after_reload): New.
12627 * passes.c (init_optimization_passes): Add it.
12628 * recog.h: Protect against re-inclusion.
12629 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12630 * doc/invoke.texi (-fcompare-elim): Document it.
12631 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12632 * doc/tm.texi: Rebuild.
12634 2011-01-22 Nick Clifton <nickc@redhat.com>
12636 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12637 rx_split_fp_compare.
12639 2011-01-22 Nick Clifton <nickc@redhat.com>
12641 * config/rx/rx.md (UNSPEC_CONST): New.
12642 (deallocate_and_return): Wrap the amount popped off the stack in
12643 an UNSPEC_CONST in order to stop it being rejected by
12644 -mmax-constant-size.
12645 (pop_and_return): Add a "(return)" rtx.
12646 (call): Drop the immediate operand.
12647 (call_internal): Likewise.
12648 (call_value): Likewise.
12649 (call_value_internal): Likewise.
12650 (sibcall_internal): Likewise.
12651 (sibcall_value_internal): Likewise.
12652 (sibcall): Likewise. Generate an explicit call using
12654 (sibcall_value): Likewise.
12655 (mov<>): FAIL if a constant operand is not legitimate.
12656 (addsi3_unpsec): New pattern.
12658 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12659 (ok_for_max_constant): New function.
12660 (gen_safe_add): New function.
12661 (rx_expand_prologue): Use gen_safe_add.
12662 (rx_expand_epilogue): Likewise.
12663 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12666 2011-01-21 Jeff Law <law@redhat.com>
12668 PR tree-optimization/47053
12669 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12670 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12671 statements are deleted.
12672 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12673 is nonempty, then purge dead edges and cleanup the CFG.
12675 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12678 Temporarily revert:
12679 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12681 * tree-dfa.c (create_var_ann): Mark variable as used.
12683 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12685 PR middle-end/45566
12686 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12687 notes from other section in hot/cold partitioning even if
12688 last_action is -3. Increment call_site_base.
12690 PR rtl-optimization/47366
12691 * fwprop.c (forward_propagate_into): Return bool. If
12692 any changes are made, -fnon-call-exceptions is used and
12693 REG_EH_REGION note is present, call purge_dead_edges
12694 and return true if it purged anything.
12695 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12696 any EH edges were purged.
12698 2011-01-21 Jeff Law <law@redhat.com>
12700 PR rtl-optimization/41619
12701 * caller-save.c (setup_save_areas): Break out code to determine
12702 which hard regs are live across calls by examining the reload chains
12703 so that it is always used.
12704 Eliminate code which checked REG_N_CALLS_CROSSED.
12706 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12708 PR tree-optimization/47355
12709 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12710 NOP has non-debug uses beyond PHIs in new_bb.
12712 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12715 * cfgexpand.c (account_used_vars_for_block): Only account vars
12716 that are annotated as used.
12717 (estimated_stack_frame_size): Don't set TREE_USED.
12718 * tree-dfa.c (create_var_ann): Mark variable as used.
12720 2011-01-21 Richard Guenther <rguenther@suse.de>
12722 PR middle-end/47395
12723 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12725 2011-01-21 Richard Guenther <rguenther@suse.de>
12727 PR tree-optimization/47365
12728 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12729 (vn_reference_lookup_pieces): Adjust.
12730 (vn_reference_lookup): Likewise.
12731 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12732 (vn_reference_lookup_3): Only look through kills if in
12733 VN_WALKREWRITE mode.
12734 (vn_reference_lookup_pieces): Adjust.
12735 (vn_reference_lookup): Likewise.
12736 (visit_reference_op_load): Likewise.
12737 (visit_reference_op_store): Likewise.
12738 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12739 (compute_avail): Likewise.
12740 (eliminate): Likewise.
12742 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12744 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12745 DECL_IGNORED_P non-reg vars if they are used.
12747 PR tree-optimization/47391
12748 * varpool.c (const_value_known_p): Return false if
12751 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12754 * config/i386/i386.c (ix86_local_alignment): Handle
12755 case for va_list_type_node is nil.
12756 (ix86_canonical_va_list_type): Likewise.
12758 2011-01-21 Alan Modra <amodra@gmail.com>
12760 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12761 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12763 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12765 * config/arm/arm.md (define_attr type): Rename f_load
12766 and f_store to f_fpa_load and f_fpa_store. Update.
12767 (write_conflict): Deal with rename fallout.
12768 (*push_fp_multi): Likewise.
12769 * config/arm/fpa.md (f_load): Use f_fpa_load.
12770 (f_store): Use f_fpa_store.
12771 (*movsf_fpa): Likewise.
12772 (*movdf_fpa): Likewise.
12773 (*movxf_fpa): Likewise.
12774 (*thumb2_movsf_fpa): Likewise.
12775 (*thumb2_movdf_fpa): Likewise.
12776 (*thumb2_movxf_fpa): Likewise.
12777 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12778 f_loadd and f_stored.
12779 (*thumb2_movdi_vfp): Likewise.
12780 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12781 (*thumb2_movsi_vfp): Likewise.
12782 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12783 Use f_loads instead of f_load.
12784 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12786 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12788 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12789 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12790 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12791 (xtensa_mode_dependent_address_p): New function.
12792 (constantpool_address_p): Make static. Change return type to bool.
12793 Change argument type to const_rtx. Use CONST_INT_P predicate.
12795 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12798 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12800 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12803 * cfgexpand.c (expand_debug_expr): Instead of generating
12804 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12807 2011-01-20 Richard Guenther <rguenther@suse.de>
12809 PR middle-end/47370
12810 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12811 the pointer operand of MEM_REFs.
12813 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12815 PR tree-optimization/46130
12816 * ipa-split.c (consider_split): If return_bb contains non-virtual
12817 PHIs other than for retval or if split_function would not adjust it,
12820 2011-01-20 Richard Guenther <rguenther@suse.de>
12822 PR tree-optimization/47167
12823 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12824 Revert previous change, only avoid enumeral type changes.
12826 2011-01-19 Mike Stump <mikestump@comcast.net>
12828 * doc/tm.texi.in (BRANCH_COST): Englishify.
12829 * doc/tm.texi (BRANCH_COST): Likewise.
12831 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12834 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12835 (gen_scheduled_generic_parms_dies): New functions.
12836 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12837 generation for the end of CU compilation.
12838 (dwarf2out_finish): Generate template parameters DIEs here.
12840 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12843 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12844 debug bind stmt on merge edges.
12846 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12850 * function.c (instantiate_expr): Instantiate incoming rtl of
12851 implicit arguments, and recurse on VALUE_EXPRs.
12852 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12853 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12855 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12857 * c-parser.c (c_parser_for_statement): Initialize
12858 collection_expression.
12860 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12862 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12864 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12866 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12867 (LINK_SHLIB_SPEC): Don't use %(link_path).
12868 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12870 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12872 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12873 (NO_SHARED_LIB_SUPPORT): Remove.
12874 (LINK_SHLIB_SPEC): Remove one conditional definition.
12876 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12878 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12880 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12881 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12882 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12883 %{call_shared} and conditionals on these options not being passed.
12884 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12887 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12889 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12892 * ipa-split.c: Spelling fixes.
12894 2011-01-19 Richard Henderson <rth@redhat.com>
12896 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12897 (*mulsi3): Likewise.
12899 * longlong.h [__mn10300__] (count_leading_zeros): New.
12900 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12901 [__mn10300__] (add_ssaaaa, subddmmss): New.
12902 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12903 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12905 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12907 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12909 2011-01-19 Richard Henderson <rth@redhat.com>
12911 * config/mn10300/mn10300.md (addsi3_flags): New.
12912 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12913 (subsi3_flags, subc_internal, subdi3): New.
12914 (subdi3_internal, *subdi3_degenerate): New.
12915 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12917 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12918 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12919 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12920 * config/mn10300/mn10300-protos.h: Update.
12921 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12922 (return_ret): Likewise. Rename from return_internal_regs.
12923 (return_internal): Remove.
12925 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12926 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12927 (mn10300_legitimate_constant_p): Likewise.
12928 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12929 (mn10300_frame_size): New.
12930 (mn10300_expand_prologue): Use it.
12931 (mn10300_expand_epilogue): Likewise.
12932 (mn10300_initial_offset): Likewise.
12933 * config/mn10300/mn10300-protos.h: Update.
12934 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12935 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12936 (prologue, epilogue, return_internal): Tidy output code.
12937 (mn10300_store_multiple_operation, return): Likewise.
12938 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12939 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12940 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12941 (load_pic, am33_load_pic): New.
12942 (mn10300_load_pic0, mn10300_load_pic1): New.
12944 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12945 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12946 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12947 (cc_flags_for_mode, cc_flags_for_code): New.
12948 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12949 overflow flag is not valid. Validate that the flags we need
12950 for the comparison are valid.
12951 (mn10300_output_cmp): Remove.
12952 (mn10300_output_add): New.
12953 (mn10300_select_cc_mode): Use cc_flags_for_code.
12954 (mn10300_split_cbranch): New.
12955 (mn10300_match_ccmode): New.
12956 (mn10300_split_and_operand_count): New.
12957 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12959 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12960 (addsi3): ... here. Use mn10300_output_add.
12961 (*addsi3_flags): New.
12962 (*am33_subsi3, *mn10300_subsi3): Merge...
12963 (subsi3): ... here. Use attribute isa.
12964 (*subsi3_flags): New.
12965 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12967 (*am33_andsi3, *mn10300_andsi3): Merge...
12968 (andsi3): ... here.
12969 (*andsi3_flags): New.
12970 (andsi3 splitters): New.
12971 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12972 (iorsi3): ... here.
12973 (*iorsi3_flags): New.
12974 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12975 (xorsi3): ... here.
12976 (*xorsi3_flags): New.
12977 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12978 (one_cmplsi2): ... here.
12979 (*one_cmplsi2_flags): New.
12980 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12981 instead of "dax" in constraints. Use mn10300_split_cbranch.
12982 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12983 use matching constraints to eliminate a self-comparison.
12984 (*integer_conditional_branch): Rename from integer_conditional_branch.
12985 Use int_mode_flags to match CC_REG.
12986 (*cbranchsi4_btst, *btstsi): New.
12987 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12988 mn10300_split_cbranch.
12989 (*am33_cmpsf): Rename from am33_cmpsf.
12990 (*float_conditional_branch): Rename from float_conditional_branch.
12991 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12992 (zero_extendqisi2): ... here.
12993 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12994 (zero_extendhisi2): ... here.
12995 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12996 (extendqisi2): ... here.
12997 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12998 (extendhisi2): ... here.
12999 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13000 (ashlsi3): ... here.
13001 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13002 (lshrsi3): ... here.
13003 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13004 (ashrsi3): ... here.
13005 (consecutive add peephole): Remove.
13006 * config/mn10300/predicates.md (label_ref_operand): New.
13007 (int_mode_flags): New.
13008 (CCZN_comparison_operator): New.
13010 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13011 (throughput_42_latency_43): New reservation.
13012 (mulsidi3, umulsidi3): New expanders.
13013 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13014 the MDR register to allocation; separately allocate the low and
13015 high parts of the DImode result.
13016 (umulsidi3_internal): Similarly.
13017 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13018 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13019 (udivsi3, umodsi3): Remove.
13020 (udivmodsi4, divmodsi4): New expanders.
13021 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13022 (*divmodsi4): Simiarly.
13023 (ext_internal): New.
13025 * config/mn10300/constraints.md ("z"): New constraint.
13026 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13027 (FIXED_REGISTERS): Don't fix MDR.
13028 (CALL_USED_REGSITERS): Reformat nicely.
13029 (REG_ALLOC_ORDER): Add MDR.
13030 (enum regclass): Add MDR_REGS.
13031 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13032 (IRA_COVER_CLASSES): Add MDR_REGS.
13033 (REGNO_REG_CLASS): Handle MDR_REG.
13034 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13035 (mn10300_register_move_cost): Likewise.
13036 * config/mn10300/mn10300.md (MDR_REG): New.
13037 (*movsi_internal): Handle moves to/from MDR_REGS.
13039 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13041 (mn10300_secondary_reload): Tidy combination reload classes.
13042 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13043 addresses for AM33. Allow symbolic offsets for reg+imm.
13044 (mn10300_regno_in_class_p): New.
13045 (mn10300_legitimize_reload_address): New.
13046 * config/mn10300/mn10300.h (enum reg_class): Remove
13047 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13048 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13049 SP_OR_GENERAL_REGS.
13050 (REG_CLASS_NAMES): Update to match.
13051 (REG_CLASS_CONTENTS): Likewise.
13052 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13053 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13054 (REGNO_IN_RANGE_P): Remove.
13055 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13056 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13057 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13058 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13059 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13060 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13061 (REGNO_GENERAL_P): New.
13062 (HAVE_POST_MODIFY_DISP): New.
13063 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13064 (LEGITIMIZE_RELOAD_ADDRESS): New.
13065 * config/mn10300/mn10300-protos.h: Update.
13067 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13068 DATA_REGS for AM33 stack-pointer destination.
13069 (mn10300_preferred_output_reload_class): Likewise.
13070 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13071 into a form appropriate for ...
13072 (TARGET_SECONDARY_RELOAD): New.
13073 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13074 * config/mn10300/mn10300-protos.h: Update.
13075 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13076 reload_insi; use the "A" constraint for the scratch; handle AM33
13077 moves of sp to non-address registers.
13079 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13080 (*movqi_internal): ... here.
13081 (*am33_movhi, *mn10300_movhi): Merge into...
13082 (*movhi_internal): ... here.
13083 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13084 as the source/destination of moves from/to SP.
13085 (movsf): Only allow for AM33-2.
13086 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13087 any integer constant constraint. Only allow for AM33-2. Tidy
13088 all of the alternative outputs.
13089 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13090 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13092 (udivsi3, umodsi3): New patterns for MN103 only.
13094 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13096 * doc/tm.texi.in: Spell out that a lack of register class unions
13098 * doc/tm.texi: Regenerate.
13100 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13102 PR rtl-optimization/47337
13103 * dce.c (check_argument_store): New function.
13104 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13106 PR tree-optimization/47290
13107 * tree-eh.c (infinite_empty_loop_p): New function.
13108 (cleanup_empty_eh): Use it.
13110 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13113 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13114 (a64_expand_widen_sum): Ditto.
13115 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13116 (vec_extract_evenodd_help): Ditto.
13117 (vec_extract_evenv4hi): Ditto.
13118 (vec_extract_oddv4hi): Ditto.
13119 (vec_extract_evenv2si): Ditto.
13120 (vec_extract_oddv2si): Ditto.
13121 (vec_extract_evenv2sf): Ditto.
13122 (vec_extract_oddv2sf): Ditto.
13123 (vec_pack_trunc_v4hi: Ditto.
13124 (vec_pack_trunc_v2si): Ditto.
13125 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13126 (vec_interleave_highv8qi): Ditto.
13128 (vec_extract_oddv8qi): Ditto.
13129 (vec_interleave_lowv4hi): Ditto.
13130 (vec_interleave_highv4hi): Ditto.
13131 (vec_interleave_lowv2si): Ditto.
13132 (vec_interleave_highv2si): Ditto.
13134 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13136 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13137 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13138 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13139 (pa_c_mode_for_suffix): New.
13140 (TARGET_EXPAND_BUILTIN): Define.
13141 (TARGET_C_MODE_FOR_SUFFIX): Define.
13142 (pa_builtins): Define.
13143 (pa_init_builtins): Register __float128 type and init new support
13145 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13146 * config/pa/quadlib.c (_U_Qfcopysign): New.
13148 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13150 PR middle-end/46894
13151 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13152 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13155 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13157 PR tree-optimization/47179
13158 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13159 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13161 2011-01-18 Richard Guenther <rguenther@suse.de>
13163 PR rtl-optimization/47216
13164 * emit-rtl.c: Include tree-flow.h.
13165 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13166 of replicating it with different semantics.
13167 * Makefile.in (emit-rtl.o): Adjust.
13169 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13171 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13172 (cortex_a9_dp): Handle neon types correctly.
13174 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13176 PR rtl-optimization/47299
13177 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13178 subtarget. Use normal multiplication if both operands are constants.
13179 * expmed.c (expand_widening_mult): Don't try to optimize constant
13180 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13183 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13185 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13186 spacing after 'e.g.', typos, comma, hyphenation.
13188 2011-01-17 Richard Henderson <rth@redhat.com>
13190 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13191 (rx_restricted_mem_operand): New.
13192 (rx_shift_operand): Use register_operand.
13193 (rx_source_operand, rx_compare_operand): Likewise.
13194 * config/rx/rx.md (addsi3_flags): New expander.
13195 (adddi3): Rewrite as expander.
13196 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13197 (subsi3_flags): New expander.
13198 (subdi3): Rewrite as expander.
13199 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13201 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13202 (rx_init_builtins): Remove sat builtin.
13203 (rx_expand_builtin): Likewise.
13204 * config/rx/rx.md (ssaddsi3): New.
13205 (*sat): Rename from sat. Represent the CC_REG input.
13207 * config/rx/predicates.md (rshift_operator): New.
13208 * config/rx/rx.c (rx_expand_insv): Remove.
13209 * config/rx/rx-protos.h: Update.
13210 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13211 operand to the canonical position.
13212 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13213 (*bitclr, *bitclr_in_memory): Similarly.
13214 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13215 (insv): Retain the zero_extract in the expansion.
13217 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13218 (bswaphi2, bitinvert, revw): Likewise.
13220 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13221 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13222 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13223 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13224 (bitset, bitset_in_memory): Likewise.
13225 (bitinvert, bitinvert_in_memory): Likewise.
13226 (bitclr, bitclr_in_memory): Likewise.
13227 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13228 (rx_strend, rx_cmpstrn): Likewise.
13229 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13230 (bitop peep2 patterns): Remove.
13232 * config/rx/rx.c (rx_match_ccmode): New.
13233 * config/rx/rx-protos.h: Update.
13234 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13235 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13236 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13237 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13238 (fix_truncsfsi2, floatsisf2): Likewise.
13239 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13240 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13241 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13242 (*subsi3_flags, *xorsi3_flags): New.
13244 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13246 * config/rx/rx.c (rx_print_operand): Remove workaround for
13247 unsplit comparison operations.
13249 * config/rx/rx.md (movsicc): Split after reload.
13250 (*movsicc): Merge *movsieq and *movsine via match_operator.
13251 (*stcc): New pattern.
13253 * config/rx/rx.c (rx_float_compare_mode): Remove.
13254 * config/rx/rx.h (rx_float_compare_mode): Remove.
13255 * config/rx/rx.md (cstoresi4): Split after reload.
13256 (*sccc): New pattern.
13258 * config/rx/predicates.md (label_ref_operand): New.
13259 (rx_z_comparison_operator): New.
13260 (rx_zs_comparison_operator): New.
13261 (rx_fp_comparison_operator): New.
13262 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13263 Validate that the flags are set properly for the comparison.
13264 (rx_gen_cond_branch_template): Remove.
13265 (rx_cc_modes_compatible): Remove.
13266 (mode_from_flags): New.
13267 (flags_from_code): Rename from flags_needed_for_conditional.
13268 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13269 (rx_select_cc_mode): Likewise.
13270 (rx_split_fp_compare): New.
13271 (rx_split_cbranch): New.
13272 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13273 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13274 (*cbranchsf4): Similarly.
13275 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13276 match_operator and rx_split_cbranch.
13277 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13278 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13279 (*cmpsi): Rename from cmpsi.
13280 (*tstsi): Rename from tstsi.
13281 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13282 (*conditional_branch): Rename from conditional_branch.
13283 (*reveresed_conditional_branch): Remove.
13284 (b<code>): Remove expander.
13285 * config/rx/rx-protos.h: Update.
13287 * config/rx/rx.c (rx_compare_redundant): Remove.
13288 * config/rx/rx.md (cmpsi): Don't use it.
13289 * config/rx/rx-protos.h: Update.
13291 * config/rx/rx-modes.def (CC_F): New mode.
13292 * config/rx/rx.c (rx_select_cc_mode): New.
13293 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13294 * config/rx/rx-protos.h: Update.
13296 2011-01-17 Richard Henderson <rth@redhat.com>
13298 * except.c (dump_eh_tree): Fix stray ; after for statement.
13300 2011-01-17 Richard Guenther <rguenther@suse.de>
13302 PR tree-optimization/47313
13303 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13304 handling before copying the body. Properly deal with
13305 by-reference result in SSA form.
13307 2011-01-17 Ian Lance Taylor <iant@google.com>
13310 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13311 (struct_value_alias_set): Don't define.
13312 (sparc_option_override): Don't set sparc_sr_alias_set and
13313 struct_value_alias_set.
13314 (save_or_restore_regs): Use gen_frame_mem rather than calling
13316 (sparc_struct_value_rtx): Likewise.
13318 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13321 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13322 (_mm_maskstore_pd): Likewise.
13323 (_mm_maskload_ps): Likewise.
13324 (_mm_maskstore_ps): Likewise.
13325 (_mm256_maskload_pd): Change mask to __m256i.
13326 (_mm256_maskstore_pd): Likewise.
13327 (_mm256_maskload_ps): Likewise.
13328 (_mm256_maskstore_ps): Likewise.
13330 * config/i386/i386-builtin-types.def: Updated.
13331 (ix86_expand_special_args_builtin): Likewise.
13333 * config/i386/i386.c (bdesc_special_args): Update
13334 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13335 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13336 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13337 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13339 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13340 Use <avxpermvecmode> on mask register.
13341 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13343 2011-01-17 Olivier Hainque <hainque@adacore.com>
13344 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13345 Eric Botcazou <ebotcazou@adacore.com>
13348 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13349 if <= USHRT_MAX in 32-bit mode.
13351 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13353 * doc/install.texi (Configuration, Specific): Wrap long
13354 lines in examples. Allow line wrapping in long options
13355 and URLs where beneficial for PDF output.
13357 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13359 * config/mips/mips.c (mips_classify_symbol): Don't return
13360 SYMBOL_PC_RELATIVE for nonlocal labels.
13362 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13364 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13366 2011-01-15 Jan Hubicka <jh@suse.cz>
13368 PR tree-optimization/47276
13369 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13370 declarations as needed.
13372 2011-01-15 Martin Jambor <mjambor@suse.cz>
13374 * common.opt (fdevirtualize): New flag.
13375 * doc/invoke.texi (Option Summary): Document it.
13376 * opts.c (default_options_table): Add devirtualize flag.
13377 * ipa-prop.c (detect_type_change): Return immediately if
13378 devirtualize flag is not set.
13379 (detect_type_change_ssa): Likewise.
13380 (compute_known_type_jump_func): Likewise.
13381 (ipa_analyze_virtual_call_uses): Likewise.
13383 2011-01-14 Martin Jambor <mjambor@suse.cz>
13385 PR tree-optimization/45934
13386 PR tree-optimization/46302
13387 * ipa-prop.c (type_change_info): New type.
13388 (stmt_may_be_vtbl_ptr_store): New function.
13389 (check_stmt_for_type_change): Likewise.
13390 (detect_type_change): Likewise.
13391 (detect_type_change_ssa): Likewise.
13392 (compute_complex_assign_jump_func): Check for dynamic type change.
13393 (compute_complex_ancestor_jump_func): Likewise.
13394 (compute_known_type_jump_func): Likewise.
13395 (compute_scalar_jump_functions): Likewise.
13396 (ipa_analyze_virtual_call_uses): Likewise.
13397 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13399 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13401 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13402 * config/i386/i386.opt (msse5): New Alias.
13404 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13406 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13407 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13408 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13409 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13411 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13413 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13415 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13416 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13417 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13418 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13420 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13422 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13424 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13426 2011-01-14 Mike Stump <mikestump@comcast.net>
13428 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13429 * config/fr30/fr30.md: Likweise
13430 (movsi_push): Likewise.
13431 (movsi_pop): Likewise.
13432 (enter_func): Likewise.
13433 * config/moxie/moxie.md (movsi_push): Likewise.
13434 (movsi_pop): Likewise.
13436 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13438 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13439 %{no_archive} %{exact_version}.
13440 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13441 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13442 %{no_archive} %{exact_version}.
13443 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13444 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13445 * config/mips/vxworks.h: Likewise.
13447 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13449 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13453 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13454 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13456 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13458 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13461 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13463 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13465 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13466 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13468 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13469 Don't handle -shlib.
13471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13473 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13474 (CC1_SPEC): Don't handle -profile.
13476 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13478 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13479 * config/mips/mips.h (CC1_SPEC): Likewise.
13481 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13483 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13484 * config/mips/mips.h (CC1_SPEC): Likewise.
13486 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13488 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13489 * config/m32r/linux.h (LINK_SPEC): Likewise.
13490 * config/mips/linux.h (LINK_SPEC): Likewise.
13491 * config/mips/linux64.h (LINK_SPEC): Likewise.
13492 * config/sparc/linux.h (LINK_SPEC): Likewise.
13493 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13494 LINK_SPEC): Likewise.
13495 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13497 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13499 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13501 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13503 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13505 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13506 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13508 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13510 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13512 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13514 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13515 supports -Bstatic/-Bdynamic.
13516 * configure: Regenerate.
13518 2011-01-14 Jan Hubicka <jh@suse.cz>
13519 Jack Howarth <howarth@bromo.med.uc.edu>
13522 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13523 when checking debug_info_level. Test write_symbols instead of
13524 debug_hooks->var_location when setting flag_var_tracking_uninit.
13526 2011-01-14 Richard Guenther <rguenther@suse.de>
13528 PR tree-optimization/47179
13529 * target.def (ref_may_alias_errno): New target hook.
13530 * targhooks.h (default_ref_may_alias_errno): Declare.
13531 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13532 (default_ref_may_alias_errno): New function.
13533 * target.h (struct ao_ref_s): Declare.
13534 * tree-ssa-alias.c: Include target.h.
13535 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13536 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13537 (targhooks.o): Likewise.
13538 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13539 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13541 2011-01-14 Richard Guenther <rguenther@suse.de>
13543 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13545 2011-01-14 Richard Guenther <rguenther@suse.de>
13547 PR tree-optimization/47280
13548 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13549 return CFG changes.
13550 (tree_ssa_forward_propagate_single_use_vars): Deal with
13551 CFG changes from associate_plusminus.
13553 2011-01-14 Richard Guenther <rguenther@suse.de>
13555 PR middle-end/47281
13557 2011-01-11 Richard Guenther <rguenther@suse.de>
13559 PR tree-optimization/46076
13560 * tree-ssa.c (useless_type_conversion_p): Conversions from
13561 unprototyped to empty argument list function types are useless.
13563 2011-01-14 Richard Guenther <rguenther@suse.de>
13565 PR tree-optimization/47286
13566 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13568 2011-01-14 Martin Jambor <mjambor@suse.cz>
13570 PR middle-end/46823
13571 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13573 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13575 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13576 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13577 * config/xtensa/xtensa.c (xtensa_libcall_value,
13578 xtensa_function_value_regno_p): New functions.
13579 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13581 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13584 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13586 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13587 New function prototype.
13588 * config/i386/winnt.c (i386_pe_assemble_visibility):
13589 Warn only if attribute was specified by user.
13591 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13594 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13596 (floatunsdidf2_fcfidu): Ditto.
13598 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13600 * config/s390/s390.c (print_operand_address): Replace 'error' with
13601 'output_operand_lossage'.
13602 (print_operand): Likewise.
13604 2011-01-13 Jeff Law <law@redhat.com>
13606 PR rtl-optimization/39077
13607 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13608 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13609 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13610 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13611 * gcse.c (prune_insertions_deletions): New function.
13612 (compute_pre_data): Use it.
13614 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13617 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13619 (prune_unused_types_mark): Use it.
13621 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13623 PR rtl-optimization/45352
13624 * sel-sched.c: Update copyright years.
13625 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13626 in the advancing loop when we have issued issue_rate insns.
13628 2011-01-12 Richard Henderson <rth@redhat.com>
13630 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13631 (TARGET_MD_ASM_CLOBBERS): New.
13633 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13634 (TARGET_DELEGITIMIZE_ADDRESS): New.
13636 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13637 (clzsi2, *bsch): New patterns.
13639 * config/mn10300/mn10300.md (INT): New mode iterator.
13640 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13642 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13643 flag_split_wide_types.
13645 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13646 (mn10300_trampoline_init): Rewrite without a template, an immediate
13647 load and a direct branch.
13648 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13650 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13652 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13653 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13654 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13655 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13657 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13660 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13663 2011-01-12 Jan Hubicka <jh@suse.cz>
13666 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13667 (PLUGIN_COND_CLOSE): New macro.
13668 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13670 2011-01-12 Richard Guenther <rguenther@suse.de>
13673 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13674 register variables in a MEM_REF.
13676 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13678 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13679 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13680 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13681 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13682 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13683 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13684 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13685 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13686 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13687 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13688 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13689 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13690 * config/gnu-user.h: New. Copied from linux.h.
13691 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13692 GNU_USER_TARGET_STARTFILE_SPEC.
13693 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13694 GNU_USER_TARGET_ENDFILE_SPEC.
13695 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13696 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13697 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13698 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13699 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13700 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13701 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13702 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13703 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13704 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13705 * config/arm/linux-eabi.h (CC1_SPEC): Use
13706 GNU_USER_TARGET_CC1_SPEC.
13707 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13708 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13709 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13710 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13711 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13712 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13713 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13714 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13716 2011-01-12 Richard Guenther <rguenther@suse.de>
13719 * doc/invoke.texi (ffast-math): Document it is turned on
13722 2011-01-12 Jan Hubicka <jh@suse.cz>
13724 PR tree-optimization/47233
13725 * opts.c (common_handle_option): Disable ipa-reference with profile
13728 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13730 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13733 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13735 * c-parser.c (c_lex_one_token): Updated and reindented some
13736 comments. No changes in code.
13738 2011-01-11 Ian Lance Taylor <iant@google.com>
13740 * godump.c (go_output_var): Don't output the variable if there is
13741 already a type with the same name.
13743 2011-01-11 Ian Lance Taylor <iant@google.com>
13745 * godump.c (go_format_type): Don't generate float80.
13747 2011-01-11 Richard Henderson <rth@redhat.com>
13749 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13750 declaration. Rewrite for both speed and size.
13751 (mn10300_address_cost_1): Remove.
13752 (mn10300_register_move_cost): New.
13753 (mn10300_memory_move_cost): New.
13754 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13755 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13756 extensions, shifts, BSWAP, CLZ.
13757 (mn10300_wide_const_load_uses_clr): Remove.
13758 (TARGET_REGISTER_MOVE_COST): New.
13759 (TARGET_MEMORY_MOVE_COST): New.
13760 * config/mn10300/mn10300-protos.h: Update.
13761 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13763 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13764 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13765 * config/mn10300/mn10300-protos.h: Update.
13766 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13767 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13768 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13769 (*test_int_bitfield, *test_byte_bitfield): Remove.
13770 (*bit_test, *subreg_bit_test): Remove.
13771 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13773 * config/mn10300/constraints.md ("c"): Rename from "A".
13774 ("A", "D"): New constraint letters.
13775 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13776 (fmssf4, fnmasf4, fnmssf4): Likewise.
13778 * config/mn10300/mn10300.md (isa): New attribute.
13779 (enabled): New attribute.
13781 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13782 (abssf2, negsf2): Define only for hardware fp.
13783 (sqrtsf2): Reformat.
13784 (addsf3, subsf3, mulsf3): Merge expander and insn.
13786 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13787 (DEBUGGER_AUTO_OFFSET): Remove.
13788 (DEBUGGER_ARG_OFFSET): Remove.
13790 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13791 Emit register stores with the same offsets as the hardware.
13792 (mn10300_store_multiple_operation): Don't check that the register
13793 save offsets are monotonic.
13794 * config/mn10300/mn10300-protos.h: Update.
13796 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13798 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13799 in terms of the value on the stack, not the MDR register.
13801 2011-01-11 Jan Hubicka <jh@suse.cz>
13805 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13806 (symbol_alias_set_destroy, symbol_alias_set_contains,
13807 propagate_aliases_backward): Declare.
13808 * lto-streamer-out.c (struct sets): New sturcture.
13809 (trivally_defined_alias): New function.
13810 (output_alias_pair_p): Rewrite.
13811 (output_unreferenced_globals): Fix output of alias pairs.
13812 (produce_symtab): Likewise.
13813 * ipa.c (function_and_variable_visibility): Set weak alias destination
13815 * varasm.c (symbol_alias_set_t): Remove.
13816 (symbol_alias_set_destroy): Export.
13817 (propagate_aliases_forward, propagate_aliases_backward): New functions
13819 (compute_visible_aliases): ... this one; remove.
13820 (trivially_visible_alias): New
13821 (trivially_defined_alias): New.
13822 (remove_unreachable_alias_pairs): Rewrite.
13823 (finish_aliases_1): Reorganize code checking if alias is defined.
13824 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13827 2011-01-11 Richard Guenther <rguenther@suse.de>
13829 PR tree-optimization/46076
13830 * tree-ssa.c (useless_type_conversion_p): Conversions from
13831 unprototyped to empty argument list function types are useless.
13833 2011-01-11 Richard Guenther <rguenther@suse.de>
13835 PR middle-end/45235
13836 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13837 volatile MEMs as MEM_READONLY_P.
13839 2011-01-11 Richard Guenther <rguenther@suse.de>
13841 PR tree-optimization/47239
13842 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13844 2011-01-11 Jeff Law <law@redhat.com>
13846 PR tree-optimization/47086
13847 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13848 IVs from statements that might throw.
13850 2011-01-10 Jan Hubicka <jh@suse.cz>
13853 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13855 2011-01-10 Jan Hubicka <jh@suse.cz>
13858 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13859 when correcting profile.
13861 2011-01-10 Jan Hubicka <jh@suse.cz>
13864 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13865 DECL_FINI_PRIORITY.
13866 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13867 Restore DECL_FINI_PRIORITY.
13869 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13871 * doc/gimple.texi: Fix quoting of multi-word return values in
13872 @deftypefn statements. Ensure presence of return value. Wrap
13873 overlong @deftypefn lines.
13874 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13875 descriptions of removed functions.
13876 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13877 of multi-word return value in @deftypefn statement.
13879 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13881 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13882 (Conditional Expressions, Logical Operators)
13883 (Statement and operand traversals): Do not indent smallexample
13884 code. Fix duplicate function argument in example.
13886 2011-01-10 Jeff Law <law@redhat.com>
13888 PR tree-optimization/47141
13889 * ipa-split.c (split_function): Handle case where we are
13890 returning a value and the return block has a virtual operand phi.
13892 2011-01-10 Jan Hubicka <jh@suse.cz>
13894 PR tree-optimization/47234
13895 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13896 (pass_feedback_split_functions): Declare.
13897 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13899 * ipa-split.c (gate_split_functions): Update comments; disable
13900 split-functions for profile_arc_flag and branch_probabilities.
13901 (gate_feedback_split_functions): New function.
13902 (execute_feedback_split_functions): New function.
13903 (pass_feedback_split_functions): New global var.
13905 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13908 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13909 calling gimple_call_set_cannot_inline.
13911 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13913 * config/darwin-sections.def: Remove unused section.
13915 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13918 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13920 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13923 * c-parser.c (c_parser_declaration_or_fndef): Improved
13926 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13928 * config/i386/winnt.c (i386_pe_start_function): Make sure
13929 to switch back to function's section.
13931 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13935 * plugin.c: Move include of dlfcn.h from here...
13936 * system.h: ... to here.
13938 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13940 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13942 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13943 two extra empty pages in PDF output.
13945 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13948 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13949 for error recovery purposes behave as if it was not specified so
13950 that the default type is usd.
13952 2011-01-07 Jan Hubicka <jh@suse.cz>
13954 PR tree-optmization/46469
13955 * ipa.c (function_and_variable_visibility): Clear needed flags on
13956 nodes with external decls; handle weakrefs merging correctly.
13958 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13960 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13963 2011-01-07 Jan Hubicka <jh@suse.cz>
13965 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13966 and no longer claim that gold is required for linker plugin.
13967 * configure: Regenerate.
13968 * gcc.c (PLUGIN_COND): New macro.
13969 (LINK_COMMAND_SPEC): Use it.
13970 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13971 * config.in (HAVE_LTO_PLUGIN): New.
13972 * configure.ac (--with-lto-plugin): New parameter; autodetect
13975 2011-01-07 Jan Hubicka <jh@suse.cz>
13977 PR tree-optimization/46367
13978 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13979 when we can update original.
13980 (cgraph_mark_inline_edge): Sanity check.
13981 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13983 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13985 * config/spu/spu.h (ASM_COMMENT_START): Define.
13987 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13990 * gcc.c (%>S): New.
13991 (SWITCH_KEEP_FOR_GCC): Likewise.
13992 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13993 (do_spec_1): Handle "%>".
13995 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13997 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14000 * config/i386/i386.c (ix86_delegitimize_address): If
14001 simplify_gen_subreg fails, return orig_x.
14004 * value-prof.c (gimple_stringop_fixed_value): Handle
14005 lhs of the call properly.
14007 2011-01-07 Jan Hubicka <jh@suse.cz>
14010 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14012 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14014 * target.def (function_switched_text_sections): New hook.
14015 * doc/tm.texi: Regenerated.
14016 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14017 * final.c (default_function_switched_text_sections): New.
14018 (final_scan_insn): Call function_switched_text_sections when a
14019 mid-function section change occurs.
14020 * output.h (default_function_switched_text_sections): Declare.
14021 * config/darwin-protos.h (darwin_function_switched_text_sections):
14023 * config/darwin.c (darwin_function_switched_text_sections): New.
14024 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14026 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14028 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14029 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14030 the secondary code fragment when outputting for DWARF == 2.
14032 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14034 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14035 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14037 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14038 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14040 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14043 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14044 when it is not empty.
14046 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14049 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14050 (case ${target}): Add btver1.
14051 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14052 -march=native recognize btver1 processors.
14053 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14054 btver1 def_and_undef
14055 * config/i386/i386.c (struct processor_costs btver1_cost): New
14057 (m_BTVER1): New definition.
14058 (m_AMD_MULTIPLE): Includes m_BTVER1.
14059 (initial_ix86_tune_features): Add btver1 tune.
14060 (processor_target_table): Add btver1 entry.
14061 (static const char *const cpu_names): Add btver1 entry.
14062 (software_prefetching_beneficial_p): Add btver1.
14063 (ix86_option_override_internal): Add btver1 instruction sets.
14064 (ix86_issue_rate): Add btver1.
14065 (ix86_adjust_cost): Add btver1.
14066 * config/i386/i386.h (TARGET_BTVER1): New definition.
14067 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14068 (enum processor_type): Add PROCESSOR_BTVER1.
14069 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14071 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14074 * config/i386/i386.c (legitimize_tls_address)
14075 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14076 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14077 (tls_initial_exec_64_sun): New pattern.
14079 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14081 * doc/invoke.texi (Overall Options): Improve wording and markup
14082 of the description of -wrapper.
14084 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14086 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14087 rdynamic, threads): New Driver options.
14089 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14092 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14093 if coming from .tdata.
14094 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14096 2011-01-06 Jan Hubicka <jh@suse.cz>
14099 * collect2.c (main): Do not enable LTOmode when plugin is active.
14101 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14104 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14105 --version output if supported.
14106 * configure: Regenerate.
14108 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14110 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14113 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14116 * c-convert.c (convert): When converting a complex expression
14117 other than COMPLEX_EXPR to a different complex type, ensure
14118 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14119 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14120 when converting COMPLEX_TYPE.
14122 2011-01-06 Ira Rosen <irar@il.ibm.com>
14124 PR tree-optimization/47139
14125 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14126 only the last reduction value is used outside the loop. Update
14129 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14131 * config/rtems.opt: New.
14132 * config.gcc (*-*-rtems*): Use rtems.opt.
14134 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14136 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14137 processors do not support 3DNow instructions.
14139 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14141 * config/spu/spu.c (spu_option_override): Set parameter
14142 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14144 2011-01-05 Jan Hubicka <jh@suse.cz>
14146 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14147 at the command line.
14149 2011-01-05 Martin Jambor <mjambor@suse.cz>
14152 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14153 deltas on streamed outgoing edges.
14154 (output_node_opt_summary): Output info for outgoing edges only when
14155 the node is in new parameter set.
14156 (output_cgraph_opt_summary): New parameter set, passed to the two
14157 aforementioned functions. Update its forward declaration and its
14160 2011-01-05 Tom Tromey <tromey@redhat.com>
14162 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14163 operator to c_finish_omp_atomic.
14164 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14165 (build_unary_op): Update.
14166 (build_modify_expr): Update.
14167 (build_asm_expr): Update.
14169 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14171 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14172 newly inserted insns.
14173 (pad_bb): Likewise.
14174 (spu_emit_branch_hint): Likewise.
14175 (insert_hbrp_for_ilb_runout): Likewise.
14176 (spu_machine_dependent_reorg): Call df_finish_pass after
14177 schedule_insns returns.
14179 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14181 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14183 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14185 PR tree-optimization/47005
14186 * tree-sra.c (struct access): Add 'non_addressable' bit.
14187 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14188 (decide_one_param_reduction): Return 0 if the parameter is passed by
14189 reference and one of the accesses in the group is non_addressable.
14191 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14193 PR tree-optimization/47056
14194 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14195 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14196 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14198 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14200 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14201 initializer. Skip view conversions from aggregate types.
14203 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14206 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14208 2011-01-04 Philipp Thomas <pth@suse.de>
14210 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14213 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14215 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14216 on empty epilogue sequences.
14218 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14220 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14221 non-static): New Driver options.
14223 2011-01-04 Jie Zhang <jie@codesourcery.com>
14226 * gcc.c (default_compilers[]): Set combinable field to 0
14227 for all assembly languages.
14229 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14231 * config/mips/loongson3a.md: New file.
14232 * config/mips/mips.md: Include loongson3a.md.
14233 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14236 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14238 PR middle-end/47017
14239 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14240 instead of convert_memory_address_addr_space on the base expression.
14242 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14244 * config/spu/spu.c (spu_option_override): Update error text
14245 for bad -march= / -mtune= values.
14247 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14249 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14250 if branch-hint optimization will be performed.
14252 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14254 PR tree-optimization/47148
14255 * ipa-split.c (split_function): Convert arguments to
14256 DECL_ARG_TYPE if possible.
14258 PR tree-optimization/47155
14259 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14260 when computing uns.
14262 PR rtl-optimization/47157
14263 * combine.c (try_combine): If undobuf.other_insn becomes
14264 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14265 and set *new_direct_jump_p too.
14267 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14269 PR tree-optimization/47021
14270 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14272 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14274 * gcc.c (process_command): Update copyright notice dates.
14275 * gcov.c (print_version): Likewise.
14276 * gcov-dump.c (print_version): Likewise.
14277 * mips-tfile.c (main): Likewise.
14278 * mips-tdump.c (main): Likewise.
14280 2011-01-03 Martin Jambor <mjambor@suse.cz>
14282 PR tree-optimization/46801
14283 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14284 aggregate fields start at byte boundary instead of the bit-field flag.
14286 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14289 * gcc.c (main): Revert revision 168407.
14291 2011-01-03 Martin Jambor <mjambor@suse.cz>
14293 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14295 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14297 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14298 vector optab to expand vector/scalar shift, update gimple to vector.
14300 2011-01-03 Martin Jambor <mjambor@suse.cz>
14302 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14305 2011-01-03 Martin Jambor <mjambor@suse.cz>
14307 PR tree-optimization/46984
14308 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14310 (cgraph_create_indirect_edge): Fixed line length.
14311 (cgraph_indirect_call_info): Declare.
14312 (cgraph_make_edge_direct) Update declaration.
14313 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14314 (cgraph_create_indirect_edge): Use it.
14315 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14317 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14318 the new thunk_delta representation.
14319 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14321 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14322 (ipa_read_indirect_edge_info): Likewise.
14323 * lto-cgraph.c (output_edge_opt_summary): New function.
14324 (output_node_opt_summary): Call it on all outgoing edges.
14325 (input_edge_opt_summary): New function.
14326 (input_node_opt_summary): Call it on all outgoing edges.
14328 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14331 * gcc.c (main): Don't check have_o when settting combine_inputs.
14333 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14335 * regrename.c: Add general comment describing the pass.
14336 (struct du_head): Remove 'length' field.
14337 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14338 (regrename_optimize): Do not sort chains. Rework comments, add others.
14339 Force renaming to the preferred class (if any) in the first pass and do
14340 not consider registers that belong to it in the second pass.
14341 (create_new_chain): Do not set 'length' field.
14342 (scan_rtx_reg): Likewise.
14344 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14346 PR tree-optimization/47140
14347 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14348 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14349 to bit_value_binop.
14351 PR rtl-optimization/47028
14352 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14353 parm_birth_insn instead of at the beginning of first bb.
14355 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14357 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14358 Remove the word "see" before "@pxref".
14359 * doc/rtl.texi: Remove the word "see" before "@pxref".
14361 2011-01-01 Jan Hubicka <jh@suse.cz>
14363 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14366 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14369 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14372 Copyright (C) 2011 Free Software Foundation, Inc.
14374 Copying and distribution of this file, with or without modification,
14375 are permitted in any medium without royalty provided the copyright
14376 notice and this notice are preserved.